···115115COMMENT ON COLUMN usersessions.session_key IS 'Secret hash that on match allows a session to be revived. Upon successful revival, the id is replaced with the id of the session that revived the user session.';
116116COMMENT ON COLUMN usersessions.last_touched IS 'Changed on INSERT or UPDATE to allow garbage cleanup of user sessions if they are older than 30 days.';
117117118118--- Indices for performance
118118+-- Indices for performance ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119119CREATE INDEX IF NOT EXISTS idx_items_author ON items(author_id);
120120CREATE INDEX IF NOT EXISTS idx_timelines_ts ON timelines(timestamp);
121121CREATE INDEX IF NOT EXISTS idx_users_instance ON users(instance_id);
···137137138138DROP TYPE IF EXISTS item_type_enum;
139139DROP TYPE IF EXISTS log_level;
140140-DROP COMMENT IF EXISTS
140140+DROP TYPE IF EXISTS federationlevel;