From bd0bdad6f409b5965c9aabbee608e69218b1a419 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 3 Aug 2023 19:56:59 +0500 Subject: [PATCH] from server --- ...der_table_update_tps_birzha_messages_2.php | 23 +++++++++++++++++++ plugins/tps/birzha/updates/version.yaml | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 plugins/tps/birzha/updates/builder_table_update_tps_birzha_messages_2.php diff --git a/plugins/tps/birzha/updates/builder_table_update_tps_birzha_messages_2.php b/plugins/tps/birzha/updates/builder_table_update_tps_birzha_messages_2.php new file mode 100644 index 0000000..17a689f --- /dev/null +++ b/plugins/tps/birzha/updates/builder_table_update_tps_birzha_messages_2.php @@ -0,0 +1,23 @@ +integer('chatroom_id'); + }); + } + + public function down() + { + Schema::table('tps_birzha_messages', function($table) + { + $table->dropColumn('chatroom_id'); + }); + } +} diff --git a/plugins/tps/birzha/updates/version.yaml b/plugins/tps/birzha/updates/version.yaml index e703cd7..dcfc44d 100644 --- a/plugins/tps/birzha/updates/version.yaml +++ b/plugins/tps/birzha/updates/version.yaml @@ -389,3 +389,6 @@ 1.0.136: - 'Created table tps_birzha_messages' - builder_table_create_tps_birzha_messages_2.php +1.0.137: + - 'Updated table tps_birzha_messages' + - builder_table_update_tps_birzha_messages_2.php