1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Bug fix and new fields

This commit is contained in:
Hillel Coren 2016-01-27 19:42:40 +02:00
parent 9c96f09fc0
commit 40786c3668

View File

@ -0,0 +1,64 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddHeaderFooterOption extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function($table)
{
$table->boolean('all_pages_footer');
$table->boolean('all_pages_header');
$table->boolean('show_currency_code');
$table->date('pro_plan_trial')->nullable();
});
Schema::table('gateways', function($table)
{
$table->boolean('is_offsite');
$table->boolean('is_secure');
});
Schema::table('expenses', function($table)
{
$table->string('transaction_id')->nullable()->change();
$table->unsignedInteger('bank_id')->nullable()->change();
});
Schema::table('vendors', function($table)
{
$table->string('transaction_name')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('accounts', function($table)
{
$table->dropColumn('all_pages_footer');
$table->dropColumn('all_pages_header');
$table->dropColumn('show_currency_code');
$table->dropColumn('pro_plan_trial');
});
Schema::table('gateways', function($table)
{
$table->dropColumn('is_offsite');
$table->dropColumn('is_secure');
});
}
}