Add swap currency symbol to currency
This commit is contained in:
parent
8a8534fc74
commit
9d67e54fbb
1 changed files with 32 additions and 0 deletions
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue