Willian Mori

Results 4 comments of Willian Mori

After trying to pinpoint the issue I've taken notice in this line https://github.com/SeaQL/sea-orm/blob/6a22207944d6a99ed0de8031851b4cdda7c956e9/sea-orm-codegen/src/entity/transformer.rs#L89 where after inserting ``` println!("{:?}", tbl_fk); let rel: Relation = tbl_fk.into(); println!("{:?}", rel); return rel; ``` and...

Seems like `sea_schema::sqlite::TableDef::get_foreign_keys()` makes the query `pragma foreign_key_list(host_site)` which gives ``` 0|0|site|site_id||NO ACTION|NO ACTION|NONE 1|0|host|host_id||NO ACTION|NO ACTION|NONE ``` so the `to` column is empty. I don't know enough to do...

After trying to pinpoint the issue I've taken notice in this line https://github.com/SeaQL/sea-orm/blob/6a22207944d6a99ed0de8031851b4cdda7c956e9/sea-orm-codegen/src/entity/transformer.rs#L89 where after inserting ``` println!("{:?}", tbl_fk); let rel: Relation = tbl_fk.into(); println!("{:?}", rel); return rel; ``` and...

Seems like `sea_schema::sqlite::TableDef::get_foreign_keys()` makes the query `pragma foreign_key_list(host_site)` which gives ``` 0|0|site|site_id||NO ACTION|NO ACTION|NONE 1|0|host|host_id||NO ACTION|NO ACTION|NONE ``` so the `to` column is empty. I don't know enough to do...