Dedublizierung gefixt
- lange existierender Updatecode wurde in jeder 2. Version angezeigt - UPDATEANALYSE.md ergänzt.
This commit is contained in:
@@ -22,6 +22,39 @@
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "column_exist",
|
||||
"tables": [],
|
||||
"line": 24,
|
||||
"args": [
|
||||
"'company'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.column_exist('company')",
|
||||
"unresolved": true,
|
||||
"phase": "before_super",
|
||||
"condition": "exist"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 30,
|
||||
"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": 47,
|
||||
"args": [
|
||||
"'company'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table.column_exist('company')",
|
||||
"unresolved": true,
|
||||
"phase": "before_super",
|
||||
"condition": "exist"
|
||||
},
|
||||
{
|
||||
"object": "super(PartyLang, cls)",
|
||||
"operation": "_migrate_property",
|
||||
"tables": [],
|
||||
"line": 58,
|
||||
"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": 53
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "super",
|
||||
"tables": [],
|
||||
"line": 58,
|
||||
"args": [
|
||||
"PartyLang",
|
||||
"cls"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "super(PartyLang, cls)",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "not exist",
|
||||
"via": [
|
||||
{
|
||||
"method": "_migrate_property",
|
||||
"line": 53
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -9,6 +9,39 @@
|
||||
"method": "__register__",
|
||||
"line": 30,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 31,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"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": "table",
|
||||
"operation": "drop_constraint",
|
||||
@@ -89,6 +122,39 @@
|
||||
"method": "__register__",
|
||||
"line": 214,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 215,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 218,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 218,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
|
||||
@@ -9,6 +9,39 @@
|
||||
"method": "__register__",
|
||||
"line": 51,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 52,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 55,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 55,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "not_null_action",
|
||||
|
||||
@@ -33,6 +33,28 @@
|
||||
"method": "__register__",
|
||||
"line": 545,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 548,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "transaction.connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 549,
|
||||
"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": 745,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 746,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 746,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_column",
|
||||
@@ -218,6 +262,28 @@
|
||||
"method": "__register__",
|
||||
"line": 63,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 64,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 64,
|
||||
"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": 80,
|
||||
"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": 80,
|
||||
"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",
|
||||
@@ -375,6 +471,28 @@
|
||||
"method": "__register__",
|
||||
"line": 1157,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 1158,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 1158,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -431,6 +549,39 @@
|
||||
"method": "__register__",
|
||||
"line": 103,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 104,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"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": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
@@ -540,6 +691,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": 137,
|
||||
"args": [
|
||||
"button_fs_ids"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "model_data_sql_table.fs_id.in_(button_fs_ids)",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -576,6 +740,39 @@
|
||||
"method": "__register__",
|
||||
"line": 393,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 394,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 394,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 395,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_rename",
|
||||
@@ -696,6 +893,28 @@
|
||||
"method": "__register__",
|
||||
"line": 86,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 87,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "transaction.connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 88,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "transaction.connection.(transaction.connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "drop_constraint",
|
||||
@@ -781,6 +1000,28 @@
|
||||
"method": "__register__",
|
||||
"line": 77,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 78,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 78,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -814,6 +1055,20 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
{
|
||||
"object": "datetime",
|
||||
"operation": "timedelta",
|
||||
"tables": [],
|
||||
"line": 93,
|
||||
"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",
|
||||
@@ -862,6 +1117,18 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('minimum_delay')"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 103,
|
||||
"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",
|
||||
@@ -910,6 +1177,36 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('action_model') and table_h.column_exist('action_function')"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Concat",
|
||||
"tables": [],
|
||||
"line": 110,
|
||||
"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": 110,
|
||||
"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",
|
||||
|
||||
@@ -9,6 +9,88 @@
|
||||
"method": "__register__",
|
||||
"line": 67,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 68,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 68,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Concat",
|
||||
"tables": [],
|
||||
"line": 77,
|
||||
"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": 78,
|
||||
"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": 79,
|
||||
"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": 79,
|
||||
"args": [
|
||||
"sql_table.streetbis",
|
||||
"''"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "Coalesce(sql_table.streetbis, '')",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('streetbis')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -64,6 +146,39 @@
|
||||
"method": "__register__",
|
||||
"line": 265,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 266,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 272,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 272,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table",
|
||||
"operation": "update",
|
||||
@@ -160,6 +275,22 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table_h.column_exist('language')"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Substring",
|
||||
"tables": [],
|
||||
"line": 293,
|
||||
"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",
|
||||
@@ -231,6 +362,31 @@
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 52,
|
||||
"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": 46
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -265,6 +421,39 @@
|
||||
"method": "__register__",
|
||||
"line": 268,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 269,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 271,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 271,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
@@ -339,6 +528,32 @@
|
||||
"code": "party_h.drop_column('lang')",
|
||||
"phase": "after_super",
|
||||
"condition": "party_h.column_exist('lang')"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 293,
|
||||
"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": 287
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -349,6 +564,39 @@
|
||||
"method": "__register__",
|
||||
"line": 428,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 429,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 431,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 431,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -383,6 +631,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": 449,
|
||||
"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": 449,
|
||||
"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": 455,
|
||||
"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": 456,
|
||||
"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",
|
||||
|
||||
@@ -22,6 +22,31 @@
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 61,
|
||||
"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": 55
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -32,6 +57,54 @@
|
||||
"method": "__register__",
|
||||
"line": 360,
|
||||
"operations": [
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_exist",
|
||||
"tables": [],
|
||||
"line": 364,
|
||||
"args": [
|
||||
"'code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_exist('code')",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "table_h",
|
||||
"operation": "column_exist",
|
||||
"tables": [],
|
||||
"line": 365,
|
||||
"args": [
|
||||
"'suffix_code'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "table_h.column_exist('suffix_code')",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 367,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 367,
|
||||
"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": 564,
|
||||
"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": 557
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -95,6 +194,39 @@
|
||||
"method": "__register__",
|
||||
"line": 578,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 579,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Pool()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 583,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 583,
|
||||
"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": 611,
|
||||
"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": 593
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"object": "backend",
|
||||
"operation": "TableHandler",
|
||||
"tables": [],
|
||||
"line": 595,
|
||||
"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": 602,
|
||||
"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": 604,
|
||||
"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": 634,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Pool",
|
||||
"tables": [],
|
||||
"line": 635,
|
||||
"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": "backend.TableHandler",
|
||||
"operation": "table_exist",
|
||||
@@ -208,6 +444,32 @@
|
||||
"phase": "after_super",
|
||||
"condition": "not exist"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 675,
|
||||
"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": 649
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
@@ -239,6 +501,21 @@
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Column",
|
||||
"tables": [],
|
||||
"line": 656,
|
||||
"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": 658,
|
||||
"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": 661,
|
||||
"args": [
|
||||
"sql_table",
|
||||
"c"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "Column(sql_table, c)",
|
||||
"unresolved": true,
|
||||
"phase": "after_super",
|
||||
"condition": "table.column_exist('template')"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
|
||||
@@ -22,6 +22,31 @@
|
||||
"kwargs": {},
|
||||
"code": "backend.TableHandler.table_exist(cls._table)",
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "migrate_property",
|
||||
"tables": [],
|
||||
"line": 56,
|
||||
"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": 49
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -48,6 +73,28 @@
|
||||
"phase": "before_super",
|
||||
"condition": "table_h.column_exist('code')"
|
||||
},
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 260,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 260,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "cursor",
|
||||
"operation": "execute",
|
||||
|
||||
@@ -9,6 +9,88 @@
|
||||
"method": "__register__",
|
||||
"line": 195,
|
||||
"operations": [
|
||||
{
|
||||
"object": "Transaction().connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 196,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction().connection.(Transaction().connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 196,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Concat",
|
||||
"tables": [],
|
||||
"line": 203,
|
||||
"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": 203,
|
||||
"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": 204,
|
||||
"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": 204,
|
||||
"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",
|
||||
|
||||
@@ -9,6 +9,128 @@
|
||||
"method": "__register__",
|
||||
"line": 29,
|
||||
"operations": [
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Transaction",
|
||||
"tables": [],
|
||||
"line": 30,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "Transaction()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "connection",
|
||||
"operation": "cursor",
|
||||
"tables": [],
|
||||
"line": 31,
|
||||
"args": [],
|
||||
"kwargs": {},
|
||||
"code": "connection.(connection.cursor())()",
|
||||
"unresolved": true,
|
||||
"phase": "before_super"
|
||||
},
|
||||
{
|
||||
"object": "config",
|
||||
"operation": "get",
|
||||
"tables": [],
|
||||
"line": 36,
|
||||
"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": 38,
|
||||
"args": [
|
||||
"'.'",
|
||||
"'_'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "'product.template-stock.lot.type' .replace('.', '_')",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "config",
|
||||
"operation": "get",
|
||||
"tables": [],
|
||||
"line": 39,
|
||||
"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": 41,
|
||||
"args": [
|
||||
"'.'",
|
||||
"'_'"
|
||||
],
|
||||
"kwargs": {},
|
||||
"code": "'stock.lot.type'.replace('.', '_')",
|
||||
"unresolved": true,
|
||||
"phase": "after_super"
|
||||
},
|
||||
{
|
||||
"object": "",
|
||||
"operation": "Table",
|
||||
"tables": [],
|
||||
"line": 47,
|
||||
"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": 48,
|
||||
"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": 50,
|
||||
"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": 55,
|
||||
"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": 61,
|
||||
"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": 65,
|
||||
"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": 67,
|
||||
"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)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user