Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Jan 10, 2025
1 parent 7b4bee3 commit 9eb2a68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storage/framework/core/database/src/drivers/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
fetchTables,
findDifferingKeys,
getLastMigrationFields,
hasMigrationBeenCreated,
hasTableBeenMigrated,
isArrayEqual,
mapFieldTypeToColumnType,
Expand Down Expand Up @@ -297,7 +298,7 @@ async function createPivotTableMigration(model: Model, modelPath: string) {
}

async function createPasskeyMigration() {
const hasBeenMigrated = await hasTableBeenMigrated('users')
const hasBeenMigrated = await hasMigrationBeenCreated('users')

if (hasBeenMigrated)
return
Expand Down Expand Up @@ -328,7 +329,7 @@ async function createPasskeyMigration() {

Bun.write(migrationFilePath, migrationContent)

log.success('Created passkey table')
log.success(`Created migration: ${italic(migrationFileName)}`)
}

async function createAlterTableMigration(modelPath: string) {
Expand Down

0 comments on commit 9eb2a68

Please sign in to comment.