invoiceninja/database/migrations/2015_11_30_133206_add_email_designs.php
2015-12-02 15:26:06 +02:00

35 lines
784 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class AddEmailDesigns extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('accounts', function ($table) {
$table->smallInteger('email_design_id')->default(1);
$table->boolean('enable_email_markup')->default(false);
$table->string('website')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('accounts', function ($table) {
$table->dropColumn('email_design_id');
$table->dropColumn('enable_email_markup');
$table->dropColumn('website');
});
}
}