mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
35 lines
784 B
PHP
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');
|
|
});
|
|
}
|
|
}
|