Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom-dependency-tree.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ai.elimu:webapp:war:2.5.104-SNAPSHOT
ai.elimu:webapp:war:2.5.108-SNAPSHOT
+- ai.elimu:model:jar:model-2.0.97:compile
| \- com.google.code.gson:gson:jar:2.13.0:compile
| \- com.google.errorprone:error_prone_annotations:jar:2.37.0:compile
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/ai/elimu/entity/content/multimedia/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public class Video extends Multimedia {
@NotNull
private String title;

/**
* The file size (byte length).
*/
@NotNull
private Integer fileSize;

@NotNull
@Lob
@Column(length = 209715200) // 200MB
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/jpa-schema-export.sql
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@
bytes longblob,
checksumGitHub varchar(255),
checksumMd5 varchar(255),
fileSize integer,
thumbnail mediumblob,
title varchar(255),
videoFormat varchar(255),
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/db/migration/2005108.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 2.5.108

UPDATE `Video` SET `fileSize` = LENGTH(`bytes`);