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

Column Annotation #1425

Closed
renatogabrielbr opened this issue Jan 26, 2020 · 3 comments
Closed

Column Annotation #1425

renatogabrielbr opened this issue Jan 26, 2020 · 3 comments
Assignees
Milestone

Comments

@renatogabrielbr
Copy link

Column anotation does not generate type boolean for postgresql.

Also does not generate the default value for any columns.

DevTools 4.0.1 Phalcon 4.0.2 Postgres 12.1 Php 7.4.2 Nginx 1.6.11

phalcon all-models --schema=main --namespace=App\Models --doc --relations --fk --annotate --force

@wmamrak
Copy link

wmamrak commented Jan 26, 2020

Similarly, SMALLINT, MEDIUMINT and TINYINT are annotated as strings.

DevTools 4.0.1, Phalcon 4.0.3, MariaDB 10.4.11, PHP 7.4.1, Apache 2.4.41

@renatogabrielbr
Copy link
Author

Similarly, SMALLINT, MEDIUMINT and TINYINT are annotated as strings.

DevTools 4.0.1, Phalcon 4.0.3, MariaDB 10.4.11, PHP 7.4.1, Apache 2.4.41

Yep, so is useless, I was triyng to use because of this bug, bit I did make a fix, if you have the same problem as column type and default value, you can do like this.

phalcon/cphalcon#14722 (comment)

@BeMySlaveDarlin
Copy link
Contributor

Fixed in attached PR.

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

No branches or pull requests

4 participants