Skip to content

Commit

Permalink
use migration for library databases
Browse files Browse the repository at this point in the history
  • Loading branch information
web3nomad committed May 10, 2024
1 parent bbb0131 commit ca2bfb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/content-library/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ pub async fn load_library(
tracing::error!("failed to create prisma client");
})?;
client
._db_push()
.accept_data_loss() // --accept-data-loss in CLI
._migrate_deploy()
// ._db_push()
// .accept_data_loss() // --accept-data-loss in CLI
// .force_reset() // --force-reset in CLI
.await // apply migrations
.map_err(|e| {
Expand Down

0 comments on commit ca2bfb0

Please sign in to comment.