-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ecocounter discontinuities table (#831)
* first stab at a discontinuities table * do REFERENCE correctly * fix other syntax errors where is my brain today * add primary key to allow manual editing * remove flow_id reference, add table comment * remove outdated comment * add some preliminary documentation * re-wording
- Loading branch information
1 parent
af2c69d
commit 890d214
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE TABLE ecocounter.discontinuities ( | ||
uid serial PRIMARY KEY, | ||
site_id numeric NOT NULL REFERENCES ecocounter.sites (site_id), | ||
-- moment the change takes place | ||
break timestamp NOT NULL, | ||
-- approximate bounds if the precise time is not known | ||
give_or_take interval, | ||
-- required description of what changed - be verbose! | ||
notes text NOT NULL | ||
); | ||
|
||
ALTER TABLE ecocounter.discontinuities OWNER TO ecocounter_admins; | ||
|
||
GRANT SELECT ON ecocounter.discontinuities TO bdit_humans; | ||
|
||
COMMENT ON TABLE ecocounter.discontinuities | ||
IS 'Moments in time when data collection methods changed in such a way that we would expect clear pre- and post-change paradigms that may not be intercomparable.'; |