equal
deleted
inserted
replaced
92 """ |
92 """ |
93 CREATE TABLEs |
93 CREATE TABLEs |
94 """ |
94 """ |
95 |
95 |
96 log.info("Creating database tables: dhcp_hosts") |
96 log.info("Creating database tables: dhcp_hosts") |
97 db.dhcp_hosts.create(self.db.engine) |
97 db.dhcp_hosts.create(self.db.engine, checkfirst=True) |
98 |
98 |
99 def insert (self, attrs) : |
99 def insert (self, attrs) : |
100 """ |
100 """ |
101 INSERT new host |
101 INSERT new host |
102 """ |
102 """ |
199 """ |
199 """ |
200 CREATE TABLEs |
200 CREATE TABLEs |
201 """ |
201 """ |
202 |
202 |
203 log.info("Creating database tables: dhcp_leases") |
203 log.info("Creating database tables: dhcp_leases") |
204 db.dhcp_leases.create(self.db.engine) |
204 db.dhcp_leases.create(self.db.engine, checkfirst=True) |
205 |
205 |
206 def update (self, lease) : |
206 def update (self, lease) : |
207 """ |
207 """ |
208 Try an extend an existing lease? |
208 Try an extend an existing lease? |
209 """ |
209 """ |