Skip to content

Commit

Permalink
Add plot_paths columns to lvmopsdb.ln2_fill
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Sep 17, 2024
1 parent 56f590c commit 5379c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions python/sdssdb/peewee/lvmdb/lvmopsdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ class LN2Fill(LVMOpsBase):
json_file = TextField()
configuration = JSONField()
log_data = JSONField()
plot_paths = JSONField()

class Meta:
table_name = 'ln2_fill'
8 changes: 4 additions & 4 deletions schema/lvmdb/lvmopsdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ CREATE TABLE lvmopsdb.ln2_fill (
log_file TEXT,
json_file TEXT,
configuration JSONB,
log_data JSONB
log_data JSONB,
plot_paths JSONB
);

-- constraints
Expand Down Expand Up @@ -394,12 +395,11 @@ lvmopsdb.weather,
lvmopsdb.observation_to_standard,
lvmopsdb.observation_to_sky,
lvmopsdb.exposure,
lvmopsdb.completion_status to sdss_user;
lvmopsdb.completion_status,
lvmopsdb.ln2_fill to sdss_user;

grant select on all tables in schema lvmopsdb to sdss_user;
grant usage on all sequences in schema lvmopsdb to sdss_user;

grant insert on TABLE lvmopsdb.ln2_fill to sdss_user;

alter table lvmopsdb.sky add column darkest_wham_flag bool;
alter table lvmopsdb.sky add column valid bool;

0 comments on commit 5379c96

Please sign in to comment.