status-go/appdatabase/migrations/sql
Stefan 5b6f7226bb feat(wallet) extract json blobs and add custom migration support
Extended the migration process with a generic way of applying custom
migration code on top of the SQL files. The implementation provides
a safer way to run GO code along with the SQL migrations and possibility
of rolling back the changes in case of failure to keep the database
consistent.
This custom GO migration is needed to extract the status from
the JSON blob receipt and store it in transfers table.

Other changes:
- Add NULL DB value tracking to JSONBlob helper
- Index status column on transfers table
- Remove unnecessary panic calls
- Move log_parser to wallet's common package and use to extract token
  identity from the logs

Notes:
- there is already an index on transfers table, sqlite creates one for
  each unique constraint therefore add only status to a new index
- the planned refactoring and improvements to the database have been
  postponed due to time constraints. Got the time to migrate the data
  though, extracting it can be done later for a more efficient
  implementation

Update status-desktop #10746
2023-06-08 13:54:40 +02:00
..
1640111208_dummy.up.sql
1642666031_add_removed_clock_to_bookmarks.up.sql Sync bookmarks 2022-02-17 12:40:33 +00:00
1643644541_gif_api_key_setting.up.sql fix: rename the gif migration file as per current timestamp (#2513) 2022-01-31 17:46:59 +01:00
1644188994_recent_stickers.up.sql fix: invalid sql 2022-03-07 10:23:18 -04:00
1646659233_add_address_to_dapp_permisssion.up.sql feat: add address to permission (#2571) 2022-03-14 13:38:12 +01:00
1646841105_add_emoji_account.up.sql feat: Added emoji params for a wallet account (#2582) 2022-03-11 11:59:15 +01:00
1647278782_display_name.up.sql feat: display name 2022-03-14 13:48:34 -04:00
1647862838_reset_last_backup.up.sql Backup communities 2022-03-23 14:45:52 +00:00
1647871652_add_settings_sync_clock_table.up.sql Sync Settings (#2478) 2022-03-23 18:47:00 +00:00
1647880168_add_torrent_config.up.sql Updating migration indexes (#2608) 2022-03-25 12:45:23 +00:00
1647882837_add_communities_settings_table.up.sql Updating migration indexes (#2608) 2022-03-25 12:45:23 +00:00
1647956635_add_waku_messages_table.up.sql Make community owners store waku message payloads 2022-03-28 11:24:23 +02:00
1648554928_network_test.up.sql feat: link test and prod network (#2592) 2022-03-29 14:39:10 +02:00
1649174829_add_visitble_token.up.sql feat: visible token api (#2624) 2022-04-13 09:55:38 +02:00
1649882262_add_derived_from_accounts.up.sql fix: change add_derived_from_accounts migration timestamp 2022-04-13 17:02:56 -04:00
1650612625_add_community_message_archive_hashes_table.up.sql Handle history archive magnetlink messages 2022-05-10 11:27:31 +02:00
1650616788_add_communities_archives_info_table.up.sql Handle history archive magnetlink messages 2022-05-10 11:27:31 +02:00
1652715604_add_clock_accounts.up.sql Wallet sync 2022-05-18 15:25:20 +03:00
1653037334_add_notifications_settings_table.up.sql notifications settings end points added and `notification_settings` table 2022-05-26 11:49:08 +02:00
1654702119_add_mutual_contact_settings.up.sql Enable contact request settings 2022-06-13 13:46:45 +01:00
1655375270_add_clock_field_to_communities_settings_table.up.sql feat: sync `CommunitySettings` across paired devices 2022-06-16 12:45:05 +02:00
1655385721_drop_networks_config.up.sql feat: Added new params for shortName and color for the networks (#2681) 2022-06-17 00:12:21 +05:30
1655385724_networks_chainColor_shortName.up.sql feat: Added new params for shortName and color for the networks (#2681) 2022-06-17 00:12:21 +05:30
1655456688_add_deleted_at_field_to_bookmarks_table.up.sql feat: introduce `AddBookmark` and `RemoveBookmark` APIs to messenger 2022-06-17 12:29:03 +02:00
1655462032_create_bookmarks_deleted_at_index.up.sql feat: add garbage collection for soft deleted bookmarks 2022-06-17 14:21:21 +02:00
1657617291_add_multi_transactions_table.up.sql feat: multi transaction (#2751) 2022-07-15 10:53:56 +02:00
1660134042_add_social_links_settings_table.up.sql feat: add social links 2022-08-16 14:29:00 +02:00
1660134060_settings_bio.up.sql feat: add bio 2022-08-16 14:29:00 +02:00
1660134070_add_wakuv2_store.up.sql feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
1660134072_waku2_store_messages.up.sql feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
1662365868_add_key_uid_accounts.up.sql feat: `key_uid` column added to the `accounts` table 2022-09-12 08:51:15 +02:00
1662447680_add_keypairs_table.up.sql fix: workaround for wrong renaming of migration file for keypairs table 2022-09-16 12:52:01 +02:00
1662460056_move_favourites_to_saved_addresses.up.sql feat: merge favourites with saved address 2022-09-12 13:46:04 +02:00
1662738097_add_base_fee_transaction.up.sql feat: Added new BaseFee param inside transactions (#2847) 2022-09-09 20:22:59 +02:00
1662972194_add_keypairs_table.up.sql fix: workaround for wrong renaming of migration file for keypairs table 2022-09-16 12:52:01 +02:00
1664392661_add_third_party_id_to_waku_messages.up.sql feat(common): add `ThirdPartyID` to `Message` and `protobuf.WakuMessage` 2022-09-29 11:15:47 +02:00
1664783660_add_sync_info_to_saved_addresses.up.sql feat: sync saved addresses 2022-10-10 11:26:35 +02:00
1668109917_wakunodes.up.sql fix: waku clusterconfig migration 2022-11-18 12:08:05 -04:00
1670249678_display_name_to_settings_sync_clock_table.up.sql feat: backup profile data to waku and sync them from waku 2022-12-23 15:07:14 +01:00
1670836810_add_imported_flag_to_community_archive_hashes.up.sql refactor(communities): better archive download handling 2022-12-13 16:13:15 +01:00
1671438731_add_magnetlink_uri_to_communities_archive_info.up.sql Keep track of last seen magnetlink 2022-12-20 15:16:08 +01:00
1672933930_switcher_card.up.sql Persist switcher cards (#3049) 2023-01-05 21:41:57 +05:30
1674056187_add_price_cache.up.sql feat(wallet): add price cache (#3107) 2023-01-19 11:49:48 -03:00
1674136690_ens_usernames.up.sql feat: ens_usernames database (#3066) 2023-01-20 13:34:30 +03:00
1674232431_add_balance_history.up.sql feat: add balance_history DB table and update migration scripts 2023-01-25 22:25:50 +04:00
1676368933_keypairs_to_keycards.up.sql chore(keycard): keypair improvements 2023-02-17 12:45:34 +01:00
1676951398_add_currency_format_cache.up.sql feat: implement currency formatting calculation (#3191) 2023-02-17 11:11:07 -03:00
1676968196_keycards_add_clock_column.up.sql chore(keycard): `last_update_clock` column added to `keycards` table 2023-02-27 16:03:02 +01:00
1676968197_add_fallback_rpc_to_networks.up.sql feat: fallback rpc endpoint 2023-02-28 08:43:57 +01:00
1677674090_add_chains_ens_istest_to_saved_addresses.up.sql feat: Update saved addresses DB to store ENS, isTest flag and chains (#3183) 2023-03-06 16:26:46 +03:00
1677681143_accounts_table_type_column_update.up.sql chore(accounts): `type` column from `accounts` table updated 2023-03-07 11:28:06 +01:00
1678264207_accounts_table_new_columns_added.up.sql feat: `keypair_name` and `last_used_derivation_index` columns added to `accounts` table 2023-03-28 16:19:27 +02:00
1680770368_add_bio_to_settings_sync_clock_table.up.sql backup/sync if seed phrase removed (#3385) (#3384) 2023-04-13 08:45:25 +08:00
1681110436_add_mnemonic_to_settings_sync_clock_table.up.sql backup/sync if seed phrase removed (#3385) (#3384) 2023-04-13 08:45:25 +08:00
1681392602_9d_sync_period.up.sql chore: set default sync period to 9 days 2023-04-13 14:20:15 -04:00
1681762078_default_sync_period_9d.up.sql fix: set default value in sync period column to 9d 2023-04-18 09:41:42 -04:00
1681780680_add_clock_to_social_links_settings.up.sql feat:support backup/sync social settings (#3407) 2023-04-20 06:59:09 +08:00
1682073779_settings_table_remove_latest_derived_path_column.up.sql chore: unused `latest_derived_path` removed from `settings` table 2023-04-21 16:35:24 +02:00
1682146075_add_created_at_to_saved_addresses.up.sql feat: add saved address created at 2023-04-22 10:22:43 +02:00
1682393575_sync_ens_name.up.sql feat:support backup/sync ens name (#3415) 2023-04-26 23:37:18 +08:00
1683457503_add_blocks_ranges_sequential_table.up.sql feat(wallet): Implemented SequentialFetchStrategy for transfers. (#3480) 2023-05-19 11:19:48 +03:00
1683627613_accounts_and_keycards_improvements.up.sql feat: accounts improvements applied 2023-05-25 19:46:47 +02:00
1685041348_settings_table_add_latest_derived_path_column.up.sql Changes necessary to restore wallet on mobile app 2023-05-25 21:08:34 +02:00
1685440989_update_color_id_accounts.up.sql chore: Add ColorId for Wallet accounts that can be shared with mobile (#3521) 2023-06-02 17:06:51 +02:00
1685463947_add_to_asset_to_multitransaction.up.sql feat(Wallet) detect uniswapV2 swap events 2023-06-05 12:08:18 -03:00
1685880973_add_profile_links_settings_table.up.sql fix: profile social links, `position` column addded 2023-06-06 09:59:12 +02:00
1686041510_add_idx_transfers_blkno_loaded.up.sql fix(wallet) add index on transfers(blk_number, loaded) 2023-06-06 12:09:38 +02:00
1686048341_transfers_receipt_json_blob_out.up.sql.down.sql feat(wallet) extract json blobs and add custom migration support 2023-06-08 13:54:40 +02:00
1686048341_transfers_receipt_json_blob_out.up.sql.up.sql feat(wallet) extract json blobs and add custom migration support 2023-06-08 13:54:40 +02:00
doc.go