Skip to content

Commit

Permalink
debug: changed BIG_INT to INTEGER to use AUTOINCREMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Jan 12, 2024
1 parent 7374f81 commit 4b71425
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dist/src/utils/migrate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/utils/migrate.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/utils/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default async function migrate(): Promise<void> {
sphinxLogger.info('adding lsat table', logging.DB)
await sequelize.query(`
CREATE TABLE sphinx_lsats (
id BIGINT PRIMARY KEY AUTOINCREMENT,
id INTEGER PRIMARY KEY AUTOINCREMENT,
identifier TEXT,
created_at DATETIME,
updated_at DATETIME,
Expand All @@ -247,8 +247,7 @@ export default async function migrate(): Promise<void> {
tenant BIGINT
)`)
} catch (e) {
console.log(JSON.stringify(e))
sphinxLogger.error(['problem adding lsat table:', e.message], logging.DB)
// sphinxLogger.error(['problem adding lsat table:', e.message], logging.DB)
}

// Add status column to sphinx_lsats
Expand Down

0 comments on commit 4b71425

Please sign in to comment.