invoiceninja/database/migrations/2015_11_03_181318_improve_currency_localization.php

35 lines
816 B
PHP
Raw Permalink Normal View History

2015-11-03 21:03:24 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
2017-01-30 18:05:31 +02:00
class ImproveCurrencyLocalization extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2015-11-03 21:03:24 +02:00
Schema::table('countries', function ($table) {
$table->boolean('swap_currency_symbol')->default(0);
$table->string('thousand_separator')->nullable();
$table->string('decimal_separator')->nullable();
});
2017-01-30 18:05:31 +02:00
}
2015-11-03 21:03:24 +02:00
2017-01-30 18:05:31 +02:00
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2015-11-03 21:03:24 +02:00
Schema::table('countries', function ($table) {
$table->dropColumn('swap_currency_symbol');
$table->dropColumn('thousand_separator');
$table->dropColumn('decimal_separator');
});
2017-01-30 18:05:31 +02:00
}
2015-11-03 21:03:24 +02:00
}