Skip to content

Register type mappings on createSchema invocation too#29263

Merged
PVince81 merged 2 commits into
masterfrom
fix-29262
Oct 17, 2017
Merged

Register type mappings on createSchema invocation too#29263
PVince81 merged 2 commits into
masterfrom
fix-29262

Conversation

@VicDeo

@VicDeo VicDeo commented Oct 16, 2017

Copy link
Copy Markdown
Contributor

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

VicDeo commented Oct 16, 2017

Copy link
Copy Markdown
Contributor Author

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

codecov Bot commented Oct 16, 2017

Copy link
Copy Markdown

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

VicDeo commented Oct 16, 2017

Copy link
Copy Markdown
Contributor Author

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

@PVince81 PVince81 left a comment

Copy link
Copy Markdown
Contributor

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

VicDeo commented Oct 17, 2017

Copy link
Copy Markdown
Contributor Author

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

@PVince81

Copy link
Copy Markdown
Contributor

@VicDeo explain that to codecov 😦

@VicDeo

VicDeo commented Oct 17, 2017

Copy link
Copy Markdown
Contributor Author

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

@PVince81

Copy link
Copy Markdown
Contributor

@DeepDiver1975 ignore codecov here then ?

@VicDeo

VicDeo commented Oct 17, 2017

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

@VicDeo please backport to stable10

@VicDeo

VicDeo commented Oct 17, 2017

Copy link
Copy Markdown
Contributor Author

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

VicDeo commented Oct 17, 2017

Copy link
Copy Markdown
Contributor Author

Stable10: #29268

@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

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