Show
Ignore:
Timestamp:
09/17/09 13:54:19 (3 years ago)
Author:
ged
Message:

- Changed the pattern used by default to generate column names for (all)

ManyToMany relationships so that the meaning of bidirectional
self-referential relationships does not depend on the order of declaration
of each side (closes #69). See upgrade notes for details.

- Made M2MCOL_NAMEFORMAT accept a callable, so that more complex naming

generation can be used if so desired.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • elixir/trunk/elixir/options.py

    r437 r458  
    184184# format constants 
    185185FKCOL_NAMEFORMAT = "%(relname)s_%(key)s" 
    186 M2MCOL_NAMEFORMAT = "%(tablename)s_%(key)s" 
     186OLD_M2MCOL_NAMEFORMAT = "%(tablename)s_%(key)s%(numifself)s" 
     187NEW_M2MCOL_NAMEFORMAT = "%(relname)s_%(key)s" 
     188M2MCOL_NAMEFORMAT = NEW_M2MCOL_NAMEFORMAT 
    187189CONSTRAINT_NAMEFORMAT = "%(tablename)s_%(colnames)s_fk" 
    188190MULTIINHERITANCECOL_NAMEFORMAT = "%(entity)s_%(key)s" 
     
    197199 
    198200# debugging/migration help 
    199 CHECK_TABLENAME_CHANGES = False 
     201MIGRATION_TO_07_AID = False 
    200202 
    201203#