summaryrefslogtreecommitdiffstats
path: root/upgrading/4.6.0.txt
blob: 45740f4070f1cf1481a80ad0dcb678555d6433ab (plain)
1
2
3
4
5
6
7
8
9
10
11
1. Add DepDesc column to PackageDepends and split dependency names:

---
ALTER TABLE PackageDepends ADD COLUMN DepDesc VARCHAR(255) NULL DEFAULT NULL;
UPDATE PackageDepends
	SET DepDesc = SUBSTRING(DepName FROM POSITION(': ' IN DepName) + 2)
	WHERE POSITION(': ' IN DepName) > 0;
UPDATE PackageDepends
	SET DepName = SUBSTRING(DepName FROM 1 FOR POSITION(': ' IN DepName) - 1)
	WHERE POSITION(': ' IN DepName) > 0;
---