Skip to content

Add `NOT NULL` constraints to `file_store` columns

What does this MR do?

This MR adds NOT NULL constraints to each file_store/store columns in ci_job_artifacts, lfs_objects and uploads tables.

The tricky part is the NOT NULL validation is performed before the application sets the value. We need to re-organize update_file_store before we add the constraints. Historically speaking, this is not easy change as we're being suffered with CarrieWave for a long time.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Close https://gitlab.com/gitlab-org/gitlab-ce/issues/46865

Edited by Shinya Maeda

Merge request reports