Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update id column of treenode_connector_edge and connector_geom table
This migration rewrites the tables treenode_connector_edge and connector_geom, because their references to the treenode_connector table are wrong and need to be updated. Up to this migration the id column was of type int, but since it references the treenode_edge id column and the connector id column, respectively, and they should follow their type, which is bigint. This is updated by this migration by creating a new table. This has the benefit that cleaning up the old table is easier and doesn't need a VACUUM FULL run to reclaim space. Both The treenode_connector_edge table and the connector_geom table aren't tracked by the history system, which makes this update simpler. In principle it could also be merged into the previous 64 Bit concept ID migration, but it is easier for some existing test systems to not be re-migrated. The changes to the connector tables have been merged alrady separately into the dev branch in commit 65b4044, but the migration didn't allow to avoid VACUUM FULL to reclaim space, therefore the existing version is updated accordingly. The existing version rewrote the table directly, which would only allow to reclaim space with VACCUUM FULL. Since this isn't very practical on large tables with many connectors, this new version is introduced. The schema outcome is the same and therefore no action has to be taken, if the previous version has been applied already.
- Loading branch information