From c7922d424974b9cd355e87080cc6be97ee40e3f4 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 29 Jul 2020 00:21:33 -0700 Subject: [PATCH] channel names must now be unique --- server/migrations/2020-03-11-005217_channels/up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/migrations/2020-03-11-005217_channels/up.sql b/server/migrations/2020-03-11-005217_channels/up.sql index f7d6d7a..067160f 100644 --- a/server/migrations/2020-03-11-005217_channels/up.sql +++ b/server/migrations/2020-03-11-005217_channels/up.sql @@ -3,5 +3,5 @@ CREATE TABLE IF NOT EXISTS `channels` ( `name` VARCHAR(255) NOT NULL, `description` VARCHAR(1024), `kind` INTEGER NOT NULL, - PRIMARY KEY(`id`) -); \ No newline at end of file + PRIMARY KEY(`id`), UNIQUE KEY(`name`) +);