invoiceninja/database/migrations/2015_11_03_181318_improve_currency_localization.php
2017-01-30 21:40:43 +02:00

35 lines
816 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class ImproveCurrencyLocalization extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('countries', function ($table) {
$table->boolean('swap_currency_symbol')->default(0);
$table->string('thousand_separator')->nullable();
$table->string('decimal_separator')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('countries', function ($table) {
$table->dropColumn('swap_currency_symbol');
$table->dropColumn('thousand_separator');
$table->dropColumn('decimal_separator');
});
}
}