diff --git a/server-api/migrations/2020-03-11-005217_channels/up.sql b/server-api/migrations/2020-03-11-005217_channels/up.sql index c5ca788..de4b94c 100644 --- a/server-api/migrations/2020-03-11-005217_channels/up.sql +++ b/server-api/migrations/2020-03-11-005217_channels/up.sql @@ -1,6 +1,7 @@ +-- TODO: somehow make the name colum unique CREATE TABLE IF NOT EXISTS `channels` ( `id` BIGINT UNSIGNED NOT NULL auto_increment, - `name` UNIQUE VARCHAR(255) NOT NULL, + `name` VARCHAR(255) NOT NULL, `description` VARCHAR(1024), `kind` INTEGER NOT NULL, PRIMARY KEY(`id`), UNIQUE KEY(`name`)