From 7f288e224dc28923f57a07f65bcc71a7a48e9bad Mon Sep 17 00:00:00 2001 From: Troels Liebe Bentsen Date: Tue, 14 Oct 2014 23:47:33 +0200 Subject: [PATCH] Added vat_number to clients table also --- ...p => 2014_10_01_141248_add_company_vat_number.php} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename app/database/migrations/{2014_10_01_141248_add_company_subtitle.php => 2014_10_01_141248_add_company_vat_number.php} (64%) diff --git a/app/database/migrations/2014_10_01_141248_add_company_subtitle.php b/app/database/migrations/2014_10_01_141248_add_company_vat_number.php similarity index 64% rename from app/database/migrations/2014_10_01_141248_add_company_subtitle.php rename to app/database/migrations/2014_10_01_141248_add_company_vat_number.php index 9d99c0760b43..9a1a79f98eca 100644 --- a/app/database/migrations/2014_10_01_141248_add_company_subtitle.php +++ b/app/database/migrations/2014_10_01_141248_add_company_vat_number.php @@ -3,7 +3,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class AddCompanySubtitle extends Migration { +class AddCompanyVatNumber extends Migration { /** * Run the migrations. @@ -16,6 +16,11 @@ class AddCompanySubtitle extends Migration { { $table->string('vat_number')->nullable(); }); + + Schema::table('clients', function($table) + { + $table->string('vat_number')->nullable(); + }); } /** @@ -26,6 +31,10 @@ class AddCompanySubtitle extends Migration { public function down() { Schema::table('accounts', function($table) + { + $table->dropColumn('vat_number'); + }); + Schema::table('clients', function($table) { $table->dropColumn('vat_number'); });