-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Liquibase foreign key relationship column names #27608
Liquibase foreign key relationship column names #27608
Conversation
Can you please run |
at the moment, there is no change in the snapshots as I haven't changed anything in the test case (jdl definition) itself, I just added additional conditions into the tests to verify the output of the current tests. But I can adjust the template / generation logic now, which would then in turn actually change the snapshots |
@OmarHawk If you run |
ok, understood, but I considered that already. :-) |
fde1fd7
to
466e789
Compare
I have moved the working logic from the |
Liquibase changelog should be polished, you can see in ng-default sample compare: a/src/main/resources/config/liquibase/changelog/20160208210109_added_entity_constraints_TestCustomTableName.xml
@@ -10,6 +10,9 @@
-->
<changeSet id="20160208210109-2" author="jhipster">
+
+
+
<addForeignKeyConstraint baseColumnNames="test_entity_id"
baseTableName="test_custom_table_name_entity"
constraintName="fk_test_custom_table_name_entity__test_entity_id"
diff --git b/src/main/resources/config/liquibase/changelog/20160208210110_added_entity_constraints_TestEntity.xml a/src/main/resources/config/liquibase/changelog/20160208210110_added_entity_constraints_TestEntity.xml
index e4385fd..dcb84bf 100644
--- b/src/main/resources/config/liquibase/changelog/20160208210110_added_entity_constraints_TestEntity.xml
+++ a/src/main/resources/config/liquibase/changelog/20160208210110_added_entity_constraints_TestEntity.xml
@@ -10,6 +10,9 @@
-->
<changeSet id="20160208210110-2" author="jhipster">
+
+
+
<addForeignKeyConstraint baseColumnNames="user_one_to_many_id"
baseTableName="test_entity"
constraintName="fk_test_entity__user_one_to_many_id"
@@ -37,5 +40,8 @@
|
466e789
to
73bef2b
Compare
I see, will fix it :-) |
I do have now less empty lines, do you think, it is alright @mshima? Or does it have to be the exact same way as before? |
I think we should keep the same blank lines to avoid unnecessary diff when upgrading applications, specially changelogs. |
1287530
to
b06f220
Compare
Added the empty line again in the |
ah, damn, as soon, as I add the empty line into the for loop, it creates some additonal lines for unhandled relationships. So I would need to pass a paramater to add additional empty lines into the new template just for the |
b06f220
to
a33b5b2
Compare
Reverted the last change regarding the empty line in the add template - please check the Merge Request again @DanielFran, @mshima , whether you are OK with it: I really don't think it makes sense to have a parameter named |
Updated files are not overridden. |
ok, interesting that after the change it shows no changes anymore now. I'd have assumed that with adding the empty lines within the template, it would now produce empty lines in the |
I'll update the snapshots once more, if you are OK with it - then the MR should become green :-) |
@OmarHawk projects are identical now, should be ok to merge. |
and regenerated snapshots Fix jhipster#27598
736780d
to
88e1dac
Compare
Done and squashed the excess commits so that the merge contains only a single commit and looks cleaner. |
Hope it is alright to claim this: https://opencollective.com/generator-jhipster/expenses/225277 |
@OmarHawk approved |
Fixes #27598 and adds additional conditions to the existing tests (which were missing)
Please make sure the below checklist is followed for Pull Requests.
When you are still working on the PR, consider converting it to Draft (below reviewers) and adding
skip-ci
label, you can still see CI build result at your branch.