From 6690c69efeba3b5bff1f82ba485939b3a8480d7e Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 19 Jul 2023 17:04:40 +1000 Subject: [PATCH] fix sqlite error --- .../2023_07_19_041445_update_attachments_table.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/database/migrations/2023_07_19_041445_update_attachments_table.php b/database/migrations/2023_07_19_041445_update_attachments_table.php index 7eb29de..bc7d022 100644 --- a/database/migrations/2023_07_19_041445_update_attachments_table.php +++ b/database/migrations/2023_07_19_041445_update_attachments_table.php @@ -13,6 +13,9 @@ return new class extends Migration { Schema::table('attachments', function (Blueprint $table) { $table->renameColumn('attachable_type', 'addendum_type'); + }); + + Schema::table('attachments', function (Blueprint $table) { $table->renameColumn('attachable_id', 'addendum_id'); }); } @@ -24,6 +27,9 @@ return new class extends Migration { Schema::table('attachments', function (Blueprint $table) { $table->renameColumn('addendum_type', 'attachable_type'); + }); + + Schema::table('attachments', function (Blueprint $table) { $table->renameColumn('addendum_id', 'attachable_id'); }); }