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:
mprahl
2019-04-30 16:48:59 -04:00
parent 8c6822f871
commit ea838a9855
5 changed files with 16 additions and 15 deletions

View File

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