diff --git a/src/db/migrations/007_metadata_thalweg.sql b/src/db/migrations/007_metadata_thalweg.sql new file mode 100644 index 00000000..cabf7b55 --- /dev/null +++ b/src/db/migrations/007_metadata_thalweg.sql @@ -0,0 +1,3 @@ +-- Description: add field metadata to the thalweg +-- Date: 2023-09-07 +ALTER TABLE thalwegs ADD COLUMN metadata TEXT; diff --git a/src/db/schema.sql b/src/db/schema.sql index 05d0e5e2..dcc2156d 100644 --- a/src/db/schema.sql +++ b/src/db/schema.sql @@ -11,6 +11,7 @@ INSERT INTO migrations (file_name) VALUES ('003_metrics_update.sql'); INSERT INTO migrations (file_name) VALUES ('004_metadata.sql'); INSERT INTO migrations (file_name) VALUES ('005_raster_symbology.sql'); INSERT INTO migrations (file_name) VALUES ('006_layer_metadata.sql'); +INSERT INTO migrations (file_name) VALUES ('007_metadata_thalweg.sql'); -- LOOKUP TABLES CREATE TABLE protocols ( @@ -578,6 +579,7 @@ INSERT INTO lkp_thalweg_types (id, name) VALUES (2, 'Non-Primary'); ALTER TABLE thalwegs ADD COLUMN event_id INTEGER REFERENCES events(id) ON DELETE CASCADE; ALTER TABLE thalwegs ADD COLUMN type_id INTEGER REFERENCES lkp_thalweg_types(id); ALTER TABLE thalwegs ADD description TEXT; +ALTER TABLE thalwegs ADD COLUMN metadata TEXT; -- active extents CREATE TABLE lkp_active_extent_types (