1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 01:50:55 +01:00
phorge-phorge/resources/sql/patches/124.subpriority.sql

10 lines
353 B
MySQL
Raw Normal View History

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