status-go/appdatabase/migrations/sql/1678264207_accounts_table_new_columns_added.up.sql
Sale Djenic f10bd00ceb feat: keypair_name and last_used_derivation_index columns added to accounts table
- `keypair_name` added to `accounts` table, all accounts derived from the
same master key have the same keypair name and also no two keypairs share
the same keypair name (keypair name is unique per keypair)
- `last_used_derivation_index` added to `accounts` table, cause we need
to maintain the highest index been used for the derivations made within
the same keypair
2023-03-28 16:19:27 +02:00

2 lines
130 B
SQL

ALTER TABLE accounts ADD keypair_name TEXT DEFAULT "";
ALTER TABLE accounts ADD last_used_derivation_index INT NOT NULL DEFAULT 0;