mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Updated hard-coded string lengths for indexed columns
Since this is what's causing issues for people during migration due to max key lengths. Related to #2710.
This commit is contained in:
parent
f8cdd6e80d
commit
c4e31a0d5e
@ -15,7 +15,7 @@ class CreateSearchIndexTable extends Migration
|
||||
{
|
||||
Schema::create('search_terms', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('term', 200);
|
||||
$table->string('term', 180);
|
||||
$table->string('entity_type', 100);
|
||||
$table->integer('entity_id');
|
||||
$table->integer('score');
|
||||
|
@ -14,7 +14,7 @@ class AddRoleExternalAuthId extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::table('roles', function (Blueprint $table) {
|
||||
$table->string('external_auth_id', 200)->default('');
|
||||
$table->string('external_auth_id', 180)->default('');
|
||||
$table->index('external_auth_id');
|
||||
});
|
||||
}
|
||||
|
@ -37,8 +37,8 @@ class CreateBookshelvesTable extends Migration
|
||||
|
||||
Schema::create('bookshelves', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name', 200);
|
||||
$table->string('slug', 200);
|
||||
$table->string('name', 180);
|
||||
$table->string('slug', 180);
|
||||
$table->text('description');
|
||||
$table->integer('created_by')->nullable()->default(null);
|
||||
$table->integer('updated_by')->nullable()->default(null);
|
||||
|
@ -15,7 +15,7 @@ class AddUserSlug extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->string('slug', 250);
|
||||
$table->string('slug', 180);
|
||||
});
|
||||
|
||||
$slugMap = [];
|
||||
|
Loading…
Reference in New Issue
Block a user