Skip to content

Commit

Permalink
Merge pull request #1020 from laboro/fix/BB-1581
Browse files Browse the repository at this point in the history
BB-1581: DB schema is outdated
  • Loading branch information
dxops committed Nov 16, 2015
2 parents 9d3d54c + d34fbf6 commit 03f8cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ protected function createOrob2BLocaleTable(Schema $schema)
$table->addColumn('updated_at', 'datetime', []);
$table->setPrimaryKey(['id']);
$table->addUniqueIndex(['code']);
$table->addUniqueIndex(['title']);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ public function up(Schema $schema, QueryBag $queries)
->getColumn('title')
->setType(Type::getType(Type::STRING))
->setOptions(['length' => 255, 'notnull' => true]);

$table->addUniqueIndex(['title']);
}
}

0 comments on commit 03f8cf7

Please sign in to comment.