Skip to content

Commit 7291c02

Browse files
committed
chore: change name
1 parent 607311f commit 7291c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/migrations/000296_organization_soft_delete.up.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS idx_organization_name_lower ON organizations U
99
ALTER TABLE ONLY organizations
1010
DROP CONSTRAINT IF EXISTS organizations_name;
1111

12-
CREATE FUNCTION protect_deleted_organizations()
12+
CREATE FUNCTION protect_deleting_organizations()
1313
RETURNS TRIGGER AS
1414
$$
1515
DECLARE
@@ -78,7 +78,7 @@ END;
7878
$$ LANGUAGE plpgsql;
7979

8080
-- Trigger to protect organizations from being soft deleted with existing resources
81-
CREATE TRIGGER protect_deleted_organizations
81+
CREATE TRIGGER protect_deleting_organizations
8282
BEFORE UPDATE ON organizations
8383
FOR EACH ROW
8484
WHEN (NEW.deleted = true AND OLD.deleted = false)

0 commit comments

Comments
 (0)