From: Stephen Morris Date: Tue, 20 Nov 2012 12:49:38 +0000 (+0000) Subject: [2404] lease_time renamed valid_lifetime in lease4 table X-Git-Tag: bind10-1.0.0-beta-release~39^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15be5f7bf0fa3e5381afe4bb820a06af434a5af;p=thirdparty%2Fkea.git [2404] lease_time renamed valid_lifetime in lease4 table Make the names of the columns consistent between the lease4 and lease6 tables. --- diff --git a/src/lib/dhcpsrv/dhcpdb_create.mysql b/src/lib/dhcpsrv/dhcpdb_create.mysql index 7a292ec154..777a12ff22 100644 --- a/src/lib/dhcpsrv/dhcpdb_create.mysql +++ b/src/lib/dhcpsrv/dhcpdb_create.mysql @@ -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: diff --git a/src/lib/dhcpsrv/tests/schema_copy.h b/src/lib/dhcpsrv/tests/schema_copy.h index 1dd796d641..3e739daacd 100644 --- a/src/lib/dhcpsrv/tests/schema_copy.h +++ b/src/lib/dhcpsrv/tests/schema_copy.h @@ -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",