Changes between Version 11 and Version 12 of GSOC2012/DatabaseMigration/Userguildlines


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

--

Legend:

Unmodified
Added
Removed
Modified
  • GSOC2012/DatabaseMigration/Userguildlines

    v11 v12  
    11[[TOC]]
    22== Comparson script ==
     3
     4
    35== Migration Script ==
    46All 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.
     
    8688||old_table_id_field ||The name of the id field in the original table||
    8789||old_table ||The name of the original table||
     90
     91== Tests For the migration ==
     92== Links for the scrips ==
     93I have made it the database migration in the form of the library ,
     94
     95   * This file contains all the functions for the actual migration [[br]]
     96     https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/migration_scripts.py
     97
     98
     99   * This file contains all the functions that are used by the actual migration [[br]]
     100     https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/migration_helping_methods.py
     101
     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
     104
     105
     106   * Also added the database schema comparison script to this library[[br]]
     107    https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/apps_db_comparison.py
     108
     109
     110   * The tests for the app comparison are added in the tests folder , this folder also contains the new_model and old_model which are used by the test script to build two apps for coparison[[br]]
     111    Test Folder : https://github.com/anubhav929/Dbmigration-final-/tree/master/tests/dbmigration
     112    Test Scrpit : https://github.com/anubhav929/Dbmigration-final-/blob/master/tests/dbmigration/TestScript.p
     113