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