From c02cb3b7fe39044eb58f1d06beb381953d18a6ea Mon Sep 17 00:00:00 2001 From: Robert Walter Date: Tue, 10 Jan 2023 13:51:04 +0100 Subject: [PATCH] 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. --- powerdnsadmin/models/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/models/domain.py b/powerdnsadmin/models/domain.py index 09b697e..ab154c1 100644 --- a/powerdnsadmin/models/domain.py +++ b/powerdnsadmin/models/domain.py @@ -20,7 +20,7 @@ class Domain(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(255), index=True, unique=True) 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) notified_serial = db.Column(db.BigInteger) last_check = db.Column(db.Integer)