mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bug fix and new fields
This commit is contained in:
parent
9c96f09fc0
commit
40786c3668
@ -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');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user