From 16054c81e75458d92f059bc23ac4c3c1bf818b3e Mon Sep 17 00:00:00 2001 From: gerchek Date: Wed, 16 Mar 2022 23:38:26 +0500 Subject: [PATCH] add field date --- plugins/atash/contact/models/OnlineCard.php | 3 ++- ...r_table_update_atash_contact_contact_3.php | 23 +++++++++++++++++++ ...er_table_update_atash_contact_credit_5.php | 23 +++++++++++++++++++ ...ble_update_atash_contact_online_card_4.php | 23 +++++++++++++++++++ plugins/atash/contact/updates/version.yaml | 9 ++++++++ 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 plugins/atash/contact/updates/builder_table_update_atash_contact_contact_3.php create mode 100644 plugins/atash/contact/updates/builder_table_update_atash_contact_credit_5.php create mode 100644 plugins/atash/contact/updates/builder_table_update_atash_contact_online_card_4.php diff --git a/plugins/atash/contact/models/OnlineCard.php b/plugins/atash/contact/models/OnlineCard.php index 60ae126..02e362e 100644 --- a/plugins/atash/contact/models/OnlineCard.php +++ b/plugins/atash/contact/models/OnlineCard.php @@ -47,7 +47,8 @@ class OnlineCard extends Model 'selected_time', 'the_codeword', 'user_id', - 'file' + 'file', + 'date' ]; protected $guarded = ['*']; diff --git a/plugins/atash/contact/updates/builder_table_update_atash_contact_contact_3.php b/plugins/atash/contact/updates/builder_table_update_atash_contact_contact_3.php new file mode 100644 index 0000000..76124ec --- /dev/null +++ b/plugins/atash/contact/updates/builder_table_update_atash_contact_contact_3.php @@ -0,0 +1,23 @@ +string('date'); + }); + } + + public function down() + { + Schema::table('atash_contact_contact', function($table) + { + $table->dropColumn('date'); + }); + } +} diff --git a/plugins/atash/contact/updates/builder_table_update_atash_contact_credit_5.php b/plugins/atash/contact/updates/builder_table_update_atash_contact_credit_5.php new file mode 100644 index 0000000..5fa6d13 --- /dev/null +++ b/plugins/atash/contact/updates/builder_table_update_atash_contact_credit_5.php @@ -0,0 +1,23 @@ +string('date'); + }); + } + + public function down() + { + Schema::table('atash_contact_credit', function($table) + { + $table->dropColumn('date'); + }); + } +} diff --git a/plugins/atash/contact/updates/builder_table_update_atash_contact_online_card_4.php b/plugins/atash/contact/updates/builder_table_update_atash_contact_online_card_4.php new file mode 100644 index 0000000..3c54071 --- /dev/null +++ b/plugins/atash/contact/updates/builder_table_update_atash_contact_online_card_4.php @@ -0,0 +1,23 @@ +string('date'); + }); + } + + public function down() + { + Schema::table('atash_contact_online_card', function($table) + { + $table->dropColumn('date'); + }); + } +} diff --git a/plugins/atash/contact/updates/version.yaml b/plugins/atash/contact/updates/version.yaml index e6ad3f4..54f14e8 100644 --- a/plugins/atash/contact/updates/version.yaml +++ b/plugins/atash/contact/updates/version.yaml @@ -39,3 +39,12 @@ 1.0.14: - 'Updated table atash_contact_credit' - builder_table_update_atash_contact_credit_4.php +1.0.15: + - 'Updated table atash_contact_contact' + - builder_table_update_atash_contact_contact_3.php +1.0.16: + - 'Updated table atash_contact_credit' + - builder_table_update_atash_contact_credit_5.php +1.0.17: + - 'Updated table atash_contact_online_card' + - builder_table_update_atash_contact_online_card_4.php