]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2404] lease_time renamed valid_lifetime in lease4 table
authorStephen Morris <stephen@isc.org>
Tue, 20 Nov 2012 12:49:38 +0000 (12:49 +0000)
committerStephen Morris <stephen@isc.org>
Tue, 20 Nov 2012 12:49:38 +0000 (12:49 +0000)
Make the names of the columns consistent between the lease4 and
lease6 tables.

src/lib/dhcpsrv/dhcpdb_create.mysql
src/lib/dhcpsrv/tests/schema_copy.h

index 7a292ec154cf02952e00c02406ea65e24a9182d0..777a12ff22a5610875583093c36bdff42c749f3b 100644 (file)
@@ -34,7 +34,7 @@ CREATE TABLE lease4 (
     address INT UNSIGNED PRIMARY KEY NOT NULL,  # IPv4 address
     hwaddr VARBINARY(20),                       # Hardware address
     client_id VARBINARY(128),                   # Client ID
-    lease_time INT UNSIGNED,                    # Length of the lease (seconds)
+    valid_lifetime INT UNSIGNED,                # Length of the lease (seconds)
     expire TIMESTAMP,                           # Expiration time of the lease
     subnet_id INT UNSIGNED                      # Subnet identification
     ) ENGINE = INNODB;
@@ -77,7 +77,7 @@ CREATE TABLE schema_version (
     minor INT                               # Minor version number
     );
 START TRANSACTION;
-INSERT INTO schema_version VALUES (0, 1);
+INSERT INTO schema_version VALUES (0, 2);
 COMMIT;
 
 # Notes:
index 1dd796d64176330dc5f4def4ddd7fa5d074bf829..3e739daacd063b5152e0e21eef1d1874dc296dc9 100644 (file)
@@ -44,7 +44,7 @@ const char* create_statement[] = {
         "address INT UNSIGNED PRIMARY KEY NOT NULL,"
         "hwaddr VARBINARY(20),"
         "client_id VARBINARY(128),"
-        "lease_time INT UNSIGNED,"
+        "valid_lifetime INT UNSIGNED,"
         "expire TIMESTAMP,"
         "subnet_id INT UNSIGNED"
         ") ENGINE = INNODB",