Skip to content
Snippets Groups Projects
Commit 4637b536 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixed wrong default value for auth

parent daa41dbb
No related branches found
No related tags found
1 merge request!1463Resolve "PowerDNS of Debian Buster not working with Ispconfig >=3.2.2"
Pipeline #8247 passed with stage
in 7 minutes and 37 seconds
......@@ -48,7 +48,7 @@ CREATE TABLE IF NOT EXISTS `domainmetadata` (
SET @dbname = DATABASE();
SELECT count(*) INTO @exist FROM `information_schema`.`columns` WHERE `table_schema` = @dbname AND `column_name` = 'auth' AND `table_name` = 'records' LIMIT 1;
SET @query = IF(@exist <= 0, 'ALTER TABLE `records` ADD COLUMN `auth` tinyint(1) default 0 AFTER `change_date`', 'SELECT \'Column Exists\' STATUS');
SET @query = IF(@exist <= 0, 'ALTER TABLE `records` ADD COLUMN `auth` tinyint(1) default 1 AFTER `change_date`', 'SELECT \'Column Exists\' STATUS');
PREPARE stmt FROM @query;
EXECUTE stmt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment