From 63508153404d11885fcf5122aed9259de6448c08 Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Mon, 30 Nov 2020 11:13:12 +0300 Subject: [PATCH] #2760 demodata's datas fixed --- ....module.location__add_abv_to_countries.php | 32 ------------------- ...osoft.module.location__add_abv_country.php | 23 +++++++++++++ 2 files changed, 23 insertions(+), 32 deletions(-) delete mode 100644 addons/default/visiosoft/location-module/migrations/2020_10_13_133916_visiosoft.module.location__add_abv_to_countries.php create mode 100644 addons/default/visiosoft/location-module/migrations/2020_11_27_124940_visiosoft.module.location__add_abv_country.php diff --git a/addons/default/visiosoft/location-module/migrations/2020_10_13_133916_visiosoft.module.location__add_abv_to_countries.php b/addons/default/visiosoft/location-module/migrations/2020_10_13_133916_visiosoft.module.location__add_abv_to_countries.php deleted file mode 100644 index 3447542c6..000000000 --- a/addons/default/visiosoft/location-module/migrations/2020_10_13_133916_visiosoft.module.location__add_abv_to_countries.php +++ /dev/null @@ -1,32 +0,0 @@ -string('abv'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('location_countries_translations', function (Blueprint $table) { - $table->string('abv'); - }); - } -} diff --git a/addons/default/visiosoft/location-module/migrations/2020_11_27_124940_visiosoft.module.location__add_abv_country.php b/addons/default/visiosoft/location-module/migrations/2020_11_27_124940_visiosoft.module.location__add_abv_country.php new file mode 100644 index 000000000..e7c7a75cd --- /dev/null +++ b/addons/default/visiosoft/location-module/migrations/2020_11_27_124940_visiosoft.module.location__add_abv_country.php @@ -0,0 +1,23 @@ + 'countries', + ]; + + protected $fields = [ + 'abv' => 'anomaly.field_type.text', + ]; + + protected $assignments = [ + 'abv', + ]; +}