feat: Make key field primary key for app config model

This commit is contained in:
Faruk AYDIN
2024-10-24 15:14:41 +02:00
parent ac8ddedfb5
commit 6a7a90536b
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
export async function up(knex) {
return knex.schema.alterTable('app_configs', function (table) {
table.dropPrimary();
table.primary('key');
});
}
export async function down(knex) {
return knex.schema.alterTable('app_configs', function (table) {
table.dropPrimary();
table.primary('id');
});
}