From 314dd37ce8ad97ea4a600350501e8d2269e7532d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 13 Feb 2026 09:25:08 +0700 Subject: [PATCH] codegen db --- ...8a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e.json | 12 ++++++++++++ ...c644324c6a873791ad1ef0d6d43f77ad2569accec3a4.json | 12 ------------ _docs/dev_setup_server.md | 7 +++++++ 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 .sqlx/query-9cd3a581f6857e5c1db68a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e.json delete mode 100644 .sqlx/query-b8795466b4251d869bdcc644324c6a873791ad1ef0d6d43f77ad2569accec3a4.json diff --git a/.sqlx/query-9cd3a581f6857e5c1db68a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e.json b/.sqlx/query-9cd3a581f6857e5c1db68a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e.json new file mode 100644 index 0000000000..fc002674b9 --- /dev/null +++ b/.sqlx/query-9cd3a581f6857e5c1db68a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e.json @@ -0,0 +1,12 @@ +{ + "db_name": "MySQL", + "query": "\nUPDATE users\nSET\n email_confirmed = true,\n email_is_synthetic = false,\n is_without_password = false,\n is_temporary = false,\n password_hash = ?,\n ip_address_last_update = ?,\n password_version = password_version + 1,\n version = version + 1\nWHERE\n token = ?\nLIMIT 1\n ", + "describe": { + "columns": [], + "parameters": { + "Right": 3 + }, + "nullable": [] + }, + "hash": "9cd3a581f6857e5c1db68a103f47eba9714ee4b5eefc8ba02fc49a4b3a19310e" +} diff --git a/.sqlx/query-b8795466b4251d869bdcc644324c6a873791ad1ef0d6d43f77ad2569accec3a4.json b/.sqlx/query-b8795466b4251d869bdcc644324c6a873791ad1ef0d6d43f77ad2569accec3a4.json deleted file mode 100644 index b8edc43dfd..0000000000 --- a/.sqlx/query-b8795466b4251d869bdcc644324c6a873791ad1ef0d6d43f77ad2569accec3a4.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "db_name": "MySQL", - "query": "\nUPDATE users\nSET\n email_confirmed = true,\n password_hash = ?,\n ip_address_last_update = ?,\n is_without_password = false,\n password_version = password_version + 1,\n version = version + 1\nWHERE\n token = ?\nLIMIT 1\n ", - "describe": { - "columns": [], - "parameters": { - "Right": 3 - }, - "nullable": [] - }, - "hash": "b8795466b4251d869bdcc644324c6a873791ad1ef0d6d43f77ad2569accec3a4" -} diff --git a/_docs/dev_setup_server.md b/_docs/dev_setup_server.md index 6cb4070411..8664b3b7db 100644 --- a/_docs/dev_setup_server.md +++ b/_docs/dev_setup_server.md @@ -86,6 +86,13 @@ diesel migration run You might get a scary message about `"Encountered unknown type for Mysql: enum"` -- you can safely ignore this error if you see it in isolation. It doesn't impact the migrations whatsoever. +Finally, you'll need the sqlx CLI tool to run codegen. +You likely won't need this now, but if you change any queries, this will be necessary: + +```bash +cargo install sqlx-cli --features rustls,mysql,sqlite +``` + ### Install Redis (Mac) ```bash