what should I do to handle about the table column name as same with table name when generate diesel schama #3000
Unanswered
jiangxiaoqiang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Generally speaking:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using diesel cli to generate a schema, but when the table column name as same with table name, the compile will throw eorror:
error: Column
article_content
cannot be named the same as its table.I was wondering if someone knows how to handle this situtation properly, I have no idea about how to handle this error. any suggestion is welcome. this is what I am facing right now:https://stackoverflow.com/questions/70438471/error-column-article-content-cannot-be-named-the-same-as-its-table
Or there is noway to handle this situation right now that I must change my table name or column name to avoid this problem? This is the full output of the error:
Beta Was this translation helpful? Give feedback.
All reactions