boolean('is_active')->default(1); $table->string('color')->nullable(); $table->boolean('featured')->nullable()->default(0); $table->boolean('is_free')->nullable()->default(0); $table->float('price')->nullable(); $table->string('period')->nullable(); $table->float('tax_rate')->nullable(); $table->string('tax_name')->nullable(); $table->text('features_list')->nullable(); $table->integer('teams_limit')->nullable(); $table->integer('storage_limit')->nullable(); $table->integer('orderby')->default(0); $table->integer('plan_type')->default(1); $table->integer('currency_id')->unsigned()->nullable(); $table->foreign('currency_id')->references('id')->on('bap_currency'); }); } /** * Reverse the migrations. * * @return void */ public function down() { $cols = [ 'is_active','color','featured','price','teams_limit', 'storage_limit','orderby','currency_id','tax_rate','tax_name' ]; Schema::table('bap_companies_plan', function (Blueprint $table) use ($cols) { $table->dropColumn($cols); }); } }