mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
aa4d95917c
Remove Favourites APIs and update the saved address APIs Added up migration scripts that move the favourites from the old table to the saved_addresses table with true flag and then drop the favourites table. Required by #6546
5 lines
233 B
SQL
5 lines
233 B
SQL
ALTER TABLE saved_addresses ADD COLUMN favourite BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
INSERT OR REPLACE INTO saved_addresses(address, name, favourite, network_id) SELECT address, name, "TRUE", "1" FROM favourites;
|
|
|
|
DROP TABLE favourites; |