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

12 lines
355 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);