Skip to content

Commit

Permalink
Improve some SQL comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarkkoka committed Jan 25, 2024
1 parent 100dcfb commit 554bf33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 8 additions & 5 deletions src/main/resources/jore4-export/export_lines.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
-- Since few years ago the last three digits of the line number were not
-- unique, and since in Jore4 the line number uses only those last three digits
-- (stripping the preceding digit for the legacy municipality code), the lines
-- of the 'LEGACY_NOT_USED' legacy municipality code are filtered out to avoid
-- uniqueness constraint problems in Jore4 database.
-- Since a few years ago the last three digits of the line number were not
-- unique, and since in Jore4 the line number consists of only those last three
-- digits (stripping the first digit), the lines starting with the legacy
-- municipality code of '0' (roughly meaning "legacy, not used") are filtered
-- out to prevent unique constraint violations in the Jore4 database during
-- export. In addition, the lines starting with the municipality code '8'
-- ("testing, not used") are also filtered out, because they are not real lines
-- and can cause the mentioned constraint violations.

-- Currently, only bus and ferry lines are exported to Jore4.

Expand Down
13 changes: 8 additions & 5 deletions src/main/resources/jore4-export/export_routes.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
-- Since few years ago the last three digits of the line/route number were not
-- unique, and since in Jore4 the line/route number uses only those last three
-- digits (stripping the preceding digit for the legacy municipality code), the
-- lines of the 'LEGACY_NOT_USED' legacy municipality code are filtered out to
-- avoid uniqueness constraint problems in Jore4 database.
-- Since a few years ago the last three digits of the line/route number were not
-- unique, and since in Jore4 the line/route number consists of only those last
-- three digits (stripping the first digit), the lines starting with the legacy
-- municipality code of '0' (roughly meaning "legacy, not used") are filtered
-- out to prevent unique constraint violations in the Jore4 database during
-- export. In addition, the lines starting with the municipality code '8'
-- ("testing, not used") are also filtered out, because they are not real lines
-- and can cause the mentioned constraint violations.

-- Currently, only bus and ferry routes are exported to Jore4. Also, we only take
-- routes that are valid on or after 1.1.2021.
Expand Down

0 comments on commit 554bf33

Please sign in to comment.