diff --git a/20230218074832_require_word_part_id.down.sql b/20230218074832_require_word_part_id.down.sql new file mode 100644 index 0000000..a532312 --- /dev/null +++ b/20230218074832_require_word_part_id.down.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER TABLE words ALTER COLUMN part_id DROP NOT NULL; +COMMIT; diff --git a/20230218074832_require_word_part_id.up.sql b/20230218074832_require_word_part_id.up.sql new file mode 100644 index 0000000..efdf01d --- /dev/null +++ b/20230218074832_require_word_part_id.up.sql @@ -0,0 +1,3 @@ +BEGIN; +ALTER TABLE words ALTER COLUMN part_id SET NOT NULL; +COMMIT;