After the update, an error appears on the panel. Error: (1146, “Table ‘cyberpanel.IncBackups_oneclickbackups’ doesn’t exist”)
Os: Ubuntu 18
2x server same error
After the update, an error appears on the panel. Error: (1146, “Table ‘cyberpanel.IncBackups_oneclickbackups’ doesn’t exist”)
Os: Ubuntu 18
2x server same error
I Solve this by manually modify create table query based on this commit 3977cd7 [oc backups] in branch v2.3.5
change this query which has “Specified key was too long; max key length is 767 bytes” problem in older version on Mariadb/mysql :
CREATE TABLE `IncBackups_oneclickbackups` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `planName` varchar(100) NOT NULL, `months` varchar(100) NOT NULL, `price` varchar(100) NOT NULL, `customer` varchar(300) NOT NULL, `subscription` varchar(300) NOT NULL UNIQUE, `sftpUser` varchar(100) NOT NULL, `config` longtext NOT NULL, `date` datetime(6) NOT NULL, `state` integer NOT NULL, `owner_id` integer NOT NULL);
to :
CREATE TABLE `IncBackups_oneclickbackups` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `planName` varchar(100) NOT NULL, `months` varchar(100) NOT NULL, `price` varchar(100) NOT NULL, `customer` varchar(255) NOT NULL, `subscription` varchar(255) NOT NULL UNIQUE, `sftpUser` varchar(100) NOT NULL, `config` longtext NOT NULL, `date` datetime(6) NOT NULL, `state` integer NOT NULL, `owner_id` integer NOT NULL);
then run this query :
ALTER TABLE `IncBackups_oneclickbackups` ADD CONSTRAINT `IncBackups_oneclickb_owner_id_7b4250a4_fk_loginSyst` FOREIGN KEY (`owner_id`) REFERENCES `loginSystem_administrator` (`id`);