PHP Classes

File: SQL File

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   database/migrations/v1.9.3.8_system_default_echo_interface.sql   Download  
File: database/migrations/v1.9.3.8_system_default_echo_interface.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 1 month ago
Size: 902 bytes
 

Contents

Class file image Download
-- Migration: 1.9.3.8 - Add system_choice option for default echo interface -- Update CHECK constraint to include 'system_choice' ALTER TABLE user_settings DROP CONSTRAINT IF EXISTS user_settings_default_echo_list_check; ALTER TABLE user_settings ADD CONSTRAINT user_settings_default_echo_list_check CHECK (default_echo_list IN ('reader', 'echolist', 'system_choice')); -- Update default value to 'system_choice' ALTER TABLE user_settings ALTER COLUMN default_echo_list SET DEFAULT 'system_choice'; -- Update existing 'reader' values to 'system_choice' so they get the new system default UPDATE user_settings SET default_echo_list = 'system_choice' WHERE default_echo_list = 'reader'; -- Update comment COMMENT ON COLUMN user_settings.default_echo_list IS 'User preference for default echo area list view: reader (message list), echolist (forum list), or system_choice (use BBS-wide default)';