[ee] fix: apply SCIM filters to deactivated users, add name column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-03-24 17:13:11 +01:00
co-authored by Claude Opus 4.6
parent a2cd537f8b
commit 8baba58f01
4 changed files with 16 additions and 15 deletions
@@ -0,0 +1,14 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO scim_deactivated_user (email, name) SELECT email, name FROM password WHERE email = $1 ON CONFLICT (email) DO NOTHING",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text"
]
},
"nullable": []
},
"hash": "9a1e9bc6093e21ca2dcc135a0b528988bc6335c5340c0a28882e186e0fa23539"
}
@@ -1,14 +0,0 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO scim_deactivated_user (email) VALUES ($1) ON CONFLICT (email) DO NOTHING",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Varchar"
]
},
"nullable": []
},
"hash": "9c3b928e73f4ed8ce8c75f0defb1d0d40c989bdce132736cfdc5a3c96f600091"
}
+1 -1
View File
@@ -1 +1 @@
70df2da1483760297f138277a58a708416604008
ac0ed036d1ff3ce8535d3dd1c6c8358b2fc775ac
@@ -1,4 +1,5 @@
CREATE TABLE scim_deactivated_user (
email VARCHAR(255) PRIMARY KEY,
name VARCHAR(255),
deactivated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);