mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix metapackages crash due to missing lazy=dynamic
This commit is contained in:
parent
5a0aa636f3
commit
5ab8c2f0f1
@ -660,7 +660,7 @@ class MetaPackage(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
name = db.Column(db.String(100), unique=True, nullable=False)
|
||||
dependencies = db.relationship("Dependency", back_populates="meta_package", lazy="dynamic")
|
||||
packages = db.relationship("Package", back_populates="provides", secondary=provides)
|
||||
packages = db.relationship("Package", lazy="dynamic", back_populates="provides", secondary=provides)
|
||||
|
||||
mp_name_valid = db.CheckConstraint("name ~* '^[a-z0-9_]+$'")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user