v0.5.3-pre.003

This commit is contained in:
2026-08-12 11:00:59 +02:00
parent 8448ad1079
commit 400ced4832
313 changed files with 7773 additions and 2623 deletions

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_account_keys_key.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_account_keys_key when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_account_keys_key ON k_sol_core_account_keys (account_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_account_states_account_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_account_states_account_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_account_states_account_slot ON k_sol_core_account_states (account_key, slot DESC, id DESC);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_account_states_owner.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_account_states_owner when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_account_states_owner ON k_sol_core_account_states (owner, slot DESC, id DESC);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_balance_changes_account.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_balance_changes_account when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_balance_changes_account ON k_sol_core_balance_changes (account_key) WHERE account_key IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_balance_changes_mint.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_balance_changes_mint when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_balance_changes_mint ON k_sol_core_balance_changes (mint) WHERE mint IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_balance_changes_owner.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_balance_changes_owner when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_balance_changes_owner ON k_sol_core_balance_changes (owner) WHERE owner IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_inner_instructions_parent.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_inner_instructions_parent when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_inner_instructions_parent ON k_sol_core_inner_instructions (signature, parent_instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_inner_instructions_processing.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_inner_instructions_processing when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_inner_instructions_processing ON k_sol_core_inner_instructions (processing_state, slot, signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_inner_instructions_program.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_inner_instructions_program when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_inner_instructions_program ON k_sol_core_inner_instructions (program_id, slot, signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_instructions_processing.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_instructions_processing when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_instructions_processing ON k_sol_core_instructions (processing_state, slot, signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_instructions_program.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_instructions_program when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_instructions_program ON k_sol_core_instructions (program_id, slot, signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_instructions_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_instructions_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_instructions_slot ON k_sol_core_instructions (slot, signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_logs_path.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_logs_path when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_logs_path ON k_sol_core_logs (signature, instruction_path) WHERE instruction_path IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_logs_program.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_logs_program when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_logs_program ON k_sol_core_logs (program_id) WHERE program_id IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_return_data_program.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_return_data_program when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_return_data_program ON k_sol_core_return_data (program_id, slot, signature);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_transactions_created_at.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_transactions_created_at when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_transactions_created_at ON k_sol_core_transactions (created_at);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_core_transactions_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_core_transactions_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_core_transactions_slot ON k_sol_core_transactions (slot);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_coverage_declarations_program.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_coverage_declarations_program when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_coverage_declarations_program ON k_sol_decode_coverage_declarations (program_id, processor_name, processor_version);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_coverage_observations_entry.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_coverage_observations_entry when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_coverage_observations_entry ON k_sol_decode_coverage_observations (processor_name, processor_version, surface_code, entry_code);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_coverage_observations_program_status.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_coverage_observations_program_status when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_coverage_observations_program_status ON k_sol_decode_coverage_observations (program_id, status, transaction_failed);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_events_family_commit.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_events_family_commit when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_events_family_commit ON k_sol_decode_events (event_family, transaction_failed, observation_committed);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_events_program_surface.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_events_program_surface when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_events_program_surface ON k_sol_decode_events (program_id, surface_code, event_code);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_decode_events_signature_path.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_decode_events_signature_path when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_decode_events_signature_path ON k_sol_decode_events (signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_mat_outputs_processor_family_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_mat_outputs_processor_family_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_mat_outputs_processor_family_slot ON k_sol_mat_outputs (processor_name, materialized_family, slot DESC, id DESC);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_mat_outputs_signature_family.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_mat_outputs_signature_family when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_mat_outputs_signature_family ON k_sol_mat_outputs (source_decoder_name, source_decoder_version, source_decode_input_key, signature, materialized_family);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_account_observations_account_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_account_observations_account_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_account_observations_account_slot ON k_sol_obs_account_observations (account_key, context_slot DESC, id DESC);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_account_observations_provider_method.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_account_observations_provider_method when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_account_observations_provider_method ON k_sol_obs_account_observations (provider, acquisition_method);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_account_observations_received_at.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_account_observations_received_at when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_account_observations_received_at ON k_sol_obs_account_observations (received_at);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_account_observations_status.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_account_observations_status when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_account_observations_status ON k_sol_obs_account_observations (status);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_provider_method.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_provider_method when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_provider_method ON k_sol_obs_transaction_observations (provider, acquisition_method);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_raw_transaction.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_raw_transaction when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_raw_transaction ON k_sol_obs_transaction_observations (raw_transaction_id) WHERE raw_transaction_id IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_received_at.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_received_at when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_received_at ON k_sol_obs_transaction_observations (received_at);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_signature.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_signature when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_signature ON k_sol_obs_transaction_observations (signature) WHERE signature IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_slot ON k_sol_obs_transaction_observations (slot) WHERE slot IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_obs_transaction_observations_status.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_obs_transaction_observations_status when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_obs_transaction_observations_status ON k_sol_obs_transaction_observations (status);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_ops_processing_ledger_input_hash.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_ops_processing_ledger_input_hash when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_ops_processing_ledger_input_hash ON k_sol_ops_processing_ledger (input_hash);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_ops_processing_ledger_stage_input.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_ops_processing_ledger_stage_input when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_ops_processing_ledger_stage_input ON k_sol_ops_processing_ledger (stage, input_key, updated_at DESC, id DESC);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_ops_processing_ledger_status.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_ops_processing_ledger_status when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_ops_processing_ledger_status ON k_sol_ops_processing_ledger (stage, processor_name, status, updated_at);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_raw_transactions_canonical_hash.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_raw_transactions_canonical_hash when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_raw_transactions_canonical_hash ON k_sol_raw_transactions (canonical_json_hash) WHERE canonical_json_hash IS NOT NULL;

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_raw_transactions_created_at.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_raw_transactions_created_at when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_raw_transactions_created_at ON k_sol_raw_transactions (created_at);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_raw_transactions_processing.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_raw_transactions_processing when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_raw_transactions_processing ON k_sol_raw_transactions (processing_state);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_raw_transactions_processing_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_raw_transactions_processing_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_raw_transactions_processing_slot ON k_sol_raw_transactions (processing_state, slot, signature);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ix_k_sol_raw_transactions_slot.sql
-- version: 1
-- Create PostgreSQL index ix_k_sol_raw_transactions_slot when absent.
CREATE INDEX IF NOT EXISTS ix_k_sol_raw_transactions_slot ON k_sol_raw_transactions (slot);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_account_keys_sig_index.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_account_keys_sig_index when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_account_keys_sig_index ON k_sol_core_account_keys (signature, account_index);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_account_states_observation.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_account_states_observation when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_account_states_observation ON k_sol_core_account_states (source_observation_id);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_balance_changes_sig_index.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_balance_changes_sig_index when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_balance_changes_sig_index ON k_sol_core_balance_changes (signature, balance_change_index);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_inner_instructions_sig_path.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_inner_instructions_sig_path when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_inner_instructions_sig_path ON k_sol_core_inner_instructions (signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_instructions_sig_path.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_instructions_sig_path when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_instructions_sig_path ON k_sol_core_instructions (signature, instruction_path);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_logs_sig_index.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_logs_sig_index when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_logs_sig_index ON k_sol_core_logs (signature, log_index);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_return_data_signature.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_return_data_signature when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_return_data_signature ON k_sol_core_return_data (signature);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_core_transactions_signature.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_core_transactions_signature when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_core_transactions_signature ON k_sol_core_transactions (signature);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_decode_coverage_declarations_identity.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_decode_coverage_declarations_identity when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_decode_coverage_declarations_identity ON k_sol_decode_coverage_declarations (processor_name, processor_version, program_id, COALESCE(surface_code, ''), entry_kind, entry_code, COALESCE(discriminator_hex, ''));

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_decode_coverage_observations_identity.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_decode_coverage_observations_identity when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_decode_coverage_observations_identity ON k_sol_decode_coverage_observations (processor_name, processor_version, input_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_decode_events_processor_input_event.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_decode_events_processor_input_event when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_decode_events_processor_input_event ON k_sol_decode_events (processor_name, processor_version, input_key, event_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_mat_outputs_processor_input_output.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_mat_outputs_processor_input_output when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_mat_outputs_processor_input_output ON k_sol_mat_outputs (processor_name, processor_version, input_key, output_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_obs_account_observations_key.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_obs_account_observations_key when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_obs_account_observations_key ON k_sol_obs_account_observations (observation_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_obs_transaction_observations_key.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_obs_transaction_observations_key when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_obs_transaction_observations_key ON k_sol_obs_transaction_observations (observation_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_ops_processing_ledger_identity.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_ops_processing_ledger_identity when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_ops_processing_ledger_identity ON k_sol_ops_processing_ledger (stage, processor_name, processor_version, input_key);

View File

@@ -0,0 +1,5 @@
-- file: migrations/postgres/schema/indexes/create_index_if_not_exists_ux_k_sol_raw_transactions_signature.sql
-- version: 1
-- Create PostgreSQL index ux_k_sol_raw_transactions_signature when absent.
CREATE UNIQUE INDEX IF NOT EXISTS ux_k_sol_raw_transactions_signature ON k_sol_raw_transactions (signature);