diff --git a/migrations/000003_create_commands_table.down.sql b/migrations/000003_create_commands_table.down.sql new file mode 100644 index 0000000..ec2e7a1 --- /dev/null +++ b/migrations/000003_create_commands_table.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS commands; \ No newline at end of file diff --git a/migrations/000003_create_commands_table.up.sql b/migrations/000003_create_commands_table.up.sql new file mode 100644 index 0000000..3cc8684 --- /dev/null +++ b/migrations/000003_create_commands_table.up.sql @@ -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 +);