From 19751a4dad43bed118b12c8a0aa93a37f30b6a1d Mon Sep 17 00:00:00 2001 From: Raphael Roumezin Date: Fri, 15 Nov 2024 18:41:41 +0100 Subject: [PATCH] Fixed migration --- .../migrations/1711809658053_add_rank_to_press_articles.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/1711809658053_add_rank_to_press_articles.ts b/database/migrations/1711809658053_add_rank_to_press_articles.ts index 110c7d8..492eb32 100644 --- a/database/migrations/1711809658053_add_rank_to_press_articles.ts +++ b/database/migrations/1711809658053_add_rank_to_press_articles.ts @@ -10,6 +10,8 @@ export default class extends BaseSchema { } public async down() { - this.schema.dropTable(this.tableName) + this.schema.alterTable(this.tableName, (table) => { + table.dropColumn('rank') + }) } }