// Code generated by go generate; DO NOT EDIT. package storage var SqlMap = map[string]string{ "schema_version_1": `-- create schema version table create table schema_version ( version text not null ); -- create users table create table users ( name text primary key CHECK (name <> ''), hash text not null CHECK (hash <> ''), created_at timestamp with time zone DEFAULT now() ); -- create posts status create table statuses ( id serial primary key, author TEXT references users(name) NOT NULL, content VARCHAR(500) NOT NULL CHECK (content <> ''), created_at timestamp with time zone DEFAULT now() ); `, "schema_version_10": `alter table users add column signup_email TEXT not null DEFAULT '', add column signup_msg TEXT not null DEFAULT '', add column active bool default false; -- All existing users are active update users set active=true;`, "schema_version_11": `ALTER TABLE statuses ALTER COLUMN face TYPE VARCHAR(2);`, "schema_version_2": `alter table users add column status_id int references statuses(id); `, "schema_version_3": `alter table users add column homepage varchar(500) not null DEFAULT '', add column about varchar(500) not null DEFAULT ''; `, "schema_version_4": `alter table users alter column about TYPE TEXT;`, "schema_version_5": `alter table users add column style TEXT not null DEFAULT '';`, "schema_version_6": `alter table users add column picture varchar(500) not null DEFAULT '';`, "schema_version_7": `alter table users add column email varchar(500) not null DEFAULT '';`, "schema_version_8": `alter table statuses add column face varchar(1) not null DEFAULT '🙂';`, "schema_version_9": `alter table users drop column style;`, }