Dedublizierung gefixt

- lange existierender Updatecode wurde in jeder 2. Version angezeigt
- UPDATEANALYSE.md ergänzt.
This commit is contained in:
2026-08-20 13:27:23 +02:00
parent 5d227d2f61
commit b549063ff6
138 changed files with 43143 additions and 1472 deletions
+123
View File
@@ -22,6 +22,39 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 25,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 31,
"args": [
"'party.configuration'",
"cls._configuration_value_field",
"cls",
"cls._configuration_value_field"
],
"kwargs": {
"fields": "['company']"
},
"code": "migrate_property(\n 'party.configuration', cls._configuration_value_field,\n cls, cls._configuration_value_field, fields=['company'])",
"unresolved": true,
"phase": "after_super",
"condition": "not exist"
}
]
},
@@ -45,6 +78,63 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 54,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "super(PartyLang, cls)",
"operation": "_migrate_property",
"tables": [],
"line": 65,
"args": [
"field_names",
"value_names",
"fields"
],
"kwargs": {},
"code": "super(PartyLang, cls)._migrate_property(\n field_names, value_names, fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 60
}
]
},
{
"object": "",
"operation": "super",
"tables": [],
"line": 65,
"args": [
"PartyLang",
"cls"
],
"kwargs": {},
"code": "super(PartyLang, cls)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 60
}
]
}
]
},
@@ -55,6 +145,39 @@
"method": "__register__",
"line": 69,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 70,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 72,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 79,
"args": [],
"kwargs": {},
"code": "transaction.connection.(transaction.connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
+66
View File
@@ -9,6 +9,39 @@
"method": "__register__",
"line": 31,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 32,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 35,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 35,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -89,6 +122,39 @@
"method": "__register__",
"line": 256,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 257,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 260,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 260,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
+33
View File
@@ -9,6 +9,39 @@
"method": "__register__",
"line": 59,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 60,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 63,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 63,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table_h",
"operation": "not_null_action",
+330
View File
@@ -33,6 +33,28 @@
"method": "__register__",
"line": 565,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 568,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 569,
"args": [],
"kwargs": {},
"code": "transaction.connection.(transaction.connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -87,6 +109,28 @@
"method": "__register__",
"line": 765,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 766,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 766,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_column",
@@ -218,6 +262,28 @@
"method": "__register__",
"line": 59,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 60,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 60,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -284,6 +350,36 @@
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 76,
"args": [
"Concat(attachment.digest, '-')",
"attachment.collision"
],
"kwargs": {},
"code": "Concat(Concat(attachment.digest, '-'),\n attachment.collision)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 76,
"args": [
"attachment.digest",
"'-'"
],
"kwargs": {},
"code": "Concat(attachment.digest, '-')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "table",
"operation": "drop_column",
@@ -398,6 +494,28 @@
"method": "__register__",
"line": 1228,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 1229,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 1229,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -454,6 +572,39 @@
"method": "__register__",
"line": 96,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 97,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 101,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 101,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_rename",
@@ -563,6 +714,19 @@
},
"code": "model_data_sql_table.update(\n [model_data_sql_table.module], ['ir'],\n where=((model_data_sql_table.module == 'res')\n & (model_data_sql_table.fs_id.in_(button_fs_ids))))",
"phase": "after_super"
},
{
"object": "model_data_sql_table.fs_id",
"operation": "in_",
"tables": [],
"line": 130,
"args": [
"button_fs_ids"
],
"kwargs": {},
"code": "model_data_sql_table.fs_id.in_(button_fs_ids)",
"unresolved": true,
"phase": "after_super"
}
]
},
@@ -599,6 +763,39 @@
"method": "__register__",
"line": 386,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 387,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 387,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 388,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_rename",
@@ -720,6 +917,39 @@
"method": "__register__",
"line": 117,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 118,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 120,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 120,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -818,6 +1048,28 @@
"method": "__register__",
"line": 79,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 80,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 81,
"args": [],
"kwargs": {},
"code": "transaction.connection.(transaction.connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_constraint",
@@ -903,6 +1155,28 @@
"method": "__register__",
"line": 73,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 74,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 74,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -936,6 +1210,20 @@
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "datetime",
"operation": "timedelta",
"tables": [],
"line": 89,
"args": [],
"kwargs": {
"hours": "delay"
},
"code": "datetime.timedelta(hours=(datetime.timedelta(hours=delay)))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "cursor",
"operation": "execute",
@@ -984,6 +1272,18 @@
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 99,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "model",
"operation": "select",
@@ -1032,6 +1332,36 @@
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 106,
"args": [
"action_model",
"Concat('|', sql_table.action_function)"
],
"kwargs": {},
"code": "Concat((model.select(\n model.model, where=model.id == sql_table.action_model)), Concat(\n '|', sql_table.action_function))",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 106,
"args": [
"'|'",
"sql_table.action_function"
],
"kwargs": {},
"code": "Concat(\n '|', sql_table.action_function)",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
},
{
"object": "table_h",
"operation": "drop_column",
+307
View File
@@ -9,6 +9,28 @@
"method": "__register__",
"line": 76,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 77,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 77,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "column_rename",
@@ -24,6 +46,66 @@
"code": "table.column_rename('zip', 'postal_code')",
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 90,
"args": [
"Coalesce(sql_table.street, '')",
"Concat('\\n', Coalesce(sql_table.streetbis, ''))"
],
"kwargs": {},
"code": "Concat(\n Coalesce(sql_table.street, ''),\n Concat('\\n', Coalesce(sql_table.streetbis, '')))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 91,
"args": [
"sql_table.street",
"''"
],
"kwargs": {},
"code": "Coalesce(sql_table.street, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 92,
"args": [
"'\\n'",
"Coalesce(sql_table.streetbis, '')"
],
"kwargs": {},
"code": "Concat('\\n', Coalesce(sql_table.streetbis, ''))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 92,
"args": [
"sql_table.streetbis",
"''"
],
"kwargs": {},
"code": "Coalesce(sql_table.streetbis, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "cursor",
"operation": "execute",
@@ -79,6 +161,39 @@
"method": "__register__",
"line": 295,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 296,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 302,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 302,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "update",
@@ -175,6 +290,22 @@
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "",
"operation": "Substring",
"tables": [],
"line": 323,
"args": [
"language.code",
"0",
"2"
],
"kwargs": {},
"code": "Substring(language.code, 0, 2)",
"unresolved": true,
"phase": "after_super",
"condition": "table_h.column_exist('language')"
},
{
"object": "cursor",
"operation": "execute",
@@ -246,6 +377,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 111,
"args": [
"'party.configuration'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"fields": "fields"
},
"code": "migrate_property(\n 'party.configuration', field_names, cls, value_names,\n fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 105
}
]
}
]
},
@@ -280,6 +436,39 @@
"method": "__register__",
"line": 356,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 357,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 359,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 359,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -354,6 +543,32 @@
"code": "party_h.drop_column('lang')",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 381,
"args": [
"'party.party'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"parent": "'party'",
"fields": "fields"
},
"code": "migrate_property(\n 'party.party', field_names, cls, value_names,\n parent='party', fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 375
}
]
}
]
},
@@ -364,6 +579,39 @@
"method": "__register__",
"line": 636,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 637,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 639,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 639,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -398,6 +646,65 @@
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "",
"operation": "get_cc_module",
"tables": [],
"line": 658,
"args": [
"*type.split('_', 1)"
],
"kwargs": {},
"code": "get_cc_module(*type.split('_', 1))",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "type",
"operation": "split",
"tables": [],
"line": 658,
"args": [
"'_'",
"1"
],
"kwargs": {},
"code": "type.split('_', 1)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "",
"operation": "cls",
"tables": [],
"line": 664,
"args": [],
"kwargs": {
"party": "party_id",
"code": "code",
"type": "type"
},
"code": "cls(party=party_id, code=code, type=type)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "cls",
"operation": "save",
"tables": [],
"line": 665,
"args": [
"identifiers"
],
"kwargs": {},
"code": "cls.save(identifiers)",
"unresolved": true,
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "party_h",
"operation": "drop_column",
+308
View File
@@ -22,6 +22,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 67,
"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": 61
}
]
}
]
},
@@ -32,6 +57,54 @@
"method": "__register__",
"line": 424,
"operations": [
{
"object": "table_h",
"operation": "column_exist",
"tables": [],
"line": 428,
"args": [
"'code'"
],
"kwargs": {},
"code": "table_h.column_exist('code')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table_h",
"operation": "column_exist",
"tables": [],
"line": 429,
"args": [
"'suffix_code'"
],
"kwargs": {},
"code": "table_h.column_exist('suffix_code')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 431,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 431,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -85,6 +158,32 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 651,
"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": 644
}
]
}
]
},
@@ -95,6 +194,39 @@
"method": "__register__",
"line": 669,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 670,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 674,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 674,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -121,6 +253,47 @@
"code": "backend.TableHandler.table_exist(\n ProductCostPrice._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 702,
"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": 684
}
]
},
{
"object": "backend",
"operation": "TableHandler",
"tables": [],
"line": 686,
"args": [
"ProductCostPrice",
"module_name"
],
"kwargs": {},
"code": "backend.TableHandler(\n ProductCostPrice, module_name)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist and cost_price_exist"
},
{
"object": "cursor",
"operation": "execute",
@@ -154,6 +327,21 @@
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 693,
"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",
@@ -168,6 +356,21 @@
"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": 695,
"args": [
"cost_price",
"c"
],
"kwargs": {},
"code": "Column(cost_price, c)",
"unresolved": true,
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
}
]
},
@@ -178,6 +381,39 @@
"method": "__register__",
"line": 734,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 735,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 739,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 739,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend.TableHandler",
"operation": "table_exist",
@@ -208,6 +444,32 @@
"phase": "after_super",
"condition": "not exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 775,
"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": 749
}
]
},
{
"object": "cursor",
"operation": "execute",
@@ -239,6 +501,21 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 756,
"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",
@@ -254,6 +531,37 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "join",
"tables": [],
"line": 758,
"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": 761,
"args": [
"sql_table",
"c"
],
"kwargs": {},
"code": "Column(sql_table, c)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "cursor",
"operation": "execute",
+47
View File
@@ -45,6 +45,31 @@
"kwargs": {},
"code": "backend.TableHandler.table_exist(cls._table)",
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 57,
"args": [
"'production.configuration'",
"field_names",
"cls",
"value_names"
],
"kwargs": {
"fields": "fields"
},
"code": "migrate_property(\n 'production.configuration', field_names, cls, value_names,\n fields=fields)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 50
}
]
}
]
},
@@ -71,6 +96,28 @@
"phase": "before_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 261,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 261,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
+93
View File
@@ -9,6 +9,99 @@
"method": "__register__",
"line": 202,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 203,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 206,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 206,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 213,
"args": [
"'sha1$'",
"Concat(sqltable.password, Concat('$', Coalesce(sqltable.salt, '')))"
],
"kwargs": {},
"code": "Concat('sha1$', Concat(sqltable.password,\n Concat('$', Coalesce(sqltable.salt, ''))))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 213,
"args": [
"sqltable.password",
"Concat('$', Coalesce(sqltable.salt, ''))"
],
"kwargs": {},
"code": "Concat(sqltable.password,\n Concat('$', Coalesce(sqltable.salt, '')))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 214,
"args": [
"'$'",
"Coalesce(sqltable.salt, '')"
],
"kwargs": {},
"code": "Concat('$', Coalesce(sqltable.salt, ''))",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "",
"operation": "Coalesce",
"tables": [],
"line": 214,
"args": [
"sqltable.salt",
"''"
],
"kwargs": {},
"code": "Coalesce(sqltable.salt, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "cursor",
"operation": "execute",
+182
View File
@@ -9,6 +9,128 @@
"method": "__register__",
"line": 60,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 61,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "connection",
"operation": "cursor",
"tables": [],
"line": 62,
"args": [],
"kwargs": {},
"code": "connection.(connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "config",
"operation": "get",
"tables": [],
"line": 67,
"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": 69,
"args": [
"'.'",
"'_'"
],
"kwargs": {},
"code": "'product.template-stock.lot.type' .replace('.', '_')",
"unresolved": true,
"phase": "after_super"
},
{
"object": "config",
"operation": "get",
"tables": [],
"line": 70,
"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": 72,
"args": [
"'.'",
"'_'"
],
"kwargs": {},
"code": "'stock.lot.type'.replace('.', '_')",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Table",
"tables": [],
"line": 78,
"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": 79,
"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": 81,
"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": 86,
"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": 92,
"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": 96,
"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": 98,
"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)"
}
]
}