Files
tryton-db-migration/data/8.0/ir.json
T
uha4 24caf23986 extract gets and saves most tables worked on
some cases still need some work...
2026-08-08 22:32:31 +02:00

706 lines
21 KiB
JSON

{
"version": "8.0",
"module": "ir",
"files": [
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/export.py",
"class": "Export",
"method": "__register__",
"line": 68,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_export"
],
"line": 79,
"args": [
"*table.update([table.user], [table.create_uid])"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.user], [table.create_uid]))",
"phase": "after_super",
"condition": "not user_exists"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_export"
],
"line": 79,
"args": [
"[table.user]",
"[table.create_uid]"
],
"kwargs": {},
"code": "table.update([table.user], [table.create_uid])",
"phase": "after_super",
"condition": "not user_exists"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "Model",
"method": "__register__",
"line": 82,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model"
],
"line": 88,
"args": [
"'name'",
"'string'"
],
"kwargs": {},
"code": "table_h.column_rename('name', 'string')",
"phase": "before_super",
"condition": "table_h.column_exist('model')"
},
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model"
],
"line": 89,
"args": [
"'model'",
"'name'"
],
"kwargs": {},
"code": "table_h.column_rename('model', 'name')",
"phase": "before_super",
"condition": "table_h.column_exist('model')"
},
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model"
],
"line": 90,
"args": [
"'model_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('model_uniq')",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelField",
"method": "__register__",
"line": 325,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_field"
],
"line": 337,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field"
],
"line": 338,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_field"
],
"line": 339,
"args": [
"*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_field"
],
"line": 339,
"args": [
"[table.model]",
"[model.name]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_field"
],
"line": 343,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_field"
],
"line": 346,
"args": [
"'field_description'",
"'string'"
],
"kwargs": {},
"code": "table_h.column_rename('field_description', 'string')",
"phase": "before_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelAccess",
"method": "__register__",
"line": 539,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_access"
],
"line": 551,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_access"
],
"line": 552,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_access"
],
"line": 553,
"args": [
"*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_access"
],
"line": 553,
"args": [
"[table.model]",
"[model.name]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_access"
],
"line": 557,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelFieldAccess",
"method": "__register__",
"line": 772,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_field_access"
],
"line": 784,
"args": [
"'field'",
"'_temp_field'"
],
"kwargs": {},
"code": "table_h.column_rename('field', '_temp_field')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field_access"
],
"line": 785,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_field_access"
],
"line": 786,
"args": [
"'field'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('field', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_field_access"
],
"line": 787,
"args": [
"*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id))",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_field_access"
],
"line": 787,
"args": [
"[table.model, table.field]",
"[field.model, field.name]"
],
"kwargs": {
"from_": "[field]",
"where": "table._temp_field == field.id"
},
"code": "table.update([table.model, table.field], [field.model, field.name], from_=[field], where=table._temp_field == field.id)",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_field_access"
],
"line": 792,
"args": [
"'_temp_field'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_field')",
"phase": "before_super",
"condition": "table_h.column_exist('field') and table_h.column_is_type('field', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelButton",
"method": "__register__",
"line": 949,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_model_button"
],
"line": 961,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_model_button"
],
"line": 962,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_button"
],
"line": 963,
"args": [
"*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_model_button"
],
"line": 963,
"args": [
"[table.model]",
"[model.name]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_model_button"
],
"line": 967,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 972,
"args": [
"'name_model_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('name_model_uniq')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/model.py",
"class": "ModelData",
"method": "__register__",
"line": 1301,
"operations": [
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_data"
],
"line": 1307,
"args": [
"'fs_id_module_model_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('fs_id_module_model_uniq')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/rule.py",
"class": "RuleGroup",
"method": "__register__",
"line": 100,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_rule_group"
],
"line": 112,
"args": [
"'model'",
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.column_rename('model', '_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "add_column",
"tables": [
"ir_rule_group"
],
"line": 113,
"args": [
"'model'",
"'VARCHAR'"
],
"kwargs": {},
"code": "table_h.add_column('model', 'VARCHAR')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_rule_group"
],
"line": 114,
"args": [
"*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id))",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_rule_group"
],
"line": 114,
"args": [
"[table.model]",
"[model.name]"
],
"kwargs": {
"from_": "[model]",
"where": "table._temp_model == model.id"
},
"code": "table.update([table.model], [model.name], from_=[model], where=table._temp_model == model.id)",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
},
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_rule_group"
],
"line": 118,
"args": [
"'_temp_model'"
],
"kwargs": {},
"code": "table_h.drop_column('_temp_model')",
"phase": "before_super",
"condition": "table_h.column_exist('model') and table_h.column_is_type('model', 'INTEGER')"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
"class": "ViewTreeWidth",
"method": "__register__",
"line": 511,
"operations": [
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_ui_view_tree_width"
],
"line": 517,
"args": [
"'width'",
"'remove'"
],
"kwargs": {},
"code": "table_h.not_null_action('width', 'remove')",
"phase": "after_super"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/ui/view.py",
"class": "ViewTreeOptional",
"method": "__register__",
"line": 690,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"ir_ui_view_tree_optional"
],
"line": 699,
"args": [
"'view_id'",
"'view'"
],
"kwargs": {},
"code": "table_h.column_rename('view_id', 'view')",
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_ui_view_tree_optional",
"ir_ui_view"
],
"line": 704,
"args": [
"*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)"
],
"kwargs": {},
"code": "cursor.execute(*table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"ir_ui_view_tree_optional",
"ir_ui_view"
],
"line": 704,
"args": [
"[table.model]",
"[view.select(view.model, where=view.id == table.view)]"
],
"kwargs": {
"where": "table.model == Null"
},
"code": "table.update([table.model], [view.select(view.model, where=view.id == table.view)], where=table.model == Null)",
"phase": "after_super"
},
{
"object": "view",
"operation": "select",
"tables": [
"ir_ui_view"
],
"line": 706,
"args": [
"view.model"
],
"kwargs": {
"where": "view.id == table.view"
},
"code": "view.select(view.model, where=view.id == table.view)",
"phase": "after_super"
}
]
}
]
}