Skip to content

Commit

Permalink
Update 00002_addSenderTimeStamp.up.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
s1fr0 authored Feb 3, 2022
1 parent 40a40fa commit 54e4b8f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ DROP TABLE Message;

CREATE TABLE IF NOT EXISTS Message(
id BLOB PRIMARY KEY,
receiverTimestamp INTEGER NOT NULL,
receiverTimestamp REAL NOT NULL,
contentTopic BLOB NOT NULL,
pubsubTopic BLOB NOT NULL,
payload BLOB,
version INTEGER NOT NULL,
senderTimestamp INTEGER NOT NULL
senderTimestamp REAL NOT NULL
) WITHOUT ROWID;


INSERT INTO Message (id, receiverTimestamp, contentTopic, pubsubTopic, payload, version, senderTimestamp)
SELECT id, timestamp, contentTopic, pubsubTopic, payload, version, 0
FROM Message_backup;

DROP TABLE Message_backup;
DROP TABLE Message_backup;

0 comments on commit 54e4b8f

Please sign in to comment.