Skip to content

Commit 0b825e6

Browse files
authored
Recognize CASCADE, NO ACTION and RESTRICT as keywords after ON UPDATE/DELETE (#849)
2 parents 3749911 + b298bdb commit 0b825e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/languages/postgresql/postgresql.formatter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const reservedJoins = expandPhrases([
251251
const reservedPhrases = expandPhrases([
252252
'PRIMARY KEY',
253253
'GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY',
254-
'ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]',
254+
'ON {UPDATE | DELETE} [NO ACTION | RESTRICT | CASCADE | SET NULL | SET DEFAULT]',
255255
'DO {NOTHING | UPDATE}',
256256
'AS MATERIALIZED',
257257
'{ROWS | RANGE | GROUPS} BETWEEN',

0 commit comments

Comments
 (0)