Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ozym committed Nov 22, 2024
1 parent cc96aba commit 3dfa73e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions meta/sqlite/rework.go
Original file line number Diff line number Diff line change
Expand Up @@ -1006,13 +1006,13 @@ CREATE TABLE IF NOT EXISTS sensor (
asset_id INTEGER NOT NULL,
site_id INTEGER NOT NULL,
method_id INTEGER NOT NULL,
azimuth REAL NOT NULL,
dip REAL NOT NULL,
depth REAL NOT NULL,
north REAL NOT NULL,
east REAL NOT NULL,
scale_factor REAL NOT NULL,
scale_bias REAL NOT NULL,
azimuth REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
dip REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
depth REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
north REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
east REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
scale_factor REAL NOT NULL ON CONFLICT REPLACE DEFAULT 1.0,
scale_bias REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
start_date DATETIME NOT NULL CHECK (start_date IS strftime('%Y-%m-%dT%H:%M:%SZ', start_date)),
end_date DATETIME NOT NULL CHECK (end_date IS strftime('%Y-%m-%dT%H:%M:%SZ', end_date)),
FOREIGN KEY (asset_id) REFERENCES asset (asset_id),
Expand Down Expand Up @@ -1050,9 +1050,9 @@ CREATE TABLE IF NOT EXISTS recorder (
model_id INTEGER NOT NULL,
site_id INTEGER NOT NULL,
method_id INTEGER NOT NULL,
azimuth REAL NOT NULL,
dip REAL NOT NULL,
depth REAL NOT NULL,
azimuth REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
dip REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
depth REAL NOT NULL ON CONFLICT REPLACE DEFAULT 0.0,
start_date DATETIME NOT NULL CHECK (start_date IS strftime('%Y-%m-%dT%H:%M:%SZ', start_date)),
end_date DATETIME NOT NULL CHECK (end_date IS strftime('%Y-%m-%dT%H:%M:%SZ', end_date)),
FOREIGN KEY (asset_id) REFERENCES asset (asset_id),
Expand Down

0 comments on commit 3dfa73e

Please sign in to comment.