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
+9
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 35,
"args": [
"'name_uniq'"
@@ -22,6 +25,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"country_country"
],
"line": 36,
"args": [
"'code_uniq'"
@@ -33,6 +39,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"country_country"
],
"line": 39,
"args": [
"'code'",
+108
View File
@@ -11,6 +11,9 @@
{
"object": "table",
"operation": "index_action",
"tables": [
"ir_action_keyword"
],
"line": 123,
"args": [
"['keyword', 'model']",
@@ -31,6 +34,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_action_report"
],
"line": 508,
"args": [
"'report_name_module_uniq'"
@@ -42,6 +48,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_report"
],
"line": 511,
"args": [
"*action_report.update([action_report.extension], ['txt'], where=action_report.extension == 'plain')"
@@ -53,6 +62,9 @@
{
"object": "action_report",
"operation": "update",
"tables": [
"ir_action_report"
],
"line": 511,
"args": [
"[action_report.extension]",
@@ -75,6 +87,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 702,
"args": [
"'auto_refresh'"
@@ -86,6 +101,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_action_act_window"
],
"line": 705,
"args": [
"'window_name'"
@@ -97,6 +115,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"ir_action_act_window"
],
"line": 708,
"args": [
"'limit'",
@@ -109,6 +130,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_action_act_window"
],
"line": 709,
"args": [
"*act_window.update([act_window.limit], [Null], where=act_window.limit == 0)"
@@ -120,6 +144,9 @@
{
"object": "act_window",
"operation": "update",
"tables": [
"ir_action_act_window"
],
"line": 709,
"args": [
"[act_window.limit]",
@@ -142,6 +169,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 70,
"args": [
"*attachment.update([attachment.file_id], [attachment.digest], where=(attachment.collision == 0) | (attachment.collision == Null))"
@@ -154,6 +184,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 70,
"args": [
"[attachment.file_id]",
@@ -169,6 +202,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_attachment"
],
"line": 75,
"args": [
"*attachment.update([attachment.file_id], [Concat(Concat(attachment.digest, '-'), attachment.collision)], where=(attachment.collision != 0) & (attachment.collision != Null))"
@@ -181,6 +217,9 @@
{
"object": "attachment",
"operation": "update",
"tables": [
"ir_attachment"
],
"line": 75,
"args": [
"[attachment.file_id]",
@@ -196,6 +235,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 81,
"args": [
"'digest'"
@@ -208,6 +250,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_attachment"
],
"line": 82,
"args": [
"'collision'"
@@ -220,6 +265,9 @@
{
"object": "table",
"operation": "drop_constraint",
"tables": [
"ir_attachment"
],
"line": 85,
"args": [
"'resource_name'"
@@ -239,6 +287,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 1107,
"args": [
"*model_data.update([model_data.module], ['ir'], where=(model_data.module == 'res') & (model_data.fs_id == 'model_data_sync_button'))"
@@ -250,6 +301,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 1107,
"args": [
"[model_data.module]",
@@ -272,6 +326,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 118,
"args": [
"*sql_table.update([sql_table.state], ['activated'], where=sql_table.state == 'installed')"
@@ -283,6 +340,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 118,
"args": [
"[sql_table.state]",
@@ -297,6 +357,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_module"
],
"line": 121,
"args": [
"*sql_table.update([sql_table.state], ['not activated'], where=sql_table.state == 'uninstalled')"
@@ -308,6 +371,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"ir_module"
],
"line": 121,
"args": [
"[sql_table.state]",
@@ -322,6 +388,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 134,
"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))"
@@ -333,6 +402,9 @@
{
"object": "model_data_sql_table",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 134,
"args": [
"[model_data_sql_table.module]",
@@ -355,6 +427,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_model_data"
],
"line": 412,
"args": [
"*model_data.update(columns=[model_data.model], values=[cls.__name__], where=model_data.model == 'ir.module.module.config_wizard.item')"
@@ -366,6 +441,9 @@
{
"object": "model_data",
"operation": "update",
"tables": [
"ir_model_data"
],
"line": 412,
"args": [],
"kwargs": {
@@ -387,6 +465,9 @@
{
"object": "table_h",
"operation": "index_action",
"tables": [
"ir_queue"
],
"line": 41,
"args": [
"[queue.scheduled_at.nulls_first, queue.expected_at.nulls_first, queue.dequeued_at, queue.name]"
@@ -408,6 +489,9 @@
{
"object": "table",
"operation": "index_action",
"tables": [
"ir_session"
],
"line": 40,
"args": [
"'create_uid'",
@@ -428,6 +512,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_translation"
],
"line": 108,
"args": [
"*ir_translation.update([ir_translation.type], ['report'], where=ir_translation.type == 'odt')"
@@ -439,6 +526,9 @@
{
"object": "ir_translation",
"operation": "update",
"tables": [
"ir_translation"
],
"line": 108,
"args": [
"[ir_translation.type]",
@@ -453,6 +543,9 @@
{
"object": "table",
"operation": "index_action",
"tables": [
"ir_translation"
],
"line": 114,
"args": [
"['lang', 'type', 'name']",
@@ -473,6 +566,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"ir_trigger"
],
"line": 84,
"args": [
"*sql_table.select(sql_table.id, sql_table.minimum_delay, where=sql_table.minimum_delay != Null)"
@@ -485,6 +581,9 @@
{
"object": "sql_table",
"operation": "select",
"tables": [
"ir_trigger"
],
"line": 84,
"args": [
"sql_table.id",
@@ -500,6 +599,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"ir_trigger"
],
"line": 93,
"args": [
"'minimum_delay'"
@@ -520,6 +622,9 @@
{
"object": "table",
"operation": "index_action",
"tables": [
"ir_trigger_log"
],
"line": 304,
"args": [
"['trigger', 'record_id']",
@@ -540,6 +645,9 @@
{
"object": "table",
"operation": "index_action",
"tables": [
"ir_ui_view_tree_state"
],
"line": 317,
"args": [
"['model', 'domain', 'user', 'child_name']",
+38
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_address"
],
"line": 74,
"args": [
"*sql_table.update([sql_table.street], [value])"
@@ -23,6 +26,9 @@
{
"object": "sql_table",
"operation": "update",
"tables": [
"party_address"
],
"line": 74,
"args": [
"[sql_table.street]",
@@ -36,6 +42,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"party_address"
],
"line": 77,
"args": [
"'streetbis'"
@@ -56,6 +65,9 @@
{
"object": "table_h",
"operation": "drop_constraint",
"tables": [
"party_category"
],
"line": 49,
"args": [
"'name_parent_uniq'"
@@ -75,6 +87,9 @@
{
"object": "table_h",
"operation": "not_null_action",
"tables": [
"party_party"
],
"line": 95,
"args": [
"'name'",
@@ -95,6 +110,10 @@
{
"object": "table",
"operation": "insert",
"tables": [
"party_party_lang",
"party_party"
],
"line": 279,
"args": [
"[table.party, table.lang]",
@@ -108,6 +127,9 @@
{
"object": "party",
"operation": "select",
"tables": [
"party_party"
],
"line": 281,
"args": [
"party.id",
@@ -121,6 +143,7 @@
{
"object": "cursor",
"operation": "execute",
"tables": [],
"line": 282,
"args": [
"*query"
@@ -133,6 +156,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 283,
"args": [
"'lang'"
@@ -153,6 +179,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"party_party"
],
"line": 341,
"args": [
"*party.select(party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))"
@@ -165,6 +194,9 @@
{
"object": "party",
"operation": "select",
"tables": [
"party_party"
],
"line": 341,
"args": [
"party.id",
@@ -181,6 +213,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 355,
"args": [
"'vat_number'"
@@ -193,6 +228,9 @@
{
"object": "party_h",
"operation": "drop_column",
"tables": [
"party_party"
],
"line": 356,
"args": [
"'vat_country'"
+30
View File
@@ -11,6 +11,10 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 396,
"args": [
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns], values=cost_price.select(*[Column(cost_price, c) for c in columns]))"
@@ -23,6 +27,10 @@
{
"object": "sql_table",
"operation": "insert",
"tables": [
"product_cost_price_method",
"product_cost_price"
],
"line": 396,
"args": [],
"kwargs": {
@@ -36,6 +44,9 @@
{
"object": "cost_price",
"operation": "select",
"tables": [
"product_cost_price"
],
"line": 398,
"args": [
"*[Column(cost_price, c) for c in columns]"
@@ -56,6 +67,9 @@
{
"object": "table",
"operation": "add_column",
"tables": [
"product_cost_price"
],
"line": 444,
"args": [
"'template'",
@@ -69,6 +83,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price"
],
"line": 451,
"args": [
"*sql_table.insert(columns=[Column(sql_table, c) for c in columns] + [sql_table.product], values=sql_table.join(product, condition=sql_table.template == product.template).select(*[Column(sql_table, c) for c in columns] + [product.id], where=(sql_table.template != Null) & (sql_table.product == Null)))"
@@ -81,6 +98,9 @@
{
"object": "sql_table",
"operation": "insert",
"tables": [
"product_cost_price"
],
"line": 451,
"args": [],
"kwargs": {
@@ -94,6 +114,7 @@
{
"object": "sql_table.join(product, condition=sql_table.template == product.template)",
"operation": "select",
"tables": [],
"line": 454,
"args": [
"*[Column(sql_table, c) for c in columns] + [product.id]"
@@ -108,6 +129,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"product_cost_price"
],
"line": 461,
"args": [
"*sql_table.delete(where=(sql_table.template != Null) & (sql_table.product == Null))"
@@ -120,6 +144,9 @@
{
"object": "sql_table",
"operation": "delete",
"tables": [
"product_cost_price"
],
"line": 461,
"args": [],
"kwargs": {
@@ -132,6 +159,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"product_cost_price"
],
"line": 464,
"args": [
"'template'"
+9
View File
@@ -11,6 +11,9 @@
{
"object": "table_h",
"operation": "column_rename",
"tables": [
"production"
],
"line": 230,
"args": [
"'code'",
@@ -24,6 +27,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"production"
],
"line": 236,
"args": [
"*table.update([table.planned_start_date], [table.planned_date], where=(table.planned_start_date == Null) & (table.planned_date != Null))"
@@ -35,6 +41,9 @@
{
"object": "table",
"operation": "update",
"tables": [
"production"
],
"line": 236,
"args": [
"[table.planned_start_date]",
+15
View File
@@ -11,6 +11,9 @@
{
"object": "cursor",
"operation": "execute",
"tables": [
"res_user"
],
"line": 210,
"args": [
"*sqltable.update(columns=[sqltable.password_hash], values=[password_hash_new])"
@@ -23,6 +26,9 @@
{
"object": "sqltable",
"operation": "update",
"tables": [
"res_user"
],
"line": 210,
"args": [],
"kwargs": {
@@ -36,6 +42,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 213,
"args": [
"'password'"
@@ -48,6 +57,9 @@
{
"object": "table",
"operation": "drop_column",
"tables": [
"res_user"
],
"line": 214,
"args": [
"'salt'"
@@ -60,6 +72,9 @@
{
"object": "table",
"operation": "not_null_action",
"tables": [
"res_user"
],
"line": 217,
"args": [
"'name'"