Skip to content

Commit d801090

Browse files
authored
changed to use uuid primary keys
1 parent 82e2a27 commit d801090

3 files changed

+3
-3
lines changed

stubs/database/migrations/2019_08_19_000000_create_failed_jobs_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CreateFailedJobsTable extends Migration
99
public function up()
1010
{
1111
Schema::create('failed_jobs', function (Blueprint $table) {
12-
$table->id();
12+
$table->uuid('id')->primary();
1313
$table->string('uuid')->unique();
1414
$table->text('connection');
1515
$table->text('queue');

stubs/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CreatePersonalAccessTokensTable extends Migration
99
public function up()
1010
{
1111
Schema::create('personal_access_tokens', function (Blueprint $table) {
12-
$table->bigIncrements('id');
12+
$table->uuid('id')->primary();
1313
$table->morphs('tokenable');
1414
$table->string('name');
1515
$table->string('token', 64)->unique();

stubs/database/migrations/2021_04_27_164928_create_sent_emails_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CreateSentEmailsTable extends Migration
99
public function up()
1010
{
1111
Schema::create('sent_emails', function (Blueprint $table) {
12-
$table->increments('id');
12+
$table->uuid('id')->primary();
1313
$table->date('date')->nullable();
1414
$table->string('from')->nullable();
1515
$table->text('to')->nullable();

0 commit comments

Comments
 (0)