Skip to content

Commit

Permalink
Merge branch 'default' into keep-migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored Nov 26, 2024
2 parents f355860 + 9a88ab0 commit b9b087b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/migrations/002-sql.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ async function up({ context: uw }) {
.addColumn('source_data', 'jsonb')
.addColumn('created_at', 'timestamp', (col) => col.notNull().defaultTo(now))
.execute();
await db.schema.createIndex('history_entries_created_at')
.on('history_entries')
.column('created_at')
.execute();

await db.schema.createTable('feedback')
.addColumn('history_entry_id', 'uuid', (col) => col.notNull().references('historyEntries.id'))
Expand Down

0 comments on commit b9b087b

Please sign in to comment.