[DBIx-Class-Devel] [sql-translator] Add index length option for MySQL (#68)

Andy Beverley notifications at github.com
Wed Sep 2 13:00:18 GMT 2015


This adds an option to be able to specify index lengths for MySQL, such as:

```$index->fields( 'id', { name => 'firstname', size => 15 } );```

The majority of this PR is updating the other providers to ignore this, and a bunch of tests (including a new basic SQLServer test).

You can view, comment on, or merge this pull request online at:

  https://github.com/dbsrgits/sql-translator/pull/68

-- Commit Summary --

  * Add index length option for MySQL

-- File Changes --

    M lib/SQL/Translator/Generator/DDL/SQLServer.pm (4)
    M lib/SQL/Translator/Producer/DB2.pm (4)
    M lib/SQL/Translator/Producer/GraphViz.pm (4)
    M lib/SQL/Translator/Producer/HTML.pm (4)
    M lib/SQL/Translator/Producer/MySQL.pm (4)
    M lib/SQL/Translator/Producer/Oracle.pm (4)
    M lib/SQL/Translator/Producer/POD.pm (4)
    M lib/SQL/Translator/Producer/PostgreSQL.pm (5)
    M lib/SQL/Translator/Producer/SQLite.pm (6)
    M lib/SQL/Translator/Producer/Sybase.pm (4)
    M lib/SQL/Translator/Role/ListAttr.pm (5)
    M lib/SQL/Translator/Schema/Index.pm (25)
    M lib/SQL/Translator/Utils.pm (13)
    M t/13schema.t (37)
    M t/38-mysql-producer.t (34)
    M t/45db2-producer.t (10)
    M t/47postgres-producer.t (8)
    M t/55-oracle-producer.t (12)
    M t/56-sqlite-producer.t (6)
    A t/75-sqlserver-producer.t (112)

-- Patch Links --

https://github.com/dbsrgits/sql-translator/pull/68.patch
https://github.com/dbsrgits/sql-translator/pull/68.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-translator/pull/68
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20150902/7f71136c/attachment.htm>


More information about the DBIx-Class-Devel mailing list