mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-28 12:42:09 +08:00
Set nullable=False on the ModuleBuild.context column model to match the migration
The context column was added in d83e6897ca. The
migration set `nullable=False`, but the model kept the default of `nullable=True`.
This caused `mbs-manager db migrate` to create a migration for setting the context
collumn to `nullable=True`.
This commit is contained in:
@@ -191,7 +191,7 @@ class ModuleBuild(MBSBase):
|
||||
ref_build_context = db.Column(db.String)
|
||||
build_context = db.Column(db.String)
|
||||
runtime_context = db.Column(db.String)
|
||||
context = db.Column(db.String, server_default=DEFAULT_MODULE_CONTEXT)
|
||||
context = db.Column(db.String, nullable=False, server_default=DEFAULT_MODULE_CONTEXT)
|
||||
state = db.Column(db.Integer, nullable=False)
|
||||
state_reason = db.Column(db.String)
|
||||
modulemd = db.Column(db.String, nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user