1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 02:12:41 +01:00
phorge-phorge/resources/sql/patches/124.subpriority.sql

12 lines
352 B
MySQL
Raw Normal View History

ALTER TABLE phabricator_maniphest.maniphest_task
ADD subpriority DOUBLE NOT NULL;
ALTER TABLE phabricator_maniphest.maniphest_task
ADD KEY (priority, subpriority);
/* Seed the subpriority column with reasonable values that keep order stable. */
UPDATE phabricator_maniphest.maniphest_task
SET subpriority = (UNIX_TIMESTAMP() - dateModified);