akaunting/database/migrations/2017_12_09_000000_add_currency_columns.php

41 lines
944 B
PHP
Raw Normal View History

2017-12-09 16:24:18 +03:00
<?php
use Illuminate\Database\Migrations\Migration;
class AddCurrencyColumns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('currencies', function ($table) {
$table->string('precision')->nullable();
$table->string('symbol')->nullable();
$table->integer('symbol_first')->default(1);
$table->string('decimal_mark')->nullable();
$table->string('thousands_separator')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('currencies', function ($table) {
2018-07-18 22:10:30 +03:00
$table->dropColumn([
'precision',
'symbol',
'symbol_first',
'decimal_mark',
'thousands_separator',
]);
2017-12-09 16:24:18 +03:00
});
}
}