Learn more about these different git repos.
Other Git URLs
53041da
@@ -107,7 +107,7 @@
primary_key=True)
role = sa.Column(sa.Enum(*roles), primary_key=True)
- user = relation("User", backref="associations")
+ user = relation("User", backref=backref('associations', cascade="all, delete-orphan"))
hub = relation("Hub", backref="associations")
@classmethod
The delete-user script throws an error
AssertionError: Dependency rule tried to blank-out primary key column 'association.user_id' on instance '<Association at 0x7f308f9efd90>'
i adjusted the schema so when you delete the user it cascades to other tables as well
:thumbsup: for me
Maybe we could check if there are more
:thumbsup:
Pull-Request has been merged by skrzepto
The delete-user script throws an error
AssertionError: Dependency rule tried to blank-out primary key column 'association.user_id' on instance '<Association at 0x7f308f9efd90>'
i adjusted the schema so when you delete the user it cascades to other tables as well