Skip to content

Commit

Permalink
chore: move migration file for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jniles committed Nov 30, 2020
1 parent 8d2a5f8 commit 0f8f50b
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 55 deletions.
55 changes: 0 additions & 55 deletions server/models/migrations/next/migrate.sql
Original file line number Diff line number Diff line change
@@ -1,55 +0,0 @@
/**
* Migration from the version 1.16.1
*/

/*
* @author: jmcameron
* @date: 2020-11-18
* @pull-release: 5129
* @description: Fix typo in menu report name "System Usage Statistics"
*/
UPDATE `unit` SET name='System Usage Statistics', description='System Usage Statistics' WHERE id=250;

INSERT INTO unit VALUES
(292, '[Stock] Changes Report', 'REPORT.STOCK_CHANGES.TITLE', 'Stock Changes Report', 282, '/reports/stock_changes');

INSERT INTO `report` (`report_key`, `title_key`) VALUES
('stock_changes', 'REPORT.STOCK_CHANGES.TITLE');

/*
* @author: jmcameron
* @date: 2020-11-23
* @pull-release: TBD
* @description: Rename reports to use underscores
*/
UPDATE `report` set report_key='unpaid_invoice_payments' WHERE report_key='unpaid-invoice-payments';
UPDATE `report` set report_key='annual_clients_report' WHERE report_key='annual-clients-report';

UPDATE `report` set report_key='employee_standing' WHERE report_key='employeeStanding';
UPDATE `report` set report_key='debtor_summary' WHERE report_key='debtorSummary';
UPDATE `report` set report_key='client_debts' WHERE report_key='clientDebts';
UPDATE `report` set report_key='client_support' WHERE report_key='clientSupport';
UPDATE `report` set report_key='receovery_capacity' WHERE report_key='recoveryCapacity';
UPDATE `report` set report_key='invoiced_received_stock' WHERE report_key='invoicedReceivedStock';
UPDATE `report` set report_key='system_usage_stat' WHERE report_key='systemUsageStat';
UPDATE `report` set report_key='indicators_report' WHERE report_key='indicatorsReport';
UPDATE `report` set report_key='patient_standing' WHERE report_key='patientStanding';
UPDATE `report` set report_key='cashflow_by_service' WHERE report_key='cashflowByService';
UPDATE `report` set report_key='fee_center' WHERE report_key='feeCenter';
UPDATE `report` set report_key='break_even' WHERE report_key='breakEven';
UPDATE `report` set report_key='break_even_fee_center' WHERE report_key='breakEvenFeeCenter';
UPDATE `report` set report_key='monthly_balance' WHERE report_key='monthlyBalance';
UPDATE `report` set report_key='analysis_auxiliary_cashboxes'
WHERE report_key='analysisAuxiliaryCash';
UPDATE `report` set report_key='data_kit' WHERE report_key='dataKit';
UPDATE `report` set report_key='purchase_order_analysis' WHERE report_key='purchaseOrderAnalysis';
UPDATE `report` set report_key='inventory_changes' WHERE report_key='inventoryChanges';
UPDATE `report` set report_key='monthly_consumption_report' WHERE report_key='monthlyConsumptionReport';

/*
* @author: lomamech
* @date: 2020-11-23
* @subject : Stock Dashboard
*/
INSERT INTO unit VALUES
(291, '[Stock] Dashboard', 'TREE.STOCK_DASHBOARD','Stock Dashboard', 160,'/stock/dashboard');
55 changes: 55 additions & 0 deletions server/models/migrations/v1.16.0-v1.17.0/migrate.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* Migration from the version 1.16.1 to v1.17.0
*/

/*
* @author: jmcameron
* @date: 2020-11-18
* @pull-release: 5129
* @description: Fix typo in menu report name "System Usage Statistics"
*/
UPDATE `unit` SET name='System Usage Statistics', description='System Usage Statistics' WHERE id=250;

INSERT INTO unit VALUES
(292, '[Stock] Changes Report', 'REPORT.STOCK_CHANGES.TITLE', 'Stock Changes Report', 282, '/reports/stock_changes');

INSERT INTO `report` (`report_key`, `title_key`) VALUES
('stock_changes', 'REPORT.STOCK_CHANGES.TITLE');

/*
* @author: jmcameron
* @date: 2020-11-23
* @pull-release: TBD
* @description: Rename reports to use underscores
*/
UPDATE `report` set report_key='unpaid_invoice_payments' WHERE report_key='unpaid-invoice-payments';
UPDATE `report` set report_key='annual_clients_report' WHERE report_key='annual-clients-report';

UPDATE `report` set report_key='employee_standing' WHERE report_key='employeeStanding';
UPDATE `report` set report_key='debtor_summary' WHERE report_key='debtorSummary';
UPDATE `report` set report_key='client_debts' WHERE report_key='clientDebts';
UPDATE `report` set report_key='client_support' WHERE report_key='clientSupport';
UPDATE `report` set report_key='receovery_capacity' WHERE report_key='recoveryCapacity';
UPDATE `report` set report_key='invoiced_received_stock' WHERE report_key='invoicedReceivedStock';
UPDATE `report` set report_key='system_usage_stat' WHERE report_key='systemUsageStat';
UPDATE `report` set report_key='indicators_report' WHERE report_key='indicatorsReport';
UPDATE `report` set report_key='patient_standing' WHERE report_key='patientStanding';
UPDATE `report` set report_key='cashflow_by_service' WHERE report_key='cashflowByService';
UPDATE `report` set report_key='fee_center' WHERE report_key='feeCenter';
UPDATE `report` set report_key='break_even' WHERE report_key='breakEven';
UPDATE `report` set report_key='break_even_fee_center' WHERE report_key='breakEvenFeeCenter';
UPDATE `report` set report_key='monthly_balance' WHERE report_key='monthlyBalance';
UPDATE `report` set report_key='analysis_auxiliary_cashboxes'
WHERE report_key='analysisAuxiliaryCash';
UPDATE `report` set report_key='data_kit' WHERE report_key='dataKit';
UPDATE `report` set report_key='purchase_order_analysis' WHERE report_key='purchaseOrderAnalysis';
UPDATE `report` set report_key='inventory_changes' WHERE report_key='inventoryChanges';
UPDATE `report` set report_key='monthly_consumption_report' WHERE report_key='monthlyConsumptionReport';

/*
* @author: lomamech
* @date: 2020-11-23
* @subject : Stock Dashboard
*/
INSERT INTO unit VALUES
(291, '[Stock] Dashboard', 'TREE.STOCK_DASHBOARD','Stock Dashboard', 160,'/stock/dashboard');

0 comments on commit 0f8f50b

Please sign in to comment.