Increase environment field length (20 -> 250)

This commit is contained in:
Stepan Strelets 2017-03-26 10:36:24 +03:00 committed by Dmitry Khomutov
parent ebf729d762
commit 41f025c243
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ class AddEnvironment extends AbstractMigration
}
if (!$table->hasColumn('name')) {
$table->addColumn('name', 'string', ['limit' => 20])->save();
$table->addColumn('name', 'string', ['limit' => 250])->save();
}
if (!$table->hasColumn('branches')) {
@ -31,7 +31,7 @@ class AddEnvironment extends AbstractMigration
$table = $this->table('build');
if (!$table->hasColumn('environment')) {
$table->addColumn('environment', 'string', ['limit' => 20])->save();
$table->addColumn('environment', 'string', ['limit' => 250])->save();
}
}

View file

@ -170,7 +170,7 @@ class Build extends Model
],
'environment' => [
'type' => 'varchar',
'length' => 20,
'length' => 250,
'default' => null,
],
];

View file

@ -74,7 +74,7 @@ class Environment extends Model
],
'name' => [
'type' => 'varchar',
'length' => 20,
'length' => 250,
'default' => null,
],
'branches' => [