mirror of https://github.com/LemmyNet/lemmy
Move embedded migrations to separate crate
parent
dbfbc8660d
commit
44b1049970
@ -0,0 +1,17 @@
|
||||
[package]
|
||||
name = "lemmy_db_migrations"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
description.workspace = true
|
||||
license.workspace = true
|
||||
homepage.workspace = true
|
||||
documentation.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
[lib]
|
||||
name = "lemmy_db_migrations"
|
||||
path = "src/lib.rs"
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
diesel_migrations = { workspace = true }
|
@ -0,0 +1,9 @@
|
||||
#![feature(trace_macros)]
|
||||
#[macro_use]
|
||||
extern crate diesel_migrations;
|
||||
|
||||
use diesel_migrations::EmbeddedMigrations;
|
||||
|
||||
trace_macros!(true);
|
||||
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!();
|
||||
trace_macros!(false);
|
Loading…
Reference in New Issue