Update of /cvsroot/modeling/ProjectModeling/Modeling/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv26189/scripts
Modified Files:
mdl_generate_DB_schema.py
Log Message:
Fixed: some options were not taken into account (-t, -p, -s, -f and -F)
Index: mdl_generate_DB_schema.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/scripts/mdl_generate_DB_schema.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mdl_generate_DB_schema.py 4 Feb 2003 08:38:10 -0000 1.2
--- mdl_generate_DB_schema.py 22 Apr 2003 12:11:08 -0000 1.3
***************
*** 223,230 ****
_create_options_to_key={
'-T': CreateTablesKey, '-P': PrimaryKeyConstraintsKey,
! '-S': CreatePrimaryKeySupportKey, 'F': ForeignKeyConstraintsKey }
_drop_options_to_key={
'-t': DropTablesKey, '-p': DropPrimaryKeyConstraintsKey,
! '-s': DropPrimaryKeySupportKey, 'F': DropForeignKeyConstraintsKey }
def main(args):
--- 223,230 ----
_create_options_to_key={
'-T': CreateTablesKey, '-P': PrimaryKeyConstraintsKey,
! '-S': CreatePrimaryKeySupportKey, '-F': ForeignKeyConstraintsKey }
_drop_options_to_key={
'-t': DropTablesKey, '-p': DropPrimaryKeyConstraintsKey,
! '-s': DropPrimaryKeySupportKey, '-f': DropForeignKeyConstraintsKey }
def main(args):
***************
*** 267,271 ****
if k in _drop_options_to_key.keys():
! generation_options[_drop_options_to_key[k]]=0; continue
if k == '-D':
--- 267,271 ----
if k in _drop_options_to_key.keys():
! generation_options[_drop_options_to_key[k]]=1; continue
if k == '-D':
|