-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
avoid use of sql to migrate table #125
Conversation
Dear @sualko,
Are you that this change the name of column siret in legal_one?
|
Is this documented somewhere? In the Nextcloud universe the most common pattern is that the main branch is for development, because most people will open a pr for that branch.
Sorry, I read this falsely. If you want to rename it and change the type, you should maybe check the manual for a more error prone method: https://docs.nextcloud.com/server/latest/developer_manual/basics/storage/migrations.html
In the Doctrine documentation. If you open my pr in VSC you will have autocomplete for the table variable, since I added a type hint as described above. |
The problem of #123 is the ALTER TABLE. According to the doctrine documentaiton, we need to use :
But I don't know why that not work in nextcloud. I'm working on this issue. |
This will rename the table, but you want to rename a column. |
it's certainly why that not work :)
|
* refactoring * refactoring refactoring refactoring & #46 Create help section for configuration and #47 #61 changelog [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * transifex * transifex * test * Translation * translation * hotfix * #123 * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * #135 * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * valide * valide * final * Final * Final * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * Update lib/Migration/Version7Date20220125174818.php Co-authored-by: Vitor Mattos <vitor@php.rio> * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * l10n: Fixed grammar Reported at Transifex. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> * l10n: Improve styling A more selected description of the function setting. * l10n: Improve styling A more selected description of the function setting. * l10n: Add "an" * l10n: Add "an" * l10n: Replace a word * l10n: Replace a word * [tx-robot] updated from transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Update lib/Migration/Version20002Date20220201085856.php Co-authored-by: Vitor Mattos <vitor@php.rio> * valide * valide * final * Final * Final Co-authored-by: Vitor Mattos <vitor@php.rio> Co-authored-by: Nextcloud bot <bot@nextcloud.com> Co-authored-by: rakekniven <2069590+rakekniven@users.noreply.github.com> Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
I did not test it, but at least this is what the api provides. I also added a type hint for table so vsc shows you some documentation.
fix #123