-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[DATA_MODEL] rename commande_fournisseur_dispatch into receptiondet_batch #27528
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.
next steps will be the renaming of the CommandeFournisseurDispatch class and then the renaming of fk_commande and fk_commandefourndet fields |
Does this mean classic dispatch without reception object will get deprecated? |
Hello @fappels , i dont think so; the classic dispatch will still work. |
ALTER TABLE llx_product DROP COLUMN onportal; | ||
ALTER TABLE llx_product DROP COLUMN onportal; | ||
|
||
RENAME TABLE llx_commande_fournisseur_dispatch_extrafields TO llx_receptiondet_batch_extrafields; |
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.
Good. Renaming this table will reduce confusion in how and for what this table is used. It is also a big
To rename a table, you must use "ALTER TABLE ... RENAME ..." (se example at top of the file).
also you must update the trigger used for pgslq:
-- VPGSL8.2 CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_receptiondet_batch FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms();
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.
hello @eldy it seems that RENAME TABLE is also good (https://dev.mysql.com/doc/refman/8.0/en/rename-table.html and https://popsql.com/learn-sql/mysql/how-to-rename-a-table-in-mysql) but maybe you have a good reason to not use it ?
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.
trigger updated here if i understood what you said : 933a36c
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 also changed the way to rename table c2345a4
@eldy fixes done and conflicts solved; i am eager to see this one merged and work on the next PR ;-) |
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.
@eldy it's ok for you ? |
@@ -159,6 +159,7 @@ CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_propal FOR EACH ROW | |||
CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_propal_extrafields FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms(); | |||
CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_propal_merge_pdf_product FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms(); | |||
CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_propaldet_extrafields FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms(); | |||
CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_receptiondet_batch FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms(); |
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.
No needed because duplicate of line 92
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.
@altairis-tof There is duplicate create PGSql method in function.sql
follow #26021