Añade migración de BD usando Refinery y Barrel
Realmente esta funcionalidad se va a sustituir por alguna otra librería ya que Refinery usa un único número de versión que dificulta su uso en un contexto de módulos independientes con migraciones propias.
This commit is contained in:
parent
76785af4dc
commit
619b7b73c6
15 changed files with 129 additions and 62 deletions
26
Cargo.toml
26
Cargo.toml
|
|
@ -29,7 +29,6 @@ once_cell = "1.9.0"
|
|||
figlet-rs = "0.1.3"
|
||||
|
||||
config_rs = { package = "config", version = "0.11.0", features = ["toml"] }
|
||||
url = "2.2.2"
|
||||
|
||||
tracing = "0.1"
|
||||
tracing-appender = "0.2"
|
||||
|
|
@ -44,24 +43,31 @@ actix-web-static-files = "3.0.5"
|
|||
|
||||
maud = { version = "0.23.0", features = ["actix-web"] }
|
||||
sycamore = { version = "0.7.1", features = ["ssr"] }
|
||||
|
||||
downcast-rs = "1.2.0"
|
||||
url = "2.2.2"
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
||||
[dependencies.sea-orm]
|
||||
version = "0.6"
|
||||
features = ["macros", "debug-print", "runtime-async-std-native-tls"]
|
||||
[dependencies.sqlx]
|
||||
version = "0.5.11"
|
||||
features = ["migrate", "runtime-async-std-native-tls"]
|
||||
default-features = false
|
||||
|
||||
[dependencies.refinery]
|
||||
version = "0.8.4"
|
||||
|
||||
[dependencies.barrel]
|
||||
version = "0.7.0"
|
||||
|
||||
[features]
|
||||
default = ["mysql"]
|
||||
mysql = ["sqlx/mysql", "refinery/mysql", "barrel/mysql"]
|
||||
postgres = ["sqlx/postgres", "refinery/postgres", "barrel/pg"]
|
||||
|
||||
[build-dependencies]
|
||||
actix-web-static-files = "3.0.5"
|
||||
|
||||
[features]
|
||||
default = ["sea-orm/sqlx-mysql"]
|
||||
mysql = ["sea-orm/sqlx-mysql"]
|
||||
postgres = ["sea-orm/sqlx-postgres"]
|
||||
sqlite = ["sea-orm/sqlx-sqlite"]
|
||||
|
||||
[lib]
|
||||
name = "pagetop"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue