Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
070ca0af
Commit
070ca0af
authored
Dec 13, 2018
by
Okhin
Browse files
Updating the default initialisation of the parent field
parent
d5a11e8b
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
db/migrations/20181213125806_add_parent_field.php
View file @
070ca0af
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment