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', + ]; +}