mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add command migrations
This commit is contained in:
parent
67fb901065
commit
a6c164f8e0
1
migrations/000003_create_commands_table.down.sql
Normal file
1
migrations/000003_create_commands_table.down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE IF EXISTS commands;
|
6
migrations/000003_create_commands_table.up.sql
Normal file
6
migrations/000003_create_commands_table.up.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
CREATE TABLE IF NOT EXISTS commands (
|
||||
id bigserial PRIMARY KEY,
|
||||
name text UNIQUE NOT NULL,
|
||||
text text NOT NULL,
|
||||
permission integer NOT NULL
|
||||
);
|
Loading…
Reference in a new issue