fix: replace dev schema defaults with public
- schema.rs: Change DATABASE_SCHEMA default from 'dev' to 'public' - rule2_ingest.rs, files.rs, tools.rs, scan.rs: Same schema default fix - files.rs, watcher.rs, processing.rs: Change output_dev to output - identities.rs: Change API schema parameter default from 'dev' to 'public' - postgres_db.rs: Add face_settings column to SELECT query (fix ColumnIndexOutOfBounds panic) This fixes worker not processing jobs due to missing dev schema.
This commit is contained in:
@@ -2098,7 +2098,7 @@ impl PostgresDb {
|
||||
let row = sqlx::query(
|
||||
&format!(
|
||||
r#"
|
||||
SELECT id, uuid, video_path, status, current_processor, progress_total, progress_current, error_count, last_error, started_at::TEXT, updated_at::TEXT, created_at::TEXT, processors, completed_processors, failed_processors, video_id
|
||||
SELECT id, uuid, video_path, status, current_processor, progress_total, progress_current, error_count, last_error, started_at::TEXT, updated_at::TEXT, created_at::TEXT, processors, completed_processors, failed_processors, video_id, face_settings::TEXT
|
||||
FROM {} WHERE uuid = $1
|
||||
"#,
|
||||
table
|
||||
@@ -2145,7 +2145,7 @@ impl PostgresDb {
|
||||
let rows = sqlx::query(
|
||||
&format!(
|
||||
r#"
|
||||
SELECT id, uuid, video_path, status, current_processor, progress_total, progress_current, error_count, last_error, started_at::TEXT, updated_at::TEXT, created_at::TEXT, processors, completed_processors, failed_processors, video_id
|
||||
SELECT id, uuid, video_path, status, current_processor, progress_total, progress_current, error_count, last_error, started_at::TEXT, updated_at::TEXT, created_at::TEXT, processors, completed_processors, failed_processors, video_id, face_settings::TEXT
|
||||
FROM {} WHERE status = $1 ORDER BY created_at ASC
|
||||
"#,
|
||||
table
|
||||
|
||||
@@ -8,7 +8,7 @@ pub fn t(name: &str) -> String {
|
||||
|
||||
/// Alias for t() - used by postgres_db.rs
|
||||
pub fn table_name(name: &str) -> String {
|
||||
let schema = std::env::var("DATABASE_SCHEMA").unwrap_or_else(|_| "dev".to_string());
|
||||
let schema = std::env::var("DATABASE_SCHEMA").unwrap_or_else(|_| "public".to_string());
|
||||
if schema == "public" {
|
||||
name.to_string()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user