ariga / entimport

A tool for generating Ent schema from SQL schema
Apache License 2.0
184 stars 55 forks source link

mysql - set type not working #28

Open thmeitz opened 2 years ago

thmeitz commented 2 years ago

entimport fails, if MySQL set type is used.

entimport: schema import failed - entimport: unsupported type &{<nil> ["user" "system"]}

DDL

CREATE TABLE `ftp_user` (
  `ftp_user_id` int unsigned NOT NULL AUTO_INCREMENT,

  .... more columns

  `user_type` set('user','system') NOT NULL DEFAULT 'user',
  PRIMARY KEY (`ftp_user_id`),
) DEFAULT CHARSET=utf8mb3;
zeevmoney commented 2 years ago

Hi,

See my reply here : https://github.com/ariga/entimport/issues/27#issuecomment-1100699668