first commit
This commit is contained in:
18
calcom/scripts/delete-empty-google-credentials.sql
Normal file
18
calcom/scripts/delete-empty-google-credentials.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- Count how many empty google credentials are in the database
|
||||
SELECT
|
||||
count(*)
|
||||
FROM
|
||||
"Credential" c
|
||||
WHERE
|
||||
"key" = '""'
|
||||
AND "type" = 'google_calendar'
|
||||
|
||||
-- Delete empty google credentials
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
"Credential" c
|
||||
DELETE FROM "Credential" c
|
||||
WHERE
|
||||
"key" = '""'
|
||||
AND "type" = 'google_calendar' RETURNING *
|
||||
Reference in New Issue
Block a user