1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Add swap currency symbol to currency

This commit is contained in:
Bartlomiej Szala 2016-05-16 22:33:34 +02:00
parent 8a8534fc74
commit 9d67e54fbb

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSwapCurrencySymbolToCurrency extends Migration
{
const TABLE_NAME = 'currencies';
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(self::TABLE_NAME,function(Blueprint $table){
$table->boolean('swap_currency_symbol')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table(self::TABLE_NAME,function(Blueprint $table){
$table->dropColumn('swap_currency_symbol');
});
}
}