summaryrefslogtreecommitdiff
path: root/docs/quick_tour
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2015-12-01 23:18:00 -0700
committerBert JW Regeer <bertjw@regeer.org>2015-12-01 23:18:00 -0700
commit9b12c01168cb756ec36351d7414cad95e87f6581 (patch)
treea54e7dff598f4c770c1e1c651fdade40389daa63 /docs/quick_tour
parenta4fe417fe851e07dbd208c769bd0f833efa4bd5a (diff)
downloadpyramid-9b12c01168cb756ec36351d7414cad95e87f6581.tar.gz
pyramid-9b12c01168cb756ec36351d7414cad95e87f6581.tar.bz2
pyramid-9b12c01168cb756ec36351d7414cad95e87f6581.zip
Add documentation why we add a naming convention
Diffstat (limited to 'docs/quick_tour')
-rw-r--r--docs/quick_tour/sqla_demo/sqla_demo/models/meta.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/quick_tour/sqla_demo/sqla_demo/models/meta.py b/docs/quick_tour/sqla_demo/sqla_demo/models/meta.py
index b72b45f9f..80ececd8c 100644
--- a/docs/quick_tour/sqla_demo/sqla_demo/models/meta.py
+++ b/docs/quick_tour/sqla_demo/sqla_demo/models/meta.py
@@ -4,6 +4,9 @@ from sqlalchemy.orm import sessionmaker
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",