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:
parent
0e33587dad
commit
868b6efd8e
@ -41,6 +41,7 @@ class BillingSubscription extends BaseModel
|
||||
'plan_map',
|
||||
'refund_period',
|
||||
'webhook_configuration',
|
||||
'currency_id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
@ -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()
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user