-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
2 additions
and
400 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,16 +1,6 @@ | ||
CREATE TABLE IF NOT EXISTS `lockers` ( | ||
`id` bigint AUTO_INCREMENT PRIMARY KEY, | ||
`key` varchar(256) NOT NULL, | ||
`value` varchar(256) NOT NULL, | ||
`expire` bigint NOT NULL DEFAULT 0, | ||
`created_at` bigint NOT NULL DEFAULT (UNIX_TIMESTAMP (CURRENT_TIMESTAMP()) * 1000), | ||
`updated_at` bigint NOT NULL DEFAULT (UNIX_TIMESTAMP (CURRENT_TIMESTAMP()) * 1000), | ||
`deleted_at` bigint NOT NULL DEFAULT 0, | ||
CONSTRAINT `idx_lockers_key` UNIQUE (`key`, `deleted_at`) | ||
); | ||
|
||
ALTER TABLE `artifacts` | ||
ADD COLUMN `namespace_id` bigint NOT NULL AFTER `id`; | ||
|
||
ALTER TABLE `artifacts` | ||
ADD CONSTRAINT FOREIGN KEY (`namespace_id`) REFERENCES `namespaces` (`id`) | ||
ADD CONSTRAINT FOREIGN KEY (`namespace_id`) REFERENCES `namespaces` (`id`); | ||
|
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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
CREATE TABLE IF NOT EXISTS "lockers" ( | ||
"id" bigserial PRIMARY KEY, | ||
"key" varchar(256) NOT NULL, | ||
"value" varchar(256) NOT NULL, | ||
"expire" bigint NOT NULL DEFAULT 0, | ||
"created_at" bigint NOT NULL DEFAULT ((EXTRACT(EPOCH FROM CURRENT_TIMESTAMP) * 1000)::bigint), | ||
"updated_at" bigint NOT NULL DEFAULT ((EXTRACT(EPOCH FROM CURRENT_TIMESTAMP) * 1000)::bigint), | ||
"deleted_at" bigint NOT NULL DEFAULT 0, | ||
CONSTRAINT "idx_lockers_key" UNIQUE ("key", "deleted_at") | ||
); | ||
|
||
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 |
---|---|---|
@@ -1,11 +0,0 @@ | ||
CREATE TABLE IF NOT EXISTS `lockers` ( | ||
`id` integer PRIMARY KEY AUTOINCREMENT, | ||
`key` varchar(256) NOT NULL, | ||
`value` varchar(256) NOT NULL, | ||
`expire` integer NOT NULL DEFAULT 0, | ||
`created_at` integer NOT NULL DEFAULT (unixepoch () * 1000), | ||
`updated_at` integer NOT NULL DEFAULT (unixepoch () * 1000), | ||
`deleted_at` integer NOT NULL DEFAULT 0, | ||
CONSTRAINT `idx_lockers_key` UNIQUE (`key`, `deleted_at`) | ||
); | ||
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.