Repository navigation
Fix RemoveHelper - #3816
Merged
Merged
Fix RemoveHelper#3816
Conversation
hjanott
commented
Oct 21, 2026
Member
- handle reference
- remove calculated field from diff control
- delete fk and idx just cascadingly
* handle reference * remove calculated field from diff control * delete fk and idx just cascadingly
vkrasnovyd
approved these changes
Oct 21, 2026
luisa-beerboom
added a commit
that referenced
this pull request
Nov 17, 2026
* Sql diff generator (#3625) * [dammi] Remove mig tables (#3641) * apply sql diff * change base test * cleanup get_stats/count method * improve exception stats output * handle listdir patching in migrate_previous * fix create_schema * implement new directory structure for migration module and schema_diff * add migration_number to basemigtestcase * remove finalization states and add migration finished state * decuple BaseMigration and BaseMigrationRouteTestCase * remove finalize command * use only empty values within replace tables * fix followup errors due to failing tests and continuing migration thread * deactivate notify triggers during migration and reactivate on reset * Move copy table to migration helper. * improve exception handling * [dammi]Add data preparation step and reimplement reset route (#3660) * use deprecated model registry (#3662) * improve schema diff file handling (#3669) * improve migration lookup (#3671) * [Dammi] Split off version table writing for migrations (#3643) * [dammi] More ground work for sql diff (#3679) * improve file handling * generate whole new collections * more constraint cases and new function for altered fields * Handle remove and rename tree * safely access GenerateCodeBlocks variables * [dammi] Remove deferred (#3687) * [dammi] view diff generation (#3699) * centralize models variables * collect alter_views conditionally and recreate in the end * extract get_view_field_state_write_fields * debug main functions with make test-file * improve variable names and reuse code in cli util * centralize and restructure RENAME --------- Co-authored-by: Viktoriia Krasnovyd <114735598+vkrasnovyd@users.noreply.github.com> * [dammi] reintroduce migrations subfolder (#3708) * [dammi] Handle remove (#3686) * [dammi] rename triggers, constraints, indexes and field enums (#3711) * generate from CodeBlocks call * centralize code block information * implement rename inline constraints and other constraints and triggers * move rename code to RenameHelper * [dammi] Remove secondary_edits (#3736) * [dammi] sql diff edit part (#3729) * [dammi] Sql diff edit: equal fields, constant, max, min and minLength (#3773) * edit case generate equal fields and restructure EqualFieldsHelper a bit * sqlfluffing output + sorting * handle min, max, minLength, unique, constant * recreate renamed intermediate table and respect that in equal fields generation --------- Co-authored-by: luisa-beerboom <101706784+luisa-beerboom@users.noreply.github.com> * [dammi] Handle edit for meta enums (#3791) * handle edit for meta enums * handle remove field case correctly * rename enum right way around * drop enum default if existed * respect changes from meta enum to field based enum and reverse * respect items * rename meta enums * drop and recreate view * [Dammi] Add handling (#3748) * Fix RemoveHelper (#3816) * handle reference * remove calculated field from diff control * delete fk and idx just cascadingly * Fix stuff in dammi (#3820) * Fix equal fields removal * Fix trigger generation for relation field adding * Fixes for DaMMi (#3824) * Fix more dammi stuff (#3823) * Fix case new enum constraint * Implement generic relation expansions * Fix even more dammi stuff (#3826) * Fix not remove field trigger generation * Alter field types when changing global enums * Drop triggers before changing type to enum, return them after (#3842) * Add new consultation sequence enabling setting (#3843) * Add migration for trigger naming scheme change (#3853) * Add migration for trigger naming scheme change * Also handle missing log triggers in user-committee calc relation * Always apply the new settings default in migration 102 * Fix flaky migration tests * Add changes for fix of generated array field log triggers * Make changes for trigger names * Update test_0100_init_reldb.py --------- Co-authored-by: luisa-beerboom <101706784+luisa-beerboom@users.noreply.github.com> Co-authored-by: Viktoriia Krasnovyd <114735598+vkrasnovyd@users.noreply.github.com> Co-authored-by: vkrasnovyd <viktoriia.krasnovyd@intevation.de> Co-authored-by: Luisa <luisa.beerboom@intevation.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.