new schema to contain basic channel information
This commit is contained in:
2
server/migrations/2020-03-11-005217_channels/down.sql
Normal file
2
server/migrations/2020-03-11-005217_channels/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE `channels`;
|
||||
7
server/migrations/2020-03-11-005217_channels/up.sql
Normal file
7
server/migrations/2020-03-11-005217_channels/up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- i32, String, i32
|
||||
CREATE TABLE IF NOT EXISTS `channels` (
|
||||
`id` INTEGER NOT NULL auto_increment,
|
||||
`name` VARCHAR(255) NOT NULL,
|
||||
`permissions` INTEGER NOT NULL,
|
||||
PRIMARY KEY(`id`)
|
||||
);
|
||||
Reference in New Issue
Block a user