fix 'field does not have a default value' error reported via email

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p) 2014-03-05 08:11:56 +01:00
parent 2d68216699
commit 08ce6be3ff
3 changed files with 9 additions and 3 deletions

View File

@ -858,6 +858,9 @@ if ($page == 'customers'
`openbasedir` = '1',
`speciallogfile` = '0',
`specialsettings` = '',
`dkim_id` = '0',
`dkim_privkey` = '',
`dkim_pubkey` = '',
`add_date` = :adddate"
);
Database::pexecute($ins_stmt, $ins_data);

View File

@ -744,6 +744,9 @@ if ($page == 'domains'
`aliasdomain` = :aliasdomain,
`zonefile` = :zonefile,
`dkim` = :dkim,
`dkim_id` = '0',
`dkim_privkey` = '',
`dkim_pubkey` = '',
`wwwserveralias` = :wwwserveralias,
`iswildcarddomain` = :iswildcarddomain,
`isbinddomain` = :isbinddomain,

View File

@ -226,9 +226,9 @@ CREATE TABLE `panel_domains` (
`caneditdomain` tinyint(1) NOT NULL default '1',
`zonefile` varchar(255) NOT NULL default '',
`dkim` tinyint(1) NOT NULL default '0',
`dkim_id` int(11) unsigned NOT NULL,
`dkim_privkey` text NOT NULL,
`dkim_pubkey` text NOT NULL,
`dkim_id` int(11) unsigned NOT NULL default '0',
`dkim_privkey` text NOT NULL default '',
`dkim_pubkey` text NOT NULL default '',
`wwwserveralias` tinyint(1) NOT NULL default '1',
`parentdomainid` int(11) unsigned NOT NULL default '0',
`openbasedir` tinyint(1) NOT NULL default '0',