1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Add currency_id to billing_subscriptions table

This commit is contained in:
Benjamin Beganović 2021-03-09 14:24:31 +01:00
parent 0e33587dad
commit 868b6efd8e
2 changed files with 30 additions and 0 deletions

View File

@ -41,6 +41,7 @@ class BillingSubscription extends BaseModel
'plan_map',
'refund_period',
'webhook_configuration',
'currency_id',
];
protected $casts = [

View File

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddCurrencyIdToBillingSubscriptionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('billing_subscriptions', function (Blueprint $table) {
$table->unsignedInteger('currency_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}