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)
5858 foreach ($ model ->columns () as $ column ) {
5959 $ dataType = $ column ->dataType ();
6060 if ($ column ->name () === 'id ' ) {
61- $ dataType = 'increments ' ;
61+ $ dataType = 'bigIncrements ' ;
6262 } elseif ($ column ->dataType () === 'id ' ) {
6363 $ dataType = 'unsignedBigInteger ' ;
6464 }
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 ('' );
Original file line number Diff line number Diff 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 });
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments