Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.WPKGlobalSwitchSetting ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== 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 ===== <code 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 </code> database/tables/pears_wpkglobalswitchsetting.txt Last modified: 2026/08/07 19:24by 127.0.0.1