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

add comment to NAMING_CONVENTION per 9b12c01168cb756ec36351d7414cad95e87f6581 #2156

Merged
merged 2 commits into from
Dec 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/tutorials/wiki2/basiclayout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ will inherit from the ``Base`` class so they can be associated with our
particular database connection.

.. literalinclude:: src/basiclayout/tutorial/models/meta.py
:lines: 15-16
:lineno-start: 15
:lines: 18-19
:lineno-start: 18
:linenos:
:language: py

Expand All @@ -221,7 +221,7 @@ configures various database settings by calling subsequently defined functions.

.. literalinclude:: src/basiclayout/tutorial/models/meta.py
:pyobject: includeme
:lineno-start: 19
:lineno-start: 22
:linenos:
:language: py

Expand All @@ -232,7 +232,7 @@ unless an exception is raised, in which case the transaction will be aborted.

.. literalinclude:: src/basiclayout/tutorial/models/meta.py
:pyobject: get_session
:lineno-start: 32
:lineno-start: 35
:linenos:
:language: py

Expand All @@ -243,7 +243,7 @@ URI, something like ``sqlite://``.

.. literalinclude:: src/basiclayout/tutorial/models/meta.py
:pyobject: get_engine
:lineno-start: 39
:lineno-start: 42
:linenos:
:language: py

Expand All @@ -254,7 +254,7 @@ creating a session with the database engine.

.. literalinclude:: src/basiclayout/tutorial/models/meta.py
:pyobject: get_dbmaker
:lineno-start: 43
:lineno-start: 46
:linenos:
:language: py

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from sqlalchemy.schema import MetaData
import zope.sqlalchemy

# Recommended naming convention used by Alembic, as various different database
# providers will autogenerate vastly different names making migrations more
# difficult. See: http://alembic.readthedocs.org/en/latest/naming.html
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorials/wiki2/src/basiclayout/tutorial/models/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from sqlalchemy.schema import MetaData
import zope.sqlalchemy

# Recommended naming convention used by Alembic, as various different database
# providers will autogenerate vastly different names making migrations more
# difficult. See: http://alembic.readthedocs.org/en/latest/naming.html
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorials/wiki2/src/models/tutorial/models/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from sqlalchemy.schema import MetaData
import zope.sqlalchemy

# Recommended naming convention used by Alembic, as various different database
# providers will autogenerate vastly different names making migrations more
# difficult. See: http://alembic.readthedocs.org/en/latest/naming.html
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorials/wiki2/src/tests/tutorial/models/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from sqlalchemy.schema import MetaData
import zope.sqlalchemy

# Recommended naming convention used by Alembic, as various different database
# providers will autogenerate vastly different names making migrations more
# difficult. See: http://alembic.readthedocs.org/en/latest/naming.html
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down
3 changes: 3 additions & 0 deletions docs/tutorials/wiki2/src/views/tutorial/models/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
from sqlalchemy.schema import MetaData
import zope.sqlalchemy

# Recommended naming convention used by Alembic, as various different database
# providers will autogenerate vastly different names making migrations more
# difficult. See: http://alembic.readthedocs.org/en/latest/naming.html
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
Expand Down