From b6f0089a87fbd9a843e5fdb620bb3d5dbf7ef6fb Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 27 Jul 2024 19:55:49 +0530 Subject: [PATCH 1/2] chore: Update Bot table with auto reset session and inactivity timeout columns --- .../20240725173556_auto_reset/migration.sql | 3 --- server/prisma/migrations/q_29/migration.sql | 11 +++++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 server/prisma/migrations/20240725173556_auto_reset/migration.sql create mode 100644 server/prisma/migrations/q_29/migration.sql diff --git a/server/prisma/migrations/20240725173556_auto_reset/migration.sql b/server/prisma/migrations/20240725173556_auto_reset/migration.sql deleted file mode 100644 index 4fd4633d..00000000 --- a/server/prisma/migrations/20240725173556_auto_reset/migration.sql +++ /dev/null @@ -1,3 +0,0 @@ --- AlterTable -ALTER TABLE "Bot" ADD COLUMN "autoResetSession" BOOLEAN NOT NULL DEFAULT false, -ADD COLUMN "inactivityTimeout" INTEGER DEFAULT 3600; diff --git a/server/prisma/migrations/q_29/migration.sql b/server/prisma/migrations/q_29/migration.sql new file mode 100644 index 00000000..95dea1a9 --- /dev/null +++ b/server/prisma/migrations/q_29/migration.sql @@ -0,0 +1,11 @@ +-- AlterTable +DO $$ +BEGIN + IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Bot' AND column_name = 'autoResetSession') THEN + ALTER TABLE "Bot" ADD COLUMN "autoResetSession" BOOLEAN NOT NULL DEFAULT false; + END IF; + + IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'Bot' AND column_name = 'inactivityTimeout') THEN + ALTER TABLE "Bot" ADD COLUMN "inactivityTimeout" INTEGER DEFAULT 3600; + END IF; +END $$; From 3b6c4f4137cd74de61e6a5466ee8c22fd8fff81b Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 27 Jul 2024 20:00:03 +0530 Subject: [PATCH 2/2] chore: Update package.json versions to 1.9.2 --- app/ui/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/package.json b/app/ui/package.json index 8d9ac13c..47148dee 100644 --- a/app/ui/package.json +++ b/app/ui/package.json @@ -1,7 +1,7 @@ { "name": "app", "private": true, - "version": "1.9.1", + "version": "1.9.2", "type": "module", "scripts": { "dev": "vite", diff --git a/package.json b/package.json index c000664b..a27852ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dialoqbase", - "version": "1.9.1", + "version": "1.9.2", "description": "Create chatbots with ease", "scripts": { "ui:dev": "pnpm run --filter ui dev",