Skip to content

Commit

Permalink
active migrate deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vincehi committed Jun 27, 2024
1 parent 4e7a50c commit b711d96
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 57 deletions.

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions src-tauri/prisma/migrations/20240610073409_bitrate/migration.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ CREATE TABLE "File" (
"path" TEXT NOT NULL PRIMARY KEY,
"name" TEXT NOT NULL,
"directoryPath" TEXT NOT NULL,
"bpm" REAL NOT NULL,
"danceability" REAL NOT NULL,
"chordsKey" TEXT NOT NULL,
"chordsScale" TEXT NOT NULL,
"bpm" REAL,
"danceability" REAL,
"chordsKey" TEXT,
"chordsScale" TEXT,
"sampleRate" INTEGER,
"bitrate" INTEGER,
"channels" INTEGER,
"duration" INTEGER,
"analyzed" BOOLEAN NOT NULL DEFAULT false,
CONSTRAINT "File_directoryPath_fkey" FOREIGN KEY ("directoryPath") REFERENCES "Directory" ("path") ON DELETE RESTRICT ON UPDATE CASCADE
);
4 changes: 2 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ async fn main() {

match prisma_client {
Ok(client) => {
// #[cfg(debug_assertions)]
#[cfg(debug_assertions)]
client._db_push().await.unwrap();
// #[cfg(not(debug_assertions))]
#[cfg(not(debug_assertions))]
client._migrate_deploy().await.unwrap();

handle.manage(AppState {
Expand Down

0 comments on commit b711d96

Please sign in to comment.