Skip to content

Commit

Permalink
fix(clickhouse): Add 'IF EXISTS' to migration (#25864)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Oct 29, 2024
1 parent c823825 commit ded1262
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
ADD_COLUMNS_BASE_SQL = """
ALTER TABLE {table}
ON CLUSTER '{cluster}'
MODIFY COLUMN inserted_at DEFAULT NOW64()
MODIFY COLUMN IF EXISTS inserted_at DEFAULT NOW64()
"""

DROP_COLUMN_BASE_SQL = """
ALTER TABLE {table}
ON CLUSTER '{cluster}'
DROP COLUMN inserted_at
DROP COLUMN IF EXISTS inserted_at
"""


Expand Down

0 comments on commit ded1262

Please sign in to comment.