Commit 070ca0af authored by Okhin's avatar Okhin
Browse files

Updating the default initialisation of the parent field

parent d5a11e8b
......@@ -35,6 +35,8 @@ class AddParentField extends AbstractMigration
$table = $this->table('contreparties');
$table->addColumn('parent', 'integer');
// Let's set some default value
$builder = $this->getQueryBuilder();
$stmt = $builder->update('contreparties')
->set('parent', 'id')
Supports Markdown
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