Changes between Version 15 and Version 16 of GSOC2012/DatabaseMigration/Userguildlines


Ignore:
Timestamp:
08/16/12 16:39:25 (12 years ago)
Author:
anubhav
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GSOC2012/DatabaseMigration/Userguildlines

    v15 v16  
    1 [[TOC]]
    2 == Comparson script ==
    3 
    4 
    51== Migration Script ==
    62All the functions that does the migration have been added to migration_scripts file . migration_scripts file internally calls the functions of migration_helping_methods file too perform the migration . Thus in order to do the migration one just needs to import migration_scripts and call the method corresponding to the migration he wants . Also the user who wishes to do the migration in the db doesn't have to know the internal functioning of migration_script , thus the functions or the methods declared in migration_helping_methods file doesn't concern him.
     
    8985||old_table ||The name of the original table||
    9086
    91 == Tests For the migration ==
    9287== Links for the scrips ==
    9388I have made it the database migration in the form of the library ,
     
    10095     https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/migration_helping_methods.py
    10196
    102    * Made the test general for all the migration cases , as in made a menu from which the selected one is tested [[br]]
    103      https://github.com/anubhav929/Dbmigration-final-/blob/master/tests/dbmigration/TestMigration.py
     97   * Test general for all the migration cases , as in made a menu from which the selected one is tested [[br]]
     98    https://github.com/anubhav929/Dbmigration-final-/blob/master/tests/dbmigration/test_migrations.py
    10499
    105100
    106    * Also added the database schema comparison script to this library [[br]]
     101   * Database schema comparison script to this library [[br]]
    107102    https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/apps_db_comparison.py
    108103
     
    112107    Test Scrpit : https://github.com/anubhav929/Dbmigration-final-/blob/master/tests/dbmigration/TestScript.p
    113108   
     109  * Mapping function file to fill values in a field according to the mappings provided and also the query and fields for the select query to feed the required information to the mapping function
     110    https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/mapping_function.py
     111
     112 * Specific Migration script for a particular case in which a string field was changes into a field referencing to a table containing the string field
     113  https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/specific_migration.py