summaryrefslogtreecommitdiffstats
path: root/core/Command/Db/Migrations
Commit message (Collapse)AuthorAgeFilesLines
* fix(db): Print why the migration file could not be createdChristoph Wurst2023-11-221-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update core/Command/Db/Migrations/MigrateCommand.phpFaraz Samapoor2023-06-191-1/+3
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Update core/Command/Db/Migrations/StatusCommand.phpFaraz Samapoor2023-06-191-1/+3
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Uses PHP8's constructor property promotion in core/Command/Db classes.Faraz Samapoor2023-06-193-15/+6
| | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Fix typo that added a letter to migration templateVitor Mattos2023-02-251-1/+1
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* properly typehint generated migrationsRoeland Jago Douma2022-10-091-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update core to PHP 7.4 standardCarl Schwan2022-05-204-30/+6
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix strict comparisonJoas Schilling2022-04-271-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix type fixingJoas Schilling2022-04-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Give hints on correct migration versioningJoas Schilling2022-04-251-0/+32
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* migration generator also includes copyright sectionArthur Schiwon2022-03-281-0/+24
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Check style updateCarl Schwan2022-01-132-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Cleanup unneeded code around database.xmlMorris Jobke2021-03-241-206/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-085-25/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the migration template typedJoas Schilling2020-10-151-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add return value to all commandsJoas Schilling2020-06-265-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-6/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-055-5/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix the import order of new migrationsRoeland Jago Douma2019-11-251-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add support for boolean defaultMaxence Lange2019-01-091-1/+5
| | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Improve class import and strict typing for generated migration classChristoph Wurst2018-09-071-6/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix generated migration class codeChristoph Wurst2018-08-211-3/+0
| | | | | | The `@since` documentation is out of place here. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add human readable description to migration stepsRobin Appelman2018-05-301-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add autocomplete to migration commandsJoas Schilling2018-05-035-11/+145
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-172-6/+6
| | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-065-11/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix missing "unsigned" on integer columnsJoas Schilling2017-09-191-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix typo in template for migration generationJoas Schilling2017-08-091-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use template placeholders instead of htmlJoas Schilling2017-07-251-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Core is converted, so this is dead codeJoas Schilling2017-07-251-9/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a script to generate a migration from database.xmlJoas Schilling2017-07-252-5/+214
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only create the migration directory when necessaryJoas Schilling2017-07-061-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to check the schema in pre and post as wellJoas Schilling2017-07-051-4/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a version to migrations, so parallel legacy branches can also have ↵Joas Schilling2017-07-051-9/+19
| | | | | | migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add author and copyrightJoas Schilling2017-07-052-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not allow to go back on productive systemsJoas Schilling2017-07-051-1/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust the code to use our interface and abstractJoas Schilling2017-07-051-63/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-054-0/+412
Fixme: - Install and update of apps - No revert on live systems (debug only) - Service adjustment to our interface - Loading via autoloader Signed-off-by: Joas Schilling <coding@schilljs.com>