CREATE TABLE session_2019060501 AS SELECT * FROM session;
DROP TABLE session;
CREATE TABLE IF NOT EXISTS session (
    session_id varchar(255) NOT NULL,
    session_value bytea NOT NULL,
    session_lifetime integer NOT NULL,
    session_time integer NOT NULL,
    PRIMARY KEY (session_id)
);
INSERT INTO session (session_id, session_value, session_lifetime, session_time) (SELECT session_id, session_value, 0, session_time FROM session_2019060501);
DROP TABLE session_2019060501;


DELETE FROM versions WHERE label = 'schema';
INSERT INTO versions VALUES('schema', '2019060501');
