From 73bcdcc3c3d495eebb3277e930e64168087e1c42 Mon Sep 17 00:00:00 2001 From: mihalin Date: Sun, 20 Feb 2022 10:55:11 +0300 Subject: [PATCH] fix migration --- olgram/migrations/models/10_20220219201520_update.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 olgram/migrations/models/10_20220219201520_update.sql diff --git a/olgram/migrations/models/10_20220219201520_update.sql b/olgram/migrations/models/10_20220219201520_update.sql new file mode 100644 index 0000000..8e3aaa3 --- /dev/null +++ b/olgram/migrations/models/10_20220219201520_update.sql @@ -0,0 +1,4 @@ +-- upgrade -- +ALTER TABLE "bot" ADD "enable_threads" BOOL NOT NULL DEFAULT False; +-- downgrade -- +ALTER TABLE "bot" DROP COLUMN "enable_threads";