From: Mike Bayer Date: Thu, 29 Oct 2015 18:38:34 +0000 (-0400) Subject: Merge branch 'pr204' X-Git-Tag: rel_1_1_0b1~84^2~70^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=382950b70150434f124b6dc27df2b360e7d0331e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Merge branch 'pr204' --- 382950b70150434f124b6dc27df2b360e7d0331e diff --cc doc/build/changelog/changelog_11.rst index dcd43f28d6,e296be0e2e..688818a2a3 --- a/doc/build/changelog/changelog_11.rst +++ b/doc/build/changelog/changelog_11.rst @@@ -21,57 -21,16 +21,67 @@@ .. changelog:: :version: 1.1.0b1 + .. change:: + :tags: enhancement, schema + :pullreq: github:204 + + The default generation functions passed to :class:`.Column` objects + are now run through "update_wrapper", or an equivalent function + if a callable non-function is passed, so that introspection tools + preserve the name and docstring of the wrapped function. Pull + request courtesy hsum. + + .. change:: + :tags: change, sql, mysql + :tickets: 3216 + + The system by which a :class:`.Column` considers itself to be an + "auto increment" column has been changed, such that autoincrement + is no longer implicitly enabled for a :class:`.Table` that has a + composite primary key. In order to accommodate being able to enable + autoincrement for a composite PK member column while at the same time + maintaining SQLAlchemy's long standing behavior of enabling + implicit autoincrement for a single integer primary key, a third + state has been added to the :paramref:`.Column.autoincrement` parameter + ``"auto"``, which is now the default. + + .. seealso:: + + :ref:`change_3216` + + :ref:`change_mysql_3216` + + .. change:: + :tags: change, mysql + :tickets: 3216 + + The MySQL dialect no longer generates an extra "KEY" directive when + generating CREATE TABLE DDL for a table using InnoDB with a + composite primary key with AUTO_INCREMENT on a column that isn't the + first column; to overcome InnoDB's limitation here, the PRIMARY KEY + constraint is now generated with the AUTO_INCREMENT column placed + first in the list of columns. + + .. seealso:: + + :ref:`change_mysql_3216` + + :ref:`change_3216` + + .. change:: + :tags: change, sqlite + :pullreq: github:198 + + Added support to the SQLite dialect for the + :meth:`.Inspector.get_schema_names` method to work with SQLite; + pull request courtesy Brian Van Klaveren. Also repaired support + for creation of indexes with schemas as well as reflection of + foreign key constraints in schema-bound tables. + + .. seealso:: + + :ref:`change_sqlite_schemas` + .. change:: :tags: change, mssql :tickets: 3434