Changes between Version 20 and Version 21 of GSOC2012/DatabaseMigration/Userguildlines


Ignore:
Timestamp:
08/20/12 18:03:52 (9 years ago)
Author:
anubhav
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GSOC2012/DatabaseMigration/Userguildlines

    v20 v21  
    11[[TOC]]
    22== Comparison Script ==
    3 Before using the comparison script , the user of the script should have 2 eden apps , one the containing the old database schema from which the data is to migrated and one with the new database schema
     3Before using the comparison script , the user of the script should have 2 eden apps , one the containing the old database schema from which the data is to migrated and one with the new database schema . This can be done by git cloning a new copy of the eden app to which you to migrate .
     4[[br]]
    45[[br]]
    56The apps_db_comparison script compares the db schema of 2 eden apps to tell the differences[[br]]
     
    9103.NEW_APP[[br]]
    1011i.e python applications/eden/static/scripts/Database_migration/apps_db_comparison.py /home/web2py eden_old eden_new[[br]]
    11 
     12[[br]]
    1213This script also has an test script that makes 2 new web2py with apps to compare
    1314Just run the test script to compare[[br]]
    1415i.e python applications/eden/tests/dbmigration/TestScript.py[[br]]
    15 
     16[[br]]
    1617The detected changes are displayed , then using the changes displayed user could figure out the what kind of migration is needed , like if there is a field appeared in the new schema which has the same properties as the one disappeared from the old schema then the migration function for the renaming a field can be called . [[br]]
    1718[[br]]