Add description field to FTP accounts, fixes #1340

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-01-02 22:45:30 +01:00
parent 15515f2840
commit 0c2aa8de45
11 changed files with 48 additions and 9 deletions

View File

@@ -29,6 +29,7 @@ CREATE TABLE `ftp_users` (
`down_count` int(15) NOT NULL default '0',
`down_bytes` bigint(30) NOT NULL default '0',
`customerid` int(11) NOT NULL default '0',
`description` varchar(255) NOT NULL DEFAULT ''
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
KEY `customerid` (`customerid`)
@@ -525,7 +526,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
('panel', 'phpconfigs_hidestdsubdomain', '0'),
('panel', 'allow_theme_change_admin', '1'),
('panel', 'allow_theme_change_customer', '1'),
('panel', 'version', '0.9.32-dev3');
('panel', 'version', '0.9.32-dev4');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -2668,3 +2668,15 @@ if (isFroxlorVersion('0.9.32-dev2')) {
updateToVersion('0.9.32-dev3');
}
if (isFroxlorVersion('0.9.32-dev3')) {
showUpdateStep("Updating from 0.9.32-dev3 to 0.9.32-dev4");
lastStepStatus(0);
showUpdateStep("Adding news FTP-description field");
Database::query("ALTER TABLE `".TABLE_FTP_USERS."` ADD `description` varchar(255) NOT NULL DEFAULT '' AFTER `customerid`;");
lastStepStatus(0);
updateToVersion('0.9.32-dev4');
}