mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
file_size_bytes needs to be BIGINT
This commit is contained in:
1 parent
b7853b8914
commit
b965bfb602
2 files changed
+3
-1
No files matched your search
@@ -95,6 +95,7 @@ CREATE TABLE model_weights (
|
||||
-- The filename that was used at upload time (if available)
|
||||
original_filename VARCHAR(255) DEFAULT NULL,
|
||||
|
||||
-- TODO: Make this a BIGINT so we can store more than 2GB.
|
||||
-- File characteristics
|
||||
file_size_bytes INT(10) NOT NULL DEFAULT 0,
|
||||
|
||||
|
||||
+2
-1
@@ -334,7 +334,8 @@ pub async fn process_job_sd(
|
||||
maybe_last_update_user_token: None,
|
||||
original_download_url: Some(download_url),
|
||||
original_filename: None,
|
||||
file_size_bytes: metadata.file_size_bytes,
|
||||
// file_size_bytes: metadata.file_size_bytes, // TODO(bt,2024-02-03): We need to migrate the column to be BIGINT
|
||||
file_size_bytes: 0,
|
||||
file_checksum_sha2: metadata.sha256_checksum,
|
||||
public_bucket_hash: bucket_details.object_hash,
|
||||
maybe_public_bucket_prefix: Some(bucket_details.prefix),
|
||||
|
||||
Reference in new issue
Block a user