mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
39 lines
825 B
PHP
39 lines
825 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class AddEmailTemplates extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('accounts', function($table)
|
|
{
|
|
$table->text('email_template_invoice')->nullable();
|
|
$table->text('email_template_quote')->nullable();
|
|
$table->text('email_template_payment')->nullable();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::table('accounts', function($table)
|
|
{
|
|
$table->dropColumn('email_template_invoice');
|
|
$table->dropColumn('email_template_quote');
|
|
$table->dropColumn('email_template_payment');
|
|
});
|
|
}
|
|
|
|
}
|