Publishing error

I keep getting this error when trying to publish my site.

There was an error during publish The migration directory is corrupt, the following files are missing: 20221218163242_addingtables.js

how do I rebuild the migration directory?

thanks

Besides deleting all files in the migration directory, you’d need to erase the wappler_migrations table in your database (I think)

Be sure to start the database from scratch so you can create the migrations from scratch

See

this is what im talking about. Nothing shows up after then it makes an infinite folder game. I had for the moment use a different program to get something up. Also on a side note I have it in NodeJS when this started then put it to a php site now its back to making infinite folders. not sure if its the program or my computer.

wappler video

I think you should delete the “20221218163242_addingtables.js” record from the wappler_migrations table in DB to fix this (it helps in my case at least).

If the error says that the file is missing - that is actually the exact problem - that it is missing from the migration directory.

So somehow migrations are applied but after that the migration files were deleted.

So in general it is a very bad idea to delete migration files. Unless you want to throw away all your history but then you won’t be able to publish the database to other targets.