]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
sql import: fix db schema
authorLibor Peltan <libor.peltan@nic.cz>
Fri, 16 Nov 2018 09:51:23 +0000 (10:51 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 22 Jan 2019 14:22:19 +0000 (15:22 +0100)
scripts/dns_sql2zf.py

index 04178eed1e13a48e055d4a381de718d629e88aef..80c0c30f07aaadbba60b0cb62d3491d7b9a018eb 100755 (executable)
@@ -44,9 +44,9 @@ class Domains(SQLObject):
     # id = IntCol() # implicitly there
     name = StringCol()
     master = StringCol()
-    last_check = StringCol()
+    last_check = IntCol()
     type = StringCol()
-    notified_serial = StringCol()
+    notified_serial = IntCol()
     account = StringCol()
 
 class Records(SQLObject):
@@ -57,9 +57,9 @@ class Records(SQLObject):
     content = StringCol()
     ttl = IntCol()
     prio = IntCol()
-    change_date = StringCol()
+    change_date = IntCol()
     ordername = StringCol()
-    auth = StringCol()
+    auth = IntCol()
 
 class Changes(SQLObject):
     # id = IntCol() # implicitly there