@@ -10,18 +10,18 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | - //Action when migrate up |
|
| 13 | + //Action when migrate up |
|
| 14 | 14 | $this->alter('users', function (AlterTable $table) { |
| 15 | 15 | $table->string('role') |
| 16 | - ->description('The user role or function'); |
|
| 16 | + ->description('The user role or function'); |
|
| 17 | 17 | }); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function down(): void |
| 21 | 21 | { |
| 22 | - //Action when migrate down |
|
| 22 | + //Action when migrate down |
|
| 23 | 23 | $this->alter('users', function (AlterTable $table) { |
| 24 | - $table->dropColumn('role'); |
|
| 24 | + $table->dropColumn('role'); |
|
| 25 | 25 | }); |
| 26 | 26 | } |
| 27 | 27 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->alter('users', function (AlterTable $table) { |
|
| 14 | + $this->alter('users', function(AlterTable $table) { |
|
| 15 | 15 | $table->string('role') |
| 16 | 16 | ->description('The user role or function'); |
| 17 | 17 | }); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function down(): void |
| 21 | 21 | { |
| 22 | 22 | //Action when migrate down |
| 23 | - $this->alter('users', function (AlterTable $table) { |
|
| 23 | + $this->alter('users', function(AlterTable $table) { |
|
| 24 | 24 | $table->dropColumn('role'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Platine\Database\Schema\AlterTable; |
| 6 | 6 | use Platine\Framework\Migration\AbstractMigration; |
| 7 | 7 | |
| 8 | -class AddUserRoleField20210720080304 extends AbstractMigration |
|
| 9 | -{ |
|
| 8 | +class AddUserRoleField20210720080304 extends AbstractMigration { |
|
| 10 | 9 | |
| 11 | 10 | public function up(): void |
| 12 | 11 | { |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | - //Action when migrate up |
|
| 13 | + //Action when migrate up |
|
| 14 | 14 | $this->alter('users', function (AlterTable $table) { |
| 15 | 15 | $table->dropColumn('age'); |
| 16 | 16 | }); |
@@ -18,11 +18,11 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public function down(): void |
| 20 | 20 | { |
| 21 | - //Action when migrate down |
|
| 21 | + //Action when migrate down |
|
| 22 | 22 | $this->alter('users', function (AlterTable $table) { |
| 23 | 23 | $table->integer('age') |
| 24 | - ->size('tiny') |
|
| 25 | - ->description('The user age'); |
|
| 24 | + ->size('tiny') |
|
| 25 | + ->description('The user age'); |
|
| 26 | 26 | }); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->alter('users', function (AlterTable $table) { |
|
| 14 | + $this->alter('users', function(AlterTable $table) { |
|
| 15 | 15 | $table->dropColumn('age'); |
| 16 | 16 | }); |
| 17 | 17 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function down(): void |
| 20 | 20 | { |
| 21 | 21 | //Action when migrate down |
| 22 | - $this->alter('users', function (AlterTable $table) { |
|
| 22 | + $this->alter('users', function(AlterTable $table) { |
|
| 23 | 23 | $table->integer('age') |
| 24 | 24 | ->size('tiny') |
| 25 | 25 | ->description('The user age'); |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Platine\Database\Schema\AlterTable; |
| 6 | 6 | use Platine\Framework\Migration\AbstractMigration; |
| 7 | 7 | |
| 8 | -class DropUserAgeField20210720080558 extends AbstractMigration |
|
| 9 | -{ |
|
| 8 | +class DropUserAgeField20210720080558 extends AbstractMigration { |
|
| 10 | 9 | |
| 11 | 10 | public function up(): void |
| 12 | 11 | { |