summaryrefslogtreecommitdiff
path: root/.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-18 23:25:21 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-18 23:27:21 -0400
commitd3fbecc57b5d6fa3223b945a45fe21eb78ffd49b (patch)
treec62a5cb6636d5ef942c65e369e07b77fda42784c /.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json
parent777e4281431a036eb663b5eec70f347b7425737d (diff)
Switch to blanking tombstoned data with null, not empty string.
This accomplishes two things: * It removes the need for an additional `channel_name_reservation` table, since `channel.name` now only contains non-null values for active channels, and * It nicely dovetails with the idea that `null` means an unknown value in SQL-land.
Diffstat (limited to '.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json')
-rw-r--r--.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json b/.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json
new file mode 100644
index 0000000..01bb071
--- /dev/null
+++ b/.sqlx/query-c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87.json
@@ -0,0 +1,20 @@
+{
+ "db_name": "SQLite",
+ "query": "\n update channel\n set name = null\n where id = $1\n returning 1 as \"updated: bool\"\n ",
+ "describe": {
+ "columns": [
+ {
+ "name": "updated: bool",
+ "ordinal": 0,
+ "type_info": "Null"
+ }
+ ],
+ "parameters": {
+ "Right": 1
+ },
+ "nullable": [
+ null
+ ]
+ },
+ "hash": "c83af5b462071927d05664bb69067dd15b2e7602aafcfaf04aa1f41e118a1f87"
+}