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
+162 -1
View File
@@ -1,5 +1,166 @@
{
"version": "5.0",
"module": "company",
"files": []
"files": [
{
"module": "company",
"file": "party.py",
"class": "PartyConfigurationLang",
"method": "__register__",
"line": 22,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 23,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 24,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 27,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 33,
"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"
}
]
},
{
"module": "company",
"file": "party.py",
"class": "PartyLang",
"method": "__register__",
"line": 46,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 47,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 48,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "column_exist",
"tables": [],
"line": 51,
"args": [
"'company'"
],
"kwargs": {},
"code": "table.column_exist('company')",
"unresolved": true,
"phase": "before_super",
"condition": "exist"
},
{
"object": "super(PartyLang, cls)",
"operation": "_migrate_property",
"tables": [],
"line": 62,
"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": 57
}
]
},
{
"object": "",
"operation": "super",
"tables": [],
"line": 62,
"args": [
"PartyLang",
"cls"
],
"kwargs": {},
"code": "super(PartyLang, cls)",
"unresolved": true,
"phase": "after_super",
"condition": "not exist",
"via": [
{
"method": "_migrate_property",
"line": 57
}
]
}
]
}
]
}
+348
View File
@@ -33,6 +33,28 @@
"method": "__register__",
"line": 499,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 502,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "transaction.connection",
"operation": "cursor",
"tables": [],
"line": 503,
"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": 694,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 695,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 695,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "drop_column",
@@ -170,6 +214,28 @@
"method": "__register__",
"line": 60,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 61,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 61,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -236,6 +302,36 @@
"phase": "after_super",
"condition": "table.column_exist('digest') and table.column_exist('collision')"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 77,
"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": 77,
"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",
@@ -289,6 +385,28 @@
"method": "__register__",
"line": 1100,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 1101,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 1101,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -329,6 +447,67 @@
"method": "__register__",
"line": 102,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 103,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 105,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 108,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 108,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_rename",
"tables": [],
"line": 113,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_rename(old_table, cls._table)",
"unresolved": true,
"phase": "before_super",
"condition": "TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
@@ -421,6 +600,56 @@
},
"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": 137,
"args": [
"button_fs_ids"
],
"kwargs": {},
"code": "model_data_sql_table.fs_id.in_(button_fs_ids)",
"unresolved": true,
"phase": "after_super"
}
]
},
{
"module": "ir",
"file": "module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 362,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 363,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_rename",
"tables": [],
"line": 368,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_rename(old_table, cls._table)",
"unresolved": true,
"phase": "before_super",
"condition": "TableHandler.table_exist(old_table)"
}
]
},
@@ -431,6 +660,67 @@
"method": "__register__",
"line": 401,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 402,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 403,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 403,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 404,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_rename",
"tables": [],
"line": 411,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_rename(old_table, cls._table)",
"unresolved": true,
"phase": "before_super",
"condition": "TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
@@ -519,6 +809,28 @@
"method": "__register__",
"line": 99,
"operations": [
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 100,
"args": [],
"kwargs": {},
"code": "Transaction()",
"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": "cursor",
"operation": "execute",
@@ -574,6 +886,28 @@
"method": "__register__",
"line": 74,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 75,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 75,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -607,6 +941,20 @@
"phase": "after_super",
"condition": "table.column_exist('minimum_delay')"
},
{
"object": "datetime",
"operation": "timedelta",
"tables": [],
"line": 88,
"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",
+290
View File
@@ -9,6 +9,88 @@
"method": "__register__",
"line": 61,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 62,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 62,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 71,
"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": 72,
"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": 73,
"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": 73,
"args": [
"sql_table.streetbis",
"''"
],
"kwargs": {},
"code": "Coalesce(sql_table.streetbis, '')",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('streetbis')"
},
{
"object": "cursor",
"operation": "execute",
@@ -80,6 +162,66 @@
}
]
},
{
"module": "party",
"file": "configuration.py",
"class": "_ConfigurationValue",
"method": "__register__",
"line": 42,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 43,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 44,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 55,
"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": 49
}
]
}
]
},
{
"module": "party",
"file": "party.py",
@@ -111,6 +253,65 @@
"method": "__register__",
"line": 265,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 266,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 268,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 269,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 269,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 270,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "insert",
@@ -171,6 +372,32 @@
"code": "party_h.drop_column('lang')",
"phase": "after_super",
"condition": "party_h.column_exist('lang')"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 291,
"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": 285
}
]
}
]
},
@@ -181,6 +408,39 @@
"method": "__register__",
"line": 329,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 330,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 332,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 332,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "cursor",
"operation": "execute",
@@ -215,6 +475,36 @@
"phase": "after_super",
"condition": "party_h.column_exist('vat_number') and party_h.column_exist('vat_country')"
},
{
"object": "",
"operation": "cls",
"tables": [],
"line": 353,
"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": 354,
"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",
+395
View File
@@ -2,6 +2,127 @@
"version": "5.0",
"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": 346,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 347,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 348,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 360,
"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": 353
}
]
}
]
},
{
"module": "product",
"file": "product.py",
@@ -9,6 +130,119 @@
"method": "__register__",
"line": 374,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 375,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 377,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 380,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 380,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 382,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 383,
"args": [
"ProductCostPrice._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(ProductCostPrice._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 406,
"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": 389
}
]
},
{
"object": "",
"operation": "TableHandler",
"tables": [],
"line": 391,
"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",
@@ -42,6 +276,21 @@
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 397,
"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",
@@ -56,6 +305,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": 399,
"args": [
"cost_price",
"c"
],
"kwargs": {},
"code": "Column(cost_price, c)",
"unresolved": true,
"phase": "after_super",
"condition": "cost_price_table.column_exist('template')"
}
]
},
@@ -66,6 +330,65 @@
"method": "__register__",
"line": 429,
"operations": [
{
"object": "",
"operation": "Pool",
"tables": [],
"line": 430,
"args": [],
"kwargs": {},
"code": "Pool()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 432,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 435,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 435,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 437,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "table",
"operation": "add_column",
@@ -82,6 +405,32 @@
"phase": "after_super",
"condition": "not exist"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 471,
"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": 445
}
]
},
{
"object": "cursor",
"operation": "execute",
@@ -113,6 +462,21 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "",
"operation": "Column",
"tables": [],
"line": 452,
"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",
@@ -128,6 +492,37 @@
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "sql_table",
"operation": "join",
"tables": [],
"line": 454,
"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": 457,
"args": [
"sql_table",
"c"
],
"kwargs": {},
"code": "Column(sql_table, c)",
"unresolved": true,
"phase": "after_super",
"condition": "table.column_exist('template')"
},
{
"object": "cursor",
"operation": "execute",
+82
View File
@@ -2,6 +2,66 @@
"version": "5.0",
"module": "production",
"files": [
{
"module": "production",
"file": "configuration.py",
"class": "ConfigurationProductionSequence",
"method": "__register__",
"line": 45,
"operations": [
{
"object": "backend",
"operation": "get",
"tables": [],
"line": 46,
"args": [
"'TableHandler'"
],
"kwargs": {},
"code": "backend.get('(backend.get('TableHandler'))')",
"unresolved": true,
"phase": "before_super"
},
{
"object": "TableHandler",
"operation": "table_exist",
"tables": [],
"line": 47,
"args": [
"cls._table"
],
"kwargs": {},
"code": "(backend.get('TableHandler')).table_exist(cls._table)",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "migrate_property",
"tables": [],
"line": 59,
"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": 52
}
]
}
]
},
{
"module": "production",
"file": "production.py",
@@ -25,6 +85,28 @@
"phase": "before_super",
"condition": "table_h.column_exist('code')"
},
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 235,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 235,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
+82
View File
@@ -9,6 +9,88 @@
"method": "__register__",
"line": 200,
"operations": [
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 201,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 201,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Concat",
"tables": [],
"line": 208,
"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": 208,
"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": 209,
"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": 209,
"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",