diff --git a/migrations/README.md b/migrations/README.md index 2ee38e0001..fc11adc188 100644 --- a/migrations/README.md +++ b/migrations/README.md @@ -1,6 +1,6 @@ **THIS DIRECTORY IS NOT FOR RUNTIME USE** - Using `libsql` as the `sqlite3` driver, and `drizzle` as the ORM and database migration tool -- `migrations/sqlite-drizzle` contains auto-generated migration data. Please **DO NOT** modify it. +- `migrations/sqlite-drizzle` contains auto-generated migration data. Please **DO NOT** modify it. - If table structure changes, we should run migrations. - To generate migrations, use the command `yarn run migrations:generate` diff --git a/migrations/sqlite-drizzle/meta/0000_snapshot.json b/migrations/sqlite-drizzle/meta/0000_snapshot.json index 14e22e0156..51c5ed6cba 100644 --- a/migrations/sqlite-drizzle/meta/0000_snapshot.json +++ b/migrations/sqlite-drizzle/meta/0000_snapshot.json @@ -1,117 +1,114 @@ { - "version": "6", + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + }, "dialect": "sqlite", + "enums": {}, "id": "de8009d7-95b9-4f99-99fa-4b8795708f21", + "internal": { + "indexes": {} + }, "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "app_state": { - "name": "app_state", + "checkConstraints": {}, "columns": { - "key": { - "name": "key", - "type": "text", - "primaryKey": true, - "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", + "created_at": { + "autoincrement": false, + "name": "created_at", + "notNull": false, "primaryKey": false, - "notNull": true, - "autoincrement": false + "type": "integer" }, "description": { + "autoincrement": false, "name": "description", - "type": "text", - "primaryKey": false, "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "integer", "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "updated_at": { - "name": "updated_at", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} - }, - "preference": { - "name": "preference", - "columns": { - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "autoincrement": false + "type": "text" }, "key": { + "autoincrement": false, "name": "key", - "type": "text", - "primaryKey": false, "notNull": true, - "autoincrement": false - }, - "value": { - "name": "value", - "type": "text", - "primaryKey": false, - "notNull": false, - "autoincrement": false - }, - "created_at": { - "name": "created_at", - "type": "integer", - "primaryKey": false, - "notNull": false, - "autoincrement": false + "primaryKey": true, + "type": "text" }, "updated_at": { + "autoincrement": false, "name": "updated_at", - "type": "integer", - "primaryKey": false, "notNull": false, - "autoincrement": false + "primaryKey": false, + "type": "integer" + }, + "value": { + "autoincrement": false, + "name": "value", + "notNull": true, + "primaryKey": false, + "type": "text" } }, + "compositePrimaryKeys": {}, + "foreignKeys": {}, + "indexes": {}, + "name": "app_state", + "uniqueConstraints": {} + }, + "preference": { + "checkConstraints": {}, + "columns": { + "created_at": { + "autoincrement": false, + "name": "created_at", + "notNull": false, + "primaryKey": false, + "type": "integer" + }, + "key": { + "autoincrement": false, + "name": "key", + "notNull": true, + "primaryKey": false, + "type": "text" + }, + "scope": { + "autoincrement": false, + "name": "scope", + "notNull": true, + "primaryKey": false, + "type": "text" + }, + "updated_at": { + "autoincrement": false, + "name": "updated_at", + "notNull": false, + "primaryKey": false, + "type": "integer" + }, + "value": { + "autoincrement": false, + "name": "value", + "notNull": false, + "primaryKey": false, + "type": "text" + } + }, + "compositePrimaryKeys": {}, + "foreignKeys": {}, "indexes": { "scope_name_idx": { - "name": "scope_name_idx", - "columns": [ - "scope", - "key" - ], - "isUnique": false + "columns": ["scope", "key"], + "isUnique": false, + "name": "scope_name_idx" } }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "checkConstraints": {} + "name": "preference", + "uniqueConstraints": {} } }, - "views": {}, - "enums": {}, - "_meta": { - "schemas": {}, - "tables": {}, - "columns": {} - }, - "internal": { - "indexes": {} - } -} \ No newline at end of file + "version": "6", + "views": {} +} diff --git a/migrations/sqlite-drizzle/meta/_journal.json b/migrations/sqlite-drizzle/meta/_journal.json index df762a19b0..db2791fd7f 100644 --- a/migrations/sqlite-drizzle/meta/_journal.json +++ b/migrations/sqlite-drizzle/meta/_journal.json @@ -1,13 +1,13 @@ { - "version": "7", "dialect": "sqlite", "entries": [ { + "breakpoints": true, "idx": 0, - "version": "6", - "when": 1754745234572, "tag": "0000_solid_lord_hawal", - "breakpoints": true + "version": "6", + "when": 1754745234572 } - ] -} \ No newline at end of file + ], + "version": "7" +} diff --git a/src/renderer/dataRefactorMigrate.html b/src/renderer/dataRefactorMigrate.html index 93e2bfbec1..6b0287db2c 100644 --- a/src/renderer/dataRefactorMigrate.html +++ b/src/renderer/dataRefactorMigrate.html @@ -1,62 +1,61 @@ - + +
+ +