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'); + }); + } + +}