当我这样做时,import foreign schema constructor from server mysql_svr into mysql_fdw;
我得到:
ERROR: type "set" does not exist
LINE 6: type set NOT NULL,
^
QUERY: CREATE FOREIGN TABLE search_requests (
id int NOT NULL,
ctime timestamp NOT NULL,
site_id int NOT NULL,
query_id int NOT NULL,
type set NOT NULL,
page smallint NOT NULL
) SERVER mysql_svr OPTIONS (dbname 'constructor', table_name 'search_requests');
CONTEXT: importing foreign table "search_requests"
源表是:
CREATE TABLE `search_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ctime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`site_id` int(11) NOT NULL,
`query_id` int(10) unsigned NOT NULL,
`type` set('content','catalog','gallery') NOT NULL,
`page` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `site` (`site_id`)
) ENGINE=InnoDB AUTO_INCREMENT=391 DEFAULT CHARSET=utf8
我可以让 IMPORT FOREIGN SCHEMA 生成的 SQL 进行所有修复并手动运行它吗?