mirror of
https://github.com/derf/travelynx
synced 2024-12-04 02:09:09 +00:00
database: stations: make 'ds100' column optional.
HAFAS stations do not necessarily have ds100 codes
This commit is contained in:
parent
3d51395d39
commit
9209cb292e
1 changed files with 12 additions and 0 deletions
|
@ -1803,6 +1803,18 @@ my @migrations = (
|
|||
}
|
||||
);
|
||||
},
|
||||
|
||||
# v44 -> v45
|
||||
# prepare for HAFAS support: many HAFAS stations do not have DS100 codes
|
||||
sub {
|
||||
my ($db) = @_;
|
||||
$db->query(
|
||||
qq{
|
||||
alter table stations alter column ds100 drop not null;
|
||||
update schema_version set version = 45;
|
||||
}
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
# TODO add 'hafas' column to in_transit (and maybe journeys? undo/redo needs something to work with...)
|
||||
|
|
Loading…
Reference in a new issue