Skip to content

fix(testing): Force migrations should allow table drops#1101

Merged
disq merged 2 commits intocloudquery:mainfrom
disq:fix/force-migrations-accept-drop
Jul 18, 2023
Merged

fix(testing): Force migrations should allow table drops#1101
disq merged 2 commits intocloudquery:mainfrom
disq:fix/force-migrations-accept-drop

Conversation

@disq
Copy link
Member

@disq disq commented Jul 18, 2023

A more flexible approach than #1100

In plugin's migration handling code, there's no easy way to decide if we should drop the table or not for some plugins. If force flag is set, the plugin is allowed to drop previous data.

@disq disq requested a review from yevgenypats as a code owner July 18, 2023 08:36
@github-actions github-actions bot added the fix label Jul 18, 2023
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (cbbecb8) 47.02% compared to head (1ca9f4a) 47.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1101      +/-   ##
==========================================
- Coverage   47.02%   47.01%   -0.01%     
==========================================
  Files          85       85              
  Lines        7777     7778       +1     
==========================================
  Hits         3657     3657              
- Misses       3785     3786       +1     
  Partials      335      335              
Impacted Files Coverage Δ
plugin/testing_write_migrate.go 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

github-actions bot commented Jul 18, 2023

⏱️ Benchmark results

Comparing with 3340813

  • Glob-8 ns/op: 100.8 ⬆️ 0.10% increase vs. 3340813

@disq disq merged commit 5dbb23e into cloudquery:main Jul 18, 2023
@disq disq deleted the fix/force-migrations-accept-drop branch July 18, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants