diff --git a/migrations/sql/00000001_initialize_schema.down.sql b/migrations/sql/00000001_initialize_schema.down.sql index df6dc450a..80d44b812 100644 --- a/migrations/sql/00000001_initialize_schema.down.sql +++ b/migrations/sql/00000001_initialize_schema.down.sql @@ -1,19 +1,19 @@ -drop table metric; +drop table metric cascade; -drop table confusion_matrix; +drop table confusion_matrix cascade; -drop table evaluation; +drop table evaluation cascade; -drop table groundtruth; +drop table groundtruth cascade; -drop table prediction; +drop table prediction cascade; -drop table label; +drop table label cascade; -drop table annotation; +drop table annotation cascade; -drop table model; +drop table model cascade; -drop table datum; +drop table datum cascade; -drop table dataset; +drop table dataset cascade; diff --git a/migrations/sql/00000001_initialize_schema.up.sql b/migrations/sql/00000001_initialize_schema.up.sql index 41467f253..0e5fde1e6 100644 --- a/migrations/sql/00000001_initialize_schema.up.sql +++ b/migrations/sql/00000001_initialize_schema.up.sql @@ -1,6 +1,17 @@ create extension if not exists "postgis"; create extension if not exists "postgis_raster"; +drop table if exists metric cascade; +drop table if exists confusion_matrix cascade; +drop table if exists evaluation cascade; +drop table if exists groundtruth cascade; +drop table if exists prediction cascade; +drop table if exists label cascade; +drop table if exists annotation cascade; +drop table if exists model cascade; +drop table if exists datum cascade; +drop table if exists dataset cascade; + create table label ( id serial @@ -189,4 +200,3 @@ create table prediction create index ix_prediction_id on prediction (id); -