Skip to content

Commit a1c8da2

Browse files
Update 2020_06_03_192100_add_columns_for_people_table.php
Default String length set to 191 you can refer to below link to find why I set it to 191 https://stackoverflow.com/questions/43832166/laravel-5-4-specified-key-was-too-long-why-the-number-191
1 parent d51375a commit a1c8da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/migrations/2020_06_03_192100_add_columns_for_people_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public function up()
1111
Schema::table('people', function (Blueprint $table) {
1212
$table->string('gid')->nullable();
1313
$table->string('givn')->nullable();
14-
$table->string('surn', 255)->nullable();
15-
$table->string('name', 255)->nullable()->change();
14+
$table->string('surn', 191)->nullable();
15+
$table->string('name', 191)->nullable()->change();
1616

1717
$table->string('type')->nullable();
1818
$table->string('npfx')->nullable();

0 commit comments

Comments
 (0)