From f6d47f729d6a3a500aed3106851f4bd6103cde46 Mon Sep 17 00:00:00 2001 From: mihalin Date: Mon, 1 Aug 2022 01:53:59 +0300 Subject: [PATCH] #15 antiflood --- olgram/migrations/models/14_20220801015243_update.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 olgram/migrations/models/14_20220801015243_update.sql diff --git a/olgram/migrations/models/14_20220801015243_update.sql b/olgram/migrations/models/14_20220801015243_update.sql new file mode 100644 index 0000000..6c9fafa --- /dev/null +++ b/olgram/migrations/models/14_20220801015243_update.sql @@ -0,0 +1,4 @@ +-- upgrade -- +ALTER TABLE "bot" ADD "enable_antiflood" BOOL NOT NULL DEFAULT False; +-- downgrade -- +ALTER TABLE "bot" DROP COLUMN "enable_antiflood";