This commit is contained in:
Brandon Thomas committed 2021-05-22 09:02:02 -04:00
1 parent bb2c189c56
commit a484207eb6
3 files changed
+20 -13

No files matched your search

+8 -2
View File
@@ -70,7 +70,10 @@ CREATE TABLE tts_models (
) NOT NULL DEFAULT 'public',
-- The filename that was used at upload time.
original_filename VARCHAR(255) NOT NULL,
original_filename VARCHAR(255) DEFAULT NULL,
-- Where the file was originally downloaded (if it was downloaded)
original_download_url VARCHAR(512) DEFAULT NULL,
-- The pytorch model
-- For now, this will be a hash of the file contents.
@@ -178,7 +181,10 @@ CREATE TABLE w2l_templates (
) NOT NULL DEFAULT 'public',
-- The filename that was used at upload time.
original_filename CHAR(255) NOT NULL,
original_filename CHAR(255) DEFAULT NULL,
-- Where the file was originally downloaded (if it was downloaded)
original_download_url VARCHAR(512) DEFAULT NULL,
-- The original source image/video and the "precomputed" faces
private_bucket_hash CHAR(64) NOT NULL,
+10 -10
View File
@@ -651,16 +651,6 @@
]
}
},
"b4fa3ec3e2f65f217ef8a08f54f1366b537d0e99497cd7e2882e8e5a96c4c4ab": {
"query": "\nINSERT INTO tts_models\nSET\n token = ?,\n tts_model_type = \"tacotron2\",\n updatable_slug = ?,\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address = ?,\n original_filename = \"TODO\",\n private_bucket_hash = ?\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 6
},
"nullable": []
}
},
"bf489cf419d342d144f072c310d6d70c9073b092b5721f489eaf2ffc8ad3915e": {
"query": "\nUPDATE tts_model_upload_jobs\nSET\n status = ?,\n failure_reason = ?,\n retry_at = NOW() + interval 2 minute\nWHERE id = ?\n ",
"describe": {
@@ -691,6 +681,16 @@
"nullable": []
}
},
"d1c8e0f9c5600fd7c296558cdb3525a2678b3e775f9e2bee0f1da979d4a82d70": {
"query": "\nINSERT INTO tts_models\nSET\n token = ?,\n tts_model_type = \"tacotron2\",\n updatable_slug = ?,\n title = ?,\n description_markdown = '',\n description_rendered_html = '',\n creator_user_token = ?,\n creator_ip_address = ?,\n original_download_url = ?,\n private_bucket_hash = ?\n ",
"describe": {
"columns": [],
"parameters": {
"Right": 7
},
"nullable": []
}
},
"e73192a3e763a287d5737821443c5a81649f17e39978497b99c52e1e896a75f6": {
"query": "\nSELECT\n token as session_token,\n user_token\nFROM user_sessions\nWHERE token = ?\nAND deleted_at IS NULL\n ",
"describe": {
+2 -1
View File
@@ -129,7 +129,7 @@ SET
description_rendered_html = '',
creator_user_token = ?,
creator_ip_address = ?,
original_filename = "TODO",
original_download_url = ?,
private_bucket_hash = ?
"#,
model_token,
@@ -137,6 +137,7 @@ SET
job.title.to_string(),
job.creator_user_token.clone(),
job.creator_ip_address.clone(),
job.download_url.clone(),
private_bucket_hash.to_string(),
)
.execute(pool)