Files
tryton-db-migration/data/5.0/res.json
T
uha4 b549063ff6 Dedublizierung gefixt
- lange existierender Updatecode wurde in jeder 2. Version angezeigt
- UPDATEANALYSE.md ergänzt.
2026-08-20 13:27:23 +02:00

174 lines
5.1 KiB
JSON

{
"version": "5.0",
"module": "res",
"files": [
{
"module": "res",
"file": "user.py",
"class": "User",
"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",
"tables": [
"res_user"
],
"line": 210,
"args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
],
"kwargs": {},
"code": "(Transaction().connection.cursor()).execute(*sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new]))",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "sqltable",
"operation": "update",
"tables": [
"res_user"
],
"line": 210,
"args": [],
"kwargs": {
"columns": "[sqltable.password_hash]",
"values": "[password_hash_new]"
},
"code": "sqltable.update(\n columns=[sqltable.password_hash],\n values=[password_hash_new])",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 213,
"args": [
"'password'"
],
"kwargs": {},
"code": "table.drop_column('password')",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 214,
"args": [
"'salt'"
],
"kwargs": {},
"code": "table.drop_column('salt')",
"phase": "after_super",
"condition": "table.column_exist('password') and table.column_exist('salt')"
},
{
"object": "table",
"operation": "not_null_action",
"tables": [
"res_user"
],
"line": 217,
"args": [
"'name'"
],
"kwargs": {
"action": "'remove'"
},
"code": "table.not_null_action('name', action='remove')",
"phase": "after_super"
}
]
}
]
}