-
-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move revokedCertificates and replacementOrders into db (#7639)
These database schema changes were applied in prod in IN-9706 and IN-10081.
- Loading branch information
1 parent
7b6935d
commit a61aadc
Showing
4 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
sa/db-next/boulder_sa/20230919000000_RevokedCertificates.sql
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../../db/boulder_sa/20230919000000_RevokedCertificates.sql |
20 changes: 0 additions & 20 deletions
20
sa/db-next/boulder_sa/20240119000000_ReplacementOrders.sql
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../../db/boulder_sa/20240119000000_ReplacementOrders.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,21 @@ | ||
-- +migrate Up | ||
-- SQL in section 'Up' is executed when this migration is applied | ||
|
||
CREATE TABLE `revokedCertificates` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`issuerID` bigint(20) NOT NULL, | ||
`serial` varchar(255) NOT NULL, | ||
`notAfterHour` datetime NOT NULL, | ||
`shardIdx` bigint(20) NOT NULL, | ||
`revokedDate` datetime NOT NULL, | ||
`revokedReason` int(11) NOT NULL, | ||
PRIMARY KEY (`id`), | ||
KEY `issuerID_shardIdx_notAfterHour_idx` (`issuerID`, `shardIdx`, `notAfterHour`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 | ||
PARTITION BY RANGE(id) | ||
(PARTITION p_start VALUES LESS THAN (MAXVALUE)); | ||
|
||
-- +migrate Down | ||
-- SQL section 'Down' is executed when this migration is rolled back | ||
|
||
DROP TABLE `revokedCertificates`; |
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,20 @@ | ||
-- +migrate Up | ||
-- SQL in section 'Up' is executed when this migration is applied | ||
|
||
CREATE TABLE `replacementOrders` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`serial` varchar(255) NOT NULL, | ||
`orderID` bigint(20) NOT NULL, | ||
`orderExpires` datetime NOT NULL, | ||
`replaced` boolean DEFAULT false, | ||
PRIMARY KEY (`id`), | ||
KEY `serial_idx` (`serial`), | ||
KEY `orderID_idx` (`orderID`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 | ||
PARTITION BY RANGE(id) | ||
(PARTITION p_start VALUES LESS THAN (MAXVALUE)); | ||
|
||
-- +migrate Down | ||
-- SQL section 'Down' is executed when this migration is rolled back | ||
|
||
DROP TABLE `replacementOrders`; |