Håkon Pettersen
06/03/2023, 2:46 PMDatabase.Schema.migrate(
driver = driver,
oldVersion = 0,
newVersion = Database.Schema.version,
)
I assume that this won't work if the user is currently on version 2, and I am trying to migrate to version 3. I assume that I have to check which version of the database the user is currently on and only execute migration if it is lower than the latest version. If that's the case, how can I check the current database-verison that the user is on? (Also, If this is the wrong way to handle migrations, please elaborate).Paul Woitaschek
06/04/2023, 4:02 AMHåkon Pettersen
06/04/2023, 8:45 AM