@@ 14-19 (lines=6) @@ | ||
11 | { |
|
12 | DB::connection()->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); |
|
13 | ||
14 | if (Schema::hasTable('users')) { |
|
15 | Schema::table('users', function (Blueprint $table) { |
|
16 | $table->string('password', 255)->nullable()->change(); |
|
17 | $table->string('mail', 255)->change(); |
|
18 | }); |
|
19 | } |
|
20 | } |
|
21 | ||
22 | public function down() |
|
@@ 24-29 (lines=6) @@ | ||
21 | ||
22 | public function down() |
|
23 | { |
|
24 | if (Schema::hasTable('users')) { |
|
25 | Schema::table('users', function (Blueprint $table) { |
|
26 | $table->string('password', 64)->nullable(false)->change(); |
|
27 | $table->string('mail', 50)->change(); |
|
28 | }); |
|
29 | } |
|
30 | } |
|
31 | } |
|
32 |