Commit 070ca0af authored by okhin's avatar okhin 🚴

Updating the default initialisation of the parent field

parent d5a11e8b
Pipeline #2333 passed with stages
in 1 minute and 36 seconds
......@@ -35,6 +35,8 @@ class AddParentField extends AbstractMigration
$table = $this->table('contreparties');
$table->addColumn('parent', 'integer');
$table->update();
// Let's set some default value
$builder = $this->getQueryBuilder();
$stmt = $builder->update('contreparties')
->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