From 1a7ffdfcce0fb4d6be9a3280d00390e017bce7ec Mon Sep 17 00:00:00 2001 From: domi <> Date: Wed, 3 Jul 2013 12:13:08 +0000 Subject: [PATCH] ajout d'un champ zonettl sur les domaines --- install/mysql.sql | 1 + install/upgrades/3.1.0~a.sql | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/install/mysql.sql b/install/mysql.sql index e05359ec..b70ec450 100644 --- a/install/mysql.sql +++ b/install/mysql.sql @@ -115,6 +115,7 @@ CREATE TABLE IF NOT EXISTS domaines ( noerase tinyint(4) NOT NULL default '0', dns_action enum ('OK','UPDATE','DELETE') NOT NULL default 'UPDATE', dns_result varchar(255) not null default '', + zonettl int(10) unsigned NOT NULL default '86400', PRIMARY KEY (id), UNIQUE KEY (domaine) ) ENGINE=MyISAM; diff --git a/install/upgrades/3.1.0~a.sql b/install/upgrades/3.1.0~a.sql index f4499384..2dd4fe4c 100644 --- a/install/upgrades/3.1.0~a.sql +++ b/install/upgrades/3.1.0~a.sql @@ -40,3 +40,7 @@ CREATE TABLE IF NOT EXISTS `actions` ( status int(8) unsigned default NULL, PRIMARY KEY ( `id` ) ) ENGINE=MyISAM COMMENT = 'generic actions'; + +-- Alter table domaines to add zone ttl field +ALTER TABLE `domaines` ADD zonettl int(10) unsigned NOT NULL default '86400'; +