Changes between Version 16 and Version 17 of DbDumpScript


Ignore:
Timestamp:
08/09/2011 09:23:19 PM (4 years ago)
Author:
newacct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DbDumpScript

    v16 v17  
    2323
    2424 *   -s Output will displayed in console, default is writing into file
    25  *   -v Display execution infomation, default is does not display
     25 *   -v Display execution information, default is does not display
    2626 *   -d Directory of output, default is `datadir` in current directory. If the path is not existed, it'll be created automatically.
    2727 *   -h Display help information.
     
    6464The strategy of selection of default value of a field is: first, create a default value dict according the Model, then update it according the `default` key of backup data file. So you can see if there is a same definition of a field in both Model and backup data file, it'll use the one in backup data file.
    6565
    66 According the process of default value, this tool will suport these changes, such as: change of field name, add or remove field name, etc. So you can use this tool to finish some simple update work of database.
     66According the process of default value, this tool will support these changes, such as: change of field name, add or remove field name, etc. So you can use this tool to finish some simple update work of database.
    6767
    6868But I don't give it too much test, and my situation is in sqlite3. So download and test are welcome, and I hope you can give me some improve advices.
     
    9292#
    9393# Version 2.0 2007-09-11
    94 #    * refact, and add aoto reset postgres sequence
     94#    * refact, and add auto reset postgres sequence
    9595#
    9696# Version 1.9 2007-09-02 (Merge from RichardH)
     
    117117# Version 1.3 2007-01-20
    118118#    * change the output format of data file, and improve the process
    119 #      effective of dumpping and loading
     119#      effective of dumping and loading
    120120#
    121121# Version 1.2 2007-01-20
     
    124124#
    125125# Version 1.1 2007-01-19
    126 #    * if no arguments after db_dump.py, then it'll show help infomation
     126#    * if no arguments after db_dump.py, then it'll show help information
    127127#
    128128# Version 1.0 2007-01-18
     
    170170                s.append(b)
    171171           
    172     for i, table in enumerate(models.keys()[:]):
     172    for i, table in enumerate(list(models.keys())):
    173173        for field in models[table]._meta.fields:
    174174            if isinstance(field, (ForeignKey, OneToOneField)):
Back to Top