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

strip schema name from ADD CONSTRAINT / CREATE INDEX #45

Closed
wants to merge 1 commit into from

Conversation

felliott
Copy link
Contributor

  • Pg tablenames may have a schema prefix. This leads to invalid ADD
    CONSTRAINT / CREATE INDEX statments being generated by ->deploy(),
    since constraint and index names may not have a period in them. This
    patch strips the schema part from the table name when constructing
    unique index and constraint names. The fix was taken from
    ribasushi's email to the mailing list:

    http://lists.scsys.co.uk/pipermail/dbix-class/2013-February/011141.html

 * Pg tablenames may have a schema prefix.  This leads to invalid ADD
   CONSTRAINT / CREATE INDEX statments being generated by ->deploy(),
   since constraint and index names may not have a period in them. This
   patch strips the schema part from the table name when constructing
   unique index and constraint names.  The fix was taken from
   ribasushi's email to the mailing list:

   http://lists.scsys.co.uk/pipermail/dbix-class/2013-February/011141.html
@felliott
Copy link
Contributor Author

I've added tests, so I'll close this PR and open a new one.

@felliott felliott closed this Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant