Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when migrating new empty sqlite #200

Open
elisalle opened this issue Feb 25, 2025 · 0 comments
Open

Warnings when migrating new empty sqlite #200

elisalle opened this issue Feb 25, 2025 · 0 comments
Assignees

Comments

@elisalle
Copy link
Contributor

When creating an empty database and migrating it to the latest version, like this:

from threedi_schema import ThreediDatabase

db = ThreediDatabase("test.sqlite")
schema = db.schema
schema.upgrade(backup=False, epsg_code_override=28992)

the following warnings appear:

updateTableTriggers() error: not existing Table or Column
AddGeometryColumn() error: "UNIQUE constraint failed: geometry_columns.f_table_name, geometry_columns.f_geometry_column"
updateTableTriggers: "table "idx_channel_geom" already exists"
updateTableTriggers: "table "idx_connection_node_geom" already exists"
updateTableTriggers: "table "idx_cross_section_location_geom" already exists"
updateTableTriggers: "table "idx_culvert_geom" already exists"
updateTableTriggers: "table "idx_orifice_geom" already exists"
updateTableTriggers: "table "idx_pipe_geom" already exists"
updateTableTriggers: "table "idx_pump_geom" already exists"
updateTableTriggers: "table "idx_pump_map_geom" already exists"
updateTableTriggers: "table "idx_weir_geom" already exists"
updateTableTriggers: "table "idx_windshielding_1d_geom" already exists"

This should probably be looked into.

@elisalle elisalle self-assigned this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant