mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
37 lines
812 B
PHP
37 lines
812 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
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');
|
|
});
|
|
}
|
|
|
|
}
|