Skip to content

Commit

Permalink
refs #541 fix db-related install problems on NC 21
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Mar 19, 2021
1 parent ebd1920 commit b7875f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions lib/Migration/Version000009Date20190625000800.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$table->addColumn('adr', 'string', [
'notnull' => true,
'length' => 255,
'unique' => true,
]);
$table->addColumn('adr_norm', 'string', [
'notnull' => true,
'length' => 255,
'unique' => true,
]);
$table->addColumn('lat', 'float', [
'notnull' => false,
Expand Down
6 changes: 0 additions & 6 deletions lib/Migration/Version000012Date20190722184716.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'notnull' => true,
'length' => 41,
]);
$table->addColumn('contact_uid', 'string', [
'notnull' => true,
'default' => '',
'length' => 64,
]);
$table->addColumn('adr', 'string', [
'notnull' => true,
'default' => '',
Expand All @@ -75,7 +70,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$table->setPrimaryKey(['id']);
$table->addIndex(['adr'], 'maps_adr');
$table->addIndex(['adr_norm'], 'maps_adr_norm');
$table->addIndex(['contact_uid'], 'maps_contact_uid');
}

return $schema;
Expand Down
4 changes: 3 additions & 1 deletion lib/Migration/Version000013Date20190723185417.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt

if ($schema->hasTable('maps_address_geo')) {
$table = $schema->getTable('maps_address_geo');
$table->dropColumn('contact_uid');
if ($table->hasColumn('contact_uid')) {
$table->dropColumn('contact_uid');
}
$table->addColumn('object_uri', 'string', [
'notnull' => true,
'default' => '--',
Expand Down

0 comments on commit b7875f0

Please sign in to comment.