Changes between Version 15 and Version 16 of GSOC2012/DatabaseMigration/Userguildlines
- Timestamp:
- 08/16/12 16:39:25 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSOC2012/DatabaseMigration/Userguildlines
v15 v16 1 [[TOC]]2 == Comparson script ==3 4 5 1 == Migration Script == 6 2 All 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. … … 89 85 ||old_table ||The name of the original table|| 90 86 91 == Tests For the migration ==92 87 == Links for the scrips == 93 88 I have made it the database migration in the form of the library , … … 100 95 https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/migration_helping_methods.py 101 96 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.py97 * 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 104 99 105 100 106 * Also added the database schema comparison script to this library [[br]]101 * Database schema comparison script to this library [[br]] 107 102 https://github.com/anubhav929/Dbmigration-final-/blob/master/static/scripts/Database%20migration/apps_db_comparison.py 108 103 … … 112 107 Test Scrpit : https://github.com/anubhav929/Dbmigration-final-/blob/master/tests/dbmigration/TestScript.p 113 108 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