Skip to content

Commit

Permalink
Merge #3762
Browse files Browse the repository at this point in the history
3762: Fix depot path r=jniles a=mbayopanda

This PR add in the migration script updates for depot management path

Co-authored-by: mbayopanda <mbayopanda@gmail.com>
Co-authored-by: Jonathan Niles <jniles@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 15, 2019
2 parents c13c5a4 + 75ca9e2 commit d2bc25a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion server/models/migrations/next/migrations.sql
Expand Up @@ -201,6 +201,15 @@ ALTER TABLE invoice_invoicing_fee ADD PRIMARY KEY (invoice_uuid, invoicing_fee_i
*/
ALTER TABLE `service` ADD COLUMN project_id SMALLINT(5) UNSIGNED NOT NULL;

/*
* @author: mbayopanda
* @date: 2019-06-11
* @description:
* fix depot path, the id is 20, but we just use name and key
* to be sure we update depot for all databases
*/
UPDATE unit SET path="/depots" WHERE `name`="Depot Management" AND `key`="DEPOT.TITLE";


/*
* @author: jeremielodi
Expand Down Expand Up @@ -240,4 +249,4 @@ END$$
DELIMITER ;

-- update columns
call UpdatePeriodLabels();
call UpdatePeriodLabels();

0 comments on commit d2bc25a

Please sign in to comment.