Skip to content
Snippets Groups Projects

Resolve "Rendered yaml is too long"

Merged Mick Mulder requested to merge 41-rendered-yaml-is-too-long into master
All threads resolved!
1 file
+ 7
3
Compare changes
  • Side-by-side
  • Inline
@@ -148,9 +148,13 @@ class Production(Base):
# Columns
name = Column(String(256), nullable=False)
yaml = deferred(Column(UnicodeText, nullable=False))
rendered_yaml_col = Column(UnicodeText, nullable=False)
rendered_yaml_col = rendered_yaml_col.with_variant(mysql.MEDIUMTEXT, "mysql")
rendered_yaml = deferred(rendered_yaml_col)
# To save long rendered yaml files
UT_long = UnicodeText()
UT_long = UT.with_variant(mysql.MEDIUMTEXT, 'mysql')
rendered_yaml = deferred(Column(UT_long, nullable=False))
# Relationships
pipeline_id = Column(Integer, ForeignKey("pipelines.gitlab_job_id"))
pipeline = relationship("Pipeline", back_populates="productions", lazy="joined")
Loading