From cd73be588fcd45217f51592b8ba1f98dcb677aa3 Mon Sep 17 00:00:00 2001 From: Charles Teh Date: Thu, 23 Nov 2023 13:26:53 +0800 Subject: [PATCH] Add (migration): change certain fields to mediumtext --- ...lumns_to_mediumtext_in_rss_posts_table.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2023_11_23_052600_change_columns_to_mediumtext_in_rss_posts_table.php diff --git a/database/migrations/2023_11_23_052600_change_columns_to_mediumtext_in_rss_posts_table.php b/database/migrations/2023_11_23_052600_change_columns_to_mediumtext_in_rss_posts_table.php new file mode 100644 index 0000000..2192580 --- /dev/null +++ b/database/migrations/2023_11_23_052600_change_columns_to_mediumtext_in_rss_posts_table.php @@ -0,0 +1,36 @@ +mediumText('source')->change(); + $table->mediumText('source_url')->change(); + $table->mediumText('post_url')->change(); + $table->mediumText('title')->change(); + $table->mediumText('slug')->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('rss_posts', function (Blueprint $table) { + $table->string('source')->change(); + $table->string('source_url')->change(); + $table->string('post_url')->change(); + $table->string('title')->change(); + $table->string('slug')->change(); + }); + } +};