CREATE TABLE search_history( id integer NOT NULL, content text NOT NULL, count integer NOT NULL DEFAULT 0, last_time bigint NOT NULL, CONSTRAINT search_history_id_pk PRIMARY KEY (id), CONSTRAINT search_history_content_uk UNIQUE (content) ); UPDATE config SET value = '14' WHERE key = 'version';