mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Refactoring subscriptions
This commit is contained in:
parent
103fa1b974
commit
31eac0a761
@ -15,6 +15,15 @@ class RefactorBillingScriptionsTable extends Migration
|
|||||||
{
|
{
|
||||||
Schema::rename('billing_subscriptions', 'subscriptions');
|
Schema::rename('billing_subscriptions', 'subscriptions');
|
||||||
|
|
||||||
|
Schema::table('subscriptions', function (Blueprint $table) {
|
||||||
|
$table->text('product_id')->change();
|
||||||
|
$table->text('recurring_product_ids');
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('subscriptions', function (Blueprint $table) {
|
||||||
|
$table->renameColumn('product_id', 'product_ids');
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,7 +63,7 @@ class SubscriptionApiTest extends TestCase
|
|||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
])->get('/api/v1/subscriptions/' . $this->encodePrimaryKey($billing_subscription->id));
|
])->get('/api/v1/subscriptions/' . $this->encodePrimaryKey($billing_subscription->id));
|
||||||
|
|
||||||
nlog($response);
|
// nlog($response);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user