Skip to content
Snippets Groups Projects
Commit a678f55a authored by Jared Hancock's avatar Jared Hancock
Browse files

Delay dropping columns from the %config table

When the `ostversion` column is removed from the %config table, the system
will immediately switch to database-backed sessions. Because the
administrator upgrading the system originally logged in with a file-based
session, it must be migrated to the database before removing the column.
parent 69032db3
No related branches found
No related tags found
No related merge requests found
-- Drop columns we nolonger need - (must be at the very bottom or after session table is created)
ALTER TABLE `%TABLE_PREFIX%config`
DROP COLUMN `ostversion`,
DROP COLUMN `timezone_offset`,
DROP COLUMN `api_passphrase`;
-- Drop fields we no longer need in the reference table.
ALTER TABLE `%TABLE_PREFIX%ticket_attachment`
DROP `file_size`,
DROP `file_name`,
DROP `file_key`,
DROP `updated`,
DROP `isdeleted`;
-- Drop fields we no longer need in staff table.
ALTER TABLE `%TABLE_PREFIX%staff`
DROP `append_signature`,
DROP `timezone_offset`;
-- Drop fields we no longer need in department table.
ALTER TABLE `%TABLE_PREFIX%department`
DROP `can_append_signature`;
-- Banlist table has been migrated to the email_filter_rule table
DROP TABLE `%TABLE_PREFIX%email_banlist`;
......@@ -302,12 +302,6 @@ CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%faq_topic` (
PRIMARY KEY (`faq_id`,`topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Drop columns we nolonger need - (must be at the very bottom or after session table is created)
ALTER TABLE `%TABLE_PREFIX%config`
DROP COLUMN `ostversion`,
DROP COLUMN `timezone_offset`,
DROP COLUMN `api_passphrase`;
UPDATE `%TABLE_PREFIX%config`
SET `schema_signature`='7be60a8432e44989e782d5914ef784d2';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment