Commit 070ca0af authored by Okhin's avatar Okhin

Updating the default initialisation of the parent field

parent d5a11e8b
...@@ -35,6 +35,8 @@ class AddParentField extends AbstractMigration ...@@ -35,6 +35,8 @@ class AddParentField extends AbstractMigration
$table = $this->table('contreparties'); $table = $this->table('contreparties');
$table->addColumn('parent', 'integer'); $table->addColumn('parent', 'integer');
$table->update(); $table->update();
// Let's set some default value
$builder = $this->getQueryBuilder(); $builder = $this->getQueryBuilder();
$stmt = $builder->update('contreparties') $stmt = $builder->update('contreparties')
->set('parent', 'id') ->set('parent', 'id')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment