SCHEMA_STATEMENTS = [ ''' create table if not exists localities ( id integer not null primary key, name varchar(255) not null ); ''', ''' create table if not exists locality_relationships ( id varchar(255) not null primary key, parent integer not null, child integer not null ) ''', ''' create table if not exists search_results ( id integer not null primary key, time datetime not null, property_id integer not null, price integer not null, raw_json text not null ) ''', ''' create table if not exists properties ( id integer not null primary key, last_update datetime not null, raw_json text not null ) ''', 'alter table properties add column processed tinyint default 0 not null;', 'alter table properties add column price integer;', 'alter table properties add column lat float;', 'alter table properties add column lon float;', 'alter table properties add column size;', 'alter table properties add column ber varchar(255);', ]