Skip to content

Commit

Permalink
fix DB boolean column options
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Jul 5, 2021
1 parent 4e053ae commit facad60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
charset = utf-8
indent_style = space
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
Expand Down
3 changes: 2 additions & 1 deletion lib/Migration/Version000009Date20190625000800.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'length' => 10,
]);
$table->addColumn('looked_up', 'boolean', [
'notnull' => true,
'notnull' => false,
'default' => false,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['adr'], 'maps_adr');
Expand Down
3 changes: 2 additions & 1 deletion lib/Migration/Version000012Date20190722184716.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'length' => 10,
]);
$table->addColumn('looked_up', 'boolean', [
'notnull' => true,
'notnull' => false,
'default' => false,
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['adr'], 'maps_adr');
Expand Down

0 comments on commit facad60

Please sign in to comment.