X Tutup
The Wayback Machine - https://web.archive.org/web/20201209034308/https://github.com/volatiletech/sqlboiler/issues/813
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

models.TableNames does not match alias definitions #813

Open
mgrubb opened this issue Jul 28, 2020 · 1 comment
Open

models.TableNames does not match alias definitions #813

mgrubb opened this issue Jul 28, 2020 · 1 comment

Comments

@mgrubb
Copy link

@mgrubb mgrubb commented Jul 28, 2020

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v4.2.0

What is your database and version (eg. Postgresql 10)

Postgresql 12

If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

sqlboiler psql (I have the following in my sqlboiler.toml file)

[aliases.tables.ab_envs]
up_plural = "ABEnvs"
up_singular = "ABEnv"
down_plural = "abEnvs"
down_singular = "abEnv"

If this happened at runtime what code produced the issue? (if not applicable leave blank)

What is the output of the command above with the -d flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

CREATE TABLE IF NOT EXISTS ab_envs (id serial PRIMARY KEY, name varchar(25) NOT NULL UNIQUE);

Further information. What did you do, what did you expect?

I ran sqlboiler, no errors, and everything except the models.TablesNames use the alias as defined.
models.TableNames contains AbEnvs instead of ABEnvs. I would expect model.TableNames to be consistent with the alias definitions.

@aarondl
Copy link
Member

@aarondl aarondl commented Aug 10, 2020

That'd be nice for sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup