File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed
tests/fixtures/migrations Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ protected function buildDefinition(Model $model)
58
58
foreach ($ model ->columns () as $ column ) {
59
59
$ dataType = $ column ->dataType ();
60
60
if ($ column ->name () === 'id ' ) {
61
- $ dataType = 'increments ' ;
61
+ $ dataType = 'bigIncrements ' ;
62
62
} elseif ($ column ->dataType () === 'id ' ) {
63
63
$ dataType = 'unsignedBigInteger ' ;
64
64
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('comments ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->text ('content ' );
19
19
$ table ->timestamps ();
20
20
});
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateRelationshipsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('relationships ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->unsignedBigInteger ('post_id ' );
19
19
$ table ->unsignedBigInteger ('another ' );
20
20
});
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateModifiersTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('modifiers ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->string ('title ' )->nullable ();
19
19
$ table ->string ('name ' , 1000 )->unique ()->charset ('utf8 ' );
20
20
$ table ->string ('content ' )->default ('' );
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreatePostsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('posts ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->string ('title ' );
19
19
$ table ->timestamps ();
20
20
});
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreatePostsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('posts ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->string ('title ' , 400 );
19
19
$ table ->longText ('content ' );
20
20
$ table ->timestamp ('published_at ' )->nullable ();
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('comments ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->unsignedBigInteger ('post_id ' );
19
19
$ table ->unsignedBigInteger ('author_id ' );
20
20
$ table ->timestamps ();
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('comments ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->unsignedBigInteger ('post_id ' );
19
19
$ table ->softDeletes ();
20
20
$ table ->timestamps ();
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class CreateCommentsTable extends Migration
14
14
public function up ()
15
15
{
16
16
Schema::create ('comments ' , function (Blueprint $ table ) {
17
- $ table ->increments ('id ' );
17
+ $ table ->bigIncrements ('id ' );
18
18
$ table ->softDeletesTz ();
19
19
$ table ->timestampsTz ();
20
20
});
You can’t perform that action at this time.
0 commit comments