Skip to content

Commit

Permalink
migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Oct 8, 2023
1 parent 7c02fd6 commit 47689d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 47689d1

Please sign in to comment.