Skip to content

Conversation

@christianlupus
Copy link
Collaborator

This should fix the problems in the recent migrations regarding old data in the tables that cause trouble with the indices.

Closes #763
Closes #762

…with PHPUnit

Signed-off-by: Christian Wolf <[email protected]>

Make running test case valid

Signed-off-by: Christian Wolf <[email protected]>

Tidy up test case

Signed-off-by: Christian Wolf <[email protected]>

Update phpunit configuration file

Signed-off-by: Christian Wolf <[email protected]>

Rename cases to avoid spaces in names

Signed-off-by: Christian Wolf <[email protected]>

Corrected assertions and sorting

Signed-off-by: Christian Wolf <[email protected]>

Updated test code to have corrct array keys involved.

Signed-off-by: Christian Wolf <[email protected]>

Added some comments

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>

Corrected typo on migration step

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>

Final fix related to  having clause

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>

Remove instanciated object on tear down

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #776 (e3f2442) into master (bbd15f3) will increase coverage by 2.91%.
The diff coverage is 91.89%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #776      +/-   ##
===========================================
+ Coverage      0.98%   3.89%   +2.91%     
- Complexity      454     459       +5     
===========================================
  Files            20      20              
  Lines          1428    1465      +37     
===========================================
+ Hits             14      57      +43     
+ Misses         1414    1408       -6     
Flag Coverage Δ
integration 2.93% <91.89%> (+2.93%) ⬆️
unittests 0.95% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/Migration/Version000000Date20210701093123.php 91.48% <91.89%> (+91.48%) ⬆️

Signed-off-by: Christian Wolf <[email protected]>
Signed-off-by: Christian Wolf <[email protected]>
@christianlupus christianlupus merged commit 4f31ccd into master Aug 9, 2021
@christianlupus christianlupus deleted the fix/763-tidy-up-database-on-migration branch August 9, 2021 15:29
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.

Crash Nextcloud!!!! Locked out from NC 21.03 stuck on Cookbook update.

2 participants