Change file size from int to int64
Signed-off-by: Yannis Varni <yannis@edinomis.fr>
This commit is contained in:
@@ -32,7 +32,7 @@ type (
|
||||
MimeType string `db:"mime_type"`
|
||||
FileName string `db:"file_name"`
|
||||
FileKey string `db:"file_key"`
|
||||
FileSize int `db:"file_size"`
|
||||
FileSize int64 `db:"file_size"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
DeletedAt *time.Time `db:"deleted_at"`
|
||||
|
||||
5
pkg/coredata/migrations/20250925T184234Z.sql
Normal file
5
pkg/coredata/migrations/20250925T184234Z.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE files
|
||||
ALTER COLUMN file_size TYPE bigint;
|
||||
|
||||
ALTER TABLE vendor_compliance_reports
|
||||
ALTER COLUMN file_size TYPE bigint;
|
||||
@@ -34,7 +34,7 @@ type (
|
||||
ValidUntil *time.Time
|
||||
ReportName string
|
||||
FileKey string
|
||||
FileSize int
|
||||
FileSize int64
|
||||
SnapshotID *gid.GID
|
||||
SourceID *gid.GID
|
||||
CreatedAt time.Time
|
||||
|
||||
Reference in New Issue
Block a user