Assuming your DB prefix is “wp” then the below will add the tables. If you have another DB prefix, just replace it in SQL below before running.
CREATE TABLE IF NOT EXISTS wp_yoast_seo_meta
(
object_id
bigint(20) NOT NULL,
internal_link_count
int(10) NOT NULL DEFAULT ‘0’,
incoming_link_count
int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
—
— Indexes for dumped tables
—
—
— Indexes for table wp_yoast_seo_meta
—
ALTER TABLE wp_yoast_seo_meta
ADD PRIMARY KEY (object_id
);
—
— AUTO_INCREMENT for dumped tables
—
—
— AUTO_INCREMENT for table wp_yoast_seo_meta
—
ALTER TABLE wp_yoast_seo_meta
MODIFY object_id
bigint(20) NOT NULL AUTO_INCREMENT;
CREATE TABLE IF NOT EXISTS wp_yoast_seo_links
(
id
bigint(20) NOT NULL,
url
varchar(255) NOT NULL,
post_id
bigint(20) NOT NULL,
target_post_id
bigint(20) NOT NULL,
type
varchar(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
—
— Indexes for dumped tables
—
—
— Indexes for table wp_yoast_seo_links
—
ALTER TABLE wp_yoast_seo_links
ADD PRIMARY KEY (id
),
ADD KEY link_direction
(post_id
,type
);
—
— AUTO_INCREMENT for dumped tables
—
—
— AUTO_INCREMENT for table wp_yoast_seo_links
—
ALTER TABLE wp_yoast_seo_links
MODIFY id
bigint(20) NOT NULL AUTO_INCREMENT;