From 09a517a28b38000f4f585f351fffffedcfd74845 Mon Sep 17 00:00:00 2001 From: Seprintour Date: Fri, 18 Aug 2023 12:57:16 +0100 Subject: [PATCH] chore: sessions sql migration --- sql-migrations/sessions_table.sql | 4 ++++ sql-migrations/telegram_tables_rls.sql | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 sql-migrations/sessions_table.sql diff --git a/sql-migrations/sessions_table.sql b/sql-migrations/sessions_table.sql new file mode 100644 index 0000000..94db8b5 --- /dev/null +++ b/sql-migrations/sessions_table.sql @@ -0,0 +1,4 @@ +CREATE TABLE sessions ( + key VARCHAR(255) PRIMARY KEY, + value JSONB +); \ No newline at end of file diff --git a/sql-migrations/telegram_tables_rls.sql b/sql-migrations/telegram_tables_rls.sql index 638060d..9b868a8 100644 --- a/sql-migrations/telegram_tables_rls.sql +++ b/sql-migrations/telegram_tables_rls.sql @@ -1 +1,2 @@ -ALTER TABLE telegram_bot_groups ENABLE ROW LEVEL SECURITY; \ No newline at end of file +ALTER TABLE telegram_bot_groups ENABLE ROW LEVEL SECURITY; +ALTER TABLE sessions ENABLE ROW LEVEL SECURITY; \ No newline at end of file