Skip to content

Commit

Permalink
Drop certificatesPerName and newOrdersRL tables in db-next schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jprenken committed Dec 19, 2024
1 parent 5553130 commit 73ff402
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions sa/db-next/boulder_sa/20241218000000_RemoveOldRateLimitTables.sql
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;

0 comments on commit 73ff402

Please sign in to comment.