diff --git a/website/database/migrations/1739026343722_alter_orders_table.ts b/website/database/migrations/1739026343722_alter_orders_table.ts new file mode 100644 index 0000000..13329c7 --- /dev/null +++ b/website/database/migrations/1739026343722_alter_orders_table.ts @@ -0,0 +1,17 @@ +import { BaseSchema } from '@adonisjs/lucid/schema' + +export default class extends BaseSchema { + protected tableName = 'orders' + + async up() { + this.schema.alterTable(this.tableName, (table) => { + table.dropColumn('request_id') + }) + } + + async down() { + this.schema.alterTable(this.tableName, (table) => { + table.integer('request_id') + }) + } +} \ No newline at end of file diff --git a/website/database/migrations/1739026559954_alter_orders_table.ts b/website/database/migrations/1739026559954_alter_orders_table.ts new file mode 100644 index 0000000..a03d16b --- /dev/null +++ b/website/database/migrations/1739026559954_alter_orders_table.ts @@ -0,0 +1,17 @@ +import { BaseSchema } from '@adonisjs/lucid/schema' + +export default class extends BaseSchema { + protected tableName = 'orders' + + async up() { + this.schema.alterTable(this.tableName, (table) => { + table.string('request_id') + }) + } + + async down() { + this.schema.alterTable(this.tableName, (table) => { + table.dropColumn('request_id') + }) + } +} \ No newline at end of file