From 40786c3668ae9071c0bb9b6250dd2ad6868d7d6f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 27 Jan 2016 19:42:40 +0200 Subject: [PATCH] Bug fix and new fields --- ..._01_27_173015_add_header_footer_option.php | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 database/migrations/2016_01_27_173015_add_header_footer_option.php diff --git a/database/migrations/2016_01_27_173015_add_header_footer_option.php b/database/migrations/2016_01_27_173015_add_header_footer_option.php new file mode 100644 index 000000000000..0cb690a17383 --- /dev/null +++ b/database/migrations/2016_01_27_173015_add_header_footer_option.php @@ -0,0 +1,64 @@ +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'); + }); + } + +}