From 47689d105281ad87f2d45a268852aec5f7a9e2af Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Sun, 8 Oct 2023 09:03:56 -0400 Subject: [PATCH] migrator --- .../src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql diff --git a/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql b/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql new file mode 100644 index 00000000..4eb9f928 --- /dev/null +++ b/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql @@ -0,0 +1,11 @@ +USE `picsure`; + +CREATE TABLE `site` ( + `uuid` binary(16) NOT NULL, + `code` varchar(15) COLLATE utf8_bin DEFAULT NULL, + `name` varchar(255) COLLATE utf8_bin DEFAULT NULL, + `domain` varchar(255) COLLATE utf8_bin DEFAULT NULL, + PRIMARY KEY (`uuid`), + CONSTRAINT `unique_code` UNIQUE (`code`), + CONSTRAINT `unique_domain` UNIQUE (`domain`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;