migrate icon indicating copy to clipboard operation
migrate copied to clipboard

Extended posgres Drop() with type dropping

Open kvij opened this issue 4 years ago • 11 comments

Closes #626

Fixes that Migrate.Drop() is not clearing the database properly in both the postgres and pgx database driver.

kvij avatar Sep 26 '21 20:09 kvij

Pull Request Test Coverage Report for Build 1459982313

  • 76 of 84 (90.48%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 57.978%

Changes Missing Coverage Covered Lines Changed/Added Lines %
database/pgx/pgx.go 38 42 90.48%
database/postgres/postgres.go 38 42 90.48%
<!-- Total: 76 84
Totals Coverage Status
Change from base Build 1424470324: 0.2%
Covered Lines: 3779
Relevant Lines: 6518

💛 - Coveralls

coveralls avatar Sep 26 '21 21:09 coveralls

This will fix #193

dhui avatar Oct 31 '21 18:10 dhui

Ah missed that issue. Created a duplicate.

Yes sometimes we don't care or need to care about the Down. Down is specifically only for things created by Up. Down can be very slow a large database/complex reverts. Using the Drop without this fix leaves the database in a state that cannot be fixed with migrate.

kvij avatar Nov 02 '21 12:11 kvij

@dhui Can you please have another look? I'm staring to get out of context again.

kvij avatar Nov 28 '21 16:11 kvij

Hi @dhui could you please continue the review?

kvij avatar Jan 03 '22 19:01 kvij

just got bit by this. would be great if this could be reviewed and merged soon!

darylhjd avatar Jul 21 '23 16:07 darylhjd

Same here

stevenh avatar Mar 09 '24 13:03 stevenh