Changeset 453

Show
Ignore:
Timestamp:
Tue Jun 17 20:55:40 2008
Author:
Brian
Message:

Clear 'In Use' flag for columns in unneeded tables

Files:

Legend:

Unmodified
Added
Removed
Modified
  • scripts/trunk/Object Role Modeling/Rmap.py

    r448 r453  
    4 4 # 080609 - start first draft  
    5 5 # 080613 - first working version  
      6 # 080617 - clear 'in use' flag for columns in unneeded tables  
    6 7  
    7 8 import ORM  
     
    150 151                 old.Delete()  
    151 152  
    152       for old in old_tables:  
    153           old.InUse = None  
    154           if not old.InBase:  
    155               old.Delete()  
      153     for old_table in old_tables:  # old tables that aren't needed  
      154         old_columns = old_table.GetList('RelationalColumn')  
      155         for old in old_columns:  
      156             old.InUse = None  # none of the columns would be in use  
      157             if not old.InBase:  
      158                 old.Delete()  
      159         old_table.InUse = None  
      160         if not old_table.InBase:  
      161             old_table.Delete()  
    156 162  
    157 163 def Do(self):