Skip to content

Commit

Permalink
use fake timestamp types by convention and add active/inactive/soft d…
Browse files Browse the repository at this point in the history
…elete bool
  • Loading branch information
milt committed Jul 24, 2023
1 parent af90e64 commit cd3d0c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/db/sqlite/lrsql/sqlite/sql/ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,9 @@ ALTER TABLE activity_profile_document RENAME COLUMN last_modified_tmp TO last_mo
CREATE TABLE IF NOT EXISTS reaction (
id TEXT NOT NULL PRIMARY KEY, -- uuid
ruleset BLOB NOT NULL, -- serialized reaction spec
created TEXT NOT NULL,
modified TEXT NOT NULL
created TIMESTAMP NOT NULL, -- timestamp
modified TIMESTAMP NOT NULL, -- timestamp
active INTEGER -- true/false/null - active/inactive/soft delete
)

-- :name query-xapi-statement-reaction-id-exists
Expand Down

0 comments on commit cd3d0c1

Please sign in to comment.