pict-rs/src/repo/postgres/migrations/V0013__add_retry_count_to_jobs.rs
asonix 9fe586b9dd
All checks were successful
/ clippy (push) Successful in 1m22s
/ tests (push) Successful in 1m49s
/ check (aarch64-unknown-linux-musl) (push) Successful in 1m54s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 1m54s
/ check (x86_64-unknown-linux-musl) (push) Successful in 1m49s
Implement retries for jobs, start warning on long polls
2024-03-09 12:15:23 -06:00

13 lines
287 B
Rust

use barrel::backend::Pg;
use barrel::{types, Migration};
pub(crate) fn migration() -> String {
let mut m = Migration::new();
m.change_table("job_queue", |t| {
t.add_column("retry", types::integer().nullable(false).default(5));
});
m.make::<Pg>().to_string()
}