Renaming project to json-api for clarity sake
This commit is contained in:
2
json-api/migrations/2020-03-11-005217_channels/down.sql
Normal file
2
json-api/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`;
|
||||
8
json-api/migrations/2020-03-11-005217_channels/up.sql
Normal file
8
json-api/migrations/2020-03-11-005217_channels/up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- TODO: somehow make the name colum unique
|
||||
CREATE TABLE IF NOT EXISTS `channels` (
|
||||
`id` BIGINT UNSIGNED NOT NULL auto_increment,
|
||||
`name` VARCHAR(255) NOT NULL,
|
||||
`description` VARCHAR(1024),
|
||||
`kind` INTEGER NOT NULL,
|
||||
PRIMARY KEY(`id`), UNIQUE KEY(`name`)
|
||||
);
|
||||
Reference in New Issue
Block a user