Dedublizierung gefixt
- lange existierender Updatecode wurde in jeder 2. Version angezeigt - UPDATEANALYSE.md ergänzt.
This commit is contained in:
@@ -9,6 +9,128 @@
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 64,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 65,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "connection.(connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "config",
|
||||
"operation": "get",
|
||||
"tables": [],
|
||||
"line": 70,
|
||||
"args": [
|
||||
"'table'",
|
||||
"'product.template-stock.lot.type'"
|
||||
],
|
||||
"kwargs": {
|
||||
"default": "'product.template-stock.lot.type'.replace('.', '_')"
|
||||
},
|
||||
"code": "config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "'product.template-stock.lot.type'",
|
||||
"operation": "replace",
|
||||
"tables": [],
|
||||
"line": 72,
|
||||
"args": [
|
||||
"'.'",
|
||||
"'_'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "'product.template-stock.lot.type' .replace('.', '_')",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "config",
|
||||
"operation": "get",
|
||||
"tables": [],
|
||||
"line": 73,
|
||||
"args": [
|
||||
"'table'",
|
||||
"'stock.lot.type'"
|
||||
],
|
||||
"kwargs": {
|
||||
"default": "'stock.lot.type'.replace('.', '_')"
|
||||
},
|
||||
"code": "config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "'stock.lot.type'",
|
||||
"operation": "replace",
|
||||
"tables": [],
|
||||
"line": 75,
|
||||
"args": [
|
||||
"'.'",
|
||||
"'_'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "'stock.lot.type'.replace('.', '_')",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Table",
|
||||
"tables": [],
|
||||
"line": 81,
|
||||
"args": [
|
||||
"template_lot_type_table_name"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "Table((config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Table",
|
||||
"tables": [],
|
||||
"line": 82,
|
||||
"args": [
|
||||
"lot_type_table_name"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "Table((config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 84,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "connection.(connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "cursor_select",
|
||||
"operation": "execute",
|
||||
@@ -65,6 +187,36 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "template_lot_type",
|
||||
"operation": "join",
|
||||
"tables": [],
|
||||
"line": 89,
|
||||
"args": [
|
||||
"lot_type"
|
||||
],
|
||||
"kwargs": {
|
||||
"condition": "template_lot_type.type == lot_type.id"
|
||||
},
|
||||
"code": "template_lot_type\n .join(lot_type,\n condition=template_lot_type.type == lot_type.id)",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "cls.lot_required",
|
||||
"operation": "sql_format",
|
||||
"tables": [],
|
||||
"line": 95,
|
||||
"args": [
|
||||
"[t for t, in cursor]"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "cls.lot_required.sql_format([t for t, in (connection.cursor())])",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -97,6 +249,36 @@
|
||||
"code": "table.update(\n [table.lot_required], [(cls.lot_required.sql_format([t for t, in cursor]))],\n where=table.id == template_id)",
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_table",
|
||||
"tables": [],
|
||||
"line": 99,
|
||||
"args": [
|
||||
"'product.template-stock.lot.type'",
|
||||
"template_lot_type_table_name"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_table('product.template-stock.lot.type',\n (config.get(\n 'table', 'product.template-stock.lot.type',\n default='product.template-stock.lot.type' .replace('.', '_'))))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "drop_table",
|
||||
"tables": [],
|
||||
"line": 101,
|
||||
"args": [
|
||||
"'stock.lot.type'",
|
||||
"lot_type_table_name"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.drop_table('stock.lot.type', (config.get(\n 'table', 'stock.lot.type',\n default='stock.lot.type'.replace('.', '_'))))",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.table_exist(template_lot_type_table_name) and table_h.table_exist(lot_type_table_name)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user