Changes between Version 7 and Version 8 of GSOC2012/DatabaseMigration/Userguildlines
- Timestamp:
- 08/16/12 15:25:25 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSOC2012/DatabaseMigration/Userguildlines
v7 v8 12 12 {{{#!python 13 13 import migration_scripts 14 migration_scripts.migrating_to_unique_field( web2py_path,app,field_to_update,changed_table,list_of_tables_for_query)14 migration_scripts.migrating_to_unique_field( web2py_path, app ,field_to_update , changed_table , list_of_tables) 15 15 }}} 16 16 … … 19 19 ||web2py_path ||The path to the web2py congaing the Eden app (i.e "/home/web2py")|| 20 20 ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| 21 ||field_to_update ||The name of the new table to which the list field needs to migrated||22 ||changed_table ||The name of the original table ||23 ||list_of_tables _for_query||list_of_tables_for_query||21 ||field_to_update ||The name of the field with the unique and notnull property|| 22 ||changed_table ||The name of the original table in which the new unique field id added|| 23 ||list_of_tables || These contains the list of tables which the changed_tables references || 24 24 25 25 === migration_renaming_field === … … 36 36 ||web2py_path ||The path to the web2py congaing the Eden app (i.e "/home/web2py")|| 37 37 ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| 38 ||old_table ||The name of the original table||39 ||old_field_name ||The name of the field in the new table which will hold the content of the list field||40 ||new_field_name ||The name of the list field in the original table||41 ||attributes_to_copy ||The name of the id field in the original table||38 ||old_table ||The name of the table in which the field is renamed|| 39 ||old_field_name ||The name of the original field before renaming|| 40 ||new_field_name ||The name of the field after renaming|| 41 ||attributes_to_copy ||The list of attributes which needs to be copied from the old_field to the new_field (needed only in sqlite)|| 42 42 43 43 … … 55 55 ||web2py_path ||The path to the web2py congaing the Eden app (i.e "/home/web2py")|| 56 56 ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| 57 || new_table_name ||The name of the new table to which the list field needs to migrated||58 || old_table_name ||The name of the original table||57 ||old_table_name ||The name of the original table before renaming|| 58 ||new_table_name ||The name of the table after renaming|| 59 59 60 60