-
-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop certificatesPerName and newOrdersRL tables in db-next schema
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
sa/db-next/boulder_sa/20241218000000_RemoveOldRateLimitTables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- +migrate Up | ||
|
||
DROP TABLE certificatesPerName; | ||
DROP TABLE newOrdersRL; | ||
|
||
-- +migrate Down | ||
|
||
DROP TABLE certificatesPerName; | ||
DROP TABLE newOrdersRL; | ||
|
||
CREATE TABLE `certificatesPerName` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`eTLDPlusOne` varchar(255) NOT NULL, | ||
`time` datetime NOT NULL, | ||
`count` int(11) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `eTLDPlusOne_time_idx` (`eTLDPlusOne`,`time`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
CREATE TABLE `newOrdersRL` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`regID` bigint(20) NOT NULL, | ||
`time` datetime NOT NULL, | ||
`count` int(11) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `regID_time_idx` (`regID`,`time`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |