File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
tests/fixtures/migrations Expand file tree Collapse file tree 8 files changed +8
-8
lines changed 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