Skip to content

Commit

Permalink
πŸ› Flyway h2 error
Browse files Browse the repository at this point in the history
  • Loading branch information
baebae02 committed Sep 16, 2024
1 parent a212c33 commit e680763
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_name = 'user_profile'
AND column_name = 'profile_image_file_name'
) THEN
ALTER TABLE user_profile ADD COLUMN profile_image_file_name VARCHAR(255);
END IF;
END $$;
ALTER TABLE user_profile ADD COLUMN IF NOT EXISTS profile_image_file_name VARCHAR(255);

0 comments on commit e680763

Please sign in to comment.