Files
tryton-db-migration/data/7.0/country.json
T

152 lines
4.1 KiB
JSON
Raw Normal View History

2026-08-07 22:27:49 +02:00
{
2026-08-08 01:29:43 +02:00
"version": "7.0",
2026-08-07 22:27:49 +02:00
"module": "country",
"files": [
{
"module": "country",
"file": "country.py",
2026-08-07 22:27:49 +02:00
"class": "Country",
"method": "__register__",
"line": 178,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
2026-08-07 22:27:49 +02:00
"line": 187,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
2026-08-07 22:27:49 +02:00
"line": 187,
"args": [],
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
2026-08-09 00:47:23 +02:00
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
}
]
},
{
"module": "country",
"file": "country.py",
2026-08-07 22:27:49 +02:00
"class": "Subdivision",
"method": "__register__",
"line": 424,
"operations": [
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
2026-08-07 22:27:49 +02:00
"line": 435,
"args": [
"*data.delete(where=(data.module == 'country') & (data.model == cls.__name__))"
],
"kwargs": {},
2026-08-09 00:47:23 +02:00
"code": "(Transaction().connection.cursor()).execute(*data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__)))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "data",
"operation": "delete",
"tables": [
"ir_model_data"
],
2026-08-07 22:27:49 +02:00
"line": 435,
"args": [],
"kwargs": {
"where": "(data.module == 'country') & (data.model == cls.__name__)"
},
2026-08-09 00:47:23 +02:00
"code": "data.delete(where=(data.module == 'country')\n & (data.model == cls.__name__))",
2026-08-07 22:27:49 +02:00
"phase": "after_super"
},
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
2026-08-07 22:27:49 +02:00
"line": 439,
"args": [
"'type'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('type', action='remove')",
"phase": "after_super"
},
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"country_subdivision"
],
2026-08-07 22:27:49 +02:00
"line": 442,
"args": [
"'code'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table_h.not_null_action('code', action='remove')",
"phase": "after_super"
}
]
},
{
"module": "country",
"file": "country.py",
2026-08-07 22:27:49 +02:00
"class": "PostalCode",
"method": "__register__",
"line": 507,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"country_zip",
"country_postal_code"
],
"line": 509,
"args": [
"'country_zip'",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename('country_zip', cls._table)",
"phase": "before_super"
},
2026-08-07 22:27:49 +02:00
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"country_postal_code"
],
2026-08-07 22:27:49 +02:00
"line": 511,
"args": [
"'zip'",
"'postal_code'"
],
"kwargs": {},
"code": "table_h.column_rename('zip', 'postal_code')",
"phase": "before_super"
}
]
}
]
}