background-jobs-postgres 0.20.0

Postgres storage backend for background-jobs
Documentation
1
2
3
4
5
6
7
8
9
10
11
use barrel::backend::Pg;
use barrel::functions::AutogenFunction;
use barrel::{types, Migration};

pub(crate) fn migration() -> String {
    let mut m = Migration::new();

    m.inject_custom("CREATE EXTENSION IF NOT EXISTS pgcrypto;");

    m.make::<Pg>().to_string()
}