Sam Georges 2014-05-27 13:49:42 +10:00
parent 2ea21ae2ac
commit 40efd04558
2 changed files with 6 additions and 6 deletions

View File

@ -12,9 +12,9 @@ class DbBackendUserPreferences extends Migration
$table->engine = 'InnoDB';
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('namespace');
$table->string('group');
$table->string('item');
$table->string('namespace', 100);
$table->string('group', 50);
$table->string('item', 150);
$table->text('value')->nullable();
$table->index(['user_id', 'namespace', 'group', 'item'], 'user_item_index');
});

View File

@ -11,9 +11,9 @@ class DbSystemParameters extends Migration
{
$table->engine = 'InnoDB';
$table->increments('id');
$table->string('namespace');
$table->string('group');
$table->string('item');
$table->string('namespace', 100);
$table->string('group', 50);
$table->string('item', 150);
$table->text('value')->nullable();
$table->index(['namespace', 'group', 'item'], 'item_index');
});