Can't see migrations on any project

Edit: Original bug report below referred to SQLite project, but looks like another project is broken as well (PostgreSQL)

I had to revert to 5.1.4

OS info

  • Operating System : Mac OSX 21.5.0
  • Wappler Version : 5.1.5

Problem description

Can’t see migrations on SQLite project

t.lastIndexOf is not a function

Steps to reproduce

  1. Starting from empty DB, run migrations
  2. Error will occur and no longer able to see migrations

Last step performed before noticing the problem

  1. Rename table name of a standard table containing a subtable - migration was generated and executed

Database connection (SQLite) appears ok

Steps attempted to solve the problem (without success)

rm .wappler/targets/Development/databases/db.json

I am having the same issue. I am running Mac OSX 12.6, using a docker deployment and my DB seems to be connected as well.

I am running Wappler 5.1.5

me too!! same problem!

Downgrade to 5.1.4 for those that need to work
(careful if you’ve used features introduced in 5.1.5, keep project backup)

MacOS Intel:
https://account5.wappler.io/download/Wappler-Mac-5.1.4.dmg
MacOS M1 and similar:
https://account5.wappler.io/download/Wappler-Mac-arm64-5.1.4.dmg
Windows x64:
https://account5.wappler.io/download/Wappler-win64-5.1.4.exe
Linux:
https://account5.wappler.io/download/wappler_5.1.4-1_amd64.deb

2 Likes

Found the issue - was a problem with the migrations listing retrieval due to the new Knex update that we did in Wappler 5.1.5

It was just an error with the retrieval - you won’t need to “fix” anything

It will be fixed in the next update

1 Like

Deleting wappler_migration and wappler_migration_lock tables in DB helped me.

No you shouldn’t do that! This will loose track of your migrations history and you will start over.

1 Like

Well - not in my case.
I see all the changes under Changes sections.

Yes you will see them but marked as not performed yet and if you do execute some of them it will rain database errors as they are already executed in the database but you deleted the record to indicate that.

1 Like

Got you.
Thank you for the explanation.

Fixed in Wappler 5.2.0

This topic was automatically closed after 32 hours. New replies are no longer allowed.