WordPressi andmebaasi viga: [Can't create table `d14828sd209484`.`nsiu_kirki_cm_reference` (errno: 150 "Foreign key constraint is incorrectly formed")]CREATE TABLE IF NOT EXISTS nsiu_kirki_cm_reference (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
post_id BIGINT(20) UNSIGNED NOT NULL,
field_meta_key VARCHAR(255) NOT NULL,
ref_post_id BIGINT(20) UNSIGNED NOT NULL,
PRIMARY KEY (id),
INDEX (post_id),
INDEX (ref_post_id),
FOREIGN KEY (post_id) REFERENCES nsiu_posts(ID) ON DELETE CASCADE,
FOREIGN KEY (ref_post_id) REFERENCES nsiu_posts(ID) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci
WordPressi andmebaasi viga: [Can't create table `d14828sd209484`.`nsiu_kirki_comments` (errno: 150 "Foreign key constraint is incorrectly formed")]CREATE TABLE IF NOT EXISTS nsiu_kirki_comments (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
user_id BIGINT(20) UNSIGNED NOT NULL,
post_id BIGINT(20) UNSIGNED NOT NULL,
parent_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
comment TEXT NOT NULL,
meta_data VARCHAR(255) NOT NULL,
status INT(1) NOT NULL COMMENT '1=active, 2=resolved, 0=deleted',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id),
KEY post_id (post_id),
FOREIGN KEY (post_id) REFERENCES nsiu_posts(ID) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci
WordPressi andmebaasi viga: [Can't create table `d14828sd209484`.`nsiu_kirki_comments_seen` (errno: 150 "Foreign key constraint is incorrectly formed")]CREATE TABLE IF NOT EXISTS nsiu_kirki_comments_seen (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
comment_id BIGINT(20) UNSIGNED NOT NULL,
user_id BIGINT(20) UNSIGNED NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY user_comment_unique (user_id, comment_id),
FOREIGN KEY (comment_id) REFERENCES nsiu_kirki_comments(id) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci