ALTER TABLE mail_user_labels
    ADD COLUMN sort_order INT NOT NULL DEFAULT 0;

CREATE INDEX idx_mail_user_labels_user_sort ON mail_user_labels(user_id, sort_order);
