extract gets and saves most tables worked on

some cases still need some work...
This commit is contained in:
2026-08-08 22:32:31 +02:00
parent f14f709649
commit 24caf23986
151 changed files with 7017 additions and 1215 deletions
+211
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 591,
"args": [
"'report_name_module_uniq'"
@@ -22,6 +25,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_report"
],
"line": 594,
"args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
@@ -33,6 +39,9 @@
{
"object": "action_report",
"operation": "update",
"tables": [
"ir_action_report"
],
"line": 594,
"args": [
"[action_report.extension]",
@@ -55,6 +64,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 782,
"args": [
"'auto_refresh'"
@@ -66,6 +78,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 785,
"args": [
"'window_name'"
@@ -77,6 +92,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 788,
"args": [
"'limit'",
@@ -89,6 +107,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 789,
"args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
@@ -100,6 +121,9 @@
{
"object": "act_window",
"operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 789,
"args": [
"[act_window.limit]",
@@ -122,6 +146,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_view"
],
"line": 985,
"args": [
"'sequence'",
@@ -142,6 +169,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window_domain"
],
"line": 1034,
"args": [
"'sequence'",
@@ -162,6 +192,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 69,
"args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
@@ -174,6 +207,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 69,
"args": [
"[attachment.file_id]",
@@ -189,6 +225,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 74,
"args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
@@ -201,6 +240,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 74,
"args": [
"[attachment.file_id]",
@@ -216,6 +258,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 80,
"args": [
"'digest'"
@@ -228,6 +273,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81,
"args": [
"'collision'"
@@ -240,6 +288,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 84,
"args": [
"'resource_name'"
@@ -259,6 +310,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_cron"
],
"line": 103,
"args": [
"'next_call'",
@@ -279,6 +333,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"ir_model_button"
],
"line": 901,
"args": [
"'name_model_uniq'"
@@ -298,6 +355,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1236,
"args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
@@ -309,6 +369,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 1236,
"args": [
"[model_data.module]",
@@ -323,6 +386,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_model_data"
],
"line": 1242,
"args": [
"'db_id'"
@@ -341,9 +407,29 @@
"method": "__register__",
"line": 97,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module",
"ir_module"
],
"line": 107,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 112,
"args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
@@ -355,6 +441,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 112,
"args": [
"[sql_table.state]",
@@ -369,6 +458,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 115,
"args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
@@ -380,6 +472,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 115,
"args": [
"[sql_table.state]",
@@ -394,6 +489,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 128,
"args": [
"*model_data_sql_table.update([model_data_sql_table.module], ['ir'], where=(model_data_sql_table.module == 'res') & model_data_sql_table.fs_id.in_(button_fs_ids))"
@@ -405,6 +503,9 @@
{
"object": "model_data_sql_table",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 128,
"args": [
"[model_data_sql_table.module]",
@@ -418,15 +519,60 @@
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleDependency",
"method": "__register__",
"line": 337,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_dependency",
"ir_module_dependency"
],
"line": 341,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
}
]
},
{
"file": "/home/uha4/tmp/tryton/trytond/trytond/ir/module.py",
"class": "ModuleConfigWizardItem",
"method": "__register__",
"line": 370,
"operations": [
{
"object": "backend.TableHandler",
"operation": "table_rename",
"tables": [
"ir_module_module_config_wizard_item",
"ir_module_config_wizard_item"
],
"line": 379,
"args": [
"old_table",
"cls._table"
],
"kwargs": {},
"code": "backend.TableHandler.table_rename(old_table, cls._table)",
"phase": "before_super",
"condition": "backend.TableHandler.table_exist(old_table)"
},
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 380,
"args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
@@ -438,6 +584,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 380,
"args": [],
"kwargs": {
@@ -451,6 +600,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_module_config_wizard_item"
],
"line": 391,
"args": [
"'sequence'",
@@ -471,6 +623,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_sequence_type"
],
"line": 47,
"args": [
"'code'"
@@ -492,6 +647,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130,
"args": [
"*table.update([table.sequence_type], sequence_type.select(sequence_type.id, where=sequence_type.code == table.code))"
@@ -504,6 +663,10 @@
{
"object": "table",
"operation": "update",
"tables": [
"ir_sequence",
"ir_sequence_type"
],
"line": 130,
"args": [
"[table.sequence_type]",
@@ -517,6 +680,9 @@
{
"object": "sequence_type",
"operation": "select",
"tables": [
"ir_sequence_type"
],
"line": 132,
"args": [
"sequence_type.id"
@@ -531,6 +697,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_sequence"
],
"line": 135,
"args": [
"'code'"
@@ -551,6 +720,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_translation"
],
"line": 119,
"args": [
"'translation_md5_uniq'"
@@ -563,6 +735,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_translation"
],
"line": 120,
"args": [
"'src_md5'"
@@ -575,6 +750,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_translation"
],
"line": 125,
"args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
@@ -586,6 +764,9 @@
{
"object": "ir_translation",
"operation": "update",
"tables": [
"ir_translation"
],
"line": 125,
"args": [
"[ir_translation.type]",
@@ -608,6 +789,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 91,
"args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
@@ -620,6 +804,9 @@
{
"object": "sql_table",
"operation": "select",
"tables": [
"ir_trigger"
],
"line": 91,
"args": [
"sql_table.id",
@@ -635,6 +822,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 100,
"args": [
"'minimum_delay'"
@@ -647,6 +837,9 @@
{
"object": "model",
"operation": "select",
"tables": [
"ir_model"
],
"line": 108,
"args": [
"model.model"
@@ -661,6 +854,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 110,
"args": [
"*sql_table.update([sql_table.action], [Concat(action_model, Concat('|', sql_table.action_function))])"
@@ -673,6 +869,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_trigger"
],
"line": 110,
"args": [
"[sql_table.action]",
@@ -686,6 +885,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 114,
"args": [
"'action_model'"
@@ -698,6 +900,9 @@
{
"object": "table_h",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 115,
"args": [
"'action_function'"
@@ -718,6 +923,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_ui_icon"
],
"line": 37,
"args": [
"'sequence'",
@@ -738,6 +946,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"ir_ui_view_search"
],
"line": 606,
"args": [
"'user'",