====== pears.WPKGlobalSwitchSetting ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Individual values set for Woodpecker Switches. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **Location** | char(20) | NOT NULL | 'Global' | Allows localisation of switch settings | | **WPKGlobalSwitchID** | char(20) | NOT NULL | | | | Value | long varchar | NULL | | | ===== Primary Key ===== * Location, WPKGlobalSwitchID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== ^ Name ^ Timing ^ Event ^ | WPKTrackSwitchSettingChange | after | insert,delete,update order 1 | ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."WPKGlobalSwitchSetting" -- Table comment: Individual values set for Woodpecker Switches. -- Statement count: 5 CREATE TABLE "pears"."WPKGlobalSwitchSetting" ( "Location" char(20) NOT NULL DEFAULT 'Global' ,"WPKGlobalSwitchID" char(20) NOT NULL ,"Value" long varchar NULL ,PRIMARY KEY ("Location" ASC,"WPKGlobalSwitchID" ASC) ) go COMMENT ON COLUMN "pears"."WPKGlobalSwitchSetting"."Location" IS 'Allows localisation of switch settings' go COMMENT ON TABLE "pears"."WPKGlobalSwitchSetting" IS 'Individual values set for Woodpecker Switches.' go create trigger "WPKTrackSwitchSettingChange" after insert,delete,update order 1 on "pears"."WPKGlobalSwitchSetting" for each statement begin call "WPKTrackChange"('S','*') end go COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."WPKGlobalSwitchSetting"."WPKTrackSwitchSettingChange" IS {create trigger WPKTrackSwitchSettingChange after insert,delete,update order 1 on WPKGlobalSwitchSetting for each statement begin call WPKTrackChange('S','*') end } go