CREATE TABLE IF NOT EXISTS migration ( id serial primary key not null, name text not null, applied_at timestamp not null default now() );