-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
DB Manager - Renaming constraints and indexes fails when renaming a table #21848
Comments
Author Name: Paul Kanelli (Paul Kanelli)
|
Author Name: Paul Kanelli (Paul Kanelli) Also renaming the sequence of a serial column fails: CREATE TABLE lakes Default value for column 'gid' is 'nextval('lakes_gid_seq'::regclass)'. It's not renamed after renaming table 'lakes'. |
Author Name: Paul Kanelli (Paul Kanelli) See also http://gis.stackexchange.com/questions/181532/renaming-a-table-in-the-qgis-db-manager |
Author Name: Sebastian Dietrich (Sebastian Dietrich) The workaround is to delete the constraints and recreate them. They are recreated with the correct name according to DB-Manager's naming scheme. Note the linked ticket #22110 regarding the sequence issue. |
Author Name: Sebastian Dietrich (Sebastian Dietrich)
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
@error: Relation „sidx_lakes_geom“ already exists@ to When creating a table named 'lakes' in the DB Manager a constraint 'lakes_pkey' and the index 'sidx_lakes_geom' is created. But when renaming the table the constraint and the index don't get new names. So it's not possible to create a table named 'lakes' after renaming the original 'lakes' table. @error: Relation „sidx_lakes_geom“ already exists@ |
Author Name: Giovanni Manghi (@gioman) End of life notice: QGIS 2.18 LTR Source:
|
Author Name: Paul Kanelli (Paul Kanelli)
Original Redmine Issue: 13823
Affected QGIS version: master
Redmine category:db_manager
When creating a table named 'lakes' in the DB Manager a constraint 'lakes_pkey' and the index 'sidx_lakes_geom' is created. But when renaming the table the constraint and the index don't get new names. So it's not possible to create a table named 'lakes' after renaming the original 'lakes' table.
@error: Relation „sidx_lakes_geom“ already exists@
Related issue(s): #15946 (relates)
Redmine related issue(s): 6798
The text was updated successfully, but these errors were encountered: