1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00
phorge-phorge/resources/sql/patches/124.subpriority.sql
2012-04-02 12:26:50 -07:00

11 lines
352 B
SQL

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);