From 00adea6007e4b0044b82769cf0be42fe76dba0bb Mon Sep 17 00:00:00 2001 From: G <28568419+s1fr0@users.noreply.github.com> Date: Fri, 4 Feb 2022 00:30:41 +0100 Subject: [PATCH] Delete 00003_addTimestampsToInts.up.sql --- .../message/00003_addTimestampsToInts.up.sql | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 waku/v2/node/storage/migration/migrations_scripts/message/00003_addTimestampsToInts.up.sql diff --git a/waku/v2/node/storage/migration/migrations_scripts/message/00003_addTimestampsToInts.up.sql b/waku/v2/node/storage/migration/migrations_scripts/message/00003_addTimestampsToInts.up.sql deleted file mode 100644 index 67bd54c908..0000000000 --- a/waku/v2/node/storage/migration/migrations_scripts/message/00003_addTimestampsToInts.up.sql +++ /dev/null @@ -1,31 +0,0 @@ -CREATE TABLE IF NOT EXISTS Message_backup ( - id BLOB PRIMARY KEY, - receiverTimestamp REAL NOT NULL, - contentTopic BLOB NOT NULL, - pubsubTopic BLOB NOT NULL, - payload BLOB, - version INTEGER NOT NULL, - senderTimestamp REAL NOT NULL - ) WITHOUT ROWID; - - -INSERT INTO Message_backup SELECT id, receiverTimestamp, contentTopic, pubsubTopic, payload, version, senderTimestamp FROM Message; - -DROP TABLE Message; - -CREATE TABLE IF NOT EXISTS Message ( - id BLOB PRIMARY KEY, - receiverTimestamp INTEGER NOT NULL, - contentTopic BLOB NOT NULL, - pubsubTopic BLOB NOT NULL, - payload BLOB, - version INTEGER NOT NULL, - senderTimestamp INTEGER NOT NULL - ) WITHOUT ROWID; - - -INSERT INTO Message (id, receiverTimestamp, contentTopic, pubsubTopic, payload, version, senderTimestamp) - SELECT id, FLOOR(receiverTimestamp*1000), contentTopic, pubsubTopic, payload, version, FLOOR(senderTimestamp*1000) - FROM Message_backup; - -DROP TABLE Message_backup;