mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-21 01:50:56 -04:00
Fix for down migrations
This commit is contained in:
parent
469ceee02e
commit
bad2feaafd
@ -25,6 +25,7 @@ class AddEmailTemplates extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
|
if (Schema::hasColumn('accounts', 'email_template_invoice')) {
|
||||||
Schema::table('accounts', function ($table) {
|
Schema::table('accounts', function ($table) {
|
||||||
$table->dropColumn('email_template_invoice');
|
$table->dropColumn('email_template_invoice');
|
||||||
$table->dropColumn('email_template_quote');
|
$table->dropColumn('email_template_quote');
|
||||||
@ -32,3 +33,4 @@ class AddEmailTemplates extends Migration
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -42,6 +42,7 @@ class AddReminderEmails extends Migration
|
|||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('accounts', function ($table) {
|
Schema::table('accounts', function ($table) {
|
||||||
|
if (Schema::hasColumn('accounts', 'email_subject_invoice')) {
|
||||||
$table->dropColumn('email_subject_invoice');
|
$table->dropColumn('email_subject_invoice');
|
||||||
$table->dropColumn('email_subject_quote');
|
$table->dropColumn('email_subject_quote');
|
||||||
$table->dropColumn('email_subject_payment');
|
$table->dropColumn('email_subject_payment');
|
||||||
@ -53,6 +54,7 @@ class AddReminderEmails extends Migration
|
|||||||
$table->dropColumn('email_template_reminder1');
|
$table->dropColumn('email_template_reminder1');
|
||||||
$table->dropColumn('email_template_reminder2');
|
$table->dropColumn('email_template_reminder2');
|
||||||
$table->dropColumn('email_template_reminder3');
|
$table->dropColumn('email_template_reminder3');
|
||||||
|
}
|
||||||
|
|
||||||
$table->dropColumn('enable_reminder1');
|
$table->dropColumn('enable_reminder1');
|
||||||
$table->dropColumn('enable_reminder2');
|
$table->dropColumn('enable_reminder2');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user