- lange existierender Updatecode wurde in jeder 2. Version angezeigt - UPDATEANALYSE.md ergänzt.
574 lines
18 KiB
JSON
574 lines
18 KiB
JSON
{
|
|
"version": "5.2",
|
|
"module": "product",
|
|
"files": [
|
|
{
|
|
"module": "product",
|
|
"file": "configuration.py",
|
|
"class": "ConfigurationDefaultCostPriceMethod",
|
|
"method": "__register__",
|
|
"line": 43,
|
|
"operations": [
|
|
{
|
|
"object": "backend",
|
|
"operation": "get",
|
|
"tables": [],
|
|
"line": 44,
|
|
"args": [
|
|
"'TableHandler'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "backend.get('(backend.get('TableHandler'))')",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [],
|
|
"line": 45,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "migrate_property",
|
|
"tables": [],
|
|
"line": 57,
|
|
"args": [
|
|
"'product.configuration'",
|
|
"field_names",
|
|
"cls",
|
|
"value_names"
|
|
],
|
|
"kwargs": {
|
|
"fields": "fields"
|
|
},
|
|
"code": "migrate_property(\n 'product.configuration', field_names, cls, value_names,\n fields=fields)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist",
|
|
"via": [
|
|
{
|
|
"method": "_migrate_property",
|
|
"line": 51
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "product",
|
|
"file": "product.py",
|
|
"class": "ProductListPrice",
|
|
"method": "__register__",
|
|
"line": 354,
|
|
"operations": [
|
|
{
|
|
"object": "backend",
|
|
"operation": "get",
|
|
"tables": [],
|
|
"line": 355,
|
|
"args": [
|
|
"'TableHandler'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "backend.get('(backend.get('TableHandler'))')",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [],
|
|
"line": 356,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "migrate_property",
|
|
"tables": [],
|
|
"line": 368,
|
|
"args": [
|
|
"'product.template'",
|
|
"field_names",
|
|
"cls",
|
|
"value_names"
|
|
],
|
|
"kwargs": {
|
|
"parent": "'template'",
|
|
"fields": "fields"
|
|
},
|
|
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist",
|
|
"via": [
|
|
{
|
|
"method": "_migrate_property",
|
|
"line": 361
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "product",
|
|
"file": "product.py",
|
|
"class": "ProductCostPriceMethod",
|
|
"method": "__register__",
|
|
"line": 382,
|
|
"operations": [
|
|
{
|
|
"object": "",
|
|
"operation": "Pool",
|
|
"tables": [],
|
|
"line": 383,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Pool()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "backend",
|
|
"operation": "get",
|
|
"tables": [],
|
|
"line": 385,
|
|
"args": [
|
|
"'TableHandler'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "backend.get('(backend.get('TableHandler'))')",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "Transaction().connection",
|
|
"operation": "cursor",
|
|
"tables": [],
|
|
"line": 388,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Transaction",
|
|
"tables": [],
|
|
"line": 388,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Transaction()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [],
|
|
"line": 390,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [],
|
|
"line": 391,
|
|
"args": [
|
|
"ProductCostPrice._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler')).table_exist(ProductCostPrice._table)",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "migrate_property",
|
|
"tables": [],
|
|
"line": 414,
|
|
"args": [
|
|
"'product.template'",
|
|
"field_names",
|
|
"cls",
|
|
"value_names"
|
|
],
|
|
"kwargs": {
|
|
"parent": "'template'",
|
|
"fields": "fields"
|
|
},
|
|
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist and (not cost_price_exist)",
|
|
"via": [
|
|
{
|
|
"method": "_migrate_property",
|
|
"line": 397
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "TableHandler",
|
|
"tables": [],
|
|
"line": 399,
|
|
"args": [
|
|
"ProductCostPrice",
|
|
"module_name"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler'))(ProductCostPrice, module_name)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist and cost_price_exist"
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"product_cost_price_method",
|
|
"product_cost_price"
|
|
],
|
|
"line": 404,
|
|
"args": [
|
|
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns])))",
|
|
"phase": "after_super",
|
|
"condition": "cost_price_table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "sql_table",
|
|
"operation": "insert",
|
|
"tables": [
|
|
"product_cost_price_method",
|
|
"product_cost_price"
|
|
],
|
|
"line": 404,
|
|
"args": [],
|
|
"kwargs": {
|
|
"columns": "[Column(sql_table, c) for c in columns]",
|
|
"values": "cost_price.select(*[Column(cost_price, c) for c in columns])"
|
|
},
|
|
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns],\n values=cost_price.select(\n *[Column(cost_price, c) for c in columns]))",
|
|
"phase": "after_super",
|
|
"condition": "cost_price_table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Column",
|
|
"tables": [],
|
|
"line": 405,
|
|
"args": [
|
|
"sql_table",
|
|
"c"
|
|
],
|
|
"kwargs": {},
|
|
"code": "Column(sql_table, c)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "cost_price_table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "cost_price",
|
|
"operation": "select",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 406,
|
|
"args": [
|
|
"*[Column(cost_price, c) for c in columns]"
|
|
],
|
|
"kwargs": {},
|
|
"code": "cost_price.select(\n *[Column(cost_price, c) for c in columns])",
|
|
"phase": "after_super",
|
|
"condition": "cost_price_table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Column",
|
|
"tables": [],
|
|
"line": 407,
|
|
"args": [
|
|
"cost_price",
|
|
"c"
|
|
],
|
|
"kwargs": {},
|
|
"code": "Column(cost_price, c)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "cost_price_table.column_exist('template')"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "product",
|
|
"file": "product.py",
|
|
"class": "ProductCostPrice",
|
|
"method": "__register__",
|
|
"line": 437,
|
|
"operations": [
|
|
{
|
|
"object": "",
|
|
"operation": "Pool",
|
|
"tables": [],
|
|
"line": 438,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Pool()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "backend",
|
|
"operation": "get",
|
|
"tables": [],
|
|
"line": 440,
|
|
"args": [
|
|
"'TableHandler'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "backend.get('(backend.get('TableHandler'))')",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "Transaction().connection",
|
|
"operation": "cursor",
|
|
"tables": [],
|
|
"line": 443,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Transaction",
|
|
"tables": [],
|
|
"line": 443,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Transaction()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [],
|
|
"line": 445,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "add_column",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 452,
|
|
"args": [
|
|
"'template'",
|
|
"'INTEGER'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.add_column('template', 'INTEGER')",
|
|
"phase": "after_super",
|
|
"condition": "not exist"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "migrate_property",
|
|
"tables": [],
|
|
"line": 479,
|
|
"args": [
|
|
"'product.template'",
|
|
"field_names",
|
|
"cls",
|
|
"value_names"
|
|
],
|
|
"kwargs": {
|
|
"parent": "'template'",
|
|
"fields": "fields"
|
|
},
|
|
"code": "migrate_property(\n 'product.template', field_names, cls, value_names,\n parent='template', fields=fields)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist",
|
|
"via": [
|
|
{
|
|
"method": "_migrate_property",
|
|
"line": 453
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 459,
|
|
"args": [
|
|
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(Transaction().connection.cursor()).execute(*sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))))",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "sql_table",
|
|
"operation": "insert",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 459,
|
|
"args": [],
|
|
"kwargs": {
|
|
"columns": "[Column(sql_table, c) for c in columns] + [sql_table.product]",
|
|
"values": "sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null))"
|
|
},
|
|
"code": "sql_table.insert(\n columns=[Column(sql_table, c) for c in columns]\n + [sql_table.product],\n values=sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Column",
|
|
"tables": [],
|
|
"line": 460,
|
|
"args": [
|
|
"sql_table",
|
|
"c"
|
|
],
|
|
"kwargs": {},
|
|
"code": "Column(sql_table, c)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
|
|
"operation": "select",
|
|
"tables": [],
|
|
"line": 462,
|
|
"args": [
|
|
"*[Column(sql_table, c) for c in columns] + [product.id]"
|
|
],
|
|
"kwargs": {
|
|
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
|
},
|
|
"code": "sql_table.join(product,\n condition=sql_table.template == product.template\n ).select(\n *[Column(sql_table, c) for c in columns]\n + [product.id],\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "sql_table",
|
|
"operation": "join",
|
|
"tables": [],
|
|
"line": 462,
|
|
"args": [
|
|
"product"
|
|
],
|
|
"kwargs": {
|
|
"condition": "sql_table.template == product.template"
|
|
},
|
|
"code": "sql_table.join(product,\n condition=sql_table.template == product.template\n )",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Column",
|
|
"tables": [],
|
|
"line": 465,
|
|
"args": [
|
|
"sql_table",
|
|
"c"
|
|
],
|
|
"kwargs": {},
|
|
"code": "Column(sql_table, c)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 469,
|
|
"args": [
|
|
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(Transaction().connection.cursor()).execute(*sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null)))",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "sql_table",
|
|
"operation": "delete",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 469,
|
|
"args": [],
|
|
"kwargs": {
|
|
"where": "(sql_table.template != Null) & (sql_table.product == Null)"
|
|
},
|
|
"code": "sql_table.delete(\n where=(sql_table.template != Null)\n & (sql_table.product == Null))",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"product_cost_price"
|
|
],
|
|
"line": 472,
|
|
"args": [
|
|
"'template'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.drop_column('template')",
|
|
"phase": "after_super",
|
|
"condition": "table.column_exist('template')"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |