Skip to content

Commit 5c2a229

Browse files
committed
text for lvmdb.disabled
1 parent 94027cc commit 5c2a229

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python/sdssdb/peewee/lvmdb/lvmopsdb.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class Disabled(LVMOpsBase):
7272
field='tile_id',
7373
model=Tile, backref='disabled')
7474
time_stamp = DateTimeField(default=datetime.datetime.now())
75+
note = TextField(null=True)
7576

7677
class Meta:
7778
table_name = 'disabled'

schema/lvmdb/lvmopsdb.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ ADD COLUMN disabled BOOLEAN DEFAULT FALSE;
3232
CREATE TABLE lvmopsdb.disabled (
3333
pk SERIAL PRIMARY KEY NOT NULL,
3434
tile_id INTEGER,
35-
time_stamp TIMESTAMP);
35+
time_stamp TIMESTAMP,
36+
note TEXT);
3637

3738
CREATE TABLE lvmopsdb.version (
3839
pk SERIAL PRIMARY KEY NOT NULL,

0 commit comments

Comments
 (0)