You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitqueryRunner.query(`CREATE TABLE "orphans" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "block_height" bigint NOT NULL, "nonce" integer NOT NULL, "position" integer NOT NULL, "content" text NOT NULL, "mentions" text, "sender_address" text)`)
6
+
awaitqueryRunner.query(`CREATE TABLE "orphans" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "block_height" bigint NOT NULL, "nonce" integer NOT NULL, "position" integer NOT NULL, "content" text NOT NULL, "mentions" text, "tags" text, "sender_address" text)`)
7
7
awaitqueryRunner.query(`CREATE INDEX "IDX_4149b5d28a9d574cb35ac0b880" ON "orphans" ("created_at") `)
8
8
awaitqueryRunner.query(`CREATE INDEX "IDX_08f49bf2cacd532e2e10eb5779" ON "orphans" ("block_height") `)
9
9
awaitqueryRunner.query(`CREATE INDEX "IDX_f82c6e777d47e511b97334fe45" ON "orphans" ("nonce") `)
@@ -12,13 +12,13 @@ export class Init1560016992491 implements MigrationInterface {
12
12
awaitqueryRunner.query(`CREATE TABLE "users" ("address" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "birth_block" bigint NOT NULL, "name" text NOT NULL, "bio" text, "avatar_link" text)`)
13
13
awaitqueryRunner.query(`CREATE INDEX "IDX_1b4832240d11291453c40c3281" ON "users" ("birth_block") `)
14
14
awaitqueryRunner.query(`CREATE TABLE "tags" ("name" text PRIMARY KEY NOT NULL)`)
15
-
awaitqueryRunner.query(`CREATE TABLE "borks" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "deleted_at" datetime, "type" text NOT NULL, "nonce" integer, "position" integer, "content" text, "parent_txid" text, "sender_address" text, "recipient_address" text)`)
15
+
awaitqueryRunner.query(`CREATE TABLE "borks" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "deleted_at" datetime, "type" text NOT NULL, "nonce" integer, "position" integer, "content" text, "sender_address" text, "parent_txid" text, "recipient_address" text)`)
16
16
awaitqueryRunner.query(`CREATE INDEX "IDX_225c8d7a66d2e44dc46bff2b89" ON "borks" ("created_at") `)
17
17
awaitqueryRunner.query(`CREATE INDEX "IDX_b556e61d2d0907016c8ee58465" ON "borks" ("type") `)
18
18
awaitqueryRunner.query(`CREATE INDEX "IDX_000418d2fa57716c62e77f7cb9" ON "borks" ("nonce") `)
19
19
awaitqueryRunner.query(`CREATE INDEX "IDX_f1d79da8758a51316b819cc38a" ON "borks" ("position") `)
20
-
awaitqueryRunner.query(`CREATE INDEX "IDX_2873c3b06729583654b6b70fe9" ON "borks" ("parent_txid") `)
21
20
awaitqueryRunner.query(`CREATE INDEX "IDX_6d695ba01f87a7cefa3617a85c" ON "borks" ("sender_address") `)
21
+
awaitqueryRunner.query(`CREATE INDEX "IDX_2873c3b06729583654b6b70fe9" ON "borks" ("parent_txid") `)
22
22
awaitqueryRunner.query(`CREATE INDEX "IDX_e4d51394b5757b0d74482ab356" ON "borks" ("recipient_address") `)
23
23
awaitqueryRunner.query(`CREATE TABLE "tx_blocks" ("height" bigint PRIMARY KEY NOT NULL, "hash" text NOT NULL, CONSTRAINT "UQ_d16046b3c22e0ac37b9367ba8d4" UNIQUE ("hash"))`)
24
24
awaitqueryRunner.query(`CREATE INDEX "IDX_d16046b3c22e0ac37b9367ba8d" ON "tx_blocks" ("hash") `)
@@ -32,8 +32,8 @@ export class Init1560016992491 implements MigrationInterface {
32
32
awaitqueryRunner.query(`DROP INDEX "IDX_f82c6e777d47e511b97334fe45"`)
33
33
awaitqueryRunner.query(`DROP INDEX "IDX_2ccda451e12bc68c5af8d3c9b4"`)
34
34
awaitqueryRunner.query(`DROP INDEX "IDX_d8dc419b6ee03babf580a7b3c3"`)
35
-
awaitqueryRunner.query(`CREATE TABLE "temporary_orphans" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "block_height" bigint NOT NULL, "nonce" integer NOT NULL, "position" integer NOT NULL, "content" text NOT NULL, "mentions" text, "sender_address" text, CONSTRAINT "FK_d8dc419b6ee03babf580a7b3c30" FOREIGN KEY ("sender_address") REFERENCES "users" ("address"))`)
awaitqueryRunner.query(`CREATE INDEX "IDX_e4d51394b5757b0d74482ab356" ON "borks" ("recipient_address") `)
93
-
awaitqueryRunner.query(`CREATE INDEX "IDX_6d695ba01f87a7cefa3617a85c" ON "borks" ("sender_address") `)
94
93
awaitqueryRunner.query(`CREATE INDEX "IDX_2873c3b06729583654b6b70fe9" ON "borks" ("parent_txid") `)
94
+
awaitqueryRunner.query(`CREATE INDEX "IDX_6d695ba01f87a7cefa3617a85c" ON "borks" ("sender_address") `)
95
95
awaitqueryRunner.query(`CREATE INDEX "IDX_f1d79da8758a51316b819cc38a" ON "borks" ("position") `)
96
96
awaitqueryRunner.query(`CREATE INDEX "IDX_000418d2fa57716c62e77f7cb9" ON "borks" ("nonce") `)
97
97
awaitqueryRunner.query(`CREATE INDEX "IDX_b556e61d2d0907016c8ee58465" ON "borks" ("type") `)
@@ -102,8 +102,8 @@ export class Init1560016992491 implements MigrationInterface {
102
102
awaitqueryRunner.query(`DROP INDEX "IDX_08f49bf2cacd532e2e10eb5779"`)
103
103
awaitqueryRunner.query(`DROP INDEX "IDX_4149b5d28a9d574cb35ac0b880"`)
104
104
awaitqueryRunner.query(`ALTER TABLE "orphans" RENAME TO "temporary_orphans"`)
105
-
awaitqueryRunner.query(`CREATE TABLE "orphans" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "block_height" bigint NOT NULL, "nonce" integer NOT NULL, "position" integer NOT NULL, "content" text NOT NULL, "mentions" text, "sender_address" text)`)
awaitqueryRunner.query(`CREATE TABLE "orphans" ("txid" text PRIMARY KEY NOT NULL, "created_at" datetime NOT NULL, "block_height" bigint NOT NULL, "nonce" integer NOT NULL, "position" integer NOT NULL, "content" text NOT NULL, "mentions" text, "tags" text, "sender_address" text)`)
0 commit comments