Skip to content

Add enum constraint to media_type columns

João Pereira requested to merge db-enum-media_types into database

Add enum CHECK constraint to media_type columns.

Media types are extremely important for consistency and integrity, as we rely on them to distinguish the type of each object, so we should enforce an enumeration. We can allow more types in the future, but we definitely want to know if someone tries to push an unknown media type.

Related to &2313 (closed).

Edited by João Pereira

Merge request reports