They are problems with adding multiple values to service_alarms, services_time tables. I received error 'Duplicate entry '1' for key 1 [1062]'.
To resolve problem add auto_increment to primary keys in tables.
I've made changes on schema exported using mysqldump utility.
Use carefuly! schema exported using mysql deletes table before inserting a new one.
DROP TABLE IF EXISTS `service_alarms`;
CREATE TABLE `service_alarms` (
- `servicealarmid` bigint(20) unsigned NOT NULL default '0',
+ `servicealarmid` bigint(20) unsigned NOT NULL auto_increment,
`serviceid` bigint(20) unsigned NOT NULL default '0',
`clock` int(11) NOT NULL default '0',
`value` int(11) NOT NULL default '0',
@@ -748,8 +748,8 @@
DROP TABLE IF EXISTS `services_times`;
CREATE TABLE `services_times` (
- `timeid` bigint(20) unsigned NOT NULL default '0',
+ `timeid` bigint(20) unsigned NOT NULL auto_increment,
`serviceid` bigint(20) unsigned NOT NULL default '0',
`type` int(11) NOT NULL default '0',
`ts_from` int(11) NOT NULL default '0',
`ts_to` int(11) NOT NULL default '0'
To resolve problem add auto_increment to primary keys in tables.
I've made changes on schema exported using mysqldump utility.
Use carefuly! schema exported using mysql deletes table before inserting a new one.
DROP TABLE IF EXISTS `service_alarms`;
CREATE TABLE `service_alarms` (
- `servicealarmid` bigint(20) unsigned NOT NULL default '0',
+ `servicealarmid` bigint(20) unsigned NOT NULL auto_increment,
`serviceid` bigint(20) unsigned NOT NULL default '0',
`clock` int(11) NOT NULL default '0',
`value` int(11) NOT NULL default '0',
@@ -748,8 +748,8 @@
DROP TABLE IF EXISTS `services_times`;
CREATE TABLE `services_times` (
- `timeid` bigint(20) unsigned NOT NULL default '0',
+ `timeid` bigint(20) unsigned NOT NULL auto_increment,
`serviceid` bigint(20) unsigned NOT NULL default '0',
`type` int(11) NOT NULL default '0',
`ts_from` int(11) NOT NULL default '0',
`ts_to` int(11) NOT NULL default '0'
Comment