Files
AstralRinth/apps/labrinth/.sqlx/query-861109ec01101bac6935903fabd619ce98aa96afd9ff43c415212256e4423890.json
aecsocket 79c2633011 Fix slug/project ID collisions (#4844)
* wip: tool to create project with id

* fix

* fix id/slug collision for orgs
2025-12-03 00:30:18 +00:00

23 lines
665 B
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT EXISTS(\n SELECT 1 FROM organizations\n WHERE\n LOWER(slug) = LOWER($1)\n OR text_id_lower = LOWER($1)\n )\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "exists",
"type_info": "Bool"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
null
]
},
"hash": "861109ec01101bac6935903fabd619ce98aa96afd9ff43c415212256e4423890"
}