Model change: Changing domain model type variable to 8 chars

PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type variable is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain model type variable to 8 chars.
This commit is contained in:
Robert Walter 2023-01-10 13:51:04 +01:00 committed by GitHub
parent 9088f93233
commit c02cb3b7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ class Domain(db.Model):
id = db.Column(db.Integer, primary_key=True) id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), index=True, unique=True) name = db.Column(db.String(255), index=True, unique=True)
master = db.Column(db.String(128)) master = db.Column(db.String(128))
type = db.Column(db.String(6), nullable=False) type = db.Column(db.String(8), nullable=False)
serial = db.Column(db.BigInteger) serial = db.Column(db.BigInteger)
notified_serial = db.Column(db.BigInteger) notified_serial = db.Column(db.BigInteger)
last_check = db.Column(db.Integer) last_check = db.Column(db.Integer)