-
Notifications
You must be signed in to change notification settings - Fork 91
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
PostgreSQL: add support for TRIGGERs and FUNCTIONs #82
Comments
good work, man. That is the thing I was looking last few days. PS. But I hardcode already triggers into upgrade/downgrade scripts ( |
I have found problem. PostgreSQL requires parameters should be specified. This is copy/paste from
|
|
Just harcoding
otherwise we get:
|
Also I have changed this:
This allows me create UNIQUE INDEX instead of constraint. I think this is better. |
I was wrong about UNIQUE INDEX (prof):
Also:
|
wrt #82. The procedures need to be added first, before the tables. I have a situation where a procedure is used for the default of a column and the deploy fails because it is not defined. |
I was in need to support functions & triggers in schemas generated from DBIx::Class, so I started to add this features in this branch.
t/46xml-to-pg.t
with some clarification for procedure parametersql
t/60roundtrip.t
CREATE FUNCTION
statement from Schema object in diff - after clarifyingsql
meaning (IMHO it should contain complete SQL statement for creating function, every database has its own specs)The text was updated successfully, but these errors were encountered: