diff options
| author | Dhravya Shah <[email protected]> | 2024-07-25 17:35:15 -0500 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-07-25 17:35:15 -0500 |
| commit | c57719446ae95c2bbd432d7b2b6648a23b35c351 (patch) | |
| tree | c6f7aca777c7f4748cc6dc335fe56fba8725af02 /apps/web/migrations | |
| parent | add try catch in api/add for better error handling (diff) | |
| parent | ughh, regenerated migrations. my bad. (diff) | |
| download | supermemory-kush/experimental-thread.tar.xz supermemory-kush/experimental-thread.zip | |
solve merge conflictskush/experimental-thread
Diffstat (limited to 'apps/web/migrations')
| -rw-r--r-- | apps/web/migrations/0000_steep_moira_mactaggert.sql (renamed from apps/web/migrations/0000_exotic_sway.sql) | 4 | ||||
| -rw-r--r-- | apps/web/migrations/meta/0000_snapshot.json | 18 | ||||
| -rw-r--r-- | apps/web/migrations/meta/_journal.json | 4 |
3 files changed, 22 insertions, 4 deletions
diff --git a/apps/web/migrations/0000_exotic_sway.sql b/apps/web/migrations/0000_steep_moira_mactaggert.sql index 65a41795..5813639d 100644 --- a/apps/web/migrations/0000_exotic_sway.sql +++ b/apps/web/migrations/0000_steep_moira_mactaggert.sql @@ -43,6 +43,7 @@ CREATE TABLE `chatHistory` ( `answerParts` text, `answerSources` text, `answerJustification` text, + `createdAt` integer DEFAULT '"2024-07-25T22:31:50.848Z"' NOT NULL, FOREIGN KEY (`threadId`) REFERENCES `chatThread`(`id`) ON UPDATE no action ON DELETE cascade ); --> statement-breakpoint @@ -106,7 +107,8 @@ CREATE TABLE `user` ( `email` text NOT NULL, `emailVerified` integer, `image` text, - `telegramId` text + `telegramId` text, + `hasOnboarded` integer DEFAULT false ); --> statement-breakpoint CREATE TABLE `verificationToken` ( diff --git a/apps/web/migrations/meta/0000_snapshot.json b/apps/web/migrations/meta/0000_snapshot.json index 0639eb77..a7689010 100644 --- a/apps/web/migrations/meta/0000_snapshot.json +++ b/apps/web/migrations/meta/0000_snapshot.json @@ -1,7 +1,7 @@ { "version": "6", "dialect": "sqlite", - "id": "ab91d972-05ff-4916-84b7-1cfaab4c3879", + "id": "8705302a-eae7-4fbf-9ce8-8ae23df228a2", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "account": { @@ -298,6 +298,14 @@ "primaryKey": false, "notNull": false, "autoincrement": false + }, + "createdAt": { + "name": "createdAt", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'\"2024-07-25T22:31:50.848Z\"'" } }, "indexes": { @@ -738,6 +746,14 @@ "primaryKey": false, "notNull": false, "autoincrement": false + }, + "hasOnboarded": { + "name": "hasOnboarded", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false } }, "indexes": { diff --git a/apps/web/migrations/meta/_journal.json b/apps/web/migrations/meta/_journal.json index c7ab51e1..d79e2607 100644 --- a/apps/web/migrations/meta/_journal.json +++ b/apps/web/migrations/meta/_journal.json @@ -5,8 +5,8 @@ { "idx": 0, "version": "6", - "when": 1720360287793, - "tag": "0000_exotic_sway", + "when": 1721946710900, + "tag": "0000_steep_moira_mactaggert", "breakpoints": true } ] |