From 18d2eee3e9387dc975e4abd7800f806d13eb129c Mon Sep 17 00:00:00 2001 From: mbayopanda Date: Tue, 11 Jun 2019 10:20:17 +0100 Subject: [PATCH] fix depot path --- server/models/migrations/next/migrations.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/models/migrations/next/migrations.sql b/server/models/migrations/next/migrations.sql index 70804413c3..ca5316b5a8 100644 --- a/server/models/migrations/next/migrations.sql +++ b/server/models/migrations/next/migrations.sql @@ -200,3 +200,12 @@ ALTER TABLE invoice_invoicing_fee ADD PRIMARY KEY (invoice_uuid, invoicing_fee_i * @date: 2019-05-31 */ 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";