From a6c164f8e08f367abab68801477aaeee88e8e5a8 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Thu, 11 Aug 2022 01:17:33 +0200 Subject: [PATCH] add command migrations --- migrations/000003_create_commands_table.down.sql | 1 + migrations/000003_create_commands_table.up.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/000003_create_commands_table.down.sql create mode 100644 migrations/000003_create_commands_table.up.sql 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 +);