status-go/appdatabase/migrations/sql/1625872445_user_status.up.sql
RichΛrd 026fcb09a4
feat: user status (#2276)
* feat: user status

* fix: sql filename and null pointer exceptions

* fix: lint

* refactor: remove StatusUpdate from database.go

* fix: adding missing status updates persistence methods

* fix: code review

* Update version and bindata, and lint

* fix: failing test

* fix: code review

* fix update statement
2021-07-22 13:41:49 -04:00

10 lines
351 B
SQL

ALTER TABLE settings ADD COLUMN current_user_status BLOB;
ALTER TABLE settings ADD COLUMN send_status_updates BOOLEAN DEFAULT TRUE;
UPDATE settings SET send_status_updates = 1;
CREATE TABLE status_updates (
public_key TEXT PRIMARY KEY ON CONFLICT REPLACE,
status_type INT NOT NULL DEFAULT 0,
clock INT NOT NULL,
custom_text TEXT DEFAULT ""
);