Skip to content

Commit 8d0f983

Browse files
version handled properly, so now if installed new version will create new db and keep atmost 2, extra as backup.
1 parent dc03f13 commit 8d0f983

11 files changed

Lines changed: 2442 additions & 9 deletions

File tree

ERD.pdf

846 Bytes
Binary file not shown.

ERD.svg

Lines changed: 1 addition & 1 deletion
Loading

drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "dotenv/config";
22
import { defineConfig } from "drizzle-kit";
3-
import path from "path";
3+
import path from "node:path";
44

55
const dbPath = `file:${path.join("db", "api-bolt.db")}`;
66

drizzle/0001_funny_reavers.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CREATE TABLE `version_table` (
2+
`key` text PRIMARY KEY DEFAULT 'version' NOT NULL,
3+
`value` text
4+
);

0 commit comments

Comments
 (0)