From ef58f62e57de11a8e99c7792c9bf1c103349b85a Mon Sep 17 00:00:00 2001 From: Charles T Date: Thu, 24 Aug 2023 17:03:30 +0800 Subject: [PATCH] Add (migration) change cliff hanger from string to text --- ..._090249_change_cliffhanger_column_type.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2023_08_24_090249_change_cliffhanger_column_type.php diff --git a/database/migrations/2023_08_24_090249_change_cliffhanger_column_type.php b/database/migrations/2023_08_24_090249_change_cliffhanger_column_type.php new file mode 100644 index 0000000..4b9edfb --- /dev/null +++ b/database/migrations/2023_08_24_090249_change_cliffhanger_column_type.php @@ -0,0 +1,28 @@ +text('cliffhanger')->after('excerpt')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down() + { + Schema::table('posts', function (Blueprint $table) { + $table->string('cliffhanger')->after('excerpt')->nullable()->change(); + }); + } +};