-
Notifications
You must be signed in to change notification settings - Fork 398
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
Migrations database:reverse is not generating some objects on postgres #1942
Comments
I don't think postgres (or any other DBMS) gives metadata for view columns, so it is not possible to automatically generate schema information. But I guess it is possible to add a view manually in schema.xml as a table with the Considering the lack of metadata, I don't see how this can be improved, but if you have something in mind, PRs (and discussions) are always welcome. As to the enum columns, I'm afraid I don't even know if or how they are supported by Propel. |
Im actually using propel on my project not directly for the models, but for the migrations system. We can actually fetch the meta data from pg_catalog; Im talking about this objects, cuz i think is very important for the schema.xml be an abstraction of database; I actually like the approach of changing the schema and generating the migrations through the diff command. What do you think @mringler ? |
Ah, seems like we are talking about two different things. When you just want to manage the raw SELECT
column_name,
data_type,
column_default,
is_nullable,
numeric_precision,
numeric_scale,
character_maximum_length
FROM information_schema.columns
WHERE ... I don't think similar data is available for views. Though you can do
which should suffice to create simple For version management alone, it might be enough to put the view's |
The command database:reverse is not generating several objects inside my postgres database, atm I found out that views ,enums columns and materialized_views are not being generated on my schema.xml.
Is this inside of the scope of the project ?
If not, would you accept a PR ?
The text was updated successfully, but these errors were encountered: