channel names must now be unique

This commit is contained in:
shockrah 2020-07-29 00:21:33 -07:00
parent b6db34f28f
commit c7922d4249

View File

@ -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`)
);
PRIMARY KEY(`id`), UNIQUE KEY(`name`)
);