-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Install nextcloud via migrations instead of the db_structure.xml #5772
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works (and code looks good as well
@MorrisJobke I can replace all placeholders with |
@@ -58,7 +58,6 @@ | |||
'COPYING-README', | |||
'core', | |||
'cron.php', | |||
'db_structure.xml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LukasReschke mentioning you as requested for potential build script adjustments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess for this case no adjustment is needed, because it was a shipped file. We only should test the updater to check if the file list needs to be updated somehow.
db_structure.xml is still used by db convert and fix charset commands, will fix. |
Dismissing review because there were many changes afterwards
BTW this is another step towards #2270 |
Migrations? yes. This here? no. |
Codecov Report
@@ Coverage Diff @@
## master #5772 +/- ##
============================================
- Coverage 57.06% 53.23% -3.84%
- Complexity 21017 22751 +1734
============================================
Files 1245 1403 +158
Lines 71040 87484 +16444
Branches 0 1327 +1327
============================================
+ Hits 40537 46569 +6032
- Misses 30503 40915 +10412
|
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Morris Jobke <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
…chema Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
…ctly Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
fb0bbe5
to
d254797
Compare
Should be ready for merge now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWESOME!
More tests would be nice. But lets get this in ASAP so we can catch error during development. But works like a charm here...
Installing Nextcloud now uses migrations only instead of the old db_structure.xml
The old file was not taken into consideration on updates anymore anyway, which caused a problem for @fancycode and @Ivansss with sqlite, after the accounts table was dropped it was not recreated on update.
This is now fixed, because all the structure is in a migration file.
Fix #5646
Fix #4914