Skip to content

Commit

Permalink
fix: ID fields was not marked as primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Oct 16, 2024
1 parent 1fe065d commit ec7b013
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('audit_logs', function (Blueprint $table) {
$table->primary('id')->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('auth_logs', function (Blueprint $table) {
$table->primary('id')->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};

0 comments on commit ec7b013

Please sign in to comment.