sqlx
Written
- Migrations
- To update the checksum of a migration when the file changed, you can recalculate the hash
cat migrations/FILENAME.sql | openssl dgst -sha384 | cut -d ' ' -f 2
- Then change the checksum for that row in the database:
-
update _sqlx_migrations set checksum='\x<the checksum>' where version ='<the version>';
-
- To update the checksum of a migration when the file changed, you can recalculate the hash