Skip to content

Commit

Permalink
thalwegs missing metadata field
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead committed Sep 7, 2023
1 parent f4ef2a2 commit 1082b7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/db/migrations/007_metadata_thalweg.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Description: add field metadata to the thalweg
-- Date: 2023-09-07
ALTER TABLE thalwegs ADD COLUMN metadata TEXT;
2 changes: 2 additions & 0 deletions src/db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 1082b7a

Please sign in to comment.