missing await on migrations
This commit is contained in:
@@ -4,11 +4,11 @@ export class Migration20251210043520 extends Migration {
|
||||
override async up(): Promise<void> {
|
||||
const knex = this.getKnex();
|
||||
|
||||
knex.schema.alterTable("package_detail", (table) => {
|
||||
await knex.schema.alterTable("package_detail", (table) => {
|
||||
table.dropColumn("transportation_id");
|
||||
});
|
||||
|
||||
knex.schema.alterTable("package_detail", (table) => {
|
||||
await knex.schema.alterTable("package_detail", (table) => {
|
||||
// Columns
|
||||
table.string("transportation_id", 30).notNullable();
|
||||
// Constraints
|
||||
@@ -26,11 +26,11 @@ export class Migration20251210043520 extends Migration {
|
||||
override async down(): Promise<void> {
|
||||
const knex = this.getKnex();
|
||||
|
||||
knex.schema.alterTable("package_detail", (table) => {
|
||||
await knex.schema.alterTable("package_detail", (table) => {
|
||||
table.dropColumn("transportation_id");
|
||||
});
|
||||
|
||||
knex.schema.alterTable("package_detail", (table) => {
|
||||
await knex.schema.alterTable("package_detail", (table) => {
|
||||
// Columns
|
||||
table.string("transportation_id", 30).notNullable();
|
||||
// Constraints
|
||||
|
||||
Reference in New Issue
Block a user