use pk
This commit is contained in:
@@ -11,7 +11,7 @@ export async function up(
|
|||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
.alterTable('safelink_cursor')
|
.alterTable('safelink_cursor')
|
||||||
.addUniqueConstraint('uc_id', ['id'])
|
.addPrimaryKeyConstraint('pk_id', ['id'])
|
||||||
.execute()
|
.execute()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,6 +26,6 @@ export async function down(
|
|||||||
|
|
||||||
await db.schema
|
await db.schema
|
||||||
.alterTable('safelink_cursor')
|
.alterTable('safelink_cursor')
|
||||||
.dropConstraint('uc_id')
|
.dropConstraint('pk_id')
|
||||||
.execute()
|
.execute()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user