You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason: ScriptsRun id column has
SELECT nextval('roundhouse.scriptsrun_id_seq'::regclass) default value. This value is not set to the correct MAX(id)+1 after the RH->Grate migration.
The text was updated successfully, but these errors were encountered:
I have run into this issue as well. It seems even though you specify the schema as 'roundhouse' to match the existing schema it does not find the existing tables. From looking into the schema it turns out it creates the tables it needs in this schema but they prefix with "Grate". Is there a way to tell the tool not to prefix the tables? Maybe the tool should not prefix the tables if they are created in a schema.
The ones prefixed with "Grate" is for internal Grate use, and handles versioning of the migration tables themselves
The ones without prefix, which are used for the users' tables
The ones in 2) should be compatible without any changes. But there might of course be bugs.
I don't have access to any computer to run RoundhousE on now, as I don't own a Windows computer. But, do you have an example or two, which you can share, with the text_of_script and text_hash from running of both RoundhousE and grate, and if they are different? It's difficult to fix any incompatibilities without having any examples to compare with, to verify that we are able to produce the exact same hash in grate as in RoundhousE
And, does it work if you do as suggested in the next comment, #550 (comment)?
If this is the case, I would recommend that we just change grate so that we don't bother with the script_name at all when checking if a script is equal? Or, at least, accept both. I like the new feature in grate that the directory name is included, but it seems like this is causing issues using grate as a drop-in replacement for RoundhousE
Reproducing bug:
Run RH on Postgres DB (on Windows). Works. Tables created.
Run Grate on same DB using correct --schema. Grate renames/recreates the scriptsrun table to ScriptsRun.
No errors because of no schema changes.
Create a new sql script for grate to run in up folder. Error:
Reason: ScriptsRun id column has
SELECT nextval('roundhouse.scriptsrun_id_seq'::regclass) default value. This value is not set to the correct MAX(id)+1 after the RH->Grate migration.
The text was updated successfully, but these errors were encountered: