Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Make sure target table exists before adding the fs_type field.
Browse files Browse the repository at this point in the history
Signed-off-by: johnsonw <[email protected]>
  • Loading branch information
johnsonw committed Oct 26, 2020
1 parent 23c7a2a commit d02e1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/20201021191942_fs_type_field.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Add migration script here
CREATE TYPE fs_type AS ENUM('zfs', 'ldiskfs');

ALTER TABLE target add column fs_type fs_type;
ALTER TABLE IF EXISTS target add column fs_type fs_type;

0 comments on commit d02e1a7

Please sign in to comment.