Files
tryton-db-migration/data/7.0/production.json
T

101 lines
2.7 KiB
JSON

{
"version": "7.0",
"module": "production",
"files": [
{
"module": "production",
"file": "bom.py",
"class": "BOMInput",
"method": "__register__",
"line": 72,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production_bom_input"
],
"line": 78,
"args": [
"'uom'",
"'unit'"
],
"kwargs": {},
"code": "table_h.column_rename('uom', 'unit')",
"phase": "before_super",
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
},
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"production_bom_input"
],
"line": 84,
"args": [
"'product_bom_uniq'"
],
"kwargs": {},
"code": "table_h.drop_constraint('product_bom_uniq')",
"phase": "after_super"
}
]
},
{
"module": "production",
"file": "production.py",
"class": "Production",
"method": "__register__",
"line": 264,
"operations": [
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production"
],
"line": 270,
"args": [
"'uom'",
"'unit'"
],
"kwargs": {},
"code": "table_h.column_rename('uom', 'unit')",
"phase": "before_super",
"condition": "table_h.column_exist('uom') and (not table_h.column_exist('unit'))"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
"line": 278,
"args": [
"*table.update([table.state], ['cancelled'], where=table.state == 'cancel')"
],
"kwargs": {},
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel'))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
"line": 278,
"args": [
"[table.state]",
"['cancelled']"
],
"kwargs": {
"where": "table.state == 'cancel'"
},
"code": "table.update(\n [table.state], ['cancelled'],\n where=table.state == 'cancel')",
"phase": "after_super"
}
]
}
]
}