7 | | === migrating_to_unique_field === |
8 | | ==== Purpose of the migration==== |
9 | | |
10 | | |
11 | | ==== Method of Calling ==== |
12 | | {{{#!python |
13 | | import migration_scripts |
14 | | import mapping_function |
15 | | migration_scripts.migrating_to_unique_field( web2py_path, app ,field_to_update , changed_table , list_of_tables) |
16 | | }}} |
17 | | |
18 | | ==== Description of arguments ==== |
19 | | ||= Argument =||= Description =|| |
20 | | ||web2py_path ||The path to the web2py congaing the Eden app (i.e "/home/web2py")|| |
21 | | ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| |
22 | | ||field_to_update ||The name of the field with the unique and notnull property|| |
23 | | ||changed_table ||The name of the original table in which the new unique field id added|| |
24 | | ||list_of_tables ||These contains the list of tables which the changed_tables references|| |
25 | | |
| 44 | |
| 45 | === migrating_to_unique_field === |
| 46 | ==== Purpose of the migration==== |
| 47 | Adding values to a new field , or update an existing field through the mappings given through the mapping_funation |
| 48 | |
| 49 | ==== Method of Calling ==== |
| 50 | {{{#!python |
| 51 | import migration_scripts |
| 52 | import mapping_function |
| 53 | migration_scripts.migrating_to_unique_field( web2py_path, app ,field_to_update , changed_table , list_of_tables) |
| 54 | }}} |
| 55 | |
| 56 | ==== Description of arguments ==== |
| 57 | ||= Argument =||= Description =|| |
| 58 | ||web2py_path ||The path to the web2py congaing the Eden app (i.e "/home/web2py")|| |
| 59 | ||app ||The name of the eden application of whose database needs to be migrated (i.e "eden")|| |
| 60 | ||field_to_update ||The name of the field to be updated according to the mapping|| |
| 61 | ||changed_table ||The name of the original table in which the new unique field id added|| |
| 62 | ||list_of_tables ||These contains the list of tables which the changed_tables references|| |