- lange existierender Updatecode wurde in jeder 2. Version angezeigt - UPDATEANALYSE.md ergänzt.
301 lines
9.5 KiB
JSON
301 lines
9.5 KiB
JSON
{
|
|
"version": "6.2",
|
|
"module": "company",
|
|
"files": [
|
|
{
|
|
"module": "company",
|
|
"file": "party.py",
|
|
"class": "ConfigurationLang",
|
|
"method": "__register__",
|
|
"line": 21,
|
|
"operations": [
|
|
{
|
|
"object": "backend.TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [
|
|
"party_configuration_party_lang"
|
|
],
|
|
"line": 22,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "company",
|
|
"file": "party.py",
|
|
"class": "PartyLang",
|
|
"method": "__register__",
|
|
"line": 51,
|
|
"operations": [
|
|
{
|
|
"object": "backend.TableHandler",
|
|
"operation": "table_exist",
|
|
"tables": [
|
|
"party_party_lang"
|
|
],
|
|
"line": 52,
|
|
"args": [
|
|
"cls._table"
|
|
],
|
|
"kwargs": {},
|
|
"code": "backend.TableHandler.table_exist(cls._table)",
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "column_exist",
|
|
"tables": [],
|
|
"line": 55,
|
|
"args": [
|
|
"'company'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table.column_exist('company')",
|
|
"unresolved": true,
|
|
"phase": "before_super",
|
|
"condition": "exist"
|
|
},
|
|
{
|
|
"object": "super(PartyLang, cls)",
|
|
"operation": "_migrate_property",
|
|
"tables": [],
|
|
"line": 66,
|
|
"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": 61
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "super",
|
|
"tables": [],
|
|
"line": 66,
|
|
"args": [
|
|
"PartyLang",
|
|
"cls"
|
|
],
|
|
"kwargs": {},
|
|
"code": "super(PartyLang, cls)",
|
|
"unresolved": true,
|
|
"phase": "after_super",
|
|
"condition": "not exist",
|
|
"via": [
|
|
{
|
|
"method": "_migrate_property",
|
|
"line": 61
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"module": "company",
|
|
"file": "res.py",
|
|
"class": "User",
|
|
"method": "__register__",
|
|
"line": 72,
|
|
"operations": [
|
|
{
|
|
"object": "",
|
|
"operation": "Pool",
|
|
"tables": [],
|
|
"line": 73,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Pool()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "",
|
|
"operation": "Transaction",
|
|
"tables": [],
|
|
"line": 75,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "Transaction()",
|
|
"unresolved": true,
|
|
"phase": "before_super"
|
|
},
|
|
{
|
|
"object": "transaction.connection",
|
|
"operation": "cursor",
|
|
"tables": [],
|
|
"line": 82,
|
|
"args": [],
|
|
"kwargs": {},
|
|
"code": "transaction.connection.(transaction.connection.cursor())()",
|
|
"unresolved": true,
|
|
"phase": "after_super"
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"res_user-company_company",
|
|
"res_user"
|
|
],
|
|
"line": 86,
|
|
"args": [
|
|
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.main_company, where=table.main_company != Null))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null)))",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "user_company",
|
|
"operation": "insert",
|
|
"tables": [
|
|
"res_user-company_company",
|
|
"res_user"
|
|
],
|
|
"line": 86,
|
|
"args": [
|
|
"[user_company.user, user_company.company]",
|
|
"table.select(table.id, table.main_company, where=table.main_company != Null)"
|
|
],
|
|
"kwargs": {},
|
|
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.main_company,\n where=table.main_company != Null))",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "select",
|
|
"tables": [
|
|
"res_user"
|
|
],
|
|
"line": 88,
|
|
"args": [
|
|
"table.id",
|
|
"table.main_company"
|
|
],
|
|
"kwargs": {
|
|
"where": "table.main_company != Null"
|
|
},
|
|
"code": "table.select(\n table.id, table.main_company,\n where=table.main_company != Null)",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "cursor",
|
|
"operation": "execute",
|
|
"tables": [
|
|
"res_user-company_company",
|
|
"res_user"
|
|
],
|
|
"line": 91,
|
|
"args": [
|
|
"*user_company.insert([user_company.user, user_company.company], table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company)))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "(transaction.connection.cursor()).execute(*user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))))",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "user_company",
|
|
"operation": "insert",
|
|
"tables": [
|
|
"res_user-company_company",
|
|
"res_user"
|
|
],
|
|
"line": 91,
|
|
"args": [
|
|
"[user_company.user, user_company.company]",
|
|
"table.select(table.id, table.company, where=(table.company != Null) & (table.company != table.main_company))"
|
|
],
|
|
"kwargs": {},
|
|
"code": "user_company.insert(\n [user_company.user, user_company.company],\n table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company)))",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "table",
|
|
"operation": "select",
|
|
"tables": [
|
|
"res_user"
|
|
],
|
|
"line": 93,
|
|
"args": [
|
|
"table.id",
|
|
"table.company"
|
|
],
|
|
"kwargs": {
|
|
"where": "(table.company != Null) & (table.company != table.main_company)"
|
|
},
|
|
"code": "table.select(\n table.id, table.company,\n where=(table.company != Null)\n & (table.company != table.main_company))",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
},
|
|
{
|
|
"object": "table_h",
|
|
"operation": "drop_column",
|
|
"tables": [
|
|
"res_user"
|
|
],
|
|
"line": 97,
|
|
"args": [
|
|
"'main_company'"
|
|
],
|
|
"kwargs": {},
|
|
"code": "table_h.drop_column('main_company')",
|
|
"phase": "after_super",
|
|
"condition": "table_h.column_exist('main_company')"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |