Re: [Sqlalchemy-tickets] [sqlalchemy] #2923: schema naming convention
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-01-27 22:04:32
|
#2923: schema naming convention
------------------------------+-------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: enhancement | Status: new
Priority: high | Milestone: 0.9.xx
Component: schema | Severity: major - 1-3 hours
Resolution: | Keywords:
Progress State: needs tests |
------------------------------+-------------------------------
Changes (by zzzeek):
* severity: no triage selected yet => major - 1-3 hours
* component: cextensions => schema
* priority: medium => high
* milestone: => 0.9.xx
* status_field: awaiting triage => needs tests
* type: defect => enhancement
Old description:
> see attached
New description:
see attached
{{{
#!python
convention = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
"ck": "ck_%(table_name)s_%(constraint_name)s",
"fk":
"fk_%(table_name)s_%(parent_column_0_name)s_%(referred_table_name)s",
"pk": "pk_%(table_name)s"
}
metadata = MetaData(naming_convention=convention)
}}}
--
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2923#comment:1>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|