Skip to content

Commit

Permalink
switch pk indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Jan 26, 2023
1 parent dcbad25 commit 4719922
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export async function up(db: Kysely<any>): Promise<void> {
.addColumn('block', 'varchar', (col) => col.notNull())
.addColumn('creator', 'varchar', (col) => col.notNull())
.addPrimaryKeyConstraint(`${commitBlockTable}_pkey`, [
'creator',
'commit',
'block',
'creator',
])
.execute()
await db.schema
Expand All @@ -26,8 +26,8 @@ export async function up(db: Kysely<any>): Promise<void> {
.addColumn('prev', 'varchar')
.addColumn('creator', 'varchar', (col) => col.notNull())
.addPrimaryKeyConstraint(`${commitHistoryTable}_pkey`, [
'commit',
'creator',
'commit',
])
.execute()

Expand Down

0 comments on commit 4719922

Please sign in to comment.