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

Fkeys class attribute is removed after hop apply-patch #25

Open
joel-m opened this issue Dec 6, 2022 · 0 comments
Open

Fkeys class attribute is removed after hop apply-patch #25

joel-m opened this issue Dec 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@joel-m
Copy link
Member

joel-m commented Dec 6, 2022

Patch/0/0/2/b.sql

create table b ( b text primary key, a text references a )

hop apply-patch
edit the file test/public/b.py and add

Fkeys = {
    'a_fk': 'b_a_fkey',
}

git add .
git commit -m "b with Fkeys"

hop release-patch ends with:

HOP ERROR: Something has changed when re-applying the patch. This should not happen.

git diff gives:

@@ -51,9 +51,6 @@ class B(__RCLS):
     }
     """
     #>>> PLACE YOUR CODE BELLOW THIS LINE. DO NOT REMOVE THIS LINE!
-    Fkeys = {
-        'a_fk': 'b_a_fkey',
-    }
 
     #<<< PLACE YOUR CODE ABOVE THIS LINE. DO NOT REMOVE THIS LINE!
     def __init__(self, **kwargs):
@joel-m joel-m added the bug Something isn't working label Dec 6, 2022
@joel-m joel-m added this to the 0.1.0 milestone Dec 6, 2022
@joel-m joel-m self-assigned this Dec 6, 2022
joel-m added a commit that referenced this issue Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant