From 544cef37231ab4b740570529231caa4286da8565 Mon Sep 17 00:00:00 2001 From: Rey Date: Sun, 30 Apr 2023 15:40:02 +0800 Subject: [PATCH] fix claim messages content overflow (#186) * fix staffbox pagination * add migrations to deal with messages content overflow etc. --- ...sg_column_type_from_text_to_mediumtext.php | 32 +++++++++++++++++ ...r_columns_type_from_text_to_mediumtext.php | 34 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 database/migrations/2023_04_30_054425_alter_table_messages_msg_column_type_from_text_to_mediumtext.php create mode 100644 database/migrations/2023_04_30_054546_alter_table_torrents_descr_ori_descr_columns_type_from_text_to_mediumtext.php diff --git a/database/migrations/2023_04_30_054425_alter_table_messages_msg_column_type_from_text_to_mediumtext.php b/database/migrations/2023_04_30_054425_alter_table_messages_msg_column_type_from_text_to_mediumtext.php new file mode 100644 index 00000000..4fba0f41 --- /dev/null +++ b/database/migrations/2023_04_30_054425_alter_table_messages_msg_column_type_from_text_to_mediumtext.php @@ -0,0 +1,32 @@ +mediumText('msg')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('messages', function (Blueprint $table) { + $table->text('msg')->change(); + }); + } +}; diff --git a/database/migrations/2023_04_30_054546_alter_table_torrents_descr_ori_descr_columns_type_from_text_to_mediumtext.php b/database/migrations/2023_04_30_054546_alter_table_torrents_descr_ori_descr_columns_type_from_text_to_mediumtext.php new file mode 100644 index 00000000..430c31cb --- /dev/null +++ b/database/migrations/2023_04_30_054546_alter_table_torrents_descr_ori_descr_columns_type_from_text_to_mediumtext.php @@ -0,0 +1,34 @@ +mediumText('descr')->change(); + $table->mediumText('ori_descr')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('text_to_mediumtext', function (Blueprint $table) { + $table->text('descr')->change(); + $table->text('ori_descr')->change(); + }); + } +};