From 3254d8f2881f1d9cba111aa088956f422c8feece Mon Sep 17 00:00:00 2001 From: Muzahid Date: Tue, 18 Jan 2022 20:13:52 +0530 Subject: [PATCH] Add test sql scripts for sqlthread --- src/tests/sql/init_version_10.sql | 1 + src/tests/sql/init_version_2.sql | 1 + src/tests/sql/init_version_3.sql | 1 + src/tests/sql/init_version_4.sql | 1 + src/tests/sql/init_version_5.sql | 1 + src/tests/sql/init_version_6.sql | 1 + src/tests/sql/init_version_7.sql | 3 +++ src/tests/sql/init_version_8.sql | 1 + src/tests/sql/init_version_9.sql | 2 ++ 9 files changed, 12 insertions(+) create mode 100644 src/tests/sql/init_version_10.sql create mode 100644 src/tests/sql/init_version_2.sql create mode 100644 src/tests/sql/init_version_3.sql create mode 100644 src/tests/sql/init_version_4.sql create mode 100644 src/tests/sql/init_version_5.sql create mode 100644 src/tests/sql/init_version_6.sql create mode 100644 src/tests/sql/init_version_7.sql create mode 100644 src/tests/sql/init_version_8.sql create mode 100644 src/tests/sql/init_version_9.sql diff --git a/src/tests/sql/init_version_10.sql b/src/tests/sql/init_version_10.sql new file mode 100644 index 00000000..b1764e76 --- /dev/null +++ b/src/tests/sql/init_version_10.sql @@ -0,0 +1 @@ +INSERT INTO `addressbook` VALUES ('test', "BM-2cWzMnxjJ7yRP3nLEWUV5LisTZyREWSxYz"), ('testone', "BM-2cWzMnxjJ7yRP3nLEWUV5LisTZyREWSxYz"); diff --git a/src/tests/sql/init_version_2.sql b/src/tests/sql/init_version_2.sql new file mode 100644 index 00000000..133284ec --- /dev/null +++ b/src/tests/sql/init_version_2.sql @@ -0,0 +1 @@ +INSERT INTO `inventory` VALUES ('hash', 1, 1,1, 1,'test'); diff --git a/src/tests/sql/init_version_3.sql b/src/tests/sql/init_version_3.sql new file mode 100644 index 00000000..875d859d --- /dev/null +++ b/src/tests/sql/init_version_3.sql @@ -0,0 +1 @@ +INSERT INTO `settings` VALUES ('version','3'); diff --git a/src/tests/sql/init_version_4.sql b/src/tests/sql/init_version_4.sql new file mode 100644 index 00000000..ea3f1768 --- /dev/null +++ b/src/tests/sql/init_version_4.sql @@ -0,0 +1 @@ +INSERT INTO `pubkeys` VALUES ('hash', 1, 1, 1,'test'); diff --git a/src/tests/sql/init_version_5.sql b/src/tests/sql/init_version_5.sql new file mode 100644 index 00000000..b894c038 --- /dev/null +++ b/src/tests/sql/init_version_5.sql @@ -0,0 +1 @@ +INSERT INTO `objectprocessorqueue` VALUES ('hash', 1); diff --git a/src/tests/sql/init_version_6.sql b/src/tests/sql/init_version_6.sql new file mode 100644 index 00000000..7cd30571 --- /dev/null +++ b/src/tests/sql/init_version_6.sql @@ -0,0 +1 @@ +INSERT INTO `inventory` VALUES ('hash', 1, 1, 1,'test','test'); diff --git a/src/tests/sql/init_version_7.sql b/src/tests/sql/init_version_7.sql new file mode 100644 index 00000000..bd87f8d8 --- /dev/null +++ b/src/tests/sql/init_version_7.sql @@ -0,0 +1,3 @@ +INSERT INTO `sent` VALUES +(1,'BM-2cWzMnxjJ7yRP3nLEWUV5LisTZyREWSxYz',1,'BM-2cWzSnwjJ7yRP3nLEWUV5LisTZyREWSzUK','Test1 subject','message test 1','ackdata',1638176409,1638176409,1638176423,'msgqueued',1,'testfolder',1,2), +(2,'BM-2cWzMnxjJ7yRP3nLEWUV5LisTZyREWSxYz',1,'BM-2cWzSnwjJ7yRP3nLEWUV5LisTZyREWSzUK','Test2 subject','message test 2','ackdata',1638176423,1638176423,1638176423,'msgqueued',1,'testfolder',1,2); diff --git a/src/tests/sql/init_version_8.sql b/src/tests/sql/init_version_8.sql new file mode 100644 index 00000000..9d9b6f3a --- /dev/null +++ b/src/tests/sql/init_version_8.sql @@ -0,0 +1 @@ +INSERT INTO `inbox` VALUES (1, "poland", "malasia", "test", "yes", "test message", "folder", 1, 1, 1); diff --git a/src/tests/sql/init_version_9.sql b/src/tests/sql/init_version_9.sql new file mode 100644 index 00000000..764634d2 --- /dev/null +++ b/src/tests/sql/init_version_9.sql @@ -0,0 +1,2 @@ +INSERT INTO `sent` VALUES +(1,'BM-2cWzMnxjJ7yRP3nLEWUV5LisTZyREWSxYz',1,'BM-2cWzSnwjJ7yRP3nLEWUV5LisTZyREWSzUK','Test1 subject','message test 1','ackdata',1638176409,1638176409,1638176423,'msgqueued',1,'testfolder',1,2);