Skip to content

Commit

Permalink
fixed migrations sql (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
czaloom authored Feb 12, 2024
1 parent 7cc37d1 commit 39169cf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions migrations/sql/00000001_initialize_schema.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@ create table model
primary key,
name varchar not null,
meta jsonb,
geo geography(Geometry, 4326),
status varchar not null,
created_at timestamp not null
);

create index idx_model_geo
on model using gist (geo);

create unique index ix_model_name
on model (name);

Expand All @@ -51,7 +47,6 @@ create table dataset
primary key,
name varchar not null,
meta jsonb,
geo geography(Geometry, 4326),
status varchar not null,
created_at timestamp not null
);
Expand All @@ -62,9 +57,6 @@ create index ix_dataset_id
create unique index ix_dataset_name
on dataset (name);

create index idx_dataset_geo
on dataset using gist (geo);

create table evaluation
(
id serial
Expand All @@ -73,17 +65,13 @@ create table evaluation
datum_filter jsonb not null,
parameters jsonb not null,
status varchar not null,
geo geography(Geometry, 4326),
created_at timestamp not null,
unique (model_name, datum_filter, parameters)
);

create index ix_evaluation_id
on evaluation (id);

create index idx_evaluation_geo
on evaluation using gist (geo);

create table datum
(
id serial
Expand All @@ -92,17 +80,13 @@ create table datum
references dataset,
uid varchar not null,
meta jsonb,
geo geography(Geometry, 4326),
created_at timestamp not null,
unique (dataset_id, uid)
);

create index ix_datum_id
on datum (id);

create index idx_datum_geo
on datum using gist (geo);

create table metric
(
id serial
Expand Down Expand Up @@ -144,7 +128,6 @@ create table annotation
references model,
task_type varchar not null,
meta jsonb,
geo geography(Geometry, 4326),
created_at timestamp not null,
box geometry(Polygon),
polygon geometry(Polygon),
Expand All @@ -167,9 +150,6 @@ create index ix_annotation_id
create index idx_annotation_polygon
on annotation using gist (polygon);

create index idx_annotation_geo
on annotation using gist (geo);

create table groundtruth
(
id serial
Expand Down

0 comments on commit 39169cf

Please sign in to comment.