diff --git a/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/down.sql b/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/down.sql new file mode 100644 index 0000000000..bbcbbb64d4 --- /dev/null +++ b/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/down.sql @@ -0,0 +1,5 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +ALTER TABLE media_files DROP COLUMN maybe_animation_type; diff --git a/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/up.sql b/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/up.sql new file mode 100644 index 0000000000..cc49ffcbfd --- /dev/null +++ b/_sql/migrations/2024-04-25-042601_alter_media_files_add_maybe_animation_type/up.sql @@ -0,0 +1,7 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +ALTER TABLE media_files + ADD COLUMN maybe_animation_type VARCHAR(32) DEFAULT NULL + AFTER maybe_frame_height; diff --git a/_sql/migrations_squashed/media_files.sql b/_sql/migrations_squashed/media_files.sql index 7b4ce089a2..c1ae2669b9 100644 --- a/_sql/migrations_squashed/media_files.sql +++ b/_sql/migrations_squashed/media_files.sql @@ -137,6 +137,9 @@ CREATE TABLE media_files ( -- For videos, the original frame height. maybe_frame_height INT(5) DEFAULT NULL, + -- For 3D rigs and animations, the type of animation. + maybe_animation_type VARCHAR(32) DEFAULT NULL, + -- Optional text transcript for audio or video (especially TTS) maybe_text_transcript TEXT DEFAULT NULL,