From 633540d86e964b0fbefc969189b1d0b8f0aa8338 Mon Sep 17 00:00:00 2001 From: Googlefan Date: Sat, 28 Oct 2023 14:45:41 +0900 Subject: [PATCH] fix: migrat --- ...7560ec12cb442beb51fb50060edc12c9e407e.json | 15 ++++++++++++ ...dec919f079e1139eb5280d1969eb88e070577.json | 14 ----------- ...dcbb917cd7a096c099c57c49a626cbcd4523a.json | 15 ++++++++++++ ...85cd60257dc493007f8e7655127c70e7f259.json} | 6 ++--- ...8ac262defad205cd865eec178c664fdeb93f0.json | 23 +++++++++++++++++++ 5 files changed, 56 insertions(+), 17 deletions(-) create mode 100644 bin/bot/.sqlx/query-0acd4e62bf09b03b4f478c084a87560ec12cb442beb51fb50060edc12c9e407e.json delete mode 100644 bin/bot/.sqlx/query-6a7005f63cadd9f95a3fc1bb012dec919f079e1139eb5280d1969eb88e070577.json create mode 100644 bin/bot/.sqlx/query-747d9fbdd4c3a295f498d66b09fdcbb917cd7a096c099c57c49a626cbcd4523a.json rename bin/bot/.sqlx/{query-274e62268de550709b20f57e2f22d7cdc8a94a9c4fe90e0f5740a28f118423a7.json => query-a308fcb6b0e0aaea8d3c40c0a4d385cd60257dc493007f8e7655127c70e7f259.json} (61%) create mode 100644 bin/bot/.sqlx/query-e95f90a33157c2b3387e430dc598ac262defad205cd865eec178c664fdeb93f0.json diff --git a/bin/bot/.sqlx/query-0acd4e62bf09b03b4f478c084a87560ec12cb442beb51fb50060edc12c9e407e.json b/bin/bot/.sqlx/query-0acd4e62bf09b03b4f478c084a87560ec12cb442beb51fb50060edc12c9e407e.json new file mode 100644 index 0000000..0519ce3 --- /dev/null +++ b/bin/bot/.sqlx/query-0acd4e62bf09b03b4f478c084a87560ec12cb442beb51fb50060edc12c9e407e.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "DELETE FROM linker WHERE discord_id = $1 OR old_discord_id = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Float4" + ] + }, + "nullable": [] + }, + "hash": "0acd4e62bf09b03b4f478c084a87560ec12cb442beb51fb50060edc12c9e407e" +} diff --git a/bin/bot/.sqlx/query-6a7005f63cadd9f95a3fc1bb012dec919f079e1139eb5280d1969eb88e070577.json b/bin/bot/.sqlx/query-6a7005f63cadd9f95a3fc1bb012dec919f079e1139eb5280d1969eb88e070577.json deleted file mode 100644 index dfe8843..0000000 --- a/bin/bot/.sqlx/query-6a7005f63cadd9f95a3fc1bb012dec919f079e1139eb5280d1969eb88e070577.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "DELETE FROM linker WHERE discord_id = $1", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Text" - ] - }, - "nullable": [] - }, - "hash": "6a7005f63cadd9f95a3fc1bb012dec919f079e1139eb5280d1969eb88e070577" -} diff --git a/bin/bot/.sqlx/query-747d9fbdd4c3a295f498d66b09fdcbb917cd7a096c099c57c49a626cbcd4523a.json b/bin/bot/.sqlx/query-747d9fbdd4c3a295f498d66b09fdcbb917cd7a096c099c57c49a626cbcd4523a.json new file mode 100644 index 0000000..ae731c2 --- /dev/null +++ b/bin/bot/.sqlx/query-747d9fbdd4c3a295f498d66b09fdcbb917cd7a096c099c57c49a626cbcd4523a.json @@ -0,0 +1,15 @@ +{ + "db_name": "PostgreSQL", + "query": "UPDATE linker SET discord_id = $1, old_discord_id = NULL WHERE genshin_id = $2", + "describe": { + "columns": [], + "parameters": { + "Left": [ + "Text", + "Text" + ] + }, + "nullable": [] + }, + "hash": "747d9fbdd4c3a295f498d66b09fdcbb917cd7a096c099c57c49a626cbcd4523a" +} diff --git a/bin/bot/.sqlx/query-274e62268de550709b20f57e2f22d7cdc8a94a9c4fe90e0f5740a28f118423a7.json b/bin/bot/.sqlx/query-a308fcb6b0e0aaea8d3c40c0a4d385cd60257dc493007f8e7655127c70e7f259.json similarity index 61% rename from bin/bot/.sqlx/query-274e62268de550709b20f57e2f22d7cdc8a94a9c4fe90e0f5740a28f118423a7.json rename to bin/bot/.sqlx/query-a308fcb6b0e0aaea8d3c40c0a4d385cd60257dc493007f8e7655127c70e7f259.json index b6b6d7b..17a5f5f 100644 --- a/bin/bot/.sqlx/query-274e62268de550709b20f57e2f22d7cdc8a94a9c4fe90e0f5740a28f118423a7.json +++ b/bin/bot/.sqlx/query-a308fcb6b0e0aaea8d3c40c0a4d385cd60257dc493007f8e7655127c70e7f259.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "SELECT genshin_id FROM linker WHERE discord_id = $1", + "query": "SELECT genshin_id FROM linker WHERE old_discord_id = $1", "describe": { "columns": [ { @@ -11,12 +11,12 @@ ], "parameters": { "Left": [ - "Text" + "Float4" ] }, "nullable": [ false ] }, - "hash": "274e62268de550709b20f57e2f22d7cdc8a94a9c4fe90e0f5740a28f118423a7" + "hash": "a308fcb6b0e0aaea8d3c40c0a4d385cd60257dc493007f8e7655127c70e7f259" } diff --git a/bin/bot/.sqlx/query-e95f90a33157c2b3387e430dc598ac262defad205cd865eec178c664fdeb93f0.json b/bin/bot/.sqlx/query-e95f90a33157c2b3387e430dc598ac262defad205cd865eec178c664fdeb93f0.json new file mode 100644 index 0000000..421d3da --- /dev/null +++ b/bin/bot/.sqlx/query-e95f90a33157c2b3387e430dc598ac262defad205cd865eec178c664fdeb93f0.json @@ -0,0 +1,23 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT genshin_id FROM linker WHERE discord_id = $1 OR old_discord_id = $2", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "genshin_id", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Text", + "Float4" + ] + }, + "nullable": [ + false + ] + }, + "hash": "e95f90a33157c2b3387e430dc598ac262defad205cd865eec178c664fdeb93f0" +}