Files
tryton-db-migration/data/7.6/party.json
T

325 lines
9.3 KiB
JSON
Raw Normal View History

2026-08-07 22:27:49 +02:00
{
2026-08-08 01:29:43 +02:00
"version": "7.6",
2026-08-07 22:27:49 +02:00
"module": "party",
"files": [
{
"module": "party",
"file": "address.py",
2026-08-07 22:27:49 +02:00
"class": "Address",
"method": "__register__",
"line": 160,
"operations": [
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
2026-08-07 22:27:49 +02:00
"line": 165,
"args": [
"'street'",
"'street_unstructured'"
],
"kwargs": {},
"code": "table.column_rename('street', 'street_unstructured')",
"phase": "before_super"
},
{
"object": "table",
"operation": "column_rename",
"tables": [
"party_address"
],
2026-08-07 22:27:49 +02:00
"line": 166,
"args": [
"'name'",
"'building_name'"
],
"kwargs": {},
"code": "table.column_rename('name', 'building_name')",
"phase": "before_super"
}
]
},
{
"module": "party",
"file": "configuration.py",
2026-08-07 22:27:49 +02:00
"class": "Configuration",
"method": "__register__",
"line": 33,
"operations": [
2026-08-20 13:27:23 +02:00
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 34,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 34,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "cls",
"tables": [],
"line": 38,
"args": [
"1"
],
"kwargs": {},
"code": "cls(1)",
"unresolved": true,
"phase": "after_super"
},
{
"object": "",
"operation": "tuple",
"tables": [],
"line": 40,
"args": [
"map(replace_vat, configuration.identifier_types)"
],
"kwargs": {},
"code": "tuple(map(\n replace_vat, configuration.identifier_types))",
"unresolved": true,
"phase": "after_super",
"condition": "configuration.identifier_types"
},
{
"object": "",
"operation": "map",
"tables": [],
"line": 40,
"args": [
"replace_vat",
"configuration.identifier_types"
],
"kwargs": {},
"code": "map(\n replace_vat, configuration.identifier_types)",
"unresolved": true,
"phase": "after_super",
"condition": "configuration.identifier_types"
},
2026-08-07 22:27:49 +02:00
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_configuration"
],
2026-08-07 22:27:49 +02:00
"line": 44,
"args": [
"*table.update([table.identifier_types], [cls.identifier_types.sql_format(identifier_types)])"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n ))",
2026-08-07 22:27:49 +02:00
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_configuration"
],
2026-08-07 22:27:49 +02:00
"line": 44,
"args": [
"[table.identifier_types]",
"[cls.identifier_types.sql_format(identifier_types)]"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "table.update(\n [table.identifier_types],\n [cls.identifier_types.sql_format(identifier_types)]\n )",
2026-08-07 22:27:49 +02:00
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
2026-08-20 13:27:23 +02:00
},
{
"object": "cls.identifier_types",
"operation": "sql_format",
"tables": [],
"line": 46,
"args": [
"identifier_types"
],
"kwargs": {},
"code": "cls.identifier_types.sql_format(identifier_types)",
"unresolved": true,
"phase": "after_super",
"condition": "configuration.identifier_types != identifier_types"
2026-08-07 22:27:49 +02:00
}
]
},
{
"module": "party",
"file": "party.py",
"class": "PartyCategory",
"method": "__register__",
"line": 448,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"party_category_rel",
"party_party-party_category"
],
"line": 450,
"args": [
"'party_category_rel'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('party_category_rel', cls._table)",
"phase": "before_super"
}
]
},
2026-08-07 22:27:49 +02:00
{
"module": "party",
"file": "party.py",
2026-08-07 22:27:49 +02:00
"class": "Identifier",
"method": "__register__",
"line": 825,
"operations": [
2026-08-20 13:27:23 +02:00
{
"object": "Transaction().connection",
"operation": "cursor",
"tables": [],
"line": 826,
"args": [],
"kwargs": {},
"code": "Transaction().connection.(Transaction().connection.cursor())()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "Transaction",
"tables": [],
"line": 826,
"args": [],
"kwargs": {},
"code": "Transaction()",
"unresolved": true,
"phase": "before_super"
},
{
"object": "",
"operation": "replace_vat",
"tables": [],
"line": 833,
"args": [
"old"
],
"kwargs": {},
"code": "replace_vat(old)",
"unresolved": true,
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
"line": 834,
"args": [
"*table.update([table.type], [new], where=table.type == old)"
],
"kwargs": {},
"code": "(Transaction().connection.cursor()).execute(*table.update(\n [table.type], [new],\n where=table.type == old))",
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
"line": 834,
"args": [
"[table.type]",
"[new]"
],
"kwargs": {
"where": "table.type == old"
},
"code": "table.update(\n [table.type], [new],\n where=table.type == old)",
"phase": "after_super"
},
2026-08-07 22:27:49 +02:00
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 22:27:49 +02:00
"line": 839,
"args": [
"*table.update([table.type], ['uy_rut'], where=table.type == 'uy_ruc')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc')))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 22:27:49 +02:00
"line": 839,
"args": [
"[table.type]",
"['uy_rut']"
],
"kwargs": {
"where": "table.type == 'uy_ruc'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update([table.type], ['uy_rut'],\n where=(table.type == 'uy_ruc'))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_identifier"
],
2026-08-07 22:27:49 +02:00
"line": 843,
"args": [
"*table.update([table.type], ['co_nit'], where=table.type == 'co_rut')"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*table.update([table.type], ['co_nit'],\n where=(table.type == 'co_rut')))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "table",
"operation": "update",
"tables": [
"party_identifier"
],
2026-08-07 22:27:49 +02:00
"line": 843,
"args": [
"[table.type]",
"['co_nit']"
],
"kwargs": {
"where": "table.type == 'co_rut'"
},
2026-08-09 00:47:23 +02:00
"code": "table.update([table.type], ['co_nit'],\n where=(table.type == 'co_rut'))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
}
]
}
]
}