Minor fixes for recurring expenses - add field to activities table

This commit is contained in:
David Bomba 2021-09-06 07:48:41 +10:00
parent 8ee9261baa
commit 1466ecfcfe
2 changed files with 5 additions and 3 deletions

View File

@ -25,8 +25,5 @@ class AddSubscriptionIdToActivitiesTable extends Migration
*/
public function down()
{
Schema::table('activities', function (Blueprint $table) {
//
});
}
}

View File

@ -78,6 +78,11 @@ class RecurringExpensesSchema extends Migration
});
Schema::table('activities', function (Blueprint $table) {
$table->unsignedInteger('recurring_expense_id')->nullable();
$table->unsignedInteger('recurring_quote_id')->nullable();
});
Schema::table('recurring_quotes', function ($table){
$table->string('auto_bill')->default('off');
$table->boolean('auto_bill_enabled')->default(0);