DELETE FROM service.masstransit_threads_comparison_id_result;
DELETE FROM service.masstransit_threads_comparison_geom_result;
DELETE FROM service.masstransit_threads_comparison_task;
DELETE FROM service.task WHERE type='masstransit_threads_comparison';
DROP TABLE service.masstransit_threads_comparison_geom_result;
CREATE TABLE service.masstransit_threads_comparison_geom_result
(
    task_id bigint NOT NULL,
    thread_id bigint NOT NULL,
    goradmin_id bigint NOT NULL,
    the_geom geometry NOT NULL
);
CREATE TABLE service.masstransit_threads_comparison_goradmin_id_mapping
(
    goradmin_id bigint not null,
    import_source_id TEXT,
    CONSTRAINT masstransit_threads_comparison_goradmin_id_pkey PRIMARY KEY (goradmin_id)
);
