Skip to content

Commit 3b2729a

Browse files
CodingAnarchyclaude
andcommitted
fix: Replace dollar-quoted function in migration 014
- Replace $$ dollar-quoting with single quotes for trigger function - Fixes semicolon-splitting issues in migration runner - Maintains same functionality with simpler syntax 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e91c807 commit 3b2729a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/migrations/014_add_queue_pause.postgres.sql

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ CREATE INDEX IF NOT EXISTS idx_hammerwork_queue_pause_paused_at ON hammerwork_qu
1616

1717
-- Add function to automatically update the updated_at timestamp
1818
CREATE OR REPLACE FUNCTION update_hammerwork_queue_pause_updated_at()
19-
RETURNS TRIGGER AS $$
20-
BEGIN
21-
NEW.updated_at = NOW();
22-
RETURN NEW;
23-
END;
24-
$$ LANGUAGE plpgsql;
19+
RETURNS TRIGGER AS 'BEGIN NEW.updated_at = NOW(); RETURN NEW; END;' LANGUAGE plpgsql;
2520

2621
-- Create trigger to automatically update updated_at
2722
DROP TRIGGER IF EXISTS trigger_update_hammerwork_queue_pause_updated_at ON hammerwork_queue_pause;

0 commit comments

Comments
 (0)