Since this is what's causing issues for people during migration due to max
key lengths.
Related to #2710.
{
Schema::create('search_terms', function (Blueprint $table) {
$table->increments('id');
{
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');
$table->string('entity_type', 100);
$table->integer('entity_id');
$table->integer('score');
public function up()
{
Schema::table('roles', function (Blueprint $table) {
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');
});
}
$table->index('external_auth_id');
});
}
Schema::create('bookshelves', function (Blueprint $table) {
$table->increments('id');
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);
$table->text('description');
$table->integer('created_by')->nullable()->default(null);
$table->integer('updated_by')->nullable()->default(null);
public function up()
{
Schema::table('users', function (Blueprint $table) {
public function up()
{
Schema::table('users', function (Blueprint $table) {
- $table->string('slug', 250);
+ $table->string('slug', 180);