spacedrive icon indicating copy to clipboard operation
spacedrive copied to clipboard

Migrations failing to apply

Open jamiepine opened this issue 2 years ago • 0 comments

Describe the bug

Not all migrations are applied successfully, even on a fresh database. This is causing the majority of queries to fail.

Also causing the "Loading..." state as the volumes table is never created, just "new_Volume" and "new_volumes".

On my branch "jamie-unsorted-changes" I have wiped the migration folder and rebuilt to move past this issue, but I suspect if there is a problem with the migration runner that it will cause problems again. I don't think it's prisma's migration generation, it all looks in tact.

Screen Shot 2022-05-22 at 9 14 55 PM Screen Shot 2022-05-22 at 9 18 34 PM

Reproduction

  1. be on main branch where the migration folder still exists
  2. clear your Spacedrive data folder
  3. run app and observe errors

Expected behavior

No response

Platform and versions

6.32.3
cargo 1.60.0 (d1fd9fe2c 2022-03-01)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Stack trace

No response

Additional context

No response

jamiepine avatar May 23 '22 04:05 jamiepine