Skip to content

Commit e83969c

Browse files
author
Nathan E
committed
chore: update the id column of the test fixtures to bigIncrements
1 parent dfbb267 commit e83969c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

tests/fixtures/migrations/comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('comments', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->text('content');
1919
$table->timestamps();
2020
});

tests/fixtures/migrations/identity-columns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateRelationshipsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('relationships', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->unsignedBigInteger('post_id');
1919
$table->unsignedBigInteger('another');
2020
});

tests/fixtures/migrations/modifiers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateModifiersTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('modifiers', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->string('title')->nullable();
1919
$table->string('name', 1000)->unique()->charset('utf8');
2020
$table->string('content')->default('');

tests/fixtures/migrations/posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreatePostsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('posts', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->string('title');
1919
$table->timestamps();
2020
});

tests/fixtures/migrations/readme-example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreatePostsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('posts', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->string('title', 400);
1919
$table->longText('content');
2020
$table->timestamp('published_at')->nullable();

tests/fixtures/migrations/relationships.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('comments', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->unsignedBigInteger('post_id');
1919
$table->unsignedBigInteger('author_id');
2020
$table->timestamps();

tests/fixtures/migrations/soft-deletes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('comments', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->unsignedBigInteger('post_id');
1919
$table->softDeletes();
2020
$table->timestamps();

tests/fixtures/migrations/with-timezones.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('comments', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->bigIncrements('id');
1818
$table->softDeletesTz();
1919
$table->timestampsTz();
2020
});

0 commit comments

Comments
 (0)