Skip to content

Commit

Permalink
fix: migrate deploy db
Browse files Browse the repository at this point in the history
  • Loading branch information
vincehi committed Jun 24, 2024
1 parent 36f7445 commit e8813e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
args: "--target x86_64-apple-darwin"
# - platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
# args: ""
# - platform: "windows-latest"
# args: ""
- platform: "windows-latest"
args: ""
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
Expand Down
16 changes: 8 additions & 8 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tauri-build = { version = "1.3.0", features = [] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.6.8", features = ["api-all", "updater"] }
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.10", default-features = false, features = [
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.11", default-features = false, features = [
"migrations",
"sqlite",
] }
Expand Down
5 changes: 4 additions & 1 deletion src-tauri/prisma-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
prisma-client-rust-cli = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.10", default-features = false, features = ["migrations", "sqlite"] }
prisma-client-rust-cli = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.11", default-features = false, features = [
"migrations",
"sqlite",
] }
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn main() {
// #[cfg(debug_assertions)]
client._db_push().await.unwrap();
// #[cfg(not(debug_assertions))]
// client._migrate_deploy().await.unwrap();
client._migrate_deploy().await.unwrap();

handle.manage(AppState {
prisma_client: client,
Expand Down

0 comments on commit e8813e4

Please sign in to comment.