In Schemaspy, column totalamount is reported as "not used? always NULL". "grep -r totalamount *" give this result, so I suppose it is true : blib/INTRANET_CGI_DIR/installer/data/mysql/kohastructure.sql: `totalamount` decimal(28,6) default NULL, -- not used? always NULL blib/INTRANET_CGI_DIR/installer/data/Pg/kohastructure.sql:totalamount decimal(28,6) default NULL, installer/data/mysql/kohastructure.sql: `totalamount` decimal(28,6) default NULL, -- not used? always NULL installer/data/Pg/kohastructure.sql:totalamount decimal(28,6) default NULL, t/db_dependent/Acquisition.t: totalamount I propose the deletion of this column. M. Saby
Created attachment 38320 [details] [review] Bug 11006: Drop column aqorders.totalamount This column was not used in the Koha codebase, it can be removed. Test plan: Execute the updatedatabase.pl script and confirm that the column has been dropped. QA step: 1/ git grep totalamount 2/ prove t/db_dependent/Acquisition.t
# git grep totalamount Koha/Schema/Result/Aqorder.pm:=head2 totalamount Koha/Schema/Result/Aqorder.pm: "totalamount", Should that still appear?
(In reply to Marc Véron from comment #2) > # git grep totalamount > Koha/Schema/Result/Aqorder.pm:=head2 totalamount > Koha/Schema/Result/Aqorder.pm: "totalamount", > > Should that still appear? Yes, I don't update the schema when not needed to test. The RM uploads it when needed.
Created attachment 38393 [details] [review] [Signed-off] Bug 11006: Drop column aqorders.totalamount This column was not used in the Koha codebase, it can be removed. Test plan: Execute the updatedatabase.pl script and confirm that the column has been dropped. QA step: 1/ git grep totalamount 2/ prove t/db_dependent/Acquisition.t Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 38402 [details] [review] [PASSED QA] Bug 11006: Drop column aqorders.totalamount This column was not used in the Koha codebase, it can be removed. Test plan: Execute the updatedatabase.pl script and confirm that the column has been dropped. QA step: 1/ git grep totalamount 2/ prove t/db_dependent/Acquisition.t Signed-off-by: Marc Veron <veron@veron.ch> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Patch pushed to master. Thanks Jonathan! tatus: Pushed to Master
Created attachment 39186 [details] [review] Bug 11006: (RM followup) DBIx updates Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>