erikbra / grate

grate - the SQL scripts migration runner
MIT License
165 stars 36 forks source link

Scripts in internal Grate migration tables are always registered as "run" #524

Open erikbra opened 1 month ago

erikbra commented 1 month ago

Describe the bug The internal Grate migration tables always logs all scripts. Might be due to line ending issues when reading from embedded resources, might now

To Reproduce Run a migration, look at the grate.GrateScriptsRun table.

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

dgeller-OUHSC commented 1 month ago

@erikbra could that potentially related to a bug we've been seeing intermittently?

`Initializing connections. Running grate v1.7.4 (build date 05/16/2024 01:50:03) against 127.0.0.1 - bam. Looking in database\data for scripts to run.

Setup, Backup, Create/Restore/Drop

================================================================================ Grate Structure

An error occurred: Migration failed due to the following errors: Update ("up"):

grate-internal\02_create_scripts_run_table.sql: Table 'grate_GrateScriptsRun' already exists`

drhamann commented 1 week ago

I reproduce the same issue at the item 544 will follow here if have any news.