Skip to content

Commit

Permalink
Add database foreign key constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Nov 18, 2021
1 parent 2c0b617 commit 203e0c8
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Igniter\Api\Database\Migrations;

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class MakePrimaryKeyBigintAllTables extends Migration
{
public function up()
{
Schema::table('igniter_api_resources', function (Blueprint $table) {
$table->unsignedBigInteger('id', TRUE)->change();
});
}

public function down()
{
}
}

0 comments on commit 203e0c8

Please sign in to comment.