mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-05-21 13:08:09 +00:00
12 lines
270 B
Rust
12 lines
270 B
Rust
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()
|
|
}
|