WordPress database error: [Can't create table `cpdypdor_wp873`.`wpgg_icwp_wpsf_ip_rules` (errno: 150 "Foreign key constraint is incorrectly formed")]CREATE TABLE IF NOT EXISTS `wpgg_icwp_wpsf_ip_rules` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary ID',
ip_ref int(11) UNSIGNED NOT NULL COMMENT 'Foreign Key For Primary ID',
cidr int(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'CIDR',
is_range tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Is IP Range',
offenses int(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Offenses Count',
type char(2) NOT NULL DEFAULT '' COMMENT 'List',
label varchar(255) NOT NULL DEFAULT '' COMMENT 'IP Description',
can_export tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Can This IP Be Exported',
last_access_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Access',
blocked_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP Blocked',
unblocked_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Visitor Requested Unblock',
last_unblock_attempt_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Time An Auto-Unblock Attempt Was Made',
expires_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'The IP Rule on this lists expires at this time.',
imported_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'This IP rule was imported from a master site.',
updated_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Updated',
created_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Created',
deleted_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Soft Deleted',
PRIMARY KEY (id),
FOREIGN KEY (ip_ref) REFERENCES wpgg_icwp_wpsf_ips(id) ON DELETE CASCADE ON UPDATE CASCADE
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
WordPress database error: [Can't create table `cpdypdor_wp873`.`wpgg_icwp_wpsf_ip_rules` (errno: 150 "Foreign key constraint is incorrectly formed")]CREATE TABLE IF NOT EXISTS `wpgg_icwp_wpsf_ip_rules` (
id int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Primary ID',
ip_ref int(11) UNSIGNED NOT NULL COMMENT 'Foreign Key For Primary ID',
cidr int(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'CIDR',
is_range tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Is IP Range',
offenses int(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Offenses Count',
type char(2) NOT NULL DEFAULT '' COMMENT 'List',
label varchar(255) NOT NULL DEFAULT '' COMMENT 'IP Description',
can_export tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Can This IP Be Exported',
last_access_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Access',
blocked_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'IP Blocked',
unblocked_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Visitor Requested Unblock',
last_unblock_attempt_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Time An Auto-Unblock Attempt Was Made',
expires_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'The IP Rule on this lists expires at this time.',
imported_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'This IP rule was imported from a master site.',
updated_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Last Updated',
created_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Created',
deleted_at int(15) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Soft Deleted',
PRIMARY KEY (id),
FOREIGN KEY (ip_ref) REFERENCES wpgg_icwp_wpsf_ips(id) ON DELETE CASCADE ON UPDATE CASCADE
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;