Skip to content

Commit 1f70d38

Browse files
chore: wip
1 parent 6f60f14 commit 1f70d38

File tree

5 files changed

+731
-803
lines changed

5 files changed

+731
-803
lines changed

storage/framework/core/database/src/drivers/sqlite.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -216,17 +216,6 @@ async function createTableMigration(modelPath: string) {
216216
migrationContent += `)\n`
217217
}
218218

219-
if (otherModelRelations?.length) {
220-
for (const modelRelation of otherModelRelations) {
221-
if (!modelRelation.foreignKey)
222-
continue
223-
224-
migrationContent += ` .addColumn('${modelRelation.foreignKey}', 'integer', (col) =>
225-
col.references('${modelRelation.relationTable}.id').onDelete('cascade')
226-
) \n`
227-
}
228-
}
229-
230219
if (twoFactorEnabled !== false && twoFactorEnabled)
231220
migrationContent += ` .addColumn('two_factor_secret', 'text')\n`
232221

storage/framework/core/database/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import { Pool } from 'pg'
99
// Use default values to avoid circular dependencies initially
1010
// These can be overridden later once config is fully loaded
1111
let appEnv = 'local'
12-
let dbDriver = 'mysql'
12+
let dbDriver = 'sqlite'
1313
let dbConfig = {
1414
connections: {
1515
sqlite: {
1616
database: 'database/stacks.sqlite',
1717
prefix: '',
1818
},
1919
mysql: {
20-
name: 'stacks',
20+
name: 'ice-tracker.sqlite',
2121
host: '127.0.0.1',
2222
username: 'root',
2323
password: '',

0 commit comments

Comments
 (0)