merge
authorTero Marttila <terom@paivola.fi>
Wed, 24 Oct 2012 21:28:32 +0300
changeset 35 4a76d20f205f
parent 33 768983d2e71d (diff)
parent 34 491f7da9d29b (current diff)
child 36 90af93caef84
child 38 959a268de543
merge
bin/pvl.verkko-dhcp
--- a/bin/pvl.verkko-dhcp	Wed Oct 24 21:27:30 2012 +0300
+++ b/bin/pvl.verkko-dhcp	Wed Oct 24 21:28:32 2012 +0300
@@ -94,7 +94,7 @@
         """
 
         log.info("Creating database tables: dhcp_hosts")
-        db.dhcp_hosts.create(self.db.engine)
+        db.dhcp_hosts.create(self.db.engine, checkfirst=True)
 
     def insert (self, attrs) :
         """
@@ -201,7 +201,7 @@
         """
 
         log.info("Creating database tables: dhcp_leases")
-        db.dhcp_leases.create(self.db.engine)
+        db.dhcp_leases.create(self.db.engine, checkfirst=True)
 
     def update (self, lease) :
         """