From 868b6efd8e05d50c3b9b7007118cf35cff7d35ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 9 Mar 2021 14:24:31 +0100 Subject: [PATCH] Add currency_id to billing_subscriptions table --- app/Models/BillingSubscription.php | 1 + ...ency_id_to_billing_subscriptions_table.php | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 database/migrations/2021_03_09_132242_add_currency_id_to_billing_subscriptions_table.php diff --git a/app/Models/BillingSubscription.php b/app/Models/BillingSubscription.php index 7e3da4135bba..486e3134d607 100644 --- a/app/Models/BillingSubscription.php +++ b/app/Models/BillingSubscription.php @@ -41,6 +41,7 @@ class BillingSubscription extends BaseModel 'plan_map', 'refund_period', 'webhook_configuration', + 'currency_id', ]; protected $casts = [ diff --git a/database/migrations/2021_03_09_132242_add_currency_id_to_billing_subscriptions_table.php b/database/migrations/2021_03_09_132242_add_currency_id_to_billing_subscriptions_table.php new file mode 100644 index 000000000000..bc687317a449 --- /dev/null +++ b/database/migrations/2021_03_09_132242_add_currency_id_to_billing_subscriptions_table.php @@ -0,0 +1,29 @@ +unsignedInteger('currency_id')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + } +}