collorg / halfORM_packager

0 stars 1 forks source link

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

Open joel-m opened 1 year ago

joel-m commented 1 year ago

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):