Increase environment field length (20 -> 250)
This commit is contained in:
parent
ebf729d762
commit
41f025c243
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ class Build extends Model
|
|||
],
|
||||
'environment' => [
|
||||
'type' => 'varchar',
|
||||
'length' => 20,
|
||||
'length' => 250,
|
||||
'default' => null,
|
||||
],
|
||||
];
|
||||
|
|
|
@ -74,7 +74,7 @@ class Environment extends Model
|
|||
],
|
||||
'name' => [
|
||||
'type' => 'varchar',
|
||||
'length' => 20,
|
||||
'length' => 250,
|
||||
'default' => null,
|
||||
],
|
||||
'branches' => [
|
||||
|
|
Loading…
Reference in a new issue