Apple
October 9, 2022, 12:09am
1
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
Starting from empty DB, run migrations
Error will occur and no longer able to see migrations
Last step performed before noticing the problem
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
Apple
October 11, 2022, 7:17pm
4
2 Likes
George
October 12, 2022, 1:01pm
6
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
Notum
October 12, 2022, 1:50pm
7
Deleting wappler_migration and wappler_migration_lock tables in DB helped me.
George
October 12, 2022, 1:57pm
8
No you shouldn’t do that! This will loose track of your migrations history and you will start over.
1 Like
Notum
October 12, 2022, 4:11pm
9
Well - not in my case.
I see all the changes under Changes sections.
George
October 12, 2022, 4:28pm
10
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
Notum
October 12, 2022, 4:45pm
11
Got you.
Thank you for the explanation.
Teodor
Closed
October 15, 2022, 3:00pm
15
This topic was automatically closed after 32 hours. New replies are no longer allowed.