Changes between Version 6 and Version 7 of GSOC2012/DatabaseMigration/Userguildlines
- Timestamp:
- 08/16/12 15:16:21 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSOC2012/DatabaseMigration/Userguildlines
v6 v7 42 42 43 43 44 === migration_renaming_table (web2py_path, app ,old_table_name,new_table_name)===44 === migration_renaming_table === 45 45 ==== Purpose of the migration==== 46 47 ==== Example of the migration ====48 http://pastebin.ubuntu.com/1142568/49 46 50 47 ==== Method of Calling ==== 51 48 {{{#!python 52 49 import migration_scripts 53 migration_scripts. list_field_to_reference(web2py_path,app,new_table_name , new_list_field , list_field_name , old_table_id_field , old_table)50 migration_scripts.migration_renaming_table(web2py_path, app ,old_table_name,new_table_name) 54 51 }}} 55 52 … … 59 56 ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| 60 57 ||new_table_name ||The name of the new table to which the list field needs to migrated|| 61 ||new_list_field ||The name of the field in the new table which will hold the content of the list field|| 62 ||list_field_name ||The name of the list field in the original table|| 63 ||old_table_id_field ||The name of the id field in the original table|| 64 ||old_table ||The name of the original table|| 58 ||old_table_name ||The name of the original table|| 65 59 66 60