ALTER TABLE `documents` ADD `DocumentOrder` INT(11) NOT NULL AFTER `SectionOrder`;
ALTER TABLE `documents` DROP COLUMN `SectionOrder`;

UPDATE `folders` SET `FolderOrder`= 0 WHERE 1