fix missing auto-increment for new table
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -858,7 +858,7 @@ CREATE TABLE IF NOT EXISTS `panel_domaintoip` (
|
|||||||
|
|
||||||
DROP TABLE IF EXISTS `domain_dns_entries`;
|
DROP TABLE IF EXISTS `domain_dns_entries`;
|
||||||
CREATE TABLE `domain_dns_entries` (
|
CREATE TABLE `domain_dns_entries` (
|
||||||
`id` int(20) NOT NULL,
|
`id` int(20) NOT NULL auto_increment,
|
||||||
`domain_id` int(15) NOT NULL,
|
`domain_id` int(15) NOT NULL,
|
||||||
`record` varchar(255) NOT NULL,
|
`record` varchar(255) NOT NULL,
|
||||||
`type` varchar(10) NOT NULL DEFAULT 'A',
|
`type` varchar(10) NOT NULL DEFAULT 'A',
|
||||||
|
|||||||
@@ -3321,7 +3321,7 @@ if (isFroxlorVersion('0.9.35.1') && isDatabaseVersion('201604270')) {
|
|||||||
|
|
||||||
Database::query("DROP TABLE IF EXISTS `domain_dns_entries`;");
|
Database::query("DROP TABLE IF EXISTS `domain_dns_entries`;");
|
||||||
$sql = "CREATE TABLE `domain_dns_entries` (
|
$sql = "CREATE TABLE `domain_dns_entries` (
|
||||||
`id` int(20) NOT NULL,
|
`id` int(20) NOT NULL auto_increment,
|
||||||
`domain_id` int(15) NOT NULL,
|
`domain_id` int(15) NOT NULL,
|
||||||
`record` varchar(255) NOT NULL,
|
`record` varchar(255) NOT NULL,
|
||||||
`type` varchar(10) NOT NULL DEFAULT 'A',
|
`type` varchar(10) NOT NULL DEFAULT 'A',
|
||||||
|
|||||||
Reference in New Issue
Block a user