Skip to content

Commit b9b7a14

Browse files
committed
fix: update trigger name
1 parent 7291c02 commit b9b7a14

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

coderd/database/dump.sql

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS idx_organization_name_lower ON organizations U
66
ALTER TABLE ONLY organizations
77
ADD CONSTRAINT organizations_name UNIQUE (name);
88

9-
DROP TRIGGER IF EXISTS protect_provisioned_organizations ON organizations;
10-
DROP FUNCTION IF EXISTS protect_provisioned_organizations;
9+
DROP TRIGGER IF EXISTS protect_deleting_organizations ON organizations;
10+
DROP FUNCTION IF EXISTS protect_deleting_organizations;
1111

1212
ALTER TABLE organizations DROP COLUMN deleted;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ CREATE TRIGGER protect_deleting_organizations
8282
BEFORE UPDATE ON organizations
8383
FOR EACH ROW
8484
WHEN (NEW.deleted = true AND OLD.deleted = false)
85-
EXECUTE FUNCTION protect_provisioned_organizations();
85+
EXECUTE FUNCTION protect_deleting_organizations();

0 commit comments

Comments
 (0)