Skip to content

Commit

Permalink
chore: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 16, 2024
1 parent f09b8e7 commit 566f25f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/storage/bucket/migrations/11-stateless.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,10 @@ alter column hash
drop not null;

-- Change from jsonb to json to keep keys order and ensure consistent hashing
-- todo: check if still required
alter table "{{.Bucket}}".logs
alter column data
type json;

--drop index transactions_metadata_ledger;
--drop index transactions_metadata_revisions;

--drop index accounts_metadata_ledger;
--drop index accounts_metadata_revisions;

create unique index accounts_metadata_ledger on "{{.Bucket}}".accounts_metadata (ledger, accounts_address, revision);
create index accounts_metadata_revisions on "{{.Bucket}}".accounts_metadata(accounts_address asc, revision desc) include (metadata, date);

Expand Down Expand Up @@ -142,21 +135,15 @@ from (
order by seq desc
) moves;

--drop index moves_post_commit_volumes;
--drop index moves_effective_post_commit_volumes;

drop trigger "insert_account" on "{{.Bucket}}".accounts;
drop trigger "update_account" on "{{.Bucket}}".accounts;
drop trigger "insert_transaction" on "{{.Bucket}}".transactions;
drop trigger "update_transaction" on "{{.Bucket}}".transactions;

--drop index moves_account_address_array;
--drop index moves_account_address_array_length;
drop index transactions_sources_arrays;
drop index transactions_destinations_arrays;
drop index accounts_address_array;
drop index accounts_address_array_length;

drop index transactions_sources;
drop index transactions_destinations;

Expand Down

0 comments on commit 566f25f

Please sign in to comment.