Skip to content

Commit

Permalink
Modernize migrations (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Nov 8, 2022
1 parent bd48c33 commit 20697b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
public function up()
{
Schema::create('subscriptions', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('user_id');
$table->id();
$table->foreignId('user_id');
$table->string('name');
$table->string('stripe_id')->unique();
$table->string('stripe_status');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
public function up()
{
Schema::create('subscription_items', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('subscription_id');
$table->id();
$table->foreignId('subscription_id');
$table->string('stripe_id')->unique();
$table->string('stripe_product');
$table->string('stripe_price');
Expand Down

0 comments on commit 20697b9

Please sign in to comment.