[DBIx-Class-Devel] [dbix-class] strip schema name from ADD CONSTRAINT / CREATE INDEX (#48)
Fitz Elliott
notifications at github.com
Thu Jun 26 20:47:49 GMT 2014
* 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
You can merge this Pull Request by running:
git pull https://github.com/felliott/dbix-class strip-schema-from-index
Or you can view, comment on it, or merge it online at:
https://github.com/dbsrgits/dbix-class/pull/48
-- Commit Summary --
* strip schema name from ADD CONSTRAINT / CREATE INDEX
-- File Changes --
M lib/DBIx/Class/ResultSource.pm (1)
M lib/SQL/Translator/Parser/DBIx/Class.pm (8)
M t/99dbic_sqlt_parser.t (22)
-- Patch Links --
https://github.com/dbsrgits/dbix-class/pull/48.patch
https://github.com/dbsrgits/dbix-class/pull/48.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/48
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20140626/11084b73/attachment.htm>
More information about the DBIx-Class-Devel
mailing list