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
13 lines
287 B
Rust
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()
|
|
}
|