archimedes_migrations 0.3.0

Migrations package for archimedes, a high performance Rust/PostgreSQL job queue
Documentation
1
2
3
4
5
6
7
8
9
10
pub const M000006_MIGRATION: &[&str] = &[
    r#"
        create index jobs_priority_run_at_id_locked_at_without_failures_idx
            on :ARCHIMEDES_SCHEMA.jobs (priority, run_at, id, locked_at)
            where attempts < max_attempts;
    "#,
    r#"
        drop index :ARCHIMEDES_SCHEMA.jobs_priority_run_at_id_idx;
    "#,
];