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
Fix migration with pgsql do not work correctly #9276
Fix migration with pgsql do not work correctly #9276
Conversation
@eldy |
I pushed one more commit to match request like this :
|
New commit (99a3269) to convert sql requests like this :
or
I took examples from migration script |
00f1027 to match this:
request found in migration script 6.0.0-7.0.0.sql in branch 7.0 |
…OT NULL' statment at the end
request found in migration script 6.0.0-7.0.0.sql in branch 7.0 |
The trouble was into the migration file. The line We can add the correct syntax into script migration script 6.0.0-7.0.0.sql in branch 7.0 if you want but by using the suggested syntaxes only. So it hsould be something like this : ALTER TABLE llx_cronjob MODIFY COLUMN params text; |
Do you mean this PR need to be closed and open another one to rewrite all sql requests I had found ? ALTER TABLE llx_cronjob MODIFY COLUMN params text NULL; Limit the syntax is a good practice, I'm sure, but this mean you should check each PR adding sql request |
"Limit the syntax is a good practice, I'm sure, but this mean you should check each PR adding sql request" We don' need to rewrite all sql requests. A lot of one are good. For example |
Fix
Meet probleme with
llx_cronjob
and the columnparams
In Dolibarr 3.7 the structure was declare as :
dolibarr/htdocs/install/mysql/tables/llx_cronjob.sql
Line 32 in e61bcd0
In the next version (3.8) we had this :
dolibarr/htdocs/install/mysql/migration/3.7.0-3.8.0.sql
Line 37 in 71818da
But the conversion give us a bad request :
ALTER TABLE llx_cronjob ALTER COLUMN params TYPE text DROP NOT NULL;
Here examples of conversion :