Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register type mappings on createSchema invocation too #29263

Merged
merged 2 commits into from
Oct 17, 2017
Merged

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Oct 16, 2017

Description

Register type mappings for MigrationService too

Related Issue

Fixes #29262

Motivation and Context

Smooth Upgrade process

How Has This Been Tested?

Manually. See exact steps in #29262

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@VicDeo
Copy link
Member Author

VicDeo commented Oct 16, 2017

One source was indented with spaces, so https://github.com/owncloud/core/pull/29263/files?w=1 is better to see what's changed

@VicDeo VicDeo self-assigned this Oct 16, 2017
@codecov
Copy link

codecov bot commented Oct 16, 2017

Codecov Report

Merging #29263 into master will increase coverage by 0.01%.
The diff coverage is 31.03%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #29263      +/-   ##
============================================
+ Coverage     59.43%   59.44%   +0.01%     
- Complexity    17154    17158       +4     
============================================
  Files          1027     1027              
  Lines         57193    57203      +10     
============================================
+ Hits          33991    34004      +13     
+ Misses        23202    23199       -3
Impacted Files Coverage Δ Complexity Δ
lib/private/DB/OracleMigrator.php 0% <ø> (ø) 11 <0> (ø) ⬇️
lib/private/DB/MDB2SchemaManager.php 80.7% <0%> (ø) 17 <0> (ø) ⬇️
lib/private/DB/MySQLMigrator.php 0% <0%> (ø) 7 <4> (+2) ⬆️
lib/private/DB/SQLiteMigrator.php 100% <100%> (ø) 7 <2> (+2) ⬆️
lib/private/DB/Connection.php 65.89% <0%> (+3.1%) 45% <0%> (ø) ⬇️
lib/private/DB/Migrator.php 53.01% <0%> (+4.81%) 30% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9f22f1...14b1384. Read the comment docs.

@VicDeo
Copy link
Member Author

VicDeo commented Oct 16, 2017

hmmm. should I revert tabs to spaces to satisfy that beasty mech ego?
registerAdditionalMappings and createSchema are covered in both classes, so the diff has coverage that is close to 100% in my Universe

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add test to assert that the MySQL migrator did register additional type mappings ?

@VicDeo
Copy link
Member Author

VicDeo commented Oct 17, 2017

@PVince81 try to comment https://github.com/owncloud/core/pull/29263/files#diff-f31830e77645a4634cf4f0258e1a3272R35
and execute MySqlMigrationTest::testCreateSchemaWithNonOcTables

@PVince81
Copy link
Contributor

@VicDeo explain that to codecov 😦

@VicDeo
Copy link
Member Author

VicDeo commented Oct 17, 2017

@PVince81 I have a strong impression that it counts coverage using sqlite only

@PVince81
Copy link
Contributor

@DeepDiver1975 ignore codecov here then ?

@VicDeo
Copy link
Member Author

VicDeo commented Oct 17, 2017

The truth is that

@PVince81 PVince81 added this to the development milestone Oct 17, 2017
@PVince81 PVince81 merged commit 8d44b5c into master Oct 17, 2017
@PVince81 PVince81 deleted the fix-29262 branch October 17, 2017 08:58
@PVince81
Copy link
Contributor

@VicDeo please backport to stable10

@VicDeo
Copy link
Member Author

VicDeo commented Oct 17, 2017

Without whitespaces 2/49 = 0.04081632653061224, so the coverage is 96%
With whitespaces it is 20/69 = 0.2898550724637681 and the coverage is 71%

@VicDeo
Copy link
Member Author

VicDeo commented Oct 17, 2017

Stable10: #29268

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type mappings are not applied to platform when using migrations
3 participants