text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
-- 05.07.2016 11:29 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543119,0,'PMM_ContractedPriceOrQty',TO_TIMESTAMP('2016-07-05 11:29:20','YYYY-MM-DD HH24:MI:SS'),100,'Vertrag','de.metas.procurement','Y','V','V',TO_TIMESTAMP('2016-07-05 11:29:20','YYYY-MM-DD HH24:MI:SS'),100) ; -- 05.07.2016 11:29 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543119 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 05.07.2016 11:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=14,Updated=TO_TIMESTAMP('2016-07-05 11:32:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13448 ; -- 05.07.2016 15:09 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,554807,543119,0,20,540745,'N','PMM_ContractedPriceOrQty','(case when PMM_PurchaseCandidate.C_Flatrate_DataEntry_ID is not null and exists ( select 1 from C_Flatrate_DataEntry de where de.C_Flatrate_DataEntry_ID=PMM_PurchaseCandidate.C_Flatrate_DataEntry_ID and (coalesce(de.Qty_Planned, 0)<>0 or coalesce(de.FlatrateAmtPerUOM, 0)<>0) ) then ''Y'' else ''N'' end) ',TO_TIMESTAMP('2016-07-05 15:09:29','YYYY-MM-DD HH24:MI:SS'),100,'N','Vertrag','de.metas.procurement',1,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','V',0,TO_TIMESTAMP('2016-07-05 15:09:29','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 05.07.2016 15:09 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=554807 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,554807,557040,0,540725,TO_TIMESTAMP('2016-07-05 15:10:19','YYYY-MM-DD HH24:MI:SS'),100,'Vertrag',1,'de.metas.procurement','Y','Y','Y','N','N','N','N','N','V',TO_TIMESTAMP('2016-07-05 15:10:19','YYYY-MM-DD HH24:MI:SS'),100) ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=557040 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557040 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556920 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556858 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556700 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556701 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556798 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556857 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556698 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=160,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556699 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556859 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=180,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556692 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556915 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=200,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556695 ; -- 05.07.2016 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=210,Updated=TO_TIMESTAMP('2016-07-05 15:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556668 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556920 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557040 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556858 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556700 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556701 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556798 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556857 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556698 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556699 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556859 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556692 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=200,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556915 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=210,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556695 ; -- 05.07.2016 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=220,Updated=TO_TIMESTAMP('2016-07-05 15:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556668 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557040 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556858 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556700 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556701 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556798 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556857 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=160,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556698 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556699 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=180,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556859 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556692 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=200,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556915 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=210,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556695 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=220,Updated=TO_TIMESTAMP('2016-07-05 15:22:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556668 ; -- 05.07.2016 15:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-07-05 15:22:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557040 ;
the_stack
-- SQL Test Suite, V6.0, Schema Definition, schema1.std -- 59-byte ID -- TEd Version # -- date_time print -- *************************************************************** -- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID HU ****** -- *************************************************************** -- This file defines the base tables used in most of the tests. -- This is a standard schema definition. CREATE SCHEMA --O AUTHORIZATION HU; HU; set schema hu; CREATE TABLE BASE_TESTREPORT (TESTNO CHAR(4), RESULT CHAR(4), TESTTYPE CHAR(3)); CREATE TABLE HU.ECCO (C1 CHAR(2)); CREATE TABLE STAFF (EMPNUM CHAR(3) NOT NULL CONSTRAINT STAFF_UNIQUE UNIQUE, EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15)); CREATE TABLE PROJ (PNUM CHAR(3) NOT NULL UNIQUE, PNAME CHAR(20), PTYPE CHAR(6), BUDGET DECIMAL(9), CITY CHAR(15)) ; CREATE TABLE WORKS (EMPNUM CHAR(3) NOT NULL, PNUM CHAR(3) NOT NULL, HOURS DECIMAL(5), --O UNIQUE(EMPNUM,PNUM)) constraint worksc1 UNIQUE(EMPNUM,PNUM) ); CREATE TABLE FIPS1 (FIPS_TEST CHAR(20)); CREATE TABLE STAFF1 (EMPNUM CHAR(3) NOT NULL, EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15)); CREATE TABLE PROJ1 (PNUM CHAR(3) NOT NULL UNIQUE, PNAME CHAR(20), PTYPE CHAR(6), BUDGET DECIMAL(9), CITY CHAR(15)); CREATE TABLE WORKS1(EMPNUM CHAR(3) NOT NULL, PNUM CHAR(3) NOT NULL, HOURS DECIMAL(5), --O UNIQUE(EMPNUM, PNUM)) constraint works1c1 UNIQUE(EMPNUM, PNUM) ); CREATE TABLE STAFF3 (EMPNUM CHAR(3) NOT NULL, EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15)); CREATE TABLE STAFF4 (EMPNUM CHAR(3) NOT NULL, EMPNAME CHAR(20), GRADE DECIMAL(4), CITY CHAR(15)); -- we use the keyword BIGINT, so I have changed -- the name of this table. CREATE TABLE LONGINTTAB (LONG_INT DECIMAL(15)); CREATE TABLE TEMP_S (EMPNUM CHAR(3), GRADE DECIMAL(4), CITY CHAR(15)); CREATE TABLE TMP (T1 CHAR (10), T2 DECIMAL(2), T3 CHAR (10)); CREATE TABLE AA (CHARTEST CHAR(20)); CREATE TABLE BB (CHARTEST CHAR); CREATE TABLE CC (CHARTEST CHARACTER(20)); CREATE TABLE DD (CHARTEST CHARACTER); CREATE TABLE EE (INTTEST INTEGER); CREATE TABLE FF (INTTEST INT); CREATE TABLE GG (REALTEST REAL); CREATE TABLE HH (SMALLTEST SMALLINT); CREATE TABLE II (DOUBLETEST DOUBLE PRECISION); CREATE TABLE JJ (FLOATTEST FLOAT); CREATE TABLE KK (FLOATTEST FLOAT(32)); CREATE TABLE LL (NUMTEST NUMERIC(13,6)); CREATE TABLE MM (NUMTEST NUMERIC); CREATE TABLE MM2 (NUMTEST NUMERIC(10)); CREATE TABLE NN (NUMTEST NUMERIC(9)); CREATE TABLE OO (NUMTEST NUMERIC(9)); CREATE TABLE PP (NUMTEST DECIMAL(13,6)); CREATE TABLE QQ (NUMTEST DECIMAL); CREATE TABLE RR (NUMTEST DECIMAL(8)); CREATE TABLE SS (NUMTEST DEC(13,6)); CREATE TABLE P1 (NUMTEST NUMERIC(1)); CREATE TABLE P7 (NUMTEST NUMERIC(7)); CREATE TABLE P12 (NUMTEST NUMERIC(12)); CREATE TABLE P15 (NUMTEST NUMERIC(15)); CREATE TABLE VTABLE (COL1 INTEGER, COL2 INTEGER, COL3 INTEGER, COL4 INTEGER, COL5 DECIMAL(7,2)); CREATE TABLE UPUNIQ (NUMKEY DECIMAL(3) NOT NULL UNIQUE, COL2 CHAR(2)); CREATE TABLE TEXT80 (TEXXT CHAR(80)); CREATE TABLE TEXT132 (TEXXT CHAR(132)); CREATE TABLE TEXT240 (TEXXT CHAR(240)); CREATE TABLE TEXT256 (TEXXT VARCHAR(256)); CREATE TABLE TEXT512 (TEXXT VARCHAR(512)); CREATE TABLE TEXT1024 (TEXXT VARCHAR(1024)); -- The following tables are used to test the limitations (12-14-88) CREATE TABLE T240(STR240 CHAR(240)); CREATE TABLE DEC15(COL1 DECIMAL(15,7)); CREATE TABLE FLO15(COL1 FLOAT(15)); CREATE TABLE INT10(COL1 INTEGER, COL2 SMALLINT); CREATE TABLE T100(C1 CHAR(2),C2 CHAR(2),C3 CHAR(2),C4 CHAR(2), C5 CHAR(2),C6 CHAR(2),C7 CHAR(2),C8 CHAR(2), C9 CHAR(2),C10 CHAR(2),C11 CHAR(2),C12 CHAR(2), C13 CHAR(2),C14 CHAR(2),C15 CHAR(2),C16 CHAR(2), C17 CHAR(2),C18 CHAR(2),C19 CHAR(2),C20 CHAR(2), C21 CHAR(2),C22 CHAR(2),C23 CHAR(2),C24 CHAR(2), C25 CHAR(2),C26 CHAR(2),C27 CHAR(2),C28 CHAR(2), C29 CHAR(2),C30 CHAR(2),C31 CHAR(2),C32 CHAR(2), C33 CHAR(2),C34 CHAR(2),C35 CHAR(2),C36 CHAR(2), C37 CHAR(2),C38 CHAR(2),C39 CHAR(2),C40 CHAR(2), C41 CHAR(2),C42 CHAR(2),C43 CHAR(2),C44 CHAR(2), C45 CHAR(2),C46 CHAR(2),C47 CHAR(2),C48 CHAR(2), C49 CHAR(2),C50 CHAR(2),C51 CHAR(2),C52 CHAR(2), C53 CHAR(2),C54 CHAR(2),C55 CHAR(2),C56 CHAR(2), C57 CHAR(2),C58 CHAR(2),C59 CHAR(2),C60 CHAR(2), C61 CHAR(2),C62 CHAR(2),C63 CHAR(2),C64 CHAR(2), C65 CHAR(2),C66 CHAR(2),C67 CHAR(2),C68 CHAR(2), C69 CHAR(2),C70 CHAR(2),C71 CHAR(2),C72 CHAR(2), C73 CHAR(2),C74 CHAR(2),C75 CHAR(2),C76 CHAR(2), C77 CHAR(2),C78 CHAR(2),C79 CHAR(2),C80 CHAR(2), C81 CHAR(2),C82 CHAR(2),C83 CHAR(2),C84 CHAR(2), C85 CHAR(2),C86 CHAR(2),C87 CHAR(2),C88 CHAR(2), C89 CHAR(2),C90 CHAR(2),C91 CHAR(2),C92 CHAR(2), C93 CHAR(2),C94 CHAR(2),C95 CHAR(2),C96 CHAR(2), C97 CHAR(2),C98 CHAR(2),C99 CHAR(2),C100 CHAR(2)); CREATE TABLE T2000(STR110 CHAR(110),STR120 CHAR(120), STR130 CHAR(130),STR140 CHAR(140), STR150 CHAR(150),STR160 CHAR(160), STR170 CHAR(170),STR180 CHAR(180), STR190 CHAR(190),STR200 CHAR(200), STR210 CHAR(210),STR216 CHAR(216)); CREATE TABLE T8(COL1 CHAR(2) NOT NULL,COL2 CHAR(4) NOT NULL, COL3 CHAR(6) NOT NULL,COL4 CHAR(8) NOT NULL, COL5 CHAR(10) NOT NULL,COL6 CHAR(12) NOT NULL, COL7 CHAR(14),COL8 CHAR(16), --O UNIQUE(COL1,COL2,COL3,COL4,COL5,COL6)); constraint t8c1 UNIQUE(COL1,COL2,COL3,COL4,COL5,COL6)); CREATE TABLE T118(STR118 CHAR(118) NOT NULL UNIQUE); CREATE TABLE T4(STR110 CHAR(110) NOT NULL, NUM6 NUMERIC(6) NOT NULL, COL3 CHAR(10),COL4 CHAR(20), --O UNIQUE(STR110,NUM6)) constraint t4c1 UNIQUE(STR110,NUM6) ); CREATE TABLE T12(COL1 CHAR(1), COL2 CHAR(2), COL3 CHAR(4), COL4 CHAR(6), COL5 CHAR(8), COL6 CHAR(10), COL7 CHAR(20), COL8 CHAR(30), COL9 CHAR(40), COL10 CHAR(50), COL11 INTEGER, COL12 INTEGER); CREATE TABLE NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1), DOLLARS INTEGER); CREATE TABLE SV (NUMTEST NUMERIC(8,3)); CREATE TABLE JJ_20 (FLOATTEST FLOAT(20)); CREATE TABLE PP_15 (NUMTEST DECIMAL(15,15)); CREATE TABLE PP_7 (NUMTEST DECIMAL(15,7)); CREATE TABLE P15_15 (NUMTEST NUMERIC(15,15)); CREATE TABLE P15_7 (NUMTEST NUMERIC(15,7)); CREATE TABLE TEMP_OBSERV (YEAR_OBSERV NUMERIC(4), CITY CHAR(10), MAX_TEMP NUMERIC(5,2), MIN_TEMP NUMERIC(5,2)); CREATE TABLE TOKENS (PROG_NO INT, TOKEN_NO INT); CREATE TABLE WHICH_SCHEMA1 (C1 CHAR (50)); -- ************* create view statements follow ************* CREATE VIEW TESTREPORT AS SELECT TESTNO, RESULT, TESTTYPE FROM BASE_TESTREPORT; CREATE VIEW CELSIUS_OBSERV (CITY, YEAR_OBSERV, MIN_C, MAX_C) AS SELECT CITY, YEAR_OBSERV, (MIN_TEMP - 32) * 5 / 9, (MAX_TEMP - 32) * 5 / 9 FROM TEMP_OBSERV; CREATE VIEW MULTI_YEAR_OBSERV (CITY, HIGH, LOW) AS SELECT CITY, AVG(MAX_TEMP), AVG(MIN_TEMP) FROM TEMP_OBSERV GROUP BY CITY; CREATE VIEW EXTREME_TEMPS (YEAR_OBSERV, HIGH, LOW) AS SELECT YEAR_OBSERV, MAX(MAX_TEMP), MIN(MIN_TEMP) FROM TEMP_OBSERV GROUP BY YEAR_OBSERV; CREATE VIEW SET_TEST (EMP1, EMP_AVG, EMP_MAX) AS SELECT STAFF.EMPNUM, AVG(HOURS), MAX(HOURS) FROM STAFF, WORKS GROUP BY STAFF.EMPNUM; CREATE VIEW DUP_COL (EMP1, PNO, HOURS, HOURS_2) AS SELECT EMPNUM, PNUM, HOURS, HOURS * 2 FROM WORKS; CREATE VIEW STAFFV1 AS SELECT * FROM STAFF WHERE GRADE >= 12; CREATE VIEW STAFFV2 AS SELECT * FROM STAFF WHERE GRADE >= 12 --0 WITH CHECK OPTION ; CREATE VIEW STAFFV2_VIEW AS SELECT * FROM STAFFV2 WHERE CITY = 'Vienna'; CREATE VIEW DOMAIN_VIEW AS SELECT * FROM WORKS WHERE EMPNUM = 'E1' AND HOURS = 80 OR EMPNUM = 'E2' AND HOURS = 40 OR EMPNUM = 'E4' AND HOURS = 20 --0 WITH CHECK OPTION ; CREATE VIEW STAFF2 AS SELECT * FROM STAFF --0 WITH CHECK OPTION ; CREATE VIEW STAFF_WORKS_DESIGN (NAME,COST,PROJECT) AS SELECT EMPNAME,HOURS*2*GRADE,PNAME FROM PROJ,STAFF,WORKS WHERE STAFF.EMPNUM=WORKS.EMPNUM AND WORKS.PNUM=PROJ.PNUM AND PTYPE='Design'; CREATE VIEW SUBSP (EMPNUM,PNUM,HOURS) AS SELECT EMPNUM,PNUM,HOURS FROM WORKS WHERE EMPNUM='E3' --0 WITH CHECK OPTION ; CREATE VIEW TEMP_SS(EMPNUM,GRADE,CITY) AS SELECT EMPNUM,GRADE,CITY FROM STAFF WHERE GRADE > 12 --0 WITH CHECK OPTION ; CREATE VIEW V_WORKS1 AS SELECT * FROM WORKS WHERE HOURS > 15 --0 WITH CHECK OPTION ; CREATE VIEW V_WORKS2 AS SELECT * FROM V_WORKS1 WHERE EMPNUM = 'E1' OR EMPNUM = 'E6'; CREATE VIEW V_WORKS3 AS SELECT * FROM V_WORKS2 WHERE PNUM = 'P2' OR PNUM = 'P7' --0 WITH CHECK OPTION ; CREATE VIEW UPDATE_VIEW1 AS SELECT ALL CITY FROM PROJ; CREATE VIEW UPDATE_VIEW2 AS SELECT HOURS, EMPNUM, PNUM FROM WORKS WHERE HOURS IN (10, 20, 40); CREATE VIEW UPDATE_VIEW3 AS SELECT * FROM WORKS WHERE PNUM BETWEEN 'P2' AND 'P4' AND EMPNUM NOT BETWEEN 'E2' AND 'E3'; CREATE VIEW UPDATE_VIEW4 AS SELECT PNUM, EMPNUM FROM WORKS WHERE PNUM LIKE '_2%'; CREATE VIEW UPDATE_VIEW5 AS SELECT * FROM STAFF WHERE EMPNAME IS NOT NULL AND CITY IS NULL; CREATE VIEW UPDATE_VIEW6 AS SELECT EMPNAME, CITY, GRADE FROM STAFF WHERE EMPNAME >= 'Betty' AND EMPNUM < 'E35' OR CITY <= 'Deale' AND GRADE > 12 OR GRADE = 13 AND CITY <> 'Akron'; CREATE VIEW UPDATE_VIEW7 AS SELECT EMPNAME, CITY, GRADE FROM STAFFV2 WHERE EMPNAME >= 'Betty' AND EMPNUM < 'E35' OR CITY <= 'Deale' AND GRADE > 12 OR GRADE = 13 AND CITY <> 'Akron'; CREATE VIEW UPDATE_VIEW8 AS SELECT MYTABLE.EMPNUM, MYTABLE.EMPNAME FROM STAFF MYTABLE WHERE MYTABLE.GRADE = 12; CREATE VIEW UPDATE_VIEW9 AS SELECT EMPNAME, CITY, GRADE FROM STAFF WHERE NOT EMPNAME >= 'Betty' AND EMPNUM <= 'E35' OR NOT (CITY <= 'Deale') AND GRADE > 9 AND NOT (GRADE = 13 AND CITY <> 'Akron') OR NOT CITY IN ('Vienna','New York','Deale'); CREATE VIEW VSTAFF3 AS SELECT * FROM STAFF3; disconnect;
the_stack
--========================================================================== -- -- Tables -- --========================================================================== -- DROP TABLE IF EXISTS person CASCADE; DROP TABLE IF EXISTS login CASCADE; DROP TABLE IF EXISTS project CASCADE; DROP TABLE IF EXISTS team_member_project_assn CASCADE; DROP TABLE IF EXISTS project_status_type CASCADE; DROP TABLE IF EXISTS person_with_lock CASCADE; DROP TABLE IF EXISTS related_project_assn CASCADE; DROP TABLE IF EXISTS milestone CASCADE; DROP TABLE IF EXISTS address CASCADE; CREATE TABLE person ( id BIGSERIAL NOT NULL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL ) ; CREATE INDEX IDX_person_1 ON person(last_name); CREATE TABLE login ( id BIGSERIAL NOT NULL PRIMARY KEY, person_id BIGSERIAL NOT NULL references person(id) UNIQUE, username VARCHAR(20) NOT NULL UNIQUE, password VARCHAR(20), is_enabled INTEGER NOT NULL ) ; CREATE TABLE project_status_type ( id BIGSERIAL NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE, description TEXT, guidelines TEXT ) ; CREATE TABLE project ( id BIGSERIAL NOT NULL PRIMARY KEY, project_status_type_id INTEGER NOT NULL REFERENCES project_status_type(id), manager_person_id INTEGER references person(id), name VARCHAR(100) NOT NULL, description TEXT, start_date DATE, end_date DATE, budget DECIMAL, spent DECIMAL ) ; CREATE INDEX IDX_project_1 ON project (project_status_type_id); CREATE INDEX IDX_project_2 ON project(manager_person_id); CREATE TABLE team_member_project_assn ( person_id INTEGER NOT NULL references person(id), project_id INTEGER NOT NULL references project(id) ) ; CREATE INDEX IDX_teammemberprojectassn_2 on team_member_project_assn (project_id); CREATE TABLE person_with_lock ( id BIGSERIAL NOT NULL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, sys_timestamp TIMESTAMP ) ; CREATE TABLE related_project_assn ( project_id INTEGER NOT NULL references project(id), child_project_id INTEGER NOT NULL references project(id) ) ; CREATE INDEX IDX_relatedprojectassn_2 ON related_project_assn(child_project_id); CREATE TABLE milestone ( id BIGSERIAL NOT NULL PRIMARY KEY, project_id INTEGER NOT NULL references project(id), name VARCHAR(50) NOT NULL ) ; CREATE INDEX IDX_milestoneproj_1 ON milestone(project_id); CREATE TABLE address ( id BIGSERIAL NOT NULL PRIMARY KEY, person_id INTEGER references person(id), street VARCHAR(100) NOT NULL, city VARCHAR(100) ) ; CREATE INDEX IDX_address_1 ON address (person_id); --========================================================================== -- -- Type Data -- --========================================================================== -- INSERT INTO project_status_type (name, description, guidelines) VALUES ('Open', 'The project is currently active', 'All projects that we are working on should be in this state'); INSERT INTO project_status_type (name, description, guidelines) VALUES ('Cancelled', 'The project has been canned', null); INSERT INTO project_status_type (name, description, guidelines) VALUES ('Completed', 'The project has been completed successfully', 'Celebrate successes!'); --========================================================================== -- -- Example Data -- --========================================================================== -- INSERT INTO person(first_name, last_name) VALUES ('John', 'Doe'); INSERT INTO person(first_name, last_name) VALUES ('Kendall', 'Public'); INSERT INTO person(first_name, last_name) VALUES ('Ben', 'Robinson'); INSERT INTO person(first_name, last_name) VALUES ('Mike', 'Ho'); INSERT INTO person(first_name, last_name) VALUES ('Alex', 'Smith'); INSERT INTO person(first_name, last_name) VALUES ('Wendy', 'Smith'); INSERT INTO person(first_name, last_name) VALUES ('Karen', 'Wolfe'); INSERT INTO person(first_name, last_name) VALUES ('Samantha', 'Jones'); INSERT INTO person(first_name, last_name) VALUES ('Linda', 'Brady'); INSERT INTO person(first_name, last_name) VALUES ('Jennifer', 'Smith'); INSERT INTO person(first_name, last_name) VALUES ('Brett', 'Carlisle'); INSERT INTO person(first_name, last_name) VALUES ('Jacob', 'Pratt'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('John', 'Doe'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Kendall', 'Public'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Ben', 'Robinson'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Mike', 'Ho'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Alfred', 'Newman'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Wendy', 'Johnson'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Karen', 'Wolfe'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Samantha', 'Jones'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Linda', 'Brady'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Jennifer', 'Smith'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Brett', 'Carlisle'); INSERT INTO person_with_lock(first_name, last_name) VALUES ('Jacob', 'Pratt'); INSERT INTO login(person_id, username, password, is_enabled) VALUES (1, 'jdoe', 'p@$$.w0rd', 0); INSERT INTO login(person_id, username, password, is_enabled) VALUES (3, 'brobinson', 'p@$$.w0rd', 1); INSERT INTO login(person_id, username, password, is_enabled) VALUES (4, 'mho', 'p@$$.w0rd', 1); INSERT INTO login(person_id, username, password, is_enabled) VALUES (7, 'kwolfe', 'p@$$.w0rd', 0); INSERT INTO project(project_status_type_id, manager_person_id, name, description, start_date, end_date, budget, spent) VALUES (3, 7, 'ACME Website Redesign', 'The redesign of the main website for ACME Incorporated', '2004-03-01', '2004-07-01', '9560.25', '10250.75'); INSERT INTO project(project_status_type_id, manager_person_id, name, description, start_date, end_date, budget, spent) VALUES (1, 4, 'State College HR System', 'Implementation of a back-office Human Resources system for State College', '2006-02-15', NULL, '80500.00', '73200.00'); INSERT INTO project(project_status_type_id, manager_person_id, name, description, start_date, end_date, budget, spent) VALUES (1, 1, 'Blueman Industrial Site Architecture', 'Main website architecture for the Blueman Industrial Group', '2006-03-01', '2006-04-15', '2500.00', '4200.50'); INSERT INTO project(project_status_type_id, manager_person_id, name, description, start_date, end_date, budget, spent) VALUES (2, 7, 'ACME Payment System', 'Accounts Payable payment system for ACME Incorporated', '2005-08-15', '2005-10-20', '5124.67', '5175.30'); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (2, 1); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (5, 1); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (6, 1); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (7, 1); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (8, 1); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (2, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (4, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (5, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (7, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (9, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (10, 2); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (1, 3); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (4, 3); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (6, 3); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (8, 3); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (10, 3); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (1, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (2, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (3, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (5, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (8, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (11, 4); INSERT INTO team_member_project_assn (person_id, project_id) VALUES (12, 4); INSERT INTO related_project_assn (project_id, child_project_id) VALUES(1, 3); INSERT INTO related_project_assn (project_id, child_project_id) VALUES(1, 4); INSERT INTO related_project_assn (project_id, child_project_id) VALUES(4, 1); INSERT INTO address (person_id, street, city) VALUES(1, '1 Love Drive', 'Phoenix'); INSERT INTO address (person_id, street, city) VALUES(2, '2 Doves and a Pine Cone Dr.', 'Dallas'); INSERT INTO address (person_id, street, city) VALUES(3, '3 Gold Fish Pl.', 'New York'); INSERT INTO address (person_id, street, city) VALUES(3, '323 W QCubed', 'New York'); INSERT INTO address (person_id, street, city) VALUES(5, '22 Elm St', 'Palo Alto'); INSERT INTO address (person_id, street, city) VALUES(7, '1 Pine St', 'San Jose'); INSERT INTO address (person_id, street, city) VALUES(7, '421 Central Expw', 'Mountain View'); INSERT INTO milestone (project_id, name) VALUES (1, 'Milestone A'); INSERT INTO milestone (project_id, name) VALUES (1, 'Milestone B'); INSERT INTO milestone (project_id, name) VALUES (1, 'Milestone C'); INSERT INTO milestone (project_id, name) VALUES (2, 'Milestone D'); INSERT INTO milestone (project_id, name) VALUES (2, 'Milestone E'); INSERT INTO milestone (project_id, name) VALUES (3, 'Milestone F'); INSERT INTO milestone (project_id, name) VALUES (4, 'Milestone G'); INSERT INTO milestone (project_id, name) VALUES (4, 'Milestone H'); INSERT INTO milestone (project_id, name) VALUES (4, 'Milestone I'); INSERT INTO milestone (project_id, name) VALUES (4, 'Milestone J');
the_stack
-- -- 2017-07-26T16:14:24.614 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543389,0,'M_Replenish_ID',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','M_Replenish','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:14:24.615 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543389 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2017-07-26T16:14:24.656 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,557026,543389,0,13,249,'N','M_Replenish_ID',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,'D',10,'Y','Y','N','N','N','Y','Y','N','N','N','N','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,1) ; -- 2017-07-26T16:14:24.660 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=557026 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2017-07-26T16:14:24.676 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER SEQUENCE M_REPLENISH_SEQ INCREMENT 1 MINVALUE 1 MAXVALUE 2147483647 RESTART 1000000 ; -- 2017-07-26T16:14:24.677 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_Replenish ADD COLUMN M_Replenish_ID numeric(10,0) NOT NULL DEFAULT nextval('m_replenish_seq') ; -- 2017-07-26T16:14:24.710 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_Replenish DROP CONSTRAINT IF EXISTS m_replenish_pkey ; -- 2017-07-26T16:14:24.712 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_Replenish DROP CONSTRAINT IF EXISTS m_replenish_key ; -- 2017-07-26T16:14:24.712 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_Replenish ADD CONSTRAINT m_replenish_pkey PRIMARY KEY (M_Replenish_ID) ; -- 2017-07-26T16:14:24.755 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557026,559429,0,182,TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','N','N','N','N','N','N','N','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:14:24.755 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=559429 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-07-26T16:14:24.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557026,559430,0,747,TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','N','N','N','N','N','N','N','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:14:24.787 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=559430 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-07-26T16:14:24.818 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557026,559431,0,53045,TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,10,'EE01','Y','Y','N','N','N','N','N','N','N','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:14:24.819 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=559431 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-07-26T16:14:24.852 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557026,559432,0,53033,TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','N','N','N','N','N','N','N','M_Replenish',TO_TIMESTAMP('2017-07-26 16:14:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:14:24.853 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=559432 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-07-26T16:18:36.928 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy) VALUES (0,540400,0,249,TO_TIMESTAMP('2017-07-26 16:18:36','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Y','M_Replenish_Unique_ProductWarehouse','N',TO_TIMESTAMP('2017-07-26 16:18:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:18:36.930 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Index_Table_ID=540400 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2017-07-26T16:18:53.951 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,1957,540801,540400,0,TO_TIMESTAMP('2017-07-26 16:18:53','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2017-07-26 16:18:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:19:03.932 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,1958,540802,540400,0,TO_TIMESTAMP('2017-07-26 16:19:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',20,TO_TIMESTAMP('2017-07-26 16:19:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T16:20:15.299 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Index_Table SET WhereClause='IsActive = ''Y''',Updated=TO_TIMESTAMP('2017-07-26 16:20:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Table_ID=540400 ; -- 2017-07-26T16:20:18.350 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE UNIQUE INDEX M_Replenish_Unique_ProductWarehouse ON M_Replenish (M_Product_ID,M_Warehouse_ID) WHERE IsActive = 'Y' ;
the_stack
-- MySQL dump 10.17 Distrib 10.3.15-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: telegram_bot -- ------------------------------------------------------ -- Server version 10.3.15-MariaDB-1:10.3.15+maria~bionic-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Create Database -- CREATE DATABASE telegram_bot; -- -- Create Database -- USE telegram_bot; -- -- Table structure for table `bot_setting` -- DROP TABLE IF EXISTS `bot_setting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bot_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_id` varchar(200) DEFAULT NULL, `app_name` varchar(100) DEFAULT NULL, `support_chat_id` varchar(100) DEFAULT NULL, `wallet_id` varchar(200) DEFAULT NULL, `wallet_password` varchar(200) DEFAULT NULL, `wallet_second_password` varchar(200) DEFAULT NULL, `jwt_issuer` varchar(3) DEFAULT 'CMS', `jwt_audience` varchar(3) DEFAULT 'All', `jwt_key` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bot_setting` -- LOCK TABLES `bot_setting` WRITE; /*!40000 ALTER TABLE `bot_setting` DISABLE KEYS */; /*!40000 ALTER TABLE `bot_setting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `error_logs` -- DROP TABLE IF EXISTS `error_logs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `error_logs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `error_number` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `error` text CHARACTER SET utf8mb4 DEFAULT NULL, `file` text CHARACTER SET utf8mb4 DEFAULT NULL, `line` text CHARACTER SET utf8mb4 DEFAULT NULL, `source` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `date` timestamp NULL DEFAULT current_timestamp(), `deleted` int(1) NOT NULL DEFAULT 0, `deleted_account_id` int(11) DEFAULT NULL, `deleted_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `error_logs` -- LOCK TABLES `error_logs` WRITE; /*!40000 ALTER TABLE `error_logs` DISABLE KEYS */; /*!40000 ALTER TABLE `error_logs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_account` -- DROP TABLE IF EXISTS `gui_account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(30) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `username` varchar(32) DEFAULT NULL, `password` tinytext DEFAULT NULL, `email` varchar(150) DEFAULT NULL, `profile_img` text DEFAULT NULL, `last_login_date` timestamp NULL DEFAULT NULL ON UPDATE current_timestamp(), `last_login_ip` varchar(20) DEFAULT NULL, `login_attempt` int(1) NOT NULL DEFAULT 0, `account_group` int(1) DEFAULT NULL, `inscription_date` timestamp NULL DEFAULT NULL, `deleted` int(1) NOT NULL DEFAULT 0, `deleted_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), KEY `account_group` (`account_group`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_account` -- LOCK TABLES `gui_account` WRITE; /*!40000 ALTER TABLE `gui_account` DISABLE KEYS */; INSERT INTO `gui_account` VALUES (1,'BladeBTC','(Admin)','bladebtc','$2y$10$ricm9SeFh3q/NaHAMLE6O.tpuUYjYJVMjYaSIjPMAnOSzM4cSavrG','bladebtc@bladebtc.com','avatar.png','2019-05-21 20:20:51','192.168.0.17',0,1,NULL,0,NULL); /*!40000 ALTER TABLE `gui_account` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_group` -- DROP TABLE IF EXISTS `gui_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(2) NOT NULL, `group_name` varchar(35) NOT NULL, `dashboard` tinytext DEFAULT NULL, PRIMARY KEY (`id`), KEY `group_id` (`group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_group` -- LOCK TABLES `gui_group` WRITE; /*!40000 ALTER TABLE `gui_group` DISABLE KEYS */; INSERT INTO `gui_group` VALUES (1,1,'Admin','dashboard'); /*!40000 ALTER TABLE `gui_group` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_menu` -- DROP TABLE IF EXISTS `gui_menu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `menu_id` int(1) DEFAULT NULL, `title` varchar(100) NOT NULL, `icon` tinytext NOT NULL, `display_order` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `menu_id` (`menu_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_menu` -- LOCK TABLES `gui_menu` WRITE; /*!40000 ALTER TABLE `gui_menu` DISABLE KEYS */; INSERT INTO `gui_menu` VALUES (1,1,'Configuration (GUI)','fa-cogs',2),(2,2,'Telegram (Bot)','fa-telegram',1); /*!40000 ALTER TABLE `gui_menu` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_module` -- DROP TABLE IF EXISTS `gui_module`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_module` ( `id` int(10) NOT NULL AUTO_INCREMENT, `description` varchar(200) NOT NULL, `name` varchar(200) NOT NULL, `icon` varchar(200) NOT NULL, `access_level` tinytext NOT NULL, `parent` int(11) NOT NULL, `static` int(1) NOT NULL DEFAULT 0, `visits` int(11) DEFAULT 0, `last_visit` timestamp NULL DEFAULT NULL, `active` int(1) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_module` -- LOCK TABLES `gui_module` WRITE; /*!40000 ALTER TABLE `gui_module` DISABLE KEYS */; INSERT INTO `gui_module` VALUES (1,'Dashboard','dashboard','fa-wrench','1',-1,1,0,NULL,1),(2,'Account','manage-account','fa-wrench','1',1,0,0,NULL,1),(3,'Menu','manage-menu','fa-wrench','1',1,0,0,NULL,1),(4,'Modules','manage-module','fa-wrench','1',1,0,0,NULL,1),(5,'My Account','profile','fa-wrench','1',-1,1,0,NULL,1),(6,'RBAC','manage-rbac','fa-wrench','1',1,0,0,NULL,1),(7,'Denied','denied','fa-wrench','1',-1,1,0,NULL,1),(8,'Settings (Bot)','telegram-bot-settings','fa-wrench','1',2,0,0,NULL,1),(9,'Error Logs','telegram-error-log','fa-wrench','1',2,0,0,NULL,1),(10,'Investment Plans (Bot)','telegram-investment-plan','fa-wrench','1',2,0,0,NULL,1),(11,'Users (Bot)','telegram-users','fa-wrench','1',2,0,0,NULL,1); /*!40000 ALTER TABLE `gui_module` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_rbac_assignment` -- DROP TABLE IF EXISTS `gui_rbac_assignment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_rbac_assignment` ( `group_id` int(11) NOT NULL, `rbac_items_id` int(11) NOT NULL, PRIMARY KEY (`group_id`,`rbac_items_id`), KEY `rbac_items_id` (`rbac_items_id`), CONSTRAINT `gui_rbac_assignment_ibfk_1` FOREIGN KEY (`rbac_items_id`) REFERENCES `gui_rbac_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `gui_rbac_assignment_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `gui_group` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_rbac_assignment` -- LOCK TABLES `gui_rbac_assignment` WRITE; /*!40000 ALTER TABLE `gui_rbac_assignment` DISABLE KEYS */; INSERT INTO `gui_rbac_assignment` VALUES (1,1),(1,2); /*!40000 ALTER TABLE `gui_rbac_assignment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gui_rbac_items` -- DROP TABLE IF EXISTS `gui_rbac_items`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gui_rbac_items` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gui_rbac_items` -- LOCK TABLES `gui_rbac_items` WRITE; /*!40000 ALTER TABLE `gui_rbac_items` DISABLE KEYS */; INSERT INTO `gui_rbac_items` VALUES (1,'Can see the loading time.'),(2,'Can see debug bar.'); /*!40000 ALTER TABLE `gui_rbac_items` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `investment` -- DROP TABLE IF EXISTS `investment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `investment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `telegram_id` int(11) NOT NULL, `amount` decimal(15,8) NOT NULL, `contract_end_date` timestamp NULL DEFAULT NULL, `contract_start_date` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), KEY `telegram_id` (`telegram_id`), CONSTRAINT `investment_ibfk_1` FOREIGN KEY (`telegram_id`) REFERENCES `users` (`telegram_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `investment` -- LOCK TABLES `investment` WRITE; /*!40000 ALTER TABLE `investment` DISABLE KEYS */; /*!40000 ALTER TABLE `investment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `investment_plans` -- DROP TABLE IF EXISTS `investment_plans`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `investment_plans` ( `id` int(11) NOT NULL AUTO_INCREMENT, `minimum_invest` decimal(15,8) NOT NULL, `minimum_reinvest` decimal(15,8) NOT NULL, `minimum_payout` decimal(15,8) NOT NULL, `base_rate` int(11) NOT NULL, `contract_day` int(11) NOT NULL, `commission_rate` int(11) NOT NULL, `timer_time_hour` int(1) NOT NULL DEFAULT 4, `required_confirmations` int(11) NOT NULL, `interest_on_reinvest` int(11) NOT NULL, `withdraw_fee` int(11) NOT NULL, `active` int(1) NOT NULL DEFAULT 0, `creation_date` timestamp NOT NULL DEFAULT current_timestamp(), `created_account_id` int(11) NOT NULL, `deleted` int(1) NOT NULL DEFAULT 0, `deleted_date` timestamp NULL DEFAULT NULL, `deleted_account_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `investment_plans` -- LOCK TABLES `investment_plans` WRITE; /*!40000 ALTER TABLE `investment_plans` DISABLE KEYS */; INSERT INTO `investment_plans` VALUES (1,0.02000000,0.00500000,0.05000000,6,30,5,4,3,1,50000,1,'2019-05-16 20:16:18',1,0,NULL,NULL); /*!40000 ALTER TABLE `investment_plans` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `referrals` -- DROP TABLE IF EXISTS `referrals`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `referrals` ( `id` int(11) NOT NULL AUTO_INCREMENT, `telegram_id_referent` int(11) NOT NULL, `telegram_id_referred` int(11) NOT NULL, `bind_date` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `telegram_id_referred` (`telegram_id_referred`), KEY `telegram_id_referent` (`telegram_id_referent`), CONSTRAINT `referrals_ibfk_1` FOREIGN KEY (`telegram_id_referent`) REFERENCES `users` (`telegram_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `referrals_ibfk_2` FOREIGN KEY (`telegram_id_referred`) REFERENCES `users` (`telegram_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `referrals` -- LOCK TABLES `referrals` WRITE; /*!40000 ALTER TABLE `referrals` DISABLE KEYS */; /*!40000 ALTER TABLE `referrals` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `transactions` -- DROP TABLE IF EXISTS `transactions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `transactions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `telegram_id` int(25) DEFAULT NULL, `amount` decimal(15,8) DEFAULT NULL, `withdraw_address` tinytext DEFAULT NULL, `message` text DEFAULT NULL, `tx_hash` text DEFAULT NULL, `tx_id` text DEFAULT NULL, `status` int(1) DEFAULT NULL, `type` varchar(50) DEFAULT NULL, `date` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), KEY `telegram_id` (`telegram_id`), CONSTRAINT `transactions_ibfk_1` FOREIGN KEY (`telegram_id`) REFERENCES `users` (`telegram_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `transactions` -- LOCK TABLES `transactions` WRITE; /*!40000 ALTER TABLE `transactions` DISABLE KEYS */; /*!40000 ALTER TABLE `transactions` ENABLE KEYS */; UNLOCK TABLES; -- -- Structure de la table `version` -- DROP TABLE IF EXISTS `version`; CREATE TABLE `version` ( `id` int(11) NOT NULL, `db_version` int(3) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Déchargement des données de la table `version` -- INSERT INTO `version` (`id`, `db_version`) VALUES (1, 1); -- -- Index pour les tables déchargées -- -- -- Index pour la table `version` -- ALTER TABLE `version` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables déchargées -- -- -- AUTO_INCREMENT pour la table `version` -- ALTER TABLE `version` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` int(25) NOT NULL AUTO_INCREMENT, `telegram_username` tinytext DEFAULT NULL, `telegram_first` tinytext DEFAULT NULL, `telegram_last` tinytext DEFAULT NULL, `telegram_id` int(25) DEFAULT NULL, `balance` double(15,8) NOT NULL DEFAULT 0.00000000, `invested` double(15,8) NOT NULL DEFAULT 0.00000000, `reinvested` double(15,8) NOT NULL DEFAULT 0.00000000, `profit` double(15,8) NOT NULL DEFAULT 0.00000000, `commission` double(15,8) NOT NULL DEFAULT 0.00000000, `payout` double(15,8) NOT NULL DEFAULT 0.00000000, `investment_address` varchar(500) DEFAULT NULL, `last_confirmed` double(15,8) DEFAULT NULL, `wallet_address` tinytext DEFAULT NULL, `referral_link` tinytext DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `telegram_id` (`telegram_id`), UNIQUE KEY `investment_address` (`investment_address`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2019-05-21 20:42:54
the_stack
-- The four cardinal directions. DROP TYPE IF EXISTS cardinal_direction CASCADE; CREATE TYPE cardinal_direction AS ENUM('▶', '▲', '◀', '▼'); -- Compute absolute difference between two angles (which is trivial in most -- cases but not when the two angles cross 0, e.g. when alpha = 350 and beta = -- 10) given in degrees using the formula atan2(sin(a-b), cos(a-b)) as per -- https://stackoverflow.com/a/2007279 (alternate version via -- https://gamedev.stackexchange.com/a/4472). DROP FUNCTION IF EXISTS angdiff; CREATE OR REPLACE FUNCTION angdiff(alpha double precision, beta double precision) RETURNS real AS $$ SELECT abs(degrees(atan2(sin(radians(alpha - beta)), cos(radians(alpha - beta))))) :: real; --SELECT (180 - abs(abs(alpha - beta) - 180)) :: real; $$ LANGUAGE SQL IMMUTABLE; -- Compute position on 4x4 grid from an (x,y) coordinate pair. Used during -- assembly of features table. DROP FUNCTION IF EXISTS gridpos; CREATE OR REPLACE FUNCTION gridpos(width real, height real, xmin real, ymin real, x real, y real) RETURNS int AS $$ SELECT greatest(0, 15 - ( (floor(4 * (x - xmin) / (width + 1)) :: int) + 4 * (floor(4 * (y - ymin) / (height + 1)) :: int))); $$ LANGUAGE SQL IMMUTABLE; -- Initial lookup table: Maps an array of up to four starting directions of a -- stroke to a set of potential characters. Largely taken from the essay -- implementation with some minor improvements. DROP TABLE IF EXISTS lookup_candidates; CREATE TABLE lookup_candidates ( first_four_directions cardinal_direction[], candidate_characters char[] ); INSERT INTO lookup_candidates VALUES ('{"▼"}', '{"I"}'), ('{"▼","◀"}', '{"J"}'), ('{"▼","◀","▲"}', '{"O","J","X","U"}'), ('{"▼","◀","▲","▶"}', '{"X","O","U"}'), ('{"▼","◀","▶"}', '{"X"}'), ('{"▼","◀","▶","▲"}', '{"X"}'), ('{"▼","▶"}', '{"L"}'), ('{"▼","▶","◀"}', '{"6"}'), ('{"▼","▶","◀","▼"}', '{"4"}'), ('{"▼","▶","▲"}', '{"O","U"}'), ('{"▼","▶","▲","▼"}', '{"4","Y"}'), ('{"▼","▶","▲","◀"}', '{"6","8","O","D","4"}'), ('{"▼","▶","▲","▶"}', '{"8"}'), ('{"▼","▲"}', '{"V","U"}'), ('{"▼","▲","▼"}', '{"K"}'), ('{"▼","▲","▼","▲"}', '{"W"}'), ('{"▼","▲","▼","▶"}', '{"W","K"}'), ('{"▼","▲","▶","▼"}', '{"H"}'), ('{"◀","▼"}', '{"F"}'), ('{"◀","▼","◀"}', '{"S"}'), ('{"◀","▼","◀","▼"}', '{"E"}'), ('{"◀","▼","▶","◀"}', '{"E","6"}'), ('{"◀","▶","▼"}', '{"T","4"}'), ('{"◀","▶","▼","◀"}', '{"S","8"}'), ('{"◀","▶","▼","▶"}', '{"E"}'), ('{"◀","▶","◀"}', '{"S"}'), ('{"◀","▶","◀","▼"}', '{"E"}'), ('{"◀","▶","◀","▶"}', '{"E"}'), ('{"◀","▼","▶"}', '{"C"}'), ('{"◀","▼","▶","▼"}', '{"5","8","S","E"}'), ('{"◀","▼","▶","▲"}', '{"6","O","C","G","9"}'), ('{"◀","▲","▶","▼"}', '{"9","8","Q"}'), ('{"◀","▲","▼"}', '{"4"}'), ('{"▶","◀","▼"}', '{"7"}'), ('{"▶","◀","▼","▶"}', '{"3","2","Z"}'), ('{"▶","◀","▶","◀"}', '{"3"}'), ('{"▶","◀","▶"}', '{"2","Z"}'), ('{"▶","◀","▶","▼"}', '{"3"}'), ('{"▶","▼"}', '{"7","1"}'), ('{"▶","▼","◀"}', '{"7","3"}'), ('{"▶","▼","◀","▼"}', '{"2","3"}'), ('{"▶","▼","◀","▲"}', '{"O","2","3","U","X"}'), ('{"▶","▼","▶","▼"}', '{"3"}'), ('{"▶","▼","▶"}', '{"2","Z"}'), ('{"▶","▼","◀","▶"}', '{"3","2","Z"}'), ('{"▶","▲","◀","▼"}', '{"9","O"}'), ('{"▶","▲","◀","▶"}', '{"9","O"}'), ('{"▲"}', '{"I"}'), ('{"▲","▼"}', '{"1","A"}'), ('{"▲","▼","◀"}', '{"A"}'), ('{"▲","▼","◀","▲"}', '{"A"}'), ('{"▲","▼","▶"}', '{"2"}'), ('{"▲","▼","▲"}', '{"N","A"}'), ('{"▲","▼","▲","◀"}', '{"A"}'), ('{"▲","▼","▲","▼"}', '{"M","N"}'), ('{"▲","▼","▲","▶"}', '{"M","N"}'), ('{"▲","▼","▶","▲"}', '{"M","N"}'), ('{"▲","▼","▶","▼"}', '{"M","N"}'), ('{"▲","▶","▲"}', '{"M","N"}'), ('{"▲","▶","▲","▼"}', '{"M","N"}'), ('{"▲","▶","▼"}', '{"D"}'), ('{"▲","▶","▼","▲"}', '{"M","N","A"}'), ('{"▲","◀","▼","▶"}', '{"8","9","C","G","S","6"}'), ('{"▲","◀","▶"}', '{"T"}'), ('{"▲","▶","▼","▶"}', '{"2","3","8","B","D","P","R"}'), ('{"▲","▶","▼","◀"}', '{"2","3","8","B","D","P","R"}'), ('{"▲","▶","◀","▶"}', '{"B"}'), ('{"▲","▶"}', '{"F"}'), ('{"▲","▶","◀"}', '{"D"}'), ('{"▲","▶","◀","▲"}', '{"F"}'); -- Final lookup table: Narrows result of initial lookup down based on extracted -- features. Not taken from the essay implementation. DROP TABLE IF EXISTS lookup_bestfit; CREATE TABLE lookup_bestfit ( candidate_characters char[], character char, start int, stop int, corners int[], last_direction cardinal_direction, aspect_range numrange ); INSERT INTO lookup_bestfit(candidate_characters, character) -- All single-character patterns from initial lookup table. SELECT DISTINCT ON (candidate_characters[1]) candidate_characters, candidate_characters[1] FROM lookup_candidates WHERE array_length(candidate_characters, 1) = 1; INSERT INTO lookup_bestfit VALUES ('{"O","J","X","U"}', 'O', 0, 0, NULL, NULL, NULL), ('{"O","J","X","U"}', 'O', 1, 1, NULL, NULL, NULL), ('{"O","J","X","U"}', 'O', 2, 2, NULL, NULL, NULL), ('{"O","J","X","U"}', 'O', 3, 3, NULL, NULL, NULL), ('{"O","J","X","U"}', 'J', NULL, 11, NULL, NULL, NULL), ('{"O","J","X","U"}', 'J', NULL, 15, NULL, NULL, NULL), ('{"O","J","X","U"}', 'X', 3, 0, '{12,15}', NULL, NULL), ('{"O","J","X","U"}', 'X', 3, 0, '{12}', NULL, NULL), ('{"O","J","X","U"}', 'X', 3, 0, '{15}', NULL, NULL), ('{"O","J","X","U"}', 'U', 0, 3, NULL, NULL, NULL), ('{"X","O","U"}', 'X', 3, 0, '{12,15}', NULL, NULL), ('{"X","O","U"}', 'X', 3, 0, '{12}', NULL, NULL), ('{"X","O","U"}', 'X', 3, 0, '{15}', NULL, NULL), ('{"X","O","U"}', 'O', 0, 0, NULL, NULL, NULL), ('{"X","O","U"}', 'O', 1, 1, NULL, NULL, NULL), ('{"X","O","U"}', 'O', 2, 2, NULL, NULL, NULL), ('{"X","O","U"}', 'O', 3, 3, NULL, NULL, NULL), ('{"X","O","U"}', 'O', 8, 8, NULL, NULL, NULL), ('{"X","O","U"}', 'U', 0, 3, NULL, NULL, NULL), ('{"O","U"}', 'O', 0, 0, NULL, NULL, NULL), ('{"O","U"}', 'O', 1, 1, NULL, NULL, NULL), ('{"O","U"}', 'O', 2, 2, NULL, NULL, NULL), ('{"O","U"}', 'O', 3, 3, NULL, NULL, NULL), ('{"O","U"}', 'U', 3, 0, NULL, NULL, NULL), ('{"O","U"}', 'U', 3, 4, NULL, NULL, NULL), ('{"O","U"}', 'U', 7, 0, NULL, NULL, NULL), ('{"4","Y"}', '4', NULL, 12, NULL, NULL, NULL), ('{"4","Y"}', '4', NULL, 13, NULL, NULL, NULL), ('{"4","Y"}', 'Y', NULL, 14, NULL, NULL, NULL), ('{"4","Y"}', 'Y', NULL, 15, NULL, NULL, NULL), ('{"4","Y"}', 'Y', NULL, 11, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 0, 6, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 0, 7, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 0, 11, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 1, 6, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 1, 7, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '6', 1, 11, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '8', 5, 5, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '8', 6, 6, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '8', 9, 9, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '8', 10, 10, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 0, 0, '{}', NULL, NULL), ('{"6","8","O","D","4"}', 'O', 1, 1, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 2, 2, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 3, 3, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 7, 7, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 11, 11, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 11, 7, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'O', 7, 11, NULL, NULL, NULL), ('{"6","8","O","D","4"}', 'D', 0, 0, '{15}', NULL, NULL), ('{"6","8","O","D","4"}', '4', NULL, 12, NULL, NULL, NULL), ('{"6","8","O","D","4"}', '4', NULL, 13, NULL, NULL, NULL), ('{"V","U"}', 'V', NULL, NULL, '{13}', NULL, NULL), ('{"V","U"}', 'V', NULL, NULL, '{14}', NULL, NULL), ('{"V","U"}', 'V', NULL, NULL, '{13,12}', NULL, NULL), ('{"V","U"}', 'V', NULL, NULL, '{13,14}', NULL, NULL), ('{"V","U"}', 'V', NULL, NULL, '{12}', NULL, NULL), ('{"V","U"}', 'U', NULL, NULL, '{}', NULL, NULL), ('{"W","K"}', 'W', NULL, 0, NULL, NULL, NULL), ('{"W","K"}', 'K', NULL, 12, NULL, NULL, NULL), ('{"E","6"}', 'E', NULL, 12, NULL, NULL, NULL), ('{"E","6"}', 'E', NULL, 13, NULL, NULL, NULL), ('{"E","6"}', '6', NULL, 6, NULL, NULL, NULL), ('{"E","6"}', '6', NULL, 7, NULL, NULL, NULL), ('{"E","6"}', '6', NULL, 11, NULL, NULL, NULL), ('{"S","8"}', 'S', NULL, 15, NULL, NULL, NULL), ('{"S","8"}', 'S', NULL, 14, NULL, NULL, NULL), ('{"S","8"}', '8', NULL, 0, NULL, NULL, NULL), ('{"S","8"}', '8', NULL, 1, NULL, NULL, NULL), ('{"S","8"}', '8', NULL, 2, NULL, NULL, NULL), ('{"T","4"}', 'T', 0, NULL, NULL, NULL, NULL), ('{"T","4"}', '4', 4, NULL, NULL, NULL, NULL), ('{"T","4"}', '4', 8, NULL, NULL, NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{3,7}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{3,11}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{3}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{7}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{7,8}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{7,9}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{11}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{11,12}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{7,6}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{6}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{11,10}', NULL, NULL), ('{"5","8","S","E"}', '5', 0, NULL, '{3,13}', NULL, NULL), ('{"5","8","S","E"}', '8', 0, 0, NULL, NULL, NULL), ('{"5","8","S","E"}', '8', 1, 1, NULL, NULL, NULL), ('{"5","8","S","E"}', '8', 1, 0, NULL, NULL, NULL), ('{"5","8","S","E"}', '8', 0, 1, NULL, NULL, NULL), ('{"5","8","S","E"}', '8', 4, 4, NULL, NULL, NULL), ('{"5","8","S","E"}', 'S', NULL, 15, '{}', NULL, NULL), ('{"5","8","S","E"}', 'S', NULL, 14, '{}', NULL, NULL), ('{"5","8","S","E"}', 'E', NULL, 12, NULL, NULL, NULL), ('{"5","8","S","E"}', 'E', NULL, 13, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '6', 0, 11, '{}', NULL, NULL), ('{"6","O","C","G","9"}', '6', 0, 10, '{}', NULL, NULL), ('{"6","O","C","G","9"}', '6', 0, 7, '{}', NULL, NULL), ('{"6","O","C","G","9"}', 'O', 0, 0, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'O', 1, 1, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'O', 4, 4, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'O', 0, 1, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'O', 1, 0, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'C', 0, 12, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'C', 0, 8, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'C', 4, 8, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'C', 4, 12, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'C', 8, 12, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'G', 0, 9, NULL, NULL, NULL), ('{"6","O","C","G","9"}', 'G', 0, 10, '{8}', NULL, NULL), ('{"6","O","C","G","9"}', 'G', 0, 5, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 0, 14, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 0, 15, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 1, 11, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 1, 14, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 1, 15, NULL, NULL, NULL), ('{"6","O","C","G","9"}', '9', 1, 11, NULL, NULL, NULL), ('{"9","8","Q"}', '9', 4, 15, NULL, NULL, NULL), ('{"9","8","Q"}', '9', 8, 15, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 4, 4, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 4, 8, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 8, 8, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 9, 8, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 9, 9, NULL, NULL, NULL), ('{"9","8","Q"}', '8', 9, 10, NULL, NULL, NULL), ('{"9","8","Q"}', 'Q', 13, 12, NULL, NULL, NULL), ('{"9","8","Q"}', 'Q', 12, 12, NULL, NULL, NULL), ('{"9","8","Q"}', 'Q', 14, 12, NULL, NULL, NULL), ('{"9","8","Q"}', 'Q', 14, 13, NULL, NULL, NULL), ('{"3","2","Z"}', '3', 3, 15, NULL, NULL, NULL), ('{"3","2","Z"}', '3', 3, 14, NULL, NULL, NULL), ('{"3","2","Z"}', '2', 3, 12, '{15}', NULL, NULL), ('{"3","2","Z"}', '2', 3, 12, '{14}', NULL, NULL), ('{"3","2","Z"}', '2', 3, 13, '{15}', NULL, NULL), ('{"3","2","Z"}', '2', 3, 13, '{14}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 12, '{15}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 12, '{14}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 13, '{15}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 13, '{14}', NULL, NULL), ('{"3","2","Z"}', '2', 3, 12, '{15,14}', NULL, NULL), ('{"3","2","Z"}', '2', 3, 13, '{15,14}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 12, '{15,14}', NULL, NULL), ('{"3","2","Z"}', '2', 2, 13, '{15,14}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{0,15}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{1,15}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{0,14}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{1,14}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{1,14,13}', NULL, NULL), ('{"3","2","Z"}', 'Z', NULL, NULL, '{0,5,15}', NULL, NULL), ('{"2","Z"}', '2', NULL, NULL, '{14}', NULL, NULL), ('{"2","Z"}', '2', NULL, NULL, '{15}', NULL, NULL), ('{"2","Z"}', '2', NULL, NULL, '{15,14}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{0,15}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{1,15}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{0,14}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{1,14}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{1,14,13}', NULL, NULL), ('{"2","Z"}', 'Z', NULL, NULL, '{0,5,15}', NULL, NULL), ('{"7","1"}', '7', NULL, NULL, NULL, NULL, numrange(0,2)), ('{"7","1"}', '1', NULL, NULL, NULL, NULL, numrange(2,1000)), ('{"7","3"}', '7', NULL, NULL, '{0}', NULL, NULL), ('{"7","3"}', '7', NULL, NULL, '{4}', NULL, NULL), ('{"7","3"}', '3', NULL, NULL, '{}', NULL, NULL), ('{"2","3"}', '2', NULL, 12, NULL, NULL, NULL), ('{"2","3"}', '2', NULL, 13, NULL, NULL, NULL), ('{"2","3"}', '3', NULL, 14, NULL, NULL, NULL), ('{"2","3"}', '3', NULL, 15, NULL, NULL, NULL), ('{"O","2","3","U","X"}', 'O', 3, 3, NULL, NULL, NULL), ('{"O","2","3","U","X"}', 'O', 2, 2, NULL, NULL, NULL), ('{"O","2","3","U","X"}', 'O', 1, 1, NULL, NULL, NULL), ('{"O","2","3","U","X"}', '2', NULL, NULL, '{14}', NULL, NULL), ('{"O","2","3","U","X"}', '2', NULL, NULL, '{15}', NULL, NULL), ('{"O","2","3","U","X"}', '3', 3, 15, NULL, NULL, NULL), ('{"O","2","3","U","X"}', '3', 3, 14, NULL, NULL, NULL), ('{"O","2","3","U","X"}', 'U', 0, 3, '{}', NULL, NULL), ('{"O","2","3","U","X"}', 'X', 0, 3, '{12,15}', NULL, NULL), ('{"O","2","3","U","X"}', 'X', 0, 3, '{12}', NULL, NULL), ('{"O","2","3","U","X"}', 'X', 0, 3, '{15}', NULL, NULL), ('{"O","2","3","U","X"}', 'X', 0, 1, '{15}', NULL, NULL), ('{"O","2","3","U","X"}', 'X', 0, 1, '{12,14}', NULL, NULL), ('{"9","O"}', '9', 11, 5, NULL, NULL, NULL), ('{"9","O"}', '9', 15, 5, NULL, NULL, NULL), ('{"9","O"}', '9', 14, 5, NULL, NULL, NULL), ('{"9","O"}', '9', 11, 4, NULL, NULL, NULL), ('{"9","O"}', '9', 15, 4, NULL, NULL, NULL), ('{"9","O"}', '9', 14, 4, NULL, NULL, NULL), ('{"9","O"}', '9', 11, 9, NULL, NULL, NULL), ('{"9","O"}', '9', 15, 9, NULL, NULL, NULL), ('{"9","O"}', '9', 14, 9, NULL, NULL, NULL), ('{"9","O"}', '9', 11, 8, NULL, NULL, NULL), ('{"9","O"}', '9', 15, 8, NULL, NULL, NULL), ('{"9","O"}', '9', 14, 8, NULL, NULL, NULL), ('{"9","O"}', '9', 11, 0, NULL, NULL, NULL), ('{"9","O"}', '9', 15, 0, NULL, NULL, NULL), ('{"9","O"}', '9', 14, 0, NULL, NULL, NULL), ('{"9","O"}', 'O', 11, 11, NULL, NULL, NULL), ('{"9","O"}', 'O', 15, 15, NULL, NULL, NULL), ('{"9","O"}', 'O', 14, 14, NULL, NULL, NULL), ('{"9","O"}', 'O', 13, 13, NULL, NULL, NULL), ('{"9","O"}', 'O', 12, 12, NULL, NULL, NULL), ('{"1","A"}', '1', NULL, NULL, NULL, NULL, numrange(1.7,1000)), ('{"1","A"}', 'A', NULL, NULL, NULL, NULL, numrange(0,1.7)), ('{"N","A"}', 'N', NULL, 0, NULL, NULL, NULL), ('{"N","A"}', 'N', NULL, 1, NULL, NULL, NULL), ('{"N","A"}', 'N', NULL, 4, NULL, NULL, NULL), ('{"N","A"}', 'A', NULL, 10, NULL, NULL, NULL), ('{"N","A"}', 'A', NULL, 11, NULL, NULL, NULL), ('{"N","A"}', 'A', NULL, 6, NULL, NULL, NULL), ('{"N","A"}', 'A', NULL, 7, NULL, NULL, NULL), ('{"N","A"}', 'A', NULL, 9, NULL, NULL, NULL), ('{"M","N"}', 'M', NULL, 12, NULL, NULL, NULL), ('{"M","N"}', 'N', NULL, 0, NULL, NULL, NULL), ('{"M","N"}', 'N', NULL, 1, NULL, NULL, NULL), ('{"M","N","A"}', 'M', NULL, 12, NULL, NULL, NULL), ('{"M","N","A"}', 'N', NULL, 0, NULL, NULL, NULL), ('{"M","N","A"}', 'N', NULL, 1, NULL, NULL, NULL), ('{"M","N","A"}', 'A', NULL, 10, NULL, NULL, NULL), ('{"M","N","A"}', 'A', NULL, 6, NULL, NULL, NULL), ('{"M","N","A"}', 'A', NULL, 7, NULL, NULL, NULL), ('{"M","N","A"}', 'A', NULL, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '8', 9, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '8', 8, 8, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 8, 11, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 8, 14, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 8, 15, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 9, 11, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 9, 14, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 9, 15, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 15, 4, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 15, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 14, 4, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 14, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 15, 5, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '9', 14, 5, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 0, 12, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 0, 8, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 4, 8, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 4, 12, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 8, 12, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'C', 0, 13, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 0, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 0, 5, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 4, 9, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 4, 5, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 4, 14, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'G', 4, 13, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'S', 4, 11, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', 'S', 4, 15, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '6', 0, 11, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '6', 0, 10, NULL, NULL, NULL), ('{"8","9","C","G","S","6"}', '6', 4, 10, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '2', NULL, NULL, '{14}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', '2', NULL, NULL, '{15}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', '3', 3, 15, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '3', 3, 14, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '3', 2, 15, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '8', 10, 11, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '8', 10, 10, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '8', 9, 10, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', '8', 11, 10, NULL, NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{1,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,6,5}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,0,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{1,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,0,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,7,10,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{0,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,7,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,6,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,11,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,10,9}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 15, '{3,6,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{1,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,6,5}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,0,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{1,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,0,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,7,10,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,7,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,6,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,11,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,10,9}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,7,6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,6,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'B', 15, 14, '{3,1,7,6,12}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 15, '{3}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 14, '{3}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 13, '{3}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 15, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 14, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'D', 15, 13, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 11, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 11, '{3}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 11, '{3,4}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 11, '{3,0}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 6, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 6, '{3}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 6, '{3,4}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'P', 15, 6, '{3,0}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,4,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,0,7}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,4,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,0,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,7,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{3,10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{6}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{10}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{11}', NULL, NULL), ('{"2","3","8","B","D","P","R"}', 'R', 15, 12, '{4,7,6}', NULL, NULL);
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for base_postage_company -- ---------------------------- DROP TABLE IF EXISTS `base_postage_company`; CREATE TABLE `base_postage_company` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递公司名称', `code_1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递公司代码', `code_2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '百度快递100代码', `code_3` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '官方快递100代码', `remark` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递公司描述', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态(0.无效,1.有效)', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态(1已删除,0未删除)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_postage_company_code1`(`code_1`) USING BTREE, INDEX `idx_base_postage_company_code2`(`code_2`) USING BTREE, INDEX `idx_base_postage_company_code3`(`code_3`) USING BTREE, INDEX `idx_base_postage_company_status`(`status`) USING BTREE, INDEX `idx_base_postage_company_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-快递-公司' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for base_postage_region -- ---------------------------- DROP TABLE IF EXISTS `base_postage_region`; CREATE TABLE `base_postage_region` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID', `pid` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '上级PID', `first` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '首字母', `short` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '区域简称', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '区域名称', `level` tinyint(4) NULL DEFAULT 0 COMMENT '区域层级', `pinyin` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '区域拼音', `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '区域邮编', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '使用状态', `lng` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在经度', `lat` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在纬度', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_postage_region_pid`(`pid`) USING BTREE, INDEX `idx_base_postage_region_name`(`name`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-快递-区域' ROW_FORMAT = COMPACT; -- ---------------------------- -- Table structure for base_postage_template -- ---------------------------- DROP TABLE IF EXISTS `base_postage_template`; CREATE TABLE `base_postage_template` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '模板编号', `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '模板名称', `normal` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '默认规则', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '模板规则', `sort` bigint(20) NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '模板状态', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_postage_template_code`(`code`) USING BTREE, INDEX `idx_base_postage_template_status`(`status`) USING BTREE, INDEX `idx_base_postage_template_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-快递-模板' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for base_user_discount -- ---------------------------- DROP TABLE IF EXISTS `base_user_discount`; CREATE TABLE `base_user_discount` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '方案名称', `items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '方案规则', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '方案描述', `sort` bigint(20) NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) NULL DEFAULT 1 COMMENT '方案状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_user_discount_status`(`status`) USING BTREE, INDEX `idx_base_user_discount_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-基础-折扣' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for base_user_message -- ---------------------------- DROP TABLE IF EXISTS `base_user_message`; CREATE TABLE `base_user_message` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '消息类型', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '消息名称', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '消息内容', `num_read` bigint(20) NULL DEFAULT 0 COMMENT '阅读次数', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '消息状态(1使用,0禁用)', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_user_message_type`(`type`) USING BTREE, INDEX `idx_base_user_message_status`(`status`) USING BTREE, INDEX `idx_base_user_message_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-基础-通知' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for base_user_payment -- ---------------------------- DROP TABLE IF EXISTS `base_user_payment`; CREATE TABLE `base_user_payment` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付类型', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '通道编号', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付名称', `cover` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付图标', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '支付参数', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付说明', `sort` bigint(20) NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) NULL DEFAULT 1 COMMENT '支付状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_user_payment_type`(`type`) USING BTREE, INDEX `idx_base_user_payment_code`(`code`) USING BTREE, INDEX `idx_base_user_payment_status`(`status`) USING BTREE, INDEX `idx_base_user_payment_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-基础-支付' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for base_user_upgrade -- ---------------------------- DROP TABLE IF EXISTS `base_user_upgrade`; CREATE TABLE `base_user_upgrade` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户级别名称', `number` tinyint(2) NULL DEFAULT 0 COMMENT '用户级别序号', `rebate_rule` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户奖利规则', `upgrade_type` tinyint(1) NULL DEFAULT 0 COMMENT '会员升级规则(0单个,1同时)', `upgrade_team` tinyint(1) NULL DEFAULT 1 COMMENT '团队人数统计(0不计,1累计)', `goods_vip_status` tinyint(1) NULL DEFAULT 0 COMMENT '入会礼包状态', `order_amount_status` tinyint(1) NULL DEFAULT 0 COMMENT '订单金额状态', `order_amount_number` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单金额累计', `teams_users_status` tinyint(1) NULL DEFAULT 0 COMMENT '团队人数状态', `teams_users_number` bigint(20) NULL DEFAULT 0 COMMENT '团队人数累计', `teams_direct_status` tinyint(1) NULL DEFAULT 0 COMMENT '直推人数状态', `teams_direct_number` bigint(20) NULL DEFAULT 0 COMMENT '直推人数累计', `teams_indirect_status` tinyint(1) NULL DEFAULT 0 COMMENT '间推人数状态', `teams_indirect_number` bigint(20) NULL DEFAULT 0 COMMENT '间推人数累计', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户级别描述', `utime` bigint(20) NULL DEFAULT 0 COMMENT '等级更新时间', `status` tinyint(1) NULL DEFAULT 1 COMMENT '用户等级状态(1使用,0禁用)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '等级创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_base_user_upgrade_status`(`status`) USING BTREE, INDEX `idx_base_user_upgrade_number`(`number`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-等级' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_news_item -- ---------------------------- DROP TABLE IF EXISTS `data_news_item`; CREATE TABLE `data_news_item` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章编号', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章标题', `mark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章标签', `cover` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章封面', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '备注说明', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '文章内容', `num_like` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '文章点赞数', `num_read` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '文章阅读数', `num_collect` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '文章收藏数', `num_comment` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '文章评论数', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '文章状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_news_item_status`(`status`) USING BTREE, INDEX `idx_data_news_item_deleted`(`deleted`) USING BTREE, INDEX `idx_data_news_item_code`(`code`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-文章-内容' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_news_mark -- ---------------------------- DROP TABLE IF EXISTS `data_news_mark`; CREATE TABLE `data_news_mark` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '标签名称', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '标签说明', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '标签状态(1使用,0禁用)', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_news_mark_status`(`status`) USING BTREE, INDEX `idx_data_news_mark_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-文章-标签' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_news_x_collect -- ---------------------------- DROP TABLE IF EXISTS `data_news_x_collect`; CREATE TABLE `data_news_x_collect` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '用户UID', `type` tinyint(1) NULL DEFAULT 1 COMMENT '记录类型(1收藏,2点赞,3历史,4评论)', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章编号', `reply` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '评论内容', `status` tinyint(1) NULL DEFAULT 1 COMMENT '记录状态(0无效,1待审核,2已审核)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_news_x_collect_type`(`type`) USING BTREE, INDEX `idx_data_news_x_collect_code`(`code`) USING BTREE, INDEX `idx_data_news_x_collect_status`(`status`) USING BTREE, INDEX `idx_data_news_x_collect_uuid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-文章-标记' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user -- ---------------------------- DROP TABLE IF EXISTS `data_user`; CREATE TABLE `data_user` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `pid0` bigint(20) NULL DEFAULT 0 COMMENT '临时推荐人UID', `pid1` bigint(20) NULL DEFAULT 0 COMMENT '推荐人一级UID', `pid2` bigint(20) NULL DEFAULT 0 COMMENT '推荐人二级UID', `pids` tinyint(1) NULL DEFAULT 0 COMMENT '推荐人绑定状态', `path` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '-' COMMENT '推荐关系路径', `layer` bigint(20) NULL DEFAULT 1 COMMENT '推荐关系层级', `openid1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '小程序OPENID', `openid2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '服务号OPENID', `unionid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号UnionID', `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户手机', `headimg` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户头像', `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户姓名', `nickname` varchar(99) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户昵称', `password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '登录密码', `region_province` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在省份', `region_city` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在城市', `region_area` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '所在区域', `base_age` bigint(20) NULL DEFAULT 0 COMMENT '用户年龄', `base_sex` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户性别', `base_height` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户身高', `base_weight` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户体重', `base_birthday` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户生日', `vip_code` bigint(20) NULL DEFAULT 0 COMMENT 'VIP等级编号', `vip_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '普通用户' COMMENT 'VIP等级名称', `vip_order` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'VIP升级订单', `vip_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'VIP等级时间', `buy_vip_entry` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否入会礼包', `buy_last_date` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '最后支付时间', `rebate_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '返利金额统计', `rebate_used` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '返利提现统计', `rebate_lock` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '返利锁定统计', `balance_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '累计充值统计', `balance_used` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '已经使用统计', `teams_users_total` bigint(20) NULL DEFAULT 0 COMMENT '团队人数统计', `teams_users_direct` bigint(20) NULL DEFAULT 0 COMMENT '直属人数团队', `teams_users_indirect` bigint(20) NULL DEFAULT 0 COMMENT '间接人数团队', `order_amount_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单交易统计', `teams_amount_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '二级团队业绩', `teams_amount_direct` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '直属团队业绩', `teams_amount_indirect` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '间接团队业绩', `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户备注描述', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '用户状态(1正常,0已黑)', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_status`(`status`) USING BTREE, INDEX `idx_data_user_deleted`(`deleted`) USING BTREE, INDEX `idx_data_user_openid1`(`openid1`) USING BTREE, INDEX `idx_data_user_openid2`(`openid2`) USING BTREE, INDEX `idx_data_user_unionid`(`unionid`) USING BTREE, INDEX `idx_data_user_pid1`(`pid1`) USING BTREE, INDEX `idx_data_user_pid2`(`pid2`) USING BTREE, INDEX `idx_data_user_pid0`(`pid0`) USING BTREE, INDEX `idx_data_user_pids`(`pids`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-会员' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_address -- ---------------------------- DROP TABLE IF EXISTS `data_user_address`; CREATE TABLE `data_user_address` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '用户UID', `type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '地址类型(0普通,1默认)', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址编号', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '收货姓名', `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '收货手机', `idcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '身体证号', `idimg1` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '身份证正面', `idimg2` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '身份证反面', `province` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址-省份', `city` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址-城市', `area` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址-区域', `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址-详情', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_address_type`(`type`) USING BTREE, INDEX `idx_data_user_address_code`(`code`) USING BTREE, INDEX `idx_data_user_address_deleted`(`deleted`) USING BTREE, INDEX `idx_data_user_address_uuid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-地址' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_balance -- ---------------------------- DROP TABLE IF EXISTS `data_user_balance`; CREATE TABLE `data_user_balance` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '用户UID', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '充值编号', `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '充值名称', `remark` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '充值备注', `amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '充值金额', `upgrade` tinyint(20) NULL DEFAULT 0 COMMENT '强制升级', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_by` bigint(20) NULL DEFAULT 0 COMMENT '系统用户', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_balance_code`(`code`) USING BTREE, INDEX `idx_data_user_balance_deleted`(`deleted`) USING BTREE, INDEX `idx_data_user_balance_uuid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-余额' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_message -- ---------------------------- DROP TABLE IF EXISTS `data_user_message`; CREATE TABLE `data_user_message` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `type` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '短信类型', `msgid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '消息编号', `phone` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '目标手机', `region` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '国家编号', `result` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '返回结果', `content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '短信内容', `status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '短信状态(0失败,1成功)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_message_type`(`type`) USING BTREE, INDEX `idx_data_user_message_status`(`status`) USING BTREE, INDEX `idx_data_user_message_phone`(`phone`) USING BTREE, INDEX `idx_data_user_message_msgid`(`msgid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-短信' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_payment -- ---------------------------- DROP TABLE IF EXISTS `data_user_payment`; CREATE TABLE `data_user_payment` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `order_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单单号', `order_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单描述', `order_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单金额', `payment_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付编号', `payment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付通道', `payment_trade` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付单号', `payment_status` tinyint(1) NULL DEFAULT 0 COMMENT '支付状态', `payment_amount` decimal(20, 2) NULL DEFAULT NULL COMMENT '支付金额', `payment_datatime` datetime NULL DEFAULT NULL COMMENT '支付时间', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_payment_order_no`(`order_no`) USING BTREE, INDEX `idx_data_user_payment_payment_code`(`payment_code`) USING BTREE, INDEX `idx_data_user_payment_payment_type`(`payment_type`) USING BTREE, INDEX `idx_data_user_payment_payment_trade`(`payment_trade`) USING BTREE, INDEX `idx_data_user_payment_payment_status`(`payment_status`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-支付' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_rebate -- ---------------------------- DROP TABLE IF EXISTS `data_user_rebate`; CREATE TABLE `data_user_rebate` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '用户UID', `date` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '奖励日期', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '奖励编号', `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '奖励类型', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '奖励名称', `amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '奖励数量', `order_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单单号', `order_uuid` bigint(20) NULL DEFAULT 0 COMMENT '订单用户', `order_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单金额', `status` tinyint(1) NULL DEFAULT 1 COMMENT '生效状态(0未生效,1已生效)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0未删除,1已删除)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_rebate_type`(`type`) USING BTREE, INDEX `idx_data_user_rebate_date`(`date`) USING BTREE, INDEX `idx_data_user_rebate_code`(`code`) USING BTREE, INDEX `idx_data_user_rebate_name`(`name`) USING BTREE, INDEX `idx_data_user_rebate_status`(`status`) USING BTREE, INDEX `idx_data_user_rebate_uuid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-返利' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_token -- ---------------------------- DROP TABLE IF EXISTS `data_user_token`; CREATE TABLE `data_user_token` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '用户UID', `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '授权类型', `time` bigint(20) NULL DEFAULT 0 COMMENT '有效时间', `token` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '授权令牌', `tokenv` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '授权验证', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_token_uuid`(`uuid`) USING BTREE, INDEX `idx_data_user_token_type`(`type`) USING BTREE, INDEX `idx_data_user_token_time`(`time`) USING BTREE, INDEX `idx_data_user_token_token`(`token`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-认证' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for data_user_transfer -- ---------------------------- DROP TABLE IF EXISTS `data_user_transfer`; CREATE TABLE `data_user_transfer` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '用户UID', `type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '提现方式', `date` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '提现日期', `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '提现单号', `appid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID', `openid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号OPENID', `charge_rate` decimal(20, 4) NULL DEFAULT 0.0000 COMMENT '提现手续费比例', `charge_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '提现手续费金额', `amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '提现转账金额', `qrcode` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '收款码图片地址', `bank_wseq` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '微信银行编号', `bank_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '开户银行名称', `bank_bran` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '开户分行名称', `bank_user` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '开户账号姓名', `bank_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '开户银行卡号', `alipay_user` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付宝姓名', `alipay_code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付宝账号', `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '提现描述', `trade_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '交易单号', `trade_time` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '打款时间', `change_time` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '处理时间', `change_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '处理描述', `audit_status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '审核状态', `audit_remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '审核描述', `audit_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '审核时间', `status` tinyint(1) NULL DEFAULT 1 COMMENT '提现状态(0失败,1待审核,2已审核,3打款中,4已打款,5已收款)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_data_user_transfer_code`(`code`) USING BTREE, INDEX `idx_data_user_transfer_status`(`status`) USING BTREE, INDEX `idx_data_user_transfer_date`(`date`) USING BTREE, INDEX `idx_data_user_transfer_type`(`type`) USING BTREE, INDEX `idx_data_user_transfer_audit_status`(`audit_status`) USING BTREE, INDEX `idx_data_user_transfer_appid`(`appid`) USING BTREE, INDEX `idx_data_user_transfer_openid`(`openid`) USING BTREE, INDEX `idx_data_user_transfer_uuid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '数据-用户-提现' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_goods -- ---------------------------- DROP TABLE IF EXISTS `shop_goods`; CREATE TABLE `shop_goods` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品编号', `name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品名称', `marks` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品标签', `cateids` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '分类编号', `cover` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品封面', `slider` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '轮播图片', `remark` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品描述', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品详情', `payment` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付方式', `data_specs` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品规格(JSON)', `data_items` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '商品规格(JSON)', `stock_total` bigint(20) NULL DEFAULT 0 COMMENT '商品库存统计', `stock_sales` bigint(20) NULL DEFAULT 0 COMMENT '商品销售统计', `stock_virtual` bigint(20) NULL DEFAULT 0 COMMENT '商品虚拟销量', `price_selling` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '最低销售价格', `price_market` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '最低市场价格', `discount_id` bigint(20) NULL DEFAULT 0 COMMENT '折扣方案编号', `truck_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '物流运费模板', `truck_type` tinyint(1) NULL DEFAULT 0 COMMENT '物流配送(0无需配送,1需要配送)', `rebate_type` tinyint(1) NULL DEFAULT 1 COMMENT '参与返利(0无需返利,1需要返利)', `vip_entry` tinyint(1) NULL DEFAULT 0 COMMENT '入会礼包(0非入会礼包,1是入会礼包)', `vip_upgrade` bigint(20) NULL DEFAULT 0 COMMENT '购买升级等级(0不升级,其他升级)', `limit_low_vip` bigint(20) NULL DEFAULT 0 COMMENT '限制最低等级(0不限制,其他限制)', `limit_max_num` bigint(20) NULL DEFAULT 0 COMMENT '最大购买数量(0不限制,其他限制)', `num_read` bigint(20) NULL DEFAULT 0 COMMENT '访问阅读统计', `state_hot` tinyint(1) NULL DEFAULT 0 COMMENT '设置热度标签', `state_home` tinyint(1) NULL DEFAULT 0 COMMENT '设置首页推荐', `sort` bigint(20) NULL DEFAULT 0 COMMENT '列表排序权重', `status` tinyint(1) NULL DEFAULT 1 COMMENT '商品状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_goods_code`(`code`) USING BTREE, INDEX `idx_shop_goods_status`(`status`) USING BTREE, INDEX `idx_shop_goods_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-商品-内容' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_goods_cate -- ---------------------------- DROP TABLE IF EXISTS `shop_goods_cate`; CREATE TABLE `shop_goods_cate` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `pid` bigint(20) NULL DEFAULT 0 COMMENT '上级分类', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '分类名称', `cover` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '分类图标', `remark` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '分类描述', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '使用状态', `deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_goods_cate_sort`(`sort`) USING BTREE, INDEX `idx_shop_goods_cate_status`(`status`) USING BTREE, INDEX `idx_shop_goods_cate_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-商品-分类' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_goods_item -- ---------------------------- DROP TABLE IF EXISTS `shop_goods_item`; CREATE TABLE `shop_goods_item` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `goods_sku` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品SKU', `goods_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品编号', `goods_spec` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品规格', `stock_sales` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '销售数量', `stock_total` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '商品库存', `price_selling` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '销售价格', `price_market` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '市场价格', `number_virtual` bigint(20) NULL DEFAULT 0 COMMENT '虚拟销量', `number_express` bigint(20) NULL DEFAULT 1 COMMENT '配送计件', `reward_balance` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '奖励余额', `reward_integral` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '奖励积分', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '商品状态', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `index_store_goods_item_code`(`goods_code`) USING BTREE, INDEX `index_store_goods_item_spec`(`goods_spec`) USING BTREE, INDEX `index_store_goods_item_status`(`status`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-商品-规格' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_goods_mark -- ---------------------------- DROP TABLE IF EXISTS `shop_goods_mark`; CREATE TABLE `shop_goods_mark` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '标签名称', `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '标签描述', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '标签状态(1使用,0禁用)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_goods_mark_sort`(`sort`) USING BTREE, INDEX `idx_shop_goods_mark_status`(`status`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-商品-标签' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_goods_stock -- ---------------------------- DROP TABLE IF EXISTS `shop_goods_stock`; CREATE TABLE `shop_goods_stock` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `batch_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '操作批量', `goods_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品编号', `goods_spec` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品规格', `goods_stock` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '入库数量', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '数据状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_goods_stock_status`(`status`) USING BTREE, INDEX `idx_shop_goods_stock_deleted`(`deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-商品-库存' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_order -- ---------------------------- DROP TABLE IF EXISTS `shop_order`; CREATE TABLE `shop_order` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '下单用户编号', `puid1` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '推荐一层用户', `puid2` bigint(20) NULL DEFAULT 0 COMMENT '推荐二层用户', `order_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品订单单号', `amount_real` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单实际金额', `amount_total` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '订单统计金额', `amount_goods` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品统计金额', `amount_reduct` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '随机减免金额', `amount_express` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '快递费用金额', `amount_discount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '折扣后的金额', `payment_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '实际支付平台', `payment_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '实际通道编号', `payment_allow` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '允许支付通道', `payment_trade` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '实际支付单号', `payment_status` tinyint(1) NULL DEFAULT 0 COMMENT '实际支付状态', `payment_image` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付凭证图片', `payment_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '实际支付金额', `payment_balance` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '余额抵扣金额', `payment_remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付结果描述', `payment_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '支付到账时间', `number_goods` bigint(20) NULL DEFAULT 0 COMMENT '订单商品数量', `number_express` bigint(20) NULL DEFAULT 0 COMMENT '订单快递计数', `truck_type` tinyint(1) NULL DEFAULT 0 COMMENT '物流配送类型(0无需配送,1需要配送)', `rebate_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '参与返利金额', `reward_balance` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '奖励账户余额', `order_remark` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单用户备注', `cancel_status` tinyint(1) NULL DEFAULT 0 COMMENT '订单取消状态', `cancel_remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单取消描述', `cancel_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单取消时间', `deleted_status` tinyint(1) NULL DEFAULT 0 COMMENT '订单删除状态(0未删,1已删)', `deleted_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单删除描述', `deleted_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '订单删除时间', `status` tinyint(1) NULL DEFAULT 1 COMMENT '订单流程状态(0已取消,1预订单,2待支付,3支付中,4已支付,5已发货,6已完成)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_order_status`(`status`) USING BTREE, INDEX `idx_shop_order_orderno`(`order_no`) USING BTREE, INDEX `idx_shop_order_cancel_status`(`cancel_status`) USING BTREE, INDEX `idx_shop_order_payment_status`(`payment_status`) USING BTREE, INDEX `idx_shop_order_from`(`puid1`) USING BTREE, INDEX `idx_shop_order_deleted`(`deleted_status`) USING BTREE, INDEX `idx_shop_order_mid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-订单-内容' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_order_item -- ---------------------------- DROP TABLE IF EXISTS `shop_order_item`; CREATE TABLE `shop_order_item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '商城用户编号', `order_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城订单单号', `goods_sku` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城商品SKU', `goods_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城商品编号', `goods_spec` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城商品规格', `goods_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城商品名称', `goods_cover` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商品封面图片', `goods_payment` varchar(999) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '指定支付通道', `price_market` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品市场单价', `price_selling` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品销售单价', `total_market` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品市场总价', `total_selling` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品销售总价', `reward_balance` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品奖励余额', `reward_integral` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品奖励积分', `stock_sales` bigint(20) NULL DEFAULT 1 COMMENT '包含商品数量', `vip_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户等级名称', `vip_code` bigint(20) NULL DEFAULT 0 COMMENT '用户等级序号', `vip_entry` tinyint(1) NULL DEFAULT 0 COMMENT '是否入会礼包(0非礼包,1是礼包)', `vip_upgrade` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '升级用户等级', `truck_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '物流配送类型(0虚物,1实物)', `truck_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递邮费模板', `truck_number` bigint(20) NULL DEFAULT 0 COMMENT '快递计费基数', `rebate_type` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '参与返利状态(0不返,1返利)', `rebate_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '参与返利金额', `discount_id` bigint(20) NULL DEFAULT 0 COMMENT '优惠方案编号', `discount_rate` decimal(20, 6) NULL DEFAULT 100.000000 COMMENT '销售价格折扣', `discount_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '商品优惠金额', `status` tinyint(1) NULL DEFAULT 1 COMMENT '商品状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_order_item_status`(`status`) USING BTREE, INDEX `idx_shop_order_item_deleted`(`deleted`) USING BTREE, INDEX `idx_shop_order_item_order_no`(`order_no`) USING BTREE, INDEX `idx_shop_order_item_goods_sku`(`goods_sku`) USING BTREE, INDEX `idx_shop_order_item_goods_code`(`goods_code`) USING BTREE, INDEX `idx_shop_order_item_goods_spec`(`goods_spec`) USING BTREE, INDEX `idx_shop_order_item_rebate_type`(`rebate_type`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-订单-商品' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for shop_order_send -- ---------------------------- DROP TABLE IF EXISTS `shop_order_send`; CREATE TABLE `shop_order_send` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `uuid` bigint(20) NULL DEFAULT 0 COMMENT '商城用户编号', `order_no` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '商城订单单号', `address_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送地址编号', `address_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送收货人姓名', `address_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送收货人手机', `address_idcode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送收货人证件号码', `address_idimg1` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送收货人证件正面', `address_idimg2` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送收货人证件反面', `address_province` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送地址的省份', `address_city` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送地址的城市', `address_area` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送地址的区域', `address_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送的详细地址', `address_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '地址确认时间', `template_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送模板编号', `template_count` bigint(20) NULL DEFAULT 0 COMMENT '快递计费基数', `template_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配送计算描述', `template_amount` decimal(20, 2) NULL DEFAULT 0.00 COMMENT '配送计算金额', `company_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递公司编码', `company_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递公司名称', `send_number` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递运送单号', `send_remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递发送备注', `send_datetime` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '快递发送时间', `status` tinyint(1) NULL DEFAULT 1 COMMENT '发货商品状态(1使用,0禁用)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '发货删除状态(0未删,1已删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_shop_order_send_status`(`status`) USING BTREE, INDEX `idx_shop_order_send_deleted`(`deleted`) USING BTREE, INDEX `idx_shop_order_send_order_no`(`order_no`) USING BTREE, INDEX `idx_shop_order_send_mid`(`uuid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '商城-订单-配送' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_auth -- ---------------------------- DROP TABLE IF EXISTS `system_auth`; CREATE TABLE `system_auth` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '权限名称', `utype` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '身份权限', `desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '备注说明', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '权限状态(1使用,0禁用)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_auth_status`(`status`) USING BTREE, INDEX `idx_system_auth_title`(`title`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-权限' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_auth_node -- ---------------------------- DROP TABLE IF EXISTS `system_auth_node`; CREATE TABLE `system_auth_node` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `auth` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '角色', `node` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '节点', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_auth_auth`(`auth`) USING BTREE, INDEX `idx_system_auth_node`(`node`(191)) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-授权' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_base -- ---------------------------- DROP TABLE IF EXISTS `system_base`; CREATE TABLE `system_base` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '数据类型', `code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '数据代码', `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '数据名称', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '数据内容', `sort` bigint(20) NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) NULL DEFAULT 1 COMMENT '数据状态(0禁用,1启动)', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除状态(0正常,1已删)', `deleted_at` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '删除时间', `deleted_by` bigint(20) NULL DEFAULT 0 COMMENT '删除用户', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_base_type`(`type`) USING BTREE, INDEX `idx_system_base_code`(`code`) USING BTREE, INDEX `idx_system_base_name`(`name`(191)) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-字典' ROW_FORMAT = COMPACT; -- ---------------------------- -- Table structure for system_config -- ---------------------------- DROP TABLE IF EXISTS `system_config`; CREATE TABLE `system_config` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配置分类', `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配置名称', `value` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配置内容', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_config_type`(`type`) USING BTREE, INDEX `idx_system_config_name`(`name`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-配置' ROW_FORMAT = COMPACT; -- ---------------------------- -- Table structure for system_data -- ---------------------------- DROP TABLE IF EXISTS `system_data`; CREATE TABLE `system_data` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '配置名', `value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '配置值', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_data_name`(`name`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-数据' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_menu -- ---------------------------- DROP TABLE IF EXISTS `system_menu`; CREATE TABLE `system_menu` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `pid` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '上级ID', `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '菜单名称', `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '菜单图标', `node` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '节点代码', `url` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '链接节点', `params` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '链接参数', `target` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '_self' COMMENT '打开方式', `sort` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '排序权重', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态(0:禁用,1:启用)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_menu_status`(`status`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-菜单' ROW_FORMAT = COMPACT; -- ---------------------------- -- Table structure for system_oplog -- ---------------------------- DROP TABLE IF EXISTS `system_oplog`; CREATE TABLE `system_oplog` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `node` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '当前操作节点', `geoip` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作者IP地址', `action` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作行为名称', `content` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作内容描述', `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '操作人用户名', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-日志' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_queue -- ---------------------------- DROP TABLE IF EXISTS `system_queue`; CREATE TABLE `system_queue` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '任务编号', `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '任务名称', `command` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '执行指令', `exec_pid` bigint(20) NULL DEFAULT 0 COMMENT '执行进程', `exec_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '执行参数', `exec_time` bigint(20) NULL DEFAULT 0 COMMENT '执行时间', `exec_desc` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '执行描述', `enter_time` decimal(20, 4) NULL DEFAULT 0.0000 COMMENT '开始时间', `outer_time` decimal(20, 4) NULL DEFAULT 0.0000 COMMENT '结束时间', `loops_time` bigint(20) NULL DEFAULT 0 COMMENT '循环时间', `attempts` bigint(20) NULL DEFAULT 0 COMMENT '执行次数', `rscript` tinyint(1) NULL DEFAULT 1 COMMENT '任务类型(0单例,1多例)', `status` tinyint(1) NULL DEFAULT 1 COMMENT '任务状态(1新任务,2处理中,3成功,4失败)', `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_queue_code`(`code`) USING BTREE, INDEX `idx_system_queue_title`(`title`) USING BTREE, INDEX `idx_system_queue_status`(`status`) USING BTREE, INDEX `idx_system_queue_rscript`(`rscript`) USING BTREE, INDEX `idx_system_queue_create_at`(`create_at`) USING BTREE, INDEX `idx_system_queue_exec_time`(`exec_time`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-任务' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for system_user -- ---------------------------- DROP TABLE IF EXISTS `system_user`; CREATE TABLE `system_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `usertype` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户类型', `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户账号', `password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户密码', `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户昵称', `headimg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '头像地址', `authorize` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '权限授权', `contact_qq` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '联系QQ', `contact_mail` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '联系邮箱', `contact_phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '联系手机', `login_ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '登录地址', `login_at` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '登录时间', `login_num` bigint(20) NULL DEFAULT 0 COMMENT '登录次数', `describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '备注说明', `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态(0禁用,1启用)', `sort` bigint(20) NULL DEFAULT 0 COMMENT '排序权重', `is_deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除(1删除,0未删)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_system_user_status`(`status`) USING BTREE, INDEX `idx_system_user_username`(`username`) USING BTREE, INDEX `idx_system_user_deleted`(`is_deleted`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统-用户' ROW_FORMAT = COMPACT; -- ---------------------------- -- Table structure for wechat_auto -- ---------------------------- DROP TABLE IF EXISTS `wechat_auto`; CREATE TABLE `wechat_auto` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '类型(text,image,news)', `time` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '延迟时间', `code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '消息编号', `appid` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '文本内容', `image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '图片链接', `voice_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '语音链接', `music_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐标题', `music_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐链接', `music_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '缩略图片', `music_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐描述', `video_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频标题', `video_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频URL', `video_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频描述', `news_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '图文ID', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态(0禁用,1启用)', `create_by` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '创建人', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_wechat_auto_type`(`type`) USING BTREE, INDEX `idx_wechat_auto_keys`(`time`) USING BTREE, INDEX `idx_wechat_auto_code`(`code`) USING BTREE, INDEX `idx_wechat_auto_appid`(`appid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-回复' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_fans -- ---------------------------- DROP TABLE IF EXISTS `wechat_fans`; CREATE TABLE `wechat_fans` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `appid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID', `unionid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '粉丝unionid', `openid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '粉丝openid', `tagid_list` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '粉丝标签id', `is_black` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '是否为黑名单状态', `subscribe` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '关注状态(0未关注,1已关注)', `nickname` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户昵称', `sex` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '用户性别(1男性,2女性,0未知)', `country` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户所在国家', `province` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户所在省份', `city` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户所在城市', `language` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户的语言(zh_CN)', `headimgurl` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户头像', `subscribe_time` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '关注时间', `subscribe_at` datetime NULL DEFAULT NULL COMMENT '关注时间', `remark` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '备注', `subscribe_scene` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '扫码关注场景', `qr_scene` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '二维码场景值', `qr_scene_str` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '二维码场景内容', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `index_wechat_fans_openid`(`openid`) USING BTREE, INDEX `index_wechat_fans_unionid`(`unionid`) USING BTREE, INDEX `index_wechat_fans_isblack`(`is_black`) USING BTREE, INDEX `index_wechat_fans_subscribe`(`subscribe`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-粉丝' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_fans_tags -- ---------------------------- DROP TABLE IF EXISTS `wechat_fans_tags`; CREATE TABLE `wechat_fans_tags` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '标签ID', `appid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID', `name` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '标签名称', `count` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '总数', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', INDEX `index_wechat_fans_tags_id`(`id`) USING BTREE, INDEX `index_wechat_fans_tags_appid`(`appid`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-标签' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_keys -- ---------------------------- DROP TABLE IF EXISTS `wechat_keys`; CREATE TABLE `wechat_keys` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `appid` char(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号APPID', `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '类型(text,image,news)', `keys` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '关键字', `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '文本内容', `image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '图片链接', `voice_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '语音链接', `music_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐标题', `music_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐链接', `music_image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '缩略图片', `music_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '音乐描述', `video_title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频标题', `video_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频URL', `video_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '视频描述', `news_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '图文ID', `sort` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '排序字段', `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态(0禁用,1启用)', `create_by` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '创建人', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `index_wechat_keys_appid`(`appid`) USING BTREE, INDEX `index_wechat_keys_type`(`type`) USING BTREE, INDEX `index_wechat_keys_keys`(`keys`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-规则' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_media -- ---------------------------- DROP TABLE IF EXISTS `wechat_media`; CREATE TABLE `wechat_media` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `md5` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文件md5', `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '媒体类型', `appid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '公众号ID', `media_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '永久素材MediaID', `local_url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '本地文件链接', `media_url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '远程图片链接', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `index_wechat_media_appid`(`appid`) USING BTREE, INDEX `index_wechat_media_md5`(`md5`) USING BTREE, INDEX `index_wechat_media_type`(`type`) USING BTREE, INDEX `index_wechat_media_media_id`(`media_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-素材' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_news -- ---------------------------- DROP TABLE IF EXISTS `wechat_news`; CREATE TABLE `wechat_news` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `media_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '永久素材MediaID', `local_url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '永久素材外网URL', `article_id` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '关联图文ID(用英文逗号做分割)', `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '删除状态(0未删除,1已删除)', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建人', PRIMARY KEY (`id`) USING BTREE, INDEX `index_wechat_news_artcle_id`(`article_id`) USING BTREE, INDEX `index_wechat_news_media_id`(`media_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-图文' ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Table structure for wechat_news_article -- ---------------------------- DROP TABLE IF EXISTS `wechat_news_article`; CREATE TABLE `wechat_news_article` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '素材标题', `local_url` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '永久素材显示URL', `show_cover_pic` tinyint(4) UNSIGNED NULL DEFAULT 0 COMMENT '显示封面(0不显示,1显示)', `author` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '文章作者', `digest` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '摘要内容', `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '图文内容', `content_source_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '原文地址', `read_num` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '阅读数量', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '微信-文章' ROW_FORMAT = DYNAMIC; SET FOREIGN_KEY_CHECKS = 1;
the_stack
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.28 - MySQL Community Server (GPL) -- 服务器OS: Linux -- HeidiSQL 版本: 10.2.0.5599 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping structure for table think.article CREATE TABLE IF NOT EXISTS `article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL, `image` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL, `article_category_id` int(11) NOT NULL, `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `top` int(11) DEFAULT '0' COMMENT '是否置顶', `sort` int(11) DEFAULT '0', `status` int(11) DEFAULT '1' COMMENT '状态 0 隐藏 1 显示', `create_time` int(11) NOT NULL, `update_time` int(11) NOT NULL, `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='文章表'; -- Dumping data for table think.article: ~0 rows (大约) /*!40000 ALTER TABLE `article` DISABLE KEYS */; INSERT INTO `article` (`id`, `title`, `image`, `article_category_id`, `content`, `top`, `sort`, `status`, `create_time`, `update_time`, `delete_time`) VALUES (1, '文章一', 'storage/topic/20210301\\6906862ce43bdce3991e0054431992c6.jpg', 4, '<p>9090</p>', 1, 0, 1, 1614566767, 1614568003, 0); /*!40000 ALTER TABLE `article` ENABLE KEYS */; -- Dumping structure for table think.article_category CREATE TABLE IF NOT EXISTS `article_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `pid` int(11) NOT NULL, `disable` int(11) NOT NULL, `create_time` int(11) NOT NULL, `update_time` int(11) NOT NULL, `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.article_category: ~2 rows (大约) /*!40000 ALTER TABLE `article_category` DISABLE KEYS */; INSERT INTO `article_category` (`id`, `title`, `pid`, `disable`, `create_time`, `update_time`, `delete_time`) VALUES (1, '顶级分类', 0, 0, 1612940363, 1612940363, 0), (4, '分类一', 1, 0, 1614566307, 1614566307, 0); /*!40000 ALTER TABLE `article_category` ENABLE KEYS */; -- Dumping structure for table think.dept CREATE TABLE IF NOT EXISTS `dept` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `pid` int(11) NOT NULL DEFAULT '0', `status` int(11) NOT NULL DEFAULT '1', `create_time` int(11) NOT NULL DEFAULT '0', `update_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.dept: ~4 rows (大约) /*!40000 ALTER TABLE `dept` DISABLE KEYS */; INSERT INTO `dept` (`id`, `title`, `pid`, `status`, `create_time`, `update_time`) VALUES (1, 'Ant Design', 0, 1, 1612940363, 1612940363), (2, '深圳分部', 1, 1, 1612940363, 1612940363), (3, '设计部', 2, 1, 1612940363, 1612940363), (4, '程序部', 2, 1, 1612940363, 1612940363); /*!40000 ALTER TABLE `dept` ENABLE KEYS */; -- Dumping structure for table think.menu CREATE TABLE IF NOT EXISTS `menu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL COMMENT '路由名称|资源名称', `title` varchar(100) NOT NULL COMMENT '菜单名称', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级标识', `type` varchar(6) NOT NULL COMMENT '类别 1 目录 2 菜单', `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态 1 正常 0 隐藏', `path` varchar(100) NOT NULL DEFAULT '' COMMENT 'path', `redirect` varchar(100) NOT NULL DEFAULT '' COMMENT 'redirect', `component` varchar(100) NOT NULL DEFAULT '' COMMENT 'component', `icon` varchar(30) NOT NULL DEFAULT '' COMMENT 'icon', `permission` varchar(100) DEFAULT NULL COMMENT 'permission', `keepAlive` int(11) NOT NULL DEFAULT '0' COMMENT 'keepAlive', `hidden` int(11) NOT NULL DEFAULT '0' COMMENT 'hidden', `hideChildrenInMenu` int(11) NOT NULL DEFAULT '0' COMMENT 'hideChildrenInMenu', `blank` int(11) NOT NULL DEFAULT '0' COMMENT 'blank 1 外部链接 0 默认内部', `create_time` int(11) NOT NULL DEFAULT '0', `update_time` int(11) NOT NULL DEFAULT '0', `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8; -- Dumping data for table think.menu: ~27 rows (大约) /*!40000 ALTER TABLE `menu` DISABLE KEYS */; INSERT INTO `menu` (`id`, `name`, `title`, `pid`, `type`, `status`, `path`, `redirect`, `component`, `icon`, `permission`, `keepAlive`, `hidden`, `hideChildrenInMenu`, `blank`, `create_time`, `update_time`, `delete_time`) VALUES (1, 'Index', '首页', 0, 'path', 1, '/', '/dashboard', 'BasicLayout', 'smile-o', '', 0, 0, 0, 0, 0, 0, 0), (2, 'Dashboard', '仪表盘', 1, 'path', 1, '/dashboard', '/dashboard/workplace', 'RouteView', 'smile-o', '', 0, 0, 0, 0, 0, 0, 0), (3, 'Analysis', '分析页', 2, 'menu', 1, '/dashboard/analysis', '', 'Analysis', 'smile-o', '', 0, 0, 0, 0, 0, 0, 0), (4, 'Workspace', '工作台', 2, 'menu', 1, '/dashboard/workplace', '', 'Workplace', 'smile-o', '', 0, 0, 0, 0, 0, 0, 0), (5, 'System', '系统管理', 1, 'path', 1, '/system', '/system/menu', 'PageView', 'smile-o', '', 0, 0, 0, 0, 0, 0, 0), (6, 'Menu', '菜单管理', 5, 'menu', 1, '/system/menu', '', 'Menu', 'smile-o', 'Menu', 0, 0, 0, 0, 0, 1615014044, 0), (7, 'Role', '角色列表', 13, 'menu', 1, '/system/role/list', '', 'Role', 'smile-o', 'Role', 0, 0, 0, 0, 0, 1615014125, 0), (8, 'Account', '管理员列表', 17, 'menu', 1, '/system/account/list', '', 'Account', '', 'Account', 0, 0, 0, 0, 0, 1615014184, 0), (9, 'Dept', '部门管理', 5, 'menu', 1, '/system/dept', '', 'Dept', 'smile-o', 'Dept', 0, 0, 0, 0, 0, 1615014111, 0), (11, 'test', 'test', 1, 'menu', 1, '/test', '', 'Analysis', 'smile-o', '', 0, 0, 0, 0, 1612857539, 1612858652, 1612858652), (12, 'UpdateRole', '更新角色', 13, 'menu', 1, '/system/role/:id', '', 'RoleForm', '', '', 0, 1, 0, 0, 1612859191, 1612859554, 1612859554), (13, 'RoleManage', '角色管理', 5, 'path', 1, '/system/role', '/system/role/list', 'RouteView', 'smile-o', '', 0, 0, 1, 0, 1612859346, 1612859505, 0), (14, 'UpdateRole', '更新角色', 13, 'menu', 1, '/system/role/:id/update', '', 'RoleForm', '', 'UpdateRole', 0, 1, 0, 0, 1612859649, 1615014140, 0), (15, 'CreateRole', '创建角色', 13, 'menu', 1, '/system/role/create', '', 'RoleForm', '', 'CreateRole', 0, 1, 0, 0, 1612889407, 1615014148, 0), (16, 'CreateAccount', '创建管理员', 17, 'menu', 1, '/system/account/create', '', 'AccountForm', '', 'CreateAccount', 0, 1, 0, 0, 1613542028, 1615014194, 0), (17, 'AccountManage', '管理员管理', 5, 'path', 1, '/system/account', '/system/account/list', 'RouteView', 'smile-o', '', 0, 0, 1, 0, 1613542117, 1613542320, 0), (18, 'UpdateAccount', '更新管理员', 17, 'menu', 1, '/system/account/:id/update', '', 'AccountForm', '', 'UpdateAccount', 0, 0, 0, 0, 1613544796, 1615014201, 0), (19, 'ArticleManager', '文章管理', 1, 'path', 1, '/article', '/article/list', 'PageView', 'smile-o', 'Article', 0, 0, 0, 0, 1614562874, 1614567926, 0), (20, 'Article', '文章列表', 19, 'menu', 1, '/article/list', '', 'Article', '', 'Article', 0, 0, 0, 0, 1614562915, 1614567792, 0), (21, 'ArticleCategory', '分类列表', 19, 'menu', 1, '/article/category', '', 'ArticleCategory', '', 'ArticleCategory', 0, 0, 0, 0, 1614562980, 1614567778, 0), (22, 'CreateArticle', '创建文章', 19, 'menu', 1, '/article/create', '', 'ArticleForm', '', 'CreateArticle', 0, 1, 0, 0, 1614563312, 1614563726, 0), (23, 'UpdateArticle', '更新文章', 19, 'menu', 1, '/article/:id/update', '', 'ArticleForm', '', 'UpdateArticle', 0, 1, 0, 0, 1614563375, 1614567969, 0), (24, 'Profile', '个人页', 1, 'path', 1, '/account', '/account/center', 'RouteView', 'smile-o', 'BaseSettings,SecuritySettings', 0, 0, 0, 0, 1615015814, 1615017443, 0), (25, 'ProfileAccount', '个人中心', 24, 'menu', 1, '/account/center', '', 'Center', '', NULL, 0, 0, 0, 0, 1615015859, 1615016014, 0), (26, 'ProfileSetting', '个人设置', 24, 'menu', 1, '/account/settings', '', 'Settings', '', 'BaseSettings,SecuritySettings', 0, 0, 0, 0, 1615015908, 1615016202, 0), (27, 'BaseSettings', '基本设置', 26, 'menu', 1, '/account/settings/base', '', 'BaseSettings', '', '', 0, 0, 0, 0, 1615015966, 1615015966, 0), (28, 'SecuritySettings', '安全设置', 26, 'menu', 1, '/account/settings/security', '', 'SecuritySettings', '', NULL, 0, 0, 0, 0, 1615016152, 1615016152, 0); /*!40000 ALTER TABLE `menu` ENABLE KEYS */; -- Dumping structure for table think.menu_action CREATE TABLE IF NOT EXISTS `menu_action` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `menu_id` int(11) NOT NULL, `create_time` int(11) NOT NULL DEFAULT '0', `update_time` int(11) NOT NULL DEFAULT '0', `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.menu_action: ~33 rows (大约) /*!40000 ALTER TABLE `menu_action` DISABLE KEYS */; INSERT INTO `menu_action` (`id`, `name`, `title`, `menu_id`, `create_time`, `update_time`, `delete_time`) VALUES (1, 'View', '详情', 3, 0, 0, 0), (2, 'View', '详情', 4, 0, 0, 0), (3, 'View', '详情', 7, 0, 0, 0), (4, 'List', '列表', 7, 0, 0, 0), (5, 'Create', '创建', 7, 0, 0, 0), (6, 'Update', '更新', 7, 0, 0, 0), (7, 'Delete', '删除', 7, 0, 0, 0), (8, 'List', '列表', 6, 1612938348, 1612938348, 0), (9, 'Info', '详情', 6, 1612938363, 1612938363, 0), (10, 'Update', '修改', 6, 1612938386, 1612938386, 0), (11, 'Delete', '删除', 6, 1612938396, 1612938396, 0), (12, 'Save', '保存', 16, 1613542061, 1613542061, 0), (13, 'List', '列表', 8, 1613542183, 1613542183, 0), (14, 'Save', '保存', 15, 1613546258, 1613546258, 0), (15, 'Save', '保存', 14, 1613546271, 1613546271, 0), (16, 'Save', '保存', 18, 1613546286, 1613546286, 0), (17, 'List', '列表', 20, 1614562996, 1614562996, 0), (18, 'Create', '新增', 20, 1614563009, 1614563009, 0), (20, 'Delete', '删除', 20, 1614563038, 1614563038, 0), (21, 'List', '列表', 21, 1614563065, 1614563065, 0), (22, 'Create', '新增', 21, 1614563088, 1614563088, 0), (23, 'Update', '修改', 21, 1614563099, 1614563099, 0), (24, 'Delete', '删除', 21, 1614563119, 1614563119, 0), (25, 'Update', '修改', 20, 1614563144, 1614563144, 0), (26, 'Save', '保存', 22, 1614563324, 1614563324, 0), (27, 'Save', '保存', 23, 1614563415, 1614563415, 0), (28, 'List', '列表', 9, 1615014392, 1615014392, 0), (29, 'Update', '修改', 9, 1615014409, 1615014409, 0), (30, 'Delete', '删除', 9, 1615014423, 1615014423, 0), (31, 'Create', '新增', 6, 1615015052, 1615015052, 0), (32, 'SaveProfile', '更新信息', 27, 1615016065, 1615016065, 0), (33, 'SaveAvatar', '更新头像', 27, 1615016094, 1615016094, 0), (34, 'UpdateSecurityPassword', '更新密码', 28, 1615016179, 1615016179, 0); /*!40000 ALTER TABLE `menu_action` ENABLE KEYS */; -- Dumping structure for table think.role CREATE TABLE IF NOT EXISTS `role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` int(11) NOT NULL DEFAULT '1', `create_time` int(11) DEFAULT '0', `update_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.role: ~2 rows (大约) /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` (`id`, `title`, `status`, `create_time`, `update_time`) VALUES (7, '普通超管组', 1, 1612939329, 1613547896), (8, '高级管理员', 1, 1613546245, 1613546245); /*!40000 ALTER TABLE `role` ENABLE KEYS */; -- Dumping structure for table think.role_action CREATE TABLE IF NOT EXISTS `role_action` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL, `menu_action_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.role_action: ~26 rows (大约) /*!40000 ALTER TABLE `role_action` DISABLE KEYS */; INSERT INTO `role_action` (`id`, `role_id`, `menu_action_id`) VALUES (81, 8, 1), (82, 8, 2), (83, 8, 8), (84, 8, 9), (85, 8, 10), (86, 8, 11), (87, 8, 3), (88, 8, 4), (89, 8, 5), (90, 8, 6), (91, 8, 7), (92, 8, 15), (93, 8, 14), (94, 8, 13), (95, 8, 12), (96, 8, 16), (106, 7, 1), (107, 7, 2), (108, 7, 8), (109, 7, 9), (110, 7, 28), (111, 7, 3), (112, 7, 4), (113, 7, 13), (114, 7, 17), (115, 7, 21); /*!40000 ALTER TABLE `role_action` ENABLE KEYS */; -- Dumping structure for table think.rules CREATE TABLE IF NOT EXISTS `rules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ptype` varchar(255) DEFAULT NULL, `v0` varchar(255) DEFAULT NULL, `v1` varchar(255) DEFAULT NULL, `v2` varchar(255) DEFAULT NULL, `v3` varchar(255) DEFAULT NULL, `v4` varchar(255) DEFAULT NULL, `v5` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=86 DEFAULT CHARSET=utf8; -- Dumping data for table think.rules: ~29 rows (大约) /*!40000 ALTER TABLE `rules` DISABLE KEYS */; INSERT INTO `rules` (`id`, `ptype`, `v0`, `v1`, `v2`, `v3`, `v4`, `v5`) VALUES (32, 'g', '1234', '7', NULL, NULL, NULL, NULL), (33, 'g', '1234', '8', NULL, NULL, NULL, NULL), (49, 'p', '8', 'Analysis', 'View', NULL, NULL, NULL), (50, 'p', '8', 'Workspace', 'View', NULL, NULL, NULL), (51, 'p', '8', 'Role', 'View', NULL, NULL, NULL), (52, 'p', '8', 'Role', 'List', NULL, NULL, NULL), (53, 'p', '8', 'Role', 'Create', NULL, NULL, NULL), (54, 'p', '8', 'Role', 'Update', NULL, NULL, NULL), (55, 'p', '8', 'Role', 'Delete', NULL, NULL, NULL), (56, 'p', '8', 'Menu', 'List', NULL, NULL, NULL), (57, 'p', '8', 'Menu', 'Info', NULL, NULL, NULL), (58, 'p', '8', 'Menu', 'Update', NULL, NULL, NULL), (59, 'p', '8', 'Menu', 'Delete', NULL, NULL, NULL), (60, 'p', '8', 'CreateAccount', 'Save', NULL, NULL, NULL), (61, 'p', '8', 'Account', 'List', NULL, NULL, NULL), (62, 'p', '8', 'CreateRole', 'Save', NULL, NULL, NULL), (63, 'p', '8', 'UpdateRole', 'Save', NULL, NULL, NULL), (64, 'p', '8', 'UpdateAccount', 'Save', NULL, NULL, NULL), (75, 'g', 'test', '7', NULL, NULL, NULL, NULL), (76, 'p', '7', 'Analysis', 'View', NULL, NULL, NULL), (77, 'p', '7', 'Workspace', 'View', NULL, NULL, NULL), (78, 'p', '7', 'Role', 'View', NULL, NULL, NULL), (79, 'p', '7', 'Role', 'List', NULL, NULL, NULL), (80, 'p', '7', 'Menu', 'List', NULL, NULL, NULL), (81, 'p', '7', 'Menu', 'Info', NULL, NULL, NULL), (82, 'p', '7', 'Account', 'List', NULL, NULL, NULL), (83, 'p', '7', 'Article', 'List', NULL, NULL, NULL), (84, 'p', '7', 'ArticleCategory', 'List', NULL, NULL, NULL), (85, 'p', '7', 'Dept', 'List', NULL, NULL, NULL); /*!40000 ALTER TABLE `rules` ENABLE KEYS */; -- Dumping structure for table think.user CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户唯一标识(登录名)', `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录密码', `nickname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称', `dept_id` int(11) NOT NULL DEFAULT '3' COMMENT '部门标识', `status` int(11) NOT NULL DEFAULT '0' COMMENT '状态', `avatar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '头像', `email` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '邮箱', `allowed_grant_types` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'authorization_code', `create_time` int(11) NOT NULL COMMENT '创建时间', `update_time` int(11) NOT NULL COMMENT '更新时间', `delete_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- Dumping data for table think.user: ~3 rows (大约) /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`id`, `username`, `password`, `nickname`, `dept_id`, `status`, `avatar`, `email`, `allowed_grant_types`, `create_time`, `update_time`, `delete_time`) VALUES (1, 'admin', '$2y$10$sJD.370QlvbVOII6yNZrv.Rj44q1BICLVFF765U6P50gb079.GrXa', 'admin', 0, 1, 'storage/topic/avatar.png', 'SeratiMa@aliyun.com', 'authorization_code', 1589699902, 1613543684, 0), (3, 'test', '$2y$10$sJD.370QlvbVOII6yNZrv.Rj44q1BICLVFF765U6P50gb079.GrXa', '测试', 4, 1, '', '', 'authorization_code', 1593931035, 1615013597, 0), (10, '1234', '$2y$10$sJD.370QlvbVOII6yNZrv.Rj44q1BICLVFF765U6P50gb079.GrXa', '1234', 3, 1, '', '', 'authorization_code', 1613548328, 1613548372, 0); /*!40000 ALTER TABLE `user` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
the_stack
-- -- XC_FOR_UPDATE -- -- create some tables create table t1(val int, val2 int); create table t2(val int, val2 int); create table t3(val int, val2 int); create table p1(a int, b int); create table c1(a int, b int,d int, e int); -- insert some rows in them insert into t1 values(1,11),(2,11); insert into t2 values(3,11),(4,11); insert into t3 values(5,11),(6,11); insert into p1 values(55,66),(77,88),(111,222),(123,345); insert into c1 values(111,222,333,444),(123,345,567,789); select * from t1 order by val; select * from t2 order by val; select * from t3 order by val; select * from p1 order by a; select * from c1 order by a; -- create a view too create view v1 as select * from t1 for update; -- test a few queries with row marks select * from t1 order by 1 for update of t1 nowait; select * from t1, t2, t3 order by 1 for update; select * from v1 order by val; WITH q1 AS (SELECT * from t1 order by 1 FOR UPDATE) SELECT * FROM q1,t2 order by 1 FOR UPDATE; WITH q1 AS (SELECT * from t1 order by 1) SELECT * FROM q1; WITH q1 AS (SELECT * from t1 order by 1) SELECT * FROM q1 FOR UPDATE; WITH q1 AS (SELECT * from t1 order by 1 FOR UPDATE) SELECT * FROM q1 FOR UPDATE; -- confirm that in various join scenarios for update gets to the remote query -- single table case explain (costs off, num_verbose on) select * from t1 for update of t1 nowait; -- two table case explain (costs off, num_verbose on) select * from t1, t2 where t1.val = t2.val for update nowait; explain (costs off, num_verbose on) select * from t1, t2 where t1.val = t2.val for update; explain (costs off, num_verbose on) select * from t1, t2 where t1.val = t2.val for share; explain (costs off, num_verbose on) select * from t1, t2 where t1.val = t2.val; explain (costs off, num_verbose on) select * from t1, t2; explain (costs off, num_verbose on) select * from t1, t2 for update; explain (costs off, num_verbose on) select * from t1, t2 for update nowait; explain (costs off, num_verbose on) select * from t1, t2 for share nowait; explain (costs off, num_verbose on) select * from t1, t2 for share; explain (costs off, num_verbose on) select * from t1, t2 for share of t2; -- three table case explain (costs off, num_verbose on) select * from t1, t2, t3; explain (costs off, num_verbose on) select * from t1, t2, t3 for update; explain (costs off, num_verbose on) select * from t1, t2, t3 for update of t1; explain (costs off, num_verbose on) select * from t1, t2, t3 for update of t1,t3; explain (costs off, num_verbose on) select * from t1, t2, t3 for update of t1,t3 nowait; explain (costs off, num_verbose on) select * from t1, t2, t3 for share of t1,t2 nowait; -- check a few subquery cases explain (costs off, num_verbose on) select * from (select * from t1 for update of t1 nowait) as foo; explain (costs off, num_verbose on) select * from t1 where val in (select val from t2 for update of t2 nowait) for update; explain (costs off, num_verbose on) select * from t1 where val in (select val from t2 for update of t2 nowait); -- test multiple row marks explain (costs off, num_verbose on) select * from t1, t2 for share of t2 for update of t1; -- make sure FOR UPDATE takes prioriy over FOR SHARE when mentioned for the same table explain (costs off, num_verbose on) select * from t1 for share of t1 for update of t1; explain (costs off, num_verbose on) select * from t1 for update of t1 for share of t1; explain (costs off, num_verbose on) select * from t1 for share of t1 for share of t1 for update of t1; explain (costs off, num_verbose on) select * from t1 for share of t1 for share of t1 for share of t1; -- make sure NOWAIT is used in remote query even if it is not mentioned with FOR UPDATE clause explain (costs off, num_verbose on) select * from t1 for share of t1 for share of t1 nowait for update of t1; -- same table , different aliases and different row marks for different aliases explain (costs off, num_verbose on) select * from t1 a,t1 b for share of a for update of b; -- test WITH queries -- join of a WITH table and a normal table explain (costs off, num_verbose on) WITH q1 AS (SELECT * from t1 FOR UPDATE) SELECT * FROM q1,t2 FOR UPDATE; explain (costs off, num_verbose on) WITH q1 AS (SELECT * from t1) SELECT * FROM q1; -- make sure row marks are no ops for queries on WITH tables explain (costs off, num_verbose on) WITH q1 AS (SELECT * from t1) SELECT * FROM q1 FOR UPDATE; explain (costs off, num_verbose on) WITH q1 AS (SELECT * from t1 FOR UPDATE) SELECT * FROM q1 FOR UPDATE; -- test case of inheried tables select * from p1 order by 1 for update; explain (costs off, num_verbose on) select * from p1 for update; select * from c1 order by 1 for update; explain (costs off, num_verbose on) select * from c1 for update; -- drop objects created drop table c1; drop table p1; drop view v1; drop table t1; drop table t2; drop table t3; --new add test cases from developer test and customer's case create table t1(a int,b int,c int); create table t2(a int,b int,c int); create table t3(a int,b int,c int); create table rep(a int,b int,c int) distribute by replication; create table vt(a int,b int,c int) with(orientation = column); create foreign table ft (id int not null) server gsmpp_server options(format 'text', location 'gsfs://127.0.0.1:99999/test.data', mode 'normal', delimiter '|'); create view view_t1 as select * from t1; create view view_vt as select * from vt; create view view_ft as select * from ft; insert into t1 values(1,1,1); insert into t1 values(2,2,2); insert into t1 values(3,3,3); insert into t2 values(3,3,3); insert into t2 values(4,4,4); insert into t3 values(1,1,1); insert into t3 values(2,2,2); insert into t3 values(3,3,3); --test support table type and view for update select * from t1 for update; select * from view_t1 for update; select * from vt for update; select * from view_vt for update; select * from ft for update; select * from view_ft for update; --test case from customer's application select * from t1 m where exists (select * from t2 n where m.a+2=n.b) order by a for update; select * from t1 t where exists (select * from t3 a where a.a = t.a) order by a for update; select * from t1 t where exists (select 1 from (select b.a from t2 b where exists (select 1 from t3 t1 where t1.a = b.a)) c where c.a = t.a) order by a for update; select * from t1 m where exists (select * from t2 n where m.a+2=n.b for update) for update; select 1 from t1 t where exists (select * from t3 a where a.a = t.a for update) for update; select * from t1 m where exists (select * from t2 n where m.a+2=n.b order by a for update) order by a for update; select 1 from t1 t where exists (select 1 from (select b.a from t2 b where exists (select 1 from t3 t1 where t1.a = b.a)) c where c.a = t.a for update) for update; --test unsupport case of multiple FOR UPDATE/SHARE or multiple lock table select * from t1,(select * from t1 for update) for update of t1; select * from (select * from t1 for update) as a, (select * from t1 for update) as b for update; --no need add redistribute specially explain verbose select * from t1,t2 where t1.a=t2.a for update of t1; --no need add redistribute specially explain verbose select * from t1,t2 where t1.a=t2.b for update of t1; --need add redistribute specially explain verbose select * from t1,t2 where t1.b=t2.b for update of t1; --need add redistribute specially explain verbose select * from t1,t2 where t1.b=t2.a for update of t1; --no need add redistribute specially explain verbose select * from t1,t2 where t1.a=t2.a for update of t2; --need add redistribute specially explain verbose select * from t1,t2 where t1.a=t2.b for update of t2; --need add redistribute specially explain verbose select * from t1,t2 where t1.b=t2.b for update of t2; --no need add redistribute specially explain verbose select * from t1,t2 where t1.b=t2.a for update of t2; --no need add redistribute for replication table explain verbose select * from rep,t1 for update of rep; drop view view_t1; drop view view_vt; drop view view_ft; drop table t1; drop table t2; drop table t3; drop table rep; drop table vt; drop foreign table ft; --test lock partition create table lock_partition_001(val int, val2 int) partition by range(val) ( partition p1 values less than (2451179) , partition p2 values less than (2451544) , partition p3 values less than (2451910) , partition p4 values less than (2452275) , partition p5 values less than (2452640) , partition p6 values less than (2453005) , partition p7 values less than (maxvalue) ); create table lock_partition_002(val int, val2 int) partition by range(val) ( partition p1 values less than (2451179) , partition p2 values less than (2451544) , partition p3 values less than (2451910) , partition p4 values less than (2452275) , partition p5 values less than (2452640) , partition p6 values less than (2453005) , partition p7 values less than (maxvalue) ); create table lock_partition_003(val int, val2 int) partition by range(val) ( partition p1 values less than (2451179) , partition p2 values less than (2451544) , partition p3 values less than (2451910) , partition p4 values less than (2452275) , partition p5 values less than (2452640) , partition p6 values less than (2453005) , partition p7 values less than (maxvalue) ); insert into lock_partition_001 values(1,1); insert into lock_partition_002 values(2,2); insert into lock_partition_003 values(3,3); insert into lock_partition_003 values(3,11); insert into lock_partition_003 values(3,12); insert into lock_partition_003 values(3,13); select * from lock_partition_001, lock_partition_002, lock_partition_003 order by lock_partition_003.val2 for update of lock_partition_001; explain (costs off, verbose on) select * from lock_partition_001, lock_partition_002, lock_partition_003 order by lock_partition_003.val2 for update of lock_partition_001; drop table lock_partition_001; drop table lock_partition_002; drop table lock_partition_003; create table customer ( c_customer_sk integer not null, c_customer_id char(16) not null, c_current_cdemo_sk integer , c_current_hdemo_sk integer , c_current_addr_sk integer , c_first_shipto_date_sk integer , c_first_sales_date_sk integer , c_salutation char(10) , c_first_name char(20) , c_last_name char(30) , c_preferred_cust_flag char(1) , c_birth_day integer , c_birth_month integer , c_birth_year integer , c_birth_country varchar(20) , c_login char(13) , c_email_address char(50) , c_last_review_date char(10) ) distribute by hash(c_birth_day,c_birth_month); create table customer_address ( ca_address_sk integer not null, ca_address_id char(16) not null, ca_street_number char(10) , ca_street_name varchar(60) , ca_street_type char(15) , ca_suite_number char(10) , ca_city varchar(60) , ca_county varchar(30) , ca_state char(2) , ca_zip char(10) , ca_country varchar(20) , ca_gmt_offset decimal(5,2) , ca_location_type char(20) ) distribute by hash (ca_address_sk); create table household_demographics ( hd_demo_sk integer not null, hd_income_band_sk integer , hd_buy_potential char(15) , hd_dep_count integer , hd_vehicle_count integer ) distribute by hash (hd_income_band_sk); --failed for limit select c_current_addr_sk, c_current_hdemo_sk, c_first_shipto_date_sk from customer a where exists (select ca_address_sk from customer_address b where a.c_current_addr_sk = b.ca_address_sk + b.ca_address_sk) or exists (select hd_demo_sk from household_demographics c where a.c_current_hdemo_sk = c.hd_demo_sk * hd_dep_count) order by 1, 2, 3 limit 200 for update; --success for targetlist not contain lock table's distribute key select c_current_addr_sk, c_current_hdemo_sk, c_first_shipto_date_sk from customer a where exists (select ca_address_sk from customer_address b where a.c_current_addr_sk = b.ca_address_sk + b.ca_address_sk) or exists (select hd_demo_sk from household_demographics c where a.c_current_hdemo_sk = c.hd_demo_sk * hd_dep_count) order by 1, 2, 3 for update; --success for targetlist contain lock table's distribute key select c_birth_day, c_birth_month, c_current_addr_sk, c_current_hdemo_sk, c_first_shipto_date_sk from customer a where exists (select ca_address_sk from customer_address b where a.c_current_addr_sk = b.ca_address_sk + b.ca_address_sk) or exists (select hd_demo_sk from household_demographics c where a.c_current_hdemo_sk = c.hd_demo_sk * hd_dep_count) order by 1, 2, 3 for update; drop table customer; drop table customer_address;
the_stack
-- 2017-07-10T10:56:44.633 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540074,540816,TO_TIMESTAMP('2017-07-10 10:56:44','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-07-10 10:56:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:56:56.300 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET Name='advanced edit', UIStyle='',Updated=TO_TIMESTAMP('2017-07-10 10:56:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540102 ; -- 2017-07-10T10:57:00.512 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=90,Updated=TO_TIMESTAMP('2017-07-10 10:57:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540102 ; -- 2017-07-10T10:57:45.401 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3162,0,282,540816,546490,TO_TIMESTAMP('2017-07-10 10:57:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Name',10,0,0,TO_TIMESTAMP('2017-07-10 10:57:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:58:08.837 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3157,0,282,540816,546491,TO_TIMESTAMP('2017-07-10 10:58:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Anrede',20,0,0,TO_TIMESTAMP('2017-07-10 10:58:08','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:58:22.195 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540074,540817,TO_TIMESTAMP('2017-07-10 10:58:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','description',20,TO_TIMESTAMP('2017-07-10 10:58:22','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:58:36.434 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551741,0,282,540817,546492,TO_TIMESTAMP('2017-07-10 10:58:36','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Briefanrede',10,0,0,TO_TIMESTAMP('2017-07-10 10:58:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:59:03.435 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540075,540818,TO_TIMESTAMP('2017-07-10 10:59:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','flags',10,TO_TIMESTAMP('2017-07-10 10:59:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:59:11.137 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540075,540819,TO_TIMESTAMP('2017-07-10 10:59:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-07-10 10:59:11','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:59:21.738 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3159,0,282,540818,546493,TO_TIMESTAMP('2017-07-10 10:59:21','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Aktiv',10,0,0,TO_TIMESTAMP('2017-07-10 10:59:21','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:59:40.238 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3161,0,282,540818,546494,TO_TIMESTAMP('2017-07-10 10:59:40','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Nur Vorname',20,0,0,TO_TIMESTAMP('2017-07-10 10:59:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T10:59:56.425 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3160,0,282,540818,546495,TO_TIMESTAMP('2017-07-10 10:59:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Standard',30,0,0,TO_TIMESTAMP('2017-07-10 10:59:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T11:00:08.057 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-10 11:00:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546495 ; -- 2017-07-10T11:00:11.121 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-10 11:00:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546494 ; -- 2017-07-10T11:00:35.768 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3155,0,282,540819,546496,TO_TIMESTAMP('2017-07-10 11:00:35','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-07-10 11:00:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T11:00:54.492 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,3154,0,282,540819,546497,TO_TIMESTAMP('2017-07-10 11:00:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-07-10 11:00:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T11:02:20.944 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541473 ; -- 2017-07-10T11:02:20.955 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541474 ; -- 2017-07-10T11:02:20.970 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541477 ; -- 2017-07-10T11:02:20.982 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541478 ; -- 2017-07-10T11:02:20.990 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541475 ; -- 2017-07-10T11:02:21.003 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541480 ; -- 2017-07-10T11:02:21.017 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541479 ; -- 2017-07-10T11:02:21.028 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541476 ; -- 2017-07-10T11:02:25.388 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540102 ; -- 2017-07-10T11:10:52.446 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-07-10 11:10:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546490 ; -- 2017-07-10T15:17:22.801 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551741,0,282,540816,546498,TO_TIMESTAMP('2017-07-10 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Briefanrede',30,0,0,TO_TIMESTAMP('2017-07-10 15:17:22','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T15:17:29.255 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546491 ; -- 2017-07-10T15:17:59.341 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546492 ; -- 2017-07-10T15:18:03.260 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540817 ; -- 2017-07-10T15:18:37.188 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540074,540820,TO_TIMESTAMP('2017-07-10 15:18:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','letter',20,TO_TIMESTAMP('2017-07-10 15:18:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T15:18:56.838 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551741,0,282,540820,546499,TO_TIMESTAMP('2017-07-10 15:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Briefanrede',10,0,0,TO_TIMESTAMP('2017-07-10 15:18:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-10T15:19:26.802 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546498 ; -- 2017-07-10T15:21:52.933 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546490 ; -- 2017-07-10T15:21:52.939 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546499 ; -- 2017-07-10T15:21:52.944 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546493 ; -- 2017-07-10T15:21:52.948 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546495 ; -- 2017-07-10T15:21:52.953 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546494 ; -- 2017-07-10T15:21:52.957 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546496 ; -- 2017-07-10T15:21:52.961 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-07-10 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546497 ; -- 2017-07-10T15:22:05.775 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=10,Updated=TO_TIMESTAMP('2017-07-10 15:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546490 ; -- 2017-07-10T15:22:05.781 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=20,Updated=TO_TIMESTAMP('2017-07-10 15:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546493 ; -- 2017-07-10T15:22:05.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=30,Updated=TO_TIMESTAMP('2017-07-10 15:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546495 ; -- 2017-07-10T15:22:05.792 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=40,Updated=TO_TIMESTAMP('2017-07-10 15:22:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546494 ; -- 2017-07-10T15:26:33.607 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nur Vorname',Updated=TO_TIMESTAMP('2017-07-10 15:26:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3161 ; -- 2017-07-10T15:26:48.701 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET Name='Nur Vorname', PrintName='Nur Vorname',Updated=TO_TIMESTAMP('2017-07-10 15:26:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1173 ; -- 2017-07-10T15:26:48.706 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsFirstNameOnly', Name='Nur Vorname', Description='Nur den ersten Namen bei Anreden drucken', Help='Das Selektionsfeld "Nur erster Name" zeigt an, dass nur der erste Name dieses Kontaktes bei der Anrede gedruckt weren soll.' WHERE AD_Element_ID=1173 ; -- 2017-07-10T15:26:48.729 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsFirstNameOnly', Name='Nur Vorname', Description='Nur den ersten Namen bei Anreden drucken', Help='Das Selektionsfeld "Nur erster Name" zeigt an, dass nur der erste Name dieses Kontaktes bei der Anrede gedruckt weren soll.', AD_Element_ID=1173 WHERE UPPER(ColumnName)='ISFIRSTNAMEONLY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2017-07-10T15:26:48.730 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsFirstNameOnly', Name='Nur Vorname', Description='Nur den ersten Namen bei Anreden drucken', Help='Das Selektionsfeld "Nur erster Name" zeigt an, dass nur der erste Name dieses Kontaktes bei der Anrede gedruckt weren soll.' WHERE AD_Element_ID=1173 AND IsCentrallyMaintained='Y' ; -- 2017-07-10T15:26:48.731 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nur Vorname', Description='Nur den ersten Namen bei Anreden drucken', Help='Das Selektionsfeld "Nur erster Name" zeigt an, dass nur der erste Name dieses Kontaktes bei der Anrede gedruckt weren soll.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=1173) AND IsCentrallyMaintained='Y' ; -- 2017-07-10T15:26:48.743 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Nur Vorname', Name='Nur Vorname' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=1173) ;
the_stack
-- MySQL Script generated by MySQL Workbench -- Sat Apr 17 00:49:46 2021 -- Model: Sakila Full Version: 2.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema sakila -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema sakila -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `sakila` ; USE `sakila` ; -- ----------------------------------------------------- -- Table `sakila`.`actor` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`actor` ( `actor_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`actor_id`), INDEX `idx_actor_last_name` (`last_name` ASC)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`country` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`country` ( `country_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `country` VARCHAR(50) NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`country_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`city` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`city` ( `city_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `city` VARCHAR(50) NOT NULL, `country_id` SMALLINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`city_id`), INDEX `idx_fk_country_id` (`country_id` ASC), CONSTRAINT `fk_city_country` FOREIGN KEY (`country_id`) REFERENCES `sakila`.`country` (`country_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`address` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`address` ( `address_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `address` VARCHAR(50) NOT NULL, `address2` VARCHAR(50) NULL DEFAULT NULL, `district` VARCHAR(20) NOT NULL, `city_id` SMALLINT UNSIGNED NOT NULL, `postal_code` VARCHAR(10) NULL DEFAULT NULL, `phone` VARCHAR(20) NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`address_id`), INDEX `idx_fk_city_id` (`city_id` ASC), CONSTRAINT `fk_address_city` FOREIGN KEY (`city_id`) REFERENCES `sakila`.`city` (`city_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`category` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`category` ( `category_id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(25) NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`category_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`staff` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`staff` ( `staff_id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `address_id` SMALLINT UNSIGNED NOT NULL, `picture` BLOB NULL, `email` VARCHAR(50) NULL DEFAULT NULL, `store_id` TINYINT UNSIGNED NOT NULL, `active` TINYINT(1) NOT NULL DEFAULT TRUE, `username` VARCHAR(16) NOT NULL, `password` VARCHAR(40) BINARY NULL DEFAULT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`staff_id`), INDEX `idx_fk_store_id` (`store_id` ASC), INDEX `idx_fk_address_id` (`address_id` ASC), CONSTRAINT `fk_staff_store` FOREIGN KEY (`store_id`) REFERENCES `sakila`.`store` (`store_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_staff_address` FOREIGN KEY (`address_id`) REFERENCES `sakila`.`address` (`address_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`store` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`store` ( `store_id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `manager_staff_id` TINYINT UNSIGNED NOT NULL, `address_id` SMALLINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`store_id`), UNIQUE INDEX `idx_unique_manager` (`manager_staff_id` ASC), INDEX `idx_fk_address_id` (`address_id` ASC), CONSTRAINT `fk_store_staff` FOREIGN KEY (`manager_staff_id`) REFERENCES `sakila`.`staff` (`staff_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_store_address` FOREIGN KEY (`address_id`) REFERENCES `sakila`.`address` (`address_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`customer` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`customer` ( `customer_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `store_id` TINYINT UNSIGNED NOT NULL, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `email` VARCHAR(50) NULL DEFAULT NULL, `address_id` SMALLINT UNSIGNED NOT NULL, `active` TINYINT(1) NOT NULL DEFAULT TRUE, `create_date` DATETIME NOT NULL, `last_update` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`customer_id`), INDEX `idx_fk_store_id` (`store_id` ASC), INDEX `idx_fk_address_id` (`address_id` ASC), INDEX `idx_last_name` (`last_name` ASC), CONSTRAINT `fk_customer_address` FOREIGN KEY (`address_id`) REFERENCES `sakila`.`address` (`address_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_customer_store` FOREIGN KEY (`store_id`) REFERENCES `sakila`.`store` (`store_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8 COMMENT = 'Table storing all customers. Holds foreign keys to the address table and the store table where this customer is registered.\n\nBasic information about the customer like first and last name are stored in the table itself. Same for the date the record was created and when the information was last updated.'; -- ----------------------------------------------------- -- Table `sakila`.`language` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`language` ( `language_id` TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` CHAR(20) NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`language_id`)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`film` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`film` ( `film_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `description` TEXT NULL, `release_year` YEAR NULL, `language_id` TINYINT UNSIGNED NOT NULL, `original_language_id` TINYINT UNSIGNED NULL DEFAULT NULL, `rental_duration` TINYINT UNSIGNED NOT NULL DEFAULT 3, `rental_rate` DECIMAL(4,2) NOT NULL DEFAULT 4.99, `length` SMALLINT UNSIGNED NULL DEFAULT NULL, `replacement_cost` DECIMAL(5,2) NOT NULL DEFAULT 19.99, `rating` ENUM('G','PG','PG-13','R','NC-17') NULL DEFAULT 'G', `special_features` SET('Trailers','Commentaries','Deleted Scenes','Behind the Scenes') NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX `idx_title` (`title` ASC), INDEX `idx_fk_language_id` (`language_id` ASC), INDEX `idx_fk_original_language_id` (`original_language_id` ASC), PRIMARY KEY (`film_id`), CONSTRAINT `fk_film_language` FOREIGN KEY (`language_id`) REFERENCES `sakila`.`language` (`language_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_film_language_original` FOREIGN KEY (`original_language_id`) REFERENCES `sakila`.`language` (`language_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`film_actor` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`film_actor` ( `actor_id` SMALLINT UNSIGNED NOT NULL, `film_id` SMALLINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`actor_id`, `film_id`), INDEX `idx_fk_film_id` (`film_id` ASC), INDEX `fk_film_actor_actor_idx` (`actor_id` ASC), CONSTRAINT `fk_film_actor_actor` FOREIGN KEY (`actor_id`) REFERENCES `sakila`.`actor` (`actor_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_film_actor_film` FOREIGN KEY (`film_id`) REFERENCES `sakila`.`film` (`film_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`film_category` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`film_category` ( `film_id` SMALLINT UNSIGNED NOT NULL, `category_id` TINYINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`film_id`, `category_id`), INDEX `fk_film_category_category_idx` (`category_id` ASC), INDEX `fk_film_category_film_idx` (`film_id` ASC), CONSTRAINT `fk_film_category_film` FOREIGN KEY (`film_id`) REFERENCES `sakila`.`film` (`film_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_film_category_category` FOREIGN KEY (`category_id`) REFERENCES `sakila`.`category` (`category_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`film_text` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`film_text` ( `film_id` SMALLINT UNSIGNED NOT NULL, `title` VARCHAR(255) NOT NULL, `description` TEXT NULL, PRIMARY KEY (`film_id`), FULLTEXT INDEX `idx_title_description` (`title`, `description`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `sakila`.`inventory` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`inventory` ( `inventory_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT, `film_id` SMALLINT UNSIGNED NOT NULL, `store_id` TINYINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`inventory_id`), INDEX `idx_fk_film_id` (`film_id` ASC), INDEX `idx_store_id_film_id` (`store_id` ASC, `film_id` ASC), INDEX `fk_inventory_store_idx` (`store_id` ASC), CONSTRAINT `fk_inventory_store` FOREIGN KEY (`store_id`) REFERENCES `sakila`.`store` (`store_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_inventory_film` FOREIGN KEY (`film_id`) REFERENCES `sakila`.`film` (`film_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`rental` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`rental` ( `rental_id` INT NOT NULL AUTO_INCREMENT, `rental_date` DATETIME NOT NULL, `inventory_id` MEDIUMINT UNSIGNED NOT NULL, `customer_id` SMALLINT UNSIGNED NOT NULL, `return_date` DATETIME NULL, `staff_id` TINYINT UNSIGNED NOT NULL, `last_update` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`rental_id`), UNIQUE INDEX `idx_rental` (`rental_date` ASC, `inventory_id` ASC, `customer_id` ASC), INDEX `idx_fk_inventory_id` (`inventory_id` ASC), INDEX `idx_fk_customer_id` (`customer_id` ASC), INDEX `idx_fk_staff_id` (`staff_id` ASC), CONSTRAINT `fk_rental_staff` FOREIGN KEY (`staff_id`) REFERENCES `sakila`.`staff` (`staff_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_rental_inventory` FOREIGN KEY (`inventory_id`) REFERENCES `sakila`.`inventory` (`inventory_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_rental_customer` FOREIGN KEY (`customer_id`) REFERENCES `sakila`.`customer` (`customer_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `sakila`.`payment` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `sakila`.`payment` ( `payment_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `customer_id` SMALLINT UNSIGNED NOT NULL, `staff_id` TINYINT UNSIGNED NOT NULL, `rental_id` INT NULL DEFAULT NULL, `amount` DECIMAL(5,2) NOT NULL, `payment_date` DATETIME NOT NULL, `last_update` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`payment_id`), INDEX `idx_fk_staff_id` (`staff_id` ASC), INDEX `idx_fk_customer_id` (`customer_id` ASC), INDEX `fk_payment_rental_idx` (`rental_id` ASC), CONSTRAINT `fk_payment_rental` FOREIGN KEY (`rental_id`) REFERENCES `sakila`.`rental` (`rental_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `fk_payment_customer` FOREIGN KEY (`customer_id`) REFERENCES `sakila`.`customer` (`customer_id`) ON DELETE RESTRICT ON UPDATE CASCADE, CONSTRAINT `fk_payment_staff` FOREIGN KEY (`staff_id`) REFERENCES `sakila`.`staff` (`staff_id`) ON DELETE RESTRICT ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
the_stack
CREATE DATABASE /*!32312 IF NOT EXISTS*/`mssystemsys` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mssystemsys`; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_button -- ---------------------------- DROP TABLE IF EXISTS `sys_button`; CREATE TABLE `sys_button` ( `ButtonId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `ButtonName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单名称', `Memo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', PRIMARY KEY (`ButtonId`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_button -- ---------------------------- INSERT INTO `sys_button` VALUES (1, '查看', '查看'); INSERT INTO `sys_button` VALUES (2, '新增', '新增'); INSERT INTO `sys_button` VALUES (3, '编辑', '编辑'); INSERT INTO `sys_button` VALUES (4, '删除', '删除'); INSERT INTO `sys_button` VALUES (5, '打印', '打印'); INSERT INTO `sys_button` VALUES (6, '审核', '审核'); INSERT INTO `sys_button` VALUES (7, '作废', '作废'); INSERT INTO `sys_button` VALUES (8, '结束', '结束'); INSERT INTO `sys_button` VALUES (9, '扩展', '扩展'); -- ---------------------------- -- Table structure for sys_data_privileges -- ---------------------------- DROP TABLE IF EXISTS `sys_data_privileges`; CREATE TABLE `sys_data_privileges` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `UserId` bigint(20) NOT NULL COMMENT '用户ID', `DeptId` bigint(20) NOT NULL COMMENT '部门ID', `SystemId` bigint(20) NOT NULL COMMENT '系统ID', PRIMARY KEY (`Id`) USING BTREE, INDEX `UserId`(`UserId`) USING BTREE, INDEX `DeptId`(`DeptId`) USING BTREE, INDEX `SystemId`(`SystemId`) USING BTREE, CONSTRAINT `sys_data_privileges_ibfk_1` FOREIGN KEY (`UserId`) REFERENCES `sys_user` (`UserId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_data_privileges_ibfk_2` FOREIGN KEY (`DeptId`) REFERENCES `sys_dept` (`DeptId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_data_privileges_ibfk_3` FOREIGN KEY (`SystemId`) REFERENCES `sys_system` (`SystemId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '数据权限' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_data_privileges -- ---------------------------- INSERT INTO `sys_data_privileges` VALUES (8, 1, 1, 1); INSERT INTO `sys_data_privileges` VALUES (9, 1, 2, 1); INSERT INTO `sys_data_privileges` VALUES (10, 1, 3, 1); INSERT INTO `sys_data_privileges` VALUES (11, 1, 4, 1); -- ---------------------------- -- Table structure for sys_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( `DeptId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门ID', `DeptName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '部门名称', `DeptCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '部门编号', `ParentId` bigint(20) NOT NULL COMMENT '父级ID', `Path` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '路径', `IsDel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', `Memo` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `CreateUserId` bigint(20) NOT NULL COMMENT '创建人id', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间戳', PRIMARY KEY (`DeptId`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表(作用于全部系统)' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_dept -- ---------------------------- INSERT INTO `sys_dept` VALUES (1, 'MS软件', '001', 0, '1', 0, 'MS软件', 1, 1517812123); INSERT INTO `sys_dept` VALUES (2, '总经室', '002', 1, '1:2', 0, '总经室', 1, 1517812220); INSERT INTO `sys_dept` VALUES (3, '研发部', '003', 1, '1:3', 0, '研发部', 1, 1517814189); INSERT INTO `sys_dept` VALUES (4, '销售部', '004', 1, '1:4', 0, '销售部', 1, 1517814213); -- ---------------------------- -- Table structure for sys_dept_leader -- ---------------------------- DROP TABLE IF EXISTS `sys_dept_leader`; CREATE TABLE `sys_dept_leader` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `DeptId` bigint(20) NOT NULL COMMENT '部门ID', `UserId` bigint(20) NOT NULL COMMENT '用户ID', `LeaderType` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '领导类型', PRIMARY KEY (`Id`) USING BTREE, INDEX `DeptId`(`DeptId`) USING BTREE, INDEX `UserId`(`UserId`) USING BTREE, INDEX `LeaderType`(`LeaderType`) USING BTREE, CONSTRAINT `sys_dept_leader_ibfk_1` FOREIGN KEY (`DeptId`) REFERENCES `sys_dept` (`DeptId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_dept_leader_ibfk_2` FOREIGN KEY (`UserId`) REFERENCES `sys_user` (`UserId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_dept_leader_ibfk_3` FOREIGN KEY (`LeaderType`) REFERENCES `sys_leader` (`Shorter`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门领导关系表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_dept_leader -- ---------------------------- INSERT INTO `sys_dept_leader` VALUES (1, 3, 1, 'bmfzr'); -- ---------------------------- -- Table structure for sys_leader -- ---------------------------- DROP TABLE IF EXISTS `sys_leader`; CREATE TABLE `sys_leader` ( `Shorter` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '缩写,公司领导应根据此字段获取', `LeaderName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '级别名称', `Remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', PRIMARY KEY (`Shorter`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '公司领导类型' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_leader -- ---------------------------- INSERT INTO `sys_leader` VALUES ('bmfjl', '部门副经理', '部门副经理'); INSERT INTO `sys_leader` VALUES ('bmfzr', '部门负责人', '部门负责人/部门经理'); INSERT INTO `sys_leader` VALUES ('boss', '董事长', '董事长/公司老板'); -- ---------------------------- -- Table structure for sys_release_log -- ---------------------------- DROP TABLE IF EXISTS `sys_release_log`; CREATE TABLE `sys_release_log` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `VersionNumber` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '版本号', `Memo` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '描述', `CreateTime` bigint(20) NOT NULL COMMENT '发布时间', PRIMARY KEY (`Id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_release_log -- ---------------------------- INSERT INTO `sys_release_log` VALUES (1, '1', '123', 1498481230); -- ---------------------------- -- Table structure for sys_resource -- ---------------------------- DROP TABLE IF EXISTS `sys_resource`; CREATE TABLE `sys_resource` ( `ResourceId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '资源ID', `SystemId` bigint(20) NOT NULL COMMENT '所属系统', `ResourceName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '资源名称', `ParentId` bigint(11) NOT NULL DEFAULT 0 COMMENT '父级ID', `ResourceUrl` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源地址', `Sort` int(11) NOT NULL COMMENT '同级排序', `ButtonClass` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '按钮样式', `Icon` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式图标ICON', `IsShow` tinyint(4) NOT NULL COMMENT '是否显示到菜单', `CreateUserId` bigint(11) NOT NULL COMMENT '创建人', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间戳', `Memo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `IsDel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', `IsButton` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否是按钮', `ButtonType` tinyint(4) NULL DEFAULT NULL COMMENT '按钮类型', `Path` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源路径', PRIMARY KEY (`ResourceId`) USING BTREE, INDEX `ParentId`(`ParentId`) USING BTREE, INDEX `SystemId`(`SystemId`) USING BTREE, CONSTRAINT `sys_resource_ibfk_1` FOREIGN KEY (`SystemId`) REFERENCES `sys_system` (`SystemId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 277 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '资源表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_resource -- ---------------------------- INSERT INTO `sys_resource` VALUES (1, 1, '系统管理', 0, '/', 1, NULL, 'fa fa-cogs', 1, 1, 1, '123', 0, 0, NULL, '1'); INSERT INTO `sys_resource` VALUES (2, 1, '菜单管理', 1, '/Sys/Resource/Index', 5, NULL, 'fa fa-bars', 1, 1, 1, NULL, 0, 0, NULL, '1:2'); INSERT INTO `sys_resource` VALUES (4, 1, '菜单管理编辑页', 2, '/Sys/Resource/Show', 0, NULL, 'fa fa-balance-scale', 0, 1, 1, NULL, 0, 0, NULL, '2:4'); INSERT INTO `sys_resource` VALUES (48, 1, '查看', 4, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503957966, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (49, 1, '新增', 4, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503957966, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (50, 1, '编辑', 4, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503957966, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (51, 1, '删除', 4, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503957966, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (53, 1, '角色管理', 1, '/Sys/Role/Index', 2, NULL, 'fa fa-group', 1, 1, 1503958727, '123', 0, 0, NULL, '1:53'); INSERT INTO `sys_resource` VALUES (54, 1, '查看', 53, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503958727, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (55, 1, '新增', 53, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503958727, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (56, 1, '编辑', 53, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503958727, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (57, 1, '删除', 53, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503958727, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (58, 1, '子系统管理', 1, '/Sys/System/Index', 4, NULL, 'fa fa-cog', 1, 1, 1503958798, '123', 0, 0, NULL, '1:58'); INSERT INTO `sys_resource` VALUES (59, 1, '查看', 58, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503958825, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (60, 1, '新增', 58, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503958825, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (61, 1, '编辑', 58, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503958825, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (62, 1, '删除', 58, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503958825, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (64, 1, '编辑', 2, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503958921, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (65, 1, '删除', 2, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503958921, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (66, 1, '角色编辑页', 53, '/Sys/Role/Show', 0, NULL, NULL, 0, 1, 1503959673, NULL, 0, 0, NULL, '53:66'); INSERT INTO `sys_resource` VALUES (67, 1, '查看', 66, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503959674, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (68, 1, '新增', 66, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503959674, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (69, 1, '编辑', 66, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503959674, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (70, 1, '删除', 66, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503959674, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (71, 1, '系统编辑页', 58, '/Sys/System/Show', 0, NULL, NULL, 0, 1, 1503959721, NULL, 0, 0, NULL, '58:71'); INSERT INTO `sys_resource` VALUES (72, 1, '查看', 71, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503959721, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (73, 1, '新增', 71, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503959721, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (74, 1, '编辑', 71, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503959721, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (75, 1, '删除', 71, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503959721, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (76, 1, '用户管理', 1, '/Sys/User/Index', 1, NULL, 'fa fa-user', 1, 1, 1503959782, NULL, 0, 0, NULL, '1:76'); INSERT INTO `sys_resource` VALUES (77, 1, '查看', 76, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503959782, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (78, 1, '新增', 76, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503959782, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (79, 1, '编辑', 76, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503959782, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (80, 1, '删除', 76, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503959782, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (81, 1, '用户编辑页', 76, '/Sys/User/Show', 0, NULL, NULL, 0, 1, 1503959818, NULL, 0, 0, NULL, '76:81'); INSERT INTO `sys_resource` VALUES (82, 1, '查看', 81, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503959818, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (83, 1, '新增', 81, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503959818, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (84, 1, '编辑', 81, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1503959818, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (85, 1, '删除', 81, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1503959818, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (86, 1, '查看', 2, NULL, 4, NULL, 'fa fa-search', 0, 0, 1503990906, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (87, 1, '新增', 2, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1503990906, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (88, 2, '工作流', 0, '/', 3, NULL, 'fa fa-sitemap', 1, 1, 1504013557, NULL, 0, 0, NULL, '88'); INSERT INTO `sys_resource` VALUES (91, 2, '流程设计', 88, '/WF/WorkFlow/Index', 3, NULL, 'fa fa-legal', 1, 1, 1504439709, '流程设计列表', 0, 0, NULL, '88:91'); INSERT INTO `sys_resource` VALUES (92, 2, '查看', 91, NULL, 4, NULL, 'fa fa-search', 0, 0, 1504439709, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (93, 2, '我的待办', 88, '/WF/WorkFlowInstance/TodoList', 1, NULL, 'fa fa-user', 1, 1, 1504439745, '我的待办', 0, 0, NULL, '88:93'); INSERT INTO `sys_resource` VALUES (94, 2, '审批历史', 88, '/WF/WorkFlowInstance/MyApprovalHistory', 0, NULL, 'fa fa-history', 1, 1, 1504575850, '审批历史记录', 0, 0, NULL, '88:94'); INSERT INTO `sys_resource` VALUES (95, 2, '查看', 93, NULL, 4, NULL, 'fa fa-search', 0, 0, 1504575862, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (96, 2, '查看', 94, NULL, 4, NULL, 'fa fa-search', 0, 0, 1504575866, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (97, 3, '微信管理', 0, '/', 2, NULL, 'fa fa-weixin', 1, 1, 1504576048, '微信管理', 0, 0, NULL, '97'); INSERT INTO `sys_resource` VALUES (98, 2, '流程分类', 88, '/WF/Category/Index', 4, NULL, 'fa fa-building-o', 1, 1, 1508764750, '流程分类', 0, 0, NULL, '88:98'); INSERT INTO `sys_resource` VALUES (99, 2, '查看', 98, NULL, 4, NULL, 'fa fa-search', 0, 0, 1508764750, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (100, 5, '行政办公', 0, '/', 2, NULL, 'fa fa-book', 1, 1, 1509884326, NULL, 0, 0, NULL, '100'); INSERT INTO `sys_resource` VALUES (142, 1, '部门管理', 1, '/Sys/Dept/Index', 3, NULL, 'fa fa-sitemap', 1, 1, 1514899755, NULL, 0, 0, NULL, '1:142'); INSERT INTO `sys_resource` VALUES (143, 1, '查看', 142, NULL, 4, NULL, 'fa fa-search', 0, 0, 1514899755, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (144, 1, '新增', 142, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1514899755, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (145, 1, '编辑', 142, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1514899755, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (146, 1, '删除', 142, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1514899755, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (152, 1, '部门编辑页', 142, '/Sys/Dept/Show', 1, NULL, '', 0, 1, 1514899820, NULL, 0, 0, NULL, '1:142:152'); INSERT INTO `sys_resource` VALUES (153, 1, '查看', 152, NULL, 4, NULL, 'fa fa-search', 0, 0, 1514899820, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (154, 1, '新增', 152, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1514899820, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (155, 1, '编辑', 152, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1514899820, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (156, 1, '删除', 152, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1514899820, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (157, 1, '数据权限', 76, '/Sys/User/DataPrivileges', 2, NULL, NULL, 0, 1, 1515548644, NULL, 0, 0, NULL, '1:76:157'); INSERT INTO `sys_resource` VALUES (158, 1, '查看', 157, NULL, 4, NULL, 'fa fa-search', 0, 0, 1515548644, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (159, 1, '新增', 157, NULL, 1, NULL, 'fa fa-plus', 0, 0, 1515548644, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (160, 1, '编辑', 157, NULL, 2, NULL, 'fa fa-edit', 0, 0, 1515548644, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (161, 1, '删除', 157, NULL, 3, NULL, 'fa fa-trash', 0, 0, 1515548644, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (162, 5, '员工请假', 100, '/OA/Leave/Index', 1, NULL, 'fa fa-hand-paper-o', 1, 1, 1519985181, NULL, 0, 0, NULL, '100:162'); INSERT INTO `sys_resource` VALUES (163, 5, '查看', 162, NULL, 0, NULL, 'fa fa-search', 0, 0, 1519985181, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (164, 5, '新增', 162, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1519985181, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (165, 5, '编辑', 162, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1519985181, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (166, 5, '删除', 162, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1519985181, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (167, 5, '员工请假编辑页', 162, '/OA/Leave/Show', 1, NULL, 'fa fa-cc-diners-club', 0, 1, 1520040301, NULL, 0, 0, NULL, '162:167'); INSERT INTO `sys_resource` VALUES (168, 5, '查看', 167, NULL, 0, NULL, 'fa fa-search', 0, 0, 1520040301, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (169, 5, '新增', 167, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1520040301, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (170, 5, '编辑', 167, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1520040301, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (171, 5, '删除', 167, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1520040301, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (172, 2, '新增', 91, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1544438530, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (173, 2, '编辑', 91, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1544438530, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (174, 2, '删除', 91, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1544438530, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (175, 1, '调度中心', 1, '/Sys/Schedule/Index', 6, NULL, 'fa fa-joomla', 1, 1, 1545365625, NULL, 0, 0, NULL, '1:175'); INSERT INTO `sys_resource` VALUES (176, 1, '查看', 175, NULL, 0, NULL, 'fa fa-search', 0, 0, 1545365625, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (177, 1, '新增', 175, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1545365625, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (178, 1, '编辑', 175, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1545365625, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (179, 1, '删除', 175, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1545365625, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (180, 1, '调度编辑页', 175, '/Sys/Schedule/Show', 1, NULL, NULL, 0, 1, 1545365682, NULL, 0, 0, NULL, '1:175:180'); INSERT INTO `sys_resource` VALUES (181, 1, '查看', 180, NULL, 0, NULL, 'fa fa-search', 0, 0, 1545365682, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (182, 1, '新增', 180, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1545365754, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (183, 1, '编辑', 180, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1545365754, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (184, 1, '删除', 180, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1545365754, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (185, 1, '日志列表', 1, '/Sys/Log/Index', 7, NULL, 'fa fa-list-alt', 1, 1, 1545902555, NULL, 0, 0, NULL, '1:185'); INSERT INTO `sys_resource` VALUES (186, 1, '查看', 185, NULL, 0, NULL, 'fa fa-search', 0, 0, 1545902555, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (187, 3, '规则管理', 97, '/Weixin/Rule/Index', 3, NULL, 'fa fa-hand-lizard-o', 1, 1, 1547040097, NULL, 0, 0, NULL, '97:187'); INSERT INTO `sys_resource` VALUES (188, 3, '查看', 187, NULL, 0, NULL, 'fa fa-search', 0, 0, 1547040097, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (189, 3, '新增', 187, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1547040097, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (190, 3, '编辑', 187, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1547040097, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (191, 3, '删除', 187, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1547040097, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (192, 3, '规则编辑页', 187, '/Weixin/Rule/Show', 1, NULL, NULL, 0, 1, 1547040143, NULL, 0, 0, NULL, '97:187:192'); INSERT INTO `sys_resource` VALUES (193, 3, '查看', 192, NULL, 0, NULL, 'fa fa-search', 0, 0, 1547040143, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (194, 3, '新增', 192, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1547040143, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (195, 3, '编辑', 192, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1547040143, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (196, 3, '删除', 192, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1547040143, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (197, 3, '自定义菜单', 97, '/Weixin/Menu/Index', 2, NULL, 'fa fa-bars', 1, 1, 1547040193, NULL, 0, 0, NULL, '97:197'); INSERT INTO `sys_resource` VALUES (198, 3, '查看', 197, NULL, 0, NULL, 'fa fa-search', 0, 0, 1547040193, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (199, 3, '新增', 197, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1547040193, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (200, 3, '编辑', 197, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1547040193, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (201, 3, '删除', 197, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1547040193, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (202, 3, '自定义菜单编辑页', 197, '/Weixin/Menu/Show', 1, NULL, NULL, 0, 1, 1547040223, NULL, 0, 0, NULL, '97:197:202'); INSERT INTO `sys_resource` VALUES (203, 3, '查看', 202, NULL, 0, NULL, 'fa fa-search', 0, 0, 1547040223, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (204, 3, '新增', 202, NULL, 0, NULL, 'fa fa-plus', 0, 0, 1547040223, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (205, 3, '编辑', 202, NULL, 0, NULL, 'fa fa-edit', 0, 0, 1547040223, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (206, 3, '删除', 202, NULL, 0, NULL, 'fa fa-trash', 0, 0, 1547040223, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (223, 2, '新增', 98, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1556070241, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (224, 2, '编辑', 98, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1556070241, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (225, 2, '删除', 98, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1556070241, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (226, 2, '我的流程', 88, '/WF/WorkFlowInstance/MyFlow', 2, NULL, 'fa fa-user-plus', 1, 1, 1556096263, NULL, 0, 0, NULL, '88:226'); INSERT INTO `sys_resource` VALUES (227, 2, '查看', 226, NULL, 0, 'fa fa-search', NULL, 0, 0, 1556096263, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (228, 2, '新增', 226, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1556096263, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (229, 2, '编辑', 226, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1556096263, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (230, 2, '删除', 226, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1556096263, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (231, 2, '流程发起', 88, '/WF/WorkFlowInstance/Start', 5, NULL, 'fa fa-location-arrow', 1, 1, 1556096629, NULL, 0, 0, NULL, '88:231'); INSERT INTO `sys_resource` VALUES (232, 2, '查看', 231, NULL, 0, 'fa fa-search', NULL, 0, 0, 1556096629, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (236, 2, '表单设计', 88, '/WF/Form/Index', 6, NULL, 'fa fa-contao', 1, 1, 1556097850, '表单设计', 0, 0, NULL, '88:236'); INSERT INTO `sys_resource` VALUES (237, 2, '查看', 236, NULL, 0, 'fa fa-search', NULL, 0, 0, 1556097850, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (238, 2, '新增', 236, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1556097850, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (239, 2, '编辑', 236, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1556097850, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (240, 2, '删除', 236, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1556097850, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (241, 2, '表单设计编辑页', 236, '/WF/Form/Show', 1, NULL, NULL, 0, 1, 1556098005, NULL, 0, 0, NULL, '88:236:241'); INSERT INTO `sys_resource` VALUES (242, 2, '查看', 241, NULL, 0, 'fa fa-search', NULL, 0, 0, 1556098005, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (243, 2, '新增', 241, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1556098005, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (244, 2, '编辑', 241, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1556098005, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (245, 2, '删除', 241, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1556098005, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (246, 2, '流程设计编辑页', 91, '/WF/WorkFlow/Show', 1, NULL, NULL, 0, 1, 1557981722, '流程设计编辑页', 0, 0, NULL, '88:91:246'); INSERT INTO `sys_resource` VALUES (247, 2, '查看', 246, NULL, 0, 'fa fa-search', NULL, 0, 0, 1557981722, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (248, 2, '新增', 246, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1557981722, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (249, 2, '编辑', 246, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1557981722, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (250, 2, '删除', 246, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1557981722, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (253, 5, '消息管理', 100, '/OA/Message/Index', 2, NULL, 'fa fa-envelope-o', 1, 1, 1558927920, NULL, 0, 0, NULL, '100:253'); INSERT INTO `sys_resource` VALUES (254, 5, '查看', 253, NULL, 0, 'fa fa-search', NULL, 0, 0, 1558927920, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (255, 5, '新增', 253, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1558927920, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (256, 5, '编辑', 253, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1558927920, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (257, 5, '删除', 253, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1558927920, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (258, 5, '立即发送', 253, NULL, 0, 'fa fa-location-arrow', NULL, 0, 0, 1558927931, NULL, 0, 1, 9, NULL); INSERT INTO `sys_resource` VALUES (259, 5, '消息编辑页', 253, '/OA/Message/Show', 1, NULL, NULL, 0, 1, 1558927982, NULL, 0, 0, NULL, '100:253:259'); INSERT INTO `sys_resource` VALUES (260, 5, '查看', 259, NULL, 0, 'fa fa-search', NULL, 0, 0, 1558927982, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (261, 5, '新增', 259, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1558927982, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (262, 5, '编辑', 259, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1558927982, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (263, 5, '删除', 259, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1558927982, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (264, 5, '我的消息', 100, '/OA/Message/MyList', 3, NULL, 'fa fa-commenting-o', 1, 1, 1558928061, NULL, 0, 0, NULL, '100:264'); INSERT INTO `sys_resource` VALUES (265, 5, '查看', 264, NULL, 0, 'fa fa-search', NULL, 0, 0, 1558928061, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (266, 5, '消息明细', 264, '/OA/Message/Detail', 1, NULL, NULL, 0, 1, 1558946268, NULL, 0, 0, NULL, '100:264:266'); INSERT INTO `sys_resource` VALUES (267, 5, '查看', 266, NULL, 0, 'fa fa-search', NULL, 0, 0, 1558946268, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (268, 3, '公众号', 97, '/Weixin/Account/Index', 1, NULL, 'fa fa-user', 1, 1, 1560503093, '公众号列表', 0, 0, NULL, '97:268'); INSERT INTO `sys_resource` VALUES (269, 3, '查看', 268, NULL, 0, 'fa fa-search', NULL, 0, 0, 1560503093, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (270, 3, '新增', 268, NULL, 0, 'fa fa-plus', NULL, 0, 0, 1560503093, NULL, 0, 1, 2, NULL); INSERT INTO `sys_resource` VALUES (271, 3, '编辑', 268, NULL, 0, 'fa fa-edit', NULL, 0, 0, 1560503093, NULL, 0, 1, 3, NULL); INSERT INTO `sys_resource` VALUES (272, 3, '删除', 268, NULL, 0, 'fa fa-trash', NULL, 0, 0, 1560503093, NULL, 0, 1, 4, NULL); INSERT INTO `sys_resource` VALUES (273, 5, '内部聊天', 100, '/OA/Chat/Index', 4, NULL, 'fa fa-whatsapp', 1, 1, 1560740703, '即时通信聊天', 0, 0, NULL, '100:273'); INSERT INTO `sys_resource` VALUES (274, 5, '查看', 273, NULL, 0, 'fa fa-search', NULL, 0, 0, 1560740703, NULL, 0, 1, 1, NULL); INSERT INTO `sys_resource` VALUES (275, 1, '生成代码', 1, '/Sys/CodeBuilder/Index', 8, NULL, 'fa fa-code', 1, 1, 1571682751, NULL, 0, 0, NULL, '1:275'); INSERT INTO `sys_resource` VALUES (276, 1, '查看', 275, NULL, 0, 'fa fa-search', NULL, 0, 0, 1571682751, NULL, 0, 1, 1, NULL); -- ---------------------------- -- Table structure for sys_role -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `RoleId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID', `SystemId` bigint(20) NOT NULL COMMENT '所属系统', `RoleName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称', `Memo` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `IsDel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', `CreateUserId` bigint(20) NOT NULL COMMENT '创建人ID', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间', `UpdateUserId` bigint(20) NULL DEFAULT NULL COMMENT '修改人', `UpdateTime` bigint(20) NULL DEFAULT NULL COMMENT '修改时间', PRIMARY KEY (`RoleId`) USING BTREE, INDEX `SystemId`(`SystemId`) USING BTREE, CONSTRAINT `sys_role_ibfk_1` FOREIGN KEY (`SystemId`) REFERENCES `sys_system` (`SystemId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_role -- ---------------------------- INSERT INTO `sys_role` VALUES (1, 1, '系统管理员', '系统管理员', 0, 0, 1497889200, NULL, NULL); INSERT INTO `sys_role` VALUES (2, 1, '微信管理员', '微信管理员', 1, 0, 1497889200, 0, 0); INSERT INTO `sys_role` VALUES (4, 1, '测试角色', '测试角色', 1, 1, 1499488686, NULL, NULL); INSERT INTO `sys_role` VALUES (5, 2, '流程管理员', '流程管理员', 0, 1, 1499493280, NULL, NULL); INSERT INTO `sys_role` VALUES (6, 5, '普通用户', '普通用户123', 0, 1, 1500956464, NULL, NULL); INSERT INTO `sys_role` VALUES (7, 3, '微信管理员', '微信管理员', 0, 1, 1547040281, 0, 0); -- ---------------------------- -- Table structure for sys_role_resource -- ---------------------------- DROP TABLE IF EXISTS `sys_role_resource`; CREATE TABLE `sys_role_resource` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `RoleId` bigint(20) NOT NULL COMMENT '角色ID', `ResourceId` bigint(20) NOT NULL COMMENT '资源ID', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间戳', PRIMARY KEY (`Id`) USING BTREE, INDEX `RoleId`(`RoleId`) USING BTREE, INDEX `ResourceId`(`ResourceId`) USING BTREE, CONSTRAINT `sys_role_resource_ibfk_1` FOREIGN KEY (`RoleId`) REFERENCES `sys_role` (`RoleId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_role_resource_ibfk_2` FOREIGN KEY (`ResourceId`) REFERENCES `sys_resource` (`ResourceId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 2371 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色资源关联表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_role_resource -- ---------------------------- INSERT INTO `sys_role_resource` VALUES (2210, 5, 88, 1559053008); INSERT INTO `sys_role_resource` VALUES (2211, 5, 94, 1559053008); INSERT INTO `sys_role_resource` VALUES (2212, 5, 96, 1559053008); INSERT INTO `sys_role_resource` VALUES (2213, 5, 93, 1559053008); INSERT INTO `sys_role_resource` VALUES (2214, 5, 95, 1559053008); INSERT INTO `sys_role_resource` VALUES (2215, 5, 226, 1559053008); INSERT INTO `sys_role_resource` VALUES (2216, 5, 227, 1559053008); INSERT INTO `sys_role_resource` VALUES (2217, 5, 228, 1559053008); INSERT INTO `sys_role_resource` VALUES (2218, 5, 229, 1559053008); INSERT INTO `sys_role_resource` VALUES (2219, 5, 230, 1559053008); INSERT INTO `sys_role_resource` VALUES (2220, 5, 91, 1559053008); INSERT INTO `sys_role_resource` VALUES (2221, 5, 172, 1559053008); INSERT INTO `sys_role_resource` VALUES (2222, 5, 173, 1559053008); INSERT INTO `sys_role_resource` VALUES (2223, 5, 174, 1559053008); INSERT INTO `sys_role_resource` VALUES (2224, 5, 246, 1559053008); INSERT INTO `sys_role_resource` VALUES (2225, 5, 247, 1559053008); INSERT INTO `sys_role_resource` VALUES (2226, 5, 248, 1559053008); INSERT INTO `sys_role_resource` VALUES (2227, 5, 249, 1559053008); INSERT INTO `sys_role_resource` VALUES (2228, 5, 250, 1559053008); INSERT INTO `sys_role_resource` VALUES (2229, 5, 92, 1559053008); INSERT INTO `sys_role_resource` VALUES (2230, 5, 98, 1559053008); INSERT INTO `sys_role_resource` VALUES (2231, 5, 223, 1559053008); INSERT INTO `sys_role_resource` VALUES (2232, 5, 224, 1559053008); INSERT INTO `sys_role_resource` VALUES (2233, 5, 225, 1559053008); INSERT INTO `sys_role_resource` VALUES (2234, 5, 99, 1559053008); INSERT INTO `sys_role_resource` VALUES (2235, 5, 231, 1559053008); INSERT INTO `sys_role_resource` VALUES (2236, 5, 232, 1559053008); INSERT INTO `sys_role_resource` VALUES (2237, 5, 236, 1559053008); INSERT INTO `sys_role_resource` VALUES (2238, 5, 237, 1559053008); INSERT INTO `sys_role_resource` VALUES (2239, 5, 238, 1559053008); INSERT INTO `sys_role_resource` VALUES (2240, 5, 239, 1559053008); INSERT INTO `sys_role_resource` VALUES (2241, 5, 240, 1559053008); INSERT INTO `sys_role_resource` VALUES (2242, 5, 241, 1559053008); INSERT INTO `sys_role_resource` VALUES (2243, 5, 242, 1559053008); INSERT INTO `sys_role_resource` VALUES (2244, 5, 243, 1559053008); INSERT INTO `sys_role_resource` VALUES (2245, 5, 244, 1559053008); INSERT INTO `sys_role_resource` VALUES (2246, 5, 245, 1559053008); INSERT INTO `sys_role_resource` VALUES (2247, 7, 97, 1560503131); INSERT INTO `sys_role_resource` VALUES (2248, 7, 268, 1560503131); INSERT INTO `sys_role_resource` VALUES (2249, 7, 269, 1560503131); INSERT INTO `sys_role_resource` VALUES (2250, 7, 270, 1560503131); INSERT INTO `sys_role_resource` VALUES (2251, 7, 271, 1560503131); INSERT INTO `sys_role_resource` VALUES (2252, 7, 272, 1560503131); INSERT INTO `sys_role_resource` VALUES (2253, 7, 197, 1560503131); INSERT INTO `sys_role_resource` VALUES (2254, 7, 198, 1560503131); INSERT INTO `sys_role_resource` VALUES (2255, 7, 199, 1560503131); INSERT INTO `sys_role_resource` VALUES (2256, 7, 200, 1560503131); INSERT INTO `sys_role_resource` VALUES (2257, 7, 201, 1560503131); INSERT INTO `sys_role_resource` VALUES (2258, 7, 202, 1560503131); INSERT INTO `sys_role_resource` VALUES (2259, 7, 203, 1560503131); INSERT INTO `sys_role_resource` VALUES (2260, 7, 204, 1560503131); INSERT INTO `sys_role_resource` VALUES (2261, 7, 205, 1560503131); INSERT INTO `sys_role_resource` VALUES (2262, 7, 206, 1560503131); INSERT INTO `sys_role_resource` VALUES (2263, 7, 187, 1560503131); INSERT INTO `sys_role_resource` VALUES (2264, 7, 188, 1560503131); INSERT INTO `sys_role_resource` VALUES (2265, 7, 189, 1560503131); INSERT INTO `sys_role_resource` VALUES (2266, 7, 190, 1560503131); INSERT INTO `sys_role_resource` VALUES (2267, 7, 191, 1560503131); INSERT INTO `sys_role_resource` VALUES (2268, 7, 192, 1560503131); INSERT INTO `sys_role_resource` VALUES (2269, 7, 193, 1560503131); INSERT INTO `sys_role_resource` VALUES (2270, 7, 194, 1560503131); INSERT INTO `sys_role_resource` VALUES (2271, 7, 195, 1560503131); INSERT INTO `sys_role_resource` VALUES (2272, 7, 196, 1560503131); INSERT INTO `sys_role_resource` VALUES (2273, 6, 100, 1560740715); INSERT INTO `sys_role_resource` VALUES (2274, 6, 162, 1560740715); INSERT INTO `sys_role_resource` VALUES (2275, 6, 163, 1560740715); INSERT INTO `sys_role_resource` VALUES (2276, 6, 164, 1560740715); INSERT INTO `sys_role_resource` VALUES (2277, 6, 165, 1560740715); INSERT INTO `sys_role_resource` VALUES (2278, 6, 166, 1560740715); INSERT INTO `sys_role_resource` VALUES (2279, 6, 167, 1560740715); INSERT INTO `sys_role_resource` VALUES (2280, 6, 168, 1560740715); INSERT INTO `sys_role_resource` VALUES (2281, 6, 169, 1560740715); INSERT INTO `sys_role_resource` VALUES (2282, 6, 170, 1560740715); INSERT INTO `sys_role_resource` VALUES (2283, 6, 171, 1560740715); INSERT INTO `sys_role_resource` VALUES (2284, 6, 253, 1560740715); INSERT INTO `sys_role_resource` VALUES (2285, 6, 254, 1560740715); INSERT INTO `sys_role_resource` VALUES (2286, 6, 255, 1560740715); INSERT INTO `sys_role_resource` VALUES (2287, 6, 256, 1560740715); INSERT INTO `sys_role_resource` VALUES (2288, 6, 257, 1560740715); INSERT INTO `sys_role_resource` VALUES (2289, 6, 258, 1560740715); INSERT INTO `sys_role_resource` VALUES (2290, 6, 259, 1560740715); INSERT INTO `sys_role_resource` VALUES (2291, 6, 260, 1560740715); INSERT INTO `sys_role_resource` VALUES (2292, 6, 261, 1560740715); INSERT INTO `sys_role_resource` VALUES (2293, 6, 262, 1560740715); INSERT INTO `sys_role_resource` VALUES (2294, 6, 263, 1560740715); INSERT INTO `sys_role_resource` VALUES (2295, 6, 264, 1560740715); INSERT INTO `sys_role_resource` VALUES (2296, 6, 265, 1560740715); INSERT INTO `sys_role_resource` VALUES (2297, 6, 266, 1560740715); INSERT INTO `sys_role_resource` VALUES (2298, 6, 267, 1560740715); INSERT INTO `sys_role_resource` VALUES (2299, 6, 273, 1560740715); INSERT INTO `sys_role_resource` VALUES (2300, 6, 274, 1560740715); INSERT INTO `sys_role_resource` VALUES (2301, 1, 1, 1571682784); INSERT INTO `sys_role_resource` VALUES (2302, 1, 76, 1571682784); INSERT INTO `sys_role_resource` VALUES (2303, 1, 81, 1571682784); INSERT INTO `sys_role_resource` VALUES (2304, 1, 83, 1571682784); INSERT INTO `sys_role_resource` VALUES (2305, 1, 84, 1571682784); INSERT INTO `sys_role_resource` VALUES (2306, 1, 85, 1571682784); INSERT INTO `sys_role_resource` VALUES (2307, 1, 82, 1571682784); INSERT INTO `sys_role_resource` VALUES (2308, 1, 78, 1571682784); INSERT INTO `sys_role_resource` VALUES (2309, 1, 79, 1571682784); INSERT INTO `sys_role_resource` VALUES (2310, 1, 157, 1571682784); INSERT INTO `sys_role_resource` VALUES (2311, 1, 159, 1571682784); INSERT INTO `sys_role_resource` VALUES (2312, 1, 160, 1571682784); INSERT INTO `sys_role_resource` VALUES (2313, 1, 161, 1571682784); INSERT INTO `sys_role_resource` VALUES (2314, 1, 158, 1571682784); INSERT INTO `sys_role_resource` VALUES (2315, 1, 80, 1571682784); INSERT INTO `sys_role_resource` VALUES (2316, 1, 77, 1571682784); INSERT INTO `sys_role_resource` VALUES (2317, 1, 53, 1571682784); INSERT INTO `sys_role_resource` VALUES (2318, 1, 66, 1571682784); INSERT INTO `sys_role_resource` VALUES (2319, 1, 68, 1571682784); INSERT INTO `sys_role_resource` VALUES (2320, 1, 69, 1571682784); INSERT INTO `sys_role_resource` VALUES (2321, 1, 70, 1571682784); INSERT INTO `sys_role_resource` VALUES (2322, 1, 67, 1571682784); INSERT INTO `sys_role_resource` VALUES (2323, 1, 55, 1571682784); INSERT INTO `sys_role_resource` VALUES (2324, 1, 56, 1571682784); INSERT INTO `sys_role_resource` VALUES (2325, 1, 57, 1571682784); INSERT INTO `sys_role_resource` VALUES (2326, 1, 54, 1571682784); INSERT INTO `sys_role_resource` VALUES (2327, 1, 142, 1571682784); INSERT INTO `sys_role_resource` VALUES (2328, 1, 144, 1571682784); INSERT INTO `sys_role_resource` VALUES (2329, 1, 152, 1571682784); INSERT INTO `sys_role_resource` VALUES (2330, 1, 154, 1571682784); INSERT INTO `sys_role_resource` VALUES (2331, 1, 155, 1571682784); INSERT INTO `sys_role_resource` VALUES (2332, 1, 156, 1571682784); INSERT INTO `sys_role_resource` VALUES (2333, 1, 153, 1571682784); INSERT INTO `sys_role_resource` VALUES (2334, 1, 145, 1571682784); INSERT INTO `sys_role_resource` VALUES (2335, 1, 146, 1571682784); INSERT INTO `sys_role_resource` VALUES (2336, 1, 143, 1571682784); INSERT INTO `sys_role_resource` VALUES (2337, 1, 58, 1571682784); INSERT INTO `sys_role_resource` VALUES (2338, 1, 71, 1571682784); INSERT INTO `sys_role_resource` VALUES (2339, 1, 73, 1571682784); INSERT INTO `sys_role_resource` VALUES (2340, 1, 74, 1571682784); INSERT INTO `sys_role_resource` VALUES (2341, 1, 75, 1571682784); INSERT INTO `sys_role_resource` VALUES (2342, 1, 72, 1571682784); INSERT INTO `sys_role_resource` VALUES (2343, 1, 60, 1571682784); INSERT INTO `sys_role_resource` VALUES (2344, 1, 61, 1571682784); INSERT INTO `sys_role_resource` VALUES (2345, 1, 62, 1571682784); INSERT INTO `sys_role_resource` VALUES (2346, 1, 59, 1571682784); INSERT INTO `sys_role_resource` VALUES (2347, 1, 2, 1571682784); INSERT INTO `sys_role_resource` VALUES (2348, 1, 4, 1571682784); INSERT INTO `sys_role_resource` VALUES (2349, 1, 49, 1571682784); INSERT INTO `sys_role_resource` VALUES (2350, 1, 50, 1571682784); INSERT INTO `sys_role_resource` VALUES (2351, 1, 51, 1571682784); INSERT INTO `sys_role_resource` VALUES (2352, 1, 48, 1571682784); INSERT INTO `sys_role_resource` VALUES (2353, 1, 87, 1571682784); INSERT INTO `sys_role_resource` VALUES (2354, 1, 64, 1571682784); INSERT INTO `sys_role_resource` VALUES (2355, 1, 65, 1571682784); INSERT INTO `sys_role_resource` VALUES (2356, 1, 86, 1571682784); INSERT INTO `sys_role_resource` VALUES (2357, 1, 175, 1571682784); INSERT INTO `sys_role_resource` VALUES (2358, 1, 176, 1571682784); INSERT INTO `sys_role_resource` VALUES (2359, 1, 177, 1571682784); INSERT INTO `sys_role_resource` VALUES (2360, 1, 178, 1571682784); INSERT INTO `sys_role_resource` VALUES (2361, 1, 179, 1571682784); INSERT INTO `sys_role_resource` VALUES (2362, 1, 180, 1571682784); INSERT INTO `sys_role_resource` VALUES (2363, 1, 181, 1571682784); INSERT INTO `sys_role_resource` VALUES (2364, 1, 182, 1571682784); INSERT INTO `sys_role_resource` VALUES (2365, 1, 183, 1571682784); INSERT INTO `sys_role_resource` VALUES (2366, 1, 184, 1571682784); INSERT INTO `sys_role_resource` VALUES (2367, 1, 185, 1571682784); INSERT INTO `sys_role_resource` VALUES (2368, 1, 186, 1571682784); INSERT INTO `sys_role_resource` VALUES (2369, 1, 275, 1571682784); INSERT INTO `sys_role_resource` VALUES (2370, 1, 276, 1571682784); -- ---------------------------- -- Table structure for sys_schedule -- ---------------------------- DROP TABLE IF EXISTS `sys_schedule`; CREATE TABLE `sys_schedule` ( `JobId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `JobName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称', `JobGroup` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务分组', `JobStatus` tinyint(4) NOT NULL COMMENT '任务状态, 0 暂停任务;1 启用任务', `TriggerType` tinyint(4) NOT NULL COMMENT '触发器类型(0、simple 1、cron)', `Cron` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务运行时间表达式', `AssemblyName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务所在DLL对应的程序集名称', `ClassName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务所在类', `Remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务描述', `CreateTime` datetime(0) NOT NULL, `UpdateTime` datetime(0) NULL DEFAULT NULL, `RunTimes` int(11) NOT NULL DEFAULT 0 COMMENT '执行次数', `BeginTime` datetime(0) NOT NULL COMMENT '开始时间', `EndTime` datetime(0) NULL DEFAULT NULL COMMENT '结束时间', `IntervalSecond` int(11) NULL DEFAULT NULL COMMENT '执行间隔时间, 秒为单位', `Url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'job调用外部的url', `Status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '状态 0删除,1未删除', PRIMARY KEY (`JobId`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_schedule -- ---------------------------- INSERT INTO `sys_schedule` VALUES (1, '微信AccessToken自动同步任务', 'DefaultJob', 0, 0, '3 * * * * ? ', 'MsSystem.Schedule.Job', 'WxAccessTokenJob', NULL, '2019-04-17 11:05:13', NULL, 0, '2019-04-17 11:05:08', NULL, 0, NULL, 1); INSERT INTO `sys_schedule` VALUES (2, '微信用户信息同步任务', 'DefaultJob', 0, 0, '0 0 0/1 * * ? ', 'MsSystem.Schedule.Job', 'WxUserInfoJob', NULL, '2019-04-17 11:05:13', NULL, 0, '2019-04-17 11:05:08', NULL, 0, NULL, 1); -- ---------------------------- -- Table structure for sys_system -- ---------------------------- DROP TABLE IF EXISTS `sys_system`; CREATE TABLE `sys_system` ( `SystemId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '系统ID', `SystemName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统名称', `SystemCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '系统编码', `Memo` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `IsDel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', `Sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序', `CreateUserId` bigint(20) NOT NULL COMMENT '创建人ID', `CreateTime` bigint(20) NULL DEFAULT NULL COMMENT '创建时间', `UpdateUserId` bigint(20) NULL DEFAULT NULL COMMENT '更新人', `UpdateTime` bigint(20) NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`SystemId`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_system -- ---------------------------- INSERT INTO `sys_system` VALUES (1, '系统管理', 'be1c63a0-63aa-11e7-a221-f97d872f551b', '权限系统', 0, 1, 1, 1498481230, 0, 1537448282); INSERT INTO `sys_system` VALUES (2, '工作流', 'c3cd9538-63aa-11e7-a221-f97d872f551b', '工作流', 0, 4, 1, 1498481230, 0, 1537447644); INSERT INTO `sys_system` VALUES (3, '微信系统', 'c7526ad9-63aa-11e7-a221-f97d872f551b', '微信系统', 0, 3, 1, 1498481230, 0, 1537447638); INSERT INTO `sys_system` VALUES (4, '系统测试', '252110d2-cb56-46c8-9dc2-64c3d7e23b21', '系统测试0000', 1, 0, 1, 1499494026, 0, 0); INSERT INTO `sys_system` VALUES (5, '行政办公系统', 'd65fb3df-d342-41c9-ad9a-3faedbb5b0dc', '行政办公系统', 0, 2, 1, 1500955747, 0, 1537448139); INSERT INTO `sys_system` VALUES (6, '行政办公', '8130e64e-912b-4ce5-aae5-89ba3b5d97a9', '行政办公系统', 1, 0, 1, 1509884116, NULL, NULL); -- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `UserId` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `Account` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录账号', `UserName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名', `JobNumber` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工号', `Password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码', `HeadImg` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像地址', `IsDel` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 1:是,0:否', `CreateUserId` bigint(20) NOT NULL COMMENT '创建人ID', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间', `UpdateUserId` bigint(20) NULL DEFAULT NULL COMMENT '更新人', `UpdateTime` bigint(20) NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`UserId`) USING BTREE, INDEX `Account`(`Account`) USING BTREE, INDEX `JobNumber`(`JobNumber`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户表(作用于全部系统)' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_user -- ---------------------------- INSERT INTO `sys_user` VALUES (1, 'wms', 'wms', '20180101', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 0, 1, 12, 1, 1542809506); INSERT INTO `sys_user` VALUES (4, 'wangwu', '王五123', '20180102', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 0, 0, 1498571322, 1, 1560497334); INSERT INTO `sys_user` VALUES (5, 'zhangsan', '张三', '20180103', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/1ca449c6-24ed-4b78-a032-6005990ff707.jpeg', 0, 0, 1499750510, 1, 1538660578); INSERT INTO `sys_user` VALUES (6, 'lisi', '李四aa', '20180104', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 0, 0, 1499750523, NULL, NULL); INSERT INTO `sys_user` VALUES (7, '123', '123', '20180105', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 0, 0, 1499750534, 1, 1557909906); INSERT INTO `sys_user` VALUES (8, '321', '321', '20180106', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750544, NULL, NULL); INSERT INTO `sys_user` VALUES (9, '1234', '1234', '20180107', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750555, NULL, NULL); INSERT INTO `sys_user` VALUES (10, '1234', '1234', '20180108', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750555, NULL, NULL); INSERT INTO `sys_user` VALUES (11, 'asd', 'asd', '20180109', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750583, NULL, NULL); INSERT INTO `sys_user` VALUES (12, 'asd', 'asd', '20180110', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750584, NULL, NULL); INSERT INTO `sys_user` VALUES (13, 'aaa', 'aaa', '20180111', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750592, NULL, NULL); INSERT INTO `sys_user` VALUES (14, 'aaa', 'aaa', '20180112', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1499750592, NULL, NULL); INSERT INTO `sys_user` VALUES (15, 'bbb', 'bbb', '20180113', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1501310757, NULL, NULL); INSERT INTO `sys_user` VALUES (16, 'ccc', 'ccc', '20180114', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1501310765, NULL, NULL); INSERT INTO `sys_user` VALUES (17, 'ddd', 'ddd', '20180115', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1501310778, NULL, NULL); INSERT INTO `sys_user` VALUES (18, 'eee', 'eee', '20180116', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1501310789, NULL, NULL); INSERT INTO `sys_user` VALUES (19, 'asd', 'asd', '20180117', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1509869141, NULL, NULL); INSERT INTO `sys_user` VALUES (20, '123', '123', '2018102098', 'A93C168323147D1135503939396CAC628DC194C5', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1539993966, NULL, NULL); INSERT INTO `sys_user` VALUES (21, 'cs', 'cs', '2019041302', '40BD001563085FC35165329EA1FF5C5ECBDBBEEF', '/uploadfile/342bd59b-edf4-48cf-aa27-d13e5a0b70df.jpeg', 1, 0, 1555123202, NULL, NULL); -- ---------------------------- -- Table structure for sys_user_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_user_dept`; CREATE TABLE `sys_user_dept` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `DeptId` bigint(20) NOT NULL COMMENT '部门ID', `UserId` bigint(20) NOT NULL COMMENT '用户ID', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间戳', PRIMARY KEY (`Id`) USING BTREE, INDEX `DeptId`(`DeptId`) USING BTREE, INDEX `UserId`(`UserId`) USING BTREE, CONSTRAINT `sys_user_dept_ibfk_1` FOREIGN KEY (`DeptId`) REFERENCES `sys_dept` (`DeptId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_user_dept_ibfk_2` FOREIGN KEY (`UserId`) REFERENCES `sys_user` (`UserId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_user_dept -- ---------------------------- INSERT INTO `sys_user_dept` VALUES (4, 4, 6, 1557303745); INSERT INTO `sys_user_dept` VALUES (5, 3, 1, 1559469199); INSERT INTO `sys_user_dept` VALUES (6, 3, 4, 1559792769); -- ---------------------------- -- Table structure for sys_user_role -- ---------------------------- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE `sys_user_role` ( `Id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `UserId` bigint(20) NOT NULL COMMENT '用户ID', `RoleId` bigint(20) NOT NULL COMMENT '角色ID', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间戳', PRIMARY KEY (`Id`) USING BTREE, INDEX `UserId`(`UserId`) USING BTREE, INDEX `RoleId`(`RoleId`) USING BTREE, CONSTRAINT `sys_user_role_ibfk_1` FOREIGN KEY (`UserId`) REFERENCES `sys_user` (`UserId`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `sys_user_role_ibfk_2` FOREIGN KEY (`RoleId`) REFERENCES `sys_role` (`RoleId`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 65 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户角色关联表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_user_role -- ---------------------------- INSERT INTO `sys_user_role` VALUES (47, 1, 1, 1547040313); INSERT INTO `sys_user_role` VALUES (48, 1, 5, 1547040313); INSERT INTO `sys_user_role` VALUES (49, 1, 7, 1547040313); INSERT INTO `sys_user_role` VALUES (50, 1, 6, 1547040313); INSERT INTO `sys_user_role` VALUES (51, 4, 1, 1557214422); INSERT INTO `sys_user_role` VALUES (52, 4, 5, 1557214422); INSERT INTO `sys_user_role` VALUES (56, 6, 6, 1557303730); INSERT INTO `sys_user_role` VALUES (58, 6, 1, 1557304953); INSERT INTO `sys_user_role` VALUES (59, 7, 5, 1557909952); INSERT INTO `sys_user_role` VALUES (60, 7, 6, 1557909952); INSERT INTO `sys_user_role` VALUES (61, 4, 6, 1559053056); INSERT INTO `sys_user_role` VALUES (62, 5, 1, 1559702623); INSERT INTO `sys_user_role` VALUES (63, 5, 5, 1559702623); INSERT INTO `sys_user_role` VALUES (64, 5, 6, 1559702623); -- ---------------------------- -- Table structure for sys_workflowsql -- ---------------------------- DROP TABLE IF EXISTS `sys_workflowsql`; CREATE TABLE `sys_workflowsql` ( `Name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程sql名称,必须是以sys_为开头,用于判断属于哪个系统,方便调用接口', `FlowSQL` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程SQL,执行结果必须是一行一列', `Param` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数名。以英文 , 分割', `SQLType` tinyint(4) NOT NULL DEFAULT 0 COMMENT '类型,0:选人节点,必须返回的是用户ID,1:连线条件,条件通过返回的是一行一列的数据,不通过没有任何返回结果', `Status` int(11) NOT NULL DEFAULT 1 COMMENT '状态', `Remark` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', `CreateTime` bigint(20) NOT NULL COMMENT '创建时间', `CreateUserId` bigint(20) NOT NULL COMMENT '创建人ID', PRIMARY KEY (`Name`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用于工作流获取权限系统数据' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of sys_workflowsql -- ---------------------------- INSERT INTO `sys_workflowsql` VALUES ('sys_getdeptleader', 'SELECT DISTINCT dl.`UserId` FROM sys_user u \r\nLEFT JOIN sys_user_dept ud ON ud.`UserId`=u.`UserId`\r\nLEFT JOIN sys_dept_leader dl ON dl.`DeptId`=ud.`DeptId`\r\nWHERE u.`UserId`=@userid', 'userid', 0, 1, '权限系统,获取部门负责人', 1, 1);
the_stack
-- 2020-05-28T13:40:43.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsServerProcess,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584700,'Y','de.metas.ui.web.handlingunits.process.WEBUI_ReallocateCUs','N',TO_TIMESTAMP('2020-05-28 16:40:43','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','N','N','N','N','N','N','N','Y','Y',0,'WEBUI_ReallocateCUs','N','N','Java',TO_TIMESTAMP('2020-05-28 16:40:43','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_ReallocateCUs') ; -- 2020-05-28T13:40:43.365Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Process_ID=584700 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2020-05-28T13:41:18.891Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Table_Process_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_DocumentAction,WEBUI_IncludedTabTopAction,WEBUI_ViewAction,WEBUI_ViewQuickAction,WEBUI_ViewQuickAction_Default) VALUES (0,0,584700,53038,540827,TO_TIMESTAMP('2020-05-28 16:41:18','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y',TO_TIMESTAMP('2020-05-28 16:41:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N') ; -- 2020-05-28T14:21:01.862Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Table_Process_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_DocumentAction,WEBUI_IncludedTabTopAction,WEBUI_ViewAction,WEBUI_ViewQuickAction,WEBUI_ViewQuickAction_Default) VALUES (0,0,540912,540516,540828,TO_TIMESTAMP('2020-05-28 17:21:01','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y',TO_TIMESTAMP('2020-05-28 17:21:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N') ; -- 2020-05-29T08:51:11.752Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Classname='de.metas.ui.web.ddorder.process.WEBUI_MoveHUs', Name='WEBUI_MoveHUs', Value='WEBUI_MoveHUs',Updated=TO_TIMESTAMP('2020-05-29 11:51:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584700 ; -- 2020-05-29T09:16:22.914Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Classname='de.metas.ui.web.ddorder.process.WEBUI_MoveHUs_HUEditor_Launcher', Name='WEBUI_MoveHUs_HUEditor_Launcher', Value='WEBUI_MoveHUs_HUEditor_Launcher',Updated=TO_TIMESTAMP('2020-05-29 12:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584700 ; -- 2020-05-29T10:47:45.843Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsServerProcess,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584703,'Y','de.metas.ui.web.ddorder.process.WEBUI_DD_OrderLine_MoveSelected_HU','N',TO_TIMESTAMP('2020-05-29 13:47:45','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','N','N','N','N','N','N','N','Y','Y',0,'Reallocate based on DD order line','N','N','Java',TO_TIMESTAMP('2020-05-29 13:47:45','YYYY-MM-DD HH24:MI:SS'),100,'Reallocate based on DD order line') ; -- 2020-05-29T10:47:45.856Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Process_ID=584703 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2020-05-29T10:48:22.288Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Table_Process_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_DocumentAction,WEBUI_IncludedTabTopAction,WEBUI_ViewAction,WEBUI_ViewQuickAction,WEBUI_ViewQuickAction_Default) VALUES (0,0,584703,540516,540829,TO_TIMESTAMP('2020-05-29 13:48:22','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y',TO_TIMESTAMP('2020-05-29 13:48:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N') ; -- 2020-05-29T12:26:54.383Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Table_Process WHERE AD_Table_Process_ID=540828 ; -- 2020-05-29T12:30:15.414Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,ReadOnlyLogic,SeqNo,Updated,UpdatedBy) VALUES (0,53313,0,584703,541816,19,'DD_OrderLine_ID',TO_TIMESTAMP('2020-05-29 15:30:15','YYYY-MM-DD HH24:MI:SS'),100,'EE01',0,'Y','N','Y','N','Y','N','Distribution Order Line','1=1',10,TO_TIMESTAMP('2020-05-29 15:30:15','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-05-29T12:30:15.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Process_Para_ID=541816 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2020-05-29T12:30:53.309Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,ReadOnlyLogic,SeqNo,Updated,UpdatedBy) VALUES (0,1029,0,584703,541817,31,'M_LocatorTo_ID',TO_TIMESTAMP('2020-05-29 15:30:53','YYYY-MM-DD HH24:MI:SS'),100,'Lagerort, an den Bestand bewegt wird','EE01',0,'"Lagerort An" bezeichnet den Lagerort, auf den ein Warenbestand bewegt wird.','Y','N','Y','N','Y','N','Lagerort An','1=1',20,TO_TIMESTAMP('2020-05-29 15:30:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-05-29T12:30:53.313Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Process_Para_ID=541817 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2020-05-29T12:31:21.044Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,ReadOnlyLogic,SeqNo,Updated,UpdatedBy) VALUES (0,542140,0,584703,541818,19,'M_HU_ID',TO_TIMESTAMP('2020-05-29 15:31:20','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.handlingunits',0,'Y','N','Y','N','Y','N','Handling Unit','1=1',30,TO_TIMESTAMP('2020-05-29 15:31:20','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-05-29T12:31:21.049Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Process_Para_ID=541818 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2020-05-29T12:52:16.151Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ReadOnlyLogic='@M_HU_ID/0@ > 0',Updated=TO_TIMESTAMP('2020-05-29 15:52:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541818 ; -- 2020-05-29T12:55:36.150Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ReadOnlyLogic='@M_LocatorTo_ID/0@ > 0',Updated=TO_TIMESTAMP('2020-05-29 15:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541817 ; -- 2020-05-29T12:55:53.369Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ReadOnlyLogic='@DD_OrderLine_ID/0@>0',Updated=TO_TIMESTAMP('2020-05-29 15:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541816 ; -- 2020-05-29T13:01:45.891Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,541147,TO_TIMESTAMP('2020-05-29 16:01:45','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','N','DD_OrderLine',TO_TIMESTAMP('2020-05-29 16:01:45','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 2020-05-29T13:01:45.896Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Reference_ID=541147 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 2020-05-29T13:02:30.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,ShowInactiveValues,Updated,UpdatedBy) VALUES (0,53937,0,541147,53038,540373,TO_TIMESTAMP('2020-05-29 16:02:30','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','N','N',TO_TIMESTAMP('2020-05-29 16:02:30','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-05-29T13:02:38.103Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_ID=18, AD_Reference_Value_ID=53631,Updated=TO_TIMESTAMP('2020-05-29 16:02:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541816 ; -- 2020-05-29T13:03:27.041Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_Value_ID=540499,Updated=TO_TIMESTAMP('2020-05-29 16:03:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541818 ; -- 2020-05-29T13:04:33.161Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_Value_ID=191,Updated=TO_TIMESTAMP('2020-05-29 16:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541817 ; -- 2020-05-29T13:05:24.154Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_Value_ID=541147,Updated=TO_TIMESTAMP('2020-05-29 16:05:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541816 ; -- 2020-05-29T13:08:40.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Open HU editor',Updated=TO_TIMESTAMP('2020-05-29 16:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584700 ; -- 2020-05-29T13:08:47.449Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Open HU editor',Updated=TO_TIMESTAMP('2020-05-29 16:08:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584700 ; -- 2020-05-29T13:08:51.232Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Open HU editor',Updated=TO_TIMESTAMP('2020-05-29 16:08:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584700 ; -- 2020-05-29T15:19:37.580Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='HU Editor öffnen',Updated=TO_TIMESTAMP('2020-05-29 18:19:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584700 ; -- 2020-05-29T15:19:49.972Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='HU Editor öffnen',Updated=TO_TIMESTAMP('2020-05-29 18:19:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584700 ; -- 2020-05-29T15:20:26.622Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='HU Editor öffnen', Value='HU Editor öffnen',Updated=TO_TIMESTAMP('2020-05-29 18:20:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584700 ; -- 2020-05-29T15:22:13.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='Produkte umlagern', Value='Produkte umlagern',Updated=TO_TIMESTAMP('2020-05-29 18:22:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584703 ; -- 2020-05-29T15:22:17.826Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Produkte umlagern',Updated=TO_TIMESTAMP('2020-05-29 18:22:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584703 ; -- 2020-05-29T15:22:30.226Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Reallocate products',Updated=TO_TIMESTAMP('2020-05-29 18:22:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584703 ; -- 2020-05-29T15:22:35.745Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Produkte umlagern',Updated=TO_TIMESTAMP('2020-05-29 18:22:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584703 ;
the_stack
-- Fixed unhandled case in check_job_status where if a job had been run but never finished with an end_time or status set in job_log, it wouldn't raise an alert that is was missing -- Set functions that can be marked as STABLE /* * Check Job status * * p_history is how far into job_log's past the check will go. Don't go further back than the longest job's interval that is contained * in job_check_config to keep check efficient * Return code 1 means a successful job run * Return code 2 is for use with jobs that support a warning indicator. Not critical, but someone should look into it * Return code 3 is for use with a critical job failure */ CREATE OR REPLACE FUNCTION check_job_status(p_history interval, OUT alert_code integer, OUT alert_text text) LANGUAGE plpgsql STABLE AS $$ DECLARE v_alert_code_3 text; v_count int = 1; v_jobs RECORD; v_job_errors RECORD; v_longest_period interval; v_trouble text[]; v_version int; BEGIN -- Leave this check here in case helper function isn't used and this is called directly with an interval argument SELECT greatest(max(error_threshold), max(warn_threshold)) INTO v_longest_period FROM @extschema@.job_check_config; IF v_longest_period IS NOT NULL THEN IF p_history < v_longest_period THEN RAISE EXCEPTION 'Input argument must be greater than or equal to the longest threshold in job_check_config table'; END IF; END IF; SELECT current_setting('server_version_num')::int INTO v_version; alert_text := '('; alert_code := 1; -- Generic check for jobs without special monitoring. Should error on 3 failures FOR v_job_errors IN SELECT l.job_name, l.alert_code FROM @extschema@.job_check_log l WHERE l.job_name NOT IN (SELECT c.job_name FROM @extschema@.job_check_config c WHERE l.job_name <> c.job_name) GROUP BY l.job_name, l.alert_code HAVING count(*) > 2 LOOP v_trouble[v_count] := v_job_errors.job_name; v_count := v_count+1; alert_code = greatest(alert_code, v_job_errors.alert_code); END LOOP; IF array_upper(v_trouble,1) > 0 THEN alert_text := alert_text || 'Jobs w/ 3 consecutive problems: '||array_to_string(v_trouble,', ')||'; '; END IF; SELECT jt.alert_text INTO v_alert_code_3 FROM @extschema@.job_status_text jt WHERE jt.alert_code = 3; -- Jobs with special monitoring (threshold different than 3 errors; must run within a timeframe; etc) IF v_version >= 90200 THEN FOR v_jobs IN SELECT job_name, current_timestamp, current_timestamp - end_time AS last_run_time, CASE WHEN (SELECT count(*) FROM @extschema@.job_check_log l WHERE job_name = job_check_config.job_name and l.alert_code = 3 ) > sensitivity THEN 'ERROR' WHEN end_time < (current_timestamp - error_threshold) THEN 'ERROR' WHEN (SELECT count(*) FROM @extschema@.job_check_log l WHERE job_name = job_check_config.job_name and l.alert_code = 2 ) > sensitivity THEN 'WARNING' WHEN end_time < (current_timestamp - warn_threshold) THEN 'WARNING' WHEN end_time IS NULL THEN 'ERROR' ELSE 'OK' END AS error_code, CASE WHEN status = v_alert_code_3 THEN 'CRITICAL' WHEN status is null THEN 'MISSING' WHEN (end_time < current_timestamp - error_threshold) OR (end_time < current_timestamp - warn_threshold OR end_time IS NULL) THEN 'MISSING' ELSE status END AS job_status FROM @extschema@.job_check_config LEFT JOIN (SELECT job_name, max(start_time) AS start_time, max(end_time) AS end_time FROM @extschema@.job_log WHERE (end_time > now() - p_history OR end_time IS NULL) GROUP BY job_name ) last_job using (job_name) LEFT JOIN (SELECT job_name, start_time, coalesce(status, (SELECT CASE WHEN (SELECT count(*) FROM pg_locks WHERE not granted and pid = m.pid) > 0 THEN 'BLOCKED' ELSE NULL END), (SELECT CASE WHEN (SELECT count(*) FROM pg_stat_activity WHERE pid = m.pid) > 0 THEN 'RUNNING' ELSE NULL END), 'FOOBAR') AS status FROM @extschema@.job_log m WHERE start_time > now() - p_history ) lj_status using (job_name,start_time) WHERE active LOOP IF v_jobs.error_code = 'ERROR' THEN alert_code := 3; alert_text := alert_text || v_jobs.job_name || ': ' || coalesce(v_jobs.job_status,'null??'); END IF; IF v_jobs.error_code = 'WARNING' THEN IF alert_code <> 3 THEN alert_code := 2; END IF; alert_text := alert_text || v_jobs.job_name || ': ' || coalesce(v_jobs.job_status,'null??'); END IF; IF v_jobs.job_status = 'BLOCKED' THEN alert_text := alert_text || ' - Object lock is blocking job completion'; ELSIF v_jobs.job_status = 'MISSING' THEN IF v_jobs.last_run_time IS NULL THEN alert_text := alert_text || ' - Last run over ' || p_history || ' ago. Check job_log for more details'; ELSE alert_text := alert_text || ' - Last run at ' || current_timestamp - v_jobs.last_run_time; END IF; END IF; IF alert_code <> 1 AND v_jobs.job_status <> 'OK' THEN alert_text := alert_text || '; '; END IF; END LOOP; ELSE -- version less than 9.2 with old procpid column FOR v_jobs IN SELECT job_name, current_timestamp, current_timestamp - end_time AS last_run_time, CASE WHEN (SELECT count(*) FROM @extschema@.job_check_log l WHERE job_name = job_check_config.job_name and l.alert_code = 3 ) > sensitivity THEN 'ERROR' WHEN end_time < (current_timestamp - error_threshold) THEN 'ERROR' WHEN (SELECT count(*) FROM @extschema@.job_check_log l WHERE job_name = job_check_config.job_name and l.alert_code = 2 ) > sensitivity THEN 'WARNING' WHEN end_time < (current_timestamp - warn_threshold) THEN 'WARNING' WHEN end_time IS NULL THEN 'ERROR' ELSE 'OK' END AS error_code, CASE WHEN status = v_alert_code_3 THEN 'CRITICAL' WHEN status is null THEN 'MISSING' WHEN (end_time < current_timestamp - error_threshold) OR (end_time < current_timestamp - warn_threshold OR end_time IS NULL) THEN 'MISSING' ELSE status END AS job_status FROM @extschema@.job_check_config LEFT JOIN (SELECT job_name, max(start_time) AS start_time, max(end_time) AS end_time FROM @extschema@.job_log WHERE (end_time > now() - p_history OR end_time IS NULL) GROUP BY job_name ) last_job using (job_name) LEFT JOIN (SELECT job_name, start_time, coalesce(status, (SELECT CASE WHEN (SELECT count(*) FROM pg_locks WHERE not granted and pid = m.pid) > 0 THEN 'BLOCKED' ELSE NULL END), (SELECT CASE WHEN (SELECT count(*) FROM pg_stat_activity WHERE procpid = m.pid) > 0 THEN 'RUNNING' ELSE NULL END), 'FOOBAR') AS status FROM @extschema@.job_log m WHERE start_time > now() - p_history ) lj_status using (job_name,start_time) WHERE active LOOP IF v_jobs.error_code = 'ERROR' THEN alert_code := 3; alert_text := alert_text || v_jobs.job_name || ': ' || coalesce(v_jobs.job_status,'null??'); END IF; IF v_jobs.error_code = 'WARNING' THEN IF alert_code <> 3 THEN alert_code := 2; END IF; alert_text := alert_text || v_jobs.job_name || ': ' || coalesce(v_jobs.job_status,'null??'); END IF; IF v_jobs.job_status = 'BLOCKED' THEN alert_text := alert_text || ' - Object lock is blocking job completion'; ELSIF v_jobs.job_status = 'MISSING' THEN IF v_jobs.last_run_time IS NULL THEN alert_text := alert_text || ' - Last run over ' || p_history || ' ago. Check job_log for more details'; ELSE alert_text := alert_text || ' - Last run at ' || current_timestamp - v_jobs.last_run_time; END IF; END IF; IF alert_code <> 1 AND v_jobs.job_status <> 'OK' THEN alert_text := alert_text || '; '; END IF; END LOOP; END IF; -- end version check IF IF alert_text = '(' THEN alert_text := alert_text || 'All jobs run successfully'; END IF; alert_text := alert_text || ')'; END $$; /* * Helper function to allow calling without an argument. See below for full function */ CREATE OR REPLACE FUNCTION check_job_status(OUT alert_code integer, OUT alert_text text) LANGUAGE plpgsql STABLE AS $$ DECLARE v_alert_code integer; v_alert_text text; v_longest_period interval; BEGIN SELECT greatest(max(error_threshold), max(warn_threshold)) INTO v_longest_period FROM @extschema@.job_check_config; IF v_longest_period IS NOT NULL THEN SELECT * INTO v_alert_code, v_alert_text FROM @extschema@.check_job_status(v_longest_period); ELSE -- Interval doesn't matter if nothing is in job_check_config. Just give default of 1 week. -- Still monitors for any 3 consecutive failures. SELECT * INTO v_alert_code, v_alert_text FROM @extschema@.check_job_status('1 week'); END IF; alert_code := v_alert_code; alert_text := v_alert_text; END $$; /* * dblink Authentication mapping */ CREATE OR REPLACE FUNCTION auth() RETURNS text LANGUAGE plpgsql STABLE AS $$ DECLARE v_auth text = ''; v_port text; v_password text; v_username text; BEGIN SELECT username, port, pwd INTO v_username, v_port, v_password FROM @extschema@.dblink_mapping; IF v_port IS NULL THEN v_auth = 'dbname=' || current_database(); ELSE v_auth := 'port='||v_port||' dbname=' || current_database(); END IF; IF v_username IS NOT NULL THEN v_auth := v_auth || ' user='||v_username; END IF; IF v_password IS NOT NULL THEN v_auth := v_auth || ' password='||v_password; END IF; RETURN v_auth; END $$; /* * Show Job Details By Job ID */ CREATE OR REPLACE FUNCTION show_detail(p_id bigint) RETURNS SETOF @extschema@.job_detail LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_detail @extschema@.job_detail%ROWTYPE; BEGIN FOR v_job_detail IN SELECT job_id, step_id, action, start_time, end_time, elapsed_time, status, message FROM @extschema@.job_detail WHERE job_id = p_id ORDER BY step_id ASC LOOP RETURN NEXT v_job_detail; END LOOP; RETURN; END $$; /* * Show Job Details By Exact Name */ CREATE OR REPLACE FUNCTION show_detail(p_name text, int default 1) RETURNS SETOF @extschema@.job_detail LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; v_job_detail @extschema@.job_detail%ROWTYPE; BEGIN FOR v_job_list IN SELECT job_id, owner, job_name, start_time, end_time, status, pid FROM @extschema@.job_log WHERE job_name = upper(p_name) ORDER BY job_id DESC LIMIT $2 LOOP FOR v_job_detail IN SELECT job_id, step_id, action, start_time, end_time, elapsed_time, status, message FROM @extschema@.job_detail WHERE job_id = v_job_list.job_id ORDER BY step_id ASC LOOP RETURN NEXT v_job_detail; END LOOP; END LOOP; RETURN; END $$; /* * Show Jobs By Exact Name */ CREATE OR REPLACE FUNCTION show_job(p_name text, int default 10) RETURNS SETOF @extschema@.job_log LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; BEGIN FOR v_job_list IN SELECT job_id, owner, job_name, start_time, end_time, status, pid FROM @extschema@.job_log WHERE job_name = upper(p_name) ORDER BY job_id DESC LIMIT $2 LOOP RETURN NEXT v_job_list; END LOOP; RETURN; END $$; /* * Show Jobs Like Name */ CREATE OR REPLACE FUNCTION show_job_like(p_name text, int default 10) RETURNS SETOF @extschema@.job_log LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; BEGIN FOR v_job_list IN SELECT job_id, owner, job_name, start_time, end_time, status, pid FROM @extschema@.job_log WHERE job_name ~ upper(p_name) ORDER BY job_id DESC LIMIT $2 LOOP RETURN NEXT v_job_list; END LOOP; RETURN; END $$; /* * Show Jobs By Status */ CREATE OR REPLACE FUNCTION show_job_status(p_status text, int default 10) RETURNS SETOF @extschema@.job_log LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; BEGIN FOR v_job_list IN SELECT job_id, owner, job_name, start_time, end_time, status, pid FROM @extschema@.job_log WHERE status = p_status ORDER BY job_id DESC LIMIT $2 LOOP RETURN NEXT v_job_list; END LOOP; RETURN; END $$; /* * Show Jobs By Exact Name and Status */ CREATE OR REPLACE FUNCTION show_job_status(p_name text, p_status text, int default 10) RETURNS SETOF @extschema@.job_log LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; BEGIN FOR v_job_list IN SELECT job_id, owner, job_name, start_time, end_time, status, pid FROM @extschema@.job_log WHERE job_name = upper(p_name) AND status = p_status ORDER BY job_id DESC LIMIT $3 LOOP RETURN NEXT v_job_list; END LOOP; RETURN; END $$; /* * Show Currently Running Jobs */ CREATE OR REPLACE FUNCTION show_running(int default 10) RETURNS SETOF @extschema@.job_log LANGUAGE plpgsql STABLE AS $$ DECLARE v_job_list @extschema@.job_log%ROWTYPE; v_version int; BEGIN SELECT current_setting('server_version_num')::int INTO v_version; IF v_version >= 90200 THEN FOR v_job_list IN SELECT j.job_id, j.owner, j.job_name, j.start_time, j.end_time, j.status, j.pid FROM @extschema@.job_log j JOIN pg_stat_activity p ON j.pid = p.pid WHERE j.status IS NULL ORDER BY j.job_id DESC LIMIT $1 LOOP RETURN NEXT v_job_list; END LOOP; ELSE FOR v_job_list IN SELECT j.job_id, j.owner, j.job_name, j.start_time, j.end_time, j.status, j.pid FROM @extschema@.job_log j JOIN pg_stat_activity p ON j.pid = p.procpid WHERE j.status IS NULL ORDER BY j.job_id DESC LIMIT $1 LOOP RETURN NEXT v_job_list; END LOOP; END IF; RETURN; END $$;
the_stack
-- 2021-02-15T11:10:40.125Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET DisplayLogic='@InvoiceIdentifier@!''''',Updated=TO_TIMESTAMP('2021-02-15 13:10:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=628793 ; -- 2021-02-15T11:12:17.605Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,628793,0,543320,577946,544779,'F',TO_TIMESTAMP('2021-02-15 13:12:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'Invoice identifier',250,0,0,TO_TIMESTAMP('2021-02-15 13:12:17','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-02-15T11:12:41.165Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=15,Updated=TO_TIMESTAMP('2021-02-15 13:12:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576444 ; -- 2021-02-15T11:13:36.887Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=240,Updated=TO_TIMESTAMP('2021-02-15 13:13:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576444 ; -- 2021-02-15T11:13:42.024Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=15,Updated=TO_TIMESTAMP('2021-02-15 13:13:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=577946 ; -- 2021-02-15T11:29:17.667Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,Description,EntityType,Help,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540564,0,541573,TO_TIMESTAMP('2021-02-15 13:29:14','YYYY-MM-DD HH24:MI:SS'),100,'Unique index to prevent importing the same remittance advice twice.','D','Unique index to prevent importing the same remittance advice twice.','Y','Y','C_RemittanceAdvice_Unq_ExternalDocNo_SendDate','N',TO_TIMESTAMP('2021-02-15 13:29:14','YYYY-MM-DD HH24:MI:SS'),100,'IsActive=''Y''') ; -- 2021-02-15T11:29:17.684Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Index_Table_ID=540564 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2021-02-15T11:29:40.271Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,572567,541057,540564,0,TO_TIMESTAMP('2021-02-15 13:29:40','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2021-02-15 13:29:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-02-15T11:30:05.675Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,ColumnSQL,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,572568,541058,540564,0,'COALESCE(sendAt, to_timestamp(0)::date)',TO_TIMESTAMP('2021-02-15 13:30:05','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',20,TO_TIMESTAMP('2021-02-15 13:30:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-02-15T11:33:18.979Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Index_Column SET ColumnSQL='COALESCE(sendAt, ''1970-01-01'')',Updated=TO_TIMESTAMP('2021-02-15 13:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Column_ID=541058 ; -- 2021-02-15T11:35:07.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE UNIQUE INDEX C_RemittanceAdvice_Unq_ExternalDocNo_SendDate ON C_RemittanceAdvice (ExternalDocumentNo,COALESCE(sendAt, '1970-01-01')) WHERE IsActive='Y' ; -- 2021-02-15T12:14:18.894Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=628771 ; -- 2021-02-15T12:14:18.899Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=628771 ; -- 2021-02-15T12:14:18.909Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=628771 ; -- 2021-02-15T12:14:18.946Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('C_RemittanceAdvice','ALTER TABLE C_RemittanceAdvice DROP COLUMN IF EXISTS AD_InputDataSource_ID') ; -- 2021-02-15T12:14:18.986Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=572565 ; -- 2021-02-15T12:14:18.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=572565 ; -- 2021-02-15T12:16:10.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Datum', PrintName='Avis-Datum',Updated=TO_TIMESTAMP('2021-02-15 14:16:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578679 AND AD_Language='de_CH' ; -- 2021-02-15T12:16:10.191Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578679,'de_CH') ; -- 2021-02-15T12:16:16.943Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Datum', PrintName='Avis-Datum',Updated=TO_TIMESTAMP('2021-02-15 14:16:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578679 AND AD_Language='de_DE' ; -- 2021-02-15T12:16:16.944Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578679,'de_DE') ; -- 2021-02-15T12:16:16.964Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578679,'de_DE') ; -- 2021-02-15T12:16:16.975Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='AnnouncedDateTrx', Name='Avis-Datum', Description=NULL, Help=NULL WHERE AD_Element_ID=578679 ; -- 2021-02-15T12:16:16.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='AnnouncedDateTrx', Name='Avis-Datum', Description=NULL, Help=NULL, AD_Element_ID=578679 WHERE UPPER(ColumnName)='ANNOUNCEDDATETRX' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:16:16.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='AnnouncedDateTrx', Name='Avis-Datum', Description=NULL, Help=NULL WHERE AD_Element_ID=578679 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:16:16.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Avis-Datum', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578679) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578679) ; -- 2021-02-15T12:16:16.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Avis-Datum', Name='Avis-Datum' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578679) ; -- 2021-02-15T12:16:16.990Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Avis-Datum', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578679 ; -- 2021-02-15T12:16:16.991Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Avis-Datum', Description=NULL, Help=NULL WHERE AD_Element_ID = 578679 ; -- 2021-02-15T12:16:16.991Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Avis-Datum', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578679 ; -- 2021-02-15T12:16:23.732Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Datum', PrintName='Avis-Datum',Updated=TO_TIMESTAMP('2021-02-15 14:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578679 AND AD_Language='nl_NL' ; -- 2021-02-15T12:16:23.733Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578679,'nl_NL') ; -- 2021-02-15T12:17:12.099Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielbelegart', PrintName='Zielbelegart',Updated=TO_TIMESTAMP('2021-02-15 14:17:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578674 AND AD_Language='de_CH' ; -- 2021-02-15T12:17:12.100Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578674,'de_CH') ; -- 2021-02-15T12:17:16.471Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielbelegart', PrintName='Zielbelegart',Updated=TO_TIMESTAMP('2021-02-15 14:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578674 AND AD_Language='de_DE' ; -- 2021-02-15T12:17:16.473Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578674,'de_DE') ; -- 2021-02-15T12:17:16.481Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578674,'de_DE') ; -- 2021-02-15T12:17:16.491Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='C_Payment_Doctype_Target_ID', Name='Zielbelegart', Description=NULL, Help=NULL WHERE AD_Element_ID=578674 ; -- 2021-02-15T12:17:16.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_Payment_Doctype_Target_ID', Name='Zielbelegart', Description=NULL, Help=NULL, AD_Element_ID=578674 WHERE UPPER(ColumnName)='C_PAYMENT_DOCTYPE_TARGET_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:17:16.493Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_Payment_Doctype_Target_ID', Name='Zielbelegart', Description=NULL, Help=NULL WHERE AD_Element_ID=578674 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:17:16.493Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zielbelegart', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578674) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578674) ; -- 2021-02-15T12:17:16.503Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zielbelegart', Name='Zielbelegart' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578674) ; -- 2021-02-15T12:17:16.504Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zielbelegart', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578674 ; -- 2021-02-15T12:17:16.504Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zielbelegart', Description=NULL, Help=NULL WHERE AD_Element_ID = 578674 ; -- 2021-02-15T12:17:16.505Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zielbelegart', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578674 ; -- 2021-02-15T12:17:22.536Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielbelegart', PrintName='Zielbelegart',Updated=TO_TIMESTAMP('2021-02-15 14:17:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578674 AND AD_Language='nl_NL' ; -- 2021-02-15T12:17:22.537Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578674,'nl_NL') ; -- 2021-02-15T12:17:42.612Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis', PrintName='Zahlungsavis',Updated=TO_TIMESTAMP('2021-02-15 14:17:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578673 AND AD_Language='de_CH' ; -- 2021-02-15T12:17:42.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578673,'de_CH') ; -- 2021-02-15T12:17:48.255Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis', PrintName='Zahlungsavis',Updated=TO_TIMESTAMP('2021-02-15 14:17:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578673 AND AD_Language='de_DE' ; -- 2021-02-15T12:17:48.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578673,'de_DE') ; -- 2021-02-15T12:17:48.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578673,'de_DE') ; -- 2021-02-15T12:17:48.309Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='C_RemittanceAdvice_ID', Name='Zahlungsavis', Description=NULL, Help=NULL WHERE AD_Element_ID=578673 ; -- 2021-02-15T12:17:48.311Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_ID', Name='Zahlungsavis', Description=NULL, Help=NULL, AD_Element_ID=578673 WHERE UPPER(ColumnName)='C_REMITTANCEADVICE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:17:48.312Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_ID', Name='Zahlungsavis', Description=NULL, Help=NULL WHERE AD_Element_ID=578673 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:17:48.313Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zahlungsavis', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578673) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578673) ; -- 2021-02-15T12:17:48.326Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zahlungsavis', Name='Zahlungsavis' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578673) ; -- 2021-02-15T12:17:48.327Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zahlungsavis', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578673 ; -- 2021-02-15T12:17:48.328Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zahlungsavis', Description=NULL, Help=NULL WHERE AD_Element_ID = 578673 ; -- 2021-02-15T12:17:48.329Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zahlungsavis', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578673 ; -- 2021-02-15T12:17:52.129Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis', PrintName='Zahlungsavis',Updated=TO_TIMESTAMP('2021-02-15 14:17:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578673 AND AD_Language='nl_NL' ; -- 2021-02-15T12:17:52.130Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578673,'nl_NL') ; -- 2021-02-15T12:18:26.127Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielkonto', PrintName='Zielkonto',Updated=TO_TIMESTAMP('2021-02-15 14:18:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578681 AND AD_Language='de_CH' ; -- 2021-02-15T12:18:26.128Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578681,'de_CH') ; -- 2021-02-15T12:18:31.068Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielkonto', PrintName='Zielkonto',Updated=TO_TIMESTAMP('2021-02-15 14:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578681 AND AD_Language='de_DE' ; -- 2021-02-15T12:18:31.069Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578681,'de_DE') ; -- 2021-02-15T12:18:31.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578681,'de_DE') ; -- 2021-02-15T12:18:31.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Destination_BP_BankAccount_ID', Name='Zielkonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578681 ; -- 2021-02-15T12:18:31.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Destination_BP_BankAccount_ID', Name='Zielkonto', Description=NULL, Help=NULL, AD_Element_ID=578681 WHERE UPPER(ColumnName)='DESTINATION_BP_BANKACCOUNT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:18:31.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Destination_BP_BankAccount_ID', Name='Zielkonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578681 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:18:31.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zielkonto', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578681) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578681) ; -- 2021-02-15T12:18:31.090Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zielkonto', Name='Zielkonto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578681) ; -- 2021-02-15T12:18:31.090Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zielkonto', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578681 ; -- 2021-02-15T12:18:31.091Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zielkonto', Description=NULL, Help=NULL WHERE AD_Element_ID = 578681 ; -- 2021-02-15T12:18:31.092Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zielkonto', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578681 ; -- 2021-02-15T12:18:35.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielkonto', PrintName='Zielkonto',Updated=TO_TIMESTAMP('2021-02-15 14:18:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578681 AND AD_Language='nl_NL' ; -- 2021-02-15T12:18:35.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578681,'nl_NL') ; -- 2021-02-15T12:19:03.724Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielgeschäftspartner', PrintName='Zielgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:19:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578683 AND AD_Language='de_CH' ; -- 2021-02-15T12:19:03.726Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578683,'de_CH') ; -- 2021-02-15T12:19:07.759Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielgeschäftspartner', PrintName='Zielgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:19:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578683 AND AD_Language='de_DE' ; -- 2021-02-15T12:19:07.759Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578683,'de_DE') ; -- 2021-02-15T12:19:07.765Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578683,'de_DE') ; -- 2021-02-15T12:19:07.765Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Destintion_BPartner_ID', Name='Zielgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID=578683 ; -- 2021-02-15T12:19:07.766Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Destintion_BPartner_ID', Name='Zielgeschäftspartner', Description=NULL, Help=NULL, AD_Element_ID=578683 WHERE UPPER(ColumnName)='DESTINTION_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:19:07.766Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Destintion_BPartner_ID', Name='Zielgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID=578683 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:19:07.767Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zielgeschäftspartner', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578683) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578683) ; -- 2021-02-15T12:19:07.778Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zielgeschäftspartner', Name='Zielgeschäftspartner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578683) ; -- 2021-02-15T12:19:07.779Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zielgeschäftspartner', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578683 ; -- 2021-02-15T12:19:07.780Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zielgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID = 578683 ; -- 2021-02-15T12:19:07.780Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zielgeschäftspartner', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578683 ; -- 2021-02-15T12:19:12.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zielgeschäftspartner', PrintName='Zielgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:19:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578683 AND AD_Language='nl_NL' ; -- 2021-02-15T12:19:12.563Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578683,'nl_NL') ; -- 2021-02-15T12:19:39.300Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegnr', PrintName='Externe Belegnr',Updated=TO_TIMESTAMP('2021-02-15 14:19:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578675 AND AD_Language='de_CH' ; -- 2021-02-15T12:19:39.301Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578675,'de_CH') ; -- 2021-02-15T12:19:42.019Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegnr', PrintName='Externe Belegnr',Updated=TO_TIMESTAMP('2021-02-15 14:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578675 AND AD_Language='de_DE' ; -- 2021-02-15T12:19:42.020Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578675,'de_DE') ; -- 2021-02-15T12:19:42.028Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578675,'de_DE') ; -- 2021-02-15T12:19:42.037Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ExternalDocumentNo', Name='Externe Belegnr', Description=NULL, Help=NULL WHERE AD_Element_ID=578675 ; -- 2021-02-15T12:19:42.037Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ExternalDocumentNo', Name='Externe Belegnr', Description=NULL, Help=NULL, AD_Element_ID=578675 WHERE UPPER(ColumnName)='EXTERNALDOCUMENTNO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:19:42.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ExternalDocumentNo', Name='Externe Belegnr', Description=NULL, Help=NULL WHERE AD_Element_ID=578675 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:19:42.047Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Externe Belegnr', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578675) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578675) ; -- 2021-02-15T12:19:42.059Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Externe Belegnr', Name='Externe Belegnr' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578675) ; -- 2021-02-15T12:19:42.060Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Externe Belegnr', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578675 ; -- 2021-02-15T12:19:42.061Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Externe Belegnr', Description=NULL, Help=NULL WHERE AD_Element_ID = 578675 ; -- 2021-02-15T12:19:42.062Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Externe Belegnr', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578675 ; -- 2021-02-15T12:19:45.758Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegnr', PrintName='Externe Belegnr',Updated=TO_TIMESTAMP('2021-02-15 14:19:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578675 AND AD_Language='nl_NL' ; -- 2021-02-15T12:19:45.758Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578675,'nl_NL') ; -- 2021-02-15T12:20:05.557Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Dokument OK', PrintName='Dokument OK',Updated=TO_TIMESTAMP('2021-02-15 14:20:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578723 AND AD_Language='de_CH' ; -- 2021-02-15T12:20:05.558Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578723,'de_CH') ; -- 2021-02-15T12:20:08.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Dokument OK', PrintName='Dokument OK',Updated=TO_TIMESTAMP('2021-02-15 14:20:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578723 AND AD_Language='de_DE' ; -- 2021-02-15T12:20:08.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578723,'de_DE') ; -- 2021-02-15T12:20:08.424Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578723,'de_DE') ; -- 2021-02-15T12:20:08.424Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsDocumentAcknowledged', Name='Dokument OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578723 ; -- 2021-02-15T12:20:08.425Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsDocumentAcknowledged', Name='Dokument OK', Description=NULL, Help=NULL, AD_Element_ID=578723 WHERE UPPER(ColumnName)='ISDOCUMENTACKNOWLEDGED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:20:08.426Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsDocumentAcknowledged', Name='Dokument OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578723 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:20:08.426Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Dokument OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578723) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578723) ; -- 2021-02-15T12:20:08.437Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Dokument OK', Name='Dokument OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578723) ; -- 2021-02-15T12:20:08.438Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Dokument OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578723 ; -- 2021-02-15T12:20:08.439Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Dokument OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578723 ; -- 2021-02-15T12:20:08.439Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Dokument OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578723 ; -- 2021-02-15T12:20:12.115Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Dokument OK', PrintName='Dokument OK',Updated=TO_TIMESTAMP('2021-02-15 14:20:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578723 AND AD_Language='nl_NL' ; -- 2021-02-15T12:20:12.116Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578723,'nl_NL') ; -- 2021-02-15T12:20:37.296Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:20:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578744 AND AD_Language='de_CH' ; -- 2021-02-15T12:20:37.297Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578744,'de_CH') ; -- 2021-02-15T12:20:39.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:20:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578744 AND AD_Language='de_DE' ; -- 2021-02-15T12:20:39.771Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578744,'de_DE') ; -- 2021-02-15T12:20:39.775Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578744,'de_DE') ; -- 2021-02-15T12:20:39.790Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='PaymentDiscountAmountSum', Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578744 ; -- 2021-02-15T12:20:39.791Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='PaymentDiscountAmountSum', Name='Skonto', Description=NULL, Help=NULL, AD_Element_ID=578744 WHERE UPPER(ColumnName)='PAYMENTDISCOUNTAMOUNTSUM' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:20:39.792Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='PaymentDiscountAmountSum', Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578744 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:20:39.792Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Skonto', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578744) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578744) ; -- 2021-02-15T12:20:39.802Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Skonto', Name='Skonto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578744) ; -- 2021-02-15T12:20:39.803Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Skonto', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578744 ; -- 2021-02-15T12:20:39.804Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID = 578744 ; -- 2021-02-15T12:20:39.804Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Skonto', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578744 ; -- 2021-02-15T12:20:43.118Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:20:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578744 AND AD_Language='nl_NL' ; -- 2021-02-15T12:20:43.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578744,'nl_NL') ; -- 2021-02-15T12:21:04.025Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlbetrag', PrintName='Zahlbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:21:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578677 AND AD_Language='de_CH' ; -- 2021-02-15T12:21:04.026Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578677,'de_CH') ; -- 2021-02-15T12:21:07.377Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlbetrag', PrintName='Zahlbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:21:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578677 AND AD_Language='de_DE' ; -- 2021-02-15T12:21:07.378Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578677,'de_DE') ; -- 2021-02-15T12:21:07.383Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578677,'de_DE') ; -- 2021-02-15T12:21:07.392Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='RemittanceAmt', Name='Zahlbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID=578677 ; -- 2021-02-15T12:21:07.393Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='RemittanceAmt', Name='Zahlbetrag', Description=NULL, Help=NULL, AD_Element_ID=578677 WHERE UPPER(ColumnName)='REMITTANCEAMT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:21:07.394Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='RemittanceAmt', Name='Zahlbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID=578677 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:21:07.394Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zahlbetrag', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578677) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578677) ; -- 2021-02-15T12:21:07.404Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zahlbetrag', Name='Zahlbetrag' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578677) ; -- 2021-02-15T12:21:07.405Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zahlbetrag', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578677 ; -- 2021-02-15T12:21:07.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zahlbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID = 578677 ; -- 2021-02-15T12:21:07.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zahlbetrag', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578677 ; -- 2021-02-15T12:21:10.633Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlbetrag', PrintName='Zahlbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:21:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578677 AND AD_Language='nl_NL' ; -- 2021-02-15T12:21:10.634Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578677,'nl_NL') ; -- 2021-02-15T12:21:34.026Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:21:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578678 AND AD_Language='de_CH' ; -- 2021-02-15T12:21:34.027Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578678,'de_CH') ; -- 2021-02-15T12:21:37.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:21:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578678 AND AD_Language='de_DE' ; -- 2021-02-15T12:21:37.849Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578678,'de_DE') ; -- 2021-02-15T12:21:37.853Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578678,'de_DE') ; -- 2021-02-15T12:21:37.863Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='RemittanceAmt_Currency_ID', Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID=578678 ; -- 2021-02-15T12:21:37.863Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='RemittanceAmt_Currency_ID', Name='Währung', Description=NULL, Help=NULL, AD_Element_ID=578678 WHERE UPPER(ColumnName)='REMITTANCEAMT_CURRENCY_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:21:37.864Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='RemittanceAmt_Currency_ID', Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID=578678 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:21:37.864Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Währung', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578678) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578678) ; -- 2021-02-15T12:21:37.874Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Währung', Name='Währung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578678) ; -- 2021-02-15T12:21:37.875Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Währung', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578678 ; -- 2021-02-15T12:21:37.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID = 578678 ; -- 2021-02-15T12:21:37.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Währung', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578678 ; -- 2021-02-15T12:21:41.585Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:21:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578678 AND AD_Language='nl_NL' ; -- 2021-02-15T12:21:41.585Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578678,'nl_NL') ; -- 2021-02-15T12:21:58.557Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis gesendet am', PrintName='Avis gesendet am',Updated=TO_TIMESTAMP('2021-02-15 14:21:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578676 AND AD_Language='de_CH' ; -- 2021-02-15T12:21:58.557Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578676,'de_CH') ; -- 2021-02-15T12:22:01.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis gesendet am', PrintName='Avis gesendet am',Updated=TO_TIMESTAMP('2021-02-15 14:22:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578676 AND AD_Language='de_DE' ; -- 2021-02-15T12:22:01.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578676,'de_DE') ; -- 2021-02-15T12:22:01.345Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578676,'de_DE') ; -- 2021-02-15T12:22:01.355Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='SendAt', Name='Avis gesendet am', Description=NULL, Help=NULL WHERE AD_Element_ID=578676 ; -- 2021-02-15T12:22:01.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='SendAt', Name='Avis gesendet am', Description=NULL, Help=NULL, AD_Element_ID=578676 WHERE UPPER(ColumnName)='SENDAT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:22:01.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='SendAt', Name='Avis gesendet am', Description=NULL, Help=NULL WHERE AD_Element_ID=578676 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:22:01.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Avis gesendet am', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578676) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578676) ; -- 2021-02-15T12:22:01.366Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Avis gesendet am', Name='Avis gesendet am' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578676) ; -- 2021-02-15T12:22:01.367Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Avis gesendet am', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578676 ; -- 2021-02-15T12:22:01.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Avis gesendet am', Description=NULL, Help=NULL WHERE AD_Element_ID = 578676 ; -- 2021-02-15T12:22:01.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Avis gesendet am', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578676 ; -- 2021-02-15T12:22:04.732Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis gesendet am', PrintName='Avis gesendet am',Updated=TO_TIMESTAMP('2021-02-15 14:22:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578676 AND AD_Language='nl_NL' ; -- 2021-02-15T12:22:04.733Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578676,'nl_NL') ; -- 2021-02-15T12:22:18.946Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicegebühr', PrintName='Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578684 AND AD_Language='de_CH' ; -- 2021-02-15T12:22:18.947Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578684,'de_CH') ; -- 2021-02-15T12:22:22.132Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicegebühr', PrintName='Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578684 AND AD_Language='de_DE' ; -- 2021-02-15T12:22:22.133Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578684,'de_DE') ; -- 2021-02-15T12:22:22.143Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578684,'de_DE') ; -- 2021-02-15T12:22:22.144Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ServiceFeeAmount', Name='Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID=578684 ; -- 2021-02-15T12:22:22.145Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeAmount', Name='Servicegebühr', Description=NULL, Help=NULL, AD_Element_ID=578684 WHERE UPPER(ColumnName)='SERVICEFEEAMOUNT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:22:22.146Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeAmount', Name='Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID=578684 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:22:22.147Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Servicegebühr', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578684) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578684) ; -- 2021-02-15T12:22:22.159Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Servicegebühr', Name='Servicegebühr' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578684) ; -- 2021-02-15T12:22:22.160Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Servicegebühr', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578684 ; -- 2021-02-15T12:22:22.161Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID = 578684 ; -- 2021-02-15T12:22:22.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Servicegebühr', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578684 ; -- 2021-02-15T12:22:25.975Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicegebühr', PrintName='Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578684 AND AD_Language='nl_NL' ; -- 2021-02-15T12:22:25.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578684,'nl_NL') ; -- 2021-02-15T12:22:45.502Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währ. Servicegebühr', PrintName='Währ. Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578685 AND AD_Language='de_CH' ; -- 2021-02-15T12:22:45.503Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578685,'de_CH') ; -- 2021-02-15T12:22:48.102Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währ. Servicegebühr', PrintName='Währ. Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578685 AND AD_Language='de_DE' ; -- 2021-02-15T12:22:48.103Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578685,'de_DE') ; -- 2021-02-15T12:22:48.108Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578685,'de_DE') ; -- 2021-02-15T12:22:48.108Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ServiceFeeAmount_Currency_ID', Name='Währ. Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID=578685 ; -- 2021-02-15T12:22:48.109Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeAmount_Currency_ID', Name='Währ. Servicegebühr', Description=NULL, Help=NULL, AD_Element_ID=578685 WHERE UPPER(ColumnName)='SERVICEFEEAMOUNT_CURRENCY_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:22:48.109Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeAmount_Currency_ID', Name='Währ. Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID=578685 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:22:48.110Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Währ. Servicegebühr', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578685) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578685) ; -- 2021-02-15T12:22:48.120Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Währ. Servicegebühr', Name='Währ. Servicegebühr' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578685) ; -- 2021-02-15T12:22:48.120Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Währ. Servicegebühr', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578685 ; -- 2021-02-15T12:22:48.121Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Währ. Servicegebühr', Description=NULL, Help=NULL WHERE AD_Element_ID = 578685 ; -- 2021-02-15T12:22:48.122Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Währ. Servicegebühr', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578685 ; -- 2021-02-15T12:22:50.780Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währ. Servicegebühr', PrintName='Währ. Servicegebühr',Updated=TO_TIMESTAMP('2021-02-15 14:22:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578685 AND AD_Language='nl_NL' ; -- 2021-02-15T12:22:50.781Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578685,'nl_NL') ; -- 2021-02-15T12:23:13.157Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Servicerechnungsnr', PrintName='Externe Servicerechnungsnr',Updated=TO_TIMESTAMP('2021-02-15 14:23:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578686 AND AD_Language='de_CH' ; -- 2021-02-15T12:23:13.157Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578686,'de_CH') ; -- 2021-02-15T12:23:15.697Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Servicerechnungsnr', PrintName='Externe Servicerechnungsnr',Updated=TO_TIMESTAMP('2021-02-15 14:23:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578686 AND AD_Language='de_DE' ; -- 2021-02-15T12:23:15.698Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578686,'de_DE') ; -- 2021-02-15T12:23:15.704Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578686,'de_DE') ; -- 2021-02-15T12:23:15.705Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ServiceFeeExternalInvoiceDocumentNo', Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL WHERE AD_Element_ID=578686 ; -- 2021-02-15T12:23:15.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeExternalInvoiceDocumentNo', Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL, AD_Element_ID=578686 WHERE UPPER(ColumnName)='SERVICEFEEEXTERNALINVOICEDOCUMENTNO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:23:15.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeExternalInvoiceDocumentNo', Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL WHERE AD_Element_ID=578686 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:23:15.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578686) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578686) ; -- 2021-02-15T12:23:15.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Externe Servicerechnungsnr', Name='Externe Servicerechnungsnr' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578686) ; -- 2021-02-15T12:23:15.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578686 ; -- 2021-02-15T12:23:15.717Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Externe Servicerechnungsnr', Description=NULL, Help=NULL WHERE AD_Element_ID = 578686 ; -- 2021-02-15T12:23:15.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Externe Servicerechnungsnr', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578686 ; -- 2021-02-15T12:23:18.663Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Servicerechnungsnr', PrintName='Externe Servicerechnungsnr',Updated=TO_TIMESTAMP('2021-02-15 14:23:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578686 AND AD_Language='nl_NL' ; -- 2021-02-15T12:23:18.664Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578686,'nl_NL') ; -- 2021-02-15T12:23:38.559Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnungsdatum', PrintName='Servicerechnungsdatum',Updated=TO_TIMESTAMP('2021-02-15 14:23:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578711 AND AD_Language='de_CH' ; -- 2021-02-15T12:23:38.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578711,'de_CH') ; -- 2021-02-15T12:23:41.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnungsdatum', PrintName='Servicerechnungsdatum',Updated=TO_TIMESTAMP('2021-02-15 14:23:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578711 AND AD_Language='de_DE' ; -- 2021-02-15T12:23:41.221Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578711,'de_DE') ; -- 2021-02-15T12:23:41.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578711,'de_DE') ; -- 2021-02-15T12:23:41.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ServiceFeeInvoicedDate', Name='Servicerechnungsdatum', Description=NULL, Help=NULL WHERE AD_Element_ID=578711 ; -- 2021-02-15T12:23:41.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeInvoicedDate', Name='Servicerechnungsdatum', Description=NULL, Help=NULL, AD_Element_ID=578711 WHERE UPPER(ColumnName)='SERVICEFEEINVOICEDDATE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:23:41.230Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ServiceFeeInvoicedDate', Name='Servicerechnungsdatum', Description=NULL, Help=NULL WHERE AD_Element_ID=578711 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:23:41.231Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Servicerechnungsdatum', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578711) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578711) ; -- 2021-02-15T12:23:41.240Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Servicerechnungsdatum', Name='Servicerechnungsdatum' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578711) ; -- 2021-02-15T12:23:41.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Servicerechnungsdatum', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578711 ; -- 2021-02-15T12:23:41.242Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Servicerechnungsdatum', Description=NULL, Help=NULL WHERE AD_Element_ID = 578711 ; -- 2021-02-15T12:23:41.242Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Servicerechnungsdatum', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578711 ; -- 2021-02-15T12:23:45.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnungsdatum', PrintName='Servicerechnungsdatum',Updated=TO_TIMESTAMP('2021-02-15 14:23:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578711 AND AD_Language='nl_NL' ; -- 2021-02-15T12:23:45.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578711,'nl_NL') ; -- 2021-02-15T12:24:01.970Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangskonto', PrintName='Ausgangskonto',Updated=TO_TIMESTAMP('2021-02-15 14:24:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578680 AND AD_Language='de_CH' ; -- 2021-02-15T12:24:01.971Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578680,'de_CH') ; -- 2021-02-15T12:24:04.664Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangskonto', PrintName='Ausgangskonto',Updated=TO_TIMESTAMP('2021-02-15 14:24:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578680 AND AD_Language='de_DE' ; -- 2021-02-15T12:24:04.665Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578680,'de_DE') ; -- 2021-02-15T12:24:04.672Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578680,'de_DE') ; -- 2021-02-15T12:24:04.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Source_BP_BankAccount_ID', Name='Ausgangskonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578680 ; -- 2021-02-15T12:24:04.683Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Source_BP_BankAccount_ID', Name='Ausgangskonto', Description=NULL, Help=NULL, AD_Element_ID=578680 WHERE UPPER(ColumnName)='SOURCE_BP_BANKACCOUNT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:24:04.683Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Source_BP_BankAccount_ID', Name='Ausgangskonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578680 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:24:04.684Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ausgangskonto', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578680) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578680) ; -- 2021-02-15T12:24:04.693Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Ausgangskonto', Name='Ausgangskonto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578680) ; -- 2021-02-15T12:24:04.694Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Ausgangskonto', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578680 ; -- 2021-02-15T12:24:04.695Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Ausgangskonto', Description=NULL, Help=NULL WHERE AD_Element_ID = 578680 ; -- 2021-02-15T12:24:04.695Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Ausgangskonto', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578680 ; -- 2021-02-15T12:24:07.621Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangskonto', PrintName='Ausgangskonto',Updated=TO_TIMESTAMP('2021-02-15 14:24:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578680 AND AD_Language='nl_NL' ; -- 2021-02-15T12:24:07.622Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578680,'nl_NL') ; -- 2021-02-15T12:24:24.528Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangsgeschäftspartner', PrintName='Ausgangsgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:24:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578682 AND AD_Language='de_CH' ; -- 2021-02-15T12:24:24.530Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578682,'de_CH') ; -- 2021-02-15T12:24:27.567Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangsgeschäftspartner', PrintName='Ausgangsgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:24:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578682 AND AD_Language='de_DE' ; -- 2021-02-15T12:24:27.568Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578682,'de_DE') ; -- 2021-02-15T12:24:27.573Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578682,'de_DE') ; -- 2021-02-15T12:24:27.574Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Source_BPartner_ID', Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID=578682 ; -- 2021-02-15T12:24:27.575Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Source_BPartner_ID', Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL, AD_Element_ID=578682 WHERE UPPER(ColumnName)='SOURCE_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:24:27.576Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Source_BPartner_ID', Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID=578682 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:24:27.576Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578682) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578682) ; -- 2021-02-15T12:24:27.590Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Ausgangsgeschäftspartner', Name='Ausgangsgeschäftspartner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578682) ; -- 2021-02-15T12:24:27.590Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578682 ; -- 2021-02-15T12:24:27.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Ausgangsgeschäftspartner', Description=NULL, Help=NULL WHERE AD_Element_ID = 578682 ; -- 2021-02-15T12:24:27.592Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Ausgangsgeschäftspartner', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578682 ; -- 2021-02-15T12:24:30.448Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Ausgangsgeschäftspartner', PrintName='Ausgangsgeschäftspartner',Updated=TO_TIMESTAMP('2021-02-15 14:24:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578682 AND AD_Language='nl_NL' ; -- 2021-02-15T12:24:30.449Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578682,'nl_NL') ; -- 2021-02-15T12:25:11.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:25:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578694 AND AD_Language='de_CH' ; -- 2021-02-15T12:25:11.856Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578694,'de_CH') ; -- 2021-02-15T12:25:14.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:25:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578694 AND AD_Language='de_DE' ; -- 2021-02-15T12:25:14.708Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578694,'de_DE') ; -- 2021-02-15T12:25:14.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578694,'de_DE') ; -- 2021-02-15T12:25:14.717Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='C_Invoice_Currency_ID', Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID=578694 ; -- 2021-02-15T12:25:14.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_Invoice_Currency_ID', Name='Währung', Description=NULL, Help=NULL, AD_Element_ID=578694 WHERE UPPER(ColumnName)='C_INVOICE_CURRENCY_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:25:14.719Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_Invoice_Currency_ID', Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID=578694 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:25:14.720Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Währung', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578694) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578694) ; -- 2021-02-15T12:25:14.738Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Währung', Name='Währung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578694) ; -- 2021-02-15T12:25:14.738Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Währung', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578694 ; -- 2021-02-15T12:25:14.740Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Währung', Description=NULL, Help=NULL WHERE AD_Element_ID = 578694 ; -- 2021-02-15T12:25:14.741Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Währung', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578694 ; -- 2021-02-15T12:25:19.100Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Währung', PrintName='Währung',Updated=TO_TIMESTAMP('2021-02-15 14:25:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578694 AND AD_Language='nl_NL' ; -- 2021-02-15T12:25:19.100Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578694,'nl_NL') ; -- 2021-02-15T12:27:03.051Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Linie', PrintName='Zahlungsavis Linie',Updated=TO_TIMESTAMP('2021-02-15 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='de_CH' ; -- 2021-02-15T12:27:03.052Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'de_CH') ; -- 2021-02-15T12:27:09.535Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Linie', PrintName='Zahlungsavis Linie',Updated=TO_TIMESTAMP('2021-02-15 14:27:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='de_DE' ; -- 2021-02-15T12:27:09.536Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'de_DE') ; -- 2021-02-15T12:27:09.542Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578688,'de_DE') ; -- 2021-02-15T12:27:09.543Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Linie', Description=NULL, Help=NULL WHERE AD_Element_ID=578688 ; -- 2021-02-15T12:27:09.544Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Linie', Description=NULL, Help=NULL, AD_Element_ID=578688 WHERE UPPER(ColumnName)='C_REMITTANCEADVICE_LINE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:27:09.545Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Linie', Description=NULL, Help=NULL WHERE AD_Element_ID=578688 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:27:09.546Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zahlungsavis Linie', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578688) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578688) ; -- 2021-02-15T12:27:09.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zahlungsavis Linie', Name='Zahlungsavis Linie' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578688) ; -- 2021-02-15T12:27:09.563Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zahlungsavis Linie', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:27:09.564Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zahlungsavis Linie', Description=NULL, Help=NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:27:09.565Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zahlungsavis Linie', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:27:16.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Linie', PrintName='Zahlungsavis Linie',Updated=TO_TIMESTAMP('2021-02-15 14:27:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='nl_NL' ; -- 2021-02-15T12:27:16.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'nl_NL') ; -- 2021-02-15T12:28:36.083Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Position', PrintName='Zahlungsavis Position',Updated=TO_TIMESTAMP('2021-02-15 14:28:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='nl_NL' ; -- 2021-02-15T12:28:36.083Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'nl_NL') ; -- 2021-02-15T12:28:42.121Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Position', PrintName='Zahlungsavis Position',Updated=TO_TIMESTAMP('2021-02-15 14:28:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='de_DE' ; -- 2021-02-15T12:28:42.122Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'de_DE') ; -- 2021-02-15T12:28:42.131Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578688,'de_DE') ; -- 2021-02-15T12:28:42.131Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Position', Description=NULL, Help=NULL WHERE AD_Element_ID=578688 ; -- 2021-02-15T12:28:42.132Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Position', Description=NULL, Help=NULL, AD_Element_ID=578688 WHERE UPPER(ColumnName)='C_REMITTANCEADVICE_LINE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:28:42.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='C_RemittanceAdvice_Line_ID', Name='Zahlungsavis Position', Description=NULL, Help=NULL WHERE AD_Element_ID=578688 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:28:42.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zahlungsavis Position', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578688) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578688) ; -- 2021-02-15T12:28:42.151Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zahlungsavis Position', Name='Zahlungsavis Position' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578688) ; -- 2021-02-15T12:28:42.152Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zahlungsavis Position', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:28:42.153Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zahlungsavis Position', Description=NULL, Help=NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:28:42.154Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zahlungsavis Position', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578688 ; -- 2021-02-15T12:28:46.998Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zahlungsavis Position', PrintName='Zahlungsavis Position',Updated=TO_TIMESTAMP('2021-02-15 14:28:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578688 AND AD_Language='de_CH' ; -- 2021-02-15T12:28:46.999Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578688,'de_CH') ; -- 2021-02-15T12:29:16.694Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegart', PrintName='Externe Belegart',Updated=TO_TIMESTAMP('2021-02-15 14:29:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578691 AND AD_Language='de_CH' ; -- 2021-02-15T12:29:16.695Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578691,'de_CH') ; -- 2021-02-15T12:29:19.459Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegart', PrintName='Externe Belegart',Updated=TO_TIMESTAMP('2021-02-15 14:29:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578691 AND AD_Language='de_DE' ; -- 2021-02-15T12:29:19.459Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578691,'de_DE') ; -- 2021-02-15T12:29:19.465Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578691,'de_DE') ; -- 2021-02-15T12:29:19.466Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ExternalInvoiceDocBaseType', Name='Externe Belegart', Description=NULL, Help=NULL WHERE AD_Element_ID=578691 ; -- 2021-02-15T12:29:19.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ExternalInvoiceDocBaseType', Name='Externe Belegart', Description=NULL, Help=NULL, AD_Element_ID=578691 WHERE UPPER(ColumnName)='EXTERNALINVOICEDOCBASETYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:29:19.468Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ExternalInvoiceDocBaseType', Name='Externe Belegart', Description=NULL, Help=NULL WHERE AD_Element_ID=578691 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:29:19.468Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Externe Belegart', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578691) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578691) ; -- 2021-02-15T12:29:19.481Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Externe Belegart', Name='Externe Belegart' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578691) ; -- 2021-02-15T12:29:19.483Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Externe Belegart', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578691 ; -- 2021-02-15T12:29:19.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Externe Belegart', Description=NULL, Help=NULL WHERE AD_Element_ID = 578691 ; -- 2021-02-15T12:29:19.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Externe Belegart', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578691 ; -- 2021-02-15T12:29:22.880Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Externe Belegart', PrintName='Externe Belegart',Updated=TO_TIMESTAMP('2021-02-15 14:29:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578691 AND AD_Language='nl_NL' ; -- 2021-02-15T12:29:22.881Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578691,'nl_NL') ; -- 2021-02-15T12:29:41.416Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Rechnungsbetrag', PrintName='Avis-Rechnungsbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:29:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578695 AND AD_Language='de_CH' ; -- 2021-02-15T12:29:41.416Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578695,'de_CH') ; -- 2021-02-15T12:29:45.306Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Rechnungsbetrag', PrintName='Avis-Rechnungsbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:29:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578695 AND AD_Language='de_DE' ; -- 2021-02-15T12:29:45.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578695,'de_DE') ; -- 2021-02-15T12:29:45.314Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578695,'de_DE') ; -- 2021-02-15T12:29:45.315Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='InvoiceAmtInREMADVCurrency', Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID=578695 ; -- 2021-02-15T12:29:45.315Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceAmtInREMADVCurrency', Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL, AD_Element_ID=578695 WHERE UPPER(ColumnName)='INVOICEAMTINREMADVCURRENCY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:29:45.316Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceAmtInREMADVCurrency', Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID=578695 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:29:45.316Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578695) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578695) ; -- 2021-02-15T12:29:45.325Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Avis-Rechnungsbetrag', Name='Avis-Rechnungsbetrag' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578695) ; -- 2021-02-15T12:29:45.326Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578695 ; -- 2021-02-15T12:29:45.327Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Avis-Rechnungsbetrag', Description=NULL, Help=NULL WHERE AD_Element_ID = 578695 ; -- 2021-02-15T12:29:45.327Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Avis-Rechnungsbetrag', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578695 ; -- 2021-02-15T12:29:50.186Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Avis-Rechnungsbetrag', PrintName='Avis-Rechnungsbetrag',Updated=TO_TIMESTAMP('2021-02-15 14:29:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578695 AND AD_Language='nl_NL' ; -- 2021-02-15T12:29:50.187Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578695,'nl_NL') ; -- 2021-02-15T12:30:18.495Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsbrutto', PrintName='Rechnungsbrutto',Updated=TO_TIMESTAMP('2021-02-15 14:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578743 AND AD_Language='de_CH' ; -- 2021-02-15T12:30:18.496Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578743,'de_CH') ; -- 2021-02-15T12:30:21.320Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsbrutto', PrintName='Rechnungsbrutto',Updated=TO_TIMESTAMP('2021-02-15 14:30:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578743 AND AD_Language='de_DE' ; -- 2021-02-15T12:30:21.321Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578743,'de_DE') ; -- 2021-02-15T12:30:21.327Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578743,'de_DE') ; -- 2021-02-15T12:30:21.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='InvoiceGrossAmount', Name='Rechnungsbrutto', Description=NULL, Help=NULL WHERE AD_Element_ID=578743 ; -- 2021-02-15T12:30:21.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceGrossAmount', Name='Rechnungsbrutto', Description=NULL, Help=NULL, AD_Element_ID=578743 WHERE UPPER(ColumnName)='INVOICEGROSSAMOUNT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:30:21.338Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceGrossAmount', Name='Rechnungsbrutto', Description=NULL, Help=NULL WHERE AD_Element_ID=578743 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:30:21.339Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Rechnungsbrutto', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578743) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578743) ; -- 2021-02-15T12:30:21.353Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Rechnungsbrutto', Name='Rechnungsbrutto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578743) ; -- 2021-02-15T12:30:21.354Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Rechnungsbrutto', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578743 ; -- 2021-02-15T12:30:21.355Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Rechnungsbrutto', Description=NULL, Help=NULL WHERE AD_Element_ID = 578743 ; -- 2021-02-15T12:30:21.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Rechnungsbrutto', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578743 ; -- 2021-02-15T12:30:24.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsbrutto', PrintName='Rechnungsbrutto',Updated=TO_TIMESTAMP('2021-02-15 14:30:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578743 AND AD_Language='nl_NL' ; -- 2021-02-15T12:30:24.978Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578743,'nl_NL') ; -- 2021-02-15T12:30:39.611Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungs-Identifikator', PrintName='Rechnungs-Identifikator',Updated=TO_TIMESTAMP('2021-02-15 14:30:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578689 AND AD_Language='de_CH' ; -- 2021-02-15T12:30:39.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578689,'de_CH') ; -- 2021-02-15T12:30:42.054Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungs-Identifikator', PrintName='Rechnungs-Identifikator',Updated=TO_TIMESTAMP('2021-02-15 14:30:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578689 AND AD_Language='de_DE' ; -- 2021-02-15T12:30:42.055Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578689,'de_DE') ; -- 2021-02-15T12:30:42.060Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578689,'de_DE') ; -- 2021-02-15T12:30:42.061Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='InvoiceIdentifier', Name='Rechnungs-Identifikator', Description=NULL, Help=NULL WHERE AD_Element_ID=578689 ; -- 2021-02-15T12:30:42.061Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceIdentifier', Name='Rechnungs-Identifikator', Description=NULL, Help=NULL, AD_Element_ID=578689 WHERE UPPER(ColumnName)='INVOICEIDENTIFIER' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:30:42.062Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='InvoiceIdentifier', Name='Rechnungs-Identifikator', Description=NULL, Help=NULL WHERE AD_Element_ID=578689 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:30:42.063Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Rechnungs-Identifikator', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578689) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578689) ; -- 2021-02-15T12:30:42.076Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Rechnungs-Identifikator', Name='Rechnungs-Identifikator' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578689) ; -- 2021-02-15T12:30:42.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Rechnungs-Identifikator', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578689 ; -- 2021-02-15T12:30:42.078Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Rechnungs-Identifikator', Description=NULL, Help=NULL WHERE AD_Element_ID = 578689 ; -- 2021-02-15T12:30:42.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Rechnungs-Identifikator', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578689 ; -- 2021-02-15T12:30:45.043Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungs-Identifikator', PrintName='Rechnungs-Identifikator',Updated=TO_TIMESTAMP('2021-02-15 14:30:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578689 AND AD_Language='nl_NL' ; -- 2021-02-15T12:30:45.043Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578689,'nl_NL') ; -- 2021-02-15T12:31:05.765Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Betrag OK', PrintName='Betrag OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578720 AND AD_Language='de_CH' ; -- 2021-02-15T12:31:05.766Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578720,'de_CH') ; -- 2021-02-15T12:31:08.399Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Betrag OK', PrintName='Betrag OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578720 AND AD_Language='de_DE' ; -- 2021-02-15T12:31:08.400Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578720,'de_DE') ; -- 2021-02-15T12:31:08.405Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578720,'de_DE') ; -- 2021-02-15T12:31:08.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsAmountValid', Name='Betrag OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578720 ; -- 2021-02-15T12:31:08.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsAmountValid', Name='Betrag OK', Description=NULL, Help=NULL, AD_Element_ID=578720 WHERE UPPER(ColumnName)='ISAMOUNTVALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:31:08.407Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsAmountValid', Name='Betrag OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578720 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:31:08.407Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Betrag OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578720) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578720) ; -- 2021-02-15T12:31:08.417Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Betrag OK', Name='Betrag OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578720) ; -- 2021-02-15T12:31:08.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Betrag OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578720 ; -- 2021-02-15T12:31:08.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Betrag OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578720 ; -- 2021-02-15T12:31:08.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Betrag OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578720 ; -- 2021-02-15T12:31:10.909Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Betrag OK', PrintName='Betrag OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578720 AND AD_Language='nl_NL' ; -- 2021-02-15T12:31:10.910Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578720,'nl_NL') ; -- 2021-02-15T12:31:26.930Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Geschäftspartner OK', PrintName='Geschäftspartner OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578717 AND AD_Language='de_CH' ; -- 2021-02-15T12:31:26.931Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578717,'de_CH') ; -- 2021-02-15T12:31:29.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Geschäftspartner OK', PrintName='Geschäftspartner OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578717 AND AD_Language='de_DE' ; -- 2021-02-15T12:31:29.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578717,'de_DE') ; -- 2021-02-15T12:31:29.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578717,'de_DE') ; -- 2021-02-15T12:31:29.260Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsBPartnerValid', Name='Geschäftspartner OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578717 ; -- 2021-02-15T12:31:29.261Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsBPartnerValid', Name='Geschäftspartner OK', Description=NULL, Help=NULL, AD_Element_ID=578717 WHERE UPPER(ColumnName)='ISBPARTNERVALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:31:29.261Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsBPartnerValid', Name='Geschäftspartner OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578717 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:31:29.262Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Geschäftspartner OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578717) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578717) ; -- 2021-02-15T12:31:29.274Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Geschäftspartner OK', Name='Geschäftspartner OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578717) ; -- 2021-02-15T12:31:29.275Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Geschäftspartner OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578717 ; -- 2021-02-15T12:31:29.276Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Geschäftspartner OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578717 ; -- 2021-02-15T12:31:29.276Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Geschäftspartner OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578717 ; -- 2021-02-15T12:31:35.283Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Geschäftspartner OK', PrintName='Geschäftspartner OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578717 AND AD_Language='nl_NL' ; -- 2021-02-15T12:31:35.284Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578717,'nl_NL') ; -- 2021-02-15T12:31:53.050Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsdatum OK', PrintName='Rechnungsdatum OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578715 AND AD_Language='de_CH' ; -- 2021-02-15T12:31:53.051Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578715,'de_CH') ; -- 2021-02-15T12:31:55.409Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsdatum OK', PrintName='Rechnungsdatum OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578715 AND AD_Language='de_DE' ; -- 2021-02-15T12:31:55.411Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578715,'de_DE') ; -- 2021-02-15T12:31:55.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578715,'de_DE') ; -- 2021-02-15T12:31:55.429Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsInvoiceDateValid', Name='Rechnungsdatum OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578715 ; -- 2021-02-15T12:31:55.430Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceDateValid', Name='Rechnungsdatum OK', Description=NULL, Help=NULL, AD_Element_ID=578715 WHERE UPPER(ColumnName)='ISINVOICEDATEVALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:31:55.431Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceDateValid', Name='Rechnungsdatum OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578715 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:31:55.432Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Rechnungsdatum OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578715) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578715) ; -- 2021-02-15T12:31:55.451Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Rechnungsdatum OK', Name='Rechnungsdatum OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578715) ; -- 2021-02-15T12:31:55.452Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Rechnungsdatum OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578715 ; -- 2021-02-15T12:31:55.453Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Rechnungsdatum OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578715 ; -- 2021-02-15T12:31:55.454Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Rechnungsdatum OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578715 ; -- 2021-02-15T12:31:58.564Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnungsdatum OK', PrintName='Rechnungsdatum OK',Updated=TO_TIMESTAMP('2021-02-15 14:31:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578715 AND AD_Language='nl_NL' ; -- 2021-02-15T12:31:58.565Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578715,'nl_NL') ; -- 2021-02-15T12:32:18.098Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Belegart OK', PrintName='Belegart OK',Updated=TO_TIMESTAMP('2021-02-15 14:32:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578716 AND AD_Language='de_CH' ; -- 2021-02-15T12:32:18.099Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578716,'de_CH') ; -- 2021-02-15T12:32:20.946Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Belegart OK', PrintName='Belegart OK',Updated=TO_TIMESTAMP('2021-02-15 14:32:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578716 AND AD_Language='de_DE' ; -- 2021-02-15T12:32:20.946Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578716,'de_DE') ; -- 2021-02-15T12:32:20.951Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578716,'de_DE') ; -- 2021-02-15T12:32:20.952Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsInvoiceDocTypeValid', Name='Belegart OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578716 ; -- 2021-02-15T12:32:20.953Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceDocTypeValid', Name='Belegart OK', Description=NULL, Help=NULL, AD_Element_ID=578716 WHERE UPPER(ColumnName)='ISINVOICEDOCTYPEVALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:32:20.953Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceDocTypeValid', Name='Belegart OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578716 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:32:20.954Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Belegart OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578716) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578716) ; -- 2021-02-15T12:32:20.966Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Belegart OK', Name='Belegart OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578716) ; -- 2021-02-15T12:32:20.967Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Belegart OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578716 ; -- 2021-02-15T12:32:20.968Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Belegart OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578716 ; -- 2021-02-15T12:32:20.968Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Belegart OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578716 ; -- 2021-02-15T12:32:23.417Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Belegart OK', PrintName='Belegart OK',Updated=TO_TIMESTAMP('2021-02-15 14:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578716 AND AD_Language='nl_NL' ; -- 2021-02-15T12:32:23.417Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578716,'nl_NL') ; -- 2021-02-15T12:32:44.823Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnung zugeordnet', PrintName='Rechnung zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:32:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578719 AND AD_Language='de_CH' ; -- 2021-02-15T12:32:44.824Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578719,'de_CH') ; -- 2021-02-15T12:32:47.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnung zugeordnet', PrintName='Rechnung zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:32:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578719 AND AD_Language='de_DE' ; -- 2021-02-15T12:32:47.771Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578719,'de_DE') ; -- 2021-02-15T12:32:47.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578719,'de_DE') ; -- 2021-02-15T12:32:47.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsInvoiceResolved', Name='Rechnung zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID=578719 ; -- 2021-02-15T12:32:47.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceResolved', Name='Rechnung zugeordnet', Description=NULL, Help=NULL, AD_Element_ID=578719 WHERE UPPER(ColumnName)='ISINVOICERESOLVED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:32:47.778Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsInvoiceResolved', Name='Rechnung zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID=578719 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:32:47.778Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Rechnung zugeordnet', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578719) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578719) ; -- 2021-02-15T12:32:47.789Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Rechnung zugeordnet', Name='Rechnung zugeordnet' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578719) ; -- 2021-02-15T12:32:47.789Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Rechnung zugeordnet', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578719 ; -- 2021-02-15T12:32:47.790Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Rechnung zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID = 578719 ; -- 2021-02-15T12:32:47.791Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Rechnung zugeordnet', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578719 ; -- 2021-02-15T12:32:52.135Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Rechnung zugeordnet', PrintName='Rechnung zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:32:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578719 AND AD_Language='nl_NL' ; -- 2021-02-15T12:32:52.135Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578719,'nl_NL') ; -- 2021-02-15T12:33:08.610Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zeile OK', PrintName='Zeile OK',Updated=TO_TIMESTAMP('2021-02-15 14:33:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578721 AND AD_Language='de_CH' ; -- 2021-02-15T12:33:08.610Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578721,'de_CH') ; -- 2021-02-15T12:33:11.050Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zeile OK', PrintName='Zeile OK',Updated=TO_TIMESTAMP('2021-02-15 14:33:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578721 AND AD_Language='de_DE' ; -- 2021-02-15T12:33:11.051Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578721,'de_DE') ; -- 2021-02-15T12:33:11.058Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578721,'de_DE') ; -- 2021-02-15T12:33:11.059Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsLineAcknowledged', Name='Zeile OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578721 ; -- 2021-02-15T12:33:11.060Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsLineAcknowledged', Name='Zeile OK', Description=NULL, Help=NULL, AD_Element_ID=578721 WHERE UPPER(ColumnName)='ISLINEACKNOWLEDGED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:33:11.061Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsLineAcknowledged', Name='Zeile OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578721 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:33:11.062Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zeile OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578721) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578721) ; -- 2021-02-15T12:33:11.078Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Zeile OK', Name='Zeile OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578721) ; -- 2021-02-15T12:33:11.078Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Zeile OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578721 ; -- 2021-02-15T12:33:11.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Zeile OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578721 ; -- 2021-02-15T12:33:11.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Zeile OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578721 ; -- 2021-02-15T12:33:14.076Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Zeile OK', PrintName='Zeile OK',Updated=TO_TIMESTAMP('2021-02-15 14:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578721 AND AD_Language='nl_NL' ; -- 2021-02-15T12:33:14.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578721,'nl_NL') ; -- 2021-02-15T12:33:30.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceeinstellungen zugeordnet', PrintName='Serviceeinstellungen zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:33:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578722 AND AD_Language='de_CH' ; -- 2021-02-15T12:33:30.163Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578722,'de_CH') ; -- 2021-02-15T12:33:32.564Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceeinstellungen zugeordnet', PrintName='Serviceeinstellungen zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:33:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578722 AND AD_Language='de_DE' ; -- 2021-02-15T12:33:32.565Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578722,'de_DE') ; -- 2021-02-15T12:33:32.572Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578722,'de_DE') ; -- 2021-02-15T12:33:32.582Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsServiceColumnsResolved', Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID=578722 ; -- 2021-02-15T12:33:32.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsServiceColumnsResolved', Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL, AD_Element_ID=578722 WHERE UPPER(ColumnName)='ISSERVICECOLUMNSRESOLVED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:33:32.584Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsServiceColumnsResolved', Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID=578722 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:33:32.585Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578722) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578722) ; -- 2021-02-15T12:33:32.604Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Serviceeinstellungen zugeordnet', Name='Serviceeinstellungen zugeordnet' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578722) ; -- 2021-02-15T12:33:32.605Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578722 ; -- 2021-02-15T12:33:32.606Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Serviceeinstellungen zugeordnet', Description=NULL, Help=NULL WHERE AD_Element_ID = 578722 ; -- 2021-02-15T12:33:32.607Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Serviceeinstellungen zugeordnet', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578722 ; -- 2021-02-15T12:33:36.689Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceeinstellungen zugeordnet', PrintName='Serviceeinstellungen zugeordnet',Updated=TO_TIMESTAMP('2021-02-15 14:33:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578722 AND AD_Language='nl_NL' ; -- 2021-02-15T12:33:36.690Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578722,'nl_NL') ; -- 2021-02-15T12:33:55.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer OK', PrintName='Service-Steuer OK',Updated=TO_TIMESTAMP('2021-02-15 14:33:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578718 AND AD_Language='de_CH' ; -- 2021-02-15T12:33:55.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578718,'de_CH') ; -- 2021-02-15T12:33:58.553Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer OK', PrintName='Service-Steuer OK',Updated=TO_TIMESTAMP('2021-02-15 14:33:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578718 AND AD_Language='de_DE' ; -- 2021-02-15T12:33:58.554Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578718,'de_DE') ; -- 2021-02-15T12:33:58.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578718,'de_DE') ; -- 2021-02-15T12:33:58.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsServiceFeeVatRateValid', Name='Service-Steuer OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578718 ; -- 2021-02-15T12:33:58.561Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsServiceFeeVatRateValid', Name='Service-Steuer OK', Description=NULL, Help=NULL, AD_Element_ID=578718 WHERE UPPER(ColumnName)='ISSERVICEFEEVATRATEVALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:33:58.561Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsServiceFeeVatRateValid', Name='Service-Steuer OK', Description=NULL, Help=NULL WHERE AD_Element_ID=578718 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:33:58.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Service-Steuer OK', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578718) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578718) ; -- 2021-02-15T12:33:58.571Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Service-Steuer OK', Name='Service-Steuer OK' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578718) ; -- 2021-02-15T12:33:58.572Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Service-Steuer OK', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578718 ; -- 2021-02-15T12:33:58.573Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Service-Steuer OK', Description=NULL, Help=NULL WHERE AD_Element_ID = 578718 ; -- 2021-02-15T12:33:58.573Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Service-Steuer OK', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578718 ; -- 2021-02-15T12:34:01.115Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer OK', PrintName='Service-Steuer OK',Updated=TO_TIMESTAMP('2021-02-15 14:34:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578718 AND AD_Language='nl_NL' ; -- 2021-02-15T12:34:01.115Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578718,'nl_NL') ; -- 2021-02-15T12:35:56.415Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Über-/Unterzahlung', PrintName='Über-/Unterzahlung',Updated=TO_TIMESTAMP('2021-02-15 14:35:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1819 AND AD_Language='de_CH' ; -- 2021-02-15T12:35:56.416Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1819,'de_CH') ; -- 2021-02-15T12:36:10.437Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Über-/Unterzahlung', PrintName='Über-/Unterzahlung',Updated=TO_TIMESTAMP('2021-02-15 14:36:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1819 AND AD_Language='nl_NL' ; -- 2021-02-15T12:36:10.438Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1819,'nl_NL') ; -- 2021-02-15T12:36:15.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Über-/Unterzahlung', PrintName='Über-/Unterzahlung',Updated=TO_TIMESTAMP('2021-02-15 14:36:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1819 AND AD_Language='de_DE' ; -- 2021-02-15T12:36:15.221Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1819,'de_DE') ; -- 2021-02-15T12:36:15.225Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(1819,'de_DE') ; -- 2021-02-15T12:36:15.227Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='OverUnderAmt', Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.' WHERE AD_Element_ID=1819 ; -- 2021-02-15T12:36:15.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='OverUnderAmt', Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.', AD_Element_ID=1819 WHERE UPPER(ColumnName)='OVERUNDERAMT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:36:15.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='OverUnderAmt', Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.' WHERE AD_Element_ID=1819 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:36:15.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=1819) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 1819) ; -- 2021-02-15T12:36:15.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Über-/Unterzahlung', Name='Über-/Unterzahlung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=1819) ; -- 2021-02-15T12:36:15.243Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.', CommitWarning = NULL WHERE AD_Element_ID = 1819 ; -- 2021-02-15T12:36:15.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Über-/Unterzahlung', Description='Over-Payment (unallocated) or Under-Payment (partial payment) Amount', Help='Overpayments (negative) are unallocated amounts and allow you to receive money for more than the particular invoice. Underpayments (positive) is a partial payment for the invoice. You do not write off the unpaid amount.' WHERE AD_Element_ID = 1819 ; -- 2021-02-15T12:36:15.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Über-/Unterzahlung', Description = 'Over-Payment (unallocated) or Under-Payment (partial payment) Amount', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 1819 ; -- 2021-02-15T12:48:46.515Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:48:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578692 AND AD_Language='de_CH' ; -- 2021-02-15T12:48:46.516Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578692,'de_CH') ; -- 2021-02-15T12:48:48.918Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:48:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578692 AND AD_Language='de_DE' ; -- 2021-02-15T12:48:48.919Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578692,'de_DE') ; -- 2021-02-15T12:48:48.926Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578692,'de_DE') ; -- 2021-02-15T12:48:48.926Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='PaymentDiscountAmt', Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578692 ; -- 2021-02-15T12:48:48.927Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='PaymentDiscountAmt', Name='Skonto', Description=NULL, Help=NULL, AD_Element_ID=578692 WHERE UPPER(ColumnName)='PAYMENTDISCOUNTAMT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:48:48.928Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='PaymentDiscountAmt', Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID=578692 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:48:48.929Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Skonto', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578692) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578692) ; -- 2021-02-15T12:48:48.946Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Skonto', Name='Skonto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578692) ; -- 2021-02-15T12:48:48.947Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Skonto', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578692 ; -- 2021-02-15T12:48:48.948Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Skonto', Description=NULL, Help=NULL WHERE AD_Element_ID = 578692 ; -- 2021-02-15T12:48:48.949Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Skonto', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578692 ; -- 2021-02-15T12:48:52.781Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Skonto', PrintName='Skonto',Updated=TO_TIMESTAMP('2021-02-15 14:48:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578692 AND AD_Language='nl_NL' ; -- 2021-02-15T12:48:52.782Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578692,'nl_NL') ; -- 2021-02-15T12:49:17.372Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceunternehmen', PrintName='Serviceunternehmen',Updated=TO_TIMESTAMP('2021-02-15 14:49:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578696 AND AD_Language='de_CH' ; -- 2021-02-15T12:49:17.373Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578696,'de_CH') ; -- 2021-02-15T12:49:20.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceunternehmen', PrintName='Serviceunternehmen',Updated=TO_TIMESTAMP('2021-02-15 14:49:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578696 AND AD_Language='de_DE' ; -- 2021-02-15T12:49:20.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578696,'de_DE') ; -- 2021-02-15T12:49:20.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578696,'de_DE') ; -- 2021-02-15T12:49:20.309Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Service_BPartner_ID', Name='Serviceunternehmen', Description=NULL, Help=NULL WHERE AD_Element_ID=578696 ; -- 2021-02-15T12:49:20.309Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_BPartner_ID', Name='Serviceunternehmen', Description=NULL, Help=NULL, AD_Element_ID=578696 WHERE UPPER(ColumnName)='SERVICE_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:49:20.310Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_BPartner_ID', Name='Serviceunternehmen', Description=NULL, Help=NULL WHERE AD_Element_ID=578696 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:49:20.310Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Serviceunternehmen', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578696) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578696) ; -- 2021-02-15T12:49:20.321Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Serviceunternehmen', Name='Serviceunternehmen' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578696) ; -- 2021-02-15T12:49:20.322Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Serviceunternehmen', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578696 ; -- 2021-02-15T12:49:20.323Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Serviceunternehmen', Description=NULL, Help=NULL WHERE AD_Element_ID = 578696 ; -- 2021-02-15T12:49:20.323Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Serviceunternehmen', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578696 ; -- 2021-02-15T12:49:28.344Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceunternehmen', PrintName='Serviceunternehmen',Updated=TO_TIMESTAMP('2021-02-15 14:49:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578696 AND AD_Language='nl_NL' ; -- 2021-02-15T12:49:28.345Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578696,'nl_NL') ; -- 2021-02-15T12:49:45.440Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnung', PrintName='Servicerechnung',Updated=TO_TIMESTAMP('2021-02-15 14:49:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578699 AND AD_Language='de_CH' ; -- 2021-02-15T12:49:45.440Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578699,'de_CH') ; -- 2021-02-15T12:49:48.702Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnung', PrintName='Servicerechnung',Updated=TO_TIMESTAMP('2021-02-15 14:49:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578699 AND AD_Language='de_DE' ; -- 2021-02-15T12:49:48.702Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578699,'de_DE') ; -- 2021-02-15T12:49:48.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578699,'de_DE') ; -- 2021-02-15T12:49:48.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Service_Fee_Invoice_ID', Name='Servicerechnung', Description=NULL, Help=NULL WHERE AD_Element_ID=578699 ; -- 2021-02-15T12:49:48.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Fee_Invoice_ID', Name='Servicerechnung', Description=NULL, Help=NULL, AD_Element_ID=578699 WHERE UPPER(ColumnName)='SERVICE_FEE_INVOICE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:49:48.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Fee_Invoice_ID', Name='Servicerechnung', Description=NULL, Help=NULL WHERE AD_Element_ID=578699 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:49:48.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Servicerechnung', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578699) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578699) ; -- 2021-02-15T12:49:48.717Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Servicerechnung', Name='Servicerechnung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578699) ; -- 2021-02-15T12:49:48.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Servicerechnung', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578699 ; -- 2021-02-15T12:49:48.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Servicerechnung', Description=NULL, Help=NULL WHERE AD_Element_ID = 578699 ; -- 2021-02-15T12:49:48.720Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Servicerechnung', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578699 ; -- 2021-02-15T12:49:52.034Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Servicerechnung', PrintName='Servicerechnung',Updated=TO_TIMESTAMP('2021-02-15 14:49:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578699 AND AD_Language='nl_NL' ; -- 2021-02-15T12:49:52.034Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578699,'nl_NL') ; -- 2021-02-15T12:50:06.364Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceprodukt', PrintName='Serviceprodukt',Updated=TO_TIMESTAMP('2021-02-15 14:50:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578697 AND AD_Language='de_CH' ; -- 2021-02-15T12:50:06.365Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578697,'de_CH') ; -- 2021-02-15T12:50:10.076Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceprodukt', PrintName='Serviceprodukt',Updated=TO_TIMESTAMP('2021-02-15 14:50:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578697 AND AD_Language='de_DE' ; -- 2021-02-15T12:50:10.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578697,'de_DE') ; -- 2021-02-15T12:50:10.085Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578697,'de_DE') ; -- 2021-02-15T12:50:10.086Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Service_Product_ID', Name='Serviceprodukt', Description=NULL, Help=NULL WHERE AD_Element_ID=578697 ; -- 2021-02-15T12:50:10.087Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Product_ID', Name='Serviceprodukt', Description=NULL, Help=NULL, AD_Element_ID=578697 WHERE UPPER(ColumnName)='SERVICE_PRODUCT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:50:10.088Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Product_ID', Name='Serviceprodukt', Description=NULL, Help=NULL WHERE AD_Element_ID=578697 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:50:10.089Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Serviceprodukt', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578697) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578697) ; -- 2021-02-15T12:50:10.109Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Serviceprodukt', Name='Serviceprodukt' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578697) ; -- 2021-02-15T12:50:10.110Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Serviceprodukt', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578697 ; -- 2021-02-15T12:50:10.112Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Serviceprodukt', Description=NULL, Help=NULL WHERE AD_Element_ID = 578697 ; -- 2021-02-15T12:50:10.113Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Serviceprodukt', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578697 ; -- 2021-02-15T12:50:13.017Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Serviceprodukt', PrintName='Serviceprodukt',Updated=TO_TIMESTAMP('2021-02-15 14:50:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578697 AND AD_Language='nl_NL' ; -- 2021-02-15T12:50:13.018Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578697,'nl_NL') ; -- 2021-02-15T12:50:30.012Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer', PrintName='Service-Steuer',Updated=TO_TIMESTAMP('2021-02-15 14:50:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578698 AND AD_Language='de_CH' ; -- 2021-02-15T12:50:30.013Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578698,'de_CH') ; -- 2021-02-15T12:50:32.870Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer', PrintName='Service-Steuer',Updated=TO_TIMESTAMP('2021-02-15 14:50:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578698 AND AD_Language='de_DE' ; -- 2021-02-15T12:50:32.871Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578698,'de_DE') ; -- 2021-02-15T12:50:32.874Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578698,'de_DE') ; -- 2021-02-15T12:50:32.875Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='Service_Tax_ID', Name='Service-Steuer', Description=NULL, Help=NULL WHERE AD_Element_ID=578698 ; -- 2021-02-15T12:50:32.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Tax_ID', Name='Service-Steuer', Description=NULL, Help=NULL, AD_Element_ID=578698 WHERE UPPER(ColumnName)='SERVICE_TAX_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-15T12:50:32.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='Service_Tax_ID', Name='Service-Steuer', Description=NULL, Help=NULL WHERE AD_Element_ID=578698 AND IsCentrallyMaintained='Y' ; -- 2021-02-15T12:50:32.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Service-Steuer', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578698) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578698) ; -- 2021-02-15T12:50:32.886Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Service-Steuer', Name='Service-Steuer' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578698) ; -- 2021-02-15T12:50:32.887Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Service-Steuer', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578698 ; -- 2021-02-15T12:50:32.888Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Service-Steuer', Description=NULL, Help=NULL WHERE AD_Element_ID = 578698 ; -- 2021-02-15T12:50:32.888Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Service-Steuer', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578698 ; -- 2021-02-15T12:50:35.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Service-Steuer', PrintName='Service-Steuer',Updated=TO_TIMESTAMP('2021-02-15 14:50:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578698 AND AD_Language='nl_NL' ; -- 2021-02-15T12:50:35.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578698,'nl_NL') ; -- 2021-02-15T12:56:24.566Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576448 ; -- 2021-02-15T12:56:24.576Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576414 ; -- 2021-02-15T12:56:24.578Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576406 ; -- 2021-02-15T12:56:24.581Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576407 ; -- 2021-02-15T12:56:24.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576408 ; -- 2021-02-15T12:56:24.585Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2021-02-15 14:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576409 ; -- 2021-02-15T12:56:50.688Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576405 ; -- 2021-02-15T12:56:50.693Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576410 ; -- 2021-02-15T12:56:50.697Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576401 ; -- 2021-02-15T12:56:50.701Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576403 ; -- 2021-02-15T12:56:50.704Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576448 ; -- 2021-02-15T12:56:50.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576414 ; -- 2021-02-15T12:56:50.710Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576406 ; -- 2021-02-15T12:56:50.713Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576407 ; -- 2021-02-15T12:56:50.715Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576408 ; -- 2021-02-15T12:56:50.717Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2021-02-15 14:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576409 ; -- 2021-02-15T12:58:03.538Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=10,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572558 ; -- 2021-02-15T12:58:03.542Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', IsUpdateable='N', SelectionColumnSeqNo=20,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572564 ; -- 2021-02-15T12:58:03.545Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=30,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572575 ; -- 2021-02-15T12:58:03.547Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=40,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572574 ; -- 2021-02-15T12:58:03.548Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572582 ; -- 2021-02-15T12:58:03.550Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572613 ; -- 2021-02-15T12:58:03.551Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=70,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572581 ; -- 2021-02-15T12:58:03.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=80,Updated=TO_TIMESTAMP('2021-02-15 14:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572623 ; -- 2021-02-15T13:02:55.377Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET DisplayLogic='1=0', IsReadOnly='Y',Updated=TO_TIMESTAMP('2021-02-15 15:02:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=628784 ; -- 2021-02-15T13:03:29.765Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET DisplayLogic='1=0', IsReadOnly='Y',Updated=TO_TIMESTAMP('2021-02-15 15:03:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=628815 ;
the_stack
-- 登陆用户表 DROP TABLE IF EXISTS `c_user`; CREATE TABLE `c_user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `loginname` VARCHAR(100) NOT NULL COMMENT '登陆账户', `loginpw` VARCHAR(100) NOT NULL COMMENT '登陆密码', `nickname` VARCHAR(100) DEFAULT NULL COMMENT '昵称', `email` VARCHAR(50) NOT NULL COMMENT '邮箱', `mobile` VARCHAR(20) DEFAULT NULL COMMENT '手机号', `depart_ment` VARCHAR(200) DEFAULT NULL COMMENT '部门名称', `role_code` VARCHAR(100) DEFAULT NULL COMMENT '角色id', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态 1正常,0禁止登陆,-1删除', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='登陆用户表'; -- 菜单目录表 DROP TABLE IF EXISTS `c_menu`; CREATE TABLE `c_menu` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `code` VARCHAR(10) DEFAULT NULL COMMENT '编号', `fathercode` VARCHAR(10) DEFAULT '-1' COMMENT '父类编号', `name` VARCHAR(100) DEFAULT NULL COMMENT '目录名称', `menu_url` VARCHAR(200) DEFAULT '#' COMMENT '目录路径', `menu_image` VARCHAR(200) DEFAULT '#' COMMENT '图片', `level` INT(5) DEFAULT '-1' COMMENT '目录等级', `sort` INT(5) DEFAULT '0' COMMENT '目录排序', `isleaf` int(2) DEFAULT NULL COMMENT '是否叶子 1是 0不是', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `type` INT(5) DEFAULT '1' COMMENT '类型', `state` INT(5) DEFAULT '1' COMMENT '状态', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHARSET=utf8 COMMENT='菜单目录表'; -- 角色表 DROP TABLE IF EXISTS `c_role`; CREATE TABLE `c_role` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `role_code` VARCHAR(100) DEFAULT NULL COMMENT '角色编号', `role_name` VARCHAR(100) DEFAULT NULL COMMENT '角色名称', `sort` INT(5) DEFAULT '0' COMMENT '角色排序', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `type` INT(5) DEFAULT '1' COMMENT '类型', `state` INT(5) DEFAULT '1' COMMENT '状态', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='角色表'; -- 角色菜单关联表 DROP TABLE IF EXISTS `c_role_menu`; CREATE TABLE `c_role_menu` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `role_code` VARCHAR(100) DEFAULT NULL COMMENT '角色id', `menu_code` VARCHAR(100) DEFAULT NULL COMMENT '菜单code', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='角色菜单关联表'; -- 数据权限控制表 DROP TABLE IF EXISTS `c_data_authority`; CREATE TABLE `c_data_authority` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `object_table` char(30) DEFAULT null COMMENT '目标表', `object_id` bigint(20) DEFAULT '-1' COMMENT '目标id', `owner_level` int(2) DEFAULT '1' COMMENT '权限控制类型(1:人2:部门3:角色组)', `owner_id` bigint(20) DEFAULT '-1' COMMENT '所有者id', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `operator` bigint(20) DEFAULT '-1' COMMENT '操作人', `type` int(5) DEFAULT '1' COMMENT '类型(1:权限所有人 2:权限共享者)', `iscancel` int(2) DEFAULT '0' COMMENT '是否作废', `remark` varchar(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据权限控制表'; -- 数据源信息表 DROP TABLE IF EXISTS `b_data_source`; CREATE TABLE `b_data_source` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `name` VARCHAR(100) NOT NULL COMMENT '数据源名称', `data_type` VARCHAR(100) NOT NULL COMMENT '数据源类型', `creater` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', `create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态', `iscancel` INT(5) NOT NULL DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据源信息表'; -- 数据源字段信息表 DROP TABLE IF EXISTS `b_data_source_plugin`; CREATE TABLE `b_data_source_plugin` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `source_id` BIGINT(20) NOT NULL COMMENT '数据源id', `field_name` VARCHAR(100) DEFAULT NULL COMMENT '页面字段名称', `field_code` VARCHAR(100) DEFAULT NULL COMMENT '字段code', `field_value` VARCHAR(200) DEFAULT NULL COMMENT '页面传入的实际值', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据源字段信息表'; -- 数据表组信息表 DROP TABLE IF EXISTS `b_data_table`; CREATE TABLE `b_data_table` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `source_id` BIGINT(20) NOT NULL COMMENT '数据源id', `data_type` VARCHAR(20) NOT NULL COMMENT '数据源类型(继承)', `bank_name` VARCHAR(500) DEFAULT NULL COMMENT '结构名、库名、前缀名、分组名', `table_name` VARCHAR(500) NOT NULL COMMENT '表名(多个,隔开)', `creater` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', `create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态', `iscancel` INT(2) NOT NULL DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据表组信息表'; -- 节点信息表 DROP TABLE IF EXISTS `b_nodes`; CREATE TABLE `b_nodes` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `node_id` VARCHAR(100) DEFAULT NULL COMMENT '节点id', `machine_name` VARCHAR(100) DEFAULT NULL COMMENT '机器名', `ip_address` VARCHAR(100) DEFAULT NULL COMMENT 'ip地址', `pid_number` VARCHAR(100) DEFAULT NULL COMMENT '进程号', `heart_beat_time` VARCHAR(100) DEFAULT '0000-00-00 00:00:00' COMMENT '心跳时间', `state` INT(5) DEFAULT '-1' COMMENT '状态 1:在线 -1:离线', `node_type` VARCHAR(20) DEFAULT NULL COMMENT '节点类型1预配置2主动注册 先隐藏', `task_push_state` VARCHAR(20) DEFAULT NULL COMMENT '节点任务推送状态', `creater` BIGINT(20) DEFAULT '-1' COMMENT '创建人', `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `node_id` (`node_id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='节点信息表'; -- 节点所有权控制表 DROP TABLE IF EXISTS `b_nodes_owner`; CREATE TABLE `b_nodes_owner` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `node_id` bigint(20) DEFAULT '-1' COMMENT '任务id', `owner_level` int(2) DEFAULT '1' COMMENT '权限控制类型(1:人2:部门3:角色组)', `owner_id` bigint(20) DEFAULT '-1' COMMENT '所有者id', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `operator` bigint(20) DEFAULT '-1' COMMENT '操作人', `type` int(5) DEFAULT '1' COMMENT '类型(1:权限所有人 2:权限共享者)', `iscancel` int(2) DEFAULT '0' COMMENT '是否作废', `remark` varchar(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='节点所有权控制表'; -- 告警字段字典 DROP TABLE IF EXISTS `d_alarm_plugin`; CREATE TABLE `d_alarm_plugin` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `alert_type` VARCHAR(100) NOT NULL COMMENT '告警策略', `field_name` VARCHAR(100) DEFAULT NULL COMMENT '页面字段名称', `field_code` VARCHAR(100) DEFAULT NULL COMMENT '字段实际名', `field_order` INT(5) DEFAULT NULL COMMENT '页面展示顺序', `field_type` VARCHAR(50) DEFAULT 'TEXT' COMMENT '页面字段类型', `field_type_key` VARCHAR(50) DEFAULT NULL COMMENT '页面字段类型对应字典', `state` INT(5) DEFAULT '1' COMMENT '状态', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='告警字段字典'; -- 数据源数据字典 DROP TABLE IF EXISTS `d_data_source_plugin`; CREATE TABLE `d_data_source_plugin` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `source_type` VARCHAR(20) NOT NULL COMMENT '数据源类型枚举', `field_name` VARCHAR(100) DEFAULT NULL COMMENT '页面字段名称', `field_code` VARCHAR(100) DEFAULT NULL COMMENT '字段英文名', `field_order` INT(5) DEFAULT NULL COMMENT '页面展示顺序', `field_type` VARCHAR(20) DEFAULT 'TEXT' COMMENT '页面字段类型', `field_type_key` VARCHAR(50) DEFAULT NULL COMMENT '页面字段类型对应字典', `field_validate` VARCHAR(50) DEFAULT NULL COMMENT '页面字段对应正则校验', `field_explain` VARCHAR(200) DEFAULT NULL COMMENT '页面字段对应校验说明', `state` INT(5) DEFAULT '1' COMMENT '状态1启用 -1禁用', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注字段', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据源数据字典'; -- 数据字典表 DROP TABLE IF EXISTS `d_dictionary`; CREATE TABLE `d_dictionary` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `code` VARCHAR(20) NOT NULL COMMENT '编码', `name` VARCHAR(100) NOT NULL COMMENT '名称', `parentcode` CHAR(20) NOT NULL DEFAULT '-1' COMMENT '父类编码', `level` INT(2) NOT NULL DEFAULT '1' COMMENT '树形等级', `dictype` CHAR(20) NOT NULL COMMENT '字典类别', `state` INT(2) NOT NULL DEFAULT '1' COMMENT '数据状态1正常-1作废0警告', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='数据字典表'; -- 公共数据源配置表 DROP TABLE IF EXISTS `b_public_data_source`; CREATE TABLE `b_public_data_source` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `code` char(35) NOT NULL COMMENT '数据源编码', `name` varchar(50) DEFAULT NULL COMMENT '数据源名称', `xml_text` text COMMENT '数据源xml文本', `json_text` text COMMENT '数据源json文本', `declares` varchar(200) DEFAULT NULL COMMENT '数据源说明', `creator` bigint(20) DEFAULT NULL COMMENT '创建人', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `state` int(5) NOT NULL DEFAULT '1' COMMENT '状态', `type` int(5) NOT NULL DEFAULT '1' COMMENT '类型', `ispush` int(5) DEFAULT '0' COMMENT '推送状态(0:新增 -1:回收 1:已推送)', `iscancel` int(2) DEFAULT '0' COMMENT '是否作废', `remark` varchar(500) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `UNIQUE_CODE` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8 COMMENT='公共数据源配置表'; -- 同步任务表 DROP TABLE IF EXISTS `job_tasks`; CREATE TABLE `job_tasks` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_name` VARCHAR(100) NOT NULL COMMENT '任务名称', `java_class_name` VARCHAR(200) DEFAULT NULL COMMENT '自定义处理类包路径和类名', `java_class_content` VARCHAR(200) DEFAULT NULL COMMENT '自定义处理类文件路径', `job_state` VARCHAR(100) NOT NULL DEFAULT 'NEW' COMMENT '任务状态', `job_type` int(2) DEFAULT '1' COMMENT '任务类型', `source_consume_adt` VARCHAR(100) NOT NULL COMMENT '来源数据-消费插件', `source_convert_adt` VARCHAR(100) DEFAULT NULL COMMENT '来源数据-消费转换插件', `source_data_source_id` BIGINT(20) NOT NULL COMMENT '来源数据-元数据表数据源id', `source_data_tables_id` BIGINT(20) NOT NULL COMMENT '来源数据-元数据表分组id', `source_data_tables_name` VARCHAR(800) DEFAULT NULL COMMENT '来源数据-元数据表分组名称', `source_data_id` BIGINT(20) NOT NULL COMMENT '来源数据-同步数据源id(kafka\\cancl)', `source_data_name` VARCHAR(100) DEFAULT NULL COMMENT '来源数据-同步数据源名称', `target_load_adt` VARCHAR(100) NOT NULL COMMENT '目标数据-载入插件', `target_data_source_id` BIGINT(20) NOT NULL COMMENT '目标数据-数据源id', `target_data_tables_id` BIGINT(20) NOT NULL COMMENT '目标数据-载入数据表分组id', `target_data_tables_name` VARCHAR(800) DEFAULT NULL COMMENT '目标数据-载入数据表分组名称', `job_xml_text` text DEFAULT NULL COMMENT '任务-xml文本', `job_json_text` text DEFAULT NULL COMMENT '任务-json文本', `creater` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', `create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态', `type` int(5) DEFAULT '1' COMMENT '类型', `iscancel` INT(2) NOT NULL DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='同步任务表'; -- 任务所有权控制表 DROP TABLE IF EXISTS `job_tasks_owner`; CREATE TABLE `job_tasks_owner` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_id` bigint(20) DEFAULT '-1' COMMENT '任务id', `owner_level` int(2) DEFAULT '1' COMMENT '权限控制类型(1:人2:部门3:角色组)', `owner_id` bigint(20) DEFAULT '-1' COMMENT '所有者id', `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `operator` bigint(20) DEFAULT '-1' COMMENT '操作人', `type` int(5) DEFAULT '1' COMMENT '类型(1:权限所有人 2:权限共享者)', `iscancel` int(2) DEFAULT '0' COMMENT '是否作废', `remark` varchar(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务所有权控制表'; -- 任务节点分发表 DROP TABLE IF EXISTS `job_task_nodes`; CREATE TABLE `job_task_nodes` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_task_id` bigint(20) NOT NULL COMMENT '任务id', `node_id` varchar(100) NOT NULL COMMENT '节点id', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务节点分发表'; -- 任务数据表对照关系表 DROP TABLE IF EXISTS `job_tasks_table`; CREATE TABLE `job_tasks_table` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_task_id` BIGINT(20) NOT NULL COMMENT '任务id', `ignore_target_case` INT(2) NOT NULL DEFAULT '0' COMMENT '忽略目标端大小写', `force_matched` INT(2) NOT NULL DEFAULT '1' COMMENT '强制目标端字段和源端字段一致', `direct_map_table` INT(2) NOT NULL DEFAULT '0' COMMENT '直接映射表,不进行表字段映射配置', `source_table_name` VARCHAR(200) NOT NULL COMMENT '来源数据-数据表名-记录全名', `target_table_name` VARCHAR(200) NOT NULL COMMENT '目标数据-数据表名-记录全名', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务数据表对照关系表'; -- 任务数据字段对照关系表 DROP TABLE IF EXISTS `job_tasks_field`; CREATE TABLE `job_tasks_field` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_task_id` BIGINT(20) NOT NULL COMMENT '任务id', `job_tasks_table_id` BIGINT(20) NOT NULL COMMENT '任务表对照关系id', `source_table_name` VARCHAR(200) NOT NULL COMMENT '来源数据-数据表名-记录全名', `source_table_field` VARCHAR(200) NOT NULL COMMENT '来源数据-数据表字段名称', `target_table_name` VARCHAR(200) NOT NULL COMMENT '目标数据-数据表名-记录全名', `target_table_field` VARCHAR(200) NOT NULL COMMENT '目标字段-数据表字段名称', `sort_order` INT(10) DEFAULT '-1' COMMENT '顺序,暂不启用', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务数据字段对照关系表'; -- 任务与人员对照关系表 DROP TABLE IF EXISTS `job_tasks_user`; CREATE TABLE `job_tasks_user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_task_id` BIGINT(20) NOT NULL COMMENT '任务id', `user_id` BIGINT(20) NOT NULL COMMENT '用户id', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务与人员对照关系表'; -- 任务泳道进度表 DROP TABLE IF EXISTS `mr_job_tasks_schedule`; CREATE TABLE `mr_job_tasks_schedule` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_id` VARCHAR(100) DEFAULT NULL COMMENT '任务id', `job_name` VARCHAR(100) DEFAULT NULL COMMENT '任务名称', `swimlane_id` VARCHAR(100) DEFAULT NULL COMMENT '任务泳道', `node_id` VARCHAR(200) DEFAULT NULL COMMENT '节点id', `node_id_ip` VARCHAR(200) DEFAULT NULL COMMENT '节点id[ip]', `schema_table` VARCHAR(200) DEFAULT NULL COMMENT '数据表', `register_time` DATETIME DEFAULT NULL COMMENT '注册时间', `heart_beat_date` DATETIME DEFAULT NULL COMMENT '最后心跳时间', `alarm_number` BIGINT(20) DEFAULT NULL COMMENT '告警次数', `last_checked_time` DATETIME DEFAULT NULL COMMENT '最近告警检查时间', `insert_success` BIGINT(20) DEFAULT NULL COMMENT '插入次数success', `insert_failure` BIGINT(20) DEFAULT NULL COMMENT '插入次数failure', `update_success` BIGINT(20) DEFAULT NULL COMMENT '更新次数success', `update_failure` BIGINT(20) DEFAULT NULL COMMENT '更新次数failure', `delete_success` BIGINT(20) DEFAULT NULL COMMENT '删除次数success', `delete_failure` BIGINT(20) DEFAULT NULL COMMENT '删除次数failure', `dispose_schedule` VARCHAR(500) DEFAULT NULL COMMENT '处理进度', `last_loaded_data_time` DATETIME DEFAULT NULL COMMENT '最近导入数据时间', `last_loaded_system_time` DATETIME DEFAULT NULL COMMENT '最近导入系统时间', `create_user_id` BIGINT(20) DEFAULT '-1' COMMENT '创建人', `update_user_id` BIGINT(20) DEFAULT '-1' COMMENT '修改人', `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `state` INT(5) DEFAULT '1' COMMENT '状态', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `partition_day` DATE DEFAULT NULL COMMENT '预留时间分区字段', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务泳道进度表'; -- 任务泳道表名实时监控表 DROP TABLE IF EXISTS `mr_job_tasks_monitor`; CREATE TABLE `mr_job_tasks_monitor` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `job_id` VARCHAR(100) DEFAULT NULL COMMENT '任务id', `node_id` VARCHAR(100) DEFAULT NULL COMMENT '节点id', `node_id_ip` VARCHAR(200) DEFAULT NULL COMMENT '节点id[ip]', `swimlane_id` VARCHAR(100) DEFAULT NULL COMMENT '任务泳道', `schema_table` varchar(200) DEFAULT NULL COMMENT '表全名', `monitor_date` DATETIME DEFAULT NULL COMMENT '实时监控时间', `monitor_ymd` DATE DEFAULT NULL COMMENT '实时监控年月日', `monitor_hour` INT(5) DEFAULT NULL COMMENT '实时监控小时(24h)', `monitor_minute` INT(5) DEFAULT NULL COMMENT '实时监控分', `monitor_second` INT(5) DEFAULT NULL COMMENT '实时监控秒', `insert_succes` BIGINT(20) DEFAULT NULL COMMENT '插入成功', `insert_failure` BIGINT(20) DEFAULT NULL COMMENT '插入失败', `update_succes` BIGINT(20) DEFAULT NULL COMMENT '更新成功', `update_failure` BIGINT(20) DEFAULT NULL COMMENT '更新失败', `delete_succes` BIGINT(20) DEFAULT NULL COMMENT '删除成功', `delete_failure` BIGINT(20) DEFAULT NULL COMMENT '删除失败', `alarm_number` BIGINT(20) DEFAULT NULL COMMENT '告警次数', `partition_day` DATE DEFAULT NULL COMMENT '预留时间分区字段', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务泳道表名实时监控表'; -- 日志信息表 DROP TABLE IF EXISTS `mr_log_monitor`; CREATE TABLE `mr_log_monitor` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `node_id` VARCHAR(100) DEFAULT NULL COMMENT '节点id', `job_id` VARCHAR(100) DEFAULT NULL COMMENT '任务id', `job_name` VARCHAR(100) DEFAULT NULL COMMENT '任务标题', `ip_adress` VARCHAR(20) DEFAULT NULL COMMENT 'IP地址', `log_date` DATETIME DEFAULT NULL COMMENT '日志时间', `log_title` VARCHAR(200) DEFAULT NULL COMMENT '日志标题', `log_content` text DEFAULT NULL COMMENT '日志内容', `create_user_id` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', `update_user_id` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '修改人', `create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态', `iscancel` INT(2) NOT NULL DEFAULT '0' COMMENT '是否作废', `partition_day` DATE DEFAULT NULL COMMENT '预留分区字段', `remark` VARCHAR(200) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='日志信息表'; -- 节点任务监控表 DROP TABLE IF EXISTS `mr_nodes_schedule`; CREATE TABLE `mr_nodes_schedule` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `node_id` VARCHAR(100) DEFAULT NULL COMMENT '节点id', `computer_name` VARCHAR(100) DEFAULT NULL COMMENT '机器名', `ip_address` VARCHAR(100) DEFAULT NULL COMMENT 'ip_address', `heart_beat_date` DATETIME DEFAULT NULL COMMENT '心跳时间', `process_number` VARCHAR(100) DEFAULT NULL COMMENT '进程号', `job_id_json` VARCHAR(1000) DEFAULT NULL COMMENT '任务json信息', `job_name_json` VARCHAR(2000) DEFAULT NULL COMMENT '任务json-name信息', `health_level` VARCHAR(100) DEFAULT NULL COMMENT '节点健康级别', `health_level_desc` text DEFAULT NULL COMMENT '节点健康级别描述', `create_user_id` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', `update_user_id` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '修改人', `create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `state` INT(5) NOT NULL DEFAULT '1' COMMENT '状态', `iscancel` INT(5) NOT NULL DEFAULT '0' COMMENT '是否作废', `partition_day` DATE DEFAULT NULL COMMENT '预留时间分区字段', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='节点任务监控表'; -- 节点任务实时监控表 DROP TABLE IF EXISTS `mr_nodes_monitor`; CREATE TABLE `mr_nodes_monitor` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `node_id` VARCHAR(100) DEFAULT NULL COMMENT '节点id', `monitor_date` DATETIME DEFAULT NULL COMMENT '实时监控时间', `monitor_ymd` DATE DEFAULT NULL COMMENT '实时监控年月日', `monitor_hour` INT(2) DEFAULT NULL COMMENT '实时监控小时', `monitor_minute` INT(5) DEFAULT NULL COMMENT '实时监控分', `monitor_second` INT(10) DEFAULT NULL COMMENT '实时监控秒', `monitor_tps` INT(20) DEFAULT NULL COMMENT '并发数', `monitor_alarm` INT(20) DEFAULT NULL COMMENT '告警次数', `partition_day` DATE DEFAULT NULL COMMENT '预留时间分区字段', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='节点任务实时监控表'; -- 告警配置表 DROP TABLE IF EXISTS `s_alarm`; CREATE TABLE `s_alarm` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `alarm_type` VARCHAR(100) DEFAULT NULL COMMENT '告警方式', `create_user_id` BIGINT(20) DEFAULT '-1' COMMENT '创建人', `update_user_id` BIGINT(20) DEFAULT '-1' COMMENT '修改人', `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `state` INT(5) DEFAULT '1' COMMENT '状态', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='告警配置表'; -- 告警配置策略内容表 DROP TABLE IF EXISTS `s_alarm_plugin`; CREATE TABLE `s_alarm_plugin` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `alarm_id` BIGINT(20) DEFAULT NULL COMMENT '告警策略id', `alarm_type` VARCHAR(100) DEFAULT NULL COMMENT '告警方式', `plugin_code` VARCHAR(100) DEFAULT NULL COMMENT '字段code', `plugin_name` VARCHAR(100) DEFAULT NULL COMMENT '字段名称', `plugin_value` VARCHAR(200) DEFAULT NULL COMMENT '字段内容', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='告警配置策略内容表'; -- 告警用户关联表 DROP TABLE IF EXISTS `s_alarm_user`; CREATE TABLE `s_alarm_user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `alarm_id` BIGINT(20) NOT NULL COMMENT '告警信息表id', `user_id` BIGINT(20) NOT NULL COMMENT '用户id', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='告警用户关联表'; -- 日志级别表 DROP TABLE IF EXISTS `s_log_grade`; CREATE TABLE `s_log_grade` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `log_level` VARCHAR(20) DEFAULT NULL COMMENT '日志级别', `create_user_id` BIGINT(20) DEFAULT '-1' COMMENT '创建人', `update_user_id` BIGINT(20) DEFAULT '-1' COMMENT '修改人', `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间', `state` INT(5) DEFAULT '1' COMMENT '状态', `iscancel` INT(2) DEFAULT '0' COMMENT '是否作废', `remark` VARCHAR(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='日志级别表'; -- 任务权限操作类型表 2019-05-10 DROP TABLE IF EXISTS `d_control_type_plugin`; CREATE TABLE `d_control_type_plugin` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `alert_type` varchar(100) DEFAULT NULL COMMENT '告警策略', `field_name` varchar(100) DEFAULT NULL COMMENT '页面字段名称', `field_code` varchar(100) DEFAULT NULL COMMENT '字段实际名', `field_order` int(10) DEFAULT NULL COMMENT '页面展示顺序', `field_type` varchar(100) DEFAULT NULL COMMENT '页面字段类型', `field_type_key` varchar(100) DEFAULT NULL COMMENT '页面字段类型对应字典', `state` int(10) DEFAULT NULL COMMENT '状态', `iscancel` int(10) DEFAULT NULL COMMENT '是否删除', `remark` varchar(100) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='任务权限操作类型表'; -- 权限控制操作类型表 2019-05-10 DROP TABLE IF EXISTS `r_owner_control`; CREATE TABLE `r_owner_control` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `owner_type` int(10) DEFAULT NULL COMMENT '所有者权限类型(1:所有者 2.共享者 0:管理员).', `control_type_id` bigint(20) DEFAULT NULL COMMENT '操作类型id.', PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='权限控制操作类型表';
the_stack
-- 2019-09-25T11:14:51.144Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568868,2887,0,30,532,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:50','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:50','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:51.146Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568868 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:51.149Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:51.293Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568869,577116,0,11,532,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:51.294Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568869 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:51.296Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:51.447Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568870,577115,0,14,532,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:51.450Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568870 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:51.454Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:51.611Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568871,577114,0,30,532,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:51.615Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568871 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:51.619Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:51.740Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Product','ALTER TABLE public.I_Product ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:51.799Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Product','ALTER TABLE public.I_Product ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:51.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Product','ALTER TABLE public.I_Product ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:51.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Product','ALTER TABLE public.I_Product ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:52.095Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568872,2887,0,30,534,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:51','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:52.103Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568872 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:52.110Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:52.293Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568873,577116,0,11,534,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:52.295Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568873 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:52.297Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:52.425Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568874,577115,0,14,534,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:52.427Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568874 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:52.429Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:52.549Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568875,577114,0,30,534,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:52.551Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568875 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:52.553Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:52.675Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568876,543913,0,30,534,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:52.678Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568876 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:52.680Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:52.738Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ElementValue','ALTER TABLE public.I_ElementValue ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:52.780Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ElementValue','ALTER TABLE public.I_ElementValue ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:52.818Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ElementValue','ALTER TABLE public.I_ElementValue ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:52.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ElementValue','ALTER TABLE public.I_ElementValue ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:52.900Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ElementValue','ALTER TABLE public.I_ElementValue ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:53.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568877,2887,0,30,535,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:52','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:53.044Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568877 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:53.049Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:53.222Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568878,577116,0,11,535,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:53.226Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568878 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:53.230Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:53.404Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568879,577115,0,14,535,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:53.409Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568879 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:53.415Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:53.550Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568880,577114,0,30,535,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:53.557Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568880 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:53.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:53.713Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568881,543913,0,30,535,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:53','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:53.719Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568881 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:53.726Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:53.832Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ReportLine','ALTER TABLE public.I_ReportLine ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:53.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ReportLine','ALTER TABLE public.I_ReportLine ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:53.920Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ReportLine','ALTER TABLE public.I_ReportLine ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:53.962Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ReportLine','ALTER TABLE public.I_ReportLine ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:54.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_ReportLine','ALTER TABLE public.I_ReportLine ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:54.163Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568882,577116,0,11,572,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:54.171Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568882 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:54.183Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:54.370Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568883,577115,0,14,572,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:54.376Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568883 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:54.383Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:54.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568884,577114,0,30,572,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:54.568Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568884 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:54.574Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:54.733Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568885,543913,0,30,572,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:54.740Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568885 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:54.746Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:54.859Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Inventory','ALTER TABLE public.I_Inventory ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:54.889Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Inventory','ALTER TABLE public.I_Inventory ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:54.917Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Inventory','ALTER TABLE public.I_Inventory ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:54.945Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Inventory','ALTER TABLE public.I_Inventory ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:55.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568886,2887,0,30,591,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:54','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:55.125Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568886 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:55.130Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:55.320Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568887,577116,0,11,591,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:55.326Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568887 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:55.332Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:55.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568888,577115,0,14,591,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:55.498Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568888 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:55.503Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:55.675Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568889,577114,0,30,591,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:55.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568889 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:55.688Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:55.869Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568890,543913,0,30,591,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:55','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:55.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568890 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:55.883Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:55.993Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Order','ALTER TABLE public.I_Order ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:56.023Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Order','ALTER TABLE public.I_Order ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:56.051Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Order','ALTER TABLE public.I_Order ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:56.081Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Order','ALTER TABLE public.I_Order ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:56.113Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Order','ALTER TABLE public.I_Order ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:56.286Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568891,2887,0,30,597,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:56.291Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568891 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:56.297Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:56.459Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568892,577116,0,11,597,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:56.462Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568892 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:56.466Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:56.610Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568893,577115,0,14,597,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:56.613Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568893 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:56.616Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:56.764Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568894,577114,0,30,597,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:56.767Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568894 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:56.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:56.916Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568895,543913,0,30,597,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:56','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:56.924Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568895 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:56.932Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:56.979Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Payment','ALTER TABLE public.I_Payment ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:57.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Payment','ALTER TABLE public.I_Payment ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:57.035Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Payment','ALTER TABLE public.I_Payment ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:57.077Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Payment','ALTER TABLE public.I_Payment ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:57.106Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Payment','ALTER TABLE public.I_Payment ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:57.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568896,2887,0,30,598,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:57.250Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568896 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:57.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:57.438Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568897,577116,0,11,598,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:57.441Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568897 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:57.444Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:57.588Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568898,577115,0,14,598,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:57.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568898 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:57.594Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:57.721Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568899,577114,0,30,598,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:57.728Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568899 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:57.739Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:57.882Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568900,543913,0,30,598,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:57','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:57.889Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568900 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:57.895Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:57.997Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Invoice','ALTER TABLE public.I_Invoice ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:58.029Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Invoice','ALTER TABLE public.I_Invoice ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:58.069Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Invoice','ALTER TABLE public.I_Invoice ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:58.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Invoice','ALTER TABLE public.I_Invoice ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:58.148Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Invoice','ALTER TABLE public.I_Invoice ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:58.309Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568901,2887,0,30,599,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:58.312Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568901 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:58.315Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:58.477Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568902,577116,0,11,599,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:58.480Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568902 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:58.483Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:58.654Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568903,577115,0,14,599,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:58.662Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568903 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:58.666Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:58.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568904,577114,0,30,599,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:58.851Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568904 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:58.854Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:14:58.999Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568905,543913,0,30,599,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:14:58','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:59.005Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568905 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:59.013Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:14:59.080Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_GLJournal','ALTER TABLE public.I_GLJournal ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:14:59.114Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_GLJournal','ALTER TABLE public.I_GLJournal ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:14:59.144Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_GLJournal','ALTER TABLE public.I_GLJournal ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:14:59.171Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_GLJournal','ALTER TABLE public.I_GLJournal ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:14:59.216Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_GLJournal','ALTER TABLE public.I_GLJournal ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:14:59.457Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568906,2887,0,30,740,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:59.459Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568906 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:59.461Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:14:59.593Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568907,577116,0,11,740,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:59.597Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568907 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:59.603Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:14:59.784Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568908,577115,0,14,740,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:59.790Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568908 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:59.795Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:14:59.966Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568909,577114,0,30,740,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:14:59','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:14:59.972Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568909 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:14:59.978Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:00.157Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568910,543913,0,30,740,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:00.163Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568910 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:00.167Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:00.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_InOutLineConfirm','ALTER TABLE public.I_InOutLineConfirm ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:00.302Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_InOutLineConfirm','ALTER TABLE public.I_InOutLineConfirm ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:00.346Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_InOutLineConfirm','ALTER TABLE public.I_InOutLineConfirm ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:00.398Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_InOutLineConfirm','ALTER TABLE public.I_InOutLineConfirm ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:00.452Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_InOutLineConfirm','ALTER TABLE public.I_InOutLineConfirm ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:00.602Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568911,2887,0,30,53117,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:00.608Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568911 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:00.614Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:00.797Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568912,577116,0,11,53117,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:00.802Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568912 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:00.807Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:00.984Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568913,577115,0,14,53117,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:00','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:00.987Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568913 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:00.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:01.132Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568914,577114,0,30,53117,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:01.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568914 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:01.137Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:01.274Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568915,543913,0,30,53117,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:01.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568915 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:01.282Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:01.371Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_FAJournal','ALTER TABLE public.I_FAJournal ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:01.408Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_FAJournal','ALTER TABLE public.I_FAJournal ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:01.436Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_FAJournal','ALTER TABLE public.I_FAJournal ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:01.464Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_FAJournal','ALTER TABLE public.I_FAJournal ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:01.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_FAJournal','ALTER TABLE public.I_FAJournal ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:01.666Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568916,2887,0,30,53173,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:01.674Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568916 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:01.679Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:01.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568917,577116,0,11,53173,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:01.860Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568917 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:01.863Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:02.026Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568918,577115,0,14,53173,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:01','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:02.033Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568918 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:02.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:02.214Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568919,577114,0,30,53173,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:02.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568919 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:02.225Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:02.390Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568920,543913,0,30,53173,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:02.396Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568920 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:02.401Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:02.530Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_PriceList','ALTER TABLE public.I_PriceList ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:02.558Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_PriceList','ALTER TABLE public.I_PriceList ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:02.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_PriceList','ALTER TABLE public.I_PriceList ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:02.627Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_PriceList','ALTER TABLE public.I_PriceList ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:02.659Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_PriceList','ALTER TABLE public.I_PriceList ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:02.798Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568921,2887,0,30,540840,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:02.804Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568921 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:02.810Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:02.970Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568922,577116,0,11,540840,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:02.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568922 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:02.981Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:03.161Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568923,577115,0,14,540840,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:03.165Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568923 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:03.169Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:03.351Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568924,577114,0,30,540840,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:03.355Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568924 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:03.362Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:03.550Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568925,543913,0,30,540840,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:03.556Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568925 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:03.561Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:03.632Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Request','ALTER TABLE public.I_Request ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:03.663Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Request','ALTER TABLE public.I_Request ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:03.702Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Request','ALTER TABLE public.I_Request ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:03.742Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Request','ALTER TABLE public.I_Request ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:03.785Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Request','ALTER TABLE public.I_Request ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:03.968Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568926,2887,0,30,540841,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:03','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:03.973Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568926 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:03.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:04.149Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568927,577116,0,11,540841,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:04.156Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568927 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:04.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:04.329Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568928,577115,0,14,540841,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:04.335Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568928 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:04.342Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:04.488Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568929,577114,0,30,540841,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:04.494Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568929 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:04.499Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:04.603Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_User','ALTER TABLE public.I_User ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:04.641Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_User','ALTER TABLE public.I_User ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:04.673Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_User','ALTER TABLE public.I_User ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:04.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_User','ALTER TABLE public.I_User ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:04.846Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568930,2887,0,30,540836,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','de.metas.contracts',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:04.851Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568930 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:04.857Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:05.038Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568931,577116,0,11,540836,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,'N','','de.metas.contracts',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:05.039Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568931 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:05.041Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:05.190Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568932,577115,0,14,540836,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.contracts',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:05.193Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568932 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:05.195Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:05.359Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568933,577114,0,30,540836,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.contracts',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:05.366Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568933 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:05.370Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:05.534Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568934,543913,0,30,540836,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.contracts',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:05.537Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568934 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:05.539Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:05.600Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Flatrate_Term','ALTER TABLE public.I_Flatrate_Term ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:05.628Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Flatrate_Term','ALTER TABLE public.I_Flatrate_Term ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:05.665Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Flatrate_Term','ALTER TABLE public.I_Flatrate_Term ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:05.696Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Flatrate_Term','ALTER TABLE public.I_Flatrate_Term ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:05.720Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Flatrate_Term','ALTER TABLE public.I_Flatrate_Term ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:05.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568935,2887,0,30,540880,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','de.metas.vertical.pharma',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:05.878Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568935 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:05.884Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:06.071Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568936,577116,0,11,540880,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,'N','','de.metas.vertical.pharma',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:05','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:06.075Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568936 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:06.081Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:06.259Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568937,577115,0,14,540880,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.vertical.pharma',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:06.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568937 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:06.268Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:06.441Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568938,577114,0,30,540880,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.vertical.pharma',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:06.448Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568938 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:06.452Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:06.587Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_Product','ALTER TABLE public.I_Pharma_Product ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:06.619Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_Product','ALTER TABLE public.I_Pharma_Product ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:06.665Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_Product','ALTER TABLE public.I_Pharma_Product ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:06.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_Product','ALTER TABLE public.I_Pharma_Product ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:06.881Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568939,2887,0,30,540963,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:06.886Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568939 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:06.892Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:07.078Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568940,577116,0,11,540963,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:06','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:07.085Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568940 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:07.091Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:07.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568941,577115,0,14,540963,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:07.285Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568941 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:07.291Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:07.472Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568942,577114,0,30,540963,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:07.474Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568942 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:07.476Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:07.580Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568943,543913,0,30,540963,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:07.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568943 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:07.585Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:07.661Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_DiscountSchema','ALTER TABLE public.I_DiscountSchema ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:07.694Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_DiscountSchema','ALTER TABLE public.I_DiscountSchema ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:07.736Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_DiscountSchema','ALTER TABLE public.I_DiscountSchema ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:07.770Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_DiscountSchema','ALTER TABLE public.I_DiscountSchema ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:07.865Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_DiscountSchema','ALTER TABLE public.I_DiscountSchema ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:08.010Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568944,2887,0,30,540999,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','de.metas.banking',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:07','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:08.015Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568944 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:08.019Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:08.200Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568945,577116,0,11,540999,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,'N','','de.metas.banking',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:08.205Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568945 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:08.209Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:08.389Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568946,577115,0,14,540999,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.banking',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:08.394Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568946 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:08.398Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:08.575Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568947,577114,0,30,540999,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.banking',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:08.579Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568947 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:08.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:08.784Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568948,543913,0,30,540999,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.banking',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:08','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:08.789Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568948 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:08.794Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:08.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Datev_Payment','ALTER TABLE public.I_Datev_Payment ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:08.906Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Datev_Payment','ALTER TABLE public.I_Datev_Payment ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:08.937Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Datev_Payment','ALTER TABLE public.I_Datev_Payment ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:08.963Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Datev_Payment','ALTER TABLE public.I_Datev_Payment ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:09.005Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Datev_Payment','ALTER TABLE public.I_Datev_Payment ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:09.237Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568949,2887,0,30,541197,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','de.metas.vertical.pharma',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:09.243Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568949 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:09.248Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:09.490Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568950,577116,0,11,541197,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,'N','','de.metas.vertical.pharma',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:09.493Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568950 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:09.497Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:09.703Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568951,577115,0,14,541197,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.vertical.pharma',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:09.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568951 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:09.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:09.935Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568952,577114,0,30,541197,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.vertical.pharma',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:09','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:09.941Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568952 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:09.949Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:10.036Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_BPartner','ALTER TABLE public.I_Pharma_BPartner ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:10.075Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_BPartner','ALTER TABLE public.I_Pharma_BPartner ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:10.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_BPartner','ALTER TABLE public.I_Pharma_BPartner ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:10.159Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Pharma_BPartner','ALTER TABLE public.I_Pharma_BPartner ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:10.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568953,2887,0,30,541342,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:10.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568953 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:10.312Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:10.450Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568954,577116,0,11,541342,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:10.453Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568954 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:10.455Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:10.695Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568955,577115,0,14,541342,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:10.701Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568955 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:10.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:10.833Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568956,577114,0,30,541342,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:10.836Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568956 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:10.840Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:10.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568957,543913,0,30,541342,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:10','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:10.993Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568957 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:10.997Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:11.118Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Postal','ALTER TABLE public.I_Postal ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:11.158Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Postal','ALTER TABLE public.I_Postal ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:11.199Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Postal','ALTER TABLE public.I_Postal ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:11.240Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Postal','ALTER TABLE public.I_Postal ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:11.283Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Postal','ALTER TABLE public.I_Postal ADD COLUMN C_DataImport_ID NUMERIC(10)') ; -- 2019-09-25T11:15:11.469Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568958,2887,0,30,541362,'AD_Issue_ID',TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','Automatically created or manually entered System Issue','D',10,'System Issues are created to speed up the resolution of any system related issues (potential bugs). If enabled, they are automatically reported to Adempiere. No data or confidential information is transferred.','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','System-Problem',0,TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:11.474Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568958 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:11.478Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(2887) ; -- 2019-09-25T11:15:11.636Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568959,577116,0,11,541362,'I_LineNo',TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line No',0,TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:11.639Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568959 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:11.643Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577116) ; -- 2019-09-25T11:15:11.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568960,577115,0,14,541362,'I_LineContent',TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4000,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Import Line Content',0,TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:11.784Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568960 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:11.790Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577115) ; -- 2019-09-25T11:15:11.983Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568961,577114,0,30,541362,'C_DataImport_Run_ID',TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Y','Data Import Run',0,TO_TIMESTAMP('2019-09-25 14:15:11','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:11.986Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568961 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:11.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(577114) ; -- 2019-09-25T11:15:12.123Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsCalculated,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,568962,543913,0,30,541362,'C_DataImport_ID',TO_TIMESTAMP('2019-09-25 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Daten Import',0,TO_TIMESTAMP('2019-09-25 14:15:12','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2019-09-25T11:15:12.131Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=568962 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2019-09-25T11:15:12.138Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(543913) ; -- 2019-09-25T11:15:12.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Replenish','ALTER TABLE public.I_Replenish ADD COLUMN AD_Issue_ID NUMERIC(10)') ; -- 2019-09-25T11:15:12.266Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Replenish','ALTER TABLE public.I_Replenish ADD COLUMN I_LineNo NUMERIC(10)') ; -- 2019-09-25T11:15:12.299Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Replenish','ALTER TABLE public.I_Replenish ADD COLUMN I_LineContent TEXT') ; -- 2019-09-25T11:15:12.333Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Replenish','ALTER TABLE public.I_Replenish ADD COLUMN C_DataImport_Run_ID NUMERIC(10)') ; -- 2019-09-25T11:15:12.365Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('I_Replenish','ALTER TABLE public.I_Replenish ADD COLUMN C_DataImport_ID NUMERIC(10)') ;
the_stack
--add new vocabulary='NAACCR' DO $_$ BEGIN PERFORM VOCABULARY_PACK.AddNewVocabulary( pVocabulary_id => 'NAACCR', pVocabulary_name => 'NAACCR Data Dictionary', pVocabulary_reference => 'http://datadictionary.naaccr.org/?c=10', pVocabulary_version => 'NAACCR v18', pOMOP_req => NULL, --NULL or 'Y' pClick_default => NULL, --NULL or 'Y' pAvailable => NULL, --NULL, 'Currently not available','License required' or 'EULA required' pURL => NULL, pClick_disabled => NULL --NULL or 'Y' ); END $_$; --new relationships for NAACCR DO $$ DECLARE z int; ex int; pRelationship_name constant varchar(100):='Procedure Schema to ICDO Condition (NAACCR)'; pRelationship_id constant varchar(100):='Proc Schema to ICDO'; pIs_hierarchical constant int:=0; pDefines_ancestry constant int:=0; pReverse_relationship_id constant varchar(100):='ICDO to Proc Schema'; pRelationship_name_rev constant varchar(100):='ICDO Condition to Procedure Schema (NAACCR)'; pIs_hierarchical_rev constant int:=0; pDefines_ancestry_rev constant int:=0; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; ALTER TABLE relationship DROP CONSTRAINT FPK_RELATIONSHIP_REVERSE; --direct SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pRelationship_id, pRelationship_name, pIs_hierarchical, pDefines_ancestry, pReverse_relationship_id, z); --reverse SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name_rev, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pReverse_relationship_id, pRelationship_name_rev, pIs_hierarchical_rev, pDefines_ancestry_rev, pRelationship_id, z); ALTER TABLE relationship ADD CONSTRAINT fpk_relationship_reverse FOREIGN KEY (reverse_relationship_id) REFERENCES relationship (relationship_id); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pRelationship_name constant varchar(100):='Schema to ICDO Condition (NAACCR)'; pRelationship_id constant varchar(100):='Schema to ICDO'; pIs_hierarchical constant int:=0; pDefines_ancestry constant int:=0; pReverse_relationship_id constant varchar(100):='ICDO to Schema'; pRelationship_name_rev constant varchar(100):='ICDO Condition to Schema (NAACCR)'; pIs_hierarchical_rev constant int:=0; pDefines_ancestry_rev constant int:=0; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; ALTER TABLE relationship DROP CONSTRAINT FPK_RELATIONSHIP_REVERSE; --direct SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pRelationship_id, pRelationship_name, pIs_hierarchical, pDefines_ancestry, pReverse_relationship_id, z); --reverse SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name_rev, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pReverse_relationship_id, pRelationship_name_rev, pIs_hierarchical_rev, pDefines_ancestry_rev, pRelationship_id, z); ALTER TABLE relationship ADD CONSTRAINT fpk_relationship_reverse FOREIGN KEY (reverse_relationship_id) REFERENCES relationship (relationship_id); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pRelationship_name constant varchar(100):='Schema to Value (NAACCR)'; pRelationship_id constant varchar(100):='Schema to Value'; pIs_hierarchical constant int:=0; pDefines_ancestry constant int:=0; pReverse_relationship_id constant varchar(100):='Value to Schema'; pRelationship_name_rev constant varchar(100):='Value to Schema (NAACCR)'; pIs_hierarchical_rev constant int:=0; pDefines_ancestry_rev constant int:=0; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; ALTER TABLE relationship DROP CONSTRAINT FPK_RELATIONSHIP_REVERSE; --direct SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pRelationship_id, pRelationship_name, pIs_hierarchical, pDefines_ancestry, pReverse_relationship_id, z); --reverse SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name_rev, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pReverse_relationship_id, pRelationship_name_rev, pIs_hierarchical_rev, pDefines_ancestry_rev, pRelationship_id, z); ALTER TABLE relationship ADD CONSTRAINT fpk_relationship_reverse FOREIGN KEY (reverse_relationship_id) REFERENCES relationship (relationship_id); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pRelationship_name constant varchar(100):='Schema to Variable (NAACCR)'; pRelationship_id constant varchar(100):='Schema to Variable'; pIs_hierarchical constant int:=0; pDefines_ancestry constant int:=0; pReverse_relationship_id constant varchar(100):='Variable to Schema'; pRelationship_name_rev constant varchar(100):='Variable to Schema (NAACCR)'; pIs_hierarchical_rev constant int:=0; pDefines_ancestry_rev constant int:=0; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; ALTER TABLE relationship DROP CONSTRAINT FPK_RELATIONSHIP_REVERSE; --direct SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pRelationship_id, pRelationship_name, pIs_hierarchical, pDefines_ancestry, pReverse_relationship_id, z); --reverse SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pRelationship_name_rev, 'Metadata', 'Relationship', 'Relationship', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO relationship (relationship_id, relationship_name, is_hierarchical, defines_ancestry, reverse_relationship_id, relationship_concept_id) VALUES (pReverse_relationship_id, pRelationship_name_rev, pIs_hierarchical_rev, pDefines_ancestry_rev, pRelationship_id, z); ALTER TABLE relationship ADD CONSTRAINT fpk_relationship_reverse FOREIGN KEY (reverse_relationship_id) REFERENCES relationship (relationship_id); DROP SEQUENCE v5_concept; END $$; --new classes for NAACCR DO $$ DECLARE z int; ex int; pConcept_class_id constant varchar(100):='NAACCR Proc Schema'; pConcept_class_name constant varchar(100):= 'NAACCR Procedure Schema'; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pConcept_class_name, 'Metadata', 'Concept Class', 'Concept Class', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO concept_class (concept_class_id, concept_class_name, concept_class_concept_id) VALUES (pConcept_class_id, pConcept_class_name, z); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pConcept_class_id constant varchar(100):='NAACCR Procedure'; pConcept_class_name constant varchar(100):= 'NAACCR Procedure'; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pConcept_class_name, 'Metadata', 'Concept Class', 'Concept Class', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO concept_class (concept_class_id, concept_class_name, concept_class_concept_id) VALUES (pConcept_class_id, pConcept_class_name, z); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pConcept_class_id constant varchar(100):='NAACCR Value'; pConcept_class_name constant varchar(100):= 'NAACCR Value'; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pConcept_class_name, 'Metadata', 'Concept Class', 'Concept Class', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO concept_class (concept_class_id, concept_class_name, concept_class_concept_id) VALUES (pConcept_class_id, pConcept_class_name, z); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pConcept_class_id constant varchar(100):='NAACCR Schema'; pConcept_class_name constant varchar(100):= 'NAACCR Schema'; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pConcept_class_name, 'Metadata', 'Concept Class', 'Concept Class', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO concept_class (concept_class_id, concept_class_name, concept_class_concept_id) VALUES (pConcept_class_id, pConcept_class_name, z); DROP SEQUENCE v5_concept; END $$; DO $$ DECLARE z int; ex int; pConcept_class_id constant varchar(100):='NAACCR Variable'; pConcept_class_name constant varchar(100):= 'NAACCR Variable'; BEGIN DROP SEQUENCE IF EXISTS v5_concept; SELECT MAX (concept_id) + 1 INTO ex FROM concept --WHERE concept_id>=200 and concept_id<1000; --only for VIP concepts WHERE concept_id >= 31967 AND concept_id < 72245; EXECUTE 'CREATE SEQUENCE v5_concept INCREMENT BY 1 START WITH ' || ex || ' CACHE 20'; SELECT nextval('v5_concept') INTO z; INSERT INTO concept (concept_id, concept_name, domain_id, vocabulary_id, concept_class_id, standard_concept, concept_code, valid_start_date, valid_end_date, invalid_reason) VALUES (z, pConcept_class_name, 'Metadata', 'Concept Class', 'Concept Class', null, 'OMOP generated', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE ('20991231', 'YYYYMMDD'), null); INSERT INTO concept_class (concept_class_id, concept_class_name, concept_class_concept_id) VALUES (pConcept_class_id, pConcept_class_name, z); DROP SEQUENCE v5_concept; END $$;
the_stack
/* japanese charsets: JIS201, JIS208 */ /* ======================================================================= */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_00[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2171, 0x2172, 0, 0, 0, 0x2178, /* 0xA0 */ 0x212F, 0, 0, 0, 0x224C, 0, 0, 0, /* 0xA0 */ 0x216B, 0x215E, 0, 0, 0x212D, 0, 0x2279, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0x215F, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x2160, /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_03[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2621, 0x2622, 0x2623, 0x2624, 0x2625, 0x2626, 0x2627, /* 0x90 */ 0x2628, 0x2629, 0x262A, 0x262B, 0x262C, 0x262D, 0x262E, 0x262F, /* 0x90 */ 0x2630, 0x2631, 0, 0x2632, 0x2633, 0x2634, 0x2635, 0x2636, /* 0xA0 */ 0x2637, 0x2638, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0x2641, 0x2642, 0x2643, 0x2644, 0x2645, 0x2646, 0x2647, /* 0xB0 */ 0x2648, 0x2649, 0x264A, 0x264B, 0x264C, 0x264D, 0x264E, 0x264F, /* 0xB0 */ 0x2650, 0x2651, 0, 0x2652, 0x2653, 0x2654, 0x2655, 0x2656, /* 0xC0 */ 0x2657, 0x2658 /* 0xC0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_04[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2727, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0x2721, 0x2722, 0x2723, 0x2724, 0x2725, 0x2726, 0x2728, 0x2729, /* 0x10 */ 0x272A, 0x272B, 0x272C, 0x272D, 0x272E, 0x272F, 0x2730, 0x2731, /* 0x10 */ 0x2732, 0x2733, 0x2734, 0x2735, 0x2736, 0x2737, 0x2738, 0x2739, /* 0x20 */ 0x273A, 0x273B, 0x273C, 0x273D, 0x273E, 0x273F, 0x2740, 0x2741, /* 0x20 */ 0x2751, 0x2752, 0x2753, 0x2754, 0x2755, 0x2756, 0x2758, 0x2759, /* 0x30 */ 0x275A, 0x275B, 0x275C, 0x275D, 0x275E, 0x275F, 0x2760, 0x2761, /* 0x30 */ 0x2762, 0x2763, 0x2764, 0x2765, 0x2766, 0x2767, 0x2768, 0x2769, /* 0x40 */ 0x276A, 0x276B, 0x276C, 0x276D, 0x276E, 0x276F, 0x2770, 0x2771, /* 0x40 */ 0, 0x2757 /* 0x50 */ /* 0x50 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_20[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x213E, 0, 0, 0, 0, 0x213D, 0x2142, 0, /* 0x10 */ 0x2146, 0x2147, 0, 0, 0x2148, 0x2149, 0, 0, /* 0x10 */ 0x2277, 0x2278, 0, 0, 0, 0x2145, 0x2144, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x2273, 0, 0x216C, 0x216D, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x2228 /* 0x30 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_21[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x216E, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x2D62, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x2D64, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x2272, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x2D35, 0x2D36, 0x2D37, 0x2D38, 0x2D39, 0x2D3A, 0x2D3B, 0x2D3C, /* 0x60 */ 0x2D3D, 0x2D3E, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0x222B, 0x222C, 0x222A, 0x222D, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0x224D, 0, 0x224E /* 0xD0 */ /* 0xD0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_22[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x224F, 0, 0x225F, 0x2250, 0, 0, 0, 0x2260, /* 0x00 */ 0x223A, 0, 0, 0x223B, 0, 0, 0, 0, /* 0x00 */ 0, 0x2D74, 0x215D, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x2265, 0, 0, 0x2267, 0x2167, 0x2D78, /* 0x10 */ 0x225C, 0, 0, 0, 0, 0, 0, 0x224A, /* 0x20 */ 0x224B, 0x2241, 0x2240, 0x2269, 0x226A, 0, 0x2D73, 0, /* 0x20 */ 0, 0, 0, 0, 0x2168, 0x2268, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0x2266, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x2262, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x2162, 0x2261, 0, 0, 0, 0, 0x2165, 0x2166, /* 0x60 */ 0, 0, 0x2263, 0x2264, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x223E, 0x223F, 0, 0, 0x223C, 0x223D, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0x225D, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0x2D79 /* 0xB0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_23[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x225E /* 0x10 */ /* 0x10 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_24[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2D21, 0x2D22, 0x2D23, 0x2D24, 0x2D25, 0x2D26, 0x2D27, 0x2D28, /* 0x60 */ 0x2D29, 0x2D2A, 0x2D2B, 0x2D2C, 0x2D2D, 0x2D2E, 0x2D2F, 0x2D30, /* 0x60 */ 0x2D31, 0x2D32, 0x2D33, 0x2D34 /* 0x70 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_25[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2821, 0x282C, 0x2822, 0x282D, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0x2823, 0, 0, 0x282E, /* 0x00 */ 0x2824, 0, 0, 0x282F, 0x2826, 0, 0, 0x2831, /* 0x10 */ 0x2825, 0, 0, 0x2830, 0x2827, 0x283C, 0, 0, /* 0x10 */ 0x2837, 0, 0, 0x2832, 0x2829, 0x283E, 0, 0, /* 0x20 */ 0x2839, 0, 0, 0x2834, 0x2828, 0, 0, 0x2838, /* 0x20 */ 0x283D, 0, 0, 0x2833, 0x282A, 0, 0, 0x283A, /* 0x30 */ 0x283F, 0, 0, 0x2835, 0x282B, 0, 0, 0x283B, /* 0x30 */ 0, 0, 0x2840, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0x2836, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x2223, 0x2222, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x2225, 0x2224, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x2227, 0x2226, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0x2221, 0x217E, /* 0xC0 */ 0, 0, 0, 0x217B, 0, 0, 0x217D, 0x217C, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x227E /* 0xE0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_26[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x217A, 0x2179, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0x216A, 0, 0x2169, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x2276, 0, 0, 0x2275, 0, 0x2274 /* 0x60 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_30[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2121, 0x2122, 0x2123, 0x2137, 0, 0x2139, 0x213A, 0x213B, /* 0x00 */ 0x2152, 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, /* 0x00 */ 0x215A, 0x215B, 0x2229, 0x222E, 0x214C, 0x214D, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0x2141, 0x2D60, 0, 0x2D61, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0x2421, 0x2422, 0x2423, 0x2424, 0x2425, 0x2426, 0x2427, /* 0x40 */ 0x2428, 0x2429, 0x242A, 0x242B, 0x242C, 0x242D, 0x242E, 0x242F, /* 0x40 */ 0x2430, 0x2431, 0x2432, 0x2433, 0x2434, 0x2435, 0x2436, 0x2437, /* 0x50 */ 0x2438, 0x2439, 0x243A, 0x243B, 0x243C, 0x243D, 0x243E, 0x243F, /* 0x50 */ 0x2440, 0x2441, 0x2442, 0x2443, 0x2444, 0x2445, 0x2446, 0x2447, /* 0x60 */ 0x2448, 0x2449, 0x244A, 0x244B, 0x244C, 0x244D, 0x244E, 0x244F, /* 0x60 */ 0x2450, 0x2451, 0x2452, 0x2453, 0x2454, 0x2455, 0x2456, 0x2457, /* 0x70 */ 0x2458, 0x2459, 0x245A, 0x245B, 0x245C, 0x245D, 0x245E, 0x245F, /* 0x70 */ 0x2460, 0x2461, 0x2462, 0x2463, 0x2464, 0x2465, 0x2466, 0x2467, /* 0x80 */ 0x2468, 0x2469, 0x246A, 0x246B, 0x246C, 0x246D, 0x246E, 0x246F, /* 0x80 */ 0x2470, 0x2471, 0x2472, 0x2473, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x212B, 0x212C, 0x2135, 0x2136, 0, /* 0x90 */ 0, 0x2521, 0x2522, 0x2523, 0x2524, 0x2525, 0x2526, 0x2527, /* 0xA0 */ 0x2528, 0x2529, 0x252A, 0x252B, 0x252C, 0x252D, 0x252E, 0x252F, /* 0xA0 */ 0x2530, 0x2531, 0x2532, 0x2533, 0x2534, 0x2535, 0x2536, 0x2537, /* 0xB0 */ 0x2538, 0x2539, 0x253A, 0x253B, 0x253C, 0x253D, 0x253E, 0x253F, /* 0xB0 */ 0x2540, 0x2541, 0x2542, 0x2543, 0x2544, 0x2545, 0x2546, 0x2547, /* 0xC0 */ 0x2548, 0x2549, 0x254A, 0x254B, 0x254C, 0x254D, 0x254E, 0x254F, /* 0xC0 */ 0x2550, 0x2551, 0x2552, 0x2553, 0x2554, 0x2555, 0x2556, 0x2557, /* 0xD0 */ 0x2558, 0x2559, 0x255A, 0x255B, 0x255C, 0x255D, 0x255E, 0x255F, /* 0xD0 */ 0x2560, 0x2561, 0x2562, 0x2563, 0x2564, 0x2565, 0x2566, 0x2567, /* 0xE0 */ 0x2568, 0x2569, 0x256A, 0x256B, 0x256C, 0x256D, 0x256E, 0x256F, /* 0xE0 */ 0x2570, 0x2571, 0x2572, 0x2573, 0x2574, 0x2575, 0x2576, 0, /* 0xF0 */ 0, 0, 0, 0x2126, 0x213C, 0x2133, 0x2134 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_32[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2D6A, 0x2D6B, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0x2D6C, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x2D65, 0x2D66, 0x2D67, 0x2D68, /* 0xA0 */ 0x2D69 /* 0xA0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_33[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2D46, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0x2D4A, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0x2D41, 0, 0, 0, /* 0x10 */ 0x2D44, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x2D42, 0x2D4C, 0, 0, 0x2D4B, 0x2D45, /* 0x20 */ 0, 0, 0, 0x2D4D, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x2D47, 0, /* 0x30 */ 0, 0, 0, 0x2D4F, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0x2D40, 0x2D4E, 0, 0, 0x2D43, 0, 0, /* 0x40 */ 0, 0x2D48, 0, 0, 0, 0, 0, 0x2D49, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0x2D5F, 0x2D6F, 0x2D6E, 0x2D6D, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x2D53, 0x2D54, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x2D50, 0x2D51, 0x2D52, 0, /* 0x90 */ 0, 0x2D56, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x2D55, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0x2D63 /* 0xC0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_4E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x306C, 0x437A, 0, 0x3C37, 0, 0, 0, 0x4B7C, /* 0x00 */ 0x3E66, 0x3B30, 0x3E65, 0x323C, 0, 0x4954, 0x4D3F, 0, /* 0x00 */ 0x5022, 0x312F, 0, 0, 0x336E, 0x5023, 0x4024, 0x5242, /* 0x10 */ 0x3556, 0x4A3A, 0, 0, 0, 0, 0x3E67, 0, /* 0x10 */ 0, 0x4E3E, 0, 0, 0, 0, 0x4A42, 0, /* 0x20 */ 0, 0, 0x5024, 0, 0, 0x4366, 0, 0, /* 0x20 */ 0, 0x5025, 0x367A, 0, 0, 0, 0x5026, 0, /* 0x30 */ 0x345D, 0x4330, 0, 0x3C67, 0x5027, 0, 0, 0x5028, /* 0x30 */ 0, 0, 0x5029, 0x4735, 0, 0x3557, 0, 0, /* 0x40 */ 0, 0, 0, 0x4737, 0, 0x4663, 0x3843, 0x4B33, /* 0x40 */ 0, 0, 0, 0, 0, 0x6949, 0x502A, 0x3E68, /* 0x50 */ 0x502B, 0x3235, 0, 0, 0, 0x3665, 0x3870, 0x4C69, /* 0x50 */ 0, 0, 0x5626, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0x4D70, 0, 0x467D, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x3425, 0, /* 0x70 */ 0x3535, 0, 0x502C, 0, 0, 0x502D, 0x4E3B, 0, /* 0x80 */ 0x4D3D, 0x4168, 0x502F, 0x3B76, 0x4673, 0, 0x5032, 0, /* 0x80 */ 0, 0x313E, 0x385F, 0, 0x385E, 0x3066, 0, 0, /* 0x90 */ 0x4F4B, 0x4F4A, 0, 0x3A33, 0x3021, 0, 0x5033, 0x5034, /* 0x90 */ 0x5035, 0x4B34, 0x5036, 0, 0x3872, 0x3067, 0x4B72, 0, /* 0xA0 */ 0x357C, 0, 0, 0x357D, 0x357E, 0x4462, 0x4E3C, 0, /* 0xA0 */ 0x5037, 0, 0, 0x5038, 0, 0, 0x5039, 0, /* 0xB0 */ 0, 0, 0x3F4D, 0, 0, 0, 0, 0, /* 0xB0 */ 0x3D3A, 0x3F4E, 0x503E, 0, 0x503C, 0, 0x503D, 0x3558, /* 0xC0 */ 0, 0, 0x3A23, 0x3270, 0, 0x503B, 0x503A, 0x4A29, /* 0xC0 */ 0, 0, 0, 0, 0x3B46, 0x3B45, 0x423E, 0x503F, /* 0xD0 */ 0x4955, 0x4067, 0, 0, 0, 0x2138, 0x5040, 0x5042, /* 0xD0 */ 0, 0, 0, 0x4265, 0x4E61, 0x304A, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x5041, 0x323E, 0, /* 0xE0 */ 0x3644, 0, 0x4367, 0, 0, 0, 0x376F, 0x5043, /* 0xF0 */ 0, 0, 0, 0x4724 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_4F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x346B, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x5044, 0x304B, 0, 0, 0x3860, 0x346C, 0x497A, /* 0x00 */ 0x4832, 0x3559, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x3271, 0, 0x5067, 0x4541, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0x476C, /* 0x20 */ 0x5046, 0, 0, 0, 0x483C, 0, 0x4E62, 0, /* 0x30 */ 0x3F2D, 0, 0x3B47, 0, 0x3B77, 0x3240, 0, 0, /* 0x30 */ 0, 0, 0, 0x4451, 0, 0, 0x4322, 0x504A, /* 0x40 */ 0, 0, 0, 0, 0, 0x304C, 0x4463, 0x3D3B, /* 0x40 */ 0x3A34, 0x4D24, 0, 0x424E, 0, 0x323F, 0, 0x5049, /* 0x50 */ 0, 0x4D3E, 0x5045, 0x5047, 0x3A6E, 0x5048, 0x5524, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0x5050, 0, 0, 0, 0, 0, 0x5053, /* 0x60 */ 0x5051, 0, 0, 0x3242, 0, 0x4A3B, 0x504B, 0, /* 0x70 */ 0, 0, 0, 0x504F, 0x3873, 0, 0, 0x3B48, /* 0x70 */ 0, 0, 0, 0x3426, 0, 0, 0x5054, 0, /* 0x80 */ 0x504C, 0, 0, 0x4E63, 0, 0x3B78, 0, 0x504D, /* 0x80 */ 0, 0x5052, 0, 0, 0, 0, 0x5055, 0, /* 0x90 */ 0x504E, 0, 0, 0x3621, 0, 0x304D, 0, 0, /* 0x90 */ 0x3622, 0x3241, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x5525, 0, 0x4B79, 0x496E, 0x3874, /* 0xA0 */ 0, 0, 0, 0, 0, 0x3F2F, 0x4E37, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0x4A58, /* 0xB0 */ 0, 0, 0x3738, 0x4225, 0x3264, 0, 0, 0, /* 0xC0 */ 0, 0, 0x3D53, 0, 0, 0, 0x5059, 0, /* 0xC0 */ 0x505E, 0x505C, 0, 0, 0x5057, 0, 0, 0x422F, /* 0xD0 */ 0x505A, 0, 0x505D, 0x505B, 0, 0x4A5D, 0, 0x5058, /* 0xD0 */ 0, 0x3F2E, 0, 0x4B73, 0x505F, 0x5060, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0x3D24, 0x506D, /* 0xE0 */ 0, 0, 0, 0x4750, 0, 0x4936, 0x5068, 0, /* 0xF0 */ 0x4A70, 0, 0x3236, 0, 0, 0, 0x506C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_50[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5066, 0x506F, 0, /* 0x00 */ 0, 0x4152, 0, 0x3844, 0, 0x475C, 0, 0x6047, /* 0x00 */ 0, 0x506E, 0x455D, 0, 0x5063, 0, 0x3876, 0, /* 0x10 */ 0, 0x3875, 0x5061, 0, 0, 0, 0, 0x3C5A, /* 0x10 */ 0, 0x5069, 0, 0x4A6F, 0x434D, 0x5065, 0x3771, 0, /* 0x20 */ 0x5062, 0x506A, 0x5064, 0x4E51, 0x506B, 0x4F41, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x3666, 0, /* 0x30 */ 0, 0x3770, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x5070, 0, 0, 0, 0x5071, /* 0x40 */ 0x5075, 0x304E, 0, 0, 0, 0, 0, 0x4A50, /* 0x40 */ 0x5074, 0, 0, 0, 0, 0x5073, 0x5077, 0, /* 0x50 */ 0, 0, 0x5076, 0, 0x4464, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0x3772, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x5078, 0, 0, 0, /* 0x60 */ 0, 0, 0x3C45, 0, 0x4226, 0x4465, 0x3676, 0, /* 0x70 */ 0x5079, 0, 0, 0, 0, 0x3536, 0, 0, /* 0x70 */ 0x507A, 0, 0, 0, 0, 0x507C, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x4B35, 0, 0, /* 0x80 */ 0, 0x3766, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x3B31, 0x4877, 0x507B, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0x3A45, 0x4D43, 0, 0, /* 0xA0 */ 0, 0, 0x507E, 0x5123, 0x507D, 0x3A44, 0, 0x3D7D, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0x3739, 0, /* 0xB0 */ 0, 0, 0x5124, 0, 0, 0x364F, 0, 0, /* 0xC0 */ 0, 0x5121, 0x5122, 0, 0, 0x462F, 0, 0x417C, /* 0xC0 */ 0, 0x3623, 0, 0, 0, 0x4B4D, 0x5125, 0, /* 0xD0 */ 0, 0, 0x4E3D, 0, 0, 0, 0x5126, 0, /* 0xD0 */ 0, 0, 0, 0x5129, 0, 0x5127, 0, 0x414E, /* 0xE0 */ 0, 0, 0, 0, 0, 0x5128, 0x512A, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x512C, 0, 0, /* 0xF0 */ 0, 0x512B, 0, 0x4A48 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_51[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3537, 0x512E, 0x512F, 0, 0x322F, 0, 0, 0, /* 0x00 */ 0, 0x512D, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0x3C74, 0, 0x5132, 0x5131, 0x5130, 0, /* 0x10 */ 0x5056, 0, 0x5133, 0, 0, 0, 0, 0x3D7E, /* 0x10 */ 0, 0x5134, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x4D25, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x4C59, 0, 0, 0, 0, 0x5136, /* 0x30 */ 0, 0, 0x5135, 0x5138, 0x5137, 0, 0, 0x5139, /* 0x30 */ 0x513A, 0x3074, 0, 0x3835, 0x373B, 0x3D3C, 0x437B, 0x3624, /* 0x40 */ 0x4068, 0x3877, 0, 0x396E, 0x513C, 0x4C48, 0x4546, 0, /* 0x40 */ 0x3B79, 0, 0x513B, 0, 0x513D, 0, 0, 0, /* 0x50 */ 0, 0, 0x455E, 0, 0x3375, 0, 0, 0, /* 0x50 */ 0, 0, 0x513E, 0, 0, 0x467E, 0, 0, /* 0x60 */ 0x4134, 0x5140, 0x5141, 0x482C, 0x3878, 0x4F3B, 0x5142, 0, /* 0x60 */ 0, 0x3626, 0, 0, 0, 0x4A3C, 0x4236, 0x3671, /* 0x70 */ 0x4535, 0, 0, 0, 0x3773, 0, 0, 0, /* 0x70 */ 0x5143, 0, 0x5144, 0, 0, 0x4662, 0x315F, 0, /* 0x80 */ 0, 0x5147, 0x3A7D, 0, 0x5146, 0x3A46, 0, 0x5148, /* 0x80 */ 0x666E, 0x5149, 0x4B41, 0x514A, 0, 0x514B, 0x514C, 0x3E69, /* 0x90 */ 0, 0x3C4C, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x3427, 0, 0x514F, 0, 0x514D, 0x4C3D, 0x514E, 0, /* 0xA0 */ 0x495A, 0x5150, 0x5151, 0x5152, 0x455F, 0, 0, 0, /* 0xA0 */ 0x5156, 0x5154, 0x5155, 0x5153, 0x3A63, 0x5157, 0x4C6A, 0x4E64, /* 0xB0 */ 0, 0, 0, 0, 0, 0x5158, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x4028, 0x5159, 0x3D5A, 0, /* 0xC0 */ 0, 0x515A, 0, 0x437C, 0x4E3F, 0x4560, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x5245, 0, /* 0xD0 */ 0, 0, 0, 0x515B, 0x7425, 0x3645, 0, 0, /* 0xD0 */ 0x515C, 0x4B5E, 0, 0, 0, 0, 0x3D68, 0x427C, /* 0xE0 */ 0, 0x515E, 0x4664, 0, 0, 0x515F, 0, 0, /* 0xE0 */ 0x5160, 0x332E, 0, 0, 0, 0x5161, 0x3627, 0, /* 0xF0 */ 0x464C, 0x317A, 0x3D50, 0, 0, 0x4821, 0x5162 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_52[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4561, 0, 0, 0x3F4F, 0x5163, 0, 0x4A2C, 0x405A, /* 0x00 */ 0x3422, 0, 0x3429, 0x5164, 0, 0, 0x5166, 0, /* 0x00 */ 0, 0x373A, 0, 0, 0x5165, 0, 0, 0x4E73, /* 0x10 */ 0, 0, 0, 0, 0, 0x3D69, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0x483D, 0x4A4C, 0, 0x5167, /* 0x20 */ 0, 0x4D78, 0x5168, 0, 0, 0, 0x5169, 0, /* 0x20 */ 0x457E, 0, 0, 0x516A, 0, 0, 0x4029, 0x3A7E, /* 0x30 */ 0x3774, 0x516B, 0x3B49, 0x396F, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x4466, 0x516D, 0, 0, 0x4227, /* 0x40 */ 0, 0, 0x3A6F, 0x516E, 0x516F, 0x4130, 0, 0x516C, /* 0x40 */ 0, 0, 0, 0, 0x5171, 0, 0x4B36, 0, /* 0x50 */ 0, 0, 0, 0x3964, 0, 0, 0x5170, 0, /* 0x50 */ 0, 0, 0, 0x3775, 0x3A5E, 0x476D, 0, 0, /* 0x60 */ 0, 0x5174, 0x5172, 0, 0, 0, 0, 0x497B, /* 0x60 */ 0x3E6A, 0x517B, 0x3364, 0x5175, 0x5173, 0x414F, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0x5177, 0, 0x5176, /* 0x70 */ 0, 0, 0, 0x3344, 0, 0, 0, 0x3760, /* 0x80 */ 0x517C, 0x4E2D, 0, 0, 0, 0x5178, 0, 0, /* 0x80 */ 0, 0x517D, 0x517A, 0, 0x5179, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x4E4F, 0, 0, 0, 0x3879, /* 0x90 */ 0x3243, 0, 0, 0x4E74, 0, 0, 0, 0, /* 0xA0 */ 0, 0x3D75, 0x4558, 0x3965, 0x5222, 0x5223, 0, 0, /* 0xA0 */ 0, 0x4E65, 0, 0, 0x4F2B, 0x5225, 0, 0, /* 0xB0 */ 0, 0x387A, 0, 0, 0x5224, 0, 0x332F, 0, /* 0xB0 */ 0, 0x5226, 0, 0x4B56, 0, 0x443C, 0, 0x4D26, /* 0xC0 */ 0, 0x4A59, 0, 0, 0, 0x5227, 0, 0, /* 0xC0 */ 0, 0, 0x7055, 0, 0, 0x4630, 0, 0x5228, /* 0xD0 */ 0x342A, 0x4C33, 0, 0, 0, 0x3E21, 0x5229, 0x4A67, /* 0xD0 */ 0x522D, 0, 0x402A, 0x522A, 0x3650, 0, 0x522B, 0x342B, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0x372E, 0x522E, 0, 0x522F, 0, 0, /* 0xF0 */ 0x5230, 0x5231, 0x3C5B, 0, 0, 0, 0x387B, 0x4C5E /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_53[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4C68, 0x4677, 0, 0, 0x4A71, 0x5232, 0, /* 0x00 */ 0x5233, 0, 0, 0, 0, 0x5235, 0, 0x5237, /* 0x00 */ 0x5236, 0, 0, 0, 0, 0x5238, 0x323D, 0x4B4C, /* 0x10 */ 0, 0x3A7C, 0x5239, 0, 0, 0x4159, 0, 0, /* 0x10 */ 0x3E22, 0x3629, 0, 0x523A, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x485B, 0, 0, 0, 0, 0x523B, /* 0x20 */ 0, 0x523C, 0, 0x523D, 0, 0, 0, 0, /* 0x30 */ 0x523E, 0x4924, 0x3668, 0x3065, 0, 0, 0, 0x463F, /* 0x30 */ 0x523F, 0x3D3D, 0, 0x4069, 0, 0x5241, 0x5240, 0x3E23, /* 0x40 */ 0x3861, 0x5243, 0x483E, 0, 0, 0x5244, 0, 0, /* 0x40 */ 0, 0x485C, 0x4234, 0x426E, 0x3628, 0, 0, 0x466E, /* 0x50 */ 0x4331, 0, 0x476E, 0, 0x4B4E, 0, 0x5246, 0, /* 0x50 */ 0x406A, 0, 0, 0, 0, 0, 0x3735, 0, /* 0x60 */ 0, 0x5247, 0, 0, 0, 0, 0x5248, 0x312C, /* 0x60 */ 0x3075, 0x346D, 0, 0x4228, 0x3551, 0x4D71, 0, 0x524B, /* 0x70 */ 0x3237, 0, 0, 0x524A, 0, 0, 0, 0x362A, /* 0x70 */ 0, 0, 0x524C, 0, 0x4C71, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x524D, 0, /* 0x90 */ 0x4E52, 0, 0x387C, 0, 0, 0, 0, 0x3836, /* 0x90 */ 0x524E, 0, 0, 0, 0, 0x5250, 0x524F, 0, /* 0xA0 */ 0x3F5F, 0x3139, 0, 0, 0, 0x315E, 0x5251, 0, /* 0xA0 */ 0x5252, 0, 0, 0x3837, 0, 0, 0x5253, 0, /* 0xB0 */ 0, 0, 0, 0x356E, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0x3B32, 0x5254, 0, 0, 0, 0, /* 0xC0 */ 0x4B74, 0x3A35, 0x355A, 0x4D27, 0x4150, 0x483F, 0x3C7D, 0, /* 0xC0 */ 0, 0, 0, 0, 0x3D47, 0, 0x3C68, 0x3C75, /* 0xD0 */ 0, 0x3D76, 0, 0x4840, 0, 0, 0, 0x5257, /* 0xD0 */ 0, 0x3143, 0x4151, 0x387D, 0x3845, 0x3667, 0, 0, /* 0xE0 */ 0x525B, 0x4321, 0x427E, 0x362B, 0x3E24, 0x525C, 0x525A, 0x3244, /* 0xE0 */ 0x4266, 0x3C38, 0x3B4B, 0x3126, 0, 0, 0x3370, 0x3966, /* 0xF0 */ 0x3B4A, 0, 0x525D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_54[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x525E, 0, 0x3549, 0x3346, 0, 0, 0, /* 0x00 */ 0x3967, 0x3548, 0x445F, 0x3125, 0x4631, 0x4C3E, 0x3921, 0x4D79, /* 0x00 */ 0x4547, 0x387E, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x372F, 0, 0x5267, 0, 0x3663, /* 0x10 */ 0x4B4A, 0, 0, 0, 0, 0, 0x485D, 0, /* 0x20 */ 0, 0x5266, 0, 0x345E, 0x5261, 0x5262, 0x5264, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x5265, 0, /* 0x30 */ 0x355B, 0x3F61, 0, 0x4A2D, 0x5263, 0x525F, 0x3863, 0, /* 0x30 */ 0x5260, 0, 0x4F24, 0, 0, 0, 0x4A72, 0, /* 0x40 */ 0x4468, 0x3862, 0x3970, 0, 0, 0, 0x5268, 0, /* 0x40 */ 0, 0x465D, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x526C, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0x3C7E, 0, 0x3C76, 0, 0, 0, 0, 0, /* 0x60 */ 0x526F, 0x526D, 0, 0x4C23, 0, 0x526A, 0x5273, 0x526E, /* 0x70 */ 0, 0, 0, 0x5271, 0x3846, 0x4C3F, 0, 0, /* 0x70 */ 0x5272, 0, 0, 0, 0x5274, 0, 0x5276, 0, /* 0x80 */ 0, 0, 0, 0x3A70, 0x4F42, 0, 0x526B, 0x5269, /* 0x80 */ 0x5275, 0, 0x5270, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0x5278, 0, 0x5323, 0x527A, 0, 0, /* 0xA0 */ 0x527E, 0, 0, 0x5321, 0x527B, 0, 0, 0x533E, /* 0xA0 */ 0, 0, 0x3A69, 0x3331, 0, 0, 0, 0, /* 0xB0 */ 0x5279, 0, 0, 0, 0x5325, 0x3076, 0x5324, 0, /* 0xB0 */ 0x3025, 0x494A, 0x5322, 0, 0x527C, 0, 0, 0x5277, /* 0xC0 */ 0x527D, 0x3A48, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0x5326, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0x3077, 0x532F, 0, 0, 0x5327, 0x5328, 0, /* 0xE0 */ 0x3E25, 0x4B69, 0, 0, 0, 0x532D, 0x532C, 0, /* 0xE0 */ 0, 0, 0x452F, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0x532E, 0, 0, 0x532B /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_55[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3134, 0, 0x3A36, 0x3F30, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0x5329, /* 0x00 */ 0x4562, 0, 0, 0, 0x532A, 0, 0x3022, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x5334, 0x4D23, /* 0x20 */ 0, 0x3E27, 0, 0x533A, 0, 0, 0, 0, /* 0x30 */ 0x5339, 0x5330, 0, 0, 0, 0, 0x4243, 0, /* 0x30 */ 0x5331, 0, 0, 0, 0x426F, 0x5336, 0x3E26, 0, /* 0x40 */ 0, 0, 0, 0, 0x5333, 0, 0, 0x4C64, /* 0x40 */ 0, 0, 0, 0x373C, 0, 0, 0x5337, 0x5338, /* 0x50 */ 0, 0, 0, 0, 0x5335, 0x533B, 0, 0, /* 0x50 */ 0, 0, 0, 0x5332, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0x5341, 0x5346, 0, 0x5342, 0, /* 0x70 */ 0x533D, 0, 0, 0x5347, 0x4131, 0, 0, 0x5349, /* 0x80 */ 0, 0x3922, 0x533F, 0x437D, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x5343, 0x533C, 0x342D, 0, 0x346E, 0x3365, 0x5344, 0x5340, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0x3776, /* 0xA0 */ 0x534A, 0x5348, 0x4153, 0x354A, 0x362C, 0, 0x5345, 0, /* 0xA0 */ 0x3674, 0, 0, 0, 0, 0, 0x3144, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x534E, 0x534C, 0, 0x5427, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0x5351, 0, 0, 0, /* 0xD0 */ 0, 0, 0x534B, 0, 0x534F, 0, 0, 0x534D, /* 0xD0 */ 0, 0, 0, 0x3B4C, 0x5350, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x5353, /* 0xF0 */ 0, 0x5358, 0, 0, 0, 0x5356, 0x5355 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_56[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4332, 0, /* 0x00 */ 0, 0x3245, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0x5352, 0, 0x5354, 0x3E28, /* 0x10 */ 0x3133, 0, 0, 0x5357, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x325E, 0, 0, 0, 0, 0, 0x5362, /* 0x20 */ 0, 0x3E7C, 0x535E, 0, 0x535C, 0, 0x535D, 0, /* 0x30 */ 0x535F, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x313D, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x4139, 0, 0x5359, 0, /* 0x40 */ 0x535A, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x337A, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0x5361, 0, 0, 0, /* 0x60 */ 0x346F, 0, 0x5364, 0x5360, 0x5363, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x4A2E, 0, 0, 0, /* 0x70 */ 0x4655, 0, 0x4838, 0, 0, 0, 0, 0, /* 0x70 */ 0x5366, 0, 0, 0, 0, 0, 0x5365, 0x3345, /* 0x80 */ 0, 0, 0x5367, 0, 0, 0, 0, 0x536A, /* 0x80 */ 0, 0, 0, 0, 0x5369, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x5368, 0, 0x4739, 0, 0, 0x536B, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0x536C, 0, /* 0xA0 */ 0, 0, 0, 0, 0x536E, 0, 0x536D, 0, /* 0xB0 */ 0, 0, 0, 0, 0x5370, 0, 0, 0, /* 0xB0 */ 0x5373, 0x5371, 0x536F, 0x5372, 0, 0, 0, 0, /* 0xC0 */ 0x5374, 0, 0, 0, 0, 0, 0x5375, 0, /* 0xC0 */ 0, 0x5376, 0, 0x5377, 0, 0, 0, 0x5378, /* 0xD0 */ 0x5145, 0, 0x3C7C, 0x3B4D, 0, 0, 0x3273, 0, /* 0xD0 */ 0x3078, 0, 0, 0x4344, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0x5379, 0, /* 0xE0 */ 0x3A24, 0, 0x304F, 0x3F5E, 0, 0, 0, 0, /* 0xF0 */ 0, 0x537A, 0x3847, 0, 0, 0x3971, 0, 0x537C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_57[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x537B, 0, 0, 0x4A60, 0x537D, 0, 0, 0, /* 0x00 */ 0x5421, 0x537E, 0, 0x5422, 0, 0x5423, 0, 0x3777, /* 0x00 */ 0, 0, 0x3160, 0x5424, 0, 0, 0x5426, 0, /* 0x10 */ 0x5425, 0, 0, 0, 0x5428, 0, 0, 0x455A, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x5429, 0x3035, /* 0x20 */ 0x3A5F, 0, 0, 0, 0, 0x373D, 0, 0, /* 0x20 */ 0x434F, 0, 0, 0, 0, 0, 0, 0x542A, /* 0x30 */ 0x542B, 0, 0, 0x542D, 0, 0, 0, 0, /* 0x30 */ 0x542E, 0, 0x3A64, 0, 0, 0, 0, 0x3651, /* 0x40 */ 0, 0, 0x4B37, 0, 0, 0, 0x542C, 0x542F, /* 0x40 */ 0x3A41, 0x3923, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0x5433, 0, 0, 0x3A25, 0, 0x4333, 0, /* 0x60 */ 0, 0x5430, 0x445A, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0x5434, /* 0x70 */ 0, 0, 0x3F62, 0, 0, 0, 0, 0, /* 0x80 */ 0x5432, 0x5435, 0, 0x373F, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x5436, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x5437, 0, 0x3924, 0x3340, 0x5439, 0, 0, 0, /* 0xA0 */ 0, 0, 0x543A, 0, 0, 0, 0, 0, /* 0xA0 */ 0x543B, 0, 0, 0x5438, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x5431, 0, 0, 0x543C, 0, 0, 0x543D, 0, /* 0xC0 */ 0, 0, 0, 0x4B64, 0, 0, 0x3E6B, 0, /* 0xC0 */ 0, 0, 0x543F, 0x5440, 0x543E, 0, 0x5442, 0, /* 0xD0 */ 0, 0, 0, 0, 0x4738, 0, 0, 0x3068, /* 0xD0 */ 0x4956, 0, 0, 0x5443, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0x3E7D, 0, 0, 0x3C39, /* 0xF0 */ 0, 0x475D, 0x3470, 0, 0x3A6B /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_58[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4B59, 0, 0x4632, 0, 0, 0x3778, 0x424F, 0, /* 0x00 */ 0, 0, 0x5441, 0x5444, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0x4244, 0, 0, /* 0x10 */ 0, 0x5445, 0, 0, 0, 0x5446, 0, 0, /* 0x10 */ 0, 0x5448, 0, 0, 0x4469, 0, 0, 0, /* 0x20 */ 0, 0, 0x342E, 0, 0, 0, 0, 0x7421, /* 0x20 */ 0x3161, 0x4A73, 0, 0, 0x3E6C, 0x4548, 0, 0, /* 0x30 */ 0, 0, 0x3A66, 0, 0, 0x544E, 0, 0, /* 0x30 */ 0x4A3D, 0x4E5D, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x3274, 0x544A, 0, 0, 0, 0, /* 0x40 */ 0, 0x413A, 0x544D, 0, 0x4563, 0, 0, 0x4549, /* 0x50 */ 0x4564, 0x4839, 0x444D, 0, 0, 0, 0x3A49, 0, /* 0x50 */ 0, 0, 0x5449, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0x3176, 0, 0x4536, 0, 0, 0, 0, /* 0x60 */ 0x544B, 0, 0x5447, 0, 0, 0x3F50, 0, 0, /* 0x70 */ 0, 0x544F, 0, 0, 0, 0, 0x3D4E, 0, /* 0x70 */ 0, 0, 0, 0x362D, 0, 0x5450, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x4A68, 0, 0, 0, 0x417D, /* 0x90 */ 0, 0, 0, 0, 0x4446, 0, 0, 0x5452, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x4B4F, 0, 0, 0x5453, 0, 0, 0x5458, 0, /* 0xA0 */ 0, 0, 0, 0x4A2F, 0, 0, 0, 0, /* 0xB0 */ 0x5457, 0x5451, 0x5454, 0x5456, 0, 0, 0x3A26, 0, /* 0xB0 */ 0, 0x4A49, 0, 0, 0, 0x5459, 0, 0x4345, /* 0xC0 */ 0, 0, 0x3275, 0, 0x3E6D, 0, 0, 0, /* 0xC0 */ 0, 0x545B, 0, 0x545A, 0, 0x3968, 0, 0x545C, /* 0xD0 */ 0x545E, 0x545D, 0, 0, 0x5460, 0, 0x5455, 0x5462, /* 0xD0 */ 0, 0, 0, 0, 0x5461, 0x545F, 0, 0, /* 0xE0 */ 0, 0, 0, 0x3B4E, 0x3F51, 0, 0x4154, 0x5463, /* 0xE0 */ 0x403C, 0x306D, 0x4764, 0, 0, 0, 0, 0x445B, /* 0xF0 */ 0, 0x5465, 0x5464, 0x5466, 0x5467, 0x5468 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_59[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5469, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x4A51, 0x546A, 0, 0, 0, 0, 0x3246, /* 0x00 */ 0x546B, 0, 0, 0, 0, 0x4D3C, 0x3330, 0, /* 0x10 */ 0x5249, 0x3D48, 0x423F, 0x546C, 0x4C6B, 0, 0, 0, /* 0x10 */ 0, 0, 0x4C34, 0, 0, 0x546E, 0, 0x4267, /* 0x20 */ 0, 0x4537, 0x4240, 0x4957, 0x546F, 0x5470, 0x317B, 0, /* 0x20 */ 0, 0x3C3A, 0x5471, 0, 0, 0, 0, 0x3050, /* 0x30 */ 0x5472, 0, 0, 0, 0, 0, 0x5473, 0, /* 0x30 */ 0, 0, 0, 0, 0x3162, 0, 0, 0x3471, /* 0x40 */ 0x4660, 0x4A74, 0, 0, 0, 0, 0x5477, 0x4155, /* 0x40 */ 0x5476, 0x3740, 0, 0, 0x4B5B, 0x5475, 0, 0x4565, /* 0x50 */ 0x5479, 0, 0x5478, 0, 0, 0, 0, 0, /* 0x50 */ 0x547B, 0, 0x547A, 0, 0, 0x317C, 0, 0x547C, /* 0x60 */ 0x3E29, 0x547E, 0x4325, 0, 0x547D, 0, 0x4A33, 0, /* 0x60 */ 0, 0, 0, 0x3D77, 0x455B, 0, 0, 0, /* 0x70 */ 0x5521, 0, 0, 0, 0, 0x3925, 0, 0, /* 0x70 */ 0, 0x5522, 0x4721, 0x485E, 0x4C51, 0, 0, 0, /* 0x80 */ 0, 0, 0x4725, 0, 0, 0x552B, 0, 0, /* 0x80 */ 0, 0, 0, 0x3538, 0, 0, 0x4D45, 0, /* 0x90 */ 0, 0x4C2F, 0, 0x562C, 0, 0x5523, 0, 0, /* 0x90 */ 0, 0, 0, 0x5526, 0, 0x4245, 0, 0, /* 0xA0 */ 0x4B38, 0, 0, 0, 0x454A, 0, 0, 0, /* 0xA0 */ 0, 0, 0x5527, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x4B65, 0, 0x3A4A, 0, 0, 0x3E2A, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0x5528, 0, /* 0xC0 */ 0, 0x3B50, 0, 0x3B4F, 0, 0, 0, 0, /* 0xC0 */ 0x3039, 0x3848, 0, 0x402B, 0x3051, 0, 0, 0, /* 0xD0 */ 0, 0x552C, 0x552D, 0, 0x552A, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0x3138, 0x342F, 0, /* 0xE0 */ 0x5529, 0, 0x4C45, 0x4931, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0x3028, 0, /* 0xF0 */ 0, 0, 0, 0x3079, 0, 0, 0, 0x3B51 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5A[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3052, 0, 0x3023, 0, 0, 0, 0, /* 0x00 */ 0, 0x5532, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x5530, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x4C3C, 0, 0x5533, 0, 0x5531, 0, 0, 0x552F, /* 0x10 */ 0x3F31, 0, 0, 0, 0, 0x552E, 0, 0, /* 0x20 */ 0, 0x4A5A, 0, 0, 0, 0, 0, 0x3864, /* 0x20 */ 0, 0, 0, 0, 0, 0x5537, 0x5538, 0, /* 0x30 */ 0, 0, 0, 0, 0x3E2B, 0, 0, 0, /* 0x30 */ 0x5534, 0x4F2C, 0, 0, 0, 0, 0x474C, 0, /* 0x40 */ 0, 0x5536, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0x3A27, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0x5539, 0, 0, 0, 0x4958, 0, /* 0x60 */ 0, 0, 0x553A, 0, 0x5535, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0x4C3B, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x475E, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0x553B, 0x4932, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x553C, 0x5540, 0x553D, 0, /* 0xB0 */ 0, 0x3247, 0x553F, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x3C3B, 0, 0x553E, 0x3779, 0, 0, 0, /* 0xC0 */ 0x554C, 0, 0, 0, 0, 0, 0x5545, 0x5542, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0x4364, 0, 0x5541, 0, 0, 0x5543, 0, /* 0xE0 */ 0, 0x5544, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0x5546, 0x5547 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5B[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x3472, 0, 0x5549, 0x5548, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x554A, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x3E6E, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x554D, 0, 0x445C, 0, 0, 0, /* 0x20 */ 0x3145, 0, 0x554B, 0, 0, 0, 0x554E, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x554F, 0, /* 0x30 */ 0x5552, 0, 0, 0x5550, 0, 0x5551, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0x3B52, 0x5553, 0, 0, 0x3926, 0x5554, 0, 0x3B7A, /* 0x50 */ 0x4238, 0, 0x5555, 0x5556, 0x3B5A, 0x3927, 0, 0x4C52, /* 0x50 */ 0, 0, 0, 0x3528, 0x3849, 0x5557, 0x3358, 0, /* 0x60 */ 0, 0x5558, 0, 0x4239, 0, 0, 0, 0, /* 0x60 */ 0x5559, 0x5623, 0, 0x555A, 0, 0x555B, 0, 0, /* 0x70 */ 0x555C, 0, 0x555E, 0, 0, 0, 0, 0, /* 0x70 */ 0x555F, 0, 0, 0x5560, 0, 0x4270, 0, 0x3127, /* 0x80 */ 0x3C69, 0x3042, 0, 0x4157, 0x3430, 0x3C35, 0, 0x3928, /* 0x80 */ 0, 0, 0, 0, 0, 0x4566, 0, 0x3D21, /* 0x90 */ 0x3431, 0x4368, 0x446A, 0x3038, 0x3539, 0x4A75, 0, 0x3C42, /* 0x90 */ 0, 0, 0x3552, 0x406B, 0x3C3C, 0x4D28, 0x5561, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0x355C, 0, /* 0xA0 */ 0x3A4B, 0, 0, 0x3332, 0x3163, 0x3E2C, 0x3248, 0, /* 0xB0 */ 0x5562, 0x4D46, 0, 0, 0, 0, 0, 0x3D49, /* 0xB0 */ 0, 0, 0x3C64, 0x5563, 0x3473, 0x4652, 0x4C29, 0x5564, /* 0xC0 */ 0, 0x5565, 0, 0, 0x4959, 0, 0, 0, /* 0xC0 */ 0x5567, 0, 0x3428, 0x3677, 0x5566, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x3432, 0, 0x3F32, 0x556B, 0x3B21, /* 0xD0 */ 0, 0x3249, 0x556A, 0, 0x5568, 0x556C, 0x5569, 0x472B, /* 0xE0 */ 0x5C4D, 0x3F33, 0, 0x556D, 0, 0, 0x4E40, 0, /* 0xE0 */ 0x556E, 0, 0, 0x5570, 0, 0x437E, 0x556F, 0, /* 0xF0 */ 0x4023, 0, 0x3B7B, 0, 0, 0, 0x4250, 0x3C77 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5C[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4975, 0x406C, 0, 0x3C4D, 0x5571, 0x3E2D, 0x5572, /* 0x00 */ 0x5573, 0x3053, 0x423A, 0x3F52, 0, 0x5574, 0x4633, 0x3E2E, /* 0x00 */ 0, 0x3E2F, 0, 0x5575, 0, 0, 0x406D, 0, /* 0x10 */ 0, 0, 0x3E30, 0, 0, 0, 0, 0, /* 0x10 */ 0x5576, 0, 0x5577, 0, 0x4C60, 0, 0, 0, /* 0x20 */ 0x5578, 0, 0, 0, 0, 0x3646, 0, 0, /* 0x20 */ 0, 0x3D22, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0x5579, 0x557A, 0x3C5C, 0x3F2C, 0x4674, 0x3F54, 0x4878, 0x4722, /* 0x30 */ 0x3649, 0x557B, 0, 0, 0, 0x356F, 0x557C, 0, /* 0x40 */ 0x367E, 0, 0x464F, 0x3230, 0, 0x3B53, 0x557D, 0x5622, /* 0x40 */ 0x5621, 0x367D, 0, 0x557E, 0, 0x4538, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0x4230, 0, /* 0x50 */ 0x454B, 0x3C48, 0, 0, 0x4158, 0x4D7A, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x5624, 0, 0x5625, 0x4656, /* 0x60 */ 0, 0x3B33, 0, 0, 0, 0, 0x5627, 0, /* 0x70 */ 0, 0x5628, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0x5629, 0, 0, 0, /* 0x80 */ 0x3474, 0x562A, 0, 0, 0x562B, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x322C, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x413B, 0x3464, 0, 0x562D, 0x4C28, 0, 0, 0, /* 0xA0 */ 0, 0x4252, 0, 0x3359, 0, 0, 0x562F, 0x5631, /* 0xB0 */ 0x345F, 0, 0, 0x562E, 0x5630, 0, 0x5633, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x5632, 0, 0x5634, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0x5635, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0x463D, 0x362E, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x3265, 0x5636, 0x563B, 0, 0, 0x5639, 0, 0x4A77, /* 0xE0 */ 0x4A76, 0, 0, 0, 0, 0, 0x4567, 0, /* 0xF0 */ 0, 0, 0x5638, 0x3D54, 0, 0x5637 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5D[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3F72, /* 0x00 */ 0, 0, 0, 0x563C, 0, 0, 0x3A6A, 0, /* 0x00 */ 0, 0x5642, 0, 0, 0x5643, 0x563D, 0x3333, 0x563E, /* 0x10 */ 0x5647, 0x5646, 0x5645, 0x5641, 0, 0, 0, 0x5640, /* 0x10 */ 0, 0, 0x5644, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x4A78, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0x564B, 0x5648, 0, 0x564A, 0, /* 0x40 */ 0x4D72, 0, 0x5649, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0x563F, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0x3F73, 0, 0, 0x564C, 0, 0, 0x3A37, /* 0x60 */ 0, 0, 0, 0x564D, 0, 0, 0x564E, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x5651, 0, 0x5650, 0, 0, 0x564F, /* 0x80 */ 0, 0, 0, 0x4568, 0x563A, 0, 0, 0, /* 0x80 */ 0x5657, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0x5653, 0, 0, /* 0x90 */ 0, 0, 0x5652, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0x5654, 0, 0x5655, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0x5658, /* 0xB0 */ 0, 0, 0x4E66, 0, 0x5659, 0x5656, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x565A, 0, 0, 0x3460, 0x565B, 0, 0, /* 0xC0 */ 0, 0, 0x565D, 0x565C, 0, 0, 0x565E, 0, /* 0xD0 */ 0, 0, 0, 0x565F, 0, 0x406E, 0x3D23, 0, /* 0xD0 */ 0, 0x3D64, 0, 0x4163, 0, 0x3929, 0x3A38, 0x392A, /* 0xE0 */ 0x3570, 0, 0, 0x5660, 0, 0, 0x3A39, 0, /* 0xE0 */ 0, 0x384A, 0x5661, 0x4C26, 0x4743, 0x5662, 0, 0x392B, /* 0xF0 */ 0, 0, 0, 0x342C, 0, 0x4327, 0x3652 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3B54, 0x495B, 0, 0, 0x4841, 0, /* 0x00 */ 0, 0, 0, 0x5663, 0x3475, 0, 0, 0, /* 0x00 */ 0, 0x5666, 0, 0, 0, 0, 0x4421, 0, /* 0x10 */ 0, 0x5665, 0x5664, 0x5667, 0, 0x446B, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x3F63, 0, 0, /* 0x20 */ 0, 0, 0, 0x3B55, 0, 0x404A, 0, 0x4253, /* 0x20 */ 0x3522, 0, 0, 0x4422, 0, 0, 0x5668, 0x5669, /* 0x30 */ 0x3E6F, 0, 0, 0, 0, 0x4B39, 0, 0, /* 0x30 */ 0x566C, 0, 0, 0x566B, 0x566A, 0x497D, 0, 0x5673, /* 0x40 */ 0, 0, 0, 0, 0x4B5A, 0, 0x566D, 0, /* 0x40 */ 0, 0, 0, 0, 0x566F, 0x4B6B, 0, 0x566E, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x5670, /* 0x50 */ 0, 0x4828, 0x5671, 0x4A3E, 0x5672, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x3433, 0x4A3F, 0x472F, 0x5674, 0x5675, 0, /* 0x70 */ 0x392C, 0x3434, 0x5676, 0x3838, 0x4D44, 0x4D29, 0x3476, 0x5678, /* 0x70 */ 0, 0x4423, 0, 0x392D, 0x3E31, 0, 0, 0x485F, /* 0x80 */ 0, 0, 0x3E32, 0, 0, 0, 0, 0x3D78, /* 0x80 */ 0, 0, 0, 0, 0, 0x446C, 0x4A79, 0x4539, /* 0x90 */ 0, 0, 0x392E, 0, 0x495C, 0, 0, 0, /* 0x90 */ 0x5679, 0, 0, 0, 0, 0, 0x4559, 0x3A42, /* 0xA0 */ 0, 0, 0, 0x384B, 0, 0x446D, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0x3043, 0x3D6E, 0x392F, /* 0xB0 */ 0x4D47, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x567A, 0x567B, 0x4751, 0, 0, 0, 0, /* 0xC0 */ 0x567C, 0x4E77, 0x4F2D, 0, 0, 0, 0, 0x567E, /* 0xC0 */ 0x567D, 0, 0, 0x3347, 0, 0, 0x5721, 0, /* 0xD0 */ 0, 0, 0x5724, 0x5725, 0, 0x5723, 0, 0x4940, /* 0xD0 */ 0x3E33, 0x5727, 0x5726, 0x5722, 0, 0, 0, 0, /* 0xE0 */ 0x5728, 0x5729, 0, 0, 0x572A, 0, 0, 0, /* 0xE0 */ 0x572D, 0x572B, 0, 0x572C, 0x572E, 0, 0x3164, 0x446E, /* 0xF0 */ 0x572F, 0, 0x377A, 0x3276, 0x4736, 0, 0x5730, 0x467B /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_5F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4A5B, 0, 0x5731, 0x4F2E, 0, 0, 0, /* 0x00 */ 0, 0x5732, 0x4A40, 0x5735, 0x5021, 0x5031, 0, 0x3C30, /* 0x00 */ 0x4675, 0x5736, 0, 0x355D, 0x4424, 0x307A, 0x5737, 0x4A26, /* 0x10 */ 0x3930, 0, 0, 0x4350, 0, 0, 0, 0x446F, /* 0x10 */ 0, 0, 0, 0, 0, 0x4C6F, 0x3839, 0x384C, /* 0x20 */ 0, 0x5738, 0, 0, 0, 0x5739, 0, 0x573F, /* 0x20 */ 0, 0x3C65, 0, 0, 0, 0x4425, 0, 0x362F, /* 0x30 */ 0x573A, 0, 0, 0, 0x492B, 0, 0x4346, 0, /* 0x30 */ 0, 0x573B, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0x573C, 0, 0x3630, 0, 0x573D, 0, 0x573E, 0, /* 0x40 */ 0, 0x5740, 0, 0x4576, 0, 0, 0x5741, 0x5742, /* 0x50 */ 0, 0x5743, 0, 0, 0x5734, 0x5733, 0, 0, /* 0x50 */ 0, 0x5744, 0x3741, 0, 0, 0, 0x4927, 0, /* 0x60 */ 0, 0x3A4C, 0x4937, 0x4426, 0x494B, 0x5745, 0, 0, /* 0x60 */ 0x3E34, 0x3146, 0, 0x5746, 0, 0, 0, 0x5747, /* 0x70 */ 0, 0x4C72, 0, 0, 0x4860, 0, 0, 0x574A, /* 0x70 */ 0x317D, 0x402C, 0x5749, 0x5748, 0x3742, 0x4254, 0, 0x574E, /* 0x80 */ 0x574C, 0, 0x574B, 0x4E27, 0x3865, 0, 0, 0, /* 0x80 */ 0x3D79, 0x574D, 0x454C, 0x3D3E, 0, 0, 0, 0x4640, /* 0x90 */ 0x5751, 0x5750, 0, 0, 0, 0, 0x574F, 0, /* 0x90 */ 0x5752, 0x3866, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x5753, 0x497C, 0x3D5B, 0, 0, 0x5754, 0x4879, 0, /* 0xA0 */ 0, 0, 0, 0x4641, 0x4427, 0, 0, 0, /* 0xB0 */ 0, 0x4530, 0, 0, 0x5755, 0x352B, 0, 0, /* 0xB0 */ 0, 0, 0, 0x3F34, 0, 0x492C, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0x3477, 0x4726, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x5756, 0x3B56, /* 0xD0 */ 0x4B3A, 0x4B3B, 0, 0, 0x317E, 0x575B, 0, 0, /* 0xD0 */ 0x4369, 0, 0, 0, 0x5758, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0x3277, 0, 0, 0, 0, /* 0xE0 */ 0x582D, 0x575A, 0, 0, 0, 0x4730, 0, 0, /* 0xF0 */ 0x5759, 0, 0, 0x5757, 0, 0x397A, 0, 0x575D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_60[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x5763, 0x5769, /* 0x00 */ 0x5761, 0, 0x455C, 0, 0, 0x5766, 0x495D, 0, /* 0x10 */ 0, 0x5760, 0, 0x5765, 0x4E67, 0x3B57, 0, 0, /* 0x10 */ 0x4255, 0x575E, 0, 0, 0, 0x355E, 0x5768, 0x402D, /* 0x20 */ 0x3165, 0x5762, 0x3278, 0x5767, 0, 0, 0, 0x3631, /* 0x20 */ 0, 0x5764, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x576A, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0x576C, 0x5776, 0x5774, 0, 0, 0x5771, 0, /* 0x40 */ 0, 0, 0x5770, 0x4E78, 0, 0x5772, 0, 0, /* 0x40 */ 0x3632, 0, 0x3931, 0, 0, 0x3D7A, 0, 0, /* 0x50 */ 0, 0x5779, 0x576B, 0, 0, 0, 0, 0x576F, /* 0x50 */ 0x575F, 0, 0x327A, 0x5773, 0x5775, 0x4351, 0, 0, /* 0x60 */ 0x3A28, 0x3238, 0x576D, 0x5778, 0x5777, 0x3633, 0, 0x4229, /* 0x60 */ 0x3366, 0, 0, 0, 0, 0x3743, 0, 0x576E, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x577A, 0, 0x577D, 0x5821, 0, 0, 0, /* 0x80 */ 0, 0x3C3D, 0, 0x5827, 0x4470, 0x577B, 0, 0, /* 0x80 */ 0, 0, 0x5825, 0, 0x3279, 0, 0x5823, 0x5824, /* 0x90 */ 0, 0, 0x577E, 0x5822, 0, 0, 0, 0x3867, /* 0x90 */ 0x4D2A, 0, 0, 0x3435, 0, 0, 0x3159, 0x5826, /* 0xA0 */ 0, 0x473A, 0x302D, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x4861, 0x575C, 0x582C, 0x5830, 0x4C65, 0, /* 0xB0 */ 0x5829, 0, 0, 0, 0x4569, 0x582E, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x3E70, 0x582F, 0x4657, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x4F47, 0, 0x582B, 0, 0, 0, 0, /* 0xD0 */ 0x5831, 0, 0x397B, 0, 0x404B, 0, 0, 0x3054, /* 0xD0 */ 0x582A, 0x5828, 0, 0x415A, 0, 0, 0, 0x577C, /* 0xE0 */ 0x3B34, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x4246, 0x583D, 0, 0x415B, 0x5838, 0, 0x5835, 0x5836, /* 0xF0 */ 0, 0x3C66, 0x5839, 0x583C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_61[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5837, 0x3D25, 0, 0x583A, 0, 0, 0x5834, 0, /* 0x00 */ 0x4C7C, 0x4C7B, 0, 0, 0, 0x583E, 0x583F, 0x3055, /* 0x00 */ 0, 0, 0, 0, 0, 0x5833, 0, 0, /* 0x10 */ 0, 0, 0x3672, 0x3026, 0, 0, 0, 0x3436, /* 0x10 */ 0, 0x583B, 0, 0, 0, 0, 0, 0x5843, /* 0x20 */ 0x5842, 0, 0, 0, 0x5847, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x5848, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0x5846, 0x5849, 0x5841, 0x5845, /* 0x30 */ 0, 0, 0x584A, 0, 0x584B, 0, 0, 0x5840, /* 0x40 */ 0x3B7C, 0, 0x5844, 0x4256, 0x3932, 0x5832, 0x3F35, 0, /* 0x40 */ 0, 0, 0, 0x5858, 0, 0x4A69, 0, 0, /* 0x50 */ 0x584E, 0x584F, 0x5850, 0, 0, 0x5857, 0, 0x5856, /* 0x50 */ 0, 0, 0x4B7D, 0x3437, 0, 0x5854, 0, 0x3745, /* 0x60 */ 0x3334, 0, 0, 0x5851, 0, 0, 0x4E38, 0x5853, /* 0x60 */ 0x3056, 0x5855, 0, 0x584C, 0x5852, 0x5859, 0x3744, 0x584D, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x4D5D, 0, /* 0x70 */ 0, 0, 0x4D2B, 0, 0, 0, 0, 0x585C, /* 0x80 */ 0, 0, 0x5860, 0, 0, 0, 0x417E, 0, /* 0x80 */ 0x4E79, 0x5861, 0, 0, 0x585E, 0, 0x585B, 0, /* 0x90 */ 0, 0x585A, 0x585F, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x4A30, 0, 0, 0x4634, /* 0xA0 */ 0, 0x3746, 0, 0x5862, 0x585D, 0, 0x5863, 0, /* 0xA0 */ 0, 0, 0x377B, 0, 0, 0, 0x3231, 0, /* 0xB0 */ 0, 0, 0x586B, 0, 0, 0, 0x3438, 0, /* 0xB0 */ 0, 0, 0, 0x5869, 0, 0, 0x586A, 0x3A29, /* 0xC0 */ 0x5868, 0x5866, 0x5865, 0x586C, 0x5864, 0x586E, 0, 0, /* 0xC0 */ 0x327B, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x5870, 0, 0, 0x586F, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0x4428, 0, 0x5873, 0, 0x5871, 0x5867, /* 0xF0 */ 0x377C, 0, 0x5872, 0, 0x5876, 0x5875, 0x5877, 0x5874 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_62[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5878, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0x5879, 0x587A, 0x4A6A, 0, 0x587C, 0x587B, 0x3D3F, 0, /* 0x00 */ 0x402E, 0x3266, 0x327C, 0, 0x587D, 0, 0x303F, 0, /* 0x10 */ 0, 0, 0x404C, 0x587E, 0, 0x6C43, 0x5921, 0x3761, /* 0x10 */ 0, 0x5922, 0, 0, 0, 0, 0x406F, 0, /* 0x20 */ 0, 0, 0x5923, 0, 0, 0, 0x5924, 0x353A, /* 0x20 */ 0x5925, 0, 0x5926, 0x5927, 0x4257, 0, 0, 0, /* 0x30 */ 0x384D, 0, 0, 0x4C61, 0, 0, 0, 0x4B3C, /* 0x30 */ 0x3D6A, 0x5928, 0, 0, 0, 0, 0, 0x4070, /* 0x40 */ 0x6E3D, 0x4862, 0, 0x3C6A, 0, 0x3A4D, 0x5929, 0, /* 0x40 */ 0, 0, 0, 0x4247, 0, 0x4A27, 0, 0, /* 0x50 */ 0x4271, 0, 0, 0x592C, 0, 0, 0x592A, 0, /* 0x50 */ 0x592D, 0, 0, 0x592B, 0, 0, 0, 0, /* 0x60 */ 0x592E, 0, 0, 0, 0, 0, 0x4A31, 0, /* 0x60 */ 0, 0x3037, 0, 0, 0, 0, 0x495E, 0, /* 0x70 */ 0, 0x4863, 0, 0, 0x592F, 0, 0x5932, 0x3E35, /* 0x70 */ 0x353B, 0, 0x5930, 0x5937, 0x3E36, 0, 0, 0, /* 0x80 */ 0, 0x5931, 0x4744, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0x4D5E, 0x5933, 0x5934, 0x5938, 0x456A, 0x5935, 0x3933, /* 0x90 */ 0x405E, 0, 0, 0x5946, 0x4834, 0, 0x4272, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x4864, 0x5A2D, 0, 0, 0, /* 0xA0 */ 0, 0x4A7A, 0, 0, 0, 0x4471, 0, 0, /* 0xB0 */ 0, 0x4B75, 0, 0x593B, 0x3221, 0x436A, 0, 0, /* 0xB0 */ 0, 0, 0x5944, 0, 0, 0x4334, 0x593E, 0x5945, /* 0xC0 */ 0x5940, 0x5947, 0x5943, 0, 0x5942, 0x476F, 0, 0x593C, /* 0xC0 */ 0x327D, 0x593A, 0x3571, 0x4273, 0x5936, 0, 0, 0x5939, /* 0xD0 */ 0x3934, 0x405B, 0, 0x3E37, 0x5941, 0x4752, 0, 0, /* 0xD0 */ 0x3572, 0x3348, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0x3367, 0x3F21, 0x5949, 0x594E, /* 0xE0 */ 0, 0x594A, 0, 0x377D, 0, 0x594F, 0x3B22, 0x3969, /* 0xF0 */ 0, 0, 0, 0, 0, 0, 0x3D26, 0x593D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_63[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3B7D, 0x594C, 0, 0, 0, 0, 0x3B58, /* 0x00 */ 0x594D, 0x3044, 0, 0, 0x5948, 0, 0, 0, /* 0x00 */ 0, 0x4429, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x3573, 0, 0, 0, 0, 0, 0x3634, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0x594B, /* 0x20 */ 0x3027, 0, 0, 0x3A43, 0, 0, 0, 0x3F36, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x4472, 0, 0, 0x4854, 0x5951, 0x415E, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0x422A, 0, 0, 0x3B2B, 0x5952, 0, 0x5954, /* 0x40 */ 0x5950, 0, 0, 0, 0, 0x4A61, 0, 0x443D, /* 0x50 */ 0, 0, 0, 0, 0x415C, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x4A7B, /* 0x60 */ 0x3C4E, 0x5960, 0, 0x595F, 0, 0, 0x3F78, 0, /* 0x60 */ 0, 0, 0x377E, 0, 0, 0, 0x5959, 0x3E39, /* 0x70 */ 0, 0, 0x4668, 0x4731, 0, 0, 0, 0, /* 0x70 */ 0x5957, 0, 0, 0x415D, 0, 0, 0, 0, /* 0x80 */ 0x3C78, 0x595C, 0, 0, 0x3E38, 0, 0x5956, 0x595B, /* 0x80 */ 0, 0, 0x4753, 0, 0, 0, 0x5955, 0, /* 0x90 */ 0x3721, 0, 0, 0x335D, 0, 0, 0, 0x595D, /* 0x90 */ 0x4E2B, 0x3A4E, 0x4335, 0x595A, 0, 0x405C, 0, 0x3935, /* 0xA0 */ 0x3F64, 0x3166, 0x413C, 0x5958, 0x3545, 0, 0, 0, /* 0xA0 */ 0, 0, 0x3747, 0, 0x444F, 0x595E, 0, 0, /* 0xB0 */ 0, 0, 0, 0x415F, 0, 0, 0x5961, 0, /* 0xB0 */ 0x5963, 0, 0, 0x4237, 0x5969, 0, 0x5964, 0, /* 0xC0 */ 0, 0x5966, 0, 0, 0, 0, 0, 0x4941, /* 0xC0 */ 0x4473, 0, 0x5967, 0, 0, 0, 0x4D2C, 0, /* 0xD0 */ 0, 0, 0x4D48, 0x3439, 0, 0, 0, 0, /* 0xD0 */ 0, 0x302E, 0, 0x5965, 0, 0, 0, 0, /* 0xE0 */ 0, 0x5962, 0, 0, 0, 0, 0x3478, 0, /* 0xE0 */ 0, 0, 0, 0, 0x3167, 0, 0x5968, 0, /* 0xF0 */ 0, 0, 0x4D49 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_64[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x596C, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0x423B, 0, 0x5973, /* 0x00 */ 0, 0, 0, 0x596D, 0, 0, 0x596A, 0x5971, /* 0x10 */ 0, 0, 0, 0, 0x5953, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x596E, 0, /* 0x20 */ 0x5972, 0, 0, 0, 0x4842, 0x456B, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x596B, 0, 0x596F, 0, /* 0x30 */ 0, 0, 0x3748, 0, 0, 0, 0x3A71, 0, /* 0x30 */ 0, 0, 0x405D, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0x5977, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x4526, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x5974, /* 0x60 */ 0, 0x4B60, 0, 0, 0, 0, 0, 0x5975, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0x5976, 0, /* 0x70 */ 0x4C4E, 0, 0x4022, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0x3762, 0, 0, 0, 0, /* 0x80 */ 0x597D, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x3B35, 0x597A, 0, 0x5979, 0, 0, /* 0x90 */ 0, 0, 0x4732, 0, 0, 0, 0x4635, 0, /* 0x90 */ 0, 0, 0, 0, 0x4531, 0x597B, 0, 0, /* 0xA0 */ 0, 0x597C, 0, 0x496F, 0, 0x4745, 0x3B23, 0, /* 0xA0 */ 0x4071, 0, 0x4B50, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x3349, 0, 0x5A25, 0x597E, 0, 0, 0, /* 0xB0 */ 0, 0x4D4A, 0x5A27, 0, 0, 0x5A23, 0, 0x5A24, /* 0xC0 */ 0, 0, 0, 0, 0, 0x4160, 0, 0, /* 0xC0 */ 0, 0, 0x5A22, 0, 0x593F, 0, 0, 0, /* 0xD0 */ 0x5A26, 0, 0x5A21, 0, 0, 0, 0, 0, /* 0xD0 */ 0x5A2B, 0x5A2C, 0x4527, 0x5A2E, 0, 0, 0x3B24, 0x5A29, /* 0xE0 */ 0, 0, 0, 0, 0x353C, 0, 0, 0x5A2F, /* 0xE0 */ 0, 0x5A28, 0x5A33, 0, 0x5A32, 0, 0x5A31, 0, /* 0xF0 */ 0, 0, 0x5A34, 0, 0, 0x5A36, 0x3E71 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_65[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5A35, 0, 0, 0, 0, 0x5A39, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x5A37, 0, 0, 0, 0x5A38, 0x5970, 0, 0, /* 0x10 */ 0, 0, 0, 0x5A3B, 0x5A3A, 0, 0, 0, /* 0x20 */ 0, 0, 0x5978, 0x5A3C, 0x5A30, 0, 0, 0x3B59, /* 0x20 */ 0, 0, 0, 0, 0x5A3D, 0x5A3E, 0x5A40, 0x5A3F, /* 0x30 */ 0x5A41, 0x327E, 0, 0x3936, 0, 0, 0x4A7C, 0x402F, /* 0x30 */ 0, 0, 0, 0, 0, 0x384E, 0, 0, /* 0x40 */ 0x5A43, 0, 0, 0, 0, 0x5A46, 0, 0x4952, /* 0x40 */ 0, 0x355F, 0, 0, 0, 0x5A45, 0x5A44, 0x4754, /* 0x50 */ 0x5A47, 0x3635, 0, 0, 0, 0x5A49, 0x5A48, 0, /* 0x50 */ 0, 0, 0x343A, 0x3B36, 0, 0, 0x4658, 0, /* 0x60 */ 0, 0, 0, 0, 0x3749, 0, 0, 0, /* 0x60 */ 0x3F74, 0, 0x5A4A, 0, 0x4030, 0x4528, 0, 0x495F, /* 0x70 */ 0x5A4B, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x5A4C, 0x5A4D, 0, 0, 0, 0x4A38, /* 0x80 */ 0x555D, 0x4046, 0, 0, 0x494C, 0, 0x3A58, 0, /* 0x80 */ 0x4865, 0x4843, 0, 0, 0, 0, 0, 0x454D, /* 0x90 */ 0, 0x4E41, 0, 0x5A4F, 0x3C50, 0, 0, 0x5A50, /* 0x90 */ 0, 0x3036, 0, 0, 0x3654, 0x404D, 0, 0x4960, /* 0xA0 */ 0, 0, 0, 0x5A51, 0x3B42, 0x4347, 0, 0x3B5B, /* 0xA0 */ 0x3F37, 0, 0, 0, 0, 0, 0, 0x5A52, /* 0xB0 */ 0, 0x4A7D, 0, 0, 0x3177, 0x3B5C, 0, 0, /* 0xB0 */ 0, 0x5A55, 0, 0x5A53, 0x5A56, 0x4E39, 0x5A54, 0, /* 0xC0 */ 0, 0, 0, 0x407B, 0x5A57, 0, 0, 0x4232, /* 0xC0 */ 0, 0, 0x5A58, 0, 0, 0, 0, 0x347A, /* 0xD0 */ 0, 0x5A5A, 0, 0x5A59, 0, 0, 0, 0, /* 0xD0 */ 0x5A5B, 0x5A5C, 0x347B, 0, 0, 0x467C, 0x4336, 0x356C, /* 0xE0 */ 0x3B5D, 0x4161, 0, 0, 0x3D5C, 0x3030, 0, 0, /* 0xE0 */ 0, 0x5A5D, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0x3222, 0x5A61 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_66[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3937, 0x5A60, 0, 0, 0x3A2B, 0x3E3A, /* 0x00 */ 0, 0, 0x5A5F, 0, 0x3E3B, 0, 0x4C40, 0x3A2A, /* 0x00 */ 0, 0, 0, 0x3057, 0x404E, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0x5A66, 0, 0, 0x4031, /* 0x10 */ 0x3147, 0, 0, 0, 0, 0x3D55, 0, 0x4B66, /* 0x20 */ 0x3A72, 0, 0, 0, 0, 0x3E3C, 0, 0x4027, /* 0x20 */ 0, 0, 0, 0, 0x5A65, 0x5A63, 0x5A64, 0, /* 0x30 */ 0, 0, 0, 0, 0x436B, 0, 0, 0x5B26, /* 0x30 */ 0, 0x5A6A, 0x3B7E, 0x3938, 0x5A68, 0, 0, 0, /* 0x40 */ 0, 0x5A69, 0, 0x3F38, 0, 0, 0, 0x5A67, /* 0x40 */ 0, 0, 0x3B2F, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0x5A6C, 0x5A6B, 0x5A70, /* 0x50 */ 0, 0, 0x5A71, 0, 0x5A6D, 0, 0x3322, 0x5A6E, /* 0x60 */ 0x5A6F, 0x4855, 0, 0, 0, 0, 0x4961, 0x374A, /* 0x60 */ 0x5A72, 0, 0, 0, 0x4032, 0, 0x3E3D, 0, /* 0x70 */ 0, 0, 0x4352, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x3647, 0, 0x5A73, 0x5A77, 0, 0, 0x324B, /* 0x80 */ 0x5A74, 0x5A76, 0, 0, 0, 0, 0x5A75, 0, /* 0x80 */ 0, 0x3D6B, 0, 0, 0, 0, 0x4348, 0x3045, /* 0x90 */ 0x5A78, 0, 0, 0, 0, 0x5A79, 0, 0, /* 0x90 */ 0, 0, 0x442A, 0, 0, 0, 0x4E71, 0, /* 0xA0 */ 0, 0, 0, 0x3B43, 0, 0, 0x4A6B, 0, /* 0xA0 */ 0, 0, 0, 0, 0x4B3D, 0, 0, 0, /* 0xB0 */ 0x5B22, 0x5A7B, 0, 0, 0x5A7E, 0, 0x5A7D, 0, /* 0xB0 */ 0, 0x5A7A, 0, 0, 0x5B21, 0, 0, 0x465E, /* 0xC0 */ 0, 0x5A7C, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x5B23, 0, /* 0xD0 */ 0, 0x3D6C, 0x5B24, 0, 0x4D4B, 0x4778, 0, 0, /* 0xD0 */ 0x5B25, 0, 0, 0, 0, 0, 0x5B27, 0, /* 0xE0 */ 0, 0x5B28, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x5B29, 0, 0x364A, 0x3148, 0x3939, 0x5B2A, 0, 0x5B2B, /* 0xF0 */ 0x3D71, 0x4162, 0, 0, 0x5258, 0x413E, 0x413D, 0x4258 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_67[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3A47, 0, 0, 0x5072, 0, 0, 0, 0, /* 0x00 */ 0x376E, 0x4D2D, 0, 0x4A7E, 0, 0x497E, 0, 0x5B2C, /* 0x00 */ 0, 0, 0, 0, 0x3A73, 0x443F, 0x5B2D, 0x4F2F, /* 0x10 */ 0, 0, 0, 0x4B3E, 0, 0x442B, 0x5B2E, 0x347C, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x5B2F, 0x5B30, /* 0x20 */ 0x4C5A, 0, 0x4C24, 0x4B76, 0x4B5C, 0x3B25, 0x5B32, 0, /* 0x20 */ 0, 0x3C6B, 0, 0, 0x4B51, 0, 0x5B34, 0x5B37, /* 0x30 */ 0x5B36, 0, 0x3479, 0, 0, 0x3560, 0, 0x5B33, /* 0x30 */ 0, 0x5B35, 0, 0, 0, 0, 0x5B38, 0, /* 0x40 */ 0, 0x3F79, 0, 0, 0, 0, 0x4D7B, 0x3049, /* 0x40 */ 0x3A60, 0x423C, 0, 0x3C5D, 0, 0, 0x3E73, 0, /* 0x50 */ 0, 0x5B3B, 0, 0, 0x454E, 0, 0x5B39, 0x422B, /* 0x50 */ 0x5B3A, 0x3E72, 0x4C5D, 0x5B3C, 0x5B3D, 0x4D68, 0, 0, /* 0x60 */ 0, 0, 0x5B42, 0, 0, 0x393A, 0, 0x4755, /* 0x60 */ 0x5B3F, 0x456C, 0x5A5E, 0x5A62, 0, 0x354F, 0, 0x4747, /* 0x70 */ 0, 0, 0, 0, 0x5B41, 0, 0x3E3E, 0x4844, /* 0x70 */ 0, 0, 0, 0, 0, 0x5B47, 0, 0x487A, /* 0x80 */ 0, 0x5B3E, 0, 0x5B44, 0x5B43, 0, 0, 0, /* 0x80 */ 0x404F, 0, 0, 0, 0, 0x4B6D, 0, 0x4E53, /* 0x90 */ 0, 0, 0x4B67, 0, 0x324C, 0x3B5E, 0, 0, /* 0x90 */ 0x4F48, 0x5B46, 0x3F75, 0, 0, 0, 0x5B45, 0, /* 0xA0 */ 0, 0x5B40, 0, 0, 0, 0, 0, 0x384F, /* 0xA0 */ 0, 0, 0, 0x5B4C, 0x5B4A, 0, 0x324D, 0x5B48, /* 0xB0 */ 0x5B4E, 0x5B54, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x4248, 0, 0, 0x4A41, 0, 0x5B56, 0, /* 0xC0 */ 0, 0, 0x4922, 0, 0, 0, 0x5B55, 0x4770, /* 0xC0 */ 0x4B3F, 0x343B, 0, 0x4077, 0x3D40, 0, 0, 0, /* 0xD0 */ 0x4453, 0, 0x4D2E, 0, 0, 0x5B51, 0x5B50, 0, /* 0xD0 */ 0, 0, 0x5B52, 0, 0x5B4F, 0, 0, 0x5B57, /* 0xE0 */ 0, 0x5B4D, 0, 0, 0x5B4B, 0, 0x5B53, 0x5B49, /* 0xE0 */ 0, 0x436C, 0, 0x4C78, 0x3C46, 0x3A74, 0, 0, /* 0xF0 */ 0, 0, 0, 0x3A3A, 0, 0, 0x4B6F, 0x3341 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_68[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x444E, 0x464A, 0x3149, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0x4072, 0, 0, 0x4034, 0x372A, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x5B59, 0, /* 0x10 */ 0, 0x393B, 0x337C, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x5B5B, 0x3374, 0x5B61, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x5B5E, 0, 0x4073, 0, 0, 0, /* 0x30 */ 0x334B, 0x3A2C, 0, 0, 0x334A, 0x3A4F, 0, 0, /* 0x30 */ 0x5B5C, 0x3765, 0x374B, 0x456D, 0, 0, 0x5B5A, 0, /* 0x40 */ 0x3046, 0, 0, 0, 0, 0x5B5D, 0x5B5F, 0, /* 0x40 */ 0x364D, 0x372C, 0, 0x343C, 0x354B, 0, 0, 0, /* 0x50 */ 0, 0x5B62, 0, 0, 0x3A79, 0x4B71, 0, 0x3B37, /* 0x50 */ 0, 0, 0, 0x5B63, 0, 0, 0, 0x4930, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x5B6F, 0, 0x3233, 0x5B64, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x5B75, 0x5B65, /* 0x70 */ 0, 0x4E42, 0, 0x5B6C, 0, 0x475F, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x5B74, 0, 0x5B67, /* 0x80 */ 0, 0, 0, 0x3034, 0x5B69, 0, 0, 0x393C, /* 0x90 */ 0, 0, 0, 0x5B6B, 0, 0x5B6A, 0, 0x5B66, /* 0x90 */ 0x5B71, 0, 0x3E3F, 0, 0, 0, 0x546D, 0x3868, /* 0xA0 */ 0x4D7C, 0, 0, 0, 0, 0x5B68, 0, 0x4474, /* 0xA0 */ 0x3323, 0x3A2D, 0, 0x5B60, 0, 0x5B70, 0x3361, 0, /* 0xB0 */ 0, 0x5B6E, 0x5B72, 0, 0x456E, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x347E, 0, 0x5C32, 0, /* 0xC0 */ 0, 0x4C49, 0x5B77, 0x347D, 0, 0x5B7E, 0, 0, /* 0xC0 */ 0, 0, 0x4B40, 0, 0x5C21, 0x5C23, 0, 0x5C27, /* 0xD0 */ 0x5B79, 0, 0x432A, 0, 0, 0, 0, 0x456F, /* 0xD0 */ 0x5C2B, 0x5B7C, 0, 0x5C28, 0, 0, 0, 0x5C22, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0x3F39, 0x5C2C, /* 0xE0 */ 0, 0, 0x4033, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0x5C2A, 0x343D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_69[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4F50, 0x5B76, 0, 0, 0x5C26, 0x3058, 0, 0, /* 0x00 */ 0x5B78, 0, 0, 0x4C3A, 0x5B7D, 0x3F22, 0x4447, 0x5B73, /* 0x00 */ 0, 0, 0x5C25, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x3F7A, 0x5C2F, 0x3371, 0x3821, 0, 0, 0, /* 0x10 */ 0, 0x5C31, 0x5B7A, 0x5C30, 0, 0x5C29, 0x5B7B, 0, /* 0x20 */ 0x5C2D, 0, 0x5C2E, 0, 0, 0, 0, 0, /* 0x20 */ 0x5C3F, 0, 0, 0, 0x464E, 0, 0x5C24, 0, /* 0x30 */ 0, 0x5C3B, 0, 0, 0, 0x5C3D, 0, 0x4458, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x4D4C, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0x4976, 0x5C38, 0x424A, 0, 0, /* 0x50 */ 0, 0x5C3E, 0x413F, 0, 0x5C35, 0x5C42, 0x5C41, 0, /* 0x50 */ 0x466F, 0x5C40, 0x466A, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x5C44, 0x5C37, 0, 0x3648, 0x5C3A, 0x3D5D, /* 0x60 */ 0, 0, 0, 0x4760, 0x5C3C, 0x364B, 0, 0x5C34, /* 0x70 */ 0x5C36, 0x5C33, 0, 0, 0x4F30, 0x335A, 0x5C39, 0, /* 0x70 */ 0, 0x5C43, 0x3335, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x3A67, 0, 0, 0, 0x315D, 0, /* 0x80 */ 0, 0x5C54, 0, 0, 0x4F31, 0x5C57, 0, 0, /* 0x90 */ 0, 0, 0, 0x3F3A, 0x5C56, 0, 0, 0, /* 0x90 */ 0x5C55, 0, 0, 0, 0, 0, 0, 0x5C52, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0x5C46, 0, /* 0xA0 */ 0, 0x5C63, 0x5C45, 0, 0x5C58, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x5C50, 0, 0, 0x5C4B, 0x5C48, /* 0xB0 */ 0, 0x5C49, 0, 0x5C51, 0, 0, 0, 0x7422, /* 0xC0 */ 0, 0, 0x5C4E, 0x393D, 0x4448, 0x4164, 0x5C4C, 0, /* 0xC0 */ 0x5C47, 0, 0, 0x5C4A, 0, 0, 0, 0, /* 0xD0 */ 0x4D4D, 0x4B6A, 0, 0, 0, 0x5C4F, 0x5C59, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0x5C61, /* 0xE0 */ 0x5C5A, 0, 0, 0x5C67, 0, 0x5C65, 0, 0, /* 0xE0 */ 0, 0, 0x5C60, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0x5C5F, 0, 0x4450, 0, 0x4165, 0, 0x5C5D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6A[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5C5B, 0, 0, 0x5C62, 0, 0, /* 0x00 */ 0, 0, 0x5C68, 0x4875, 0x5C6E, 0, 0, 0, /* 0x00 */ 0, 0, 0x5C69, 0x5C6C, 0x5C66, 0, 0, 0x4374, /* 0x10 */ 0, 0x4938, 0, 0x5C5C, 0, 0, 0x5C64, 0x3E40, /* 0x10 */ 0, 0x4C4F, 0x5C78, 0x5C6B, 0, 0, 0, 0, /* 0x20 */ 0, 0x3822, 0x3223, 0x335F, 0, 0, 0x5C53, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x3E41, 0x5C70, 0, /* 0x30 */ 0x5C77, 0x3C79, 0x3372, 0, 0, 0x432E, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0x5C6D, 0, 0, 0x5C72, /* 0x40 */ 0x5C76, 0, 0, 0x3636, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x354C, 0x5C74, 0, 0, 0, 0, 0, 0x3521, /* 0x50 */ 0, 0x464B, 0x5C73, 0, 0, 0, 0x5C75, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x5C6F, 0, 0, 0, 0, 0, /* 0x70 */ 0x5C71, 0, 0, 0, 0, 0, 0, 0x3360, /* 0x70 */ 0x4349, 0, 0, 0, 0x5C7C, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x5C7A, 0x3869, 0, /* 0x80 */ 0x5C79, 0, 0, 0, 0, 0, 0, 0x5D21, /* 0x90 */ 0, 0, 0, 0, 0x5B58, 0, 0, 0, /* 0x90 */ 0x5C7B, 0, 0x5C7D, 0x5C7E, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x5D2C, 0, 0x5D28, 0, 0x5B6D, 0, /* 0xA0 */ 0, 0, 0, 0x5D27, 0, 0, 0, 0, /* 0xB0 */ 0x5D26, 0, 0, 0x5D23, 0, 0, 0, 0, /* 0xB0 */ 0, 0x5C6A, 0x5D25, 0x5D24, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x5D2A, 0, 0x4F26, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0x5D2D, 0x367B, 0, 0, 0x5D29, 0x5D2B, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x4827, 0, 0x5D2E, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0x5D32, 0x5D2F /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6B[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4D73, 0x5D30, 0, 0, /* 0x00 */ 0, 0, 0x5C5E, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0x5D33, 0, 0, 0, 0x5D34, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x3135, 0, 0x5D36, /* 0x10 */ 0x3767, 0x3C21, 0, 0x3655, 0, 0, 0, 0x3224, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x4D5F, 0, 0, 0, 0, 0x5D38, /* 0x30 */ 0x5D37, 0x5D3A, 0x353D, 0, 0, 0x3656, 0x343E, 0, /* 0x30 */ 0,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0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6C[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x5D61, 0, 0, 0, 0, 0, 0, 0x3B61, /* 0x00 */ 0, 0x4C31, 0, 0x5D62, 0x5D63, 0, 0, 0x3524, /* 0x10 */ 0, 0, 0, 0x5D64, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x5D66, 0x5D65, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x3F65, 0, 0, 0x4939, /* 0x30 */ 0x314A, 0, 0, 0, 0, 0, 0x4845, 0, /* 0x30 */ 0x4475, 0x3D41, 0x3561, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0x4846, 0, /* 0x40 */ 0x3C2E, 0, 0, 0, 0, 0x5D68, 0, 0x3440, /* 0x50 */ 0, 0, 0x3178, 0, 0, 0x4672, 0x5D67, 0x393E, /* 0x50 */ 0x4353, 0, 0x5D69, 0, 0, 0, 0, 0, /* 0x60 */ 0x5D71, 0, 0x5D6A, 0, 0, 0, 0, 0, /* 0x60 */ 0x4241, 0, 0x3562, 0x5D72, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x3768, 0, 0, 0x3525, 0x5D70, 0, /* 0x70 */ 0, 0x5D6E, 0x5D6B, 0x4D60, 0, 0, 0, 0, /* 0x80 */ 0x4440, 0, 0, 0, 0x4659, 0x5D6C, 0, 0, /* 0x80 */ 0x5D74, 0, 0x5D73, 0x3723, 0, 0, 0x322D, 0, /* 0x90 */ 0, 0x3A3B, 0x5D6D, 0x5D6F, 0, 0, 0, 0, /* 0x90 */ 0, 0x4B57, 0x4274, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x4B77, 0, 0, 0x5D7C, 0, /* 0xA0 */ 0, 0x5D7D, 0, 0x324F, 0, 0, 0, 0, /* 0xB0 */ 0x4A28, 0x4C7D, 0x5E21, 0x3C23, 0x3E42, 0x5D78, 0x5D7E, 0x3168, /* 0xB0 */ 0, 0x3637, 0, 0, 0x5D75, 0x5D7A, 0, 0, /* 0xC0 */ 0, 0x4074, 0x4771, 0, 0x4867, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0x5D77, 0, 0x4B21, 0, 0x5D79, /* 0xD0 */ 0, 0x5E24, 0, 0x5E22, 0, 0x5D7B, 0, 0, /* 0xD0 */ 0, 0x4B22, 0x4748, 0x3563, 0, 0x4525, 0, 0, /* 0xE0 */ 0x436D, 0, 0x5E25, 0, 0, 0, 0, 0x5E23, /* 0xE0 */ 0x4259, 0x5D76, 0, 0x314B /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6D[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x4D4E, 0x5E30, 0, 0, 0, /* 0x00 */ 0, 0, 0x5E2F, 0, 0, 0, 0, 0x4076, /* 0x10 */ 0, 0x5E2C, 0, 0x4D6C, 0, 0, 0x4636, 0x5E26, /* 0x10 */ 0, 0, 0, 0, 0, 0x4445, 0, 0, /* 0x20 */ 0, 0x314C, 0x393F, 0x5E29, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x3D27, 0x5E2E, 0, 0x5E2D, 0x5E28, 0, /* 0x30 */ 0x5E2B, 0, 0, 0x3368, 0, 0x5E2A, 0x4749, 0, /* 0x30 */ 0, 0x4E2E, 0, 0, 0x3E74, 0x4075, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0x5E36, 0x5E34, 0, 0x494D, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x5E31, 0x5E33, 0, 0x313A, 0, /* 0x60 */ 0, 0x3940, 0x4F32, 0, 0x333D, 0, 0x4962, 0, /* 0x60 */ 0, 0, 0, 0, 0x4D61, 0, 0, 0x3324, /* 0x70 */ 0x3F3B, 0x5E35, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0x5E3A, 0, 0, /* 0x80 */ 0x3E43, 0, 0, 0, 0x4D30, 0, 0x5E37, 0, /* 0x80 */ 0, 0, 0, 0x5E32, 0, 0x5E38, 0, 0, /* 0x90 */ 0, 0x4E5E, 0, 0x4573, 0x4642, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0x3336, /* 0xA0 */ 0, 0, 0x3155, 0, 0, 0x5E3E, 0, 0, /* 0xB0 */ 0x5E41, 0, 0, 0, 0x4E43, 0, 0, 0, /* 0xB0 */ 0x4D64, 0, 0, 0, 0, 0x5E48, 0x5E42, 0x5E3F, /* 0xC0 */ 0, 0, 0, 0x4E54, 0x5E45, 0, 0, 0, /* 0xC0 */ 0, 0x3D4A, 0x5E47, 0, 0, 0x5E4C, 0, 0, /* 0xD0 */ 0x4571, 0x5E4A, 0, 0, 0, 0, 0x5E44, 0, /* 0xD0 */ 0, 0x4338, 0, 0, 0x5E4B, 0, 0x5E40, 0, /* 0xE0 */ 0x5E46, 0, 0x5E4D, 0x307C, 0x5E43, 0, 0x5E4E, 0, /* 0xE0 */ 0, 0x3F3C, 0, 0x3D5F, 0, 0x4A25, 0, 0x3A2E, /* 0xF0 */ 0, 0x5E3B, 0x5E49, 0x453A /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4036, 0, 0x3369, /* 0x00 */ 0x3A51, 0x3E44, 0x5E3D, 0x3D42, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0x374C, 0, 0x5E3C, 0, 0, /* 0x10 */ 0, 0x5E52, 0x3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, 0x5E6E, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0x426C, 0x425A, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0x5E76, 0, 0, 0x5E7C, /* 0xE0 */ 0, 0, 0x5E7A, 0, 0x4529, 0, 0, 0x5F23, /* 0xF0 */ 0x5E77, 0, 0, 0, 0, 0, 0x5E78, 0x5E60 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_6F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3579, 0x493A, 0, 0, 0, 0x3C3F, 0, /* 0x00 */ 0, 0x3977, 0, 0, 0, 0, 0, 0x4F33, /* 0x00 */ 0, 0x5E74, 0, 0x5F22, 0x3169, 0x4166, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x4779, 0, 0x3441, 0x4E7A, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x4C21, 0x4452, 0, 0, 0, /* 0x20 */ 0, 0x5E7B, 0x5E7D, 0, 0, 0, 0, 0, /* 0x30 */ 0x4132, 0, 0, 0, 0, 0, 0x5F21, 0x5E79, /* 0x30 */ 0, 0x5E73, 0, 0, 0, 0x3443, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x3769, 0, 0, 0, /* 0x50 */ 0x5F2F, 0, 0, 0x5F2A, 0x4078, 0, 0, 0x3363, /* 0x50 */ 0, 0, 0, 0, 0x3D61, 0, 0x5F33, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0x5F2C, 0x442C, 0x5F29, /* 0x60 */ 0x4459, 0, 0, 0, 0x5F4C, 0, 0, 0, /* 0x70 */ 0x5F26, 0, 0x5F25, 0, 0x5F2E, 0, 0, 0, /* 0x70 */ 0x5F28, 0x5F27, 0x5F2D, 0, 0x4021, 0, 0x5F24, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x5F30, 0, /* 0x80 */ 0, 0x5F31, 0, 0, 0, 0, 0, 0x3442, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x5F36, 0, 0x5F35, 0x5F37, 0, 0, 0, /* 0xA0 */ 0, 0, 0x5F3A, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0x4543, 0, 0x5F34, 0, 0, 0, 0, /* 0xB0 */ 0, 0x5F38, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x3763, 0x4279, 0x5F32, 0x473B, 0, 0, 0x5F39, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0x5F3E, 0x5F3C, 0, 0, /* 0xD0 */ 0x5F3F, 0, 0, 0x5F42, 0, 0, 0, 0x5F3B, /* 0xD0 */ 0x396A, 0x4728, 0, 0, 0x5E39, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0x4D74, 0x5F3D, 0, 0x5F41, 0x4275, /* 0xE0 */ 0, 0x5F40, 0, 0x5F2B, 0, 0, 0x6F69, 0, /* 0xF0 */ 0, 0, 0x5F45, 0, 0, 0, 0x5F49 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_70[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x5F47, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x5F43, 0, 0x5F44, 0, 0, 0, 0x5F48, /* 0x00 */ 0, 0x5F46, 0, 0, 0, 0x494E, 0, 0, /* 0x10 */ 0x5F4E, 0, 0x5F4B, 0x5F4A, 0, 0x5F4D, 0x4654, 0x5F4F, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x4375, 0x426D, /* 0x20 */ 0, 0, 0, 0, 0x4025, 0, 0, 0, /* 0x20 */ 0x5F50, 0, 0x5F52, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x5F51, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x5E75, 0, 0, 0, /* 0x40 */ 0, 0x5F53, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x4667, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x5F54, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0x3250, 0, 0, 0, 0x4574, /* 0x60 */ 0x3325, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0x3564, 0, 0, 0, 0x3C5E, 0x3A52, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0x4F27, 0x3F66, 0, 0, 0, 0x316A, 0, /* 0x80 */ 0, 0, 0x5F56, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x5F55, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0x5F59, 0x433A, 0x5F5C, 0x5F57, /* 0xA0 */ 0, 0, 0, 0x5F5B, 0, 0, 0, 0, /* 0xB0 */ 0x5F5A, 0x4540, 0x3059, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0x4E75, 0, 0, 0x5F5E, 0, 0, 0, 0x3128, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0x5F60, 0, 0, 0, 0x5F5F, 0, 0x5F5D, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0x5F58, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0x4B23, 0, 0, 0, 0x5F62 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_71[] = {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 0xC0 */ 0x4E55, 0, 0x5F76, 0, 0x5F78, 0x316D, 0, 0x5F73, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0x535B, /* 0xD0 */ 0x5F7A, 0, 0, 0, 0, 0x4167, 0x3B38, 0x5F7C, /* 0xE0 */ 0, 0, 0, 0, 0x5F7B, 0x3F24, 0x5259, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x5F7D, 0, 0, /* 0xF0 */ 0, 0x6021, 0, 0x5F6E, 0x5F7E, 0, 0, 0x6022 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_72[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x477A, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0x6023, 0, 0, /* 0x00 */ 0x6024, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x6025, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x6026, 0, 0x445E, 0, 0x6028, 0x6027, 0, 0, /* 0x20 */ 0x6029, 0, 0x602A, 0, 0, 0x3C5F, 0x4963, 0, /* 0x30 */ 0, 0, 0x4C6C, 0x602B, 0x602C, 0x4156, 0x3C24, 0x602D, /* 0x30 */ 0x602E, 0, 0, 0, 0, 0, 0x602F, 0x4A52, /* 0x40 */ 0x4847, 0, 0, 0x6030, 0x4757, 0, 0, 0, /* 0x40 */ 0, 0, 0x442D, 0, 0, 0, 0, 0, /* 0x50 */ 0x6031, 0x3267, 0, 0x356D, 0, 0x4C46, 0, 0x4C36, /* 0x50 */ 0, 0x3234, 0x4F34, 0, 0, 0, 0, 0x4B52, /* 0x60 */ 0, 0x4A2A, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x4037, 0, 0x6032, 0, 0, 0, /* 0x70 */ 0, 0x4643, 0, 0, 0, 0x3823, 0x6033, 0, /* 0x70 */ 0x3A54, 0x6035, 0x6034, 0, 0, 0, 0, 0x6036, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x6037, 0, 0, 0, 0x6038, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x353E, 0, 0x6039, 0, 0, 0, 0, 0x603A, /* 0xA0 */ 0, 0, 0, 0, 0x3824, 0, 0, 0x4848, /* 0xA0 */ 0, 0, 0x603C, 0, 0, 0, 0x3E75, 0, /* 0xB0 */ 0, 0x603B, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0x3638, 0x603D, 0x603F, 0, 0x603E, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x6040, 0, /* 0xC0 */ 0x3851, 0, 0x6041, 0, 0, 0, 0, 0x3669, /* 0xD0 */ 0, 0x4140, 0, 0x397D, 0, 0, 0, 0, /* 0xD0 */ 0x6043, 0x6044, 0x6042, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0x3C6D, 0, 0, 0x4648, 0x3639, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x6046, /* 0xF0 */ 0x432C, 0x6045, 0, 0, 0x4F35, 0x4762 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_73[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x6049, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x604B, 0x6048, /* 0x10 */ 0, 0, 0, 0x4C54, 0x604A, 0x604C, 0, 0x4E44, /* 0x10 */ 0, 0, 0, 0, 0, 0x6050, 0, 0, /* 0x20 */ 0, 0x604F, 0x4376, 0x472D, 0, 0, 0x3825, 0x604E, /* 0x20 */ 0, 0, 0, 0, 0x604D, 0, 0x4D31, 0x4D32, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x6051, 0x316E, /* 0x30 */ 0, 0, 0, 0, 0x3976, 0x3B62, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0x6052, 0x6053, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0x6055, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x3D43, 0, 0, 0, 0, /* 0x60 */ 0x6057, 0, 0x6056, 0, 0, 0, 0, 0, /* 0x60 */ 0x6058, 0, 0x334D, 0, 0, 0x605A, 0, 0, /* 0x70 */ 0x6059, 0, 0x605C, 0x605B, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0x383C, 0, 0, 0x4E28, /* 0x80 */ 0, 0x364C, 0, 0x3226, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x366A, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0x3461, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x4E68, 0x605E, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x6060, 0, 0, 0, 0, /* 0xB0 */ 0x6061, 0, 0x3251, 0, 0, 0, 0, 0, /* 0xC0 */ 0x605D, 0, 0x3B39, 0, 0, 0x4441, 0x605F, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0x6064, 0, /* 0xD0 */ 0x3C6E, 0, 0, 0, 0, 0x6062, 0, 0, /* 0xE0 */ 0, 0, 0x373E, 0, 0, 0x4849, 0x6063, 0, /* 0xE0 */ 0, 0x607E, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0x6069, 0, 0, 0, 0, 0, 0x383D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_74[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3565, 0, 0x6066, 0x4D7D, 0, /* 0x00 */ 0, 0x4E30, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x4276, 0, 0, 0x6068, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x606A, 0x4E56, 0x3657, 0x487C, 0x474A, 0, /* 0x30 */ 0, 0, 0x606B, 0, 0, 0, 0, 0x606D, /* 0x30 */ 0, 0x6070, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x606C, 0, 0, /* 0x50 */ 0, 0x606F, 0x386A, 0x314D, 0x6071, 0, 0x3F70, 0x606E, /* 0x50 */ 0x4E5C, 0, 0, 0x6074, 0x7424, 0, 0, 0, /* 0x60 */ 0, 0x6072, 0x6075, 0, 0, 0, 0, 0x6067, /* 0x60 */ 0x6073, 0, 0, 0x3A3C, 0, 0, 0x6076, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x6077, 0, /* 0x70 */ 0, 0, 0, 0x4D7E, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x6078, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0x6079, 0, /* 0x90 */ 0, 0, 0x6065, 0, 0, 0, 0, 0x607A, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x3444, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x3C25, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0x607B, 0, 0, 0, 0, 0x607C, /* 0xC0 */ 0, 0, 0, 0, 0x607D, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0x313B, 0, 0, 0, /* 0xD0 */ 0x6121, 0, 0x493B, 0x6122, 0, 0, 0x3424, 0x6123, /* 0xE0 */ 0, 0x6124, 0, 0, 0, 0, 0x6125, 0, /* 0xE0 */ 0x6127, 0x6128, 0x6126, 0, 0, 0, 0x4953, 0x612A, /* 0xF0 */ 0x6129 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_75[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x612C, 0x612B, 0x612D, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0x612E, 0x6130, 0x612F, 0, /* 0x00 */ 0, 0x3979, 0, 0x6132, 0, 0x6131, 0, 0, /* 0x10 */ 0x3445, 0, 0x3F53, 0, 0x453C, 0, 0x6133, 0x4038, /* 0x10 */ 0, 0, 0, 0x3B3A, 0, 0x3179, 0x6134, 0, /* 0x20 */ 0x4D51, 0, 0, 0x4A63, 0x6135, 0, 0, 0, /* 0x20 */ 0x4544, 0x4D33, 0x3943, 0x3F3D, 0, 0, 0, 0x434B, /* 0x30 */ 0x5234, 0, 0x442E, 0x3268, 0x6136, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0x6137, 0, 0x613C, 0, /* 0x40 */ 0, 0x613A, 0x6139, 0x5A42, 0x3326, 0x6138, 0, 0x305A, /* 0x40 */ 0, 0x482A, 0, 0, 0x484A, 0, 0, 0, /* 0x50 */ 0, 0x4E31, 0x613D, 0x613B, 0x435C, 0x4026, 0, 0, /* 0x50 */ 0x482B, 0, 0x492D, 0, 0x613F, 0x4E2C, 0x374D, 0x6140, /* 0x60 */ 0, 0x613E, 0x4856, 0x6141, 0, 0x6142, 0, 0, /* 0x60 */ 0x305B, 0, 0, 0x3E76, 0x6147, 0, 0x6144, 0x466D, /* 0x70 */ 0x6143, 0, 0, 0, 0, 0, 0, 0x3526, /* 0x70 */ 0, 0, 0x614A, 0, 0, 0, 0x6145, 0x6146, /* 0x80 */ 0, 0x6149, 0x6148, 0x4925, 0, 0, 0x4142, 0x4141, /* 0x80 */ 0, 0x353F, 0, 0, 0x614B, 0, 0, 0, /* 0x90 */ 0, 0, 0x614C, 0, 0, 0x614D, 0, 0, /* 0x90 */ 0, 0, 0, 0x614F, 0, 0x614E, 0, 0, /* 0xA0 */ 0, 0, 0, 0x3156, 0, 0, 0, 0, /* 0xA0 */ 0, 0x6157, 0x4868, 0x6151, 0, 0x6153, 0, 0, /* 0xB0 */ 0x6155, 0x3F3E, 0, 0, 0x6156, 0x6154, 0x3C40, 0, /* 0xB0 */ 0, 0, 0x6150, 0x6152, 0, 0x4942, 0, 0x3E49, /* 0xC0 */ 0, 0, 0x6159, 0, 0, 0x6158, 0, 0, /* 0xC0 */ 0, 0, 0x615A, 0, 0x3C26, 0x3A2F, 0, 0, /* 0xD0 */ 0x4577, 0x615B, 0, 0x444B, 0, 0, 0x615D, 0, /* 0xD0 */ 0, 0, 0x4E21, 0x615C, 0, 0, 0, 0, /* 0xE0 */ 0, 0x4169, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x6162, 0, 0x6164, 0x6165, 0x4354, 0, 0, 0, /* 0xF0 */ 0, 0, 0x6163, 0, 0x6160, 0, 0x615E, 0x615F /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_76[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6161, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x6168, 0, 0x6166, 0, 0x6167, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0x6169, /* 0x10 */ 0x616B, 0x616C, 0x616D, 0, 0x616E, 0, 0, 0x616A, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x6170, 0, 0, 0, 0x616F, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x6171, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x4E45, 0, 0, 0, 0x6174, 0x6172, /* 0x40 */ 0x6173, 0, 0, 0, 0x3462, 0, 0, 0, /* 0x40 */ 0, 0, 0x4C7E, 0, 0, 0, 0x4A4A, 0, /* 0x50 */ 0x6176, 0, 0, 0, 0x6175, 0, 0, 0, /* 0x50 */ 0, 0x6177, 0x6178, 0, 0, 0, 0, 0x617C, /* 0x60 */ 0x6179, 0x617A, 0x617B, 0, 0x617D, 0, 0, 0, /* 0x60 */ 0x617E, 0, 0x6221, 0, 0, 0, 0x6222, 0, /* 0x70 */ 0x6223, 0, 0x482F, 0x4550, 0x6224, 0x4772, 0x4934, 0, /* 0x70 */ 0x6225, 0, 0, 0x6226, 0x452A, 0, 0x3327, 0x3944, /* 0x80 */ 0x6227, 0, 0, 0x6228, 0, 0, 0x6229, 0, /* 0x80 */ 0x3B29, 0, 0, 0x622B, 0, 0, 0x622A, 0, /* 0x90 */ 0, 0x622C, 0x622D, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0x4869, 0, /* 0xA0 */ 0x622E, 0, 0, 0, 0x622F, 0, 0, 0x7369, /* 0xB0 */ 0x6230, 0x6231, 0x6232, 0, 0, 0, 0, 0x3B2E, /* 0xB0 */ 0, 0, 0x6233, 0x4756, 0, 0, 0x4B5F, 0, /* 0xC0 */ 0x314E, 0, 0x3157, 0, 0, 0x6234, 0, 0, /* 0xC0 */ 0, 0, 0x6236, 0, 0, 0, 0x6235, 0x4570, /* 0xD0 */ 0, 0, 0, 0x4039, 0x5D39, 0, 0x6237, 0x4C41, /* 0xD0 */ 0, 0x6238, 0, 0x3446, 0x4857, 0x6239, 0, 0x623A, /* 0xE0 */ 0, 0, 0x623B, 0, 0, 0, 0x4C5C, 0, /* 0xE0 */ 0, 0, 0x4C55, 0, 0x443E, 0, 0, 0, /* 0xF0 */ 0x416A, 0, 0, 0x623D, 0, 0, 0x3D62 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_77[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3E4A, 0, 0, 0x6240, 0, 0, 0x623F, /* 0x00 */ 0x623E, 0x487D, 0, 0x3447, 0x3829, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x6246, 0, 0, 0x6243, 0x3F3F, /* 0x10 */ 0x4C32, 0, 0, 0, 0x6242, 0x6244, 0x6245, 0, /* 0x20 */ 0, 0x6241, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0x6247, /* 0x30 */ 0x6248, 0, 0x442F, 0, 0x3463, 0, 0, 0, /* 0x30 */ 0x4365, 0, 0, 0, 0, 0, 0, 0x6249, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0x624A, 0x624D, 0, 0, 0, 0, /* 0x50 */ 0, 0x3F67, 0, 0x4644, 0, 0x624E, 0x4B53, 0, /* 0x60 */ 0x624B, 0, 0, 0x624C, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x6251, 0, 0, 0, 0, 0x6250, 0x624F, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x6253, 0, 0, 0x6252, 0, /* 0x80 */ 0, 0x6254, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0x6256, 0, /* 0x90 */ 0x6255, 0, 0, 0, 0, 0x4A4D, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0x3D56, 0x4E46, 0, 0, /* 0xA0 */ 0x6257, 0, 0, 0x4637, 0, 0, 0x6258, 0, /* 0xB0 */ 0, 0x6259, 0, 0x625D, 0x625B, 0x625C, 0, 0x625A, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0x625E, /* 0xC0 */ 0, 0, 0, 0, 0, 0x625F, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0x6260, /* 0xD0 */ 0, 0, 0x6261, 0x4C37, 0x6262, 0, 0, 0, /* 0xD0 */ 0, 0, 0x4C70, 0x6263, 0, 0x434E, 0, 0x476A, /* 0xE0 */ 0, 0x366B, 0, 0, 0, 0x433B, 0x6264, 0x363A, /* 0xE0 */ 0, 0, 0, 0x4050, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0, 0x6265 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_78[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3A3D, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0x6266, 0, 0, 0, /* 0x00 */ 0, 0, 0x6267, 0, 0x3826, 0x3A55, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x6269, 0, 0, 0, 0, 0x4556, 0x3A56, 0x354E, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x4B24, 0, 0x474B, 0, 0, 0, /* 0x30 */ 0, 0, 0x4557, 0, 0, 0, 0, 0x395C, /* 0x30 */ 0, 0, 0, 0, 0, 0x626B, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0x3E4B, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0x4E32, 0x3945, 0, 0, 0x3827, /* 0x60 */ 0, 0, 0x4823, 0, 0x626D, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0x626F, 0, 0, 0, /* 0x70 */ 0, 0x386B, 0, 0, 0, 0, 0x626E, 0x4476, /* 0x80 */ 0, 0, 0, 0, 0x6271, 0x3337, 0x626C, 0, /* 0x80 */ 0, 0x486A, 0, 0x3130, 0, 0x3A6C, 0, 0x4F52, /* 0x90 */ 0, 0, 0x6270, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x6272, 0, 0, 0, 0x4A4B, /* 0xA0 */ 0, 0x4059, 0x6274, 0, 0, 0, 0, 0x6275, /* 0xA0 */ 0, 0, 0, 0, 0, 0x6273, 0, 0, /* 0xB0 */ 0, 0, 0x334E, 0, 0x627B, 0, 0x627A, 0, /* 0xB0 */ 0, 0x3C27, 0, 0, 0, 0x627C, 0x6277, 0, /* 0xC0 */ 0, 0, 0x627D, 0x6278, 0, 0, 0, 0, /* 0xC0 */ 0x4858, 0x6276, 0, 0, 0x6279, 0, 0, 0, /* 0xD0 */ 0, 0, 0x6322, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0x6321, /* 0xE0 */ 0x4B61, 0, 0, 0, 0x627E, 0, 0, 0x306B, /* 0xE0 */ 0, 0, 0, 0, 0x6324, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0, 0, 0x6323 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_79[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3E4C, 0, 0, 0, 0, 0, 0x6325, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x4143, 0, /* 0x00 */ 0, 0x6327, 0x6326, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x6328, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x6268, 0, /* 0x20 */ 0, 0, 0x626A, 0x632A, 0x6329, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x3C28, 0, 0x4E69, 0, 0x3C52, 0, /* 0x30 */ 0x632B, 0x3737, 0, 0, 0, 0, 0, 0x3540, /* 0x40 */ 0x3527, 0x3B63, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0x4D34, 0, 0, 0x6331, 0, 0x6330, 0x4144, 0x632D, /* 0x50 */ 0, 0, 0x632F, 0, 0, 0x3D4B, 0x3F40, 0x632E, /* 0x50 */ 0x632C, 0, 0x472A, 0, 0, 0x3E4D, 0, 0, /* 0x60 */ 0x493C, 0, 0, 0, 0, 0x3A57, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0x4578, /* 0x70 */ 0, 0, 0x6332, 0, 0, 0, 0, 0x6333, /* 0x70 */ 0x6349, 0x3658, 0, 0, 0x4F3D, 0x4135, 0, 0, /* 0x80 */ 0, 0, 0x6334, 0, 0, 0x3252, 0x4477, 0x4A21, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0x6335, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0x357A, 0x6336, /* 0xA0 */ 0, 0, 0x6338, 0, 0, 0, 0x6339, 0, /* 0xA0 */ 0x4729, 0, 0, 0x633A, 0, 0, 0, 0, /* 0xB0 */ 0, 0x633B, 0x633C, 0, 0, 0x3659, 0x3253, 0x4645, /* 0xB0 */ 0x3D28, 0x3B64, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x633D, 0, 0x3D29, 0, 0, 0, 0, /* 0xC0 */ 0, 0x324A, 0x4943, 0, 0, 0x633E, 0, 0, /* 0xD0 */ 0x486B, 0, 0, 0, 0, 0, 0, 0x4145, /* 0xD0 */ 0, 0x6341, 0, 0x6342, 0x4769, 0, 0x3F41, 0x633F, /* 0xE0 */ 0, 0x4361, 0, 0, 0x6340, 0, 0, 0, /* 0xE0 */ 0x3E4E, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0x305C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7A[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3529, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0x6343, 0, 0, 0x4478, 0, 0x6344, 0x4047, 0, /* 0x00 */ 0, 0, 0, 0, 0x4C2D, 0, 0, 0x4923, /* 0x10 */ 0x6345, 0x6346, 0x4355, 0, 0x4E47, 0, 0, 0x6348, /* 0x10 */ 0x6347, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x3C6F, 0, /* 0x20 */ 0, 0x634A, 0x3070, 0, 0, 0, 0, 0x634D, /* 0x30 */ 0, 0, 0, 0x634B, 0x3254, 0x374E, 0x634C, 0x3946, /* 0x30 */ 0x3972, 0, 0x4A66, 0x634E, 0, 0, 0x4B54, 0, /* 0x40 */ 0, 0x6350, 0, 0, 0, 0x4051, 0x314F, 0x323A, /* 0x40 */ 0x302C, 0, 0, 0, 0, 0, 0, 0x634F, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0x6351, 0x6352, 0x3E77, 0, 0, 0, 0, /* 0x60 */ 0, 0x6353, 0, 0x334F, 0, 0, 0, 0, /* 0x60 */ 0x6355, 0, 0, 0, 0x376A, 0, 0x3566, 0, /* 0x70 */ 0, 0x6356, 0x3675, 0, 0, 0x6357, 0, 0x407C, /* 0x70 */ 0, 0x464D, 0, 0x4060, 0x3A75, 0, 0, 0, /* 0x80 */ 0x6358, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x4362, 0x416B, 0, 0x635A, 0x635C, 0x6359, /* 0x90 */ 0x635B, 0, 0, 0, 0, 0, 0, 0x3722, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0x635D, 0x3726, 0, 0, 0, 0x3567, 0x4D52, /* 0xA0 */ 0x635F, 0, 0, 0, 0, 0, 0x6360, 0, /* 0xB0 */ 0, 0, 0x312E, 0, 0, 0, 0, 0x6363, /* 0xB0 */ 0, 0, 0, 0x3376, 0x6362, 0x6361, 0, 0x6365, /* 0xC0 */ 0x635E, 0, 0x6366, 0x4E29, 0, 0x6367, 0, 0x6368, /* 0xC0 */ 0, 0, 0x5474, 0x636A, 0, 0x6369, 0, 0, /* 0xD0 */ 0, 0x636B, 0x636C, 0, 0x4E35, 0x636D, 0, 0x706F, /* 0xD0 */ 0x3E4F, 0x636E, 0x636F, 0x3D57, 0, 0x4638, 0x6370, 0, /* 0xE0 */ 0, 0, 0x4328, 0, 0, 0x6371, 0, 0x433C, /* 0xE0 */ 0x6372, 0, 0, 0, 0, 0, 0x3625, 0, /* 0xF0 */ 0x513F, 0x435D, 0x3C33, 0, 0, 0, 0, 0x3448 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7B[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6373, 0, 0x6422, 0, 0x6376, 0, /* 0x00 */ 0x3568, 0, 0x6375, 0x6424, 0, 0, 0, 0x6374, /* 0x00 */ 0, 0x3E50, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x6378, 0x6379, 0, 0x452B, 0, 0, 0x637A, 0, /* 0x10 */ 0x335E, 0, 0, 0, 0, 0x3F5A, 0x4964, 0, /* 0x20 */ 0x637C, 0, 0, 0, 0x4268, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x6377, 0, 0x637B, 0x637D, 0, /* 0x30 */ 0, 0x3A7B, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0x6426, 0x492E, 0, /* 0x40 */ 0x4826, 0x4579, 0, 0x365A, 0x6425, 0x6423, 0, 0x4835, /* 0x40 */ 0x637E, 0x435E, 0x457B, 0, 0x457A, 0, 0x3A76, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0x6438, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0x6428, 0, 0x642A, /* 0x60 */ 0, 0, 0, 0, 0x642D, 0, 0x642E, 0, /* 0x60 */ 0x642B, 0x642C, 0, 0, 0x6429, 0x6427, 0, 0, /* 0x70 */ 0, 0, 0x6421, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x4A4F, 0x3255, /* 0x80 */ 0, 0, 0, 0x6435, 0, 0x6432, 0, 0x6437, /* 0x80 */ 0, 0, 0x6436, 0, 0x4773, 0x4C27, 0, 0x3B3B, /* 0x90 */ 0x6430, 0x6439, 0x6434, 0, 0x6433, 0x642F, 0, 0x6431, /* 0x90 */ 0, 0x3449, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x433D, 0, 0, 0x407D, 0, 0, /* 0xA0 */ 0, 0x4822, 0, 0, 0x643E, 0, 0, 0, /* 0xB0 */ 0x4824, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x4061, 0x643B, 0, 0, 0x484F, 0, 0x643F, 0x4A53, /* 0xC0 */ 0, 0x435B, 0, 0x643A, 0x643C, 0, 0, 0x643D, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0x6440, 0, 0, /* 0xD0 */ 0x3C44, 0, 0, 0, 0x4646, 0x6445, 0x6444, 0, /* 0xE0 */ 0, 0x6441, 0, 0, 0, 0x4F36, 0, 0, /* 0xE0 */ 0, 0, 0, 0x644A, 0, 0, 0x644E, 0x644B /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7C[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6447, 0, 0, 0, 0, 0, 0, 0x6448, /* 0x00 */ 0, 0, 0, 0, 0, 0x644D, 0, 0, /* 0x00 */ 0, 0x6442, 0x5255, 0x6449, 0x6443, 0, 0, 0x644C, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0x6452, /* 0x10 */ 0, 0x344A, 0, 0x644F, 0, 0, 0, 0x6450, /* 0x20 */ 0, 0, 0x6451, 0x6454, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0x6453, /* 0x30 */ 0x4876, 0, 0, 0, 0, 0x6455, 0x4E7C, 0x4A6D, /* 0x30 */ 0x645A, 0, 0, 0x6457, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x6456, 0x4052, 0, 0x6459, /* 0x40 */ 0x645B, 0, 0, 0, 0x6458, 0, 0x645F, 0, /* 0x50 */ 0x645C, 0, 0, 0, 0, 0, 0, 0x645D, /* 0x50 */ 0x6446, 0, 0, 0, 0x645E, 0x6460, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x6461, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0x4A46, 0, 0x6462, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x4C62, 0, /* 0x70 */ 0, 0x364E, 0x3729, 0x6463, 0, 0, 0, 0, /* 0x80 */ 0, 0x4A34, 0, 0x3F68, 0, 0x4C30, 0, 0, /* 0x80 */ 0x6464, 0, 0x4E33, 0, 0, 0x4774, 0, 0x4146, /* 0x90 */ 0x4734, 0, 0, 0x3D4D, 0, 0, 0, 0x3040, /* 0x90 */ 0, 0x6469, 0x6467, 0, 0x6465, 0x3421, 0, 0x3E51, /* 0xA0 */ 0x646A, 0, 0, 0x6468, 0, 0x6466, 0x646E, 0, /* 0xA0 */ 0, 0x646D, 0x646C, 0x646B, 0, 0, 0, 0, /* 0xB0 */ 0, 0x646F, 0, 0, 0, 0x6470, 0x403A, 0, /* 0xB0 */ 0x6471, 0, 0x6473, 0, 0, 0x6472, 0, 0, /* 0xC0 */ 0, 0, 0x3852, 0, 0, 0, 0x4138, 0, /* 0xC0 */ 0, 0, 0x6475, 0, 0, 0, 0x457C, 0, /* 0xD0 */ 0x6474, 0, 0, 0, 0x6476, 0, 0x4A35, 0x416C, /* 0xD0 */ 0x3947, 0, 0x6477, 0, 0, 0, 0, 0x4E48, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x6479, /* 0xE0 */ 0, 0, 0x647A, 0, 0x647B, 0, 0x647C, 0, /* 0xF0 */ 0x3B65, 0, 0x647D, 0x374F, 0, 0, 0x356A /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7D[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x352A, 0, 0x6521, 0, 0x4C73, 0x3948, 0x647E, 0, /* 0x00 */ 0, 0, 0x6524, 0x4C66, 0, 0x473C, 0, 0, /* 0x00 */ 0x4933, 0, 0, 0, 0x3D63, 0x6523, 0, 0x3C53, /* 0x10 */ 0x3949, 0x3B66, 0x3569, 0x4A36, 0x6522, 0, 0, 0, /* 0x10 */ 0x4147, 0x4B42, 0x3A77, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x3B67, 0x445D, 0, 0x6527, 0x4E5F, /* 0x20 */ 0x3A59, 0, 0x6528, 0x3F42, 0, 0x652A, 0, 0, /* 0x30 */ 0, 0x3E52, 0x3A30, 0, 0, 0, 0, 0x6529, /* 0x30 */ 0, 0, 0x3D2A, 0x383E, 0x4148, 0x6525, 0x652B, 0, /* 0x40 */ 0, 0, 0, 0x6526, 0x3750, 0, 0x652E, 0x6532, /* 0x40 */ 0x376B, 0, 0, 0, 0, 0, 0x652D, 0, /* 0x50 */ 0, 0, 0, 0x6536, 0, 0, 0x394A, 0, /* 0x50 */ 0, 0x4D6D, 0x303C, 0x6533, 0, 0, 0x356B, 0, /* 0x60 */ 0x6530, 0, 0, 0, 0, 0, 0x6531, 0, /* 0x60 */ 0, 0x457D, 0x652F, 0x652C, 0, 0x3328, 0x4064, 0, /* 0x70 */ 0, 0x3828, 0, 0, 0, 0x6538, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0x6535, 0, 0, 0, 0, 0, 0x6537, /* 0x80 */ 0, 0, 0, 0x6534, 0, 0, 0, 0, /* 0x90 */ 0, 0x3751, 0x4233, 0x6539, 0x416E, 0, 0, 0x6546, /* 0x90 */ 0, 0, 0x6542, 0x653C, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x6540, 0x3C7A, 0x305D, 0x653B, 0x6543, /* 0xA0 */ 0x6547, 0x394B, 0x4C56, 0, 0x4456, 0x653D, 0, 0, /* 0xB0 */ 0x6545, 0, 0x653A, 0x433E, 0, 0x653F, 0x303D, 0x4C4A, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0x653E, /* 0xC0 */ 0, 0, 0x365B, 0x486C, 0, 0, 0, 0x416D, /* 0xC0 */ 0, 0x4E50, 0x3D6F, 0, 0, 0x656E, 0, 0, /* 0xD0 */ 0x6548, 0, 0x407E, 0, 0x6544, 0x6549, 0x654B, 0, /* 0xD0 */ 0x4479, 0x654E, 0, 0, 0x654A, 0, 0, 0, /* 0xE0 */ 0x4A54, 0x344B, 0, 0, 0x4C4B, 0, 0, 0x305E, /* 0xE0 */ 0, 0, 0x654D, 0, 0x4E7D, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0x654C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x316F, 0, 0, 0x466C, 0x654F, 0, 0, /* 0x00 */ 0, 0x6556, 0x6550, 0x6557, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0x6553, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x477B, 0, 0, 0x3C4A, 0x6555, /* 0x10 */ 0, 0x6552, 0x6558, 0x6551, 0, 0, 0x3D44, 0, /* 0x20 */ 0, 0, 0, 0x4B25, 0, 0, 0x3D4C, 0, /* 0x20 */ 0, 0x6554, 0x6560, 0, 0, 0x655C, 0, 0x655F, /* 0x30 */ 0, 0x655D, 0x6561, 0x655B, 0, 0x6541, 0x4053, 0, /* 0x30 */ 0, 0x484B, 0, 0x655E, 0, 0, 0x6559, 0, /* 0x40 */ 0, 0, 0x4121, 0x3752, 0, 0x3D2B, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x3F25, 0x4136, 0x6564, 0, /* 0x50 */ 0, 0x6566, 0x6567, 0, 0, 0x6563, 0x6565, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0x655A, 0x6562, /* 0x60 */ 0, 0x656A, 0x6569, 0, 0, 0x4B7A, 0, 0, /* 0x60 */ 0x372B, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x6568, 0, 0x656C, 0x656B, 0x656F, 0, 0x6571, /* 0x70 */ 0, 0, 0x3B3C, 0x656D, 0, 0, 0, 0, /* 0x80 */ 0x6572, 0x6573, 0, 0, 0x6574, 0, 0x657A, 0x453B, /* 0x80 */ 0x6576, 0, 0x6575, 0x6577, 0x6578, 0, 0x6579, 0, /* 0x90 */ 0, 0, 0, 0x657B, 0x657C /* 0x90 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_7F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x344C, 0, /* 0x30 */ 0x657D, 0, 0x657E, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0x6621, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x6622, 0x6623, 0x6624, 0, /* 0x40 */ 0x6625, 0x6626, 0, 0, 0x6628, 0x6627, 0, 0, /* 0x50 */ 0x6629, 0, 0, 0, 0, 0, 0, 0x662A, /* 0x50 */ 0x662B, 0, 0, 0, 0, 0, 0, 0x662E, /* 0x60 */ 0x662C, 0x662D, 0x3A61, 0x3753, 0, 0, 0x4356, 0, /* 0x60 */ 0x4833, 0, 0x3D70, 0, 0, 0x474D, 0, 0x486D, /* 0x70 */ 0x662F, 0x586D, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x6630, 0x6632, 0, 0x4D65, 0x6631, 0x6634, /* 0x80 */ 0x6633, 0, 0x4D53, 0, 0x6635, 0, 0x487E, 0, /* 0x80 */ 0, 0, 0, 0, 0x6636, 0, 0, 0, /* 0x90 */ 0, 0, 0x6639, 0, 0, 0x6638, 0x6637, 0, /* 0x90 */ 0, 0, 0, 0x663A, 0x3732, 0, 0, 0, /* 0xA0 */ 0x4122, 0x3541, 0, 0, 0, 0, 0x663E, 0x663B, /* 0xA0 */ 0, 0, 0x663C, 0, 0, 0, 0x663F, 0, /* 0xB0 */ 0x6640, 0x663D, 0, 0, 0, 0x3129, 0, 0, /* 0xB0 */ 0, 0x3227, 0, 0, 0, 0x6642, 0x6643, 0, /* 0xC0 */ 0, 0, 0x6644, 0, 0x4D62, 0, 0, 0, /* 0xC0 */ 0, 0, 0x3D2C, 0, 0x6646, 0x6645, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0x3F69, 0x6647, 0, 0, 0, 0, 0x6648, 0, /* 0xE0 */ 0, 0x6649, 0, 0x3465, 0, 0, 0, 0, /* 0xE0 */ 0x344D, 0, 0, 0x664A, 0, 0, 0, 0, /* 0xF0 */ 0, 0x664B, 0, 0x4B5D, 0x4D63 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_80[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4D54, 0x4F37, 0, 0x394D, 0x664E, 0x3C54, 0x664D, 0, /* 0x00 */ 0, 0, 0, 0x664F, 0x3C29, 0, 0, 0, /* 0x00 */ 0x4251, 0, 0x6650, 0, 0, 0x394C, 0, 0x4C57, /* 0x10 */ 0x6651, 0x6652, 0, 0, 0x6653, 0, 0, 0, /* 0x10 */ 0, 0x6654, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x6655, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x3C2A, 0, 0, 0x4C6D, 0, /* 0x30 */ 0, 0, 0, 0x6657, 0, 0x433F, 0, 0x6656, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x6659, 0, /* 0x40 */ 0, 0, 0x6658, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x665A, 0, 0, 0, 0x403B, 0, /* 0x50 */ 0x665B, 0, 0x665C, 0, 0, 0, 0x4A39, 0x665D, /* 0x50 */ 0, 0x416F, 0x665E, 0, 0, 0, 0, 0, /* 0x60 */ 0x665F, 0, 0, 0, 0, 0, 0, 0x4E7E, /* 0x60 */ 0x6662, 0, 0x6661, 0x6660, 0x4430, 0, 0x6663, 0x3F26, /* 0x70 */ 0, 0x6664, 0, 0, 0, 0x6665, 0x4F38, 0x6666, /* 0x70 */ 0, 0, 0, 0, 0x6667, 0x6669, 0x6668, 0x4825, /* 0x80 */ 0, 0x4679, 0, 0x4F3E, 0x4829, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x666B, 0, 0, 0x3E53, 0, /* 0x90 */ 0x492A, 0, 0x666C, 0x666A, 0, 0x344E, 0, 0, /* 0x90 */ 0, 0x3854, 0x3B68, 0, 0, 0x486E, 0, 0, /* 0xA0 */ 0, 0x382A, 0x4B43, 0, 0x666F, 0x666D, 0, 0x394E, /* 0xA0 */ 0, 0x394F, 0x3069, 0, 0x3A68, 0, 0, 0, /* 0xB0 */ 0, 0, 0x4759, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x305F, 0x6674, 0, 0x4340, 0, /* 0xC0 */ 0, 0, 0, 0, 0x4758, 0, 0x425B, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x6676, 0, /* 0xD0 */ 0, 0x6672, 0x6675, 0x6670, 0, 0x6673, 0x4B26, 0, /* 0xD0 */ 0, 0x3855, 0, 0, 0x307D, 0x6671, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x6678, /* 0xE0 */ 0, 0x6679, 0, 0, 0x4639, 0, 0, 0, /* 0xF0 */ 0x363B, 0, 0, 0, 0x6726, 0x473D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_81[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3B69, 0, 0, 0x363C, 0x4048, 0x4F46, /* 0x00 */ 0x4C2E, 0x6677, 0x4054, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x3553, 0x667A, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x667C, 0, 0, 0, 0, /* 0x20 */ 0, 0x667B, 0, 0, 0, 0, 0, 0x667D, /* 0x20 */ 0, 0x4326, 0, 0x473E, 0, 0, 0, 0, /* 0x30 */ 0, 0x4431, 0, 0, 0, 0, 0x6723, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x6722, 0, /* 0x40 */ 0, 0, 0, 0x667E, 0, 0, 0x3F55, 0, /* 0x40 */ 0x4965, 0x6725, 0, 0x6724, 0x3950, 0x4F53, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x6735, /* 0x50 */ 0, 0, 0, 0, 0, 0x6729, 0x672A, 0, /* 0x60 */ 0, 0, 0, 0x3C70, 0, 0, 0x6728, 0, /* 0x60 */ 0x3978, 0x6727, 0, 0, 0x672B, 0, 0, 0, /* 0x70 */ 0x4432, 0x4A22, 0x4123, 0, 0, 0, 0, 0x425C, /* 0x70 */ 0x672F, 0, 0x6730, 0x672C, 0, 0, 0, 0, /* 0x80 */ 0x672D, 0, 0x672E, 0, 0, 0, 0, 0x3951, /* 0x80 */ 0, 0, 0, 0x6736, 0, 0x6732, 0, 0, /* 0x90 */ 0, 0, 0x4966, 0, 0x4B6C, 0x4928, 0, 0, /* 0x90 */ 0x6731, 0, 0, 0x6734, 0x6733, 0, 0, 0, /* 0xA0 */ 0x4B44, 0x6737, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x6738, 0, 0, 0x4137, 0, 0x6739, 0, 0, /* 0xB0 */ 0x673B, 0, 0x673F, 0, 0, 0x673C, 0x673A, 0x473F, /* 0xB0 */ 0x673D, 0, 0x673E, 0, 0, 0, 0x3232, 0, /* 0xC0 */ 0x6745, 0x6740, 0, 0, 0, 0x6741, 0, 0, /* 0xC0 */ 0, 0x6742, 0, 0x4221, 0, 0, 0, 0, /* 0xD0 */ 0x6744, 0x6743, 0x6746, 0, 0, 0, 0, 0x6747, /* 0xD0 */ 0x6748, 0, 0, 0x3F43, 0, 0x3269, 0, 0x6749, /* 0xE0 */ 0x4E57, 0, 0x3C2B, 0, 0, 0x3D2D, 0, 0, /* 0xE0 */ 0, 0, 0, 0x3B6A, 0x4357, 0, 0, 0, /* 0xF0 */ 0, 0, 0x674A, 0x674B, 0x3131, 0, 0x674C /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_82[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x674D, 0x674E, 0, 0, 0x674F, 0, 0x6750, /* 0x00 */ 0x363D, 0x5A2A, 0x6751, 0, 0x4065, 0x6752, 0x3C4B, 0, /* 0x00 */ 0x6753, 0, 0x5030, 0, 0, 0, 0x6754, 0x4A5E, /* 0x10 */ 0x345C, 0, 0, 0x4124, 0x3D58, 0, 0x4971, 0x3D2E, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x6755, 0x3952, 0x6756, 0x484C, 0, 0x6764, 0, /* 0x20 */ 0, 0, 0, 0x6758, 0, 0x4249, 0x4775, 0x383F, /* 0x30 */ 0x6757, 0x4125, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0x6759, 0, 0, 0, 0, 0, 0, 0x447A, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0x675B, 0x675A, 0x675D, 0, 0, 0x675C, 0, 0x675E, /* 0x50 */ 0, 0, 0x6760, 0, 0x675F, 0, 0x344F, 0, /* 0x60 */ 0x6761, 0, 0x6762, 0x6763, 0, 0, 0x3A31, 0x4E49, /* 0x60 */ 0, 0x6765, 0x3F27, 0, 0, 0, 0x3170, 0x6766, /* 0x70 */ 0x6767, 0, 0, 0, 0, 0, 0x6768, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x3072, 0, 0x6769, 0, 0, /* 0x80 */ 0, 0, 0x676A, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x4967, 0, 0, 0, 0x3C47, 0, 0x676C, /* 0x90 */ 0, 0, 0, 0, 0, 0x3329, 0x3032, 0, /* 0xA0 */ 0, 0, 0, 0x676B, 0x676E, 0x474E, 0, 0x3F44, /* 0xA0 */ 0, 0x3256, 0, 0x4B27, 0, 0, 0, 0, /* 0xB0 */ 0x375D, 0x365C, 0, 0x676D, 0, 0x326A, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x3423, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x3171, 0x6772, 0x4E6A, 0x425D, 0, 0, 0x4944, /* 0xD0 */ 0, 0x677E, 0, 0x3257, 0x677C, 0, 0x677A, 0x6771, /* 0xD0 */ 0, 0x676F, 0, 0x6770, 0, 0x3C63, 0x366C, 0x4377, /* 0xE0 */ 0, 0, 0, 0x4651, 0, 0, 0, 0, /* 0xE0 */ 0, 0x3151, 0, 0x6774, 0x6773, 0, 0, 0, /* 0xF0 */ 0, 0x6779, 0x6775, 0x6778 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_83[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4C50, 0x6777, 0x3258, 0x337D, 0x677B, 0, /* 0x00 */ 0, 0x677D, 0, 0, 0, 0, 0x3754, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x6823, 0x682C, /* 0x10 */ 0x682D, 0, 0, 0, 0x302B, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0x6834, 0, 0, 0, 0, /* 0x20 */ 0x3071, 0, 0, 0x682B, 0, 0, 0, 0x682A, /* 0x20 */ 0, 0x6825, 0x6824, 0, 0x6822, 0x6821, 0x4363, 0, /* 0x30 */ 0x427B, 0x6827, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0x6826, 0, 0, 0, 0, 0x6829, 0, 0, /* 0x40 */ 0, 0x4170, 0x3755, 0, 0, 0, 0, 0x3141, /* 0x40 */ 0x6828, 0, 0x3953, 0, 0, 0, 0, 0, /* 0x50 */ 0x4171, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0x683A, 0, 0x683B, 0, 0x3259, /* 0x70 */ 0, 0, 0, 0x322E, 0x6838, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0x682E, 0, 0x6836, /* 0x80 */ 0, 0x683D, 0x6837, 0, 0, 0, 0x6835, 0, /* 0x80 */ 0, 0, 0, 0x6776, 0, 0, 0x6833, 0, /* 0x90 */ 0, 0, 0x682F, 0, 0, 0, 0x3450, 0x6831, /* 0x90 */ 0x683C, 0, 0x6832, 0, 0, 0, 0, 0, /* 0xA0 */ 0x683E, 0, 0x6830, 0x477C, 0, 0, 0, 0, /* 0xA0 */ 0, 0x4D69, 0, 0, 0, 0x6839, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x684F, 0, 0, /* 0xB0 */ 0, 0x6847, 0, 0, 0, 0x3F7B, 0, 0, /* 0xC0 */ 0, 0, 0x3546, 0, 0x365D, 0, 0x6842, 0, /* 0xC0 */ 0, 0, 0, 0x325B, 0, 0, 0x3E54, 0, /* 0xD0 */ 0x6845, 0, 0, 0, 0x3A5A, 0, 0, 0x4551, /* 0xD0 */ 0x684A, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0x4A6E, 0, 0x6841, 0, 0, 0, 0x325A, /* 0xE0 */ 0x3856, 0x4929, 0x684B, 0, 0x683F, 0, 0, 0x6848, /* 0xF0 */ 0, 0, 0, 0x6852, 0, 0x6843 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_84[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6844, 0x463A, 0, 0, 0x6849, /* 0x00 */ 0, 0, 0, 0x6846, 0x4B28, 0x684C, 0x3060, 0, /* 0x00 */ 0, 0, 0, 0x6840, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x684E, 0, 0x684D, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x476B, 0x6854, 0, 0x685F, 0, 0, 0, /* 0x20 */ 0, 0x337E, 0, 0, 0, 0x6862, 0, 0, /* 0x30 */ 0x6850, 0, 0, 0, 0x6855, 0x4D6E, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x685E, 0, /* 0x40 */ 0, 0x4D55, 0, 0, 0, 0, 0x4E2A, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0x4378, /* 0x50 */ 0, 0, 0, 0x336B, 0, 0, 0, 0, /* 0x50 */ 0, 0x4972, 0x6864, 0x4621, 0, 0, 0x3031, 0, /* 0x60 */ 0, 0x685D, 0, 0x6859, 0x4172, 0x6853, 0x685B, 0x6860, /* 0x60 */ 0, 0x472C, 0, 0, 0, 0x302A, 0, 0x6858, /* 0x70 */ 0, 0x6861, 0x4978, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x685C, 0, 0x6857, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x3E55, 0, 0, 0, 0, /* 0x80 */ 0x3D2F, 0, 0, 0, 0x3C2C, 0, 0, 0, /* 0x90 */ 0, 0x4C58, 0, 0, 0x4947, 0, 0, 0x6867, /* 0x90 */ 0, 0x6870, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0x685A, 0, 0, /* 0xA0 */ 0, 0, 0x3377, 0, 0, 0, 0, 0, /* 0xB0 */ 0x3E78, 0x6865, 0, 0x686A, 0x4173, 0, 0, 0x6866, /* 0xB0 */ 0, 0x686D, 0, 0, 0x435F, 0, 0x686E, 0, /* 0xC0 */ 0, 0x4D56, 0x6863, 0x3338, 0, 0x6869, 0, 0, /* 0xC0 */ 0x686C, 0x4C2C, 0, 0, 0, 0, 0x686F, 0, /* 0xD0 */ 0, 0x6868, 0x686B, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0x4B29, 0, 0x4F21, 0, /* 0xE0 */ 0, 0, 0, 0, 0x6873, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0, 0x687A, 0, 0, 0x6872 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_85[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3C43, 0, 0, 0, 0, 0, 0x6851, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0x4A4E, 0, 0x4C22, 0x6879, 0x6878, 0, 0x6874, /* 0x10 */ 0x6875, 0, 0x3136, 0, 0, 0, 0, 0x6877, /* 0x10 */ 0, 0x6871, 0, 0, 0, 0, 0x4455, 0, /* 0x20 */ 0, 0, 0, 0, 0x6876, 0x307E, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x4222, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0x4A43, 0, 0, /* 0x30 */ 0x687B, 0x6921, 0, 0x4859, 0, 0, 0, 0, /* 0x40 */ 0x687E, 0x3E56, 0x3C49, 0x6923, 0, 0, 0x363E, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x6924, 0, 0x4979, /* 0x50 */ 0x687D, 0, 0x6856, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x687C, 0, 0, 0, 0, /* 0x60 */ 0x4F4F, 0x4622, 0x4973, 0, 0, 0x692B, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0x6931, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x6932, 0, /* 0x70 */ 0x6925, 0, 0, 0, 0x4776, 0, 0, 0x692F, /* 0x80 */ 0x6927, 0, 0x6929, 0, 0, 0, 0, 0, /* 0x80 */ 0x6933, 0x6928, 0, 0, 0x692C, 0, 0, 0x3172, /* 0x90 */ 0, 0x4665, 0, 0x692D, 0x6930, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x6926, 0, 0x4126, 0, /* 0xA0 */ 0x692A, 0x3B27, 0x3F45, 0x3730, 0x4C74, 0, 0x4C79, 0x3D72, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x6937, 0x6935, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x4F4E, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0x6934, 0, 0, 0, 0x4D75, 0, 0x6936, /* 0xC0 */ 0x6938, 0, 0, 0, 0, 0x6939, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0x693C, 0x693A, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0x4623, 0x693B, 0, 0, /* 0xE0 */ 0, 0x484D, 0x692E, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x3D73, /* 0xF0 */ 0, 0x693D, 0x6942, 0x4174, 0, 0, 0x6941 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_86[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6922, 0, 0, 0, 0x6943, 0x4149, /* 0x00 */ 0, 0, 0x693E, 0x6940, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0x693F, 0, 0, 0x5D31, 0x5D22, /* 0x10 */ 0, 0, 0x6945, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0x6944, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x4D76, 0, 0x623C, /* 0x20 */ 0x6946, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0x6947, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x6948, 0x3857, 0, /* 0x40 */ 0x3554, 0, 0, 0, 0x694A, 0x515D, 0, 0, /* 0x50 */ 0, 0, 0x3575, 0, 0x4E3A, 0, 0x3673, 0x694B, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x694C, /* 0x60 */ 0, 0, 0, 0x436E, 0, 0, 0, 0, /* 0x60 */ 0, 0x694D, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x467A, 0, 0x303A, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x3263, 0x6952, 0x6953, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0x694E, 0, 0x3B3D, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x694F, 0x4742, 0, 0, 0, /* 0xA0 */ 0, 0x6950, 0x6951, 0x695B, 0, 0, 0, 0x6955, /* 0xA0 */ 0x6958, 0, 0, 0, 0, 0, 0x6954, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x6956, 0, 0x6957, 0x3C58, /* 0xC0 */ 0, 0x6959, 0, 0x4341, 0, 0x3756, 0x3342, 0, /* 0xC0 */ 0, 0, 0, 0, 0x695C, 0, 0, 0, /* 0xD0 */ 0, 0x333F, 0, 0x6961, 0, 0, 0x695D, 0x6960, /* 0xD0 */ 0, 0, 0, 0, 0x483A, 0, 0, 0, /* 0xE0 */ 0, 0x695E, 0, 0, 0x695F, 0x4948, 0x485A, 0x6962, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0x427D, 0x696C, 0, 0x6968, 0, 0, 0x326B /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_87[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6966, 0, 0x4B2A, 0x6967, 0, 0, 0x6964, 0, /* 0x00 */ 0x6965, 0x696A, 0x696D, 0, 0, 0x696B, 0, 0, /* 0x00 */ 0, 0x6969, 0x6963, 0, 0, 0, 0, 0, /* 0x10 */ 0x4358, 0, 0x6974, 0, 0x4C2A, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x6972, 0, 0, /* 0x20 */ 0, 0x6973, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x696E, 0, 0, 0x6970, /* 0x30 */ 0, 0, 0, 0x6971, 0, 0, 0, 0x696F, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0x4066, 0, 0x4F39, 0x6978, 0, 0x6979, 0, /* 0x40 */ 0, 0, 0, 0x6A21, 0, 0x3F2A, 0, 0x697B, /* 0x50 */ 0, 0x697E, 0, 0, 0, 0, 0, 0x6976, /* 0x50 */ 0x6975, 0, 0, 0x6A22, 0, 0, 0x325C, 0, /* 0x60 */ 0x697C, 0, 0x6A23, 0, 0, 0, 0x697D, 0, /* 0x60 */ 0, 0, 0, 0, 0x697A, 0, 0x4433, 0, /* 0x70 */ 0x6977, 0, 0, 0, 0, 0, 0, 0x4768, /* 0x70 */ 0, 0, 0x6A27, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x4D3B, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0x6A26, /* 0x90 */ 0, 0, 0x6A25, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x6A2E, 0, 0, 0, 0x6A28, /* 0xA0 */ 0, 0, 0, 0x6A30, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0x4D66, 0x6A33, 0, 0x6A2A, 0, 0, /* 0xB0 */ 0x6A2B, 0, 0, 0, 0x6A2F, 0, 0x6A32, 0x6A31, /* 0xC0 */ 0, 0, 0, 0x6A29, 0, 0, 0, 0, /* 0xC0 */ 0x6A2C, 0, 0x6A3D, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0x6A36, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0x6A34, /* 0xE0 */ 0, 0, 0x6A35, 0, 0, 0, 0x6A3A, 0x6A3B, /* 0xF0 */ 0, 0x332A, 0, 0x3542, 0, 0, 0x6A39 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_88[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6A24, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0x6A38, 0x6A3C, 0x6A37, /* 0x00 */ 0, 0x6A3E, 0, 0, 0, 0x6A40, 0x6A3F, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x6A42, 0x6A41, 0x695A, 0, 0, 0, 0x6A46, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x6A43, 0, 0, 0, 0, 0x6A44, 0, /* 0x30 */ 0, 0x6A45, 0, 0x6A47, 0, 0, 0, 0, /* 0x30 */ 0x376C, 0, 0x6A49, 0, 0x6A48,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 0x403D, 0x3F7E /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_89[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6A68, 0, 0x6A6D, 0, 0, 0x4A23, /* 0x00 */ 0, 0, 0x6A6F, 0, 0x6A6E, 0, 0, 0, /* 0x00 */ 0x336C, 0, 0x4B2B, 0x6A70, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x6A7C, 0x6A72, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x6A73, 0, 0, /* 0x20 */ 0, 0, 0x6A74, 0x6A75, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x6A79, 0, /* 0x30 */ 0x6A7A, 0, 0, 0x6A78, 0, 0, 0, 0, /* 0x30 */ 0, 0x6A76, 0, 0x6A71, 0x6A77, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x6A7B, 0x7037, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0x3228, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0x6A7E, 0x365F, /* 0x50 */ 0x6A7D, 0, 0, 0, 0x6B22, 0, 0x6B21, 0, /* 0x60 */ 0, 0, 0x6B24, 0, 0, 0x6B23, 0, 0x6B25, /* 0x60 */ 0, 0, 0x3D31, 0, 0x6B26, 0, 0, 0x6B27, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x6B28, 0x403E, /* 0x70 */ 0, 0x4D57, 0, 0x6B29, 0, 0, 0x4A24, 0x4746, /* 0x80 */ 0x6B2A, 0, 0x6B2B, 0x382B, 0, 0, 0, 0x352C, /* 0x80 */ 0, 0, 0, 0x6B2C, 0, 0, 0x3B6B, 0x4741, /* 0x90 */ 0x6B2D, 0, 0x3350, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x6B2E, 0, 0, 0, 0, 0x6B30, 0x4D77, /* 0xA0 */ 0, 0x6B2F, 0x3F46, 0, 0x6B31, 0, 0, 0x6B32, /* 0xA0 */ 0, 0, 0x6B33, 0x3451, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0x6B34, 0, 0, 0x6B35, 0, 0x6B36, /* 0xB0 */ 0x6B37, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0x3351, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0x6B38, 0, 0x6B39, 0x6B3A, 0, 0, /* 0xD0 */ 0, 0, 0, 0x3272, 0, 0, 0x3F28, 0x6B3B, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0x6B3C, 0, 0, 0, /* 0xF0 */ 0x6B3D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8A[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3840, 0, 0x447B, 0x6B3E, 0, 0, 0, 0, /* 0x00 */ 0x3757, 0, 0x3F56, 0, 0x6B41, 0, 0x4624, 0, /* 0x00 */ 0x6B40, 0, 0, 0x3731, 0, 0, 0x6B3F, 0x4277, /* 0x10 */ 0x352D, 0, 0, 0x6B42, 0, 0x6B43, 0, 0x3E59, /* 0x10 */ 0, 0, 0, 0x376D, 0, 0x6B44, 0, 0, /* 0x20 */ 0, 0, 0x4B2C, 0, 0, 0x405F, 0, 0, /* 0x20 */ 0, 0x3576, 0, 0x4C75, 0x414A, 0, 0x6B45, 0, /* 0x30 */ 0, 0, 0x3F47, 0x4370, 0x3E5A, 0, 0, 0, /* 0x30 */ 0, 0x6B46, 0, 0, 0, 0, 0x6B49, 0, /* 0x40 */ 0x6B4A, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0x3A3E, 0x4242, 0x6B48, 0, 0x3E5B, 0x493E, 0, 0, /* 0x50 */ 0, 0, 0, 0x6B47, 0, 0, 0x3B6C, 0, /* 0x50 */ 0x3153, 0, 0x6B4E, 0x3758, 0, 0, 0x3B6E, 0, /* 0x60 */ 0, 0x3B6D, 0, 0x4F4D, 0x6B4D, 0x6B4C, 0x4127, 0, /* 0x60 */ 0x354D, 0x4F43, 0x333A, 0x3E5C, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0x6B4B, 0, 0, 0, /* 0x70 */ 0, 0, 0x6B50, 0, 0x6B51, 0x6B4F, 0, 0x3858, /* 0x80 */ 0, 0x4D40, 0, 0, 0x3B6F, 0x4727, 0, 0, /* 0x80 */ 0, 0x6B54, 0, 0x4040, 0, 0x4342, 0, 0, /* 0x90 */ 0x4D36, 0, 0x6B57, 0, 0, 0, 0x386C, 0, /* 0x90 */ 0x403F, 0x6B53, 0, 0x6B58, 0x386D, 0x6B55, 0x6B56, 0, /* 0xA0 */ 0x6B52, 0, 0, 0, 0x4062, 0x4649, 0, 0, /* 0xA0 */ 0x432F, 0, 0x325D, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x4870, 0, 0, 0x3543, 0, 0, 0x4434, /* 0xB0 */ 0, 0, 0x6B5B, 0, 0x6B59, 0, 0, 0x434C, /* 0xC0 */ 0, 0, 0, 0x4041, 0x3452, 0x6B5A, 0, 0x3F5B, /* 0xC0 */ 0, 0, 0x4E4A, 0, 0, 0, 0x4F40, 0, /* 0xD0 */ 0, 0, 0x6B5C, 0x6B67, 0x4435, 0, 0x6B66, 0, /* 0xD0 */ 0x6B63, 0x6B6B, 0x6B64, 0, 0x6B60, 0, 0x447C, 0x6B5F, /* 0xE0 */ 0, 0, 0, 0x6B5D, 0, 0x4D21, 0x3B70, 0, /* 0xE0 */ 0, 0x6B61, 0, 0x6B5E, 0, 0, 0, 0x6B65, /* 0xF0 */ 0x3D74, 0, 0x3841, 0, 0, 0, 0x427A /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8B[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4B45, 0x315A, 0x3062, 0, 0x4625, 0, 0, 0x6B69, /* 0x00 */ 0, 0, 0, 0, 0x6B68, 0, 0x4666, 0, /* 0x00 */ 0x6B6D, 0, 0, 0, 0x6B62, 0, 0x6B6C, 0x6B6E, /* 0x10 */ 0, 0x382C, 0x6B6A, 0x3956, 0, 0x3C55, 0, 0, /* 0x10 */ 0x6B6F, 0x4D58, 0, 0, 0, 0, 0x6B72, 0, /* 0x20 */ 0x6B75, 0, 0, 0x6B73, 0x4935, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x6B70, 0, 0, 0, 0, /* 0x30 */ 0, 0x3660, 0, 0, 0, 0, 0x6B74, 0, /* 0x30 */ 0, 0x6B76, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0x6B7A, 0, 0, 0x6B77, 0, 0x6B79, 0x6B78, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0x6B7B, 0, /* 0x50 */ 0x3C31, 0, 0x6B7D, 0x6B7C, 0x4968, 0, 0, 0x6C21, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0x3759, 0, /* 0x60 */ 0, 0, 0, 0x6B7E, 0x6C22, 0, 0, 0x6C23, /* 0x60 */ 0x3544, 0x6641, 0x3E79, 0, 0x6C24, 0, 0, 0x386E, /* 0x70 */ 0, 0, 0, 0, 0, 0x6C25, 0, 0, /* 0x70 */ 0x6C26, 0, 0, 0x3B3E, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0x5A4E, 0, 0x6C27, 0, 0x6C28, 0, /* 0x80 */ 0x3D32, 0, 0x6C29, 0x6C2A, 0, 0, 0x6C2B, 0, /* 0x90 */ 0, 0x6C2C, 0x6C2D /* 0x90 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8C[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x432B, /* 0x30 */ 0, 0, 0x6C2E, 0, 0, 0, 0, 0x6C30, /* 0x30 */ 0, 0x6C2F, 0, 0, 0, 0, 0x4626, 0, /* 0x40 */ 0x6C31, 0, 0x4B2D, 0, 0x6C32, 0, 0x6C33, 0, /* 0x40 */ 0x6C34, 0, 0, 0, 0, 0x6C35, 0, 0, /* 0x50 */ 0, 0, 0x465A, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0x3E5D, 0x6C36, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x396B, 0x502E, 0x6C37, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0x6C38, 0x493F, 0x6C39, 0, 0x6C41, 0, 0, 0, /* 0x70 */ 0, 0, 0x6C3A, 0, 0, 0x6C3C, 0, 0, /* 0x80 */ 0, 0x6C3B, 0x6C3D, 0, 0x4B46, 0x6C3E, 0x6C3F, 0, /* 0x80 */ 0, 0, 0, 0, 0x6C40, 0, 0, 0, /* 0x90 */ 0x6C42, 0, 0, 0, 0, 0x332D, 0x4467, 0, /* 0x90 */ 0x4969, 0x3A62, 0x3957, 0, 0, 0, 0, 0x494F, /* 0xA0 */ 0x325F, 0x484E, 0x6C45, 0x3453, 0x4055, 0x6C44, 0x6C49, 0x4379, /* 0xA0 */ 0x4C63, 0, 0x6C47, 0x6C48, 0x352E, 0, 0x6C4A, 0x4763, /* 0xB0 */ 0x425F, 0, 0, 0x4871, 0x453D, 0x6C46, 0, 0x4B47, /* 0xB0 */ 0x326C, 0x6C4C, 0x4F28, 0x4442, 0x4F45, 0, 0, 0x3B71, /* 0xC0 */ 0x6C4B, 0, 0x4231, 0, 0, 0x6C5C, 0x4128, 0, /* 0xC0 */ 0, 0x4678, 0, 0x4950, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0x6C4F, 0x3B3F, 0x3B72, 0, 0x3E5E, 0, /* 0xD0 */ 0x4765, 0, 0x382D, 0x6C4E, 0x6C4D, 0, 0x496A, 0, /* 0xE0 */ 0, 0, 0x3C41, 0, 0, 0x4552, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0, 0, 0x6C51, 0x6C52, 0x3958, 0x6C50 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8D[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6C53, 0x6C54, 0, 0x6C56, /* 0x00 */ 0x4223, 0, 0x6C55, 0x3466, 0, 0x6C58, 0, 0x6C57, /* 0x00 */ 0x6C59, 0, 0, 0x6C5B, 0x6C5D, 0, 0x6C5E, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0x4056, 0, 0x3C4F, 0x6C5F, /* 0x60 */ 0, 0, 0, 0x3352, 0, 0x6C60, 0, 0, /* 0x60 */ 0x4176, 0x6C61, 0, 0x6C62, 0x496B, 0, 0, 0x352F, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0x6C63, 0, 0, 0, 0x4436, 0, 0, /* 0x80 */ 0, 0, 0x315B, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x6C64, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x3C71, 0, 0, 0, 0, /* 0xA0 */ 0x3F76, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0x422D, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0x6C67, 0, 0, 0, 0x6C66, 0, /* 0xB0 */ 0, 0, 0x6C65, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0x6C6D, 0x6C6B, 0, 0, 0x6C68, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x6C6A, 0, /* 0xD0 */ 0, 0, 0x6C69, 0x6C6C, 0, 0x3577, 0, 0x6C70, /* 0xD0 */ 0, 0x4057, 0, 0x6C71, 0, 0, 0, 0, /* 0xE0 */ 0x3859, 0, 0x6C6E, 0x6C6F, 0, 0, 0, 0x4F29, /* 0xE0 */ 0, 0, 0, 0x4437, 0, 0x4129, 0, 0, /* 0xF0 */ 0, 0, 0, 0, 0x6C72, 0, 0, 0x6C75 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x6C73, 0x6C74, 0x4D59, 0, 0, 0, 0, 0x4627, /* 0x00 */ 0x6C78, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0x6C76, 0x6C77, 0x6C79, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0x6D29, 0, 0, 0, 0, 0, /* 0x20 */ 0x6C7C, 0, 0, 0, 0x6C7D, 0x6C7B, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0x6C7A, 0, 0x447D, 0, 0, 0x6D21, /* 0x40 */ 0x6D25, 0x6D22, 0x6C7E, 0, 0x6D23, 0, 0, 0, /* 0x40 */ 0x6D24, 0, 0, 0, 0, 0x6D2B, 0, 0, /* 0x50 */ 0, 0x6D26, 0, 0, 0, 0, 0, 0x4058, /* 0x50 */ 0x6D28, 0, 0, 0x6D2A, 0x6D27, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x6D2D, 0, 0x3D33, 0, 0x6D2C, 0, /* 0x70 */ 0, 0, 0, 0, 0x6D2E, 0, 0, 0, /* 0x70 */ 0, 0x6D2F, 0, 0, 0x6D32, 0x6D31, 0, 0x6D30, /* 0x80 */ 0, 0, 0x6D34, 0x6D33, 0, 0x4C76, 0, 0, /* 0x80 */ 0, 0x6D36, 0, 0x6D35, 0x6D37, 0, 0, 0, /* 0x90 */ 0, 0x6D38, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0x6D3A, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0x6D39, 0x3F48, 0x6D3B, 0, 0, 0x366D, /* 0xA0 */ 0x6D3C, 0x6D3E, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0x6D3F, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0x6D40, 0x6D3D, 0, /* 0xC0 */ 0x6D41, 0, 0x3C56, 0x6D42, 0x3530, 0x3733, 0, 0, /* 0xC0 */ 0, 0, 0x382E, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x6D43, 0, 0, 0, 0x4670, /* 0xD0 */ 0, 0, 0x453E, 0x6D44, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0x6D47, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xF0 */ 0x3C34, 0, 0, 0x6D46, 0x6D45, 0x375A, 0x6D48 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_8F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3353, 0, 0x6D4A, 0, 0, /* 0x00 */ 0, 0x3A5C, 0x6D49, 0, 0x6D52, 0, 0, 0, /* 0x00 */ 0, 0, 0x6D4C, 0x6D4E, 0x4A65, 0x6D4B, 0, 0, /* 0x10 */ 0, 0x6D4D, 0, 0x6D51, 0x6D4F, 0x3531, 0, 0x6D50, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x6D53, 0, /* 0x20 */ 0, 0x475A, 0x4E58, 0, 0, 0, 0, 0x3D34, /* 0x20 */ 0, 0, 0, 0x6D54, 0, 0, 0, 0, /* 0x30 */ 0x4D22, 0x6D56, 0, 0x6D55, 0, 0, 0x6D59, 0x4D41, /* 0x30 */ 0, 0, 0x6D58, 0, 0x336D, 0x6D57, 0x6D5C, 0, /* 0x40 */ 0, 0x6D5B, 0, 0, 0x6D5A, 0x4532, 0x6D5D, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0x6D5E, /* 0x50 */ 0, 0, 0, 0, 0x6D5F, 0, 0, 0x396C, /* 0x50 */ 0, 0x3725, 0x6D60, 0x6D61, 0x6D62, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x3F49, 0x6D63, 0, 0x3C2D, 0x6D64, /* 0x90 */ 0, 0, 0, 0x6D65, 0, 0, 0, 0x5221, /* 0xA0 */ 0x517E, 0, 0, 0, 0, 0x6D66, 0x6570, 0x6D67, /* 0xA0 */ 0x4324, 0x3F2B, 0x4740, 0, 0, 0, 0, 0x6D68, /* 0xB0 */ 0, 0, 0x4A55, 0x4454, 0x397E, 0, 0, 0x4329, /* 0xB0 */ 0, 0, 0x312A, 0, 0x4B78, 0x3F57, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0x375E, 0, /* 0xC0 */ 0, 0x3661, 0, 0, 0x4A56, 0, 0, 0, /* 0xD0 */ 0, 0, 0x6D69, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0x6D6B, 0, 0, 0x6D6A, 0x3260, 0, /* 0xE0 */ 0, 0x4676, 0x6D6C, 0x4777, 0, 0x4533, 0, 0x6D6D, /* 0xE0 */ 0x3D52, 0, 0, 0, 0x6D6F, 0, 0, 0x4C42, /* 0xF0 */ 0x6D7E, 0x6D71, 0x6D72, 0, 0, 0x4449 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_90[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4260, 0x4177, 0, 0x4628, 0, 0x6D70, 0x3555, 0, /* 0x00 */ 0, 0, 0, 0x6D79, 0, 0x6D76, 0x6E25, 0x4629, /* 0x00 */ 0x4360, 0x6D73, 0, 0x447E, 0x4553, 0x6D74, 0x6D78, 0x3F60, /* 0x10 */ 0, 0x4767, 0x444C, 0, 0, 0x4042, 0x6D77, 0x422E, /* 0x10 */ 0x4224, 0x6D75, 0x3029, 0x4F22, 0, 0, 0, 0x6D7A, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0x4261, 0, /* 0x20 */ 0, 0x3D35, 0x3F4A, 0, 0, 0x6D7C, 0x6D7B, 0, /* 0x30 */ 0x306F, 0x6D7D, 0, 0, 0x492F, 0, 0x6E27, 0, /* 0x30 */ 0, 0x465B, 0x3F6B, 0, 0, 0x4359, 0, 0x3678, /* 0x40 */ 0, 0x6E26, 0x4D37, 0x313F, 0, 0x4A57, 0x3261, 0x6E21, /* 0x40 */ 0x6E22, 0x6E23, 0x6E24, 0x463B, 0x4323, 0x3063, 0x6E28, 0, /* 0x50 */ 0x6E29, 0x7423, 0, 0, 0x423D, 0, 0x6E2A, 0, /* 0x50 */ 0x3173, 0x414C, 0, 0x382F, 0, 0x4D5A, 0, 0, /* 0x60 */ 0x6E2B, 0x452C, 0, 0, 0, 0x4178, 0x3C57, 0x6E2C, /* 0x60 */ 0, 0, 0x6E2F, 0, 0, 0x3D65, 0x6E2D, 0x412B, /* 0x70 */ 0x412A, 0, 0x3064, 0, 0x4E4B, 0x6E31, 0, 0x4872, /* 0x70 */ 0x6E33, 0x6E32, 0x6E30, 0x6364, 0x3454, 0, 0, 0x6D6E, /* 0x80 */ 0, 0x6E35, 0x6E34, 0, 0, 0, 0, 0x6E36, /* 0x80 */ 0, 0x4D38, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0x4661, 0, 0, 0x4B2E, 0, /* 0xA0 */ 0x6E37, 0, 0x3C59, 0, 0, 0, 0, 0x6E38, /* 0xA0 */ 0, 0x6E39, 0, 0, 0, 0x6E3A, 0, 0, /* 0xB0 */ 0x4521, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x306A, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0x3959, 0, 0, 0, 0x4F3A, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x6E3E, 0, 0, 0, 0, /* 0xD0 */ 0, 0x3734, 0x6E3B, 0, 0x6E3C, 0, 0, 0, /* 0xE0 */ 0x4974, 0, 0, 0, 0, 0x3354, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x4D39, 0, 0x363F, /* 0xF0 */ 0, 0, 0, 0, 0, 0x4554 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_91[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6E3F, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0x6E40, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x6E41, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x4522, 0, 0, /* 0x20 */ 0x6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 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x6E60, 0x6E61, 0, /* 0xF0 */ 0, 0, 0, 0, 0x6E5F, 0, 0, 0x6E63 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_92[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x00 */ 0x465F, 0x3343, 0, /* 0x00 */ 0, 0x6E67, 0, 0, 0x6E64, 0x6E66, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0x6E62, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0x6F4F, 0, 0, 0x6E65, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x4E6B, 0, 0, 0x385A, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0x6E6F, /* 0x30 */ 0, 0, 0, 0, 0x4534, 0x6E6A, 0, 0, /* 0x40 */ 0x6E6D, 0x6E6B, 0, 0x6E70, 0, 0, 0, 0, /* 0x40 */ 0x6E71, 0, 0, 0, 0, 0, 0, 0x6E69, /* 0x50 */ 0, 0, 0x6E76, 0x3174, 0, 0, 0x6E68, 0, /* 0x50 */ 0, 0, 0x482D, 0, 0x6E6C, 0, 0x3E60, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0x395B, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0x4B48, 0, /* 0x70 */ 0x3664, 0, 0, 0x3D46, 0, 0x463C, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0x412D, 0, 0x6E74, 0, 0x6E6E, 0x6E73, 0, /* 0x90 */ 0x4C43, 0, 0x4438, 0x6E75, 0x6E72, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0x412C, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0x6E79, /* 0xB0 */ 0, 0x6E78, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0x6E77, /* 0xC0 */ 0, 0, 0x4B2F, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0x3D7B, 0, 0, 0, /* 0xE0 */ 0, 0x6E7A, 0x4A5F, 0, 0, 0x3154, 0, 0, /* 0xE0 */ 0, 0, 0x4946, 0x4372, 0, 0, 0, 0, /* 0xF0 */ 0x3578, 0, 0x6E7C, 0, 0x395D /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_93[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3B2C, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0x6E7B, /* 0x00 */ 0x3F6D, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x3F6E, 0x6F21, 0x6F23, 0, 0, 0, 0, 0, /* 0x10 */ 0x3E7B, 0, 0x6F22, 0x6F24, 0, 0, 0x3653, 0, /* 0x20 */ 0x4945, 0, 0, 0x3C62, 0x4F23, 0, 0x6E7E, 0x3A78, /* 0x20 */ 0, 0, 0x4F3F, 0, 0, 0x6F26, 0, 0, /* 0x30 */ 0, 0, 0x6F25, 0x6F27, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0x6E7D, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0x4669, 0, 0x4555, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0x4457, 0, 0x6F2C, 0, /* 0x50 */ 0, 0, 0, 0x4343, 0x6F28, 0, 0, 0, /* 0x50 */ 0x6F29, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x372D, 0, 0x6F2B, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0x3830, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0x6F2A, 0, 0x3E61, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0x3379, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0x6F30, 0, 0x3A3F, 0x4179, /* 0x90 */ 0, 0, 0x444A, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0x333B, /* 0xA0 */ 0, 0, 0, 0, 0x6F2E, 0x6F2F, 0x4443, 0, /* 0xA0 */ 0x6F2D, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x6F31, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x6F37, 0, 0, 0, 0, /* 0xC0 */ 0x6F3A, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0x6F39, 0x452D, 0, 0, 0, 0, 0x6F32, 0x6F33, /* 0xD0 */ 0x6F36, 0, 0, 0, 0, 0x6F38, 0, 0, /* 0xD0 */ 0, 0x3640, 0, 0, 0x6F3B, 0x6F35, 0, 0, /* 0xE0 */ 0x6F34 /* 0xE0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_94[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x6F3F, 0, 0, 0, 0x6F40, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0x6F41, 0, 0, 0x6F3E, 0x6F3D, 0, 0, 0, /* 0x10 */ 0x3E62, 0x462A, 0x6F3C, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x6F45, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0x6F43, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x6F44, 0x6F42, 0, /* 0x30 */ 0x4278, 0, 0x6F46, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0x6F47, 0, 0, 0x6F49, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0x3455, 0x6F48, 0x4C7A, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0x6F54, 0x6F4A, 0, 0, 0x6F4D, 0, /* 0x50 */ 0x6F4B, 0, 0x6F4C, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0x6F4E, 0, 0, 0, 0, 0, /* 0x60 */ 0x6F50, 0, 0, 0, 0, 0x6F51, 0, 0x6F52, /* 0x70 */ 0, 0, 0, 0, 0x6F55, 0x6F53, 0x6F56, 0x6F58, /* 0x70 */ 0, 0x6F57 /* 0x80 */ /* 0x80 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_95[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4439, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0x4C67, 0, 0x6F59, 0x412E, 0, 0, 0, 0x6F5A, /* 0x80 */ 0, 0x4A44, 0x6F5B, 0x332B, 0, 0, 0, 0x313C, /* 0x80 */ 0, 0x3457, 0, 0x3456, 0x6F5C, 0, 0x6F5D, 0, /* 0x90 */ 0x6F5E, 0x6F5F, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x6F60, 0, 0x3458, 0x3355, 0x395E, 0x4836, 0, 0x6F62, /* 0xA0 */ 0x6F61, 0, 0, 0, 0, 0x6F63, 0, 0, /* 0xA0 */ 0, 0, 0x315C, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0x6F66, 0, 0x6F65, 0x6F64, 0, 0x6F67, 0, /* 0xB0 */ 0, 0, 0, 0x6F6A, 0, 0, 0, 0x3047, /* 0xC0 */ 0, 0, 0x6F68, 0, 0x6F6C, 0x6F6B, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0x6F6E, 0x6F6D, 0x6F6F, 0, /* 0xD0 */ 0x462E, 0, 0, 0, 0x6F70, 0, 0, 0, /* 0xD0 */ 0, 0x6F71, 0x6F73, 0, 0, 0x6F72 /* 0xE0 */ /* 0xE0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_96[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x10 */ 0x496C, 0, 0, 0, /* 0x10 */ 0, 0x6F74, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x6F75, 0, 0x3A65, 0, 0, 0, 0x6F76, 0x6F77, /* 0x20 */ 0, 0, 0x4B49, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x414B, 0, 0, 0, 0x3024, /* 0x30 */ 0x424B, 0, 0x6F78, 0, 0x496D, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0x6F7B, 0x6F79, 0x395F, 0, 0x6F7A, /* 0x40 */ 0x3842, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0x4A45, 0x6F7D, 0x7021, 0x6F7E, 0x7022, /* 0x50 */ 0, 0, 0x3121, 0x3F58, 0x3D7C, 0x3459, 0x7023, 0, /* 0x60 */ 0, 0, 0x4766, 0, 0x7025, 0, 0, 0, /* 0x60 */ 0x3122, 0, 0x7024, 0x4444, 0, 0x4E4D, 0x462B, 0x6F7C, /* 0x70 */ 0x4E26, 0, 0x3831, 0, 0, 0x4D5B, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0x3679, 0x4E34, 0, /* 0x80 */ 0x3728, 0, 0x4262, 0x6721, 0, 0x7026, 0x332C, 0x3F6F, /* 0x80 */ 0, 0, 0, 0, 0x3356, 0x7028, 0, 0x7029, /* 0x90 */ 0x7027, 0x3764, 0, 0x3A5D, 0x3E63, 0, 0, 0, /* 0x90 */ 0x3123, 0, 0, 0x4E59, 0, 0, 0, 0x702B, /* 0xA0 */ 0x6E2E, 0, 0x702A, 0, 0, 0, 0, 0, /* 0xA0 */ 0x702E, 0x702C, 0x702D, 0, 0x702F, 0, 0x7030, 0x4E6C, /* 0xB0 */ 0x7031, 0x7032, 0, 0x4049, 0x483B, 0, 0, 0, /* 0xB0 */ 0x3F7D, 0x3467, 0, 0, 0x4D3A, 0x326D, 0x3D38, 0x385B, /* 0xC0 */ 0, 0x7035, 0, 0x7034, 0x3B73, 0x7036, 0x7033, 0, /* 0xC0 */ 0, 0x3B28, 0, 0, 0, 0x703A, 0x6A2D, 0, /* 0xD0 */ 0, 0x5256, 0, 0x3F77, 0x7038, 0, 0, 0, /* 0xD0 */ 0, 0, 0x4E25, 0x4671, 0, 0, 0, 0, /* 0xE0 */ 0x312B, 0, 0x4063, 0x3C36, 0, 0, 0, 0, /* 0xE0 */ 0x4A37, 0, 0x3140, 0, 0, 0, 0x4E6D, 0x4D6B, /* 0xF0 */ 0, 0x703B, 0, 0x4545 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_97[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3C7B, 0, 0, 0, 0x703C, 0, 0x703D, 0x3F4C, /* 0x00 */ 0x703E, 0, 0x4E6E, 0, 0, 0x7039, 0x7040, 0x7042, /* 0x00 */ 0, 0x7041, 0, 0x703F, 0, 0, 0x7043, 0, /* 0x10 */ 0, 0x7044, 0, 0, 0x417A, 0, 0x3262, 0, /* 0x10 */ 0, 0, 0, 0, 0x7045, 0, 0, 0x4C38, /* 0x20 */ 0, 0, 0x7046, 0, 0, 0, 0, 0, /* 0x20 */ 0x7047, 0, 0x4F2A, 0, 0, 0, 0, 0, /* 0x30 */ 0x5B31, 0x7048, 0, 0, 0, 0x7049, 0x704A, 0, /* 0x30 */ 0, 0, 0x704E, 0, 0x704B, 0, 0x704C, 0, /* 0x40 */ 0x704D, 0x704F, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x4044, 0, 0, 0, 0x4C77, 0, /* 0x50 */ 0, 0x4045, 0, 0, 0x7050, 0, 0x4873, 0, /* 0x50 */ 0x7051, 0x7353, 0x4C4C, 0, 0x7052, 0, 0x7053, 0, /* 0x60 */ 0x7054, 0x3357, 0, 0x7056, 0, 0x3F59, 0, 0, /* 0x60 */ 0, 0x7057, 0, 0, 0x3724, 0, 0, 0, /* 0x70 */ 0, 0x7058, 0x705C, 0, 0x705A, 0, 0, 0, /* 0x70 */ 0, 0x705B, 0, 0, 0x3373, 0x7059, 0x705D, 0, /* 0x80 */ 0, 0, 0, 0x705E, 0, 0x3048, 0, 0x705F, /* 0x80 */ 0x7060, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0x3E64, 0, 0, 0, 0x7061, 0, 0, 0, /* 0x90 */ 0x3547, 0, 0, 0x7064, 0, 0, 0x7063, 0, /* 0xA0 */ 0x7062, 0, 0, 0x6B71, 0, 0x4A5C, 0, 0, /* 0xA0 */ 0, 0, 0, 0x7065, 0x7066, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x7067, 0, 0, 0x7068, 0, /* 0xC0 */ 0x7069, 0, 0, 0x706A, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0x345A, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0x706B, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x706C, 0x4723, 0, /* 0xE0 */ 0, 0, 0x706E, 0x323B, 0, 0x7071, 0x7070, 0, /* 0xF0 */ 0, 0, 0, 0x3124, 0, 0, 0, 0x3641 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_98[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x4A47, 0x443A, 0x3A22, 0, 0x3960, 0x3D67, 0, /* 0x00 */ 0x3F5C, 0, 0, 0, 0x7073, 0, 0, 0x7072, /* 0x00 */ 0x4D42, 0x3468, 0x4852, 0x465C, 0, 0, 0, 0x3F7C, /* 0x10 */ 0x4E4E, 0, 0x375B, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0x7076, 0, 0, 0x7075, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x4B4B, 0x462C, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x3150, 0, 0, 0x7077, /* 0x30 */ 0x7074, 0, 0, 0x4951, 0x4D6A, 0x7078, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x7079, 0, /* 0x40 */ 0, 0, 0, 0x707B, 0x426A, 0x335B, 0x335C, 0x707A, /* 0x40 */ 0, 0, 0, 0, 0x3469, 0x3832, 0, 0, /* 0x50 */ 0x346A, 0, 0, 0x453F, 0, 0, 0x4E60, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x385C, /* 0x60 */ 0, 0, 0, 0x707C, 0, 0, 0, 0x707D, /* 0x60 */ 0x707E, 0x7121, 0, 0x7123, 0x7122, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x4977, 0, 0x7124, 0, 0, 0, 0, 0x7125, /* 0xA0 */ 0, 0x7126, 0, 0, 0, 0, 0x7127, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x7129, 0x7128, 0, 0x712A, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x4874, 0x664C, 0, 0, 0x3F29, /* 0xD0 */ 0, 0, 0x3532, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0x712B, 0, 0x712C, 0, 0x522C, 0x5D3B, 0x4853, /* 0xE0 */ 0, 0, 0x307B, 0, 0x303B, 0, 0, 0, /* 0xF0 */ 0, 0, 0, 0, 0x3B74, 0x4B30, 0x3E7E /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_99[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x712D, 0, 0x4C5F, 0, 0, /* 0x00 */ 0, 0x712E, 0x4D5C, 0, 0x3142, 0, 0, 0, /* 0x00 */ 0x3B41, 0, 0x712F, 0x326E, 0x7130, 0, 0, 0, /* 0x10 */ 0x7131, 0, 0, 0, 0, 0x7133, 0x7134, 0, /* 0x10 */ 0x7136, 0x7132, 0, 0, 0x7135, 0, 0, 0, /* 0x20 */ 0x345B, 0, 0, 0, 0x7137, 0, 0x7138, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0x7139, 0x713A, 0, /* 0x30 */ 0, 0, 0x713B, 0, 0, 0x713D, 0, 0, /* 0x40 */ 0, 0x713C, 0, 0x713F, 0x7142, 0, 0, 0, /* 0x40 */ 0x713E, 0x7140, 0x7141, 0, 0, 0x7143, 0, 0x3642, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x3C73, 0x7144, /* 0x90 */ 0x7145, 0x3961, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0x7146, 0, 0, /* 0xA0 */ 0x333E, 0, 0, 0, 0x474F, 0x7147, 0x7148, 0, /* 0xA0 */ 0, 0, 0, 0x435A, 0x466B, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0x7149, 0, 0, 0, /* 0xB0 */ 0, 0x477D, 0, 0, 0x424C, 0x3158, 0x366E, 0, /* 0xC0 */ 0x366F, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0x4373, 0x714E, 0x3670, 0, 0, 0x326F, 0, 0, /* 0xD0 */ 0x714D, 0, 0, 0x714B, 0, 0x714C, 0, 0x714A, /* 0xD0 */ 0, 0, 0x7158, 0, 0, 0, 0, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x714F, 0x7150, 0, /* 0xE0 */ 0, 0x7151, 0x7152, 0, 0, 0, 0, 0, /* 0xF0 */ 0x7154, 0, 0, 0x7153, 0, 0, 0, 0x3D59 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9A[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x7155, 0, 0, 0, 0x7157, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0x3533, 0x7156, /* 0x00 */ 0, 0, 0x417B, 0x3833, 0, 0, 0, 0, /* 0x10 */ 0, 0x7159, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0x424D, 0, 0, 0x715A, 0, 0, 0, 0, /* 0x20 */ 0x462D, 0, 0, 0, 0, 0, 0, 0x715B, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x7160, 0, /* 0x30 */ 0x715E, 0, 0x715D, 0x715F, 0, 0x715C, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x7162, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x7161, 0, 0x7164, /* 0x50 */ 0, 0, 0x3643, 0x7163, 0, 0, 0, 0x7165, /* 0x50 */ 0, 0, 0x7166, 0, 0x7168, 0x7167, 0, 0, /* 0x60 */ 0, 0x7169, 0x716B, 0x716A, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x397C, 0, 0, 0, 0, 0x716C, 0, 0, /* 0xA0 */ 0x716D, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x333C, 0, 0, 0, 0x716E, 0, 0, 0, /* 0xB0 */ 0x716F, 0, 0, 0, 0x3F71, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0x7170, /* 0xC0 */ 0, 0x7171, 0, 0x7172, 0x7173, 0, 0, 0, /* 0xD0 */ 0x3962, 0, 0, 0, 0, 0, 0x7174, 0x7175, /* 0xD0 */ 0, 0, 0x7176, 0x7177, 0, 0, 0x7178, 0, /* 0xE0 */ 0, 0, 0x4831, 0x717A, 0, 0x4926, 0x717B, 0x7179, /* 0xE0 */ 0, 0x717D, 0, 0, 0x717C, 0, 0, 0x717E, /* 0xF0 */ 0, 0, 0, 0x7221 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9B[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x7222, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x7223, 0, 0x7224, 0, 0, 0, 0, 0x7225, /* 0x10 */ 0, 0, 0x7226, 0x7227, 0, 0x7228, 0, 0x7229, /* 0x20 */ 0x722A, 0x722B, 0x722C, 0, 0, 0, 0x722D, 0x722E, /* 0x20 */ 0, 0x5D35, 0x722F, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x6478, 0x3534, 0, 0, 0, /* 0x30 */ 0, 0x3321, 0x3A32, 0x7231, 0x7230, 0x4C25, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0x7233, 0x7234, 0x7232, /* 0x40 */ 0, 0x7235, 0, 0, 0x4B62, 0, 0, 0, /* 0x50 */ 0x7236, 0, 0x357B, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0x4F25, /* 0x60 */ 0, 0, 0, 0, 0x7237, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0x7239, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0x303E, 0, /* 0x80 */ 0, 0x723A, 0x4A2B, 0x7238, 0, 0, 0x723B, 0x723C, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0x723D, /* 0x90 */ 0x723E, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0x723F, 0, 0x4B6E, 0x3B2D, 0, 0x3A7A, 0x412F, 0, /* 0xA0 */ 0, 0, 0, 0, 0x7240, 0, 0, 0, /* 0xB0 */ 0, 0x7243, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x7241, 0, 0, 0, 0, 0, 0x7244, 0, /* 0xC0 */ 0, 0x3871, 0x7242, 0, 0, 0, 0, 0x7245, /* 0xC0 */ 0, 0x7246, 0x7247, 0, 0x724B, 0, 0x3B2A, 0, /* 0xD0 */ 0, 0, 0, 0x4264, 0, 0, 0, 0, /* 0xD0 */ 0, 0x724C, 0x7249, 0x7248, 0x724A, 0, 0, 0, /* 0xE0 */ 0x375F, 0, 0, 0, 0, 0, 0, 0, /* 0xE0 */ 0x7250, 0x724F, 0x724E, 0, 0, 0x3033 /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9C[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x725A, 0, 0x7256, 0, /* 0x00 */ 0x7257, 0x7253, 0x7259, 0, 0x7255, 0x3362, 0, 0, /* 0x00 */ 0x4F4C, 0, 0x7258, 0x7254, 0x7252, 0x7251, 0, 0, /* 0x10 */ 0, 0, 0, 0x725C, 0, 0, 0, 0, /* 0x10 */ 0, 0x725F, 0, 0, 0x725E, 0x725D, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0x4949, 0x725B, 0x3073, /* 0x20 */ 0x7260, 0, 0x7262, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0x336F, 0x724D, 0x3137, 0, 0, 0x7264, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0x7263, 0x7261, /* 0x40 */ 0x432D, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x4B70, 0, 0, 0, 0, 0x4E5A, /* 0x50 */ 0, 0, 0x7265, 0, 0, 0, 0, 0, /* 0x50 */ 0x7266, 0, 0, 0, 0, 0, 0, 0x7267, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0x7268, 0, /* 0x70 */ 0x7269, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0x443B, 0, 0x726A, /* 0xE0 */ 0, 0x4837, 0, 0x726F, 0x726B, 0, 0, 0, /* 0xE0 */ 0x726C, 0, 0, 0x4B31, 0x4C44, 0, 0x4650 /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9D[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x7270, 0, 0, 0x7271, 0x463E, /* 0x00 */ 0x726E, 0x726D, 0, 0, 0, 0, 0x322A, 0, /* 0x00 */ 0, 0, 0x7279, 0, 0, 0x7278, 0, 0, /* 0x10 */ 0, 0, 0, 0x3175, 0, 0, 0, 0x7276, /* 0x10 */ 0, 0, 0, 0x7275, 0, 0, 0x7273, 0, /* 0x20 */ 0x337B, 0, 0x7272, 0x3C32, 0x3229, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x3963, 0, 0, 0x727C, 0x727B, /* 0x30 */ 0, 0x727A, 0, 0, 0x7277, 0, 0x727D, 0, /* 0x40 */ 0x727E, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0x7325, 0x7324, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0x7326, 0, 0, 0x312D, 0x7321, 0x7322, 0, /* 0x50 */ 0x3974, 0x4C39, 0, 0, 0x7323, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0x4B32, 0, 0, 0x732B, /* 0x60 */ 0, 0, 0x7327, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0x732C, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0x7329, /* 0x80 */ 0, 0x7328, 0, 0, 0, 0, 0, 0x375C, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0x732D, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x732E, 0, 0, 0, /* 0xA0 */ 0, 0x732F, 0, 0x732A, 0, 0, 0, 0x7274, /* 0xA0 */ 0, 0, 0x7330, 0, 0x4461, 0, 0, 0, /* 0xB0 */ 0x7334, 0, 0x7335, 0x7333, 0, 0, 0, 0, /* 0xB0 */ 0, 0x7332, 0x7338, 0, 0x7331, 0, 0x7336, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0x7337, /* 0xC0 */ 0, 0, 0, 0x733A, 0, 0, 0, 0, /* 0xD0 */ 0, 0x7339, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0x733C, 0, /* 0xE0 */ 0, 0, 0, 0, 0, 0x733D, 0, 0x733E, /* 0xE0 */ 0, 0, 0x4F49, 0, 0, 0, 0, 0, /* 0xF0 */ 0x733B, 0x426B, 0x3A6D, 0, 0, 0x733F /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9E[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ /* 0x10 */ 0x7340, 0x7341, 0, 0, 0x7342, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0x7343, 0, 0, /* 0x70 */ 0x3834, 0x7344, 0, 0, 0, 0x7345, 0, 0x3C2F, /* 0x70 */ 0, 0x7346, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0x7347, 0, 0, 0x7348, 0x7349, 0, 0, 0, /* 0x80 */ 0, 0x734C, 0x734A, 0x4F3C, 0, 0x734B, 0, 0x4E6F, /* 0x90 */ 0, 0, 0, 0, 0, 0x734D, 0, 0x4E5B, /* 0x90 */ 0, 0, 0, 0, 0, 0x734E, 0x477E, 0, /* 0xA0 */ 0, 0x734F, 0x7351, 0, 0, 0x7352, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0x7350, 0x396D, 0x4C4D, 0x4B63, 0x5677, 0, 0x5D60, 0x4B7B, /* 0xB0 */ 0, 0, 0, 0, 0x322B, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0x7354, 0x3550, 0x7355, 0x7356, /* 0xC0 */ 0x7357, 0, 0x3975, 0, 0x7358, 0, 0, 0, /* 0xD0 */ 0x6054, 0x4C5B, 0, 0x4263, 0x7359, 0x735B, 0x735A, 0, /* 0xD0 */ 0x735C, 0, 0, 0, 0, 0x735D, 0, 0, /* 0xE0 */ 0x735E, 0, 0, 0, 0, 0, 0, 0x735F, /* 0xE0 */ 0, 0, 0, 0, 0x7360, 0, 0x7361, 0x7362, /* 0xF0 */ 0, 0x7363, 0, 0x7364, 0x7365, 0x7366 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_9F[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x7367, /* 0x00 */ 0x7368, 0, 0, 0, 0, 0, 0x4524, 0, /* 0x00 */ 0, 0, 0, 0x385D, 0, 0x736A, 0, 0, /* 0x10 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x10 */ 0x414D, 0x736B, 0, 0, 0, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0x736C, 0, 0, 0, /* 0x20 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x30 */ 0, 0, 0, 0x4921, 0, 0, 0x736D, 0, /* 0x30 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x40 */ 0, 0, 0x736E, 0x6337, 0, 0, 0x6C5A, 0x706D, /* 0x40 */ 0, 0, 0x736F, 0, 0x7370, 0, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0x7372, /* 0x50 */ 0x7373, 0x7374, 0x4E70, 0x7371, 0, 0, 0x7375, 0x7376, /* 0x60 */ 0, 0, 0x7378, 0, 0x7377, 0, 0, 0, /* 0x60 */ 0, 0, 0x737A, 0, 0, 0, 0x737B, 0x7379, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x4E36, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0x737C, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0x737D, 0x6354, 0, 0, /* 0x90 */ 0x737E /* 0xA0 */ /* 0xA0 */ }; /* ----------------------------------------------------------------------- */ static sal_uInt16 const aImplUniToDBCSTab_JIS0208_FF[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x212A, 0, 0x2174, 0x2170, 0x2173, 0x2175, 0, /* 0x00 */ 0x214A, 0x214B, 0x2176, 0x215C, 0x2124, 0, 0x2125, 0x213F, /* 0x00 */ 0x2330, 0x2331, 0x2332, 0x2333, 0x2334, 0x2335, 0x2336, 0x2337, /* 0x10 */ 0x2338, 0x2339, 0x2127, 0x2128, 0x2163, 0x2161, 0x2164, 0x2129, /* 0x10 */ 0x2177, 0x2341, 0x2342, 0x2343, 0x2344, 0x2345, 0x2346, 0x2347, /* 0x20 */ 0x2348, 0x2349, 0x234A, 0x234B, 0x234C, 0x234D, 0x234E, 0x234F, /* 0x20 */ 0x2350, 0x2351, 0x2352, 0x2353, 0x2354, 0x2355, 0x2356, 0x2357, /* 0x30 */ 0x2358, 0x2359, 0x235A, 0x214E, 0, 0x214F, 0x2130, 0x2132, /* 0x30 */ 0x212E, 0x2361, 0x2362, 0x2363, 0x2364, 0x2365, 0x2366, 0x2367, /* 0x40 */ 0x2368, 0x2369, 0x236A, 0x236B, 0x236C, 0x236D, 0x236E, 0x236F, /* 0x40 */ 0x2370, 0x2371, 0x2372, 0x2373, 0x2374, 0x2375, 0x2376, 0x2377, /* 0x50 */ 0x2378, 0x2379, 0x237A, 0x2150, 0x2143, 0x2151, 0, 0, /* 0x50 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x60 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x70 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x80 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x90 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0x2131, 0, 0x216F /* 0xE0 */ /* 0xE0 */ };
the_stack
create schema magic_set; set search_path=magic_set; create table magic_t1(a int, b varchar, c int, d int) distribute by hash(a); create table magic_t2(a int, b varchar, c int, d int) distribute by hash(a); create table magic_t3(a int, b varchar, c int, d int) distribute by hash(a); insert into magic_t1 select generate_series(1, 1000), generate_series(1, 1000), generate_series(1, 1000), generate_series(1, 1000) from public.src; insert into magic_t2 select generate_series(1, 100), generate_series(1, 200), generate_series(1, 300), generate_series(1, 500) from public.src; insert into magic_t3 select generate_series(1, 100), generate_series(1, 200), generate_series(1, 300), generate_series(1, 500) from public.src; analyze magic_t1; analyze magic_t2; analyze magic_t3; show rewrite_rule; --sublink in where qual explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b = 10 and t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b = 10 and t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b < 2 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b < 2 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 and t1.b < 55 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 and t1.b < 55 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 or t1.b < 55 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 or t1.b < 55 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4 limit 50; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and (t1.b > 50 or t1.b < 55) and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and (t1.b > 50 or t1.b < 55) and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4 limit 50; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 and t1.b < 55 and COALESCE(t1.a::varchar, t1.b) = 51 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 50 and t1.b < 55 and COALESCE(t1.a::varchar, t1.b) = 51 and t1.c < (select max(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select COUNT(*) from magic_t1 as t1, magic_t2 as t2 where t1.b < 100 and case when t1.b is null then false else true end and t1.c <= (select avg(c) from magic_t2 t2 where t1.a = t2.a); select COUNT(*) from magic_t1 as t1, magic_t2 as t2 where t1.b < 100 and case when t1.b is null then false else true end and t1.c <= (select avg(c) from magic_t2 t2 where t1.a = t2.a); explain (costs off) select COUNT(*) from magic_t1 as t1, magic_t2 as t2 where case when t1.b is null then false else true end and t1.c <= (select avg(c) from magic_t2 t2 where t1.a = t2.a); explain (costs off) select COUNT(*) from magic_t1 as t1, magic_t2 as t2 where t1.b < 100 and t1.c <= (select avg(c) from magic_t2 t2 where t1.a = t2.a); select COUNT(*) from magic_t1 as t1, magic_t2 as t2 where t1.b < 100 and t1.c <= (select avg(c) from magic_t2 t2 where t1.a = t2.a); explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 10 and t1.c < 12 and t1.b = t1.c and t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b > 10 and t1.c < 12 and t1.b = t1.c and t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.b > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.b > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a)order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a and t1.b = t2.b); select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a and t1.b = t2.b)order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.b = t2.b and t1.c = t2.c); select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where t1.a > 99 and t1.c <= (select sum(c) from magic_t2 t2 where t1.b = t2.b and t1.c = t2.c) order by 1,2,3,4; --include or clause explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a); select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a)order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a and t1.b = t2.b) order by 1,2,3,4; select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a and t1.b = t2.b) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.c = t2.c and t1.b = t2.b and t1.d = t2.d) order by 1,2,3,4; select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > 999 or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.c = t2.c and t1.b = t2.b and t1.d = t2.d) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > t2.b or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) where (t1.a > t2.b or t1.a < 2) and t1.c <= (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; --sublink in join qual explain (costs off) select t2.* from magic_t1 as t1 inner join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b > 50 and t2.b < 55 and t2.c is null order by 1,2,3,4; select t2.* from magic_t1 as t1 inner join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b > 50 and t2.b < 55 and t2.c is null order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 inner join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b in (select c from magic_t3) order by 1,2,3,4; select t2.* from magic_t1 as t1 inner join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b in (select c from magic_t3) order by 1,2,3,4 limit 50; --out join unsupport explain (costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b > 50 and t2.b < 55 order by 1,2,3,4; select t2.* from magic_t1 as t1 left join magic_t2 as t2 on t1.a = t2.a and t2.c < (select max(c) from magic_t3 t3 where t2.a = t3.a) where t2.b > 50 and t2.b < 55 order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1 right join magic_t2 as t2 on t1.a = t2.a and t1.c < (select max(c) from magic_t3 t3 where t1.a = t3.a) where t1.b > 50 and t1.b < 55 order by 1,2,3,4; select t2.* from magic_t1 as t1 right join magic_t2 as t2 on t1.a = t2.a and t1.c < (select max(c) from magic_t3 t3 where t1.a = t3.a) where t1.b > 50 and t1.b < 55 order by 1,2,3,4; explain (costs off) select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2 inner join magic_t3 as t3 on (1 = 1) where (t1.a = t3.a)) and t1.b > 100 order by 1,2,3,4; select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2 inner join magic_t3 as t3 on (1 = 1) where (t1.a = t3.a)) and t1.b > 100 order by 1,2,3,4; explain (costs off) select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2, magic_t3 as t4 where t1.a = t4.a) and t1.b > 100 order by 1,2,3,4; select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2, magic_t3 as t4 where t1.a = t4.a) and t1.b > 100 order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.c < (select sum(a) from magic_t3 as t3 where t1.a = t3.a) where t1.b > 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.c < (select sum(a) from magic_t3 as t3 where t1.a = t3.a) where t1.b > 100 order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.c <= (select sum(a) from (select a from magic_t3 group by a) as t3 where t1.a = t3.a) where t1.b >= 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.c <= (select sum(a) from (select a from magic_t3 group by a) as t3 where t1.a = t3.a) where t1.b >= 100 order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c <= (select sum(a) from (select a from magic_t3 group by a) as t3 where t1.a = t3.a) and t1.b >= 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c <= (select sum(a) from (select a from magic_t3 group by a) as t3 where t1.a = t3.a) and t1.b >= 100 order by 1,2,3,4; --with more table correlation explain(costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b = 10 and t2.b = 10 and t1.c < (select sum(c) from magic_t3 t3 where t1.a = t3.a and t2.a = t3.a) order by 1,2,3,4; select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.a = t2.a and t1.b = 10 and t2.b = 10 and t1.c < (select sum(c) from magic_t3 t3 where t1.a = t3.a and t2.a = t3.a) order by 1,2,3,4; explain (costs off) select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.b = t2.b and t1.b = 10 and t2.c = 10 and COALESCE(t1.a::varchar, t1.b) = 10 and COALESCE(t2.a::varchar, t2.b) = 10 and t1.c < (select sum(c) from magic_t3 t3 where t1.a = t3.a and t2.a = t3.a) order by 1,2,3,4; select t2.* from magic_t1 as t1, magic_t2 as t2 where t1.b = t2.b and t1.b = 10 and t2.c = 10 and COALESCE(t1.a::varchar, t1.b) = 10 and COALESCE(t2.a::varchar, t2.b) = 10 and t1.c < (select sum(c) from magic_t3 t3 where t1.a = t3.a and t2.a = t3.a) order by 1,2,3,4; explain(costs off) select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a) where t2.b is null; select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a) where t2.b is null; explain(costs off) select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a and t3.a in (select a from magic_t2 as t2 where t2.b is null)) where t2.b is null; select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a and t3.a in (select a from magic_t2 as t2 where t2.b is null)) where t2.b is null; explain (costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.b > 100 and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b) and t1.b < 200 and t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a) order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.b > 100 and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b) and t1.b < 200 and t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a) order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a) and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b)order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a) and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b)order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t1.b > 100 and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b)order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t1.b > 100 and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b)order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b) and t1.b > 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t2.a in (select a from magic_t3 as t3 where t2.b = t3.b) and t1.b > 100 order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t2.a > (select a from magic_t3 as t3 where t2.b = t3.b limit 1) and t1.b > 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(a) from (select a from magic_t3) as t4 where t1.a = t4.a) and t2.a > (select a from magic_t3 as t3 where t2.b = t3.b limit 1) and t1.b > 100 order by 1,2,3,4; --can not pull up --sublink can not pullup explain(costs off) select t2.* from magic_t1 as t1 full join magic_t2 as t2 on t1.a = t2.a and t1.c < (select max(c) from magic_t3 t3 where t1.a = t3.a) where t1.b > 50 and t1.b < 55 order by 1,2,3,4; select t2.* from magic_t1 as t1 full join magic_t2 as t2 on t1.a = t2.a and t1.c < (select max(c) from magic_t3 t3 where t1.a = t3.a) where t1.b > 50 and t1.b < 55 order by 1,2,3,4 limit 50; --not to search join quals, out join can lead to result error explain (costs off) select t2.* from magic_t1 as t1 right join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; select t2.* from magic_t1 as t1 right join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; explain(costs off) select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4; select t2.* from magic_t1 as t1 left join magic_t2 as t2 on (t1.a = t2.a) and t1.b > 100 where t1.c < (select sum(c) from magic_t2 t2 where t1.a = t2.a) order by 1,2,3,4 limit 10; --expr sublink include any_sublink, can not pull explain(costs off) select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a and t4.a in (select a from magic_t3)) and t1.b > 100 order by 1,2,3,4; select t2.* from magic_t1 as t1 join magic_t2 as t2 on (t1.a = t2.a) where t1.c < (select sum(c) from magic_t2 as t4 where t1.a = t4.a and t4.a in (select a from magic_t3)) and t1.b > 100 order by 1,2,3,4; --expr sublink can not pull up, include left join explain(costs off) select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2 left join magic_t3 as t3 on (1 = 1) where (t1.a = t3.a)) and t1.b > 100 order by 1,2,3,4; select * from magic_t1 as t1 where t1.c < (select sum(t2.a) from magic_t2 as t2 left join magic_t3 as t3 on (1 = 1) where (t1.a = t3.a)) and t1.b > 100 order by 1,2,3,4; drop table magic_t1; drop table magic_t2; drop table magic_t3; create table magic_t1(a int, b int, c int) distribute by hash(a); create table magic_t2(a int, b int, c int) distribute by hash(a); create table magic_t3(a int, b int, c int) distribute by hash(a); insert into magic_t1 values(1, 1, 1); insert into magic_t2 values(1, 1, 1); insert into magic_t3 values(1, 1, 1); select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a) where t2.b is null; select count(*) from magic_t1 as t1 left join magic_t2 as t2 on t2.c <= (select max(c) from magic_t3 as t3 where t2.a = t3.a and t3.a in (select a from magic_t2 as t2 where t2.b is null)) where t2.b is null; drop table magic_t1; drop table magic_t2; drop table magic_t3; create table magic_t1(t1_a int, t1_b varchar, t1_c int, t1_d int) distribute by hash(t1_a); create table magic_t2(t2_a int, t2_b varchar, t2_c int, t2_d int) distribute by hash(t2_a); create table magic_t3(t3_a int, t3_b varchar, t3_c int, t3_d int) distribute by hash(t3_a); create table magic_t4(t4_a int, t4_b varchar, t4_c int, t4_d int) distribute by hash(t4_a); insert into magic_t1 values(generate_series(1, 100), generate_series(1, 100), generate_series(1, 100), generate_series(1, 100)); insert into magic_t2 values(generate_series(1, 30), generate_series(1, 30), generate_series(1, 30), generate_series(1, 30)); insert into magic_t3 values(generate_series(1, 20), generate_series(1, 20), generate_series(1, 20), generate_series(1, 20)); insert into magic_t4 values(generate_series(1, 10), generate_series(1, 10), generate_series(1, 10), generate_series(1, 10)); analyze magic_t1; analyze magic_t2; analyze magic_t3; analyze magic_t4; explain(costs off) select t1_a from magic_t1 join magic_t2 on (t1_a = t2_a) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a); select t1_a from magic_t1 join magic_t2 on (t1_a = t2_a) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a) order by t1_a; explain(costs off) select t2_a from magic_t1 join magic_t2 on (t1_a = t2_a) join magic_t3 on(t2_b = t3_b) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t4_b) from magic_t4 where t4_a = t1_a); select t2_a from magic_t1 join magic_t2 on (t1_a = t2_a) join magic_t3 on(t2_b = t3_b) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t4_b) from magic_t4 where t4_a = t1_a)order by t2_a; explain(costs off) select t1_a from magic_t1 join magic_t2 on (t1_a = t2_a) where case when t1_b < 10 then true else false end and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a); select t1_a from magic_t1 join magic_t2 on (t1_a = t2_a) where case when t1_b < 10 then true else false end and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a) order by t1_a; explain(costs off) select t1_a from magic_t1 left join magic_t2 on (t1_a = t2_a) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a); select t1_a from magic_t1 left join magic_t2 on (t1_a = t2_a) where t1_b < 10 and t1_c = t2_c and t1_d >= (select max(t3_b) from magic_t3 where t3_a = t1_a)order by t1_a; explain(costs off) select 1 from magic_t1 left join magic_t2 on (t1_a = t2_a and t2_d >=(select max(t3_b) from magic_t3 where t3_a = t2_a)) where t1_b < 10 and t1_c = t2_c; explain(costs off) select 1 from magic_t1 right join magic_t2 on (t1_a = t2_a and t1_d >=(select max(t3_b) from magic_t3 where t3_a = t1_a)) where t1_b < 10 and t1_c = t2_c; explain(costs off) select t2_b from magic_t1 left join magic_t2 on (t1_a = t2_a) join magic_t3 on (t2_a = t3_a and t1_d >=(select max(t4_b) from magic_t4 where t4_a = t1_a)) where t1_b < 10 and t1_c = t2_c; select t2_b from magic_t1 left join magic_t2 on (t1_a = t2_a) join magic_t3 on (t2_a = t3_a and t1_d >=(select max(t4_b) from magic_t4 where t4_a = t1_a)) where t1_b < 10 and t1_c = t2_c order by t2_b; explain(costs off) select t1_a from magic_t1 join (select t2_a, t2_b from magic_t2, magic_t3 where t2_a = t3_a) as AA on (t1_a = t2_a) where t2_a < 10 and t1_d >=(select max(t4_b) from magic_t4 where t4_a = t2_b); select t1_a from magic_t1 join (select t2_a, t2_b from magic_t2, magic_t3 where t2_a = t3_a) as AA on (t1_a = t2_a) where t2_a < 10 and t1_d >=(select max(t4_b) from magic_t4 where t4_a = t2_b) order by t1_a; explain (costs off) select magic_t2.* from magic_t1 join magic_t2 on (1 = 1) where t1_c < (select sum(t3_a) from magic_t3 where t1_a = t3_a and t1_b = t3_b) and t2_a > (select max(t4_a) from magic_t4 where t2_b = t4_b and t2_c = t4_c) and t1_b > 100 and t1_b = t1_a and t2_a > 10 and t2_d > 20; select magic_t2.* from magic_t1 join magic_t2 on (1 = 1) where t1_c < (select sum(t3_a) from magic_t3 where t1_a = t3_a and t1_b = t3_b) and t2_a > (select max(t4_a) from magic_t4 where t2_b = t4_b and t2_c = t4_c) and t1_b > 100 and t1_b = t1_a and t2_a > 10 and t2_d > 20; explain (costs off) select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_a = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a = t3_a and t2_a = t3_a); select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_a = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a = t3_a and t2_a = t3_a); explain (costs off) select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_a = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a = t3_a + t3_b); explain (costs off) select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a = t3_a + t3_b); explain (costs off) select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_a = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a + t2_a = t3_a); select magic_t2.* from magic_t1, magic_t2 where t1_a = t2_a and t1_b = 10 and t2_b = 10 and t1_a = 10 and t1_c < (select sum(t3_c) from magic_t3 where t1_a + t2_a = t3_a); explain(costs off) select 1 from magic_t1, magic_t2 where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)); select t1_a from magic_t1, magic_t2 where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)) order by t1_a; explain(costs off) select 1 from magic_t1, magic_t2 where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c) union all select max(t3_a) from magic_t3 where t3_a = t2_a and t2_a = 1 and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)); select t1_a from magic_t1, magic_t2 where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c) union all select max(t3_a) from magic_t3 where t3_a = t2_a and t2_a = 1 and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)) order by t1_a; explain(costs off) select 1 from magic_t1 join magic_t2 on(1 = 1) where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)); select t1_a from magic_t1 join magic_t2 on(1 = 1) where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)) order by t1_a; explain(costs off) select 1 from magic_t1 join magic_t2 on(1 = 1) where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b < 100 and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)); select t1_a from magic_t1 join magic_t2 on(1 = 1) where t1_a in (select max(t3_a) from magic_t3 where t3_a = t2_a and t3_b < 100 and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)) order by t1_a; select 1 from magic_t1, magic_t2 where t1_a in ( select max(t3_a) from magic_t3, magic_t4 where t3_a = t4_a and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c) union all select max(t3_a) from magic_t3 where t3_a = t2_a and t2_a = 1 and t3_b = (select avg(t4_a) from magic_t4 where t3_c = t4_c)) limit 10; drop table magic_t1; drop table magic_t2; drop table magic_t3; drop table magic_t4; drop schema magic_set cascade;
the_stack
CREATE TYPE sys.SMALLDATETIME; CREATE OR REPLACE FUNCTION sys.smalldatetimein(cstring) RETURNS sys.SMALLDATETIME AS 'babelfishpg_common', 'smalldatetime_in' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetimeout(sys.SMALLDATETIME) RETURNS cstring AS 'timestamp_out' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetimerecv(internal) RETURNS sys.SMALLDATETIME AS 'timestamp_recv' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetimesend(sys.SMALLDATETIME) RETURNS bytea AS 'timestamp_send' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalltypmodin(cstring[]) RETURNS integer AS 'timestamptypmodin' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalltypmodout(integer) RETURNS cstring AS 'timestamptypmodout' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE TYPE sys.SMALLDATETIME ( INPUT = sys.smalldatetimein, OUTPUT = sys.smalldatetimeout, RECEIVE = sys.smalldatetimerecv, SEND = sys.smalldatetimesend, TYPMOD_IN = sys.smalltypmodin, TYPMOD_OUT = sys.smalltypmodout, INTERNALLENGTH = 8, ALIGNMENT = 'double', STORAGE = 'plain', CATEGORY = 'D', PREFERRED = false, COLLATABLE = false, DEFAULT = '1900-01-01 00:00', PASSEDBYVALUE ); CREATE FUNCTION sys.smalldatetimeeq(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_eq' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimene(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_ne' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimelt(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_lt' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimele(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_le' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimegt(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_gt' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimege(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS bool AS 'timestamp_ge' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, COMMUTATOR = =, NEGATOR = <>, PROCEDURE = sys.smalldatetimeeq, RESTRICT = eqsel, JOIN = eqjoinsel, MERGES ); CREATE OPERATOR sys.<> ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, NEGATOR = =, COMMUTATOR = <>, PROCEDURE = sys.smalldatetimene, RESTRICT = neqsel, JOIN = neqjoinsel ); CREATE OPERATOR sys.< ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, NEGATOR = >=, COMMUTATOR = >, PROCEDURE = sys.smalldatetimelt, RESTRICT = scalarltsel, JOIN = scalarltjoinsel ); CREATE OPERATOR sys.<= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, NEGATOR = >, COMMUTATOR = >=, PROCEDURE = sys.smalldatetimele, RESTRICT = scalarlesel, JOIN = scalarlejoinsel ); CREATE OPERATOR sys.> ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, NEGATOR = <=, COMMUTATOR = <, PROCEDURE = sys.smalldatetimegt, RESTRICT = scalargtsel, JOIN = scalargtjoinsel ); CREATE OPERATOR sys.>= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = sys.SMALLDATETIME, NEGATOR = <, COMMUTATOR = <=, PROCEDURE = sys.smalldatetimege, RESTRICT = scalargesel, JOIN = scalargejoinsel ); CREATE OR REPLACE FUNCTION sys.smalldatetime_larger(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS sys.SMALLDATETIME AS 'timestamp_larger' LANGUAGE INTERNAL IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetime_smaller(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS sys.SMALLDATETIME AS 'timestamp_smaller' LANGUAGE INTERNAL IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE AGGREGATE sys.max(sys.SMALLDATETIME) ( sfunc = sys.smalldatetime_larger, stype = sys.smalldatetime, combinefunc = sys.smalldatetime_larger, parallel = safe ); CREATE OR REPLACE AGGREGATE sys.min(sys.SMALLDATETIME) ( sfunc = sys.smalldatetime_smaller, stype = sys.smalldatetime, combinefunc = sys.smalldatetime_smaller, parallel = safe ); -- smalldate vs pg_catalog.date CREATE FUNCTION sys.smalldatetime_eq_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_eq_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetime_ne_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_ne_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetime_lt_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_lt_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetime_le_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_le_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetime_gt_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_gt_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetime_ge_date(sys.SMALLDATETIME, pg_catalog.date) RETURNS bool AS 'timestamp_ge_date' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, COMMUTATOR = =, NEGATOR = <>, PROCEDURE = smalldatetime_eq_date, RESTRICT = eqsel, JOIN = eqjoinsel, MERGES ); CREATE OPERATOR sys.<> ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, NEGATOR = =, COMMUTATOR = <>, PROCEDURE = smalldatetime_ne_date, RESTRICT = neqsel, JOIN = neqjoinsel ); CREATE OPERATOR sys.< ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, NEGATOR = >=, COMMUTATOR = >, PROCEDURE = smalldatetime_lt_date, RESTRICT = scalarltsel, JOIN = scalarltjoinsel ); CREATE OPERATOR sys.<= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, NEGATOR = >, COMMUTATOR = >=, PROCEDURE = smalldatetime_le_date, RESTRICT = scalarlesel, JOIN = scalarlejoinsel ); CREATE OPERATOR sys.> ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, NEGATOR = <=, COMMUTATOR = <, PROCEDURE = smalldatetime_gt_date, RESTRICT = scalargtsel, JOIN = scalargtjoinsel ); CREATE OPERATOR sys.>= ( LEFTARG = sys.SMALLDATETIME, RIGHTARG = pg_catalog.date, NEGATOR = <, COMMUTATOR = <=, PROCEDURE = smalldatetime_ge_date, RESTRICT = scalargesel, JOIN = scalargejoinsel ); -- pg_catalog.date vs smalldate CREATE FUNCTION sys.date_eq_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_eq_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.date_ne_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_ne_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.date_lt_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_lt_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.date_le_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_le_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.date_gt_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_gt_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.date_ge_smalldatetime(pg_catalog.date, sys.SMALLDATETIME) RETURNS bool AS 'date_ge_timestamp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.= ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, COMMUTATOR = =, NEGATOR = <>, PROCEDURE = date_eq_smalldatetime, RESTRICT = eqsel, JOIN = eqjoinsel, MERGES ); CREATE OPERATOR sys.<> ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, NEGATOR = =, COMMUTATOR = <>, PROCEDURE = date_ne_smalldatetime, RESTRICT = neqsel, JOIN = neqjoinsel ); CREATE OPERATOR sys.< ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, NEGATOR = >=, COMMUTATOR = >, PROCEDURE = date_lt_smalldatetime, RESTRICT = scalarltsel, JOIN = scalarltjoinsel ); CREATE OPERATOR sys.<= ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, NEGATOR = >, COMMUTATOR = >=, PROCEDURE = date_le_smalldatetime, RESTRICT = scalarlesel, JOIN = scalarlejoinsel ); CREATE OPERATOR sys.> ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, NEGATOR = <=, COMMUTATOR = <, PROCEDURE = date_gt_smalldatetime, RESTRICT = scalargtsel, JOIN = scalargtjoinsel ); CREATE OPERATOR sys.>= ( LEFTARG = pg_catalog.date, RIGHTARG = sys.SMALLDATETIME, NEGATOR = <, COMMUTATOR = <=, PROCEDURE = date_ge_smalldatetime, RESTRICT = scalargesel, JOIN = scalargejoinsel ); -- smalldatetime <-> int/float operators for smalldatetime-int +/- arithmetic CREATE FUNCTION sys.smalldatetimeplint4(sys.smalldatetime, INT4) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'smalldatetime_pl_int4' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.int4plsmalldatetime(INT4, sys.smalldatetime) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'int4_pl_smalldatetime' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.smalldatetimemiint4(sys.smalldatetime, INT4) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'smalldatetime_mi_int4' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION sys.int4mismalldatetime(INT4, sys.smalldatetime) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'int4_mi_smalldatetime' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.+ ( LEFTARG = sys.smalldatetime, RIGHTARG = INT4, PROCEDURE = sys.smalldatetimeplint4 ); CREATE OPERATOR sys.+ ( LEFTARG = INT4, RIGHTARG = sys.smalldatetime, PROCEDURE = sys.int4plsmalldatetime ); CREATE OPERATOR sys.- ( LEFTARG = sys.smalldatetime, RIGHTARG = INT4, PROCEDURE = sys.smalldatetimemiint4 ); CREATE OPERATOR sys.- ( LEFTARG = INT4, RIGHTARG = sys.smalldatetime, PROCEDURE = sys.int4mismalldatetime ); CREATE FUNCTION sys.smalldatetimeplfloat8(sys.smalldatetime, float8) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'smalldatetime_pl_float8' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.+ ( LEFTARG = sys.smalldatetime, RIGHTARG = float8, PROCEDURE = sys.smalldatetimeplfloat8 ); CREATE FUNCTION sys.smalldatetimemifloat8(sys.smalldatetime, float8) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'smalldatetime_mi_float8' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.- ( LEFTARG = sys.smalldatetime, RIGHTARG = float8, PROCEDURE = sys.smalldatetimemifloat8 ); CREATE FUNCTION sys.float8plsmalldatetime(float8, sys.smalldatetime) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'float8_pl_smalldatetime' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.+ ( LEFTARG = float8, RIGHTARG = sys.smalldatetime, PROCEDURE = sys.float8plsmalldatetime ); CREATE FUNCTION sys.float8mismalldatetime(float8, sys.smalldatetime) RETURNS sys.smalldatetime AS 'babelfishpg_common', 'float8_mi_smalldatetime' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR sys.- ( LEFTARG = float8, RIGHTARG = sys.smalldatetime, PROCEDURE = sys.float8mismalldatetime ); CREATE FUNCTION smalldatetime_cmp(sys.SMALLDATETIME, sys.SMALLDATETIME) RETURNS INT4 AS 'timestamp_cmp' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE FUNCTION smalldatetime_hash(sys.SMALLDATETIME) RETURNS INT4 AS 'timestamp_hash' LANGUAGE internal IMMUTABLE STRICT PARALLEL SAFE; CREATE OPERATOR CLASS sys.smalldatetime_ops DEFAULT FOR TYPE sys.SMALLDATETIME USING btree AS OPERATOR 1 < (sys.SMALLDATETIME, sys.SMALLDATETIME), OPERATOR 2 <= (sys.SMALLDATETIME, sys.SMALLDATETIME), OPERATOR 3 = (sys.SMALLDATETIME, sys.SMALLDATETIME), OPERATOR 4 >= (sys.SMALLDATETIME, sys.SMALLDATETIME), OPERATOR 5 > (sys.SMALLDATETIME, sys.SMALLDATETIME), FUNCTION 1 smalldatetime_cmp(sys.SMALLDATETIME, sys.SMALLDATETIME); CREATE OPERATOR CLASS sys.smalldatetime_ops DEFAULT FOR TYPE sys.SMALLDATETIME USING hash AS OPERATOR 1 = (sys.SMALLDATETIME, sys.SMALLDATETIME), FUNCTION 1 smalldatetime_hash(sys.SMALLDATETIME); CREATE OR REPLACE FUNCTION sys.timestamp2smalldatetime(TIMESTAMP) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'timestamp_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.datetime2smalldatetime(DATETIME) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'timestamp_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.datetime22smalldatetime(DATETIME2) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'timestamp_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.date2smalldatetime(DATE) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'date_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetime2date(SMALLDATETIME) RETURNS DATE AS 'timestamp_date' LANGUAGE internal VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.timestamptz2smalldatetime(TIMESTAMPTZ) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'timestamptz_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetime2timestamptz(SMALLDATETIME) RETURNS TIMESTAMPTZ AS 'timestamp_timestamptz' LANGUAGE internal VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.time2smalldatetime(TIME) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'time_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.smalldatetime2time(SMALLDATETIME) RETURNS TIME AS 'timestamp_time' LANGUAGE internal VOLATILE STRICT PARALLEL SAFE; CREATE CAST (TIMESTAMP AS SMALLDATETIME) WITH FUNCTION sys.timestamp2smalldatetime(TIMESTAMP) AS ASSIGNMENT; CREATE CAST (DATETIME AS SMALLDATETIME) WITH FUNCTION sys.datetime2smalldatetime(DATETIME) AS ASSIGNMENT; CREATE CAST (DATETIME2 AS SMALLDATETIME) WITH FUNCTION sys.datetime22smalldatetime(DATETIME2) AS ASSIGNMENT; CREATE CAST (SMALLDATETIME AS DATETIME) WITHOUT FUNCTION AS IMPLICIT; CREATE CAST (SMALLDATETIME AS DATETIME2) WITHOUT FUNCTION AS IMPLICIT; CREATE CAST (SMALLDATETIME AS TIMESTAMP) WITHOUT FUNCTION AS IMPLICIT; CREATE CAST (TIMESTAMPTZ AS SMALLDATETIME) WITH FUNCTION sys.timestamptz2smalldatetime (TIMESTAMPTZ) AS IMPLICIT; CREATE CAST (SMALLDATETIME AS TIMESTAMPTZ) WITH FUNCTION sys.smalldatetime2timestamptz (SMALLDATETIME) AS ASSIGNMENT; CREATE CAST (DATE AS SMALLDATETIME) WITH FUNCTION sys.date2smalldatetime (DATE) AS IMPLICIT; CREATE CAST (SMALLDATETIME AS DATE) WITH FUNCTION sys.smalldatetime2date (SMALLDATETIME) AS ASSIGNMENT; CREATE CAST (TIME AS SMALLDATETIME) WITH FUNCTION sys.time2smalldatetime (TIME) AS IMPLICIT; CREATE CAST (SMALLDATETIME AS TIME) WITH FUNCTION sys.smalldatetime2time (SMALLDATETIME) AS ASSIGNMENT; -- BABEL-1465 CAST from VARCHAR/NVARCHAR/CHAR/NCHAR to smalldatetime is VOLATILE CREATE OR REPLACE FUNCTION sys.varchar2smalldatetime(sys.VARCHAR) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'varchar_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (sys.VARCHAR AS SMALLDATETIME) WITH FUNCTION sys.varchar2smalldatetime (sys.VARCHAR) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.varchar2smalldatetime(pg_catalog.VARCHAR) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'varchar_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (pg_catalog.VARCHAR AS SMALLDATETIME) WITH FUNCTION sys.varchar2smalldatetime (pg_catalog.VARCHAR) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.char2smalldatetime(CHAR) RETURNS SMALLDATETIME AS 'babelfishpg_common', 'char_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (CHAR AS SMALLDATETIME) WITH FUNCTION sys.char2smalldatetime (CHAR) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.bpchar2smalldatetime(sys.BPCHAR) RETURNS sys.SMALLDATETIME AS 'babelfishpg_common', 'char_smalldatetime' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (sys.BPCHAR AS sys.SMALLDATETIME) WITH FUNCTION sys.bpchar2smalldatetime (sys.BPCHAR) AS ASSIGNMENT; -- BABEL-1465 CAST from smalldatetime to VARCHAR/NVARCHAR/CHAR/NCHAR is VOLATILE CREATE OR REPLACE FUNCTION sys.smalldatetime2sysvarchar(SMALLDATETIME) RETURNS sys.VARCHAR AS 'babelfishpg_common', 'smalldatetime_varchar' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (SMALLDATETIME AS sys.VARCHAR) WITH FUNCTION sys.smalldatetime2sysvarchar (SMALLDATETIME) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.smalldatetime2varchar(SMALLDATETIME) RETURNS pg_catalog.VARCHAR AS 'babelfishpg_common', 'smalldatetime_varchar' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (SMALLDATETIME AS pg_catalog.VARCHAR) WITH FUNCTION sys.smalldatetime2varchar (SMALLDATETIME) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.smalldatetime2char(SMALLDATETIME) RETURNS CHAR AS 'babelfishpg_common', 'smalldatetime_char' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (SMALLDATETIME AS CHAR) WITH FUNCTION sys.smalldatetime2char (SMALLDATETIME) AS ASSIGNMENT; CREATE OR REPLACE FUNCTION sys.smalldatetime2bpchar(sys.SMALLDATETIME) RETURNS sys.BPCHAR AS 'babelfishpg_common', 'smalldatetime_char' LANGUAGE C VOLATILE STRICT PARALLEL SAFE; CREATE CAST (sys.SMALLDATETIME AS sys.BPCHAR) WITH FUNCTION sys.smalldatetime2bpchar (sys.SMALLDATETIME) AS ASSIGNMENT;
the_stack
-- 15.06.2016 17:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET InternalName='C_RfQ',Updated=TO_TIMESTAMP('2016-06-15 17:11:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=315 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9335 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9347 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9325 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9331 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10068 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9338 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9333 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9349 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9328 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9350 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9346 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9342 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9339 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9341 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10193 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9322 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9348 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10317 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9343 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9324 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60,Updated=TO_TIMESTAMP('2016-06-15 17:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9332 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9334 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10045 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9330 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9345 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9320 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9340 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9344 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9323 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9321 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=160,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9337 ; -- 15.06.2016 17:16 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170,Updated=TO_TIMESTAMP('2016-06-15 17:16:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9329 ; -- 15.06.2016 17:17 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2016-06-15 17:17:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9320 ; -- 15.06.2016 17:17 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2016-06-15 17:17:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9340 ; -- 15.06.2016 17:17 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-06-15 17:17:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9321 ; -- 15.06.2016 17:18 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET AD_FieldGroup_ID=540073,Updated=TO_TIMESTAMP('2016-06-15 17:18:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9337 ; -- 15.06.2016 17:18 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET AD_FieldGroup_ID=540073,Updated=TO_TIMESTAMP('2016-06-15 17:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9329 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9379 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9378 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9374 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9377 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10069 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10071 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10070 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9376 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9382 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9375 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9383 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9380 ; -- 15.06.2016 17:34 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-06-15 17:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9381 ; -- 15.06.2016 17:37 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy) VALUES (0,0,269,677,TO_TIMESTAMP('2016-06-15 17:37:48','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.rfq','Y',TO_TIMESTAMP('2016-06-15 17:37:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 15.06.2016 17:38 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy) VALUES (0,0,266,677,TO_TIMESTAMP('2016-06-15 17:38:27','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.rfq','Y',TO_TIMESTAMP('2016-06-15 17:38:27','YYYY-MM-DD HH24:MI:SS'),100) ; -- 15.06.2016 17:38 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy) VALUES (0,0,267,677,TO_TIMESTAMP('2016-06-15 17:38:38','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.rfq','Y',TO_TIMESTAMP('2016-06-15 17:38:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 15.06.2016 17:39 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy) VALUES (0,0,261,677,TO_TIMESTAMP('2016-06-15 17:39:08','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.rfq','Y',TO_TIMESTAMP('2016-06-15 17:39:08','YYYY-MM-DD HH24:MI:SS'),100) ; -- 15.06.2016 17:39 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy) VALUES (0,0,265,677,TO_TIMESTAMP('2016-06-15 17:39:29','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.rfq','Y',TO_TIMESTAMP('2016-06-15 17:39:29','YYYY-MM-DD HH24:MI:SS'),100) ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9397 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9400 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10636 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10314 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9393 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9396 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9401 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9394 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10746 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9395 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10315 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9398 ; -- 15.06.2016 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-06-15 17:43:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9392 ; -- 15.06.2016 17:45 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2016-06-15 17:45:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11076 ; -- 15.06.2016 17:45 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2016-06-15 17:45:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11100 ;
the_stack
-- 2020-10-08T07:55:56.162Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List SET Name='DONT_EXPORT', Value='DE',Updated=TO_TIMESTAMP('2020-10-08 10:55:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542168 ; -- 2020-10-08T07:56:06.075Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List SET Name='PENDING', Value='P',Updated=TO_TIMESTAMP('2020-10-08 10:56:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542167 ; -- 2020-10-08T08:11:38.015Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List_Trl SET Name='PENDING',Updated=TO_TIMESTAMP('2020-10-08 11:11:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542167 ; -- 2020-10-08T08:11:46.511Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List_Trl SET Name='DONT_EXPORT',Updated=TO_TIMESTAMP('2020-10-08 11:11:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542168 ; -- 2020-10-08T08:44:22.677Z -- URL zum Konzept UPDATE AD_Ref_List SET Value='DONT_EXPORT',Updated=TO_TIMESTAMP('2020-10-08 11:44:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542168 ; -- 2020-10-08T08:44:28.100Z -- URL zum Konzept UPDATE AD_Ref_List SET Value='PENDING',Updated=TO_TIMESTAMP('2020-10-08 11:44:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542167 ; -- 2020-10-08T10:39:34.519Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,571143,622542,0,53054,0,TO_TIMESTAMP('2020-10-08 13:39:33','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','Export Status',590,580,0,1,1,TO_TIMESTAMP('2020-10-08 13:39:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-10-08T10:39:34.841Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=622542 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2020-10-08T10:39:34.958Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(577791) ; -- 2020-10-08T10:39:35.011Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=622542 ; -- 2020-10-08T10:39:35.044Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(622542) ; -- 2020-10-08T10:32:00.597Z -- URL zum Konzept UPDATE AD_Table SET IsDeleteable='N',Updated=TO_TIMESTAMP('2020-10-08 13:32:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53027 ; -- 2020-10-08T10:32:45.576Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=90,Updated=TO_TIMESTAMP('2020-10-08 13:32:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=571143 ; -- 2020-10-08T10:32:45.900Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=100,Updated=TO_TIMESTAMP('2020-10-08 13:32:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53683 ; -- 2020-10-08T10:32:46.179Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=110,Updated=TO_TIMESTAMP('2020-10-08 13:32:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53631 ; -- 2020-10-08T10:34:13.883Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2020-10-08 13:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=571008 ; -- 2020-10-08T10:34:14.167Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=70,Updated=TO_TIMESTAMP('2020-10-08 13:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549513 ; -- 2020-10-08T10:34:14.435Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=80,Updated=TO_TIMESTAMP('2020-10-08 13:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549481 ; -- 2020-10-08T10:34:40.119Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=10,Updated=TO_TIMESTAMP('2020-10-08 13:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=569354 ; -- 2020-10-08T10:34:40.378Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=20,Updated=TO_TIMESTAMP('2020-10-08 13:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=569739 ; -- 2020-10-08T10:34:40.677Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=30,Updated=TO_TIMESTAMP('2020-10-08 13:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=500224 ; -- 2020-10-08T10:34:40.971Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=40,Updated=TO_TIMESTAMP('2020-10-08 13:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=500223 ; -- 2020-10-08T10:34:41.262Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2020-10-08 13:34:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=541676 ; -- 2020-10-08T10:34:41.522Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2020-10-08 13:34:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=547287 ; -- 2020-10-08T10:34:41.785Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=70,Updated=TO_TIMESTAMP('2020-10-08 13:34:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551760 ; -- 2020-10-08T10:34:42.047Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=80,Updated=TO_TIMESTAMP('2020-10-08 13:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=547304 ; -- 2020-10-08T10:34:42.319Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=90,Updated=TO_TIMESTAMP('2020-10-08 13:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552464 ; -- 2020-10-08T10:34:42.615Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=100,Updated=TO_TIMESTAMP('2020-10-08 13:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=500231 ; -- 2020-10-08T10:34:42.877Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=110,Updated=TO_TIMESTAMP('2020-10-08 13:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545450 ; -- 2020-10-08T10:34:43.158Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=120,Updated=TO_TIMESTAMP('2020-10-08 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=540358 ; -- 2020-10-08T10:34:43.429Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=130,Updated=TO_TIMESTAMP('2020-10-08 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=570910 ; -- 2020-10-08T10:34:43.685Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=140,Updated=TO_TIMESTAMP('2020-10-08 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=552463 ; -- 2020-10-08T10:34:43.937Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=150,Updated=TO_TIMESTAMP('2020-10-08 13:34:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551759 ; -- 2020-10-08T10:34:44.190Z -- URL zum Konzept UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=160,Updated=TO_TIMESTAMP('2020-10-08 13:34:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=500222 ; -- 2020-10-08T13:07:07.777Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,571144,622543,0,53054,0,TO_TIMESTAMP('2020-10-08 16:07:07','YYYY-MM-DD HH24:MI:SS'),100,'Zeitpunkt, ab dem der Datensatz exportiert werden kann',0,'D',0,'Y','Y','Y','N','N','N','N','N','Exportierbar ab',600,590,0,1,1,TO_TIMESTAMP('2020-10-08 16:07:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-10-08T13:07:07.861Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=622543 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2020-10-08T13:07:07.902Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(577792) ; -- 2020-10-08T13:07:07.940Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=622543 ; -- 2020-10-08T13:07:07.973Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(622543) ; -- 2020-10-08T13:07:43.692Z -- URL zum Konzept INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,622542,0,53054,540183,573548,'F',TO_TIMESTAMP('2020-10-08 16:07:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'Export Status',220,0,0,TO_TIMESTAMP('2020-10-08 16:07:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-10-08T13:07:58.785Z -- URL zum Konzept INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,622543,0,53054,540183,573549,'F',TO_TIMESTAMP('2020-10-08 16:07:58','YYYY-MM-DD HH24:MI:SS'),100,'Zeitpunkt, ab dem der Datensatz exportiert werden kann','Y','N','N','Y','N','N','N',0,'Exportierbar ab',230,0,0,TO_TIMESTAMP('2020-10-08 16:07:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2020-10-08T14:30:12.084Z -- URL zum Konzept UPDATE AD_Tab SET OrderByClause='',Updated=TO_TIMESTAMP('2020-10-08 17:30:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540614 ;
the_stack
-- 2018-07-05T12:19:13.388 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=10,Updated=TO_TIMESTAMP('2018-07-05 12:19:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565089 ; -- 2018-07-05T12:19:18.901 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=20,Updated=TO_TIMESTAMP('2018-07-05 12:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565072 ; -- 2018-07-05T12:19:49.163 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=30,Updated=TO_TIMESTAMP('2018-07-05 12:19:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565073 ; -- 2018-07-05T12:19:51.675 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=40,Updated=TO_TIMESTAMP('2018-07-05 12:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565074 ; -- 2018-07-05T12:19:56.971 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2018-07-05 12:19:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565075 ; -- 2018-07-05T12:19:57.662 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 12:19:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565073 ; -- 2018-07-05T12:19:58.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 12:19:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565075 ; -- 2018-07-05T13:02:07.534 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=60,Updated=TO_TIMESTAMP('2018-07-05 13:02:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565076 ; -- 2018-07-05T13:02:12.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2018-07-05 13:02:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565082 ; -- 2018-07-05T13:02:14.980 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=80,Updated=TO_TIMESTAMP('2018-07-05 13:02:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565083 ; -- 2018-07-05T13:02:17.833 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565083 ; -- 2018-07-05T13:02:20.793 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2018-07-05 13:02:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565084 ; -- 2018-07-05T13:02:34.197 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=100,Updated=TO_TIMESTAMP('2018-07-05 13:02:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565085 ; -- 2018-07-05T13:02:36.739 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2018-07-05 13:02:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565086 ; -- 2018-07-05T13:02:37.510 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:02:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565085 ; -- 2018-07-05T13:02:38.583 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:02:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565086 ; -- 2018-07-05T13:02:41.516 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=120,Updated=TO_TIMESTAMP('2018-07-05 13:02:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565087 ; -- 2018-07-05T13:02:45.034 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2018-07-05 13:02:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565088 ; -- 2018-07-05T13:02:48.295 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2018-07-05 13:02:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565078 ; -- 2018-07-05T13:03:01.575 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=5,Updated=TO_TIMESTAMP('2018-07-05 13:03:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565079 ; -- 2018-07-05T13:03:12.953 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2018-07-05 13:03:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565080 ; -- 2018-07-05T13:03:23.737 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=160,Updated=TO_TIMESTAMP('2018-07-05 13:03:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565081 ; -- 2018-07-05T13:13:30.527 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=10,Updated=TO_TIMESTAMP('2018-07-05 13:13:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565052 ; -- 2018-07-05T13:13:34.045 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=20,Updated=TO_TIMESTAMP('2018-07-05 13:13:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565053 ; -- 2018-07-05T13:13:39.765 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=30,Updated=TO_TIMESTAMP('2018-07-05 13:13:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565049 ; -- 2018-07-05T13:13:43.433 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=40,Updated=TO_TIMESTAMP('2018-07-05 13:13:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565050 ; -- 2018-07-05T13:13:46.605 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=50,Updated=TO_TIMESTAMP('2018-07-05 13:13:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565051 ; -- 2018-07-05T13:13:58.194 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=60,Updated=TO_TIMESTAMP('2018-07-05 13:13:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565054 ; -- 2018-07-05T13:14:00.887 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2018-07-05 13:14:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565055 ; -- 2018-07-05T13:14:04.854 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=80,Updated=TO_TIMESTAMP('2018-07-05 13:14:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565056 ; -- 2018-07-05T13:14:08.584 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=90,Updated=TO_TIMESTAMP('2018-07-05 13:14:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565057 ; -- 2018-07-05T13:14:11.993 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=100,Updated=TO_TIMESTAMP('2018-07-05 13:14:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565058 ; -- 2018-07-05T13:14:15.046 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=110,Updated=TO_TIMESTAMP('2018-07-05 13:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565059 ; -- 2018-07-05T13:14:19.169 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=120,Updated=TO_TIMESTAMP('2018-07-05 13:14:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565060 ; -- 2018-07-05T13:14:23.445 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=130,Updated=TO_TIMESTAMP('2018-07-05 13:14:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565061 ; -- 2018-07-05T13:14:29.280 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=140,Updated=TO_TIMESTAMP('2018-07-05 13:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565062 ; -- 2018-07-05T13:14:31.470 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2018-07-05 13:14:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565063 ; -- 2018-07-05T13:14:35.443 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2018-07-05 13:14:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565064 ; -- 2018-07-05T13:14:36.081 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:14:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565063 ; -- 2018-07-05T13:14:36.796 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:14:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565064 ; -- 2018-07-05T13:14:41.103 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2018-07-05 13:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565065 ; -- 2018-07-05T13:14:44.605 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=180,Updated=TO_TIMESTAMP('2018-07-05 13:14:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565066 ; -- 2018-07-05T13:14:48.082 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2018-07-05 13:14:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565067 ; -- 2018-07-05T13:14:52.429 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=200,Updated=TO_TIMESTAMP('2018-07-05 13:14:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565068 ; -- 2018-07-05T13:14:54.979 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2018-07-05 13:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565069 ; -- 2018-07-05T13:14:59.207 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=220,Updated=TO_TIMESTAMP('2018-07-05 13:14:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565070 ; -- 2018-07-05T13:15:02.826 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y', SeqNo=230,Updated=TO_TIMESTAMP('2018-07-05 13:15:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565071 ; -- 2018-07-05T13:18:31.533 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2018-07-05 13:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565086 ; -- 2018-07-05T13:18:55.931 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2018-07-05 13:18:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=565087 ;
the_stack
-- start template query34.tpl query 1 in stream 6 select /* TPC-DS query34.tpl 0.73 */ c_last_name ,c_first_name ,c_salutation ,c_preferred_cust_flag ,ss_ticket_number ,cnt from (select ss_ticket_number ,ss_customer_sk ,count(*) cnt from store_sales,date_dim,store,household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and (date_dim.d_dom between 1 and 3 or date_dim.d_dom between 25 and 28) and (household_demographics.hd_buy_potential = '1001-5000' or household_demographics.hd_buy_potential = '0-500') and household_demographics.hd_vehicle_count > 0 and (case when household_demographics.hd_vehicle_count > 0 then household_demographics.hd_dep_count/ household_demographics.hd_vehicle_count else null end) > 1.2 and date_dim.d_year in (1999,1999+1,1999+2) and store.s_county in ('Orange County','Jefferson Davis Parish','Coal County','Fairfield County', 'Harper County','Dauphin County','Williamson County','Terrell County') group by ss_ticket_number,ss_customer_sk) dn,customer where ss_customer_sk = c_customer_sk and cnt between 15 and 20 order by c_last_name,c_first_name,c_salutation,c_preferred_cust_flag desc, ss_ticket_number; -- end template query34.tpl query 1 in stream 6 -- start template query88.tpl query 2 in stream 6 select /* TPC-DS query88.tpl 0.66 */ * from (select count(*) h8_30_to_9 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 8 and time_dim.t_minute >= 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s1, (select count(*) h9_to_9_30 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 9 and time_dim.t_minute < 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s2, (select count(*) h9_30_to_10 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 9 and time_dim.t_minute >= 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s3, (select count(*) h10_to_10_30 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 10 and time_dim.t_minute < 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s4, (select count(*) h10_30_to_11 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 10 and time_dim.t_minute >= 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s5, (select count(*) h11_to_11_30 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 11 and time_dim.t_minute < 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s6, (select count(*) h11_30_to_12 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 11 and time_dim.t_minute >= 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s7, (select count(*) h12_to_12_30 from store_sales, household_demographics , time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 12 and time_dim.t_minute < 30 and ((household_demographics.hd_dep_count = 3 and household_demographics.hd_vehicle_count<=3+2) or (household_demographics.hd_dep_count = 1 and household_demographics.hd_vehicle_count<=1+2) or (household_demographics.hd_dep_count = 4 and household_demographics.hd_vehicle_count<=4+2)) and store.s_store_name = 'ese') s8 ; -- end template query88.tpl query 2 in stream 6 -- start template query44.tpl query 3 in stream 6 select /* TPC-DS query44.tpl 0.4 */ asceding.rnk, i1.i_product_name best_performing, i2.i_product_name worst_performing from(select * from (select item_sk,rank() over (order by rank_col asc) rnk from (select ss_item_sk item_sk,avg(ss_net_profit) rank_col from store_sales ss1 where ss_store_sk = 153 group by ss_item_sk having avg(ss_net_profit) > 0.90*(select avg(ss_net_profit) rank_col from store_sales where ss_store_sk = 153 and ss_customer_sk is null group by ss_store_sk))V1)V11 where rnk < 11) asceding, (select * from (select item_sk,rank() over (order by rank_col desc) rnk from (select ss_item_sk item_sk,avg(ss_net_profit) rank_col from store_sales ss1 where ss_store_sk = 153 group by ss_item_sk having avg(ss_net_profit) > 0.90*(select avg(ss_net_profit) rank_col from store_sales where ss_store_sk = 153 and ss_customer_sk is null group by ss_store_sk))V2)V21 where rnk < 11) descending, item i1, item i2 where asceding.rnk = descending.rnk and i1.i_item_sk=asceding.item_sk and i2.i_item_sk=descending.item_sk order by asceding.rnk limit 100; -- end template query44.tpl query 3 in stream 6 -- start template query94.tpl query 4 in stream 6 select /* TPC-DS query94.tpl 0.17 */ count(distinct ws_order_number) as "order count" ,sum(ws_ext_ship_cost) as "total shipping cost" ,sum(ws_net_profit) as "total net profit" from web_sales ws1 ,date_dim ,customer_address ,web_site where d_date between '2000-4-01' and dateadd(day,60,cast('2000-4-01' as date)) and ws1.ws_ship_date_sk = d_date_sk and ws1.ws_ship_addr_sk = ca_address_sk and ca_state = 'AR' and ws1.ws_web_site_sk = web_site_sk and web_company_name = 'pri' and exists (select * from web_sales ws2 where ws1.ws_order_number = ws2.ws_order_number and ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) and not exists(select * from web_returns wr1 where ws1.ws_order_number = wr1.wr_order_number) order by count(distinct ws_order_number) limit 100; -- end template query94.tpl query 4 in stream 6 -- start template query50.tpl query 5 in stream 6 select /* TPC-DS query50.tpl 0.60 */ s_store_name ,s_company_id ,s_street_number ,s_street_name ,s_street_type ,s_suite_number ,s_city ,s_county ,s_state ,s_zip ,sum(case when (sr_returned_date_sk - ss_sold_date_sk <= 30 ) then 1 else 0 end) as "30 days" ,sum(case when (sr_returned_date_sk - ss_sold_date_sk > 30) and (sr_returned_date_sk - ss_sold_date_sk <= 60) then 1 else 0 end ) as "31-60 days" ,sum(case when (sr_returned_date_sk - ss_sold_date_sk > 60) and (sr_returned_date_sk - ss_sold_date_sk <= 90) then 1 else 0 end) as "61-90 days" ,sum(case when (sr_returned_date_sk - ss_sold_date_sk > 90) and (sr_returned_date_sk - ss_sold_date_sk <= 120) then 1 else 0 end) as "91-120 days" ,sum(case when (sr_returned_date_sk - ss_sold_date_sk > 120) then 1 else 0 end) as ">120 days" from store_sales ,store_returns ,store ,date_dim d1 ,date_dim d2 where d2.d_year = 2001 and d2.d_moy = 9 and ss_ticket_number = sr_ticket_number and ss_item_sk = sr_item_sk and ss_sold_date_sk = d1.d_date_sk and sr_returned_date_sk = d2.d_date_sk and ss_customer_sk = sr_customer_sk and ss_store_sk = s_store_sk group by s_store_name ,s_company_id ,s_street_number ,s_street_name ,s_street_type ,s_suite_number ,s_city ,s_county ,s_state ,s_zip order by s_store_name ,s_company_id ,s_street_number ,s_street_name ,s_street_type ,s_suite_number ,s_city ,s_county ,s_state ,s_zip limit 100; -- end template query50.tpl query 5 in stream 6 -- start template query5a.tpl query 6 in stream 6 with /* TPC-DS query5a.tpl 0.98 */ ssr as (select s_store_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select ss_store_sk as store_sk, ss_sold_date_sk as date_sk, ss_ext_sales_price as sales_price, ss_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from store_sales union all select sr_store_sk as store_sk, sr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, sr_return_amt as return_amt, sr_net_loss as net_loss from store_returns ) salesreturns, date_dim, store where date_sk = d_date_sk and d_date between cast('1999-08-17' as date) and dateadd(day,14,cast('1999-08-17' as date)) and store_sk = s_store_sk group by s_store_id) , csr as (select cp_catalog_page_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select cs_catalog_page_sk as page_sk, cs_sold_date_sk as date_sk, cs_ext_sales_price as sales_price, cs_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from catalog_sales union all select cr_catalog_page_sk as page_sk, cr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, cr_return_amount as return_amt, cr_net_loss as net_loss from catalog_returns ) salesreturns, date_dim, catalog_page where date_sk = d_date_sk and d_date between cast('1999-08-17' as date) and dateadd(day,14,cast('1999-08-17' as date)) and page_sk = cp_catalog_page_sk group by cp_catalog_page_id) , wsr as (select web_site_id, sum(sales_price) as sales, sum(profit) as profit, sum(return_amt) as returns, sum(net_loss) as profit_loss from ( select ws_web_site_sk as wsr_web_site_sk, ws_sold_date_sk as date_sk, ws_ext_sales_price as sales_price, ws_net_profit as profit, cast(0 as decimal(7,2)) as return_amt, cast(0 as decimal(7,2)) as net_loss from web_sales union all select ws_web_site_sk as wsr_web_site_sk, wr_returned_date_sk as date_sk, cast(0 as decimal(7,2)) as sales_price, cast(0 as decimal(7,2)) as profit, wr_return_amt as return_amt, wr_net_loss as net_loss from web_returns left outer join web_sales on ( wr_item_sk = ws_item_sk and wr_order_number = ws_order_number) ) salesreturns, date_dim, web_site where date_sk = d_date_sk and d_date between cast('1999-08-17' as date) and dateadd(day,14,cast('1999-08-17' as date)) and wsr_web_site_sk = web_site_sk group by web_site_id) , results as (select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , 'store' || s_store_id as id , sales , returns , (profit - profit_loss) as profit from ssr union all select 'catalog channel' as channel , 'catalog_page' || cp_catalog_page_id as id , sales , returns , (profit - profit_loss) as profit from csr union all select 'web channel' as channel , 'web_site' || web_site_id as id , sales , returns , (profit - profit_loss) as profit from wsr ) x group by channel, id) select channel, id, sales, returns, profit from ( select channel, id, sales, returns, profit from results union select channel, null as id, sum(sales), sum(returns), sum(profit) from results group by channel union select null as channel, null as id, sum(sales), sum(returns), sum(profit) from results) foo order by channel, id limit 100; -- end template query5a.tpl query 6 in stream 6 -- start template query53.tpl query 7 in stream 6 select /* TPC-DS query53.tpl 0.88 */ * from (select i_manufact_id, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_manufact_id) avg_quarterly_sales from item, store_sales, date_dim, store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and d_month_seq in (1211,1211+1,1211+2,1211+3,1211+4,1211+5,1211+6,1211+7,1211+8,1211+9,1211+10,1211+11) and ((i_category in ('Books','Children','Electronics') and i_class in ('personal','portable','reference','self-help') and i_brand in ('scholaramalgamalg #14','scholaramalgamalg #7', 'exportiunivamalg #9','scholaramalgamalg #9')) or(i_category in ('Women','Music','Men') and i_class in ('accessories','classical','fragrances','pants') and i_brand in ('amalgimporto #1','edu packscholar #1','exportiimporto #1', 'importoamalg #1'))) group by i_manufact_id, d_qoy ) tmp1 where case when avg_quarterly_sales > 0 then abs (sum_sales - avg_quarterly_sales)/ avg_quarterly_sales else null end > 0.1 order by avg_quarterly_sales, sum_sales, i_manufact_id limit 100; -- end template query53.tpl query 7 in stream 6 -- start template query7.tpl query 8 in stream 6 select /* TPC-DS query7.tpl 0.2 */ i_item_id, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 from store_sales, customer_demographics, date_dim, item, promotion where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and ss_cdemo_sk = cd_demo_sk and ss_promo_sk = p_promo_sk and cd_gender = 'M' and cd_marital_status = 'W' and cd_education_status = '4 yr Degree' and (p_channel_email = 'N' or p_channel_event = 'N') and d_year = 1999 group by i_item_id order by i_item_id limit 100; -- end template query7.tpl query 8 in stream 6 -- start template query58.tpl query 9 in stream 6 with /* TPC-DS query58.tpl 0.19 */ ss_items as (select i_item_id item_id ,sum(ss_ext_sales_price) ss_item_rev from store_sales ,item ,date_dim where ss_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq = (select d_week_seq from date_dim where d_date = '1998-03-24')) and ss_sold_date_sk = d_date_sk group by i_item_id), cs_items as (select i_item_id item_id ,sum(cs_ext_sales_price) cs_item_rev from catalog_sales ,item ,date_dim where cs_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq = (select d_week_seq from date_dim where d_date = '1998-03-24')) and cs_sold_date_sk = d_date_sk group by i_item_id), ws_items as (select i_item_id item_id ,sum(ws_ext_sales_price) ws_item_rev from web_sales ,item ,date_dim where ws_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq =(select d_week_seq from date_dim where d_date = '1998-03-24')) and ws_sold_date_sk = d_date_sk group by i_item_id) select ss_items.item_id ,ss_item_rev ,ss_item_rev/((ss_item_rev+cs_item_rev+ws_item_rev)/3) * 100 ss_dev ,cs_item_rev ,cs_item_rev/((ss_item_rev+cs_item_rev+ws_item_rev)/3) * 100 cs_dev ,ws_item_rev ,ws_item_rev/((ss_item_rev+cs_item_rev+ws_item_rev)/3) * 100 ws_dev ,(ss_item_rev+cs_item_rev+ws_item_rev)/3 average from ss_items,cs_items,ws_items where ss_items.item_id=cs_items.item_id and ss_items.item_id=ws_items.item_id and ss_item_rev between 0.9 * cs_item_rev and 1.1 * cs_item_rev and ss_item_rev between 0.9 * ws_item_rev and 1.1 * ws_item_rev and cs_item_rev between 0.9 * ss_item_rev and 1.1 * ss_item_rev and cs_item_rev between 0.9 * ws_item_rev and 1.1 * ws_item_rev and ws_item_rev between 0.9 * ss_item_rev and 1.1 * ss_item_rev and ws_item_rev between 0.9 * cs_item_rev and 1.1 * cs_item_rev order by item_id ,ss_item_rev limit 100; -- end template query58.tpl query 9 in stream 6 -- start template query20.tpl query 10 in stream 6 select /* TPC-DS query20.tpl 0.65 */ i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price ,sum(cs_ext_sales_price) as itemrevenue ,sum(cs_ext_sales_price)*100/sum(sum(cs_ext_sales_price)) over (partition by i_class) as revenueratio from catalog_sales ,item ,date_dim where cs_item_sk = i_item_sk and i_category in ('Jewelry', 'Shoes', 'Children') and cs_sold_date_sk = d_date_sk and d_date between cast('1998-03-13' as date) and dateadd(day,30,cast('1998-03-13' as date)) group by i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price order by i_category ,i_class ,i_item_id ,i_item_desc ,revenueratio limit 100; -- end template query20.tpl query 10 in stream 6 -- start template query75.tpl query 11 in stream 6 WITH /* TPC-DS query75.tpl 0.3 */ all_sales AS ( SELECT d_year ,i_brand_id ,i_class_id ,i_category_id ,i_manufact_id ,SUM(sales_cnt) AS sales_cnt ,SUM(sales_amt) AS sales_amt FROM (SELECT d_year ,i_brand_id ,i_class_id ,i_category_id ,i_manufact_id ,cs_quantity - COALESCE(cr_return_quantity,0) AS sales_cnt ,cs_ext_sales_price - COALESCE(cr_return_amount,0.0) AS sales_amt FROM catalog_sales JOIN item ON i_item_sk=cs_item_sk JOIN date_dim ON d_date_sk=cs_sold_date_sk LEFT JOIN catalog_returns ON (cs_order_number=cr_order_number AND cs_item_sk=cr_item_sk) WHERE i_category='Men' UNION SELECT d_year ,i_brand_id ,i_class_id ,i_category_id ,i_manufact_id ,ss_quantity - COALESCE(sr_return_quantity,0) AS sales_cnt ,ss_ext_sales_price - COALESCE(sr_return_amt,0.0) AS sales_amt FROM store_sales JOIN item ON i_item_sk=ss_item_sk JOIN date_dim ON d_date_sk=ss_sold_date_sk LEFT JOIN store_returns ON (ss_ticket_number=sr_ticket_number AND ss_item_sk=sr_item_sk) WHERE i_category='Men' UNION SELECT d_year ,i_brand_id ,i_class_id ,i_category_id ,i_manufact_id ,ws_quantity - COALESCE(wr_return_quantity,0) AS sales_cnt ,ws_ext_sales_price - COALESCE(wr_return_amt,0.0) AS sales_amt FROM web_sales JOIN item ON i_item_sk=ws_item_sk JOIN date_dim ON d_date_sk=ws_sold_date_sk LEFT JOIN web_returns ON (ws_order_number=wr_order_number AND ws_item_sk=wr_item_sk) WHERE i_category='Men') sales_detail GROUP BY d_year, i_brand_id, i_class_id, i_category_id, i_manufact_id) SELECT prev_yr.d_year AS prev_year ,curr_yr.d_year AS year ,curr_yr.i_brand_id ,curr_yr.i_class_id ,curr_yr.i_category_id ,curr_yr.i_manufact_id ,prev_yr.sales_cnt AS prev_yr_cnt ,curr_yr.sales_cnt AS curr_yr_cnt ,curr_yr.sales_cnt-prev_yr.sales_cnt AS sales_cnt_diff ,curr_yr.sales_amt-prev_yr.sales_amt AS sales_amt_diff FROM all_sales curr_yr, all_sales prev_yr WHERE curr_yr.i_brand_id=prev_yr.i_brand_id AND curr_yr.i_class_id=prev_yr.i_class_id AND curr_yr.i_category_id=prev_yr.i_category_id AND curr_yr.i_manufact_id=prev_yr.i_manufact_id AND curr_yr.d_year=1999 AND prev_yr.d_year=1999-1 AND CAST(curr_yr.sales_cnt AS DECIMAL(17,2))/CAST(prev_yr.sales_cnt AS DECIMAL(17,2))<0.9 ORDER BY sales_cnt_diff,sales_amt_diff limit 100; -- end template query75.tpl query 11 in stream 6 -- start template query73.tpl query 12 in stream 6 select /* TPC-DS query73.tpl 0.79 */ c_last_name ,c_first_name ,c_salutation ,c_preferred_cust_flag ,ss_ticket_number ,cnt from (select ss_ticket_number ,ss_customer_sk ,count(*) cnt from store_sales,date_dim,store,household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and date_dim.d_dom between 1 and 2 and (household_demographics.hd_buy_potential = '1001-5000' or household_demographics.hd_buy_potential = 'Unknown') and household_demographics.hd_vehicle_count > 0 and case when household_demographics.hd_vehicle_count > 0 then household_demographics.hd_dep_count/ household_demographics.hd_vehicle_count else null end > 1 and date_dim.d_year in (1998,1998+1,1998+2) and store.s_county in ('Mesa County','Richland County','Dauphin County','Jackson County') group by ss_ticket_number,ss_customer_sk) dj,customer where ss_customer_sk = c_customer_sk and cnt between 1 and 5 order by cnt desc, c_last_name asc; -- end template query73.tpl query 12 in stream 6 -- start template query91.tpl query 13 in stream 6 select /* TPC-DS query91.tpl 0.13 */ cc_call_center_id Call_Center, cc_name Call_Center_Name, cc_manager Manager, sum(cr_net_loss) Returns_Loss from call_center, catalog_returns, date_dim, customer, customer_address, customer_demographics, household_demographics where cr_call_center_sk = cc_call_center_sk and cr_returned_date_sk = d_date_sk and cr_returning_customer_sk= c_customer_sk and cd_demo_sk = c_current_cdemo_sk and hd_demo_sk = c_current_hdemo_sk and ca_address_sk = c_current_addr_sk and d_year = 2000 and d_moy = 11 and ( (cd_marital_status = 'M' and cd_education_status = 'Unknown') or(cd_marital_status = 'W' and cd_education_status = 'Advanced Degree')) and hd_buy_potential like '0-500%' and ca_gmt_offset = -6 group by cc_call_center_id,cc_name,cc_manager,cd_marital_status,cd_education_status order by sum(cr_net_loss) desc; -- end template query91.tpl query 13 in stream 6 -- start template query36a.tpl query 14 in stream 6 with /* TPC-DS query36a.tpl 0.21 */ results as (select sum(ss_net_profit) as ss_net_profit, sum(ss_ext_sales_price) as ss_ext_sales_price, sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin ,i_category ,i_class ,0 as g_category, 0 as g_class from store_sales ,date_dim d1 ,item ,store where d1.d_year = 1999 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and s_state in ('NE','TN','IN','MO', 'WA','CO','WV','SC') group by i_category,i_class) , results_rollup as (select gross_margin ,i_category ,i_class,0 as t_category, 0 as t_class, 0 as lochierarchy from results union select sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin, i_category, NULL AS i_class, 0 as t_category, 1 as t_class, 1 as lochierarchy from results group by i_category union select sum(ss_net_profit)/sum(ss_ext_sales_price) as gross_margin, NULL AS i_category ,NULL AS i_class, 1 as t_category, 1 as t_class, 2 as lochierarchy from results) select gross_margin ,i_category ,i_class, lochierarchy,rank() over ( partition by lochierarchy, case when t_class = 0 then i_category end order by gross_margin asc) as rank_within_parent from results_rollup order by lochierarchy desc ,case when lochierarchy = 0 then i_category end ,rank_within_parent limit 100; -- end template query36a.tpl query 14 in stream 6 -- start template query11.tpl query 15 in stream 6 with /* TPC-DS query11.tpl 0.51 */ year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag customer_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login customer_login ,c_email_address customer_email_address ,d_year dyear ,sum(ss_ext_list_price-ss_ext_discount_amt) year_total ,'s' sale_type from customer ,store_sales ,date_dim where c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk group by c_customer_id ,c_first_name ,c_last_name ,c_preferred_cust_flag ,c_birth_country ,c_login ,c_email_address ,d_year union all select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag customer_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login customer_login ,c_email_address customer_email_address ,d_year dyear ,sum(ws_ext_list_price-ws_ext_discount_amt) year_total ,'w' sale_type from customer ,web_sales ,date_dim where c_customer_sk = ws_bill_customer_sk and ws_sold_date_sk = d_date_sk group by c_customer_id ,c_first_name ,c_last_name ,c_preferred_cust_flag ,c_birth_country ,c_login ,c_email_address ,d_year ) select t_s_secyear.customer_id ,t_s_secyear.customer_first_name ,t_s_secyear.customer_last_name ,t_s_secyear.customer_login from year_total t_s_firstyear ,year_total t_s_secyear ,year_total t_w_firstyear ,year_total t_w_secyear where t_s_secyear.customer_id = t_s_firstyear.customer_id and t_s_firstyear.customer_id = t_w_secyear.customer_id and t_s_firstyear.customer_id = t_w_firstyear.customer_id and t_s_firstyear.sale_type = 's' and t_w_firstyear.sale_type = 'w' and t_s_secyear.sale_type = 's' and t_w_secyear.sale_type = 'w' and t_s_firstyear.dyear = 1999 and t_s_secyear.dyear = 1999+1 and t_w_firstyear.dyear = 1999 and t_w_secyear.dyear = 1999+1 and t_s_firstyear.year_total > 0 and t_w_firstyear.year_total > 0 and case when t_w_firstyear.year_total > 0 then t_w_secyear.year_total / t_w_firstyear.year_total else 0.0 end > case when t_s_firstyear.year_total > 0 then t_s_secyear.year_total / t_s_firstyear.year_total else 0.0 end order by t_s_secyear.customer_id ,t_s_secyear.customer_first_name ,t_s_secyear.customer_last_name ,t_s_secyear.customer_login limit 100; -- end template query11.tpl query 15 in stream 6 -- start template query80a.tpl query 16 in stream 6 with /* TPC-DS query80a.tpl 0.6 */ ssr as (select s_store_id as store_id, sum(ss_ext_sales_price) as sales, sum(coalesce(sr_return_amt, 0)) as returns, sum(ss_net_profit - coalesce(sr_net_loss, 0)) as profit from store_sales left outer join store_returns on (ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number), date_dim, store, item, promotion where ss_sold_date_sk = d_date_sk and d_date between cast('2001-08-08' as date) and dateadd(day,30,cast('2001-08-08' as date)) and ss_store_sk = s_store_sk and ss_item_sk = i_item_sk and i_current_price > 50 and ss_promo_sk = p_promo_sk and p_channel_tv = 'N' group by s_store_id) , csr as (select cp_catalog_page_id as catalog_page_id, sum(cs_ext_sales_price) as sales, sum(coalesce(cr_return_amount, 0)) as returns, sum(cs_net_profit - coalesce(cr_net_loss, 0)) as profit from catalog_sales left outer join catalog_returns on (cs_item_sk = cr_item_sk and cs_order_number = cr_order_number), date_dim, catalog_page, item, promotion where cs_sold_date_sk = d_date_sk and d_date between cast('2001-08-08' as date) and dateadd(day,30,cast('2001-08-08' as date)) and cs_catalog_page_sk = cp_catalog_page_sk and cs_item_sk = i_item_sk and i_current_price > 50 and cs_promo_sk = p_promo_sk and p_channel_tv = 'N' group by cp_catalog_page_id) , wsr as (select web_site_id, sum(ws_ext_sales_price) as sales, sum(coalesce(wr_return_amt, 0)) as returns, sum(ws_net_profit - coalesce(wr_net_loss, 0)) as profit from web_sales left outer join web_returns on (ws_item_sk = wr_item_sk and ws_order_number = wr_order_number), date_dim, web_site, item, promotion where ws_sold_date_sk = d_date_sk and d_date between cast('2001-08-08' as date) and dateadd(day,30,cast('2001-08-08' as date)) and ws_web_site_sk = web_site_sk and ws_item_sk = i_item_sk and i_current_price > 50 and ws_promo_sk = p_promo_sk and p_channel_tv = 'N' group by web_site_id) , results as (select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , 'store' || store_id as id , sales , returns , profit from ssr union all select 'catalog channel' as channel , 'catalog_page' || catalog_page_id as id , sales , returns , profit from csr union all select 'web channel' as channel , 'web_site' || web_site_id as id , sales , returns , profit from wsr ) x group by channel, id) select channel , id , sales , returns , profit from ( select channel, id, sales, returns, profit from results union select channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results group by channel union select NULL AS channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results ) foo order by channel, id limit 100; -- end template query80a.tpl query 16 in stream 6 -- start template query9.tpl query 17 in stream 6 select /* TPC-DS query9.tpl 0.49 */ case when (select count(*) from store_sales where ss_quantity between 1 and 20) > 107891285 then (select avg(ss_ext_discount_amt) from store_sales where ss_quantity between 1 and 20) else (select avg(ss_net_profit) from store_sales where ss_quantity between 1 and 20) end bucket1 , case when (select count(*) from store_sales where ss_quantity between 21 and 40) > 70534593 then (select avg(ss_ext_discount_amt) from store_sales where ss_quantity between 21 and 40) else (select avg(ss_net_profit) from store_sales where ss_quantity between 21 and 40) end bucket2, case when (select count(*) from store_sales where ss_quantity between 41 and 60) > 23070723 then (select avg(ss_ext_discount_amt) from store_sales where ss_quantity between 41 and 60) else (select avg(ss_net_profit) from store_sales where ss_quantity between 41 and 60) end bucket3, case when (select count(*) from store_sales where ss_quantity between 61 and 80) > 7558254 then (select avg(ss_ext_discount_amt) from store_sales where ss_quantity between 61 and 80) else (select avg(ss_net_profit) from store_sales where ss_quantity between 61 and 80) end bucket4, case when (select count(*) from store_sales where ss_quantity between 81 and 100) > 141263814 then (select avg(ss_ext_discount_amt) from store_sales where ss_quantity between 81 and 100) else (select avg(ss_net_profit) from store_sales where ss_quantity between 81 and 100) end bucket5 from reason where r_reason_sk = 1 ; -- end template query9.tpl query 17 in stream 6 -- start template query93.tpl query 18 in stream 6 select /* TPC-DS query93.tpl 0.52 */ ss_customer_sk ,sum(act_sales) sumsales from (select ss_item_sk ,ss_ticket_number ,ss_customer_sk ,case when sr_return_quantity is not null then (ss_quantity-sr_return_quantity)*ss_sales_price else (ss_quantity*ss_sales_price) end act_sales from store_sales left outer join store_returns on (sr_item_sk = ss_item_sk and sr_ticket_number = ss_ticket_number) ,reason where sr_reason_sk = r_reason_sk and r_reason_desc = 'reason 24') t group by ss_customer_sk order by sumsales, ss_customer_sk limit 100; -- end template query93.tpl query 18 in stream 6 -- start template query32.tpl query 19 in stream 6 select /* TPC-DS query32.tpl 0.7 */ sum(cs_ext_discount_amt) as "excess discount amount" from catalog_sales ,item ,date_dim where i_manufact_id = 248 and i_item_sk = cs_item_sk and d_date between '2002-01-09' and dateadd(day,90,cast('2002-01-09' as date)) and d_date_sk = cs_sold_date_sk and cs_ext_discount_amt > ( select 1.3 * avg(cs_ext_discount_amt) from catalog_sales ,date_dim where cs_item_sk = i_item_sk and d_date between '2002-01-09' and dateadd(day,90,cast('2002-01-09' as date)) and d_date_sk = cs_sold_date_sk ) limit 100; -- end template query32.tpl query 19 in stream 6 -- start template query89.tpl query 20 in stream 6 select /* TPC-DS query89.tpl 0.56 */ * from( select i_category, i_class, i_brand, s_store_name, s_company_name, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_category, i_brand, s_store_name, s_company_name) avg_monthly_sales from item, store_sales, date_dim, store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and d_year in (2002) and ((i_category in ('Books','Home','Electronics') and i_class in ('computers','decor','disk drives') ) or (i_category in ('Music','Jewelry','Children') and i_class in ('pop','bracelets','toddlers') )) group by i_category, i_class, i_brand, s_store_name, s_company_name, d_moy) tmp1 where case when (avg_monthly_sales <> 0) then (abs(sum_sales - avg_monthly_sales) / avg_monthly_sales) else null end > 0.1 order by sum_sales - avg_monthly_sales, s_store_name limit 100; -- end template query89.tpl query 20 in stream 6 -- start template query28.tpl query 21 in stream 6 select /* TPC-DS query28.tpl 0.36 */ * from (select avg(ss_list_price) B1_LP ,count(ss_list_price) B1_CNT ,count(distinct ss_list_price) B1_CNTD from store_sales where ss_quantity between 0 and 5 and (ss_list_price between 153 and 153+10 or ss_coupon_amt between 4195 and 4195+1000 or ss_wholesale_cost between 76 and 76+20)) B1, (select avg(ss_list_price) B2_LP ,count(ss_list_price) B2_CNT ,count(distinct ss_list_price) B2_CNTD from store_sales where ss_quantity between 6 and 10 and (ss_list_price between 15 and 15+10 or ss_coupon_amt between 11023 and 11023+1000 or ss_wholesale_cost between 69 and 69+20)) B2, (select avg(ss_list_price) B3_LP ,count(ss_list_price) B3_CNT ,count(distinct ss_list_price) B3_CNTD from store_sales where ss_quantity between 11 and 15 and (ss_list_price between 58 and 58+10 or ss_coupon_amt between 3016 and 3016+1000 or ss_wholesale_cost between 24 and 24+20)) B3, (select avg(ss_list_price) B4_LP ,count(ss_list_price) B4_CNT ,count(distinct ss_list_price) B4_CNTD from store_sales where ss_quantity between 16 and 20 and (ss_list_price between 175 and 175+10 or ss_coupon_amt between 9132 and 9132+1000 or ss_wholesale_cost between 1 and 1+20)) B4, (select avg(ss_list_price) B5_LP ,count(ss_list_price) B5_CNT ,count(distinct ss_list_price) B5_CNTD from store_sales where ss_quantity between 21 and 25 and (ss_list_price between 141 and 141+10 or ss_coupon_amt between 4 and 4+1000 or ss_wholesale_cost between 62 and 62+20)) B5, (select avg(ss_list_price) B6_LP ,count(ss_list_price) B6_CNT ,count(distinct ss_list_price) B6_CNTD from store_sales where ss_quantity between 26 and 30 and (ss_list_price between 181 and 181+10 or ss_coupon_amt between 10 and 10+1000 or ss_wholesale_cost between 13 and 13+20)) B6 limit 100; -- end template query28.tpl query 21 in stream 6 -- start template query87.tpl query 22 in stream 6 select /* TPC-DS query87.tpl 0.77 */ count(*) from ((select distinct c_last_name, c_first_name, d_date from store_sales, date_dim, customer where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_customer_sk = customer.c_customer_sk and d_month_seq between 1196 and 1196+11) except (select distinct c_last_name, c_first_name, d_date from catalog_sales, date_dim, customer where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_bill_customer_sk = customer.c_customer_sk and d_month_seq between 1196 and 1196+11) except (select distinct c_last_name, c_first_name, d_date from web_sales, date_dim, customer where web_sales.ws_sold_date_sk = date_dim.d_date_sk and web_sales.ws_bill_customer_sk = customer.c_customer_sk and d_month_seq between 1196 and 1196+11) ) cool_cust ; -- end template query87.tpl query 22 in stream 6 -- start template query18a.tpl query 23 in stream 6 with /* TPC-DS query18a.tpl 0.90 */ results as (select i_item_id, ca_country, ca_state, ca_county, cast(cs_quantity as decimal(12,2)) agg1, cast(cs_list_price as decimal(12,2)) agg2, cast(cs_coupon_amt as decimal(12,2)) agg3, cast(cs_sales_price as decimal(12,2)) agg4, cast(cs_net_profit as decimal(12,2)) agg5, cast(c_birth_year as decimal(12,2)) agg6, cast(cd1.cd_dep_count as decimal(12,2)) agg7 from catalog_sales, customer_demographics cd1, customer_demographics cd2, customer, customer_address, date_dim, item where cs_sold_date_sk = d_date_sk and cs_item_sk = i_item_sk and cs_bill_cdemo_sk = cd1.cd_demo_sk and cs_bill_customer_sk = c_customer_sk and cd1.cd_gender = 'F' and cd1.cd_education_status = 'Unknown' and c_current_cdemo_sk = cd2.cd_demo_sk and c_current_addr_sk = ca_address_sk and c_birth_month in (11,8,12,4,2,10) and d_year = 2002 and ca_state in ('TX','NE','VA','HI','WI','VT','PA') ) select i_item_id, ca_country, ca_state, ca_county, agg1, agg2, agg3, agg4, agg5, agg6, agg7 from ( select i_item_id, ca_country, ca_state, ca_county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country, ca_state, ca_county union all select i_item_id, ca_country, ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country, ca_state union all select i_item_id, ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id, ca_country union all select i_item_id, NULL as ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results group by i_item_id union all select NULL AS i_item_id, NULL as ca_country, NULL as ca_state, NULL as county, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4, avg(agg5) agg5, avg(agg6) agg6, avg(agg7) agg7 from results ) foo order by ca_country, ca_state, ca_county, i_item_id limit 100; -- end template query18a.tpl query 23 in stream 6 -- start template query74.tpl query 24 in stream 6 with /* TPC-DS query74.tpl 0.76 */ year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year as year ,max(ss_net_paid) year_total ,'s' sale_type from customer ,store_sales ,date_dim where c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year in (1998,1998+1) group by c_customer_id ,c_first_name ,c_last_name ,d_year union all select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,d_year as year ,max(ws_net_paid) year_total ,'w' sale_type from customer ,web_sales ,date_dim where c_customer_sk = ws_bill_customer_sk and ws_sold_date_sk = d_date_sk and d_year in (1998,1998+1) group by c_customer_id ,c_first_name ,c_last_name ,d_year ) select t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name from year_total t_s_firstyear ,year_total t_s_secyear ,year_total t_w_firstyear ,year_total t_w_secyear where t_s_secyear.customer_id = t_s_firstyear.customer_id and t_s_firstyear.customer_id = t_w_secyear.customer_id and t_s_firstyear.customer_id = t_w_firstyear.customer_id and t_s_firstyear.sale_type = 's' and t_w_firstyear.sale_type = 'w' and t_s_secyear.sale_type = 's' and t_w_secyear.sale_type = 'w' and t_s_firstyear.year = 1998 and t_s_secyear.year = 1998+1 and t_w_firstyear.year = 1998 and t_w_secyear.year = 1998+1 and t_s_firstyear.year_total > 0 and t_w_firstyear.year_total > 0 and case when t_w_firstyear.year_total > 0 then t_w_secyear.year_total / t_w_firstyear.year_total else null end > case when t_s_firstyear.year_total > 0 then t_s_secyear.year_total / t_s_firstyear.year_total else null end order by 2,3,1 limit 100; -- end template query74.tpl query 24 in stream 6 -- start template query6.tpl query 25 in stream 6 select /* TPC-DS query6.tpl 0.58 */ a.ca_state state, count(*) cnt from customer_address a ,customer c ,store_sales s ,date_dim d ,item i where a.ca_address_sk = c.c_current_addr_sk and c.c_customer_sk = s.ss_customer_sk and s.ss_sold_date_sk = d.d_date_sk and s.ss_item_sk = i.i_item_sk and d.d_month_seq = (select distinct (d_month_seq) from date_dim where d_year = 1999 and d_moy = 4 ) and i.i_current_price > 1.2 * (select avg(j.i_current_price) from item j where j.i_category = i.i_category) group by a.ca_state having count(*) >= 10 order by cnt, a.ca_state limit 100; -- end template query6.tpl query 25 in stream 6 -- start template query65.tpl query 26 in stream 6 select /* TPC-DS query65.tpl 0.71 */ s_store_name, i_item_desc, sc.revenue, i_current_price, i_wholesale_cost, i_brand from store, item, (select ss_store_sk, avg(revenue) as ave from (select ss_store_sk, ss_item_sk, sum(ss_sales_price) as revenue from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1180 and 1180+11 group by ss_store_sk, ss_item_sk) sa group by ss_store_sk) sb, (select ss_store_sk, ss_item_sk, sum(ss_sales_price) as revenue from store_sales, date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1180 and 1180+11 group by ss_store_sk, ss_item_sk) sc where sb.ss_store_sk = sc.ss_store_sk and sc.revenue <= 0.1 * sb.ave and s_store_sk = sc.ss_store_sk and i_item_sk = sc.ss_item_sk order by s_store_name, i_item_desc limit 100; -- end template query65.tpl query 26 in stream 6 -- start template query84.tpl query 27 in stream 6 select /* TPC-DS query84.tpl 0.80 */ c_customer_id as customer_id , coalesce(c_last_name,'') || ', ' || coalesce(c_first_name,'') as customername from customer ,customer_address ,customer_demographics ,household_demographics ,income_band ,store_returns where ca_city = 'Riverside' and c_current_addr_sk = ca_address_sk and ib_lower_bound >= 849 and ib_upper_bound <= 849 + 50000 and ib_income_band_sk = hd_income_band_sk and cd_demo_sk = c_current_cdemo_sk and hd_demo_sk = c_current_hdemo_sk and sr_cdemo_sk = cd_demo_sk order by c_customer_id limit 100; -- end template query84.tpl query 27 in stream 6 -- start template query14a.tpl query 28 in stream 6 with /* TPC-DS query14a.tpl 0.69 */ cross_items as (select i_item_sk ss_item_sk from item, (select iss.i_brand_id brand_id ,iss.i_class_id class_id ,iss.i_category_id category_id from store_sales ,item iss ,date_dim d1 where ss_item_sk = iss.i_item_sk and ss_sold_date_sk = d1.d_date_sk and d1.d_year between 2000 AND 2000 + 2 intersect select ics.i_brand_id ,ics.i_class_id ,ics.i_category_id from catalog_sales ,item ics ,date_dim d2 where cs_item_sk = ics.i_item_sk and cs_sold_date_sk = d2.d_date_sk and d2.d_year between 2000 AND 2000 + 2 intersect select iws.i_brand_id ,iws.i_class_id ,iws.i_category_id from web_sales ,item iws ,date_dim d3 where ws_item_sk = iws.i_item_sk and ws_sold_date_sk = d3.d_date_sk and d3.d_year between 2000 AND 2000 + 2) x where i_brand_id = brand_id and i_class_id = class_id and i_category_id = category_id ), avg_sales as (select avg(quantity*list_price) average_sales from (select ss_quantity quantity ,ss_list_price list_price from store_sales ,date_dim where ss_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2 union all select cs_quantity quantity ,cs_list_price list_price from catalog_sales ,date_dim where cs_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2 union all select ws_quantity quantity ,ws_list_price list_price from web_sales ,date_dim where ws_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2) x) , results AS (select channel, i_brand_id, i_class_id, i_category_id, sum(sales) sum_sales, sum(number_sales) number_sales from ( select 'store' channel, i_brand_id,i_class_id ,i_category_id,sum(ss_quantity*ss_list_price) sales , count(*) number_sales from store_sales ,item ,date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_year = 2000+2 and d_moy = 11 group by i_brand_id,i_class_id,i_category_id having sum(ss_quantity*ss_list_price) > (select average_sales from avg_sales) union all select 'catalog' channel, i_brand_id,i_class_id,i_category_id, sum(cs_quantity*cs_list_price) sales, count(*) number_sales from catalog_sales ,item ,date_dim where cs_item_sk in (select ss_item_sk from cross_items) and cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and d_year = 2000+2 and d_moy = 11 group by i_brand_id,i_class_id,i_category_id having sum(cs_quantity*cs_list_price) > (select average_sales from avg_sales) union all select 'web' channel, i_brand_id,i_class_id,i_category_id, sum(ws_quantity*ws_list_price) sales , count(*) number_sales from web_sales ,item ,date_dim where ws_item_sk in (select ss_item_sk from cross_items) and ws_item_sk = i_item_sk and ws_sold_date_sk = d_date_sk and d_year = 2000+2 and d_moy = 11 group by i_brand_id,i_class_id,i_category_id having sum(ws_quantity*ws_list_price) > (select average_sales from avg_sales) ) y group by channel, i_brand_id,i_class_id,i_category_id) select channel, i_brand_id, i_class_id, i_category_id, sum_sales, number_sales from ( select channel, i_brand_id, i_class_id, i_category_id, sum_sales, number_sales from results union select channel, i_brand_id, i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel, i_brand_id, i_class_id union select channel, i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel, i_brand_id union select channel, null as i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results group by channel union select null as channel, null as i_brand_id, null as i_class_id, null as i_category_id, sum(sum_sales), sum(number_sales) from results) z order by channel, i_brand_id, i_class_id, i_category_id limit 100; with /* TPC-DS query14a.tpl 0.69 part2 */ cross_items as (select i_item_sk ss_item_sk from item, (select iss.i_brand_id brand_id ,iss.i_class_id class_id ,iss.i_category_id category_id from store_sales ,item iss ,date_dim d1 where ss_item_sk = iss.i_item_sk and ss_sold_date_sk = d1.d_date_sk and d1.d_year between 2000 AND 2000 + 2 intersect select ics.i_brand_id ,ics.i_class_id ,ics.i_category_id from catalog_sales ,item ics ,date_dim d2 where cs_item_sk = ics.i_item_sk and cs_sold_date_sk = d2.d_date_sk and d2.d_year between 2000 AND 2000 + 2 intersect select iws.i_brand_id ,iws.i_class_id ,iws.i_category_id from web_sales ,item iws ,date_dim d3 where ws_item_sk = iws.i_item_sk and ws_sold_date_sk = d3.d_date_sk and d3.d_year between 2000 AND 2000 + 2) x where i_brand_id = brand_id and i_class_id = class_id and i_category_id = category_id ), avg_sales as (select avg(quantity*list_price) average_sales from (select ss_quantity quantity ,ss_list_price list_price from store_sales ,date_dim where ss_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2 union all select cs_quantity quantity ,cs_list_price list_price from catalog_sales ,date_dim where cs_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2 union all select ws_quantity quantity ,ws_list_price list_price from web_sales ,date_dim where ws_sold_date_sk = d_date_sk and d_year between 2000 and 2000 + 2) x) select this_year.channel ty_channel ,this_year.i_brand_id ty_brand ,this_year.i_class_id ty_class ,this_year.i_category_id ty_category ,this_year.sales ty_sales ,this_year.number_sales ty_number_sales ,last_year.channel ly_channel ,last_year.i_brand_id ly_brand ,last_year.i_class_id ly_class ,last_year.i_category_id ly_category ,last_year.sales ly_sales ,last_year.number_sales ly_number_sales from (select 'store' channel, i_brand_id,i_class_id,i_category_id ,sum(ss_quantity*ss_list_price) sales, count(*) number_sales from store_sales ,item ,date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_week_seq = (select d_week_seq from date_dim where d_year = 2000 + 1 and d_moy = 12 and d_dom = 10) group by i_brand_id,i_class_id,i_category_id having sum(ss_quantity*ss_list_price) > (select average_sales from avg_sales)) this_year, (select 'store' channel, i_brand_id,i_class_id ,i_category_id, sum(ss_quantity*ss_list_price) sales, count(*) number_sales from store_sales ,item ,date_dim where ss_item_sk in (select ss_item_sk from cross_items) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_week_seq = (select d_week_seq from date_dim where d_year = 2000 and d_moy = 12 and d_dom = 10) group by i_brand_id,i_class_id,i_category_id having sum(ss_quantity*ss_list_price) > (select average_sales from avg_sales)) last_year where this_year.i_brand_id= last_year.i_brand_id and this_year.i_class_id = last_year.i_class_id and this_year.i_category_id = last_year.i_category_id order by this_year.channel, this_year.i_brand_id, this_year.i_class_id, this_year.i_category_id limit 100; -- end template query14a.tpl query 28 in stream 6 -- start template query38.tpl query 29 in stream 6 select /* TPC-DS query38.tpl 0.54 */ count(*) from ( select distinct c_last_name, c_first_name, d_date from store_sales, date_dim, customer where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_customer_sk = customer.c_customer_sk and d_month_seq between 1184 and 1184 + 11 intersect select distinct c_last_name, c_first_name, d_date from catalog_sales, date_dim, customer where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_bill_customer_sk = customer.c_customer_sk and d_month_seq between 1184 and 1184 + 11 intersect select distinct c_last_name, c_first_name, d_date from web_sales, date_dim, customer where web_sales.ws_sold_date_sk = date_dim.d_date_sk and web_sales.ws_bill_customer_sk = customer.c_customer_sk and d_month_seq between 1184 and 1184 + 11 ) hot_cust limit 100; -- end template query38.tpl query 29 in stream 6 -- start template query24.tpl query 30 in stream 6 with /* TPC-DS query24.tpl 0.92 */ ssales as (select c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size ,sum(ss_net_paid) netpaid from store_sales ,store_returns ,store ,item ,customer ,customer_address where ss_ticket_number = sr_ticket_number and ss_item_sk = sr_item_sk and ss_customer_sk = c_customer_sk and ss_item_sk = i_item_sk and ss_store_sk = s_store_sk and c_current_addr_sk = ca_address_sk and c_birth_country <> upper(ca_country) and s_zip = ca_zip and s_market_id=8 group by c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size) select c_last_name ,c_first_name ,s_store_name ,sum(netpaid) paid from ssales where i_color = 'royal' group by c_last_name ,c_first_name ,s_store_name having sum(netpaid) > (select 0.05*avg(netpaid) from ssales) order by c_last_name ,c_first_name ,s_store_name ; with /* TPC-DS query24.tpl 0.92 part2 */ ssales as (select c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size ,sum(ss_net_paid) netpaid from store_sales ,store_returns ,store ,item ,customer ,customer_address where ss_ticket_number = sr_ticket_number and ss_item_sk = sr_item_sk and ss_customer_sk = c_customer_sk and ss_item_sk = i_item_sk and ss_store_sk = s_store_sk and c_current_addr_sk = ca_address_sk and c_birth_country <> upper(ca_country) and s_zip = ca_zip and s_market_id = 8 group by c_last_name ,c_first_name ,s_store_name ,ca_state ,s_state ,i_color ,i_current_price ,i_manager_id ,i_units ,i_size) select c_last_name ,c_first_name ,s_store_name ,sum(netpaid) paid from ssales where i_color = 'tomato' group by c_last_name ,c_first_name ,s_store_name having sum(netpaid) > (select 0.05*avg(netpaid) from ssales) order by c_last_name ,c_first_name ,s_store_name ; -- end template query24.tpl query 30 in stream 6 -- start template query42.tpl query 31 in stream 6 select /* TPC-DS query42.tpl 0.61 */ dt.d_year ,item.i_category_id ,item.i_category ,sum(ss_ext_sales_price) from date_dim dt ,store_sales ,item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manager_id = 1 and dt.d_moy=12 and dt.d_year=1999 group by dt.d_year ,item.i_category_id ,item.i_category order by sum(ss_ext_sales_price) desc,dt.d_year ,item.i_category_id ,item.i_category limit 100 ; -- end template query42.tpl query 31 in stream 6 -- start template query29.tpl query 32 in stream 6 select /* TPC-DS query29.tpl 0.53 */ i_item_id ,i_item_desc ,s_store_id ,s_store_name ,max(ss_quantity) as store_sales_quantity ,max(sr_return_quantity) as store_returns_quantity ,max(cs_quantity) as catalog_sales_quantity from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_moy = 4 and d1.d_year = 2000 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_moy between 4 and 4 + 3 and d2.d_year = 2000 and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_year in (2000,2000+1,2000+2) group by i_item_id ,i_item_desc ,s_store_id ,s_store_name order by i_item_id ,i_item_desc ,s_store_id ,s_store_name limit 100; -- end template query29.tpl query 32 in stream 6 -- start template query72.tpl query 33 in stream 6 select /* TPC-DS query72.tpl 0.87 */ i_item_desc ,w_warehouse_name ,d1.d_week_seq ,sum(case when p_promo_sk is null then 1 else 0 end) no_promo ,sum(case when p_promo_sk is not null then 1 else 0 end) promo ,count(*) total_cnt from catalog_sales join inventory on (cs_item_sk = inv_item_sk) join warehouse on (w_warehouse_sk=inv_warehouse_sk) join item on (i_item_sk = cs_item_sk) join customer_demographics on (cs_bill_cdemo_sk = cd_demo_sk) join household_demographics on (cs_bill_hdemo_sk = hd_demo_sk) join date_dim d1 on (cs_sold_date_sk = d1.d_date_sk) join date_dim d2 on (inv_date_sk = d2.d_date_sk) join date_dim d3 on (cs_ship_date_sk = d3.d_date_sk) left outer join promotion on (cs_promo_sk=p_promo_sk) left outer join catalog_returns on (cr_item_sk = cs_item_sk and cr_order_number = cs_order_number) where d1.d_week_seq = d2.d_week_seq and inv_quantity_on_hand < cs_quantity and d3.d_date > d1.d_date + 5 and hd_buy_potential = '501-1000' and d1.d_year = 1998 and cd_marital_status = 'M' group by i_item_desc,w_warehouse_name,d1.d_week_seq order by total_cnt desc, i_item_desc, w_warehouse_name, d_week_seq limit 100; -- end template query72.tpl query 33 in stream 6 -- start template query23.tpl query 34 in stream 6 with /* TPC-DS query23.tpl 0.68 */ frequent_ss_items as (select substring(i_item_desc,1,30) itemdesc,i_item_sk item_sk,d_date solddate,count(*) cnt from store_sales ,date_dim ,item where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and d_year in (1999,1999+1,1999+2,1999+3) group by substring(i_item_desc,1,30),i_item_sk,d_date having count(*) >4), max_store_sales as (select max(csales) tpcds_cmax from (select c_customer_sk,sum(ss_quantity*ss_sales_price) csales from store_sales ,customer ,date_dim where ss_customer_sk = c_customer_sk and ss_sold_date_sk = d_date_sk and d_year in (1999,1999+1,1999+2,1999+3) group by c_customer_sk)), best_ss_customer as (select c_customer_sk,sum(ss_quantity*ss_sales_price) ssales from store_sales ,customer where ss_customer_sk = c_customer_sk group by c_customer_sk having sum(ss_quantity*ss_sales_price) > (95/100.0) * (select * from max_store_sales)) select sum(sales) from (select cs_quantity*cs_list_price sales from catalog_sales ,date_dim where d_year = 1999 and d_moy = 7 and cs_sold_date_sk = d_date_sk and cs_item_sk in (select item_sk from frequent_ss_items) and cs_bill_customer_sk in (select c_customer_sk from best_ss_customer) union all select ws_quantity*ws_list_price sales from web_sales ,date_dim where d_year = 1999 and d_moy = 7 and ws_sold_date_sk = d_date_sk and ws_item_sk in (select item_sk from frequent_ss_items) and ws_bill_customer_sk in (select c_customer_sk from best_ss_customer)) limit 100; with /* TPC-DS query23.tpl 0.68 part2 */ frequent_ss_items as (select substring(i_item_desc,1,30) itemdesc,i_item_sk item_sk,d_date solddate,count(*) cnt from store_sales ,date_dim ,item where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and d_year in (1999,1999 + 1,1999 + 2,1999 + 3) group by substring(i_item_desc,1,30),i_item_sk,d_date having count(*) >4), max_store_sales as (select max(csales) tpcds_cmax from (select c_customer_sk,sum(ss_quantity*ss_sales_price) csales from store_sales ,customer ,date_dim where ss_customer_sk = c_customer_sk and ss_sold_date_sk = d_date_sk and d_year in (1999,1999+1,1999+2,1999+3) group by c_customer_sk)), best_ss_customer as (select c_customer_sk,sum(ss_quantity*ss_sales_price) ssales from store_sales ,customer where ss_customer_sk = c_customer_sk group by c_customer_sk having sum(ss_quantity*ss_sales_price) > (95/100.0) * (select * from max_store_sales)) select c_last_name,c_first_name,sales from (select c_last_name,c_first_name,sum(cs_quantity*cs_list_price) sales from catalog_sales ,customer ,date_dim where d_year = 1999 and d_moy = 7 and cs_sold_date_sk = d_date_sk and cs_item_sk in (select item_sk from frequent_ss_items) and cs_bill_customer_sk in (select c_customer_sk from best_ss_customer) and cs_bill_customer_sk = c_customer_sk group by c_last_name,c_first_name union all select c_last_name,c_first_name,sum(ws_quantity*ws_list_price) sales from web_sales ,customer ,date_dim where d_year = 1999 and d_moy = 7 and ws_sold_date_sk = d_date_sk and ws_item_sk in (select item_sk from frequent_ss_items) and ws_bill_customer_sk in (select c_customer_sk from best_ss_customer) and ws_bill_customer_sk = c_customer_sk group by c_last_name,c_first_name) order by c_last_name,c_first_name,sales limit 100; -- end template query23.tpl query 34 in stream 6 -- start template query26.tpl query 35 in stream 6 select /* TPC-DS query26.tpl 0.85 */ i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, avg(cs_coupon_amt) agg3, avg(cs_sales_price) agg4 from catalog_sales, customer_demographics, date_dim, item, promotion where cs_sold_date_sk = d_date_sk and cs_item_sk = i_item_sk and cs_bill_cdemo_sk = cd_demo_sk and cs_promo_sk = p_promo_sk and cd_gender = 'M' and cd_marital_status = 'U' and cd_education_status = 'Unknown' and (p_channel_email = 'N' or p_channel_event = 'N') and d_year = 1998 group by i_item_id order by i_item_id limit 100; -- end template query26.tpl query 35 in stream 6 -- start template query69.tpl query 36 in stream 6 select /* TPC-DS query69.tpl 0.28 */ cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3 from customer c,customer_address ca,customer_demographics where c.c_current_addr_sk = ca.ca_address_sk and ca_state in ('SC','MO','NE') and cd_demo_sk = c.c_current_cdemo_sk and exists (select * from store_sales,date_dim where c.c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year = 1999 and d_moy between 1 and 1+2) and (not exists (select * from web_sales,date_dim where c.c_customer_sk = ws_bill_customer_sk and ws_sold_date_sk = d_date_sk and d_year = 1999 and d_moy between 1 and 1+2) and not exists (select * from catalog_sales,date_dim where c.c_customer_sk = cs_ship_customer_sk and cs_sold_date_sk = d_date_sk and d_year = 1999 and d_moy between 1 and 1+2)) group by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating order by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating limit 100; -- end template query69.tpl query 36 in stream 6 -- start template query47.tpl query 37 in stream 6 with /* TPC-DS query47.tpl 0.42 */ v1 as( select i_category, i_brand, s_store_name, s_company_name, d_year, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_category, i_brand, s_store_name, s_company_name, d_year) avg_monthly_sales, rank() over (partition by i_category, i_brand, s_store_name, s_company_name order by d_year, d_moy) rn from item, store_sales, date_dim, store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and ( d_year = 2001 or ( d_year = 2001-1 and d_moy =12) or ( d_year = 2001+1 and d_moy =1) ) group by i_category, i_brand, s_store_name, s_company_name, d_year, d_moy), v2 as( select v1.s_company_name ,v1.d_year, v1.d_moy ,v1.avg_monthly_sales ,v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum from v1, v1 v1_lag, v1 v1_lead where v1.i_category = v1_lag.i_category and v1.i_category = v1_lead.i_category and v1.i_brand = v1_lag.i_brand and v1.i_brand = v1_lead.i_brand and v1.s_store_name = v1_lag.s_store_name and v1.s_store_name = v1_lead.s_store_name and v1.s_company_name = v1_lag.s_company_name and v1.s_company_name = v1_lead.s_company_name and v1.rn = v1_lag.rn + 1 and v1.rn = v1_lead.rn - 1) select * from v2 where d_year = 2001 and avg_monthly_sales > 0 and case when avg_monthly_sales > 0 then abs(sum_sales - avg_monthly_sales) / avg_monthly_sales else null end > 0.1 order by sum_sales - avg_monthly_sales, nsum limit 100; -- end template query47.tpl query 37 in stream 6 -- start template query82.tpl query 38 in stream 6 select /* TPC-DS query82.tpl 0.67 */ i_item_id ,i_item_desc ,i_current_price from item, inventory, date_dim, store_sales where i_current_price between 81 and 81+30 and inv_item_sk = i_item_sk and d_date_sk=inv_date_sk and d_date between cast('1999-05-08' as date) and dateadd(day,60,cast('1999-05-08' as date)) and i_manufact_id in (342,91,222,313) and inv_quantity_on_hand between 100 and 500 and ss_item_sk = i_item_sk group by i_item_id,i_item_desc,i_current_price order by i_item_id limit 100; -- end template query82.tpl query 38 in stream 6 -- start template query31.tpl query 39 in stream 6 with /* TPC-DS query31.tpl 0.50 */ ss as (select ca_county,d_qoy, d_year,sum(ss_ext_sales_price) as store_sales from store_sales,date_dim,customer_address where ss_sold_date_sk = d_date_sk and ss_addr_sk=ca_address_sk group by ca_county,d_qoy, d_year), ws as (select ca_county,d_qoy, d_year,sum(ws_ext_sales_price) as web_sales from web_sales,date_dim,customer_address where ws_sold_date_sk = d_date_sk and ws_bill_addr_sk=ca_address_sk group by ca_county,d_qoy, d_year) select ss1.ca_county ,ss1.d_year ,ws2.web_sales/ws1.web_sales web_q1_q2_increase ,ss2.store_sales/ss1.store_sales store_q1_q2_increase ,ws3.web_sales/ws2.web_sales web_q2_q3_increase ,ss3.store_sales/ss2.store_sales store_q2_q3_increase from ss ss1 ,ss ss2 ,ss ss3 ,ws ws1 ,ws ws2 ,ws ws3 where ss1.d_qoy = 1 and ss1.d_year = 2002 and ss1.ca_county = ss2.ca_county and ss2.d_qoy = 2 and ss2.d_year = 2002 and ss2.ca_county = ss3.ca_county and ss3.d_qoy = 3 and ss3.d_year = 2002 and ss1.ca_county = ws1.ca_county and ws1.d_qoy = 1 and ws1.d_year = 2002 and ws1.ca_county = ws2.ca_county and ws2.d_qoy = 2 and ws2.d_year = 2002 and ws1.ca_county = ws3.ca_county and ws3.d_qoy = 3 and ws3.d_year =2002 and case when ws1.web_sales > 0 then ws2.web_sales/ws1.web_sales else null end > case when ss1.store_sales > 0 then ss2.store_sales/ss1.store_sales else null end and case when ws2.web_sales > 0 then ws3.web_sales/ws2.web_sales else null end > case when ss2.store_sales > 0 then ss3.store_sales/ss2.store_sales else null end order by store_q1_q2_increase; -- end template query31.tpl query 39 in stream 6 -- start template query59.tpl query 40 in stream 6 with /* TPC-DS query59.tpl 0.30 */ wss as (select d_week_seq, ss_store_sk, sum(case when (d_day_name='Sunday') then ss_sales_price else null end) sun_sales, sum(case when (d_day_name='Monday') then ss_sales_price else null end) mon_sales, sum(case when (d_day_name='Tuesday') then ss_sales_price else null end) tue_sales, sum(case when (d_day_name='Wednesday') then ss_sales_price else null end) wed_sales, sum(case when (d_day_name='Thursday') then ss_sales_price else null end) thu_sales, sum(case when (d_day_name='Friday') then ss_sales_price else null end) fri_sales, sum(case when (d_day_name='Saturday') then ss_sales_price else null end) sat_sales from store_sales,date_dim where d_date_sk = ss_sold_date_sk group by d_week_seq,ss_store_sk ) select s_store_name1,s_store_id1,d_week_seq1 ,sun_sales1/sun_sales2,mon_sales1/mon_sales2 ,tue_sales1/tue_sales2,wed_sales1/wed_sales2,thu_sales1/thu_sales2 ,fri_sales1/fri_sales2,sat_sales1/sat_sales2 from (select s_store_name s_store_name1,wss.d_week_seq d_week_seq1 ,s_store_id s_store_id1,sun_sales sun_sales1 ,mon_sales mon_sales1,tue_sales tue_sales1 ,wed_sales wed_sales1,thu_sales thu_sales1 ,fri_sales fri_sales1,sat_sales sat_sales1 from wss,store,date_dim d where d.d_week_seq = wss.d_week_seq and ss_store_sk = s_store_sk and d_month_seq between 1194 and 1194 + 11) y, (select s_store_name s_store_name2,wss.d_week_seq d_week_seq2 ,s_store_id s_store_id2,sun_sales sun_sales2 ,mon_sales mon_sales2,tue_sales tue_sales2 ,wed_sales wed_sales2,thu_sales thu_sales2 ,fri_sales fri_sales2,sat_sales sat_sales2 from wss,store,date_dim d where d.d_week_seq = wss.d_week_seq and ss_store_sk = s_store_sk and d_month_seq between 1194+ 12 and 1194 + 23) x where s_store_id1=s_store_id2 and d_week_seq1=d_week_seq2-52 order by s_store_name1,s_store_id1,d_week_seq1 limit 100; -- end template query59.tpl query 40 in stream 6 -- start template query49.tpl query 41 in stream 6 select /* TPC-DS query49.tpl 0.48 */ channel, item, return_ratio, return_rank, currency_rank from (select 'web' as channel ,web.item ,web.return_ratio ,web.return_rank ,web.currency_rank from ( select item ,return_ratio ,currency_ratio ,rank() over (order by return_ratio) as return_rank ,rank() over (order by currency_ratio) as currency_rank from ( select ws.ws_item_sk as item ,(cast(sum(coalesce(wr.wr_return_quantity,0)) as decimal(15,4))/ cast(sum(coalesce(ws.ws_quantity,0)) as decimal(15,4) )) as return_ratio ,(cast(sum(coalesce(wr.wr_return_amt,0)) as decimal(15,4))/ cast(sum(coalesce(ws.ws_net_paid,0)) as decimal(15,4) )) as currency_ratio from web_sales ws left outer join web_returns wr on (ws.ws_order_number = wr.wr_order_number and ws.ws_item_sk = wr.wr_item_sk) ,date_dim where wr.wr_return_amt > 10000 and ws.ws_net_profit > 1 and ws.ws_net_paid > 0 and ws.ws_quantity > 0 and ws_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 12 group by ws.ws_item_sk ) in_web ) web where ( web.return_rank <= 10 or web.currency_rank <= 10 ) union select 'catalog' as channel ,catalog.item ,catalog.return_ratio ,catalog.return_rank ,catalog.currency_rank from ( select item ,return_ratio ,currency_ratio ,rank() over (order by return_ratio) as return_rank ,rank() over (order by currency_ratio) as currency_rank from ( select cs.cs_item_sk as item ,(cast(sum(coalesce(cr.cr_return_quantity,0)) as decimal(15,4))/ cast(sum(coalesce(cs.cs_quantity,0)) as decimal(15,4) )) as return_ratio ,(cast(sum(coalesce(cr.cr_return_amount,0)) as decimal(15,4))/ cast(sum(coalesce(cs.cs_net_paid,0)) as decimal(15,4) )) as currency_ratio from catalog_sales cs left outer join catalog_returns cr on (cs.cs_order_number = cr.cr_order_number and cs.cs_item_sk = cr.cr_item_sk) ,date_dim where cr.cr_return_amount > 10000 and cs.cs_net_profit > 1 and cs.cs_net_paid > 0 and cs.cs_quantity > 0 and cs_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 12 group by cs.cs_item_sk ) in_cat ) catalog where ( catalog.return_rank <= 10 or catalog.currency_rank <=10 ) union select 'store' as channel ,store.item ,store.return_ratio ,store.return_rank ,store.currency_rank from ( select item ,return_ratio ,currency_ratio ,rank() over (order by return_ratio) as return_rank ,rank() over (order by currency_ratio) as currency_rank from ( select sts.ss_item_sk as item ,(cast(sum(coalesce(sr.sr_return_quantity,0)) as decimal(15,4))/cast(sum(coalesce(sts.ss_quantity,0)) as decimal(15,4) )) as return_ratio ,(cast(sum(coalesce(sr.sr_return_amt,0)) as decimal(15,4))/cast(sum(coalesce(sts.ss_net_paid,0)) as decimal(15,4) )) as currency_ratio from store_sales sts left outer join store_returns sr on (sts.ss_ticket_number = sr.sr_ticket_number and sts.ss_item_sk = sr.sr_item_sk) ,date_dim where sr.sr_return_amt > 10000 and sts.ss_net_profit > 1 and sts.ss_net_paid > 0 and sts.ss_quantity > 0 and ss_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 12 group by sts.ss_item_sk ) in_store ) store where ( store.return_rank <= 10 or store.currency_rank <= 10 ) ) order by 1,4,5,2 limit 100; -- end template query49.tpl query 41 in stream 6 -- start template query33.tpl query 42 in stream 6 with /* TPC-DS query33.tpl 0.22 */ ss as ( select i_manufact_id,sum(ss_ext_sales_price) total_sales from store_sales, date_dim, customer_address, item where i_manufact_id in (select i_manufact_id from item where i_category in ('Sports')) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_year = 2000 and d_moy = 6 and ss_addr_sk = ca_address_sk and ca_gmt_offset = -7 group by i_manufact_id), cs as ( select i_manufact_id,sum(cs_ext_sales_price) total_sales from catalog_sales, date_dim, customer_address, item where i_manufact_id in (select i_manufact_id from item where i_category in ('Sports')) and cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and d_year = 2000 and d_moy = 6 and cs_bill_addr_sk = ca_address_sk and ca_gmt_offset = -7 group by i_manufact_id), ws as ( select i_manufact_id,sum(ws_ext_sales_price) total_sales from web_sales, date_dim, customer_address, item where i_manufact_id in (select i_manufact_id from item where i_category in ('Sports')) and ws_item_sk = i_item_sk and ws_sold_date_sk = d_date_sk and d_year = 2000 and d_moy = 6 and ws_bill_addr_sk = ca_address_sk and ca_gmt_offset = -7 group by i_manufact_id) select i_manufact_id ,sum(total_sales) total_sales from (select * from ss union all select * from cs union all select * from ws) tmp1 group by i_manufact_id order by total_sales limit 100; -- end template query33.tpl query 42 in stream 6 -- start template query86a.tpl query 43 in stream 6 with /* TPC-DS query86a.tpl 0.11 */ results as ( select sum(ws_net_paid) as total_sum, i_category, i_class, 0 as g_category, 0 as g_class from web_sales ,date_dim d1 ,item where d1.d_month_seq between 1222 and 1222+11 and d1.d_date_sk = ws_sold_date_sk and i_item_sk = ws_item_sk group by i_category,i_class ) , results_rollup as ( select total_sum ,i_category ,i_class, g_category, g_class, 0 as lochierarchy from results union select sum(total_sum) as total_sum, i_category, NULL as i_class, 0 as g_category, 1 as g_class, 1 as lochierarchy from results group by i_category union select sum(total_sum) as total_sum, NULL as i_category, NULL as i_class, 1 as g_category, 1 as g_class, 2 as lochierarchy from results) select total_sum ,i_category ,i_class, lochierarchy ,rank() over ( partition by lochierarchy, case when g_class = 0 then i_category end order by total_sum desc) as rank_within_parent from results_rollup order by lochierarchy desc, case when lochierarchy = 0 then i_category end, rank_within_parent limit 100; -- end template query86a.tpl query 43 in stream 6 -- start template query99.tpl query 44 in stream 6 select /* TPC-DS query99.tpl 0.94 */ substring(w_warehouse_name,1,20) ,sm_type ,cc_name ,sum(case when (cs_ship_date_sk - cs_sold_date_sk <= 30 ) then 1 else 0 end) as "30 days" ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 30) and (cs_ship_date_sk - cs_sold_date_sk <= 60) then 1 else 0 end ) as "31-60 days" ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 60) and (cs_ship_date_sk - cs_sold_date_sk <= 90) then 1 else 0 end) as "61-90 days" ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 90) and (cs_ship_date_sk - cs_sold_date_sk <= 120) then 1 else 0 end) as "91-120 days" ,sum(case when (cs_ship_date_sk - cs_sold_date_sk > 120) then 1 else 0 end) as ">120 days" from catalog_sales ,warehouse ,ship_mode ,call_center ,date_dim where d_month_seq between 1201 and 1201 + 11 and cs_ship_date_sk = d_date_sk and cs_warehouse_sk = w_warehouse_sk and cs_ship_mode_sk = sm_ship_mode_sk and cs_call_center_sk = cc_call_center_sk group by substring(w_warehouse_name,1,20) ,sm_type ,cc_name order by substring(w_warehouse_name,1,20) ,sm_type ,cc_name limit 100; -- end template query99.tpl query 44 in stream 6 -- start template query4.tpl query 45 in stream 6 with /* TPC-DS query4.tpl 0.93 */ year_total as ( select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag customer_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login customer_login ,c_email_address customer_email_address ,d_year dyear ,sum(((ss_ext_list_price-ss_ext_wholesale_cost-ss_ext_discount_amt)+ss_ext_sales_price)/2) year_total ,'s' sale_type from customer ,store_sales ,date_dim where c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk group by c_customer_id ,c_first_name ,c_last_name ,c_preferred_cust_flag ,c_birth_country ,c_login ,c_email_address ,d_year union all select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag customer_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login customer_login ,c_email_address customer_email_address ,d_year dyear ,sum((((cs_ext_list_price-cs_ext_wholesale_cost-cs_ext_discount_amt)+cs_ext_sales_price)/2) ) year_total ,'c' sale_type from customer ,catalog_sales ,date_dim where c_customer_sk = cs_bill_customer_sk and cs_sold_date_sk = d_date_sk group by c_customer_id ,c_first_name ,c_last_name ,c_preferred_cust_flag ,c_birth_country ,c_login ,c_email_address ,d_year union all select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag customer_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login customer_login ,c_email_address customer_email_address ,d_year dyear ,sum((((ws_ext_list_price-ws_ext_wholesale_cost-ws_ext_discount_amt)+ws_ext_sales_price)/2) ) year_total ,'w' sale_type from customer ,web_sales ,date_dim where c_customer_sk = ws_bill_customer_sk and ws_sold_date_sk = d_date_sk group by c_customer_id ,c_first_name ,c_last_name ,c_preferred_cust_flag ,c_birth_country ,c_login ,c_email_address ,d_year ) select t_s_secyear.customer_id ,t_s_secyear.customer_first_name ,t_s_secyear.customer_last_name ,t_s_secyear.customer_login from year_total t_s_firstyear ,year_total t_s_secyear ,year_total t_c_firstyear ,year_total t_c_secyear ,year_total t_w_firstyear ,year_total t_w_secyear where t_s_secyear.customer_id = t_s_firstyear.customer_id and t_s_firstyear.customer_id = t_c_secyear.customer_id and t_s_firstyear.customer_id = t_c_firstyear.customer_id and t_s_firstyear.customer_id = t_w_firstyear.customer_id and t_s_firstyear.customer_id = t_w_secyear.customer_id and t_s_firstyear.sale_type = 's' and t_c_firstyear.sale_type = 'c' and t_w_firstyear.sale_type = 'w' and t_s_secyear.sale_type = 's' and t_c_secyear.sale_type = 'c' and t_w_secyear.sale_type = 'w' and t_s_firstyear.dyear = 1998 and t_s_secyear.dyear = 1998+1 and t_c_firstyear.dyear = 1998 and t_c_secyear.dyear = 1998+1 and t_w_firstyear.dyear = 1998 and t_w_secyear.dyear = 1998+1 and t_s_firstyear.year_total > 0 and t_c_firstyear.year_total > 0 and t_w_firstyear.year_total > 0 and case when t_c_firstyear.year_total > 0 then t_c_secyear.year_total / t_c_firstyear.year_total else null end > case when t_s_firstyear.year_total > 0 then t_s_secyear.year_total / t_s_firstyear.year_total else null end and case when t_c_firstyear.year_total > 0 then t_c_secyear.year_total / t_c_firstyear.year_total else null end > case when t_w_firstyear.year_total > 0 then t_w_secyear.year_total / t_w_firstyear.year_total else null end order by t_s_secyear.customer_id ,t_s_secyear.customer_first_name ,t_s_secyear.customer_last_name ,t_s_secyear.customer_login limit 100; -- end template query4.tpl query 45 in stream 6 -- start template query45.tpl query 46 in stream 6 select /* TPC-DS query45.tpl 0.18 */ ca_zip, ca_county, sum(ws_sales_price) from web_sales, customer, customer_address, date_dim, item where ws_bill_customer_sk = c_customer_sk and c_current_addr_sk = ca_address_sk and ws_item_sk = i_item_sk and ( substring(ca_zip,1,5) in ('85669', '86197','88274','83405','86475', '85392', '85460', '80348', '81792') or i_item_id in (select i_item_id from item where i_item_sk in (2, 3, 5, 7, 11, 13, 17, 19, 23, 29) ) ) and ws_sold_date_sk = d_date_sk and d_qoy = 2 and d_year = 2002 group by ca_zip, ca_county order by ca_zip, ca_county limit 100; -- end template query45.tpl query 46 in stream 6 -- start template query85.tpl query 47 in stream 6 select /* TPC-DS query85.tpl 0.33 */ substring(r_reason_desc,1,20) ,avg(ws_quantity) ,avg(wr_refunded_cash) ,avg(wr_fee) from web_sales, web_returns, web_page, customer_demographics cd1, customer_demographics cd2, customer_address, date_dim, reason where ws_web_page_sk = wp_web_page_sk and ws_item_sk = wr_item_sk and ws_order_number = wr_order_number and ws_sold_date_sk = d_date_sk and d_year = 1999 and cd1.cd_demo_sk = wr_refunded_cdemo_sk and cd2.cd_demo_sk = wr_returning_cdemo_sk and ca_address_sk = wr_refunded_addr_sk and r_reason_sk = wr_reason_sk and ( ( cd1.cd_marital_status = 'W' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = 'Secondary' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 100.00 and 150.00 ) or ( cd1.cd_marital_status = 'M' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = '4 yr Degree' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 50.00 and 100.00 ) or ( cd1.cd_marital_status = 'D' and cd1.cd_marital_status = cd2.cd_marital_status and cd1.cd_education_status = '2 yr Degree' and cd1.cd_education_status = cd2.cd_education_status and ws_sales_price between 150.00 and 200.00 ) ) and ( ( ca_country = 'United States' and ca_state in ('VA', 'IA', 'MN') and ws_net_profit between 100 and 200 ) or ( ca_country = 'United States' and ca_state in ('OR', 'WV', 'KS') and ws_net_profit between 150 and 300 ) or ( ca_country = 'United States' and ca_state in ('LA', 'MD', 'TN') and ws_net_profit between 50 and 250 ) ) group by r_reason_desc order by substring(r_reason_desc,1,20) ,avg(ws_quantity) ,avg(wr_refunded_cash) ,avg(wr_fee) limit 100; -- end template query85.tpl query 47 in stream 6 -- start template query8.tpl query 48 in stream 6 select /* TPC-DS query8.tpl 0.63 */ s_store_name ,sum(ss_net_profit) from store_sales ,date_dim ,store, (select ca_zip from ( SELECT substring(ca_zip,1,5) ca_zip FROM customer_address WHERE substring(ca_zip,1,5) IN ( '47792','57955','42788','78317','55713','39639', '32424','15538','28514','69134','45217', '61435','50147','62099','23908','16053', '73173','84101','82884','90260','20750', '97142','85617','80083','96286','27536', '40549','11107','62812','75856','46523', '55556','54307','18053','79308','93617', '60989','19914','98651','10284','37539', '66032','84857','14395','71795','77471', '50367','62559','48526','47648','16271', '47382','51597','11070','94634','87558', '45410','53359','22859','47162','41319', '86998','53235','15453','28847','30620', '21485','61135','11845','92819','46157', '97845','86575','81166','52005','38985', '33975','84761','30048','37285','28409', '23936','56017','17216','31535','18679', '28298','44436','25186','58270','34316', '17840','20297','39999','75278','98330', '52468','81936','42792','56625','30729', '99012','43727','86957','33571','60180', '13582','46369','87122','24245','62962', '94557','32621','55696','42728','12892', '61292','90896','76751','78917','62536', '38991','60525','88400','51632','55592', '68789','63802','95305','92685','55155', '53066','56347','42779','22128','46813', '57061','59820','68385','35188','43913', '63102','14263','80594','60675','22133', '11456','88882','64007','34928','18795', '79415','66112','63295','48049','95391', '67867','64292','80661','61870','68662', '22067','26983','45961','35365','45059', '45332','53931','83271','48316','52820', '81471','58518','74206','86776','19826', '57005','65044','13276','57946','96675', '23274','88779','87243','11706','43720', '57112','42062','96771','90153','69138', '83993','57532','94756','35434','28908', '33423','97043','21150','33637','86828', '62644','52540','23449','34297','31615', '45384','63722','28985','50707','44426', '98035','84687','71223','46274','42754', '52289','81983','60442','30140','75551', '55423','11363','64673','58740','83847', '23752','67683','96966','48245','14920', '79811','12876','22279','64595','41530', '28665','92075','13128','40982','21189', '17902','66960','46002','54695','87628', '29652','49132','40798','39612','15360', '94289','15781','12650','99737','97228', '14151','55137','61878','50013','59932', '52053','72299','52263','94003','39393', '10398','55601','84223','23060','73925', '61361','28858','77909','77495','51460', '65769','16196','72201','25413','41465', '39628','88740','62172','85568','78383', '23122','24424','37113','31311','34453', '77105','80857','46772','99718','32906', '87491','73852','70361','36843','39034', '15159','72821','92716','72620','23986', '12030','11015','22064','36619','23416', '35253','82403','66826','33294','41898', '13074','46973','98415','47386','68828', '14145','97463','83989','26168','26034', '94104','23402','70142','52520','20303', '31820','90078','86349','69409','10622', '16753','89980','62146','45962','88845', '97587','44220','43827','41515','72853', '73583','77396','22438','62217','27011', '11213','96999','25006','38595','68405', '92253','29896','77598','82684','69356', '43393','79497','79757','82229','49965', '48528','48788','79434','34558','38662', '60899','36019','43814','91936','23032', '27040','57999','19790','73001','31506', '59037','36323','39142','76521','90534', '55316','63147','75477','33383','51157', '59509','52128','64610','77024','22764', '36913','13833','63263','25708') intersect select ca_zip from (SELECT substring(ca_zip,1,5) ca_zip,count(*) cnt FROM customer_address, customer WHERE ca_address_sk = c_current_addr_sk and c_preferred_cust_flag='Y' group by ca_zip having count(*) > 10)A1)A2) V1 where ss_store_sk = s_store_sk and ss_sold_date_sk = d_date_sk and d_qoy = 2 and d_year = 2002 and (substring(s_zip,1,2) = substring(V1.ca_zip,1,2)) group by s_store_name order by s_store_name limit 100; -- end template query8.tpl query 48 in stream 6 -- start template query19.tpl query 49 in stream 6 select /* TPC-DS query19.tpl 0.8 */ i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item,customer,customer_address,store where d_date_sk = ss_sold_date_sk and ss_item_sk = i_item_sk and i_manager_id=17 and d_moy=12 and d_year=2002 and ss_customer_sk = c_customer_sk and c_current_addr_sk = ca_address_sk and substring(ca_zip,1,5) <> substring(s_zip,1,5) and ss_store_sk = s_store_sk group by i_brand ,i_brand_id ,i_manufact_id ,i_manufact order by ext_price desc ,i_brand ,i_brand_id ,i_manufact_id ,i_manufact limit 100 ; -- end template query19.tpl query 49 in stream 6 -- start template query61.tpl query 50 in stream 6 select /* TPC-DS query61.tpl 0.97 */ promotions,total,cast(promotions as decimal(15,4))/cast(total as decimal(15,4))*100 from (select sum(ss_ext_sales_price) promotions from store_sales ,store ,promotion ,date_dim ,customer ,customer_address ,item where ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and ss_promo_sk = p_promo_sk and ss_customer_sk= c_customer_sk and ca_address_sk = c_current_addr_sk and ss_item_sk = i_item_sk and ca_gmt_offset = -6 and i_category = 'Sports' and (p_channel_dmail = 'Y' or p_channel_email = 'Y' or p_channel_tv = 'Y') and s_gmt_offset = -6 and d_year = 1998 and d_moy = 12) promotional_sales, (select sum(ss_ext_sales_price) total from store_sales ,store ,date_dim ,customer ,customer_address ,item where ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and ss_customer_sk= c_customer_sk and ca_address_sk = c_current_addr_sk and ss_item_sk = i_item_sk and ca_gmt_offset = -6 and i_category = 'Sports' and s_gmt_offset = -6 and d_year = 1998 and d_moy = 12) all_sales order by promotions, total limit 100; -- end template query61.tpl query 50 in stream 6 -- start template query3.tpl query 51 in stream 6 select /* TPC-DS query3.tpl 0.45 */ dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand ,sum(ss_ext_sales_price) sum_agg from date_dim dt ,store_sales ,item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manufact_id = 313 and dt.d_moy=11 group by dt.d_year ,item.i_brand ,item.i_brand_id order by dt.d_year ,sum_agg desc ,brand_id limit 100; -- end template query3.tpl query 51 in stream 6 -- start template query41.tpl query 52 in stream 6 select /* TPC-DS query41.tpl 0.62 */ distinct(i_product_name) from item i1 where i_manufact_id between 932 and 932+40 and (select count(*) as item_cnt from item where (i_manufact = i1.i_manufact and ((i_category = 'Women' and (i_color = 'goldenrod' or i_color = 'turquoise') and (i_units = 'Pallet' or i_units = 'Carton') and (i_size = 'extra large' or i_size = 'medium') ) or (i_category = 'Women' and (i_color = 'sky' or i_color = 'slate') and (i_units = 'Tsp' or i_units = 'Box') and (i_size = 'large' or i_size = 'economy') ) or (i_category = 'Men' and (i_color = 'royal' or i_color = 'chocolate') and (i_units = 'Unknown' or i_units = 'Tbl') and (i_size = 'petite' or i_size = 'small') ) or (i_category = 'Men' and (i_color = 'puff' or i_color = 'hot') and (i_units = 'Cup' or i_units = 'Gross') and (i_size = 'extra large' or i_size = 'medium') ))) or (i_manufact = i1.i_manufact and ((i_category = 'Women' and (i_color = 'olive' or i_color = 'wheat') and (i_units = 'N/A' or i_units = 'Gram') and (i_size = 'extra large' or i_size = 'medium') ) or (i_category = 'Women' and (i_color = 'burlywood' or i_color = 'lawn') and (i_units = 'Oz' or i_units = 'Bunch') and (i_size = 'large' or i_size = 'economy') ) or (i_category = 'Men' and (i_color = 'bisque' or i_color = 'forest') and (i_units = 'Dram' or i_units = 'Ounce') and (i_size = 'petite' or i_size = 'small') ) or (i_category = 'Men' and (i_color = 'frosted' or i_color = 'indian') and (i_units = 'Lb' or i_units = 'Dozen') and (i_size = 'extra large' or i_size = 'medium') )))) > 0 order by i_product_name limit 100; -- end template query41.tpl query 52 in stream 6 -- start template query54.tpl query 53 in stream 6 with /* TPC-DS query54.tpl 0.81 */ my_customers as ( select distinct c_customer_sk , c_current_addr_sk from ( select cs_sold_date_sk sold_date_sk, cs_bill_customer_sk customer_sk, cs_item_sk item_sk from catalog_sales union all select ws_sold_date_sk sold_date_sk, ws_bill_customer_sk customer_sk, ws_item_sk item_sk from web_sales ) cs_or_ws_sales, item, date_dim, customer where sold_date_sk = d_date_sk and item_sk = i_item_sk and i_category = 'Children' and i_class = 'infants' and c_customer_sk = cs_or_ws_sales.customer_sk and d_moy = 7 and d_year = 1999 ) , my_revenue as ( select c_customer_sk, sum(ss_ext_sales_price) as revenue from my_customers, store_sales, customer_address, store, date_dim where c_current_addr_sk = ca_address_sk and ca_county = s_county and ca_state = s_state and ss_sold_date_sk = d_date_sk and c_customer_sk = ss_customer_sk and d_month_seq between (select distinct d_month_seq+1 from date_dim where d_year = 1999 and d_moy = 7) and (select distinct d_month_seq+3 from date_dim where d_year = 1999 and d_moy = 7) group by c_customer_sk ) , segments as (select cast((revenue/50) as int) as segment from my_revenue ) select segment, count(*) as num_customers, segment*50 as segment_base from segments group by segment order by segment, num_customers limit 100; -- end template query54.tpl query 53 in stream 6 -- start template query67a.tpl query 54 in stream 6 with /* TPC-DS query67a.tpl 0.35 */ results as ( select i_category ,i_class ,i_brand ,i_product_name ,d_year ,d_qoy ,d_moy ,s_store_id ,sum(coalesce(ss_sales_price*ss_quantity,0)) sumsales from store_sales ,date_dim ,store ,item where ss_sold_date_sk=d_date_sk and ss_item_sk=i_item_sk and ss_store_sk = s_store_sk and d_month_seq between 1214 and 1214 + 11 group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy,s_store_id) , results_rollup as (select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, s_store_id, sumsales from results union all select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy, d_moy union all select i_category, i_class, i_brand, i_product_name, d_year, d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year, d_qoy union all select i_category, i_class, i_brand, i_product_name, d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name, d_year union all select i_category, i_class, i_brand, i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand, i_product_name union all select i_category, i_class, i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class, i_brand union all select i_category, i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category, i_class union all select i_category, null i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results group by i_category union all select null i_category, null i_class, null i_brand, null i_product_name, null d_year, null d_qoy, null d_moy, null s_store_id, sum(sumsales) sumsales from results) select * from (select i_category ,i_class ,i_brand ,i_product_name ,d_year ,d_qoy ,d_moy ,s_store_id ,sumsales ,rank() over (partition by i_category order by sumsales desc) rk from results_rollup) dw2 where rk <= 100 order by i_category ,i_class ,i_brand ,i_product_name ,d_year ,d_qoy ,d_moy ,s_store_id ,sumsales ,rk limit 100; -- end template query67a.tpl query 54 in stream 6 -- start template query77a.tpl query 55 in stream 6 with /* TPC-DS query77a.tpl 0.78 */ ss as (select s_store_sk, sum(ss_ext_sales_price) as sales, sum(ss_net_profit) as profit from store_sales, date_dim, store where ss_sold_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) and ss_store_sk = s_store_sk group by s_store_sk) , sr as (select s_store_sk, sum(sr_return_amt) as returns, sum(sr_net_loss) as profit_loss from store_returns, date_dim, store where sr_returned_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) and sr_store_sk = s_store_sk group by s_store_sk), cs as (select cs_call_center_sk, sum(cs_ext_sales_price) as sales, sum(cs_net_profit) as profit from catalog_sales, date_dim where cs_sold_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) group by cs_call_center_sk ), cr as (select cr_call_center_sk, sum(cr_return_amount) as returns, sum(cr_net_loss) as profit_loss from catalog_returns, date_dim where cr_returned_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) group by cr_call_center_sk), ws as ( select wp_web_page_sk, sum(ws_ext_sales_price) as sales, sum(ws_net_profit) as profit from web_sales, date_dim, web_page where ws_sold_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) and ws_web_page_sk = wp_web_page_sk group by wp_web_page_sk), wr as (select wp_web_page_sk, sum(wr_return_amt) as returns, sum(wr_net_loss) as profit_loss from web_returns, date_dim, web_page where wr_returned_date_sk = d_date_sk and d_date between cast('1999-08-24' as date) and dateadd(day,30,cast('1999-08-24' as date)) and wr_web_page_sk = wp_web_page_sk group by wp_web_page_sk) , results as (select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , ss.s_store_sk as id , sales , coalesce(returns, 0) as returns , (profit - coalesce(profit_loss,0)) as profit from ss left join sr on ss.s_store_sk = sr.s_store_sk union all select 'catalog channel' as channel , cs_call_center_sk as id , sales , returns , (profit - profit_loss) as profit from cs , cr union all select 'web channel' as channel , ws.wp_web_page_sk as id , sales , coalesce(returns, 0) as returns , (profit - coalesce(profit_loss,0)) as profit from ws left join wr on ws.wp_web_page_sk = wr.wp_web_page_sk ) x group by channel, id ) select * from ( select channel, id, sales, returns, profit from results union select channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results group by channel union select NULL AS channel, NULL AS id, sum(sales) as sales, sum(returns) as returns, sum(profit) as profit from results ) foo order by channel, id limit 100; -- end template query77a.tpl query 55 in stream 6 -- start template query15.tpl query 56 in stream 6 select /* TPC-DS query15.tpl 0.57 */ ca_zip ,sum(cs_sales_price) from catalog_sales ,customer ,customer_address ,date_dim where cs_bill_customer_sk = c_customer_sk and c_current_addr_sk = ca_address_sk and ( substring(ca_zip,1,5) in ('85669', '86197','88274','83405','86475', '85392', '85460', '80348', '81792') or ca_state in ('CA','WA','GA') or cs_sales_price > 500) and cs_sold_date_sk = d_date_sk and d_qoy = 1 and d_year = 1999 group by ca_zip order by ca_zip limit 100; -- end template query15.tpl query 56 in stream 6 -- start template query51.tpl query 57 in stream 6 WITH /* TPC-DS query51.tpl 0.46 */ web_v1 as ( select ws_item_sk item_sk, d_date, sum(sum(ws_sales_price)) over (partition by ws_item_sk order by d_date rows between unbounded preceding and current row) cume_sales from web_sales ,date_dim where ws_sold_date_sk=d_date_sk and d_month_seq between 1205 and 1205+11 and ws_item_sk is not NULL group by ws_item_sk, d_date), store_v1 as ( select ss_item_sk item_sk, d_date, sum(sum(ss_sales_price)) over (partition by ss_item_sk order by d_date rows between unbounded preceding and current row) cume_sales from store_sales ,date_dim where ss_sold_date_sk=d_date_sk and d_month_seq between 1205 and 1205+11 and ss_item_sk is not NULL group by ss_item_sk, d_date) select * from (select item_sk ,d_date ,web_sales ,store_sales ,max(web_sales) over (partition by item_sk order by d_date rows between unbounded preceding and current row) web_cumulative ,max(store_sales) over (partition by item_sk order by d_date rows between unbounded preceding and current row) store_cumulative from (select case when web.item_sk is not null then web.item_sk else store.item_sk end item_sk ,case when web.d_date is not null then web.d_date else store.d_date end d_date ,web.cume_sales web_sales ,store.cume_sales store_sales from web_v1 web full outer join store_v1 store on (web.item_sk = store.item_sk and web.d_date = store.d_date) )x )y where web_cumulative > store_cumulative order by item_sk ,d_date limit 100; -- end template query51.tpl query 57 in stream 6 -- start template query98.tpl query 58 in stream 6 select /* TPC-DS query98.tpl 0.32 */ i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price ,sum(ss_ext_sales_price) as itemrevenue ,sum(ss_ext_sales_price)*100/sum(sum(ss_ext_sales_price)) over (partition by i_class) as revenueratio from store_sales ,item ,date_dim where ss_item_sk = i_item_sk and i_category in ('Sports', 'Books', 'Electronics') and ss_sold_date_sk = d_date_sk and d_date between cast('2002-01-15' as date) and dateadd(day,30,cast('2002-01-15' as date)) group by i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price order by i_category ,i_class ,i_item_id ,i_item_desc ,revenueratio; -- end template query98.tpl query 58 in stream 6 -- start template query62.tpl query 59 in stream 6 select /* TPC-DS query62.tpl 0.24 */ substring(w_warehouse_name,1,20) ,sm_type ,web_name ,sum(case when (ws_ship_date_sk - ws_sold_date_sk <= 30 ) then 1 else 0 end) as "30 days" ,sum(case when (ws_ship_date_sk - ws_sold_date_sk > 30) and (ws_ship_date_sk - ws_sold_date_sk <= 60) then 1 else 0 end ) as "31-60 days" ,sum(case when (ws_ship_date_sk - ws_sold_date_sk > 60) and (ws_ship_date_sk - ws_sold_date_sk <= 90) then 1 else 0 end) as "61-90 days" ,sum(case when (ws_ship_date_sk - ws_sold_date_sk > 90) and (ws_ship_date_sk - ws_sold_date_sk <= 120) then 1 else 0 end) as "91-120 days" ,sum(case when (ws_ship_date_sk - ws_sold_date_sk > 120) then 1 else 0 end) as ">120 days" from web_sales ,warehouse ,ship_mode ,web_site ,date_dim where d_month_seq between 1209 and 1209 + 11 and ws_ship_date_sk = d_date_sk and ws_warehouse_sk = w_warehouse_sk and ws_ship_mode_sk = sm_ship_mode_sk and ws_web_site_sk = web_site_sk group by substring(w_warehouse_name,1,20) ,sm_type ,web_name order by substring(w_warehouse_name,1,20) ,sm_type ,web_name limit 100; -- end template query62.tpl query 59 in stream 6 -- start template query97.tpl query 60 in stream 6 with /* TPC-DS query97.tpl 0.38 */ ssci as ( select ss_customer_sk customer_sk ,ss_item_sk item_sk from store_sales,date_dim where ss_sold_date_sk = d_date_sk and d_month_seq between 1177 and 1177 + 11 group by ss_customer_sk ,ss_item_sk), csci as( select cs_bill_customer_sk customer_sk ,cs_item_sk item_sk from catalog_sales,date_dim where cs_sold_date_sk = d_date_sk and d_month_seq between 1177 and 1177 + 11 group by cs_bill_customer_sk ,cs_item_sk) select sum(case when ssci.customer_sk is not null and csci.customer_sk is null then 1 else 0 end) store_only ,sum(case when ssci.customer_sk is null and csci.customer_sk is not null then 1 else 0 end) catalog_only ,sum(case when ssci.customer_sk is not null and csci.customer_sk is not null then 1 else 0 end) store_and_catalog from ssci full outer join csci on (ssci.customer_sk=csci.customer_sk and ssci.item_sk = csci.item_sk) limit 100; -- end template query97.tpl query 60 in stream 6 -- start template query22a.tpl query 61 in stream 6 with /* TPC-DS query22a.tpl 0.55 */ results as (select i_product_name ,i_brand ,i_class ,i_category ,avg(inv_quantity_on_hand) qoh from inventory ,date_dim ,item -- ,warehouse where inv_date_sk=d_date_sk and inv_item_sk=i_item_sk -- and inv_warehouse_sk = w_warehouse_sk and d_month_seq between 1200 and 1200 + 11 group by i_product_name,i_brand,i_class,i_category), results_rollup as (select i_product_name, i_brand, i_class, i_category,avg(qoh) qoh from results group by i_product_name,i_brand,i_class,i_category union all select i_product_name, i_brand, i_class, null i_category,avg(qoh) qoh from results group by i_product_name,i_brand,i_class union all select i_product_name, i_brand, null i_class, null i_category,avg(qoh) qoh from results group by i_product_name,i_brand union all select i_product_name, null i_brand, null i_class, null i_category,avg(qoh) qoh from results group by i_product_name union all select null i_product_name, null i_brand, null i_class, null i_category,avg(qoh) qoh from results) select i_product_name, i_brand, i_class, i_category,qoh from results_rollup order by qoh, i_product_name, i_brand, i_class, i_category limit 100; -- end template query22a.tpl query 61 in stream 6 -- start template query48.tpl query 62 in stream 6 select /* TPC-DS query48.tpl 0.74 */ sum (ss_quantity) from store_sales, store, customer_demographics, customer_address, date_dim where s_store_sk = ss_store_sk and ss_sold_date_sk = d_date_sk and d_year = 2000 and ( ( cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'S' and cd_education_status = 'Primary' and ss_sales_price between 100.00 and 150.00 ) or ( cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'U' and cd_education_status = '4 yr Degree' and ss_sales_price between 50.00 and 100.00 ) or ( cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'D' and cd_education_status = '2 yr Degree' and ss_sales_price between 150.00 and 200.00 ) ) and ( ( ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('TN', 'TX', 'GA') and ss_net_profit between 0 and 2000 ) or (ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('IN', 'MD', 'CO') and ss_net_profit between 150 and 3000 ) or (ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('NH', 'AZ', 'NC') and ss_net_profit between 50 and 25000 ) ) ; -- end template query48.tpl query 62 in stream 6 -- start template query2.tpl query 63 in stream 6 with /* TPC-DS query2.tpl 0.84 */ wscs as (select sold_date_sk ,sales_price from (select ws_sold_date_sk sold_date_sk ,ws_ext_sales_price sales_price from web_sales union all select cs_sold_date_sk sold_date_sk ,cs_ext_sales_price sales_price from catalog_sales)), wswscs as (select d_week_seq, sum(case when (d_day_name='Sunday') then sales_price else null end) sun_sales, sum(case when (d_day_name='Monday') then sales_price else null end) mon_sales, sum(case when (d_day_name='Tuesday') then sales_price else null end) tue_sales, sum(case when (d_day_name='Wednesday') then sales_price else null end) wed_sales, sum(case when (d_day_name='Thursday') then sales_price else null end) thu_sales, sum(case when (d_day_name='Friday') then sales_price else null end) fri_sales, sum(case when (d_day_name='Saturday') then sales_price else null end) sat_sales from wscs ,date_dim where d_date_sk = sold_date_sk group by d_week_seq) select d_week_seq1 ,round(sun_sales1/sun_sales2,2) ,round(mon_sales1/mon_sales2,2) ,round(tue_sales1/tue_sales2,2) ,round(wed_sales1/wed_sales2,2) ,round(thu_sales1/thu_sales2,2) ,round(fri_sales1/fri_sales2,2) ,round(sat_sales1/sat_sales2,2) from (select wswscs.d_week_seq d_week_seq1 ,sun_sales sun_sales1 ,mon_sales mon_sales1 ,tue_sales tue_sales1 ,wed_sales wed_sales1 ,thu_sales thu_sales1 ,fri_sales fri_sales1 ,sat_sales sat_sales1 from wswscs,date_dim where date_dim.d_week_seq = wswscs.d_week_seq and d_year = 2001) y, (select wswscs.d_week_seq d_week_seq2 ,sun_sales sun_sales2 ,mon_sales mon_sales2 ,tue_sales tue_sales2 ,wed_sales wed_sales2 ,thu_sales thu_sales2 ,fri_sales fri_sales2 ,sat_sales sat_sales2 from wswscs ,date_dim where date_dim.d_week_seq = wswscs.d_week_seq and d_year = 2001+1) z where d_week_seq1=d_week_seq2-53 order by d_week_seq1; -- end template query2.tpl query 63 in stream 6 -- start template query79.tpl query 64 in stream 6 select /* TPC-DS query79.tpl 0.89 */ c_last_name,c_first_name,substring(s_city,1,30),ss_ticket_number,amt,profit from (select ss_ticket_number ,ss_customer_sk ,store.s_city ,sum(ss_coupon_amt) amt ,sum(ss_net_profit) profit from store_sales,date_dim,store,household_demographics where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and (household_demographics.hd_dep_count = 3 or household_demographics.hd_vehicle_count > 1) and date_dim.d_dow = 1 and date_dim.d_year in (2000,2000+1,2000+2) and store.s_number_employees between 200 and 295 group by ss_ticket_number,ss_customer_sk,ss_addr_sk,store.s_city) ms,customer where ss_customer_sk = c_customer_sk order by c_last_name,c_first_name,substring(s_city,1,30), profit limit 100; -- end template query79.tpl query 64 in stream 6 -- start template query56.tpl query 65 in stream 6 with /* TPC-DS query56.tpl 0.83 */ ss as ( select i_item_id,sum(ss_ext_sales_price) total_sales from store_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_color in ('powder','smoke','grey')) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_year = 2002 and d_moy = 4 and ss_addr_sk = ca_address_sk and ca_gmt_offset = -5 group by i_item_id), cs as ( select i_item_id,sum(cs_ext_sales_price) total_sales from catalog_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_color in ('powder','smoke','grey')) and cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and d_year = 2002 and d_moy = 4 and cs_bill_addr_sk = ca_address_sk and ca_gmt_offset = -5 group by i_item_id), ws as ( select i_item_id,sum(ws_ext_sales_price) total_sales from web_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_color in ('powder','smoke','grey')) and ws_item_sk = i_item_sk and ws_sold_date_sk = d_date_sk and d_year = 2002 and d_moy = 4 and ws_bill_addr_sk = ca_address_sk and ca_gmt_offset = -5 group by i_item_id) select i_item_id ,sum(total_sales) total_sales from (select * from ss union all select * from cs union all select * from ws) tmp1 group by i_item_id order by total_sales, i_item_id limit 100; -- end template query56.tpl query 65 in stream 6 -- start template query37.tpl query 66 in stream 6 select /* TPC-DS query37.tpl 0.31 */ i_item_id ,i_item_desc ,i_current_price from item, inventory, date_dim, catalog_sales where i_current_price between 38 and 38 + 30 and inv_item_sk = i_item_sk and d_date_sk=inv_date_sk and d_date between cast('2001-04-24' as date) and dateadd(day,60,cast('2001-04-24' as date)) and i_manufact_id in (956,941,793,901) and inv_quantity_on_hand between 100 and 500 and cs_item_sk = i_item_sk group by i_item_id,i_item_desc,i_current_price order by i_item_id limit 100; -- end template query37.tpl query 66 in stream 6 -- start template query10.tpl query 67 in stream 6 select /* TPC-DS query10.tpl 0.26 */ cd_gender, cd_marital_status, cd_education_status, count(*) cnt1, cd_purchase_estimate, count(*) cnt2, cd_credit_rating, count(*) cnt3, cd_dep_count, count(*) cnt4, cd_dep_employed_count, count(*) cnt5, cd_dep_college_count, count(*) cnt6 from customer c,customer_address ca,customer_demographics where c.c_current_addr_sk = ca.ca_address_sk and ca_county in ('Pulaski County','Dickey County','Benton County','Worcester County','Monroe County') and cd_demo_sk = c.c_current_cdemo_sk and exists (select * from store_sales,date_dim where c.c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 3 and 3+3) and (exists (select * from web_sales,date_dim where c.c_customer_sk = ws_bill_customer_sk and ws_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 3 ANd 3+3) or exists (select * from catalog_sales,date_dim where c.c_customer_sk = cs_ship_customer_sk and cs_sold_date_sk = d_date_sk and d_year = 2002 and d_moy between 3 and 3+3)) group by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by cd_gender, cd_marital_status, cd_education_status, cd_purchase_estimate, cd_credit_rating, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100; -- end template query10.tpl query 67 in stream 6 -- start template query90.tpl query 68 in stream 6 select /* TPC-DS query90.tpl 0.40 */ cast(amc as decimal(15,4))/cast(pmc as decimal(15,4)) am_pm_ratio from ( select count(*) amc from web_sales, household_demographics , time_dim, web_page where ws_sold_time_sk = time_dim.t_time_sk and ws_ship_hdemo_sk = household_demographics.hd_demo_sk and ws_web_page_sk = web_page.wp_web_page_sk and time_dim.t_hour between 7 and 7+1 and household_demographics.hd_dep_count = 5 and web_page.wp_char_count between 5000 and 5200) at, ( select count(*) pmc from web_sales, household_demographics , time_dim, web_page where ws_sold_time_sk = time_dim.t_time_sk and ws_ship_hdemo_sk = household_demographics.hd_demo_sk and ws_web_page_sk = web_page.wp_web_page_sk and time_dim.t_hour between 20 and 20+1 and household_demographics.hd_dep_count = 5 and web_page.wp_char_count between 5000 and 5200) pt order by am_pm_ratio limit 100; -- end template query90.tpl query 68 in stream 6 -- start template query21.tpl query 69 in stream 6 select /* TPC-DS query21.tpl 0.14 */ * from(select w_warehouse_name ,i_item_id ,sum(case when (cast(d_date as date) < cast ('1999-06-20' as date)) then inv_quantity_on_hand else 0 end) as inv_before ,sum(case when (cast(d_date as date) >= cast ('1999-06-20' as date)) then inv_quantity_on_hand else 0 end) as inv_after from inventory ,warehouse ,item ,date_dim where i_current_price between 0.99 and 1.49 and i_item_sk = inv_item_sk and inv_warehouse_sk = w_warehouse_sk and inv_date_sk = d_date_sk and d_date between dateadd(day,-30,cast ('1999-06-20' as date)) and dateadd(day,30,cast ('1999-06-20' as date)) group by w_warehouse_name, i_item_id) x where (case when inv_before > 0 then inv_after / inv_before else null end) between 2.0/3.0 and 3.0/2.0 order by w_warehouse_name ,i_item_id limit 100; -- end template query21.tpl query 69 in stream 6 -- start template query46.tpl query 70 in stream 6 select /* TPC-DS query46.tpl 0.23 */ c_last_name ,c_first_name ,ca_city ,bought_city ,ss_ticket_number ,amt,profit from (select ss_ticket_number ,ss_customer_sk ,ca_city bought_city ,sum(ss_coupon_amt) amt ,sum(ss_net_profit) profit from store_sales,date_dim,store,household_demographics,customer_address where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and store_sales.ss_addr_sk = customer_address.ca_address_sk and (household_demographics.hd_dep_count = 5 or household_demographics.hd_vehicle_count= 4) and date_dim.d_dow in (6,0) and date_dim.d_year in (1998,1998+1,1998+2) and store.s_city in ('Oakland','Union','Spring Hill','Midway','Friendship') group by ss_ticket_number,ss_customer_sk,ss_addr_sk,ca_city) dn,customer,customer_address current_addr where ss_customer_sk = c_customer_sk and customer.c_current_addr_sk = current_addr.ca_address_sk and current_addr.ca_city <> bought_city order by c_last_name ,c_first_name ,ca_city ,bought_city ,ss_ticket_number limit 100; -- end template query46.tpl query 70 in stream 6 -- start template query83.tpl query 71 in stream 6 with /* TPC-DS query83.tpl 0.96 */ sr_items as (select i_item_id item_id, sum(sr_return_quantity) sr_item_qty from store_returns, item, date_dim where sr_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq in (select d_week_seq from date_dim where d_date in ('2001-04-29','2001-08-03','2001-11-11'))) and sr_returned_date_sk = d_date_sk group by i_item_id), cr_items as (select i_item_id item_id, sum(cr_return_quantity) cr_item_qty from catalog_returns, item, date_dim where cr_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq in (select d_week_seq from date_dim where d_date in ('2001-04-29','2001-08-03','2001-11-11'))) and cr_returned_date_sk = d_date_sk group by i_item_id), wr_items as (select i_item_id item_id, sum(wr_return_quantity) wr_item_qty from web_returns, item, date_dim where wr_item_sk = i_item_sk and d_date in (select d_date from date_dim where d_week_seq in (select d_week_seq from date_dim where d_date in ('2001-04-29','2001-08-03','2001-11-11'))) and wr_returned_date_sk = d_date_sk group by i_item_id) select sr_items.item_id ,sr_item_qty ,sr_item_qty/(sr_item_qty+cr_item_qty+wr_item_qty)/3.0 * 100 sr_dev ,cr_item_qty ,cr_item_qty/(sr_item_qty+cr_item_qty+wr_item_qty)/3.0 * 100 cr_dev ,wr_item_qty ,wr_item_qty/(sr_item_qty+cr_item_qty+wr_item_qty)/3.0 * 100 wr_dev ,(sr_item_qty+cr_item_qty+wr_item_qty)/3.0 average from sr_items ,cr_items ,wr_items where sr_items.item_id=cr_items.item_id and sr_items.item_id=wr_items.item_id order by sr_items.item_id ,sr_item_qty limit 100; -- end template query83.tpl query 71 in stream 6 -- start template query96.tpl query 72 in stream 6 select /* TPC-DS query96.tpl 0.1 */ count(*) from store_sales ,household_demographics ,time_dim, store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_sk and ss_store_sk = s_store_sk and time_dim.t_hour = 20 and time_dim.t_minute >= 30 and household_demographics.hd_dep_count = 0 and store.s_store_name = 'ese' order by count(*) limit 100; -- end template query96.tpl query 72 in stream 6 -- start template query68.tpl query 73 in stream 6 select /* TPC-DS query68.tpl 0.95 */ c_last_name ,c_first_name ,ca_city ,bought_city ,ss_ticket_number ,extended_price ,extended_tax ,list_price from (select ss_ticket_number ,ss_customer_sk ,ca_city bought_city ,sum(ss_ext_sales_price) extended_price ,sum(ss_ext_list_price) list_price ,sum(ss_ext_tax) extended_tax from store_sales ,date_dim ,store ,household_demographics ,customer_address where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk and store_sales.ss_addr_sk = customer_address.ca_address_sk and date_dim.d_dom between 1 and 2 and (household_demographics.hd_dep_count = 2 or household_demographics.hd_vehicle_count= 2) and date_dim.d_year in (1999,1999+1,1999+2) and store.s_city in ('Salem','Woodland') group by ss_ticket_number ,ss_customer_sk ,ss_addr_sk,ca_city) dn ,customer ,customer_address current_addr where ss_customer_sk = c_customer_sk and customer.c_current_addr_sk = current_addr.ca_address_sk and current_addr.ca_city <> bought_city order by c_last_name ,ss_ticket_number limit 100; -- end template query68.tpl query 73 in stream 6 -- start template query63.tpl query 74 in stream 6 select /* TPC-DS query63.tpl 0.27 */ * from (select i_manager_id ,sum(ss_sales_price) sum_sales ,avg(sum(ss_sales_price)) over (partition by i_manager_id) avg_monthly_sales from item ,store_sales ,date_dim ,store where ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and ss_store_sk = s_store_sk and d_month_seq in (1178,1178+1,1178+2,1178+3,1178+4,1178+5,1178+6,1178+7,1178+8,1178+9,1178+10,1178+11) and (( i_category in ('Books','Children','Electronics') and i_class in ('personal','portable','reference','self-help') and i_brand in ('scholaramalgamalg #14','scholaramalgamalg #7', 'exportiunivamalg #9','scholaramalgamalg #9')) or( i_category in ('Women','Music','Men') and i_class in ('accessories','classical','fragrances','pants') and i_brand in ('amalgimporto #1','edu packscholar #1','exportiimporto #1', 'importoamalg #1'))) group by i_manager_id, d_moy) tmp1 where case when avg_monthly_sales > 0 then abs (sum_sales - avg_monthly_sales) / avg_monthly_sales else null end > 0.1 order by i_manager_id ,avg_monthly_sales ,sum_sales limit 100; -- end template query63.tpl query 74 in stream 6 -- start template query92.tpl query 75 in stream 6 select /* TPC-DS query92.tpl 0.44 */ sum(ws_ext_discount_amt) as "Excess Discount Amount" from web_sales ,item ,date_dim where i_manufact_id = 322 and i_item_sk = ws_item_sk and d_date between '2000-02-06' and dateadd(day,90,cast('2000-02-06' as date)) and d_date_sk = ws_sold_date_sk and ws_ext_discount_amt > ( SELECT 1.3 * avg(ws_ext_discount_amt) FROM web_sales ,date_dim WHERE ws_item_sk = i_item_sk and d_date between '2000-02-06' and dateadd(day,90,cast('2000-02-06' as date)) and d_date_sk = ws_sold_date_sk ) order by sum(ws_ext_discount_amt) limit 100; -- end template query92.tpl query 75 in stream 6 -- start template query27a.tpl query 76 in stream 6 with /* TPC-DS query27a.tpl 0.16 */ results as (select i_item_id, s_state, 0 as g_state, ss_quantity agg1, ss_list_price agg2, ss_coupon_amt agg3, ss_sales_price agg4 from store_sales, customer_demographics, date_dim, store, item where ss_sold_date_sk = d_date_sk and ss_item_sk = i_item_sk and ss_store_sk = s_store_sk and ss_cdemo_sk = cd_demo_sk and cd_gender = 'F' and cd_marital_status = 'M' and cd_education_status = 'Primary' and d_year = 2001 and s_state in ('NC','GA', 'MI', 'MI', 'NM', 'NE') ) select i_item_id, s_state, g_state, agg1, agg2, agg3, agg4 from ( select i_item_id, s_state, 0 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id, s_state union all select i_item_id, NULL AS s_state, 1 AS g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results group by i_item_id union all select NULL AS i_item_id, NULL as s_state, 1 as g_state, avg(agg1) agg1, avg(agg2) agg2, avg(agg3) agg3, avg(agg4) agg4 from results ) foo order by i_item_id, s_state limit 100; -- end template query27a.tpl query 76 in stream 6 -- start template query12.tpl query 77 in stream 6 select /* TPC-DS query12.tpl 0.64 */ i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price ,sum(ws_ext_sales_price) as itemrevenue ,sum(ws_ext_sales_price)*100/sum(sum(ws_ext_sales_price)) over (partition by i_class) as revenueratio from web_sales ,item ,date_dim where ws_item_sk = i_item_sk and i_category in ('Shoes', 'Electronics', 'Sports') and ws_sold_date_sk = d_date_sk and d_date between cast('2000-03-13' as date) and dateadd(day,30,cast('2000-03-13' as date)) group by i_item_id ,i_item_desc ,i_category ,i_class ,i_current_price order by i_category ,i_class ,i_item_id ,i_item_desc ,revenueratio limit 100; -- end template query12.tpl query 77 in stream 6 -- start template query64.tpl query 78 in stream 6 with /* TPC-DS query64.tpl 0.20 */ cs_ui as (select cs_item_sk ,sum(cs_ext_list_price) as sale,sum(cr_refunded_cash+cr_reversed_charge+cr_store_credit) as refund from catalog_sales ,catalog_returns where cs_item_sk = cr_item_sk and cs_order_number = cr_order_number group by cs_item_sk having sum(cs_ext_list_price)>2*sum(cr_refunded_cash+cr_reversed_charge+cr_store_credit)), cross_sales as (select i_product_name product_name ,i_item_sk item_sk ,s_store_name store_name ,s_zip store_zip ,ad1.ca_street_number b_street_number ,ad1.ca_street_name b_street_name ,ad1.ca_city b_city ,ad1.ca_zip b_zip ,ad2.ca_street_number c_street_number ,ad2.ca_street_name c_street_name ,ad2.ca_city c_city ,ad2.ca_zip c_zip ,d1.d_year as syear ,d2.d_year as fsyear ,d3.d_year s2year ,count(*) cnt ,sum(ss_wholesale_cost) s1 ,sum(ss_list_price) s2 ,sum(ss_coupon_amt) s3 FROM store_sales ,store_returns ,cs_ui ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,customer ,customer_demographics cd1 ,customer_demographics cd2 ,promotion ,household_demographics hd1 ,household_demographics hd2 ,customer_address ad1 ,customer_address ad2 ,income_band ib1 ,income_band ib2 ,item WHERE ss_store_sk = s_store_sk AND ss_sold_date_sk = d1.d_date_sk AND ss_customer_sk = c_customer_sk AND ss_cdemo_sk= cd1.cd_demo_sk AND ss_hdemo_sk = hd1.hd_demo_sk AND ss_addr_sk = ad1.ca_address_sk and ss_item_sk = i_item_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and ss_item_sk = cs_ui.cs_item_sk and c_current_cdemo_sk = cd2.cd_demo_sk AND c_current_hdemo_sk = hd2.hd_demo_sk AND c_current_addr_sk = ad2.ca_address_sk and c_first_sales_date_sk = d2.d_date_sk and c_first_shipto_date_sk = d3.d_date_sk and ss_promo_sk = p_promo_sk and hd1.hd_income_band_sk = ib1.ib_income_band_sk and hd2.hd_income_band_sk = ib2.ib_income_band_sk and cd1.cd_marital_status <> cd2.cd_marital_status and i_color in ('beige','medium','ivory','powder','almond','papaya') and i_current_price between 20 and 20 + 10 and i_current_price between 20 + 1 and 20 + 15 group by i_product_name ,i_item_sk ,s_store_name ,s_zip ,ad1.ca_street_number ,ad1.ca_street_name ,ad1.ca_city ,ad1.ca_zip ,ad2.ca_street_number ,ad2.ca_street_name ,ad2.ca_city ,ad2.ca_zip ,d1.d_year ,d2.d_year ,d3.d_year ) select cs1.product_name ,cs1.store_name ,cs1.store_zip ,cs1.b_street_number ,cs1.b_street_name ,cs1.b_city ,cs1.b_zip ,cs1.c_street_number ,cs1.c_street_name ,cs1.c_city ,cs1.c_zip ,cs1.syear ,cs1.cnt ,cs1.s1 as s11 ,cs1.s2 as s21 ,cs1.s3 as s31 ,cs2.s1 as s12 ,cs2.s2 as s22 ,cs2.s3 as s32 ,cs2.syear ,cs2.cnt from cross_sales cs1,cross_sales cs2 where cs1.item_sk=cs2.item_sk and cs1.syear = 2001 and cs2.syear = 2001 + 1 and cs2.cnt <= cs1.cnt and cs1.store_name = cs2.store_name and cs1.store_zip = cs2.store_zip order by cs1.product_name ,cs1.store_name ,cs2.cnt ,cs1.s1 ,cs2.s1; -- end template query64.tpl query 78 in stream 6 -- start template query95.tpl query 79 in stream 6 with /* TPC-DS query95.tpl 0.43 */ ws_wh as (select ws1.ws_order_number,ws1.ws_warehouse_sk wh1,ws2.ws_warehouse_sk wh2 from web_sales ws1,web_sales ws2 where ws1.ws_order_number = ws2.ws_order_number and ws1.ws_warehouse_sk <> ws2.ws_warehouse_sk) select count(distinct ws_order_number) as "order count" ,sum(ws_ext_ship_cost) as "total shipping cost" ,sum(ws_net_profit) as "total net profit" from web_sales ws1 ,date_dim ,customer_address ,web_site where d_date between '2002-3-01' and dateadd(day,60,cast('2002-3-01' as date)) and ws1.ws_ship_date_sk = d_date_sk and ws1.ws_ship_addr_sk = ca_address_sk and ca_state = 'KS' and ws1.ws_web_site_sk = web_site_sk and web_company_name = 'pri' and ws1.ws_order_number in (select ws_order_number from ws_wh) and ws1.ws_order_number in (select wr_order_number from web_returns,ws_wh where wr_order_number = ws_wh.ws_order_number) order by count(distinct ws_order_number) limit 100; -- end template query95.tpl query 79 in stream 6 -- start template query39.tpl query 80 in stream 6 with /* TPC-DS query39.tpl 0.5 */ inv as (select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stdev,mean, case mean when 0 then null else stdev/mean end cov from(select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stddev_samp(inv_quantity_on_hand) stdev,avg(inv_quantity_on_hand) mean from inventory ,item ,warehouse ,date_dim where inv_item_sk = i_item_sk and inv_warehouse_sk = w_warehouse_sk and inv_date_sk = d_date_sk and d_year =2002 group by w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy) foo where case mean when 0 then 0 else stdev/mean end > 1) select inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean, inv1.cov ,inv2.w_warehouse_sk,inv2.i_item_sk,inv2.d_moy,inv2.mean, inv2.cov from inv inv1,inv inv2 where inv1.i_item_sk = inv2.i_item_sk and inv1.w_warehouse_sk = inv2.w_warehouse_sk and inv1.d_moy=3 and inv2.d_moy=3+1 order by inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean,inv1.cov ,inv2.d_moy,inv2.mean, inv2.cov ; with /* TPC-DS query39.tpl 0.5 part2 */ inv as (select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stdev,mean, case mean when 0 then null else stdev/mean end cov from(select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stddev_samp(inv_quantity_on_hand) stdev,avg(inv_quantity_on_hand) mean from inventory ,item ,warehouse ,date_dim where inv_item_sk = i_item_sk and inv_warehouse_sk = w_warehouse_sk and inv_date_sk = d_date_sk and d_year =2002 group by w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy) foo where case mean when 0 then 0 else stdev/mean end > 1) select inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean, inv1.cov ,inv2.w_warehouse_sk,inv2.i_item_sk,inv2.d_moy,inv2.mean, inv2.cov from inv inv1,inv inv2 where inv1.i_item_sk = inv2.i_item_sk and inv1.w_warehouse_sk = inv2.w_warehouse_sk and inv1.d_moy=3 and inv2.d_moy=3+1 and inv1.cov > 1.5 order by inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean,inv1.cov ,inv2.d_moy,inv2.mean, inv2.cov ; -- end template query39.tpl query 80 in stream 6 -- start template query35a.tpl query 81 in stream 6 select /* TPC-DS query35a.tpl 0.47 */ ca_state, cd_gender, cd_marital_status, cd_dep_count, count(*) cnt1, stddev_samp(cd_dep_count), stddev_samp(cd_dep_count), max(cd_dep_count), cd_dep_employed_count, count(*) cnt2, stddev_samp(cd_dep_employed_count), stddev_samp(cd_dep_employed_count), max(cd_dep_employed_count), cd_dep_college_count, count(*) cnt3, stddev_samp(cd_dep_college_count), stddev_samp(cd_dep_college_count), max(cd_dep_college_count) from customer c,customer_address ca,customer_demographics where c.c_current_addr_sk = ca.ca_address_sk and cd_demo_sk = c.c_current_cdemo_sk and exists (select * from store_sales,date_dim where c.c_customer_sk = ss_customer_sk and ss_sold_date_sk = d_date_sk and d_year = 2002 and d_qoy < 4) and exists (select * from (select ws_bill_customer_sk customsk from web_sales,date_dim where ws_sold_date_sk = d_date_sk and d_year = 2002 and d_qoy < 4 union all select cs_ship_customer_sk customsk from catalog_sales,date_dim where cs_sold_date_sk = d_date_sk and d_year = 2002 and d_qoy < 4)x where x.customsk = c.c_customer_sk) group by ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count order by ca_state, cd_gender, cd_marital_status, cd_dep_count, cd_dep_employed_count, cd_dep_college_count limit 100; -- end template query35a.tpl query 81 in stream 6 -- start template query78.tpl query 82 in stream 6 with /* TPC-DS query78.tpl 0.10 */ ws as (select d_year AS ws_sold_year, ws_item_sk, ws_bill_customer_sk ws_customer_sk, sum(ws_quantity) ws_qty, sum(ws_wholesale_cost) ws_wc, sum(ws_sales_price) ws_sp from web_sales left join web_returns on wr_order_number=ws_order_number and ws_item_sk=wr_item_sk join date_dim on ws_sold_date_sk = d_date_sk where wr_order_number is null group by d_year, ws_item_sk, ws_bill_customer_sk ), cs as (select d_year AS cs_sold_year, cs_item_sk, cs_bill_customer_sk cs_customer_sk, sum(cs_quantity) cs_qty, sum(cs_wholesale_cost) cs_wc, sum(cs_sales_price) cs_sp from catalog_sales left join catalog_returns on cr_order_number=cs_order_number and cs_item_sk=cr_item_sk join date_dim on cs_sold_date_sk = d_date_sk where cr_order_number is null group by d_year, cs_item_sk, cs_bill_customer_sk ), ss as (select d_year AS ss_sold_year, ss_item_sk, ss_customer_sk, sum(ss_quantity) ss_qty, sum(ss_wholesale_cost) ss_wc, sum(ss_sales_price) ss_sp from store_sales left join store_returns on sr_ticket_number=ss_ticket_number and ss_item_sk=sr_item_sk join date_dim on ss_sold_date_sk = d_date_sk where sr_ticket_number is null group by d_year, ss_item_sk, ss_customer_sk ) select ss_sold_year, ss_item_sk, ss_customer_sk, round(ss_qty/(coalesce(ws_qty,0)+coalesce(cs_qty,0)),2) ratio, ss_qty store_qty, ss_wc store_wholesale_cost, ss_sp store_sales_price, coalesce(ws_qty,0)+coalesce(cs_qty,0) other_chan_qty, coalesce(ws_wc,0)+coalesce(cs_wc,0) other_chan_wholesale_cost, coalesce(ws_sp,0)+coalesce(cs_sp,0) other_chan_sales_price from ss left join ws on (ws_sold_year=ss_sold_year and ws_item_sk=ss_item_sk and ws_customer_sk=ss_customer_sk) left join cs on (cs_sold_year=ss_sold_year and cs_item_sk=ss_item_sk and cs_customer_sk=ss_customer_sk) where (coalesce(ws_qty,0)>0 or coalesce(cs_qty, 0)>0) and ss_sold_year=1998 order by ss_sold_year, ss_item_sk, ss_customer_sk, ss_qty desc, ss_wc desc, ss_sp desc, other_chan_qty, other_chan_wholesale_cost, other_chan_sales_price, ratio limit 100; -- end template query78.tpl query 82 in stream 6 -- start template query57.tpl query 83 in stream 6 with /* TPC-DS query57.tpl 0.70 */ v1 as( select i_category, i_brand, cc_name, d_year, d_moy, sum(cs_sales_price) sum_sales, avg(sum(cs_sales_price)) over (partition by i_category, i_brand, cc_name, d_year) avg_monthly_sales, rank() over (partition by i_category, i_brand, cc_name order by d_year, d_moy) rn from item, catalog_sales, date_dim, call_center where cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and cc_call_center_sk= cs_call_center_sk and ( d_year = 1999 or ( d_year = 1999-1 and d_moy =12) or ( d_year = 1999+1 and d_moy =1) ) group by i_category, i_brand, cc_name , d_year, d_moy), v2 as( select v1.i_category ,v1.d_year, v1.d_moy ,v1.avg_monthly_sales ,v1.sum_sales, v1_lag.sum_sales psum, v1_lead.sum_sales nsum from v1, v1 v1_lag, v1 v1_lead where v1.i_category = v1_lag.i_category and v1.i_category = v1_lead.i_category and v1.i_brand = v1_lag.i_brand and v1.i_brand = v1_lead.i_brand and v1. cc_name = v1_lag. cc_name and v1. cc_name = v1_lead. cc_name and v1.rn = v1_lag.rn + 1 and v1.rn = v1_lead.rn - 1) select * from v2 where d_year = 1999 and avg_monthly_sales > 0 and case when avg_monthly_sales > 0 then abs(sum_sales - avg_monthly_sales) / avg_monthly_sales else null end > 0.1 order by sum_sales - avg_monthly_sales, psum limit 100; -- end template query57.tpl query 83 in stream 6 -- start template query66.tpl query 84 in stream 6 select /* TPC-DS query66.tpl 0.39 */ w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,ship_carriers ,year ,sum(jan_sales) as jan_sales ,sum(feb_sales) as feb_sales ,sum(mar_sales) as mar_sales ,sum(apr_sales) as apr_sales ,sum(may_sales) as may_sales ,sum(jun_sales) as jun_sales ,sum(jul_sales) as jul_sales ,sum(aug_sales) as aug_sales ,sum(sep_sales) as sep_sales ,sum(oct_sales) as oct_sales ,sum(nov_sales) as nov_sales ,sum(dec_sales) as dec_sales ,sum(jan_sales/w_warehouse_sq_ft) as jan_sales_per_sq_foot ,sum(feb_sales/w_warehouse_sq_ft) as feb_sales_per_sq_foot ,sum(mar_sales/w_warehouse_sq_ft) as mar_sales_per_sq_foot ,sum(apr_sales/w_warehouse_sq_ft) as apr_sales_per_sq_foot ,sum(may_sales/w_warehouse_sq_ft) as may_sales_per_sq_foot ,sum(jun_sales/w_warehouse_sq_ft) as jun_sales_per_sq_foot ,sum(jul_sales/w_warehouse_sq_ft) as jul_sales_per_sq_foot ,sum(aug_sales/w_warehouse_sq_ft) as aug_sales_per_sq_foot ,sum(sep_sales/w_warehouse_sq_ft) as sep_sales_per_sq_foot ,sum(oct_sales/w_warehouse_sq_ft) as oct_sales_per_sq_foot ,sum(nov_sales/w_warehouse_sq_ft) as nov_sales_per_sq_foot ,sum(dec_sales/w_warehouse_sq_ft) as dec_sales_per_sq_foot ,sum(jan_net) as jan_net ,sum(feb_net) as feb_net ,sum(mar_net) as mar_net ,sum(apr_net) as apr_net ,sum(may_net) as may_net ,sum(jun_net) as jun_net ,sum(jul_net) as jul_net ,sum(aug_net) as aug_net ,sum(sep_net) as sep_net ,sum(oct_net) as oct_net ,sum(nov_net) as nov_net ,sum(dec_net) as dec_net from ( select w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,'AIRBORNE' || ',' || 'ALLIANCE' as ship_carriers ,d_year as year ,sum(case when d_moy = 1 then ws_ext_sales_price* ws_quantity else 0 end) as jan_sales ,sum(case when d_moy = 2 then ws_ext_sales_price* ws_quantity else 0 end) as feb_sales ,sum(case when d_moy = 3 then ws_ext_sales_price* ws_quantity else 0 end) as mar_sales ,sum(case when d_moy = 4 then ws_ext_sales_price* ws_quantity else 0 end) as apr_sales ,sum(case when d_moy = 5 then ws_ext_sales_price* ws_quantity else 0 end) as may_sales ,sum(case when d_moy = 6 then ws_ext_sales_price* ws_quantity else 0 end) as jun_sales ,sum(case when d_moy = 7 then ws_ext_sales_price* ws_quantity else 0 end) as jul_sales ,sum(case when d_moy = 8 then ws_ext_sales_price* ws_quantity else 0 end) as aug_sales ,sum(case when d_moy = 9 then ws_ext_sales_price* ws_quantity else 0 end) as sep_sales ,sum(case when d_moy = 10 then ws_ext_sales_price* ws_quantity else 0 end) as oct_sales ,sum(case when d_moy = 11 then ws_ext_sales_price* ws_quantity else 0 end) as nov_sales ,sum(case when d_moy = 12 then ws_ext_sales_price* ws_quantity else 0 end) as dec_sales ,sum(case when d_moy = 1 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as jan_net ,sum(case when d_moy = 2 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as feb_net ,sum(case when d_moy = 3 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as mar_net ,sum(case when d_moy = 4 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as apr_net ,sum(case when d_moy = 5 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as may_net ,sum(case when d_moy = 6 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as jun_net ,sum(case when d_moy = 7 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as jul_net ,sum(case when d_moy = 8 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as aug_net ,sum(case when d_moy = 9 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as sep_net ,sum(case when d_moy = 10 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as oct_net ,sum(case when d_moy = 11 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as nov_net ,sum(case when d_moy = 12 then ws_net_paid_inc_ship_tax * ws_quantity else 0 end) as dec_net from web_sales ,warehouse ,date_dim ,time_dim ,ship_mode where ws_warehouse_sk = w_warehouse_sk and ws_sold_date_sk = d_date_sk and ws_sold_time_sk = t_time_sk and ws_ship_mode_sk = sm_ship_mode_sk and d_year = 2000 and t_time between 26880 and 26880+28800 and sm_carrier in ('AIRBORNE','ALLIANCE') group by w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,d_year union all select w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,'AIRBORNE' || ',' || 'ALLIANCE' as ship_carriers ,d_year as year ,sum(case when d_moy = 1 then cs_ext_list_price* cs_quantity else 0 end) as jan_sales ,sum(case when d_moy = 2 then cs_ext_list_price* cs_quantity else 0 end) as feb_sales ,sum(case when d_moy = 3 then cs_ext_list_price* cs_quantity else 0 end) as mar_sales ,sum(case when d_moy = 4 then cs_ext_list_price* cs_quantity else 0 end) as apr_sales ,sum(case when d_moy = 5 then cs_ext_list_price* cs_quantity else 0 end) as may_sales ,sum(case when d_moy = 6 then cs_ext_list_price* cs_quantity else 0 end) as jun_sales ,sum(case when d_moy = 7 then cs_ext_list_price* cs_quantity else 0 end) as jul_sales ,sum(case when d_moy = 8 then cs_ext_list_price* cs_quantity else 0 end) as aug_sales ,sum(case when d_moy = 9 then cs_ext_list_price* cs_quantity else 0 end) as sep_sales ,sum(case when d_moy = 10 then cs_ext_list_price* cs_quantity else 0 end) as oct_sales ,sum(case when d_moy = 11 then cs_ext_list_price* cs_quantity else 0 end) as nov_sales ,sum(case when d_moy = 12 then cs_ext_list_price* cs_quantity else 0 end) as dec_sales ,sum(case when d_moy = 1 then cs_net_profit * cs_quantity else 0 end) as jan_net ,sum(case when d_moy = 2 then cs_net_profit * cs_quantity else 0 end) as feb_net ,sum(case when d_moy = 3 then cs_net_profit * cs_quantity else 0 end) as mar_net ,sum(case when d_moy = 4 then cs_net_profit * cs_quantity else 0 end) as apr_net ,sum(case when d_moy = 5 then cs_net_profit * cs_quantity else 0 end) as may_net ,sum(case when d_moy = 6 then cs_net_profit * cs_quantity else 0 end) as jun_net ,sum(case when d_moy = 7 then cs_net_profit * cs_quantity else 0 end) as jul_net ,sum(case when d_moy = 8 then cs_net_profit * cs_quantity else 0 end) as aug_net ,sum(case when d_moy = 9 then cs_net_profit * cs_quantity else 0 end) as sep_net ,sum(case when d_moy = 10 then cs_net_profit * cs_quantity else 0 end) as oct_net ,sum(case when d_moy = 11 then cs_net_profit * cs_quantity else 0 end) as nov_net ,sum(case when d_moy = 12 then cs_net_profit * cs_quantity else 0 end) as dec_net from catalog_sales ,warehouse ,date_dim ,time_dim ,ship_mode where cs_warehouse_sk = w_warehouse_sk and cs_sold_date_sk = d_date_sk and cs_sold_time_sk = t_time_sk and cs_ship_mode_sk = sm_ship_mode_sk and d_year = 2000 and t_time between 26880 AND 26880+28800 and sm_carrier in ('AIRBORNE','ALLIANCE') group by w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,d_year ) x group by w_warehouse_name ,w_warehouse_sq_ft ,w_city ,w_county ,w_state ,w_country ,ship_carriers ,year order by w_warehouse_name limit 100; -- end template query66.tpl query 84 in stream 6 -- start template query71.tpl query 85 in stream 6 select /* TPC-DS query71.tpl 0.72 */ i_brand_id brand_id, i_brand brand,t_hour,t_minute, sum(ext_price) ext_price from item, (select ws_ext_sales_price as ext_price, ws_sold_date_sk as sold_date_sk, ws_item_sk as sold_item_sk, ws_sold_time_sk as time_sk from web_sales,date_dim where d_date_sk = ws_sold_date_sk and d_moy=11 and d_year=2002 union all select cs_ext_sales_price as ext_price, cs_sold_date_sk as sold_date_sk, cs_item_sk as sold_item_sk, cs_sold_time_sk as time_sk from catalog_sales,date_dim where d_date_sk = cs_sold_date_sk and d_moy=11 and d_year=2002 union all select ss_ext_sales_price as ext_price, ss_sold_date_sk as sold_date_sk, ss_item_sk as sold_item_sk, ss_sold_time_sk as time_sk from store_sales,date_dim where d_date_sk = ss_sold_date_sk and d_moy=11 and d_year=2002 ) tmp,time_dim where sold_item_sk = i_item_sk and i_manager_id=1 and time_sk = t_time_sk and (t_meal_time = 'breakfast' or t_meal_time = 'dinner') group by i_brand, i_brand_id,t_hour,t_minute order by ext_price desc, i_brand_id ; -- end template query71.tpl query 85 in stream 6 -- start template query30.tpl query 86 in stream 6 with /* TPC-DS query30.tpl 0.75 */ customer_total_return as (select wr_returning_customer_sk as ctr_customer_sk ,ca_state as ctr_state, sum(wr_return_amt) as ctr_total_return from web_returns ,date_dim ,customer_address where wr_returned_date_sk = d_date_sk and d_year =1999 and wr_returning_addr_sk = ca_address_sk group by wr_returning_customer_sk ,ca_state) select c_customer_id,c_salutation,c_first_name,c_last_name,c_preferred_cust_flag ,c_birth_day,c_birth_month,c_birth_year,c_birth_country,c_login,c_email_address ,c_last_review_date_sk,ctr_total_return from customer_total_return ctr1 ,customer_address ,customer where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2 from customer_total_return ctr2 where ctr1.ctr_state = ctr2.ctr_state) and ca_address_sk = c_current_addr_sk and ca_state = 'SD' and ctr1.ctr_customer_sk = c_customer_sk order by c_customer_id,c_salutation,c_first_name,c_last_name,c_preferred_cust_flag ,c_birth_day,c_birth_month,c_birth_year,c_birth_country,c_login,c_email_address ,c_last_review_date_sk,ctr_total_return limit 100; -- end template query30.tpl query 86 in stream 6 -- start template query1.tpl query 87 in stream 6 with /* TPC-DS query1.tpl 0.12 */ customer_total_return as (select sr_customer_sk as ctr_customer_sk ,sr_store_sk as ctr_store_sk ,sum(SR_FEE) as ctr_total_return from store_returns ,date_dim where sr_returned_date_sk = d_date_sk and d_year =2000 group by sr_customer_sk ,sr_store_sk) select c_customer_id from customer_total_return ctr1 ,store ,customer where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2 from customer_total_return ctr2 where ctr1.ctr_store_sk = ctr2.ctr_store_sk) and s_store_sk = ctr1.ctr_store_sk and s_state = 'IN' and ctr1.ctr_customer_sk = c_customer_sk order by c_customer_id limit 100; -- end template query1.tpl query 87 in stream 6 -- start template query81.tpl query 88 in stream 6 with /* TPC-DS query81.tpl 0.37 */ customer_total_return as (select cr_returning_customer_sk as ctr_customer_sk ,ca_state as ctr_state, sum(cr_return_amt_inc_tax) as ctr_total_return from catalog_returns ,date_dim ,customer_address where cr_returned_date_sk = d_date_sk and d_year =2000 and cr_returning_addr_sk = ca_address_sk group by cr_returning_customer_sk ,ca_state ) select c_customer_id,c_salutation,c_first_name,c_last_name,ca_street_number,ca_street_name ,ca_street_type,ca_suite_number,ca_city,ca_county,ca_state,ca_zip,ca_country,ca_gmt_offset ,ca_location_type,ctr_total_return from customer_total_return ctr1 ,customer_address ,customer where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2 from customer_total_return ctr2 where ctr1.ctr_state = ctr2.ctr_state) and ca_address_sk = c_current_addr_sk and ca_state = 'SC' and ctr1.ctr_customer_sk = c_customer_sk order by c_customer_id,c_salutation,c_first_name,c_last_name,ca_street_number,ca_street_name ,ca_street_type,ca_suite_number,ca_city,ca_county,ca_state,ca_zip,ca_country,ca_gmt_offset ,ca_location_type,ctr_total_return limit 100; -- end template query81.tpl query 88 in stream 6 -- start template query43.tpl query 89 in stream 6 select /* TPC-DS query43.tpl 0.15 */ s_store_name, s_store_id, sum(case when (d_day_name='Sunday') then ss_sales_price else null end) sun_sales, sum(case when (d_day_name='Monday') then ss_sales_price else null end) mon_sales, sum(case when (d_day_name='Tuesday') then ss_sales_price else null end) tue_sales, sum(case when (d_day_name='Wednesday') then ss_sales_price else null end) wed_sales, sum(case when (d_day_name='Thursday') then ss_sales_price else null end) thu_sales, sum(case when (d_day_name='Friday') then ss_sales_price else null end) fri_sales, sum(case when (d_day_name='Saturday') then ss_sales_price else null end) sat_sales from date_dim, store_sales, store where d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk and s_gmt_offset = -7 and d_year = 2001 group by s_store_name, s_store_id order by s_store_name, s_store_id,sun_sales,mon_sales,tue_sales,wed_sales,thu_sales,fri_sales,sat_sales limit 100; -- end template query43.tpl query 89 in stream 6 -- start template query52.tpl query 90 in stream 6 select /* TPC-DS query52.tpl 0.59 */ dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand ,sum(ss_ext_sales_price) ext_price from date_dim dt ,store_sales ,item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manager_id = 1 and dt.d_moy=12 and dt.d_year=1998 group by dt.d_year ,item.i_brand ,item.i_brand_id order by dt.d_year ,ext_price desc ,brand_id limit 100 ; -- end template query52.tpl query 90 in stream 6 -- start template query13.tpl query 91 in stream 6 select /* TPC-DS query13.tpl 0.91 */ avg(ss_quantity) ,avg(ss_ext_sales_price) ,avg(ss_ext_wholesale_cost) ,sum(ss_ext_wholesale_cost) from store_sales ,store ,customer_demographics ,household_demographics ,customer_address ,date_dim where s_store_sk = ss_store_sk and ss_sold_date_sk = d_date_sk and d_year = 2001 and((ss_hdemo_sk=hd_demo_sk and cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'W' and cd_education_status = 'Advanced Degree' and ss_sales_price between 100.00 and 150.00 and hd_dep_count = 3 )or (ss_hdemo_sk=hd_demo_sk and cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'S' and cd_education_status = '4 yr Degree' and ss_sales_price between 50.00 and 100.00 and hd_dep_count = 1 ) or (ss_hdemo_sk=hd_demo_sk and cd_demo_sk = ss_cdemo_sk and cd_marital_status = 'M' and cd_education_status = 'Unknown' and ss_sales_price between 150.00 and 200.00 and hd_dep_count = 1 )) and((ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('MO', 'TX', 'GA') and ss_net_profit between 100 and 200 ) or (ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('MI', 'NY', 'SD') and ss_net_profit between 150 and 300 ) or (ss_addr_sk = ca_address_sk and ca_country = 'United States' and ca_state in ('WV', 'FL', 'VA') and ss_net_profit between 50 and 250 )) ; -- end template query13.tpl query 91 in stream 6 -- start template query76.tpl query 92 in stream 6 select /* TPC-DS query76.tpl 0.99 */ channel, col_name, d_year, d_qoy, i_category, COUNT(*) sales_cnt, SUM(ext_sales_price) sales_amt FROM ( SELECT 'store' as channel, 'ss_addr_sk' col_name, d_year, d_qoy, i_category, ss_ext_sales_price ext_sales_price FROM store_sales, item, date_dim WHERE ss_addr_sk IS NULL AND ss_sold_date_sk=d_date_sk AND ss_item_sk=i_item_sk UNION ALL SELECT 'web' as channel, 'ws_ship_addr_sk' col_name, d_year, d_qoy, i_category, ws_ext_sales_price ext_sales_price FROM web_sales, item, date_dim WHERE ws_ship_addr_sk IS NULL AND ws_sold_date_sk=d_date_sk AND ws_item_sk=i_item_sk UNION ALL SELECT 'catalog' as channel, 'cs_ship_customer_sk' col_name, d_year, d_qoy, i_category, cs_ext_sales_price ext_sales_price FROM catalog_sales, item, date_dim WHERE cs_ship_customer_sk IS NULL AND cs_sold_date_sk=d_date_sk AND cs_item_sk=i_item_sk) foo GROUP BY channel, col_name, d_year, d_qoy, i_category ORDER BY channel, col_name, d_year, d_qoy, i_category limit 100; -- end template query76.tpl query 92 in stream 6 -- start template query17.tpl query 93 in stream 6 select /* TPC-DS query17.tpl 0.41 */ i_item_id ,i_item_desc ,s_state ,count(ss_quantity) as store_sales_quantitycount ,avg(ss_quantity) as store_sales_quantityave ,stddev_samp(ss_quantity) as store_sales_quantitystdev ,stddev_samp(ss_quantity)/avg(ss_quantity) as store_sales_quantitycov ,count(sr_return_quantity) as store_returns_quantitycount ,avg(sr_return_quantity) as store_returns_quantityave ,stddev_samp(sr_return_quantity) as store_returns_quantitystdev ,stddev_samp(sr_return_quantity)/avg(sr_return_quantity) as store_returns_quantitycov ,count(cs_quantity) as catalog_sales_quantitycount ,avg(cs_quantity) as catalog_sales_quantityave ,stddev_samp(cs_quantity) as catalog_sales_quantitystdev ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitycov from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_quarter_name = '2001Q1' and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_quarter_name in ('2001Q1','2001Q2','2001Q3') and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_quarter_name in ('2001Q1','2001Q2','2001Q3') group by i_item_id ,i_item_desc ,s_state order by i_item_id ,i_item_desc ,s_state limit 100; -- end template query17.tpl query 93 in stream 6 -- start template query25.tpl query 94 in stream 6 select /* TPC-DS query25.tpl 0.9 */ i_item_id ,i_item_desc ,s_store_id ,s_store_name ,sum(ss_net_profit) as store_sales_profit ,sum(sr_net_loss) as store_returns_loss ,sum(cs_net_profit) as catalog_sales_profit from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_moy = 4 and d1.d_year = 2000 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_moy between 4 and 10 and d2.d_year = 2000 and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_moy between 4 and 10 and d3.d_year = 2000 group by i_item_id ,i_item_desc ,s_store_id ,s_store_name order by i_item_id ,i_item_desc ,s_store_id ,s_store_name limit 100; -- end template query25.tpl query 94 in stream 6 -- start template query40.tpl query 95 in stream 6 select /* TPC-DS query40.tpl 0.86 */ w_state ,i_item_id ,sum(case when (cast(d_date as date) < cast ('2000-05-18' as date)) then cs_sales_price - coalesce(cr_refunded_cash,0) else 0 end) as sales_before ,sum(case when (cast(d_date as date) >= cast ('2000-05-18' as date)) then cs_sales_price - coalesce(cr_refunded_cash,0) else 0 end) as sales_after from catalog_sales left outer join catalog_returns on (cs_order_number = cr_order_number and cs_item_sk = cr_item_sk) ,warehouse ,item ,date_dim where i_current_price between 0.99 and 1.49 and i_item_sk = cs_item_sk and cs_warehouse_sk = w_warehouse_sk and cs_sold_date_sk = d_date_sk and d_date between dateadd(day,-30,cast ('2000-05-18' as date)) and dateadd(day,30,cast ('2000-05-18' as date)) group by w_state,i_item_id order by w_state,i_item_id limit 100; -- end template query40.tpl query 95 in stream 6 -- start template query70a.tpl query 96 in stream 6 with /* TPC-DS query70a.tpl 0.34 */ results as ( select sum(ss_net_profit) as total_sum ,s_state ,s_county, 0 as gstate, 0 as g_county from store_sales ,date_dim d1 ,store where d1.d_month_seq between 1218 and 1218 + 11 and d1.d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk and s_state in ( select s_state from (select s_state as s_state, rank() over ( partition by s_state order by sum(ss_net_profit) desc) as ranking from store_sales, store, date_dim where d_month_seq between 1218 and 1218 + 11 and d_date_sk = ss_sold_date_sk and s_store_sk = ss_store_sk group by s_state ) tmp1 where ranking <= 5) group by s_state,s_county) , results_rollup as (select total_sum ,s_state ,s_county, 0 as g_state, 0 as g_county, 0 as lochierarchy from results union select sum(total_sum) as total_sum,s_state, NULL as s_county, 0 as g_state, 1 as g_county, 1 as lochierarchy from results group by s_state union select sum(total_sum) as total_sum ,NULL as s_state ,NULL as s_county, 1 as g_state, 1 as g_county, 2 as lochierarchy from results) select total_sum ,s_state ,s_county, lochierarchy ,rank() over ( partition by lochierarchy, case when g_county = 0 then s_state end order by total_sum desc) as rank_within_parent from results_rollup order by lochierarchy desc ,case when lochierarchy = 0 then s_state end ,rank_within_parent limit 100; -- end template query70a.tpl query 96 in stream 6 -- start template query55.tpl query 97 in stream 6 select /* TPC-DS query55.tpl 0.82 */ i_brand_id brand_id, i_brand brand, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item where d_date_sk = ss_sold_date_sk and ss_item_sk = i_item_sk and i_manager_id=51 and d_moy=11 and d_year=2000 group by i_brand, i_brand_id order by ext_price desc, i_brand_id limit 100 ; -- end template query55.tpl query 97 in stream 6 -- start template query60.tpl query 98 in stream 6 with /* TPC-DS query60.tpl 0.29 */ ss as ( select i_item_id,sum(ss_ext_sales_price) total_sales from store_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_category in ('Children')) and ss_item_sk = i_item_sk and ss_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 10 and ss_addr_sk = ca_address_sk and ca_gmt_offset = -6 group by i_item_id), cs as ( select i_item_id,sum(cs_ext_sales_price) total_sales from catalog_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_category in ('Children')) and cs_item_sk = i_item_sk and cs_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 10 and cs_bill_addr_sk = ca_address_sk and ca_gmt_offset = -6 group by i_item_id), ws as ( select i_item_id,sum(ws_ext_sales_price) total_sales from web_sales, date_dim, customer_address, item where i_item_id in (select i_item_id from item where i_category in ('Children')) and ws_item_sk = i_item_sk and ws_sold_date_sk = d_date_sk and d_year = 2001 and d_moy = 10 and ws_bill_addr_sk = ca_address_sk and ca_gmt_offset = -6 group by i_item_id) select i_item_id ,sum(total_sales) total_sales from (select * from ss union all select * from cs union all select * from ws) tmp1 group by i_item_id order by i_item_id ,total_sales limit 100; -- end template query60.tpl query 98 in stream 6 -- start template query16.tpl query 99 in stream 6 select /* TPC-DS query16.tpl 0.25 */ count(distinct cs_order_number) as "order count" ,sum(cs_ext_ship_cost) as "total shipping cost" ,sum(cs_net_profit) as "total net profit" from catalog_sales cs1 ,date_dim ,customer_address ,call_center where d_date between '2002-2-01' and dateadd(day, 60, cast('2002-2-01' as date)) and cs1.cs_ship_date_sk = d_date_sk and cs1.cs_ship_addr_sk = ca_address_sk and ca_state = 'MO' and cs1.cs_call_center_sk = cc_call_center_sk and cc_county in ('Walker County','Mobile County','Barrow County','Dauphin County', 'Levy County' ) and exists (select * from catalog_sales cs2 where cs1.cs_order_number = cs2.cs_order_number and cs1.cs_warehouse_sk <> cs2.cs_warehouse_sk) and not exists(select * from catalog_returns cr1 where cs1.cs_order_number = cr1.cr_order_number) order by count(distinct cs_order_number) limit 100; -- end template query16.tpl query 99 in stream 6
the_stack
-- 2017-10-14T13:37:48.391 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540800,540521,TO_TIMESTAMP('2017-10-14 13:37:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',30,TO_TIMESTAMP('2017-10-14 13:37:48','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit') ; -- 2017-10-14T13:37:48.399 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540521 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-10-14T13:37:58.644 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540695,540521,TO_TIMESTAMP('2017-10-14 13:37:58','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-10-14 13:37:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:38:11.656 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540695,541211,TO_TIMESTAMP('2017-10-14 13:38:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,'primary',TO_TIMESTAMP('2017-10-14 13:38:11','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:38:32.477 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,558085,0,540800,541211,549087,'F',TO_TIMESTAMP('2017-10-14 13:38:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Wöchentlich',10,0,0,TO_TIMESTAMP('2017-10-14 13:38:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:38:50.599 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,558086,0,540800,541211,549088,'F',TO_TIMESTAMP('2017-10-14 13:38:50','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Jede Woche',20,0,0,TO_TIMESTAMP('2017-10-14 13:38:50','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:39:01.707 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,558101,0,540800,541211,549089,'F',TO_TIMESTAMP('2017-10-14 13:39:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Monatlich',30,0,0,TO_TIMESTAMP('2017-10-14 13:39:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:39:32.022 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,558102,0,540800,541211,549090,'F',TO_TIMESTAMP('2017-10-14 13:39:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Jeden Monat',40,0,0,TO_TIMESTAMP('2017-10-14 13:39:31','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T13:42:41.949 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540263, SeqNo=90,Updated=TO_TIMESTAMP('2017-10-14 13:42:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549087 ; -- 2017-10-14T13:43:02.146 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540263, SeqNo=100,Updated=TO_TIMESTAMP('2017-10-14 13:43:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549088 ; -- 2017-10-14T13:54:08.587 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540264, SeqNo=90,Updated=TO_TIMESTAMP('2017-10-14 13:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549089 ; -- 2017-10-14T13:54:17.194 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540264, SeqNo=100,Updated=TO_TIMESTAMP('2017-10-14 13:54:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ; -- 2017-10-14T13:54:22.386 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=541211 ; -- 2017-10-14T13:54:26.185 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=540695 ; -- 2017-10-14T13:54:30.893 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=540521 ; -- 2017-10-14T13:54:30.896 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=540521 ; -- 2017-10-14T13:55:37.273 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=1,Updated=TO_TIMESTAMP('2017-10-14 13:55:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549087 ; -- 2017-10-14T13:55:40.750 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=2,Updated=TO_TIMESTAMP('2017-10-14 13:55:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549088 ; -- 2017-10-14T13:55:49.910 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-10-14 13:55:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549087 ; -- 2017-10-14T13:55:51.842 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-10-14 13:55:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549088 ; -- 2017-10-14T13:55:53.634 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-10-14 13:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543020 ; -- 2017-10-14T13:55:55.450 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-10-14 13:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543021 ; -- 2017-10-14T13:55:57.052 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-10-14 13:55:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543022 ; -- 2017-10-14T13:55:58.754 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-10-14 13:55:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543023 ; -- 2017-10-14T13:56:00.394 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-10-14 13:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543024 ; -- 2017-10-14T13:56:01.967 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-10-14 13:56:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543025 ; -- 2017-10-14T13:56:03.555 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-10-14 13:56:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543026 ; -- 2017-10-14T13:56:07.467 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-10-14 13:56:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543027 ; -- 2017-10-14T13:56:20.025 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=1,Updated=TO_TIMESTAMP('2017-10-14 13:56:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549089 ; -- 2017-10-14T13:56:24.492 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=2,Updated=TO_TIMESTAMP('2017-10-14 13:56:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ; -- 2017-10-14T13:56:30.815 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-10-14 13:56:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549089 ; -- 2017-10-14T13:56:32.668 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-10-14 13:56:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ; -- 2017-10-14T13:56:34.754 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-10-14 13:56:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543028 ; -- 2017-10-14T13:56:36.536 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-10-14 13:56:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543029 ; -- 2017-10-14T13:56:38.254 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-10-14 13:56:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543030 ; -- 2017-10-14T13:56:39.932 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-10-14 13:56:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543031 ; -- 2017-10-14T13:56:41.831 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-10-14 13:56:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543032 ; -- 2017-10-14T13:56:43.556 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-10-14 13:56:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543033 ; -- 2017-10-14T13:56:45.134 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-10-14 13:56:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543034 ; -- 2017-10-14T13:56:49.082 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-10-14 13:56:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543035 ; -- 2017-10-14T14:00:42.087 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540262, SeqNo=30,Updated=TO_TIMESTAMP('2017-10-14 14:00:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549089 ; -- 2017-10-14T14:00:54.305 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540262, SeqNo=40,Updated=TO_TIMESTAMP('2017-10-14 14:00:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ; -- 2017-10-14T14:02:40.913 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540800,540522,TO_TIMESTAMP('2017-10-14 14:02:40','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-10-14 14:02:40','YYYY-MM-DD HH24:MI:SS'),100) RETURNING Value ; -- 2017-10-14T14:02:40.914 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540522 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-10-14T14:02:43.522 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Section SET SeqNo=30,Updated=TO_TIMESTAMP('2017-10-14 14:02:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Section_ID=540132 ; -- 2017-10-14T14:02:49.386 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Section SET Value='frequence',Updated=TO_TIMESTAMP('2017-10-14 14:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Section_ID=540522 ; -- 2017-10-14T14:02:52.106 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540696,540522,TO_TIMESTAMP('2017-10-14 14:02:52','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-10-14 14:02:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T14:02:53.823 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540697,540522,TO_TIMESTAMP('2017-10-14 14:02:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-10-14 14:02:53','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T14:03:06.295 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540696,541212,TO_TIMESTAMP('2017-10-14 14:03:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','week',10,TO_TIMESTAMP('2017-10-14 14:03:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T14:03:18.564 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET Name='month',Updated=TO_TIMESTAMP('2017-10-14 14:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=541212 ; -- 2017-10-14T14:03:26.423 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540697,541213,TO_TIMESTAMP('2017-10-14 14:03:26','YYYY-MM-DD HH24:MI:SS'),100,'Y','week',10,TO_TIMESTAMP('2017-10-14 14:03:26','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T14:03:51.542 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541212, SeqNo=10,Updated=TO_TIMESTAMP('2017-10-14 14:03:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549089 ; -- 2017-10-14T14:03:59.684 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541212, SeqNo=20,Updated=TO_TIMESTAMP('2017-10-14 14:03:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ; -- 2017-10-14T14:04:25.162 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541213, SeqNo=10,Updated=TO_TIMESTAMP('2017-10-14 14:04:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549087 ; -- 2017-10-14T14:04:35.279 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541213, SeqNo=20,Updated=TO_TIMESTAMP('2017-10-14 14:04:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549088 ; -- 2017-10-14T14:09:40.766 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Wöchentlich',Updated=TO_TIMESTAMP('2017-10-14 14:09:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558085 ; -- 2017-10-14T14:10:03.003 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Wochenintervall',Updated=TO_TIMESTAMP('2017-10-14 14:10:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558086 ; -- 2017-10-14T14:10:10.473 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Monatlich',Updated=TO_TIMESTAMP('2017-10-14 14:10:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558102 ; -- 2017-10-14T14:11:53.916 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Tag im Monat',Updated=TO_TIMESTAMP('2017-10-14 14:11:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558103 ; -- 2017-10-14T14:12:35.772 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Monatsintervall',Updated=TO_TIMESTAMP('2017-10-14 14:12:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558102 ; -- 2017-10-14T14:15:56.337 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,558103,0,540800,541212,549091,'F',TO_TIMESTAMP('2017-10-14 14:15:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Tag im Monat',20,0,0,TO_TIMESTAMP('2017-10-14 14:15:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-10-14T14:15:59.196 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-10-14 14:15:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549090 ;
the_stack
USE [D:\WORK\CODESMITH-SAMPLES\NETTIERS\CSHARP\PETSHOP\SOURCE\PETSHOP.UI\APP_DATA\PETSHOP.MDF] GO SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the OrderStatus table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_Get_List AS SELECT [OrderId], [LineNum], [Timestamp], [Status] FROM [dbo].[OrderStatus] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the OrderStatus table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[OrderId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [OrderId]' SET @SQL = @SQL + ', [LineNum]' SET @SQL = @SQL + ', [Timestamp]' SET @SQL = @SQL + ', [Status]' SET @SQL = @SQL + ' FROM [dbo].[OrderStatus]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [OrderId],' SET @SQL = @SQL + ' [LineNum],' SET @SQL = @SQL + ' [Timestamp],' SET @SQL = @SQL + ' [Status]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[OrderStatus]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the OrderStatus table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_Insert ( @OrderId int , @LineNum int , @Timestamp datetime , @Status varchar (2) ) AS INSERT INTO [dbo].[OrderStatus] ( [OrderId] ,[LineNum] ,[Timestamp] ,[Status] ) VALUES ( @OrderId ,@LineNum ,@Timestamp ,@Status ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the OrderStatus table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_Update ( @OrderId int , @OriginalOrderId int , @LineNum int , @OriginalLineNum int , @Timestamp datetime , @Status varchar (2) ) AS -- Modify the updatable columns UPDATE [dbo].[OrderStatus] SET [OrderId] = @OrderId ,[LineNum] = @LineNum ,[Timestamp] = @Timestamp ,[Status] = @Status WHERE [OrderId] = @OriginalOrderId AND [LineNum] = @OriginalLineNum GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the OrderStatus table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_Delete ( @OrderId int , @LineNum int ) AS DELETE FROM [dbo].[OrderStatus] WITH (ROWLOCK) WHERE [OrderId] = @OrderId AND [LineNum] = @LineNum GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_GetByOrderId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_GetByOrderId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_GetByOrderId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the OrderStatus table through a foreign key ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_GetByOrderId ( @OrderId int ) AS SET ANSI_NULLS OFF SELECT [OrderId], [LineNum], [Timestamp], [Status] FROM [dbo].[OrderStatus] WHERE [OrderId] = @OrderId SELECT @@ROWCOUNT SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_GetByOrderIdLineNum procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_GetByOrderIdLineNum') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_GetByOrderIdLineNum GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the OrderStatus table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_GetByOrderIdLineNum ( @OrderId int , @LineNum int ) AS SELECT [OrderId], [LineNum], [Timestamp], [Status] FROM [dbo].[OrderStatus] WHERE [OrderId] = @OrderId AND [LineNum] = @LineNum SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.OrderStatus_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.OrderStatus_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.OrderStatus_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the OrderStatus table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.OrderStatus_Find ( @SearchUsingOR bit = null , @OrderId int = null , @LineNum int = null , @Timestamp datetime = null , @Status varchar (2) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [OrderId] , [LineNum] , [Timestamp] , [Status] FROM [dbo].[OrderStatus] WHERE ([OrderId] = @OrderId OR @OrderId IS NULL) AND ([LineNum] = @LineNum OR @LineNum IS NULL) AND ([Timestamp] = @Timestamp OR @Timestamp IS NULL) AND ([Status] = @Status OR @Status IS NULL) END ELSE BEGIN SELECT [OrderId] , [LineNum] , [Timestamp] , [Status] FROM [dbo].[OrderStatus] WHERE ([OrderId] = @OrderId AND @OrderId is not null) OR ([LineNum] = @LineNum AND @LineNum is not null) OR ([Timestamp] = @Timestamp AND @Timestamp is not null) OR ([Status] = @Status AND @Status is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Cart table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_Get_List AS SELECT [CartId], [UniqueID], [ItemId], [Name], [Type], [Price], [CategoryId], [ProductId], [IsShoppingCart], [Quantity] FROM [dbo].[Cart] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Cart table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[CartId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [CartId]' SET @SQL = @SQL + ', [UniqueID]' SET @SQL = @SQL + ', [ItemId]' SET @SQL = @SQL + ', [Name]' SET @SQL = @SQL + ', [Type]' SET @SQL = @SQL + ', [Price]' SET @SQL = @SQL + ', [CategoryId]' SET @SQL = @SQL + ', [ProductId]' SET @SQL = @SQL + ', [IsShoppingCart]' SET @SQL = @SQL + ', [Quantity]' SET @SQL = @SQL + ' FROM [dbo].[Cart]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [CartId],' SET @SQL = @SQL + ' [UniqueID],' SET @SQL = @SQL + ' [ItemId],' SET @SQL = @SQL + ' [Name],' SET @SQL = @SQL + ' [Type],' SET @SQL = @SQL + ' [Price],' SET @SQL = @SQL + ' [CategoryId],' SET @SQL = @SQL + ' [ProductId],' SET @SQL = @SQL + ' [IsShoppingCart],' SET @SQL = @SQL + ' [Quantity]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Cart]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Cart table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_Insert ( @CartId int OUTPUT, @UniqueId int , @ItemId varchar (10) , @Name varchar (80) , @Type varchar (80) , @Price decimal (10, 2) , @CategoryId varchar (10) , @ProductId varchar (10) , @IsShoppingCart bit , @Quantity int ) AS INSERT INTO [dbo].[Cart] ( [UniqueID] ,[ItemId] ,[Name] ,[Type] ,[Price] ,[CategoryId] ,[ProductId] ,[IsShoppingCart] ,[Quantity] ) VALUES ( @UniqueId ,@ItemId ,@Name ,@Type ,@Price ,@CategoryId ,@ProductId ,@IsShoppingCart ,@Quantity ) -- Get the identity value SET @CartId = SCOPE_IDENTITY() GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Cart table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_Update ( @CartId int , @UniqueId int , @ItemId varchar (10) , @Name varchar (80) , @Type varchar (80) , @Price decimal (10, 2) , @CategoryId varchar (10) , @ProductId varchar (10) , @IsShoppingCart bit , @Quantity int ) AS -- Modify the updatable columns UPDATE [dbo].[Cart] SET [UniqueID] = @UniqueId ,[ItemId] = @ItemId ,[Name] = @Name ,[Type] = @Type ,[Price] = @Price ,[CategoryId] = @CategoryId ,[ProductId] = @ProductId ,[IsShoppingCart] = @IsShoppingCart ,[Quantity] = @Quantity WHERE [CartId] = @CartId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Cart table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_Delete ( @CartId int ) AS DELETE FROM [dbo].[Cart] WITH (ROWLOCK) WHERE [CartId] = @CartId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_GetByUniqueId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_GetByUniqueId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_GetByUniqueId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Cart table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_GetByUniqueId ( @UniqueId int ) AS SELECT [CartId], [UniqueID], [ItemId], [Name], [Type], [Price], [CategoryId], [ProductId], [IsShoppingCart], [Quantity] FROM [dbo].[Cart] WHERE [UniqueID] = @UniqueId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_GetByIsShoppingCart procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_GetByIsShoppingCart') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_GetByIsShoppingCart GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Cart table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_GetByIsShoppingCart ( @IsShoppingCart bit ) AS SELECT [CartId], [UniqueID], [ItemId], [Name], [Type], [Price], [CategoryId], [ProductId], [IsShoppingCart], [Quantity] FROM [dbo].[Cart] WHERE [IsShoppingCart] = @IsShoppingCart SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_GetByCartId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_GetByCartId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_GetByCartId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Cart table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_GetByCartId ( @CartId int ) AS SELECT [CartId], [UniqueID], [ItemId], [Name], [Type], [Price], [CategoryId], [ProductId], [IsShoppingCart], [Quantity] FROM [dbo].[Cart] WHERE [CartId] = @CartId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Cart_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Cart_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Cart_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Cart table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Cart_Find ( @SearchUsingOR bit = null , @CartId int = null , @UniqueId int = null , @ItemId varchar (10) = null , @Name varchar (80) = null , @Type varchar (80) = null , @Price decimal (10, 2) = null , @CategoryId varchar (10) = null , @ProductId varchar (10) = null , @IsShoppingCart bit = null , @Quantity int = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [CartId] , [UniqueID] , [ItemId] , [Name] , [Type] , [Price] , [CategoryId] , [ProductId] , [IsShoppingCart] , [Quantity] FROM [dbo].[Cart] WHERE ([CartId] = @CartId OR @CartId IS NULL) AND ([UniqueID] = @UniqueId OR @UniqueId IS NULL) AND ([ItemId] = @ItemId OR @ItemId IS NULL) AND ([Name] = @Name OR @Name IS NULL) AND ([Type] = @Type OR @Type IS NULL) AND ([Price] = @Price OR @Price IS NULL) AND ([CategoryId] = @CategoryId OR @CategoryId IS NULL) AND ([ProductId] = @ProductId OR @ProductId IS NULL) AND ([IsShoppingCart] = @IsShoppingCart OR @IsShoppingCart IS NULL) AND ([Quantity] = @Quantity OR @Quantity IS NULL) END ELSE BEGIN SELECT [CartId] , [UniqueID] , [ItemId] , [Name] , [Type] , [Price] , [CategoryId] , [ProductId] , [IsShoppingCart] , [Quantity] FROM [dbo].[Cart] WHERE ([CartId] = @CartId AND @CartId is not null) OR ([UniqueID] = @UniqueId AND @UniqueId is not null) OR ([ItemId] = @ItemId AND @ItemId is not null) OR ([Name] = @Name AND @Name is not null) OR ([Type] = @Type AND @Type is not null) OR ([Price] = @Price AND @Price is not null) OR ([CategoryId] = @CategoryId AND @CategoryId is not null) OR ([ProductId] = @ProductId AND @ProductId is not null) OR ([IsShoppingCart] = @IsShoppingCart AND @IsShoppingCart is not null) OR ([Quantity] = @Quantity AND @Quantity is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Orders table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_Get_List AS SELECT [OrderId], [UserId], [OrderDate], [ShipAddr1], [ShipAddr2], [ShipCity], [ShipState], [ShipZip], [ShipCountry], [BillAddr1], [BillAddr2], [BillCity], [BillState], [BillZip], [BillCountry], [Courier], [TotalPrice], [BillToFirstName], [BillToLastName], [ShipToFirstName], [ShipToLastName], [AuthorizationNumber], [Locale] FROM [dbo].[Orders] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Orders table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[OrderId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [OrderId]' SET @SQL = @SQL + ', [UserId]' SET @SQL = @SQL + ', [OrderDate]' SET @SQL = @SQL + ', [ShipAddr1]' SET @SQL = @SQL + ', [ShipAddr2]' SET @SQL = @SQL + ', [ShipCity]' SET @SQL = @SQL + ', [ShipState]' SET @SQL = @SQL + ', [ShipZip]' SET @SQL = @SQL + ', [ShipCountry]' SET @SQL = @SQL + ', [BillAddr1]' SET @SQL = @SQL + ', [BillAddr2]' SET @SQL = @SQL + ', [BillCity]' SET @SQL = @SQL + ', [BillState]' SET @SQL = @SQL + ', [BillZip]' SET @SQL = @SQL + ', [BillCountry]' SET @SQL = @SQL + ', [Courier]' SET @SQL = @SQL + ', [TotalPrice]' SET @SQL = @SQL + ', [BillToFirstName]' SET @SQL = @SQL + ', [BillToLastName]' SET @SQL = @SQL + ', [ShipToFirstName]' SET @SQL = @SQL + ', [ShipToLastName]' SET @SQL = @SQL + ', [AuthorizationNumber]' SET @SQL = @SQL + ', [Locale]' SET @SQL = @SQL + ' FROM [dbo].[Orders]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [OrderId],' SET @SQL = @SQL + ' [UserId],' SET @SQL = @SQL + ' [OrderDate],' SET @SQL = @SQL + ' [ShipAddr1],' SET @SQL = @SQL + ' [ShipAddr2],' SET @SQL = @SQL + ' [ShipCity],' SET @SQL = @SQL + ' [ShipState],' SET @SQL = @SQL + ' [ShipZip],' SET @SQL = @SQL + ' [ShipCountry],' SET @SQL = @SQL + ' [BillAddr1],' SET @SQL = @SQL + ' [BillAddr2],' SET @SQL = @SQL + ' [BillCity],' SET @SQL = @SQL + ' [BillState],' SET @SQL = @SQL + ' [BillZip],' SET @SQL = @SQL + ' [BillCountry],' SET @SQL = @SQL + ' [Courier],' SET @SQL = @SQL + ' [TotalPrice],' SET @SQL = @SQL + ' [BillToFirstName],' SET @SQL = @SQL + ' [BillToLastName],' SET @SQL = @SQL + ' [ShipToFirstName],' SET @SQL = @SQL + ' [ShipToLastName],' SET @SQL = @SQL + ' [AuthorizationNumber],' SET @SQL = @SQL + ' [Locale]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Orders]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Orders table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_Insert ( @OrderId int OUTPUT, @UserId varchar (20) , @OrderDate datetime , @ShipAddr1 varchar (80) , @ShipAddr2 varchar (80) , @ShipCity varchar (80) , @ShipState varchar (80) , @ShipZip varchar (20) , @ShipCountry varchar (20) , @BillAddr1 varchar (80) , @BillAddr2 varchar (80) , @BillCity varchar (80) , @BillState varchar (80) , @BillZip varchar (20) , @BillCountry varchar (20) , @Courier varchar (80) , @TotalPrice decimal (10, 2) , @BillToFirstName varchar (80) , @BillToLastName varchar (80) , @ShipToFirstName varchar (80) , @ShipToLastName varchar (80) , @AuthorizationNumber int , @Locale varchar (20) ) AS INSERT INTO [dbo].[Orders] ( [UserId] ,[OrderDate] ,[ShipAddr1] ,[ShipAddr2] ,[ShipCity] ,[ShipState] ,[ShipZip] ,[ShipCountry] ,[BillAddr1] ,[BillAddr2] ,[BillCity] ,[BillState] ,[BillZip] ,[BillCountry] ,[Courier] ,[TotalPrice] ,[BillToFirstName] ,[BillToLastName] ,[ShipToFirstName] ,[ShipToLastName] ,[AuthorizationNumber] ,[Locale] ) VALUES ( @UserId ,@OrderDate ,@ShipAddr1 ,@ShipAddr2 ,@ShipCity ,@ShipState ,@ShipZip ,@ShipCountry ,@BillAddr1 ,@BillAddr2 ,@BillCity ,@BillState ,@BillZip ,@BillCountry ,@Courier ,@TotalPrice ,@BillToFirstName ,@BillToLastName ,@ShipToFirstName ,@ShipToLastName ,@AuthorizationNumber ,@Locale ) -- Get the identity value SET @OrderId = SCOPE_IDENTITY() GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Orders table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_Update ( @OrderId int , @UserId varchar (20) , @OrderDate datetime , @ShipAddr1 varchar (80) , @ShipAddr2 varchar (80) , @ShipCity varchar (80) , @ShipState varchar (80) , @ShipZip varchar (20) , @ShipCountry varchar (20) , @BillAddr1 varchar (80) , @BillAddr2 varchar (80) , @BillCity varchar (80) , @BillState varchar (80) , @BillZip varchar (20) , @BillCountry varchar (20) , @Courier varchar (80) , @TotalPrice decimal (10, 2) , @BillToFirstName varchar (80) , @BillToLastName varchar (80) , @ShipToFirstName varchar (80) , @ShipToLastName varchar (80) , @AuthorizationNumber int , @Locale varchar (20) ) AS -- Modify the updatable columns UPDATE [dbo].[Orders] SET [UserId] = @UserId ,[OrderDate] = @OrderDate ,[ShipAddr1] = @ShipAddr1 ,[ShipAddr2] = @ShipAddr2 ,[ShipCity] = @ShipCity ,[ShipState] = @ShipState ,[ShipZip] = @ShipZip ,[ShipCountry] = @ShipCountry ,[BillAddr1] = @BillAddr1 ,[BillAddr2] = @BillAddr2 ,[BillCity] = @BillCity ,[BillState] = @BillState ,[BillZip] = @BillZip ,[BillCountry] = @BillCountry ,[Courier] = @Courier ,[TotalPrice] = @TotalPrice ,[BillToFirstName] = @BillToFirstName ,[BillToLastName] = @BillToLastName ,[ShipToFirstName] = @ShipToFirstName ,[ShipToLastName] = @ShipToLastName ,[AuthorizationNumber] = @AuthorizationNumber ,[Locale] = @Locale WHERE [OrderId] = @OrderId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Orders table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_Delete ( @OrderId int ) AS DELETE FROM [dbo].[Orders] WITH (ROWLOCK) WHERE [OrderId] = @OrderId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_GetByOrderId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_GetByOrderId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_GetByOrderId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Orders table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_GetByOrderId ( @OrderId int ) AS SELECT [OrderId], [UserId], [OrderDate], [ShipAddr1], [ShipAddr2], [ShipCity], [ShipState], [ShipZip], [ShipCountry], [BillAddr1], [BillAddr2], [BillCity], [BillState], [BillZip], [BillCountry], [Courier], [TotalPrice], [BillToFirstName], [BillToLastName], [ShipToFirstName], [ShipToLastName], [AuthorizationNumber], [Locale] FROM [dbo].[Orders] WHERE [OrderId] = @OrderId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Orders_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Orders_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Orders_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Orders table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Orders_Find ( @SearchUsingOR bit = null , @OrderId int = null , @UserId varchar (20) = null , @OrderDate datetime = null , @ShipAddr1 varchar (80) = null , @ShipAddr2 varchar (80) = null , @ShipCity varchar (80) = null , @ShipState varchar (80) = null , @ShipZip varchar (20) = null , @ShipCountry varchar (20) = null , @BillAddr1 varchar (80) = null , @BillAddr2 varchar (80) = null , @BillCity varchar (80) = null , @BillState varchar (80) = null , @BillZip varchar (20) = null , @BillCountry varchar (20) = null , @Courier varchar (80) = null , @TotalPrice decimal (10, 2) = null , @BillToFirstName varchar (80) = null , @BillToLastName varchar (80) = null , @ShipToFirstName varchar (80) = null , @ShipToLastName varchar (80) = null , @AuthorizationNumber int = null , @Locale varchar (20) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [OrderId] , [UserId] , [OrderDate] , [ShipAddr1] , [ShipAddr2] , [ShipCity] , [ShipState] , [ShipZip] , [ShipCountry] , [BillAddr1] , [BillAddr2] , [BillCity] , [BillState] , [BillZip] , [BillCountry] , [Courier] , [TotalPrice] , [BillToFirstName] , [BillToLastName] , [ShipToFirstName] , [ShipToLastName] , [AuthorizationNumber] , [Locale] FROM [dbo].[Orders] WHERE ([OrderId] = @OrderId OR @OrderId IS NULL) AND ([UserId] = @UserId OR @UserId IS NULL) AND ([OrderDate] = @OrderDate OR @OrderDate IS NULL) AND ([ShipAddr1] = @ShipAddr1 OR @ShipAddr1 IS NULL) AND ([ShipAddr2] = @ShipAddr2 OR @ShipAddr2 IS NULL) AND ([ShipCity] = @ShipCity OR @ShipCity IS NULL) AND ([ShipState] = @ShipState OR @ShipState IS NULL) AND ([ShipZip] = @ShipZip OR @ShipZip IS NULL) AND ([ShipCountry] = @ShipCountry OR @ShipCountry IS NULL) AND ([BillAddr1] = @BillAddr1 OR @BillAddr1 IS NULL) AND ([BillAddr2] = @BillAddr2 OR @BillAddr2 IS NULL) AND ([BillCity] = @BillCity OR @BillCity IS NULL) AND ([BillState] = @BillState OR @BillState IS NULL) AND ([BillZip] = @BillZip OR @BillZip IS NULL) AND ([BillCountry] = @BillCountry OR @BillCountry IS NULL) AND ([Courier] = @Courier OR @Courier IS NULL) AND ([TotalPrice] = @TotalPrice OR @TotalPrice IS NULL) AND ([BillToFirstName] = @BillToFirstName OR @BillToFirstName IS NULL) AND ([BillToLastName] = @BillToLastName OR @BillToLastName IS NULL) AND ([ShipToFirstName] = @ShipToFirstName OR @ShipToFirstName IS NULL) AND ([ShipToLastName] = @ShipToLastName OR @ShipToLastName IS NULL) AND ([AuthorizationNumber] = @AuthorizationNumber OR @AuthorizationNumber IS NULL) AND ([Locale] = @Locale OR @Locale IS NULL) END ELSE BEGIN SELECT [OrderId] , [UserId] , [OrderDate] , [ShipAddr1] , [ShipAddr2] , [ShipCity] , [ShipState] , [ShipZip] , [ShipCountry] , [BillAddr1] , [BillAddr2] , [BillCity] , [BillState] , [BillZip] , [BillCountry] , [Courier] , [TotalPrice] , [BillToFirstName] , [BillToLastName] , [ShipToFirstName] , [ShipToLastName] , [AuthorizationNumber] , [Locale] FROM [dbo].[Orders] WHERE ([OrderId] = @OrderId AND @OrderId is not null) OR ([UserId] = @UserId AND @UserId is not null) OR ([OrderDate] = @OrderDate AND @OrderDate is not null) OR ([ShipAddr1] = @ShipAddr1 AND @ShipAddr1 is not null) OR ([ShipAddr2] = @ShipAddr2 AND @ShipAddr2 is not null) OR ([ShipCity] = @ShipCity AND @ShipCity is not null) OR ([ShipState] = @ShipState AND @ShipState is not null) OR ([ShipZip] = @ShipZip AND @ShipZip is not null) OR ([ShipCountry] = @ShipCountry AND @ShipCountry is not null) OR ([BillAddr1] = @BillAddr1 AND @BillAddr1 is not null) OR ([BillAddr2] = @BillAddr2 AND @BillAddr2 is not null) OR ([BillCity] = @BillCity AND @BillCity is not null) OR ([BillState] = @BillState AND @BillState is not null) OR ([BillZip] = @BillZip AND @BillZip is not null) OR ([BillCountry] = @BillCountry AND @BillCountry is not null) OR ([Courier] = @Courier AND @Courier is not null) OR ([TotalPrice] = @TotalPrice AND @TotalPrice is not null) OR ([BillToFirstName] = @BillToFirstName AND @BillToFirstName is not null) OR ([BillToLastName] = @BillToLastName AND @BillToLastName is not null) OR ([ShipToFirstName] = @ShipToFirstName AND @ShipToFirstName is not null) OR ([ShipToLastName] = @ShipToLastName AND @ShipToLastName is not null) OR ([AuthorizationNumber] = @AuthorizationNumber AND @AuthorizationNumber is not null) OR ([Locale] = @Locale AND @Locale is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Inventory table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_Get_List AS SELECT [ItemId], [Qty] FROM [dbo].[Inventory] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Inventory table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[ItemId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [ItemId]' SET @SQL = @SQL + ', [Qty]' SET @SQL = @SQL + ' FROM [dbo].[Inventory]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [ItemId],' SET @SQL = @SQL + ' [Qty]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Inventory]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Inventory table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_Insert ( @ItemId varchar (10) , @Qty int ) AS INSERT INTO [dbo].[Inventory] ( [ItemId] ,[Qty] ) VALUES ( @ItemId ,@Qty ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Inventory table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_Update ( @ItemId varchar (10) , @OriginalItemId varchar (10) , @Qty int ) AS -- Modify the updatable columns UPDATE [dbo].[Inventory] SET [ItemId] = @ItemId ,[Qty] = @Qty WHERE [ItemId] = @OriginalItemId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Inventory table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_Delete ( @ItemId varchar (10) ) AS DELETE FROM [dbo].[Inventory] WITH (ROWLOCK) WHERE [ItemId] = @ItemId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_GetByItemId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_GetByItemId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_GetByItemId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Inventory table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_GetByItemId ( @ItemId varchar (10) ) AS SELECT [ItemId], [Qty] FROM [dbo].[Inventory] WHERE [ItemId] = @ItemId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Inventory_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Inventory_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Inventory_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Inventory table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Inventory_Find ( @SearchUsingOR bit = null , @ItemId varchar (10) = null , @Qty int = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [ItemId] , [Qty] FROM [dbo].[Inventory] WHERE ([ItemId] = @ItemId OR @ItemId IS NULL) AND ([Qty] = @Qty OR @Qty IS NULL) END ELSE BEGIN SELECT [ItemId] , [Qty] FROM [dbo].[Inventory] WHERE ([ItemId] = @ItemId AND @ItemId is not null) OR ([Qty] = @Qty AND @Qty is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Supplier table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_Get_List AS SELECT [SuppId], [Name], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Phone] FROM [dbo].[Supplier] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Supplier table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[SuppId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [SuppId]' SET @SQL = @SQL + ', [Name]' SET @SQL = @SQL + ', [Status]' SET @SQL = @SQL + ', [Addr1]' SET @SQL = @SQL + ', [Addr2]' SET @SQL = @SQL + ', [City]' SET @SQL = @SQL + ', [State]' SET @SQL = @SQL + ', [Zip]' SET @SQL = @SQL + ', [Phone]' SET @SQL = @SQL + ' FROM [dbo].[Supplier]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [SuppId],' SET @SQL = @SQL + ' [Name],' SET @SQL = @SQL + ' [Status],' SET @SQL = @SQL + ' [Addr1],' SET @SQL = @SQL + ' [Addr2],' SET @SQL = @SQL + ' [City],' SET @SQL = @SQL + ' [State],' SET @SQL = @SQL + ' [Zip],' SET @SQL = @SQL + ' [Phone]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Supplier]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Supplier table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_Insert ( @SuppId int , @Name varchar (80) , @Status varchar (2) , @Addr1 varchar (80) , @Addr2 varchar (80) , @City varchar (80) , @State varchar (80) , @Zip varchar (5) , @Phone varchar (40) ) AS INSERT INTO [dbo].[Supplier] ( [SuppId] ,[Name] ,[Status] ,[Addr1] ,[Addr2] ,[City] ,[State] ,[Zip] ,[Phone] ) VALUES ( @SuppId ,@Name ,@Status ,@Addr1 ,@Addr2 ,@City ,@State ,@Zip ,@Phone ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Supplier table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_Update ( @SuppId int , @OriginalSuppId int , @Name varchar (80) , @Status varchar (2) , @Addr1 varchar (80) , @Addr2 varchar (80) , @City varchar (80) , @State varchar (80) , @Zip varchar (5) , @Phone varchar (40) ) AS -- Modify the updatable columns UPDATE [dbo].[Supplier] SET [SuppId] = @SuppId ,[Name] = @Name ,[Status] = @Status ,[Addr1] = @Addr1 ,[Addr2] = @Addr2 ,[City] = @City ,[State] = @State ,[Zip] = @Zip ,[Phone] = @Phone WHERE [SuppId] = @OriginalSuppId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Supplier table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_Delete ( @SuppId int ) AS DELETE FROM [dbo].[Supplier] WITH (ROWLOCK) WHERE [SuppId] = @SuppId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_GetBySuppId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_GetBySuppId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_GetBySuppId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Supplier table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_GetBySuppId ( @SuppId int ) AS SELECT [SuppId], [Name], [Status], [Addr1], [Addr2], [City], [State], [Zip], [Phone] FROM [dbo].[Supplier] WHERE [SuppId] = @SuppId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Supplier_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Supplier_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Supplier_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Supplier table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Supplier_Find ( @SearchUsingOR bit = null , @SuppId int = null , @Name varchar (80) = null , @Status varchar (2) = null , @Addr1 varchar (80) = null , @Addr2 varchar (80) = null , @City varchar (80) = null , @State varchar (80) = null , @Zip varchar (5) = null , @Phone varchar (40) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [SuppId] , [Name] , [Status] , [Addr1] , [Addr2] , [City] , [State] , [Zip] , [Phone] FROM [dbo].[Supplier] WHERE ([SuppId] = @SuppId OR @SuppId IS NULL) AND ([Name] = @Name OR @Name IS NULL) AND ([Status] = @Status OR @Status IS NULL) AND ([Addr1] = @Addr1 OR @Addr1 IS NULL) AND ([Addr2] = @Addr2 OR @Addr2 IS NULL) AND ([City] = @City OR @City IS NULL) AND ([State] = @State OR @State IS NULL) AND ([Zip] = @Zip OR @Zip IS NULL) AND ([Phone] = @Phone OR @Phone IS NULL) END ELSE BEGIN SELECT [SuppId] , [Name] , [Status] , [Addr1] , [Addr2] , [City] , [State] , [Zip] , [Phone] FROM [dbo].[Supplier] WHERE ([SuppId] = @SuppId AND @SuppId is not null) OR ([Name] = @Name AND @Name is not null) OR ([Status] = @Status AND @Status is not null) OR ([Addr1] = @Addr1 AND @Addr1 is not null) OR ([Addr2] = @Addr2 AND @Addr2 is not null) OR ([City] = @City AND @City is not null) OR ([State] = @State AND @State is not null) OR ([Zip] = @Zip AND @Zip is not null) OR ([Phone] = @Phone AND @Phone is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Category table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_Get_List AS SELECT [CategoryId], [Name], [Descn] FROM [dbo].[Category] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Category table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[CategoryId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [CategoryId]' SET @SQL = @SQL + ', [Name]' SET @SQL = @SQL + ', [Descn]' SET @SQL = @SQL + ' FROM [dbo].[Category]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [CategoryId],' SET @SQL = @SQL + ' [Name],' SET @SQL = @SQL + ' [Descn]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Category]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Category table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_Insert ( @CategoryId varchar (10) , @Name varchar (80) , @Descn varchar (255) ) AS INSERT INTO [dbo].[Category] ( [CategoryId] ,[Name] ,[Descn] ) VALUES ( @CategoryId ,@Name ,@Descn ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Category table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_Update ( @CategoryId varchar (10) , @OriginalCategoryId varchar (10) , @Name varchar (80) , @Descn varchar (255) ) AS -- Modify the updatable columns UPDATE [dbo].[Category] SET [CategoryId] = @CategoryId ,[Name] = @Name ,[Descn] = @Descn WHERE [CategoryId] = @OriginalCategoryId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Category table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_Delete ( @CategoryId varchar (10) ) AS DELETE FROM [dbo].[Category] WITH (ROWLOCK) WHERE [CategoryId] = @CategoryId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_GetByCategoryId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_GetByCategoryId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_GetByCategoryId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Category table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_GetByCategoryId ( @CategoryId varchar (10) ) AS SELECT [CategoryId], [Name], [Descn] FROM [dbo].[Category] WHERE [CategoryId] = @CategoryId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Category_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Category_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Category_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Category table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Category_Find ( @SearchUsingOR bit = null , @CategoryId varchar (10) = null , @Name varchar (80) = null , @Descn varchar (255) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [CategoryId] , [Name] , [Descn] FROM [dbo].[Category] WHERE ([CategoryId] = @CategoryId OR @CategoryId IS NULL) AND ([Name] = @Name OR @Name IS NULL) AND ([Descn] = @Descn OR @Descn IS NULL) END ELSE BEGIN SELECT [CategoryId] , [Name] , [Descn] FROM [dbo].[Category] WHERE ([CategoryId] = @CategoryId AND @CategoryId is not null) OR ([Name] = @Name AND @Name is not null) OR ([Descn] = @Descn AND @Descn is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Product table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_Get_List AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Product table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[ProductId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [ProductId]' SET @SQL = @SQL + ', [CategoryId]' SET @SQL = @SQL + ', [Name]' SET @SQL = @SQL + ', [Descn]' SET @SQL = @SQL + ', [Image]' SET @SQL = @SQL + ' FROM [dbo].[Product]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [ProductId],' SET @SQL = @SQL + ' [CategoryId],' SET @SQL = @SQL + ' [Name],' SET @SQL = @SQL + ' [Descn],' SET @SQL = @SQL + ' [Image]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Product]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Product table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_Insert ( @ProductId varchar (10) , @CategoryId varchar (10) , @Name varchar (80) , @Descn varchar (255) , @Image varchar (80) ) AS INSERT INTO [dbo].[Product] ( [ProductId] ,[CategoryId] ,[Name] ,[Descn] ,[Image] ) VALUES ( @ProductId ,@CategoryId ,@Name ,@Descn ,@Image ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Product table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_Update ( @ProductId varchar (10) , @OriginalProductId varchar (10) , @CategoryId varchar (10) , @Name varchar (80) , @Descn varchar (255) , @Image varchar (80) ) AS -- Modify the updatable columns UPDATE [dbo].[Product] SET [ProductId] = @ProductId ,[CategoryId] = @CategoryId ,[Name] = @Name ,[Descn] = @Descn ,[Image] = @Image WHERE [ProductId] = @OriginalProductId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Product table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_Delete ( @ProductId varchar (10) ) AS DELETE FROM [dbo].[Product] WITH (ROWLOCK) WHERE [ProductId] = @ProductId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetByName procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetByName') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetByName GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Product table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetByName ( @Name varchar (80) ) AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] WHERE [Name] = @Name SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetByCategoryId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetByCategoryId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetByCategoryId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Product table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetByCategoryId ( @CategoryId varchar (10) ) AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] WHERE [CategoryId] = @CategoryId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetByCategoryIdName procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetByCategoryIdName') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetByCategoryIdName GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Product table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetByCategoryIdName ( @CategoryId varchar (10) , @Name varchar (80) ) AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] WHERE [CategoryId] = @CategoryId AND [Name] = @Name SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetByCategoryIdProductIdName procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetByCategoryIdProductIdName') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetByCategoryIdProductIdName GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Product table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetByCategoryIdProductIdName ( @CategoryId varchar (10) , @ProductId varchar (10) , @Name varchar (80) ) AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] WHERE [CategoryId] = @CategoryId AND [ProductId] = @ProductId AND [Name] = @Name SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_GetByProductId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_GetByProductId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_GetByProductId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Product table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_GetByProductId ( @ProductId varchar (10) ) AS SELECT [ProductId], [CategoryId], [Name], [Descn], [Image] FROM [dbo].[Product] WHERE [ProductId] = @ProductId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Product_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Product_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Product_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Product table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Product_Find ( @SearchUsingOR bit = null , @ProductId varchar (10) = null , @CategoryId varchar (10) = null , @Name varchar (80) = null , @Descn varchar (255) = null , @Image varchar (80) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [ProductId] , [CategoryId] , [Name] , [Descn] , [Image] FROM [dbo].[Product] WHERE ([ProductId] = @ProductId OR @ProductId IS NULL) AND ([CategoryId] = @CategoryId OR @CategoryId IS NULL) AND ([Name] = @Name OR @Name IS NULL) AND ([Descn] = @Descn OR @Descn IS NULL) AND ([Image] = @Image OR @Image IS NULL) END ELSE BEGIN SELECT [ProductId] , [CategoryId] , [Name] , [Descn] , [Image] FROM [dbo].[Product] WHERE ([ProductId] = @ProductId AND @ProductId is not null) OR ([CategoryId] = @CategoryId AND @CategoryId is not null) OR ([Name] = @Name AND @Name is not null) OR ([Descn] = @Descn AND @Descn is not null) OR ([Image] = @Image AND @Image is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the LineItem table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_Get_List AS SELECT [OrderId], [LineNum], [ItemId], [Quantity], [UnitPrice] FROM [dbo].[LineItem] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the LineItem table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[OrderId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [OrderId]' SET @SQL = @SQL + ', [LineNum]' SET @SQL = @SQL + ', [ItemId]' SET @SQL = @SQL + ', [Quantity]' SET @SQL = @SQL + ', [UnitPrice]' SET @SQL = @SQL + ' FROM [dbo].[LineItem]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [OrderId],' SET @SQL = @SQL + ' [LineNum],' SET @SQL = @SQL + ' [ItemId],' SET @SQL = @SQL + ' [Quantity],' SET @SQL = @SQL + ' [UnitPrice]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[LineItem]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the LineItem table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_Insert ( @OrderId int , @LineNum int , @ItemId varchar (10) , @Quantity int , @UnitPrice decimal (10, 2) ) AS INSERT INTO [dbo].[LineItem] ( [OrderId] ,[LineNum] ,[ItemId] ,[Quantity] ,[UnitPrice] ) VALUES ( @OrderId ,@LineNum ,@ItemId ,@Quantity ,@UnitPrice ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the LineItem table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_Update ( @OrderId int , @OriginalOrderId int , @LineNum int , @OriginalLineNum int , @ItemId varchar (10) , @Quantity int , @UnitPrice decimal (10, 2) ) AS -- Modify the updatable columns UPDATE [dbo].[LineItem] SET [OrderId] = @OrderId ,[LineNum] = @LineNum ,[ItemId] = @ItemId ,[Quantity] = @Quantity ,[UnitPrice] = @UnitPrice WHERE [OrderId] = @OriginalOrderId AND [LineNum] = @OriginalLineNum GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the LineItem table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_Delete ( @OrderId int , @LineNum int ) AS DELETE FROM [dbo].[LineItem] WITH (ROWLOCK) WHERE [OrderId] = @OrderId AND [LineNum] = @LineNum GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_GetByOrderId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_GetByOrderId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_GetByOrderId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the LineItem table through a foreign key ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_GetByOrderId ( @OrderId int ) AS SET ANSI_NULLS OFF SELECT [OrderId], [LineNum], [ItemId], [Quantity], [UnitPrice] FROM [dbo].[LineItem] WHERE [OrderId] = @OrderId SELECT @@ROWCOUNT SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_GetByOrderIdLineNum procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_GetByOrderIdLineNum') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_GetByOrderIdLineNum GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the LineItem table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_GetByOrderIdLineNum ( @OrderId int , @LineNum int ) AS SELECT [OrderId], [LineNum], [ItemId], [Quantity], [UnitPrice] FROM [dbo].[LineItem] WHERE [OrderId] = @OrderId AND [LineNum] = @LineNum SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.LineItem_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.LineItem_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.LineItem_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the LineItem table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.LineItem_Find ( @SearchUsingOR bit = null , @OrderId int = null , @LineNum int = null , @ItemId varchar (10) = null , @Quantity int = null , @UnitPrice decimal (10, 2) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [OrderId] , [LineNum] , [ItemId] , [Quantity] , [UnitPrice] FROM [dbo].[LineItem] WHERE ([OrderId] = @OrderId OR @OrderId IS NULL) AND ([LineNum] = @LineNum OR @LineNum IS NULL) AND ([ItemId] = @ItemId OR @ItemId IS NULL) AND ([Quantity] = @Quantity OR @Quantity IS NULL) AND ([UnitPrice] = @UnitPrice OR @UnitPrice IS NULL) END ELSE BEGIN SELECT [OrderId] , [LineNum] , [ItemId] , [Quantity] , [UnitPrice] FROM [dbo].[LineItem] WHERE ([OrderId] = @OrderId AND @OrderId is not null) OR ([LineNum] = @LineNum AND @LineNum is not null) OR ([ItemId] = @ItemId AND @ItemId is not null) OR ([Quantity] = @Quantity AND @Quantity is not null) OR ([UnitPrice] = @UnitPrice AND @UnitPrice is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Account table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_Get_List AS SELECT [AccountId], [UniqueID], [Email], [FirstName], [LastName], [Address1], [Address2], [City], [State], [Zip], [Country], [Phone] FROM [dbo].[Account] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Account table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[AccountId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [AccountId]' SET @SQL = @SQL + ', [UniqueID]' SET @SQL = @SQL + ', [Email]' SET @SQL = @SQL + ', [FirstName]' SET @SQL = @SQL + ', [LastName]' SET @SQL = @SQL + ', [Address1]' SET @SQL = @SQL + ', [Address2]' SET @SQL = @SQL + ', [City]' SET @SQL = @SQL + ', [State]' SET @SQL = @SQL + ', [Zip]' SET @SQL = @SQL + ', [Country]' SET @SQL = @SQL + ', [Phone]' SET @SQL = @SQL + ' FROM [dbo].[Account]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [AccountId],' SET @SQL = @SQL + ' [UniqueID],' SET @SQL = @SQL + ' [Email],' SET @SQL = @SQL + ' [FirstName],' SET @SQL = @SQL + ' [LastName],' SET @SQL = @SQL + ' [Address1],' SET @SQL = @SQL + ' [Address2],' SET @SQL = @SQL + ' [City],' SET @SQL = @SQL + ' [State],' SET @SQL = @SQL + ' [Zip],' SET @SQL = @SQL + ' [Country],' SET @SQL = @SQL + ' [Phone]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Account]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Account table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_Insert ( @AccountId int OUTPUT, @UniqueId int , @Email varchar (80) , @FirstName varchar (80) , @LastName varchar (80) , @Address1 varchar (80) , @Address2 varchar (80) , @City varchar (80) , @State varchar (80) , @Zip varchar (20) , @Country varchar (20) , @Phone varchar (20) ) AS INSERT INTO [dbo].[Account] ( [UniqueID] ,[Email] ,[FirstName] ,[LastName] ,[Address1] ,[Address2] ,[City] ,[State] ,[Zip] ,[Country] ,[Phone] ) VALUES ( @UniqueId ,@Email ,@FirstName ,@LastName ,@Address1 ,@Address2 ,@City ,@State ,@Zip ,@Country ,@Phone ) -- Get the identity value SET @AccountId = SCOPE_IDENTITY() GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Account table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_Update ( @AccountId int , @UniqueId int , @Email varchar (80) , @FirstName varchar (80) , @LastName varchar (80) , @Address1 varchar (80) , @Address2 varchar (80) , @City varchar (80) , @State varchar (80) , @Zip varchar (20) , @Country varchar (20) , @Phone varchar (20) ) AS -- Modify the updatable columns UPDATE [dbo].[Account] SET [UniqueID] = @UniqueId ,[Email] = @Email ,[FirstName] = @FirstName ,[LastName] = @LastName ,[Address1] = @Address1 ,[Address2] = @Address2 ,[City] = @City ,[State] = @State ,[Zip] = @Zip ,[Country] = @Country ,[Phone] = @Phone WHERE [AccountId] = @AccountId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Account table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_Delete ( @AccountId int ) AS DELETE FROM [dbo].[Account] WITH (ROWLOCK) WHERE [AccountId] = @AccountId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_GetByUniqueId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_GetByUniqueId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_GetByUniqueId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Account table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_GetByUniqueId ( @UniqueId int ) AS SELECT [AccountId], [UniqueID], [Email], [FirstName], [LastName], [Address1], [Address2], [City], [State], [Zip], [Country], [Phone] FROM [dbo].[Account] WHERE [UniqueID] = @UniqueId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_GetByAccountId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_GetByAccountId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_GetByAccountId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Account table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_GetByAccountId ( @AccountId int ) AS SELECT [AccountId], [UniqueID], [Email], [FirstName], [LastName], [Address1], [Address2], [City], [State], [Zip], [Country], [Phone] FROM [dbo].[Account] WHERE [AccountId] = @AccountId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Account_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Account_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Account_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Account table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Account_Find ( @SearchUsingOR bit = null , @AccountId int = null , @UniqueId int = null , @Email varchar (80) = null , @FirstName varchar (80) = null , @LastName varchar (80) = null , @Address1 varchar (80) = null , @Address2 varchar (80) = null , @City varchar (80) = null , @State varchar (80) = null , @Zip varchar (20) = null , @Country varchar (20) = null , @Phone varchar (20) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [AccountId] , [UniqueID] , [Email] , [FirstName] , [LastName] , [Address1] , [Address2] , [City] , [State] , [Zip] , [Country] , [Phone] FROM [dbo].[Account] WHERE ([AccountId] = @AccountId OR @AccountId IS NULL) AND ([UniqueID] = @UniqueId OR @UniqueId IS NULL) AND ([Email] = @Email OR @Email IS NULL) AND ([FirstName] = @FirstName OR @FirstName IS NULL) AND ([LastName] = @LastName OR @LastName IS NULL) AND ([Address1] = @Address1 OR @Address1 IS NULL) AND ([Address2] = @Address2 OR @Address2 IS NULL) AND ([City] = @City OR @City IS NULL) AND ([State] = @State OR @State IS NULL) AND ([Zip] = @Zip OR @Zip IS NULL) AND ([Country] = @Country OR @Country IS NULL) AND ([Phone] = @Phone OR @Phone IS NULL) END ELSE BEGIN SELECT [AccountId] , [UniqueID] , [Email] , [FirstName] , [LastName] , [Address1] , [Address2] , [City] , [State] , [Zip] , [Country] , [Phone] FROM [dbo].[Account] WHERE ([AccountId] = @AccountId AND @AccountId is not null) OR ([UniqueID] = @UniqueId AND @UniqueId is not null) OR ([Email] = @Email AND @Email is not null) OR ([FirstName] = @FirstName AND @FirstName is not null) OR ([LastName] = @LastName AND @LastName is not null) OR ([Address1] = @Address1 AND @Address1 is not null) OR ([Address2] = @Address2 AND @Address2 is not null) OR ([City] = @City AND @City is not null) OR ([State] = @State AND @State is not null) OR ([Zip] = @Zip AND @Zip is not null) OR ([Country] = @Country AND @Country is not null) OR ([Phone] = @Phone AND @Phone is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Profiles table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_Get_List AS SELECT [UniqueID], [Username], [ApplicationName], [IsAnonymous], [LastActivityDate], [LastUpdatedDate] FROM [dbo].[Profiles] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Profiles table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[UniqueID]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [UniqueID]' SET @SQL = @SQL + ', [Username]' SET @SQL = @SQL + ', [ApplicationName]' SET @SQL = @SQL + ', [IsAnonymous]' SET @SQL = @SQL + ', [LastActivityDate]' SET @SQL = @SQL + ', [LastUpdatedDate]' SET @SQL = @SQL + ' FROM [dbo].[Profiles]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [UniqueID],' SET @SQL = @SQL + ' [Username],' SET @SQL = @SQL + ' [ApplicationName],' SET @SQL = @SQL + ' [IsAnonymous],' SET @SQL = @SQL + ' [LastActivityDate],' SET @SQL = @SQL + ' [LastUpdatedDate]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Profiles]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Profiles table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_Insert ( @UniqueId int OUTPUT, @Username varchar (256) , @ApplicationName varchar (256) , @IsAnonymous bit , @LastActivityDate datetime , @LastUpdatedDate datetime ) AS INSERT INTO [dbo].[Profiles] ( [Username] ,[ApplicationName] ,[IsAnonymous] ,[LastActivityDate] ,[LastUpdatedDate] ) VALUES ( @Username ,@ApplicationName ,@IsAnonymous ,@LastActivityDate ,@LastUpdatedDate ) -- Get the identity value SET @UniqueId = SCOPE_IDENTITY() GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Profiles table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_Update ( @UniqueId int , @Username varchar (256) , @ApplicationName varchar (256) , @IsAnonymous bit , @LastActivityDate datetime , @LastUpdatedDate datetime ) AS -- Modify the updatable columns UPDATE [dbo].[Profiles] SET [Username] = @Username ,[ApplicationName] = @ApplicationName ,[IsAnonymous] = @IsAnonymous ,[LastActivityDate] = @LastActivityDate ,[LastUpdatedDate] = @LastUpdatedDate WHERE [UniqueID] = @UniqueId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Profiles table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_Delete ( @UniqueId int ) AS DELETE FROM [dbo].[Profiles] WITH (ROWLOCK) WHERE [UniqueID] = @UniqueId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_GetByUsernameApplicationName procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_GetByUsernameApplicationName') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_GetByUsernameApplicationName GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Profiles table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_GetByUsernameApplicationName ( @Username varchar (256) , @ApplicationName varchar (256) ) AS SELECT [UniqueID], [Username], [ApplicationName], [IsAnonymous], [LastActivityDate], [LastUpdatedDate] FROM [dbo].[Profiles] WHERE [Username] = @Username AND [ApplicationName] = @ApplicationName SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_GetByUniqueId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_GetByUniqueId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_GetByUniqueId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Profiles table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_GetByUniqueId ( @UniqueId int ) AS SELECT [UniqueID], [Username], [ApplicationName], [IsAnonymous], [LastActivityDate], [LastUpdatedDate] FROM [dbo].[Profiles] WHERE [UniqueID] = @UniqueId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Profiles_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Profiles_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Profiles_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Profiles table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Profiles_Find ( @SearchUsingOR bit = null , @UniqueId int = null , @Username varchar (256) = null , @ApplicationName varchar (256) = null , @IsAnonymous bit = null , @LastActivityDate datetime = null , @LastUpdatedDate datetime = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [UniqueID] , [Username] , [ApplicationName] , [IsAnonymous] , [LastActivityDate] , [LastUpdatedDate] FROM [dbo].[Profiles] WHERE ([UniqueID] = @UniqueId OR @UniqueId IS NULL) AND ([Username] = @Username OR @Username IS NULL) AND ([ApplicationName] = @ApplicationName OR @ApplicationName IS NULL) AND ([IsAnonymous] = @IsAnonymous OR @IsAnonymous IS NULL) AND ([LastActivityDate] = @LastActivityDate OR @LastActivityDate IS NULL) AND ([LastUpdatedDate] = @LastUpdatedDate OR @LastUpdatedDate IS NULL) END ELSE BEGIN SELECT [UniqueID] , [Username] , [ApplicationName] , [IsAnonymous] , [LastActivityDate] , [LastUpdatedDate] FROM [dbo].[Profiles] WHERE ([UniqueID] = @UniqueId AND @UniqueId is not null) OR ([Username] = @Username AND @Username is not null) OR ([ApplicationName] = @ApplicationName AND @ApplicationName is not null) OR ([IsAnonymous] = @IsAnonymous AND @IsAnonymous is not null) OR ([LastActivityDate] = @LastActivityDate AND @LastActivityDate is not null) OR ([LastUpdatedDate] = @LastUpdatedDate AND @LastUpdatedDate is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_Get_List procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_Get_List') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_Get_List GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets all records from the Item table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_Get_List AS SELECT [ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Name], [Image] FROM [dbo].[Item] SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_GetPaged procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_GetPaged') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_GetPaged GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Gets records from the Item table passing page index and page count parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_GetPaged ( @WhereClause varchar (2000) , @OrderBy varchar (2000) , @PageIndex int , @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int -- Set the page bounds SET @PageLowerBound = @PageSize * @PageIndex SET @PageUpperBound = @PageLowerBound + @PageSize IF (@OrderBy IS NULL OR LEN(@OrderBy) < 1) BEGIN -- default order by to first column SET @OrderBy = '[ItemId]' END -- SQL Server 2005 Paging DECLARE @SQL AS nvarchar(MAX) SET @SQL = 'WITH PageIndex AS (' SET @SQL = @SQL + ' SELECT' IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' TOP ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ROW_NUMBER() OVER (ORDER BY ' + @OrderBy + ') as RowIndex' SET @SQL = @SQL + ', [ItemId]' SET @SQL = @SQL + ', [ProductId]' SET @SQL = @SQL + ', [ListPrice]' SET @SQL = @SQL + ', [UnitCost]' SET @SQL = @SQL + ', [Supplier]' SET @SQL = @SQL + ', [Status]' SET @SQL = @SQL + ', [Name]' SET @SQL = @SQL + ', [Image]' SET @SQL = @SQL + ' FROM [dbo].[Item]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END SET @SQL = @SQL + ' ) SELECT' SET @SQL = @SQL + ' [ItemId],' SET @SQL = @SQL + ' [ProductId],' SET @SQL = @SQL + ' [ListPrice],' SET @SQL = @SQL + ' [UnitCost],' SET @SQL = @SQL + ' [Supplier],' SET @SQL = @SQL + ' [Status],' SET @SQL = @SQL + ' [Name],' SET @SQL = @SQL + ' [Image]' SET @SQL = @SQL + ' FROM PageIndex' SET @SQL = @SQL + ' WHERE RowIndex > ' + CONVERT(nvarchar, @PageLowerBound) IF @PageSize > 0 BEGIN SET @SQL = @SQL + ' AND RowIndex <= ' + CONVERT(nvarchar, @PageUpperBound) END SET @SQL = @SQL + ' ORDER BY ' + @OrderBy EXEC sp_executesql @SQL -- get row count SET @SQL = 'SELECT COUNT(*) AS TotalRowCount' SET @SQL = @SQL + ' FROM [dbo].[Item]' IF LEN(@WhereClause) > 0 BEGIN SET @SQL = @SQL + ' WHERE ' + @WhereClause END EXEC sp_executesql @SQL END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_Insert procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_Insert') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_Insert GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Inserts a record into the Item table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_Insert ( @ItemId varchar (10) , @ProductId varchar (10) , @ListPrice decimal (10, 2) , @UnitCost decimal (10, 2) , @Supplier int , @Status varchar (2) , @Name varchar (80) , @Image varchar (80) ) AS INSERT INTO [dbo].[Item] ( [ItemId] ,[ProductId] ,[ListPrice] ,[UnitCost] ,[Supplier] ,[Status] ,[Name] ,[Image] ) VALUES ( @ItemId ,@ProductId ,@ListPrice ,@UnitCost ,@Supplier ,@Status ,@Name ,@Image ) GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_Update procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_Update') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_Update GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Updates a record in the Item table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_Update ( @ItemId varchar (10) , @OriginalItemId varchar (10) , @ProductId varchar (10) , @ListPrice decimal (10, 2) , @UnitCost decimal (10, 2) , @Supplier int , @Status varchar (2) , @Name varchar (80) , @Image varchar (80) ) AS -- Modify the updatable columns UPDATE [dbo].[Item] SET [ItemId] = @ItemId ,[ProductId] = @ProductId ,[ListPrice] = @ListPrice ,[UnitCost] = @UnitCost ,[Supplier] = @Supplier ,[Status] = @Status ,[Name] = @Name ,[Image] = @Image WHERE [ItemId] = @OriginalItemId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_Delete procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_Delete') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_Delete GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Deletes a record in the Item table ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_Delete ( @ItemId varchar (10) ) AS DELETE FROM [dbo].[Item] WITH (ROWLOCK) WHERE [ItemId] = @ItemId GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_GetByProductId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_GetByProductId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_GetByProductId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Item table through a foreign key ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_GetByProductId ( @ProductId varchar (10) ) AS SET ANSI_NULLS OFF SELECT [ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Name], [Image] FROM [dbo].[Item] WHERE [ProductId] = @ProductId SELECT @@ROWCOUNT SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_GetBySupplier procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_GetBySupplier') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_GetBySupplier GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Item table through a foreign key ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_GetBySupplier ( @Supplier int ) AS SET ANSI_NULLS OFF SELECT [ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Name], [Image] FROM [dbo].[Item] WHERE [Supplier] = @Supplier SELECT @@ROWCOUNT SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_GetByProductIdItemIdListPriceName procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_GetByProductIdItemIdListPriceName') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_GetByProductIdItemIdListPriceName GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Item table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_GetByProductIdItemIdListPriceName ( @ProductId varchar (10) , @ItemId varchar (10) , @ListPrice decimal (10, 2) , @Name varchar (80) ) AS SELECT [ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Name], [Image] FROM [dbo].[Item] WHERE [ProductId] = @ProductId AND [ItemId] = @ItemId AND [ListPrice] = @ListPrice AND [Name] = @Name SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_GetByItemId procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_GetByItemId') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_GetByItemId GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Select records from the Item table through an index ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_GetByItemId ( @ItemId varchar (10) ) AS SELECT [ItemId], [ProductId], [ListPrice], [UnitCost], [Supplier], [Status], [Name], [Image] FROM [dbo].[Item] WHERE [ItemId] = @ItemId SELECT @@ROWCOUNT GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO -- Drop the dbo.Item_Find procedure IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Item_Find') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE dbo.Item_Find GO /* ---------------------------------------------------------------------------------------------------- -- Created By: Pet Shop () -- Purpose: Finds records in the Item table passing nullable parameters ---------------------------------------------------------------------------------------------------- */ CREATE PROCEDURE dbo.Item_Find ( @SearchUsingOR bit = null , @ItemId varchar (10) = null , @ProductId varchar (10) = null , @ListPrice decimal (10, 2) = null , @UnitCost decimal (10, 2) = null , @Supplier int = null , @Status varchar (2) = null , @Name varchar (80) = null , @Image varchar (80) = null ) AS IF ISNULL(@SearchUsingOR, 0) <> 1 BEGIN SELECT [ItemId] , [ProductId] , [ListPrice] , [UnitCost] , [Supplier] , [Status] , [Name] , [Image] FROM [dbo].[Item] WHERE ([ItemId] = @ItemId OR @ItemId IS NULL) AND ([ProductId] = @ProductId OR @ProductId IS NULL) AND ([ListPrice] = @ListPrice OR @ListPrice IS NULL) AND ([UnitCost] = @UnitCost OR @UnitCost IS NULL) AND ([Supplier] = @Supplier OR @Supplier IS NULL) AND ([Status] = @Status OR @Status IS NULL) AND ([Name] = @Name OR @Name IS NULL) AND ([Image] = @Image OR @Image IS NULL) END ELSE BEGIN SELECT [ItemId] , [ProductId] , [ListPrice] , [UnitCost] , [Supplier] , [Status] , [Name] , [Image] FROM [dbo].[Item] WHERE ([ItemId] = @ItemId AND @ItemId is not null) OR ([ProductId] = @ProductId AND @ProductId is not null) OR ([ListPrice] = @ListPrice AND @ListPrice is not null) OR ([UnitCost] = @UnitCost AND @UnitCost is not null) OR ([Supplier] = @Supplier AND @Supplier is not null) OR ([Status] = @Status AND @Status is not null) OR ([Name] = @Name AND @Name is not null) OR ([Image] = @Image AND @Image is not null) SELECT @@ROWCOUNT END GO SET QUOTED_IDENTIFIER ON GO SET NOCOUNT ON GO SET ANSI_NULLS OFF GO
the_stack
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `tbl_student`; CREATE TABLE `tbl_student` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_dict`; CREATE TABLE `tbl_dict` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `title` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_dict_data`; CREATE TABLE `tbl_dict_data` ( `id` varchar(255) NOT NULL, `dict_id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `value` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_role`; CREATE TABLE `tbl_role` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `department_type` int(11) NOT NULL default '0', `description` varchar(255) NOT NULL default '', `is_default` int(11) NOT NULL DEFAULT 0, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_role_permission`; CREATE TABLE `tbl_role_permission` ( `id` varchar(255) NOT NULL, `role_id` varchar(255) NOT NULL, `permission_id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_user`; CREATE TABLE `tbl_user` ( `id` varchar(255) NOT NULL, `parent_id` varchar(255) NOT NULL default '0', `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL default '', `nick_name` varchar(255) NOT NULL default '', `avatar` varchar(1023) NOT NULL default '', `description` varchar(255) NOT NULL default '', `sex` varchar(255) NOT NULL default '', `address` varchar(255) NOT NULL default '', `mobile` varchar(255) NOT NULL default '', `remark` varchar(255) NOT NULL default '', `department_id` varchar(255) NOT NULL default '', `name` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_user_role`; CREATE TABLE `tbl_user_role` ( `id` varchar(255) NOT NULL, `user_id` varchar(255) NOT NULL, `role_id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_role_department`; CREATE TABLE `tbl_role_department` ( `id` varchar(255) NOT NULL, `role_id` varchar(255) NOT NULL, `department_id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_permission`; CREATE TABLE `tbl_permission` ( `id` varchar(255) NOT NULL, `parent_id` varchar(255) NOT NULL default '0', `name` varchar(255) NOT NULL, `description` varchar(255) NOT NULL default '', `component` varchar(255) NOT NULL default '', `path` varchar(255) NOT NULL default '', `title` varchar(255) NOT NULL default '', `icon` varchar(255) NOT NULL default '', `level` int(11) NOT NULL DEFAULT "1", `button_type` varchar(255) NOT NULL default '', `redirect_url` varchar(255) NOT NULL default '', `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_department`; CREATE TABLE `tbl_department` ( `id` varchar(255) NOT NULL, `parent_id` varchar(255) NOT NULL default '0', `name` varchar(255) NOT NULL, `parent_name` varchar(255) NOT NULL default '', `description` varchar(255) NOT NULL default '', `level` int(11) NOT NULL DEFAULT "0", `head` varchar(255) NOT NULL default '', `vice_head` varchar(255) NOT NULL default '', `is_parent` int(11) NOT NULL DEFAULT 0, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_log`; CREATE TABLE `tbl_log` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `request_url` varchar(255) NOT NULL default '', `request_type` varchar(255) NOT NULL default '', `request_param` text, `username` varchar(255) NOT NULL default '', `ip` varchar(255) NOT NULL default '', `ip_info` varchar(255) NOT NULL default '', `cost_time` int(11) NOT NULL default '0', `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_file`; CREATE TABLE `tbl_file` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `size` int(11) NOT NULL default '0', `url` varchar(255) NOT NULL default '', `file_key` varchar(255) NOT NULL default '', `content_type` varchar(255) NOT NULL default '', `location` int(11) NOT NULL default '1', `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_message`; CREATE TABLE `tbl_message` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `content` text, `new_auto_send` int(11) NOT NULL default '0', `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_message_state`; CREATE TABLE `tbl_message_state` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `user_id` varchar(255) NOT NULL, `message_id` varchar(255) NOT NULL, `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_quartz`; CREATE TABLE `tbl_quartz` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `job_class_name` varchar(255) NOT NULL, `cron_expression` varchar(255) NOT NULL, `parameter` varchar(255) NOT NULL DEFAULT "", `description` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_act_model`; CREATE TABLE `tbl_act_model` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `model_key` varchar(255) NOT NULL DEFAULT "", `version` int(11) NOT NULL DEFAULT 1, `description` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_act_category`; CREATE TABLE `tbl_act_category` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `parent_id` varchar(255) NOT NULL default '0', `description` varchar(255) NOT NULL DEFAULT "", `level` int(11) NOT NULL DEFAULT "0", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_act_process`; CREATE TABLE `tbl_act_process` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `act_category_id` varchar(255) NOT NULL default "", `deployment_id` varchar(255) NOT NULL DEFAULT "", `description` varchar(255) NOT NULL DEFAULT "", `diagram_name` varchar(255) NOT NULL DEFAULT "", `latest` int(11) NOT NULL DEFAULT "1", `process_key` varchar(255) NOT NULL DEFAULT "", `version` int(11) NOT NULL DEFAULT "1", `xml_name` varchar(255) NOT NULL DEFAULT "", `business_table` varchar(255) NOT NULL DEFAULT "", `route_name` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_act_node`; CREATE TABLE `tbl_act_node` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `relate_id` varchar(255) NOT NULL DEFAULT "", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_act_business`; CREATE TABLE `tbl_act_business` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `process_definition_id` varchar(255) NOT NULL DEFAULT "", `process_instance_id` varchar(255) NOT NULL DEFAULT "", `result` int(11) NOT NULL DEFAULT "1", `table_id` varchar(255) NOT NULL DEFAULT "", `user_id` varchar(255) NOT NULL DEFAULT "", `applied_at` timestamp NOT NULL DEFAULT "0000-00-00 00:00:00", `is_history` int(11) NOT NULL DEFAULT "0", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `tbl_leave`; CREATE TABLE `tbl_leave` ( `id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL DEFAULT "", `description` varchar(255) NOT NULL DEFAULT "", `attachment` text, `started_at` timestamp NOT NULL DEFAULT "0000-00-00 00:00:00", `ended_at` timestamp NOT NULL DEFAULT "0000-00-00 00:00:00", `duration` int(11) NOT NULL DEFAULT "0", `type` int(11) NOT NULL DEFAULT "1", `sort_order` int(11) NOT NULL DEFAULT "50", `status` int(11) NOT NULL DEFAULT 1, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_by` varchar(255) NOT NULL DEFAULT '', `updated_by` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `tbl_permission` VALUES ('379506240705630261', '0', 'bootan', '', '', '', 'Bootan系统', 'ios-aperture', '0', '', '', '1', '50', '1', '2019-09-17 04:00:23', '2019-10-10 03:14:34', '', ''); INSERT INTO `tbl_permission` VALUES ('379516240705630351', '379506240705630261', 'user-index', '', 'Main', '/user', '系统管理', 'ios-settings', '1', '', '', '1', '50', '1', '2019-09-17 04:05:54', '2019-10-10 15:37:22', '', ''); INSERT INTO `tbl_permission` VALUES ('379536240705630122', '379516240705630351', 'normal-user-manage', '', 'sys/user/index', '/user/index', '用户管理', 'ios-person', '2', '', '', '1', '50', '1', '2019-09-17 04:12:41', '2019-10-11 21:33:47', '', ''); INSERT INTO `tbl_permission` VALUES ('379546240705630128', '379536240705630122', 'view-normal-user-manage', '', '', '/user/index', '查看', '', '3', '查看权限(view)', '', '1', '50', '1', '2019-09-17 04:13:31', '2019-10-10 03:17:02', '', ''); INSERT INTO `tbl_permission` VALUES ('379556240705630322', '379506240705630261', 'number', '', 'Main', '/bootan/me111', '111', 'ios-add', '2', '', '', '1', '50', '1', '2019-09-18 02:52:30', '2019-10-10 19:25:14', '', ''); INSERT INTO `tbl_permission` VALUES ('379706240705630208', '379536240705630122', 'user-save', '', '', '/user/save', '新增', '', '3', '', '', '1', '50', '1', '2019-10-10 03:18:08', '2019-10-10 19:23:46', '', ''); INSERT INTO `tbl_permission` VALUES ('379707112927924224', '379516240705630351', 'role-index', '', 'sys/role/index', 'sys/role/index', '角色管理', 'ios-people', '2', '', '', '0', '50', '1', '2019-10-10 03:21:36', '2019-10-10 04:50:48', '', ''); INSERT INTO `tbl_permission` VALUES ('379724436808536064', '379506240705630261', 'monitor', '', 'Main', '/monitor', '系统监控', 'ios-podium', '1', '', '', '0', '51', '1', '2019-10-10 04:30:26', '2019-10-10 04:30:26', '', ''); INSERT INTO `tbl_permission` VALUES ('379724707043348480', '0', 'bootan-frontend', '', '', '', 'Bootan Frontend', 'md-book', '0', '', '', '1', '51', '1', '2019-10-10 04:31:31', '2019-10-10 04:31:37', '', ''); INSERT INTO `tbl_permission` VALUES ('379726775246262272', '379724436808536064', 'bootan-redis-index', '', 'monitor/redis/index', '/bootan/redis/index', 'Redis监控', 'ios-aperture', '2', '', 'http://192.168.0.15:8088/swagger-ui.html', '0', '50', '1', '2019-10-10 04:39:44', '2019-10-29 12:13:29', '', ''); INSERT INTO `tbl_permission` VALUES ('380338536295043072', '379516240705630351', 'permission-index', '', 'sys/permission/index', '/permission/index', '权限管理', 'ios-apps', '2', '', '', '0', '51', '1', '2019-10-11 21:10:39', '2019-10-11 21:10:57', '', ''); INSERT INTO `tbl_permission` VALUES ('380340671619403776', '379516240705630351', 'dict-index', '', 'sys/dict/index', '/dict/index', '字典管理', 'ios-book', '2', '', '', '0', '50', '1', '2019-10-11 21:19:08', '2019-10-11 21:19:08', '', ''); INSERT INTO `tbl_permission` VALUES ('380341055947673600', '379516240705630351', '/department/index', '', 'sys/department/index', '/department/index', '部门管理', 'ios-calculator', '2', '', '', '0', '50', '1', '2019-10-11 21:20:40', '2019-10-11 21:20:40', '', ''); INSERT INTO `tbl_permission` VALUES ('386521283522859008', '379724436808536064', '/sys', '', 'sys/monitor/monitor', '/sys', 'Swagger监控', 'ios-alarm', '2', '', 'http://192.168.0.15:8088/swagger-ui.html', '0', '50', '1', '2019-10-28 22:38:41', '2019-10-29 01:04:50', '', ''); INSERT INTO `tbl_role` VALUES ('380419680122310655', '超级管理员', '1', '超级管理员', '0', '1', '50', '1', '2019-09-18 23:27:23', '2019-10-12 02:52:37', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395722256384', '380419680122310655', '379506240705630261', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395760005121', '380419680122310655', '379516240705630351', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395801948160', '380419680122310655', '379536240705630122', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395839696897', '380419680122310655', '379546240705630128', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395881639936', '380419680122310655', '379556240705630322', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395919388672', '380419680122310655', '379706240705630208', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395957137409', '380419680122310655', '379707112927924224', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522395994886145', '380419680122310655', '379724436808536064', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522396032634881', '380419680122310655', '379724707043348480', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522396074577920', '380419680122310655', '379726775246262272', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522396112326656', '380419680122310655', '380338536295043072', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522396150075393', '380419680122310655', '380340671619403776', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_role_permission` VALUES ('386522396187824129', '380419680122310655', '380341055947673600', '', '1', '50', '1', '2019-10-28 22:43:06', '2019-10-28 22:43:06', '', ''); INSERT INTO `tbl_user` VALUES ('379546240705631267', '', 'admin', '$2a$10$7TCWckRONpj9ocjVaWoH5uBGV36amoWw3bTbayl0aoL25FLIgX9ka', '', '', '', '', '', '', '', '', '', '', '1', '50', '1', '2019-09-06 04:57:32', '2019-09-17 09:55:17', '', ''); INSERT INTO `tbl_user_role` VALUES ('378546240705631285', '379546240705631267', '380419680122310655', '', '1', '50', '1', '2019-09-19 23:22:16', '2019-09-19 23:22:16', '', ''); INSERT INTO `tbl_dict` VALUES ('372605411162139628', 'sex', '性别', '1', '50', '1', '2019-09-15 22:18:11', '2019-09-15 22:18:11', '', ''); INSERT INTO `tbl_dict` VALUES ('372605421162139653', 'permission_button_type', '按钮权限', '1', '50', '1', '2019-09-17 22:45:51', '2019-09-17 22:45:51', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655121162139612', '372605411162139628', '男', '1', '1', '50', '1', '2019-09-16 10:36:33', '2019-09-16 10:36:33', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655121162139613', '372605411162139628', '女', '2', '1', '51', '1', '2019-09-16 10:36:33', '2019-09-16 10:36:33', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655121162139614', '372605411162139628', '保密', '3', '1', '52', '1', '2019-09-16 10:36:33', '2019-09-16 10:36:33', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655421162139623', '372605421162139653', '查看权限(index)', 'index', '1', '50', '1', '2019-09-17 22:46:47', '2019-09-22 23:34:14', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655421162139624', '372605421162139653', '新增权限(save)', 'save', '1', '51', '1', '2019-09-17 22:46:47', '2019-09-22 23:34:14', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655421162139625', '372605421162139653', '新增权限(update)', 'update', '1', '52', '1', '2019-09-17 22:46:47', '2019-09-22 23:34:14', '', ''); INSERT INTO `tbl_dict_data` VALUES ('372655421162139626', '372605421162139653', '删除权限(delete)', 'delete', '1', '53', '1', '2019-09-17 22:46:47', '2019-09-22 23:34:14', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162139231', '0', '技术部', '一级部门', '', '0', '', '', '1', '1', '50', '1', '2019-09-16 20:29:30', '2019-09-26 05:10:37', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162139232', '372655422162139231', 'vue', '技术部', '', '1', '', '', '0', '1', '50', '1', '2019-09-16 20:30:19', '2019-09-28 22:35:29', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162139233', '372655422162139231', 'java', '技术部', '', '1', '', '', '0', '1', '50', '1', '2019-09-16 20:30:19', '2019-09-28 22:35:29', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162149256', '0', '销售部', '一级部门', '', '0', '', '', '1', '1', '50', '1', '2019-09-16 20:38:21', '2019-09-26 05:10:37', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162153215', '372655422162149256', '销售1部', '销售部', '', '1', '', '', '0', '1', '50', '1', '2019-09-16 20:38:37', '2019-09-26 05:41:28', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162153216', '372655422162149256', '销售2部', '销售部', '', '1', '', '', '0', '1', '50', '1', '2019-09-16 20:38:42', '2019-09-26 05:41:28', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162156722', '0', '行政部', '一级部门', '', '0', '', '', '0', '1', '50', '1', '2019-09-16 20:39:06', '2019-09-26 06:23:12', '', ''); INSERT INTO `tbl_department` VALUES ('372655422162156723', '0', '财务部', '一级部门', '', '0', '', '', '0', '1', '50', '1', '2019-09-17 03:05:09', '2019-09-26 05:10:37', '', ''); DROP TABLE IF EXISTS `act_evt_log`; CREATE TABLE `act_evt_log` ( `LOG_NR_` bigint(20) NOT NULL AUTO_INCREMENT, `TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TIME_STAMP_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DATA_` longblob, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, `IS_PROCESSED_` tinyint(4) DEFAULT '0', PRIMARY KEY (`LOG_NR_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ge_bytearray -- ---------------------------- DROP TABLE IF EXISTS `act_ge_bytearray`; CREATE TABLE `act_ge_bytearray` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `BYTES_` longblob, `GENERATED_` tinyint(4) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_FK_BYTEARR_DEPL` (`DEPLOYMENT_ID_`), CONSTRAINT `ACT_FK_BYTEARR_DEPL` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ge_property -- ---------------------------- DROP TABLE IF EXISTS `act_ge_property`; CREATE TABLE `act_ge_property` ( `NAME_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `VALUE_` varchar(300) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, PRIMARY KEY (`NAME_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_actinst -- ---------------------------- DROP TABLE IF EXISTS `act_hi_actinst`; CREATE TABLE `act_hi_actinst` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `ACT_ID_` varchar(255) COLLATE utf8_bin NOT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CALL_PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ACT_TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) NOT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_ACT_INST_START` (`START_TIME_`), KEY `ACT_IDX_HI_ACT_INST_END` (`END_TIME_`), KEY `ACT_IDX_HI_ACT_INST_PROCINST` (`PROC_INST_ID_`,`ACT_ID_`), KEY `ACT_IDX_HI_ACT_INST_EXEC` (`EXECUTION_ID_`,`ACT_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_attachment -- ---------------------------- DROP TABLE IF EXISTS `act_hi_attachment`; CREATE TABLE `act_hi_attachment` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `URL_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CONTENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TIME_` datetime(3) DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_comment -- ---------------------------- DROP TABLE IF EXISTS `act_hi_comment`; CREATE TABLE `act_hi_comment` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TIME_` datetime(3) NOT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACTION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `MESSAGE_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `FULL_MSG_` longblob, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_detail -- ---------------------------- DROP TABLE IF EXISTS `act_hi_detail`; CREATE TABLE `act_hi_detail` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `VAR_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, `TIME_` datetime(3) NOT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_DETAIL_PROC_INST` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_DETAIL_ACT_INST` (`ACT_INST_ID_`), KEY `ACT_IDX_HI_DETAIL_TIME` (`TIME_`), KEY `ACT_IDX_HI_DETAIL_NAME` (`NAME_`), KEY `ACT_IDX_HI_DETAIL_TASK_ID` (`TASK_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_identitylink -- ---------------------------- DROP TABLE IF EXISTS `act_hi_identitylink`; CREATE TABLE `act_hi_identitylink` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `GROUP_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_IDENT_LNK_USER` (`USER_ID_`), KEY `ACT_IDX_HI_IDENT_LNK_TASK` (`TASK_ID_`), KEY `ACT_IDX_HI_IDENT_LNK_PROCINST` (`PROC_INST_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_procinst -- ---------------------------- DROP TABLE IF EXISTS `act_hi_procinst`; CREATE TABLE `act_hi_procinst` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `BUSINESS_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `START_TIME_` datetime(3) NOT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `START_USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `END_ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUPER_PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), UNIQUE KEY `PROC_INST_ID_` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_PRO_INST_END` (`END_TIME_`), KEY `ACT_IDX_HI_PRO_I_BUSKEY` (`BUSINESS_KEY_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_taskinst -- ---------------------------- DROP TABLE IF EXISTS `act_hi_taskinst`; CREATE TABLE `act_hi_taskinst` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `START_TIME_` datetime(3) NOT NULL, `CLAIM_TIME_` datetime(3) DEFAULT NULL, `END_TIME_` datetime(3) DEFAULT NULL, `DURATION_` bigint(20) DEFAULT NULL, `DELETE_REASON_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `PRIORITY_` int(11) DEFAULT NULL, `DUE_DATE_` datetime(3) DEFAULT NULL, `FORM_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_TASK_INST_PROCINST` (`PROC_INST_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_hi_varinst -- ---------------------------- DROP TABLE IF EXISTS `act_hi_varinst`; CREATE TABLE `act_hi_varinst` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `VAR_TYPE_` varchar(100) COLLATE utf8_bin DEFAULT NULL, `REV_` int(11) DEFAULT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` datetime(3) DEFAULT NULL, `LAST_UPDATED_TIME_` datetime(3) DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_HI_PROCVAR_PROC_INST` (`PROC_INST_ID_`), KEY `ACT_IDX_HI_PROCVAR_NAME_TYPE` (`NAME_`,`VAR_TYPE_`), KEY `ACT_IDX_HI_PROCVAR_TASK_ID` (`TASK_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_id_group -- ---------------------------- DROP TABLE IF EXISTS `act_id_group`; CREATE TABLE `act_id_group` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_id_info -- ---------------------------- DROP TABLE IF EXISTS `act_id_info`; CREATE TABLE `act_id_info` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `USER_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `VALUE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PASSWORD_` longblob, `PARENT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_id_membership -- ---------------------------- DROP TABLE IF EXISTS `act_id_membership`; CREATE TABLE `act_id_membership` ( `USER_ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `GROUP_ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (`USER_ID_`,`GROUP_ID_`), KEY `ACT_FK_MEMB_GROUP` (`GROUP_ID_`), CONSTRAINT `ACT_FK_MEMB_GROUP` FOREIGN KEY (`GROUP_ID_`) REFERENCES `act_id_group` (`ID_`), CONSTRAINT `ACT_FK_MEMB_USER` FOREIGN KEY (`USER_ID_`) REFERENCES `act_id_user` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_id_user -- ---------------------------- DROP TABLE IF EXISTS `act_id_user`; CREATE TABLE `act_id_user` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `FIRST_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LAST_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EMAIL_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PWD_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PICTURE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_procdef_info -- ---------------------------- DROP TABLE IF EXISTS `act_procdef_info`; CREATE TABLE `act_procdef_info` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `INFO_JSON_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), UNIQUE KEY `ACT_UNIQ_INFO_PROCDEF` (`PROC_DEF_ID_`), KEY `ACT_IDX_INFO_PROCDEF` (`PROC_DEF_ID_`), KEY `ACT_FK_INFO_JSON_BA` (`INFO_JSON_ID_`), CONSTRAINT `ACT_FK_INFO_JSON_BA` FOREIGN KEY (`INFO_JSON_ID_`) REFERENCES `act_ge_bytearray` (`ID_`), CONSTRAINT `ACT_FK_INFO_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_re_deployment -- ---------------------------- DROP TABLE IF EXISTS `act_re_deployment`; CREATE TABLE `act_re_deployment` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `DEPLOY_TIME_` timestamp(3) NULL DEFAULT NULL, PRIMARY KEY (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_re_model -- ---------------------------- DROP TABLE IF EXISTS `act_re_model`; CREATE TABLE `act_re_model` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `LAST_UPDATE_TIME_` timestamp(3) NULL DEFAULT NULL, `VERSION_` int(11) DEFAULT NULL, `META_INFO_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EDITOR_SOURCE_VALUE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EDITOR_SOURCE_EXTRA_VALUE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_FK_MODEL_SOURCE` (`EDITOR_SOURCE_VALUE_ID_`), KEY `ACT_FK_MODEL_SOURCE_EXTRA` (`EDITOR_SOURCE_EXTRA_VALUE_ID_`), KEY `ACT_FK_MODEL_DEPLOYMENT` (`DEPLOYMENT_ID_`), CONSTRAINT `ACT_FK_MODEL_DEPLOYMENT` FOREIGN KEY (`DEPLOYMENT_ID_`) REFERENCES `act_re_deployment` (`ID_`), CONSTRAINT `ACT_FK_MODEL_SOURCE` FOREIGN KEY (`EDITOR_SOURCE_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`ID_`), CONSTRAINT `ACT_FK_MODEL_SOURCE_EXTRA` FOREIGN KEY (`EDITOR_SOURCE_EXTRA_VALUE_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_re_procdef -- ---------------------------- DROP TABLE IF EXISTS `act_re_procdef`; CREATE TABLE `act_re_procdef` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `KEY_` varchar(255) COLLATE utf8_bin NOT NULL, `VERSION_` int(11) NOT NULL, `DEPLOYMENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `RESOURCE_NAME_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DGRM_RESOURCE_NAME_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `HAS_START_FORM_KEY_` tinyint(4) DEFAULT NULL, `HAS_GRAPHICAL_NOTATION_` tinyint(4) DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), UNIQUE KEY `ACT_UNIQ_PROCDEF` (`KEY_`,`VERSION_`,`TENANT_ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_event_subscr -- ---------------------------- DROP TABLE IF EXISTS `act_ru_event_subscr`; CREATE TABLE `act_ru_event_subscr` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `EVENT_TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `EVENT_NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACTIVITY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `CONFIGURATION_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `CREATED_` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_IDX_EVENT_SUBSCR_CONFIG_` (`CONFIGURATION_`), KEY `ACT_FK_EVENT_EXEC` (`EXECUTION_ID_`), CONSTRAINT `ACT_FK_EVENT_EXEC` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_execution -- ---------------------------- DROP TABLE IF EXISTS `act_ru_execution`; CREATE TABLE `act_ru_execution` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `BUSINESS_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `SUPER_EXEC_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `ACT_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `IS_ACTIVE_` tinyint(4) DEFAULT NULL, `IS_CONCURRENT_` tinyint(4) DEFAULT NULL, `IS_SCOPE_` tinyint(4) DEFAULT NULL, `IS_EVENT_SCOPE_` tinyint(4) DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `CACHED_ENT_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `LOCK_TIME_` timestamp(3) NULL DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_EXEC_BUSKEY` (`BUSINESS_KEY_`), KEY `ACT_FK_EXE_PROCINST` (`PROC_INST_ID_`), KEY `ACT_FK_EXE_PARENT` (`PARENT_ID_`), KEY `ACT_FK_EXE_SUPER` (`SUPER_EXEC_`), KEY `ACT_FK_EXE_PROCDEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_EXE_PARENT` FOREIGN KEY (`PARENT_ID_`) REFERENCES `act_ru_execution` (`ID_`), CONSTRAINT `ACT_FK_EXE_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`), CONSTRAINT `ACT_FK_EXE_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `ACT_FK_EXE_SUPER` FOREIGN KEY (`SUPER_EXEC_`) REFERENCES `act_ru_execution` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_identitylink -- ---------------------------- DROP TABLE IF EXISTS `act_ru_identitylink`; CREATE TABLE `act_ru_identitylink` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `GROUP_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `USER_ID_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_IDENT_LNK_USER` (`USER_ID_`), KEY `ACT_IDX_IDENT_LNK_GROUP` (`GROUP_ID_`), KEY `ACT_IDX_ATHRZ_PROCEDEF` (`PROC_DEF_ID_`), KEY `ACT_FK_TSKASS_TASK` (`TASK_ID_`), KEY `ACT_FK_IDL_PROCINST` (`PROC_INST_ID_`), CONSTRAINT `ACT_FK_ATHRZ_PROCEDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`), CONSTRAINT `ACT_FK_IDL_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`), CONSTRAINT `ACT_FK_TSKASS_TASK` FOREIGN KEY (`TASK_ID_`) REFERENCES `act_ru_task` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_job -- ---------------------------- DROP TABLE IF EXISTS `act_ru_job`; CREATE TABLE `act_ru_job` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `LOCK_EXP_TIME_` timestamp(3) NULL DEFAULT NULL, `LOCK_OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `EXCLUSIVE_` tinyint(1) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROCESS_INSTANCE_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `RETRIES_` int(11) DEFAULT NULL, `EXCEPTION_STACK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `EXCEPTION_MSG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `DUEDATE_` timestamp(3) NULL DEFAULT NULL, `REPEAT_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_TYPE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `HANDLER_CFG_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', PRIMARY KEY (`ID_`), KEY `ACT_FK_JOB_EXCEPTION` (`EXCEPTION_STACK_ID_`), CONSTRAINT `ACT_FK_JOB_EXCEPTION` FOREIGN KEY (`EXCEPTION_STACK_ID_`) REFERENCES `act_ge_bytearray` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_task -- ---------------------------- DROP TABLE IF EXISTS `act_ru_task`; CREATE TABLE `act_ru_task` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `REV_` int(11) DEFAULT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_DEF_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `NAME_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `PARENT_TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DESCRIPTION_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TASK_DEF_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `OWNER_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `ASSIGNEE_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `DELEGATION_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PRIORITY_` int(11) DEFAULT NULL, `CREATE_TIME_` timestamp(3) NULL DEFAULT NULL, `DUE_DATE_` datetime(3) DEFAULT NULL, `CATEGORY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, `SUSPENSION_STATE_` int(11) DEFAULT NULL, `TENANT_ID_` varchar(255) COLLATE utf8_bin DEFAULT '', `FORM_KEY_` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_TASK_CREATE` (`CREATE_TIME_`), KEY `ACT_FK_TASK_EXE` (`EXECUTION_ID_`), KEY `ACT_FK_TASK_PROCINST` (`PROC_INST_ID_`), KEY `ACT_FK_TASK_PROCDEF` (`PROC_DEF_ID_`), CONSTRAINT `ACT_FK_TASK_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`), CONSTRAINT `ACT_FK_TASK_PROCDEF` FOREIGN KEY (`PROC_DEF_ID_`) REFERENCES `act_re_procdef` (`ID_`), CONSTRAINT `ACT_FK_TASK_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ---------------------------- -- Table structure for act_ru_variable -- ---------------------------- DROP TABLE IF EXISTS `act_ru_variable`; CREATE TABLE `act_ru_variable` ( `ID_` varchar(64) COLLATE utf8_bin NOT NULL, `REV_` int(11) DEFAULT NULL, `TYPE_` varchar(255) COLLATE utf8_bin NOT NULL, `NAME_` varchar(255) COLLATE utf8_bin NOT NULL, `EXECUTION_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `PROC_INST_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `TASK_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `BYTEARRAY_ID_` varchar(64) COLLATE utf8_bin DEFAULT NULL, `DOUBLE_` double DEFAULT NULL, `LONG_` bigint(20) DEFAULT NULL, `TEXT_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, `TEXT2_` varchar(4000) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`ID_`), KEY `ACT_IDX_VARIABLE_TASK_ID` (`TASK_ID_`), KEY `ACT_FK_VAR_EXE` (`EXECUTION_ID_`), KEY `ACT_FK_VAR_PROCINST` (`PROC_INST_ID_`), KEY `ACT_FK_VAR_BYTEARRAY` (`BYTEARRAY_ID_`), CONSTRAINT `ACT_FK_VAR_BYTEARRAY` FOREIGN KEY (`BYTEARRAY_ID_`) REFERENCES `act_ge_bytearray` (`ID_`), CONSTRAINT `ACT_FK_VAR_EXE` FOREIGN KEY (`EXECUTION_ID_`) REFERENCES `act_ru_execution` (`ID_`), CONSTRAINT `ACT_FK_VAR_PROCINST` FOREIGN KEY (`PROC_INST_ID_`) REFERENCES `act_ru_execution` (`ID_`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for sms_admin -- ---------------------------- DROP TABLE IF EXISTS `sms_admin`; CREATE TABLE `sms_admin` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `username` varchar(120) DEFAULT NULL COMMENT '账户', `nickname` varchar(120) DEFAULT NULL COMMENT '昵称', `last_login_time` datetime DEFAULT NULL COMMENT '上次登录时间', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `status` int(1) DEFAULT NULL COMMENT '状态(0:停用,1:正常)', `password` varchar(255) DEFAULT NULL COMMENT '密码', `avatar` varchar(1024) DEFAULT NULL COMMENT '头像', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COMMENT='管理员表'; -- ---------------------------- -- Records of sms_admin -- ---------------------------- INSERT INTO `sms_admin` VALUES ('1', 'admin', 'admin', '2019-11-13 11:21:49', '2019-11-12 21:57:16', '1', '$2a$10$dHIxV4PRJ7vAT2zJ9MvEL.ofcCxyELGmj3hu9I2B18N2W08j76Mei', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('22', 'test', 'asdfasdf', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('23', 'test1', 'test1', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '0', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('24', 'test2', 'test2', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('25', 'test3', 'test3', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('26', 'test4', 'test4', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('27', 'test5', 'test5', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('28', 'test6', 'test6', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('29', 'test7', 'test7', '2019-11-21 19:44:28', '2019-11-21 19:44:34', '1', '$2a$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('30', 'test8', 'test8', '2019-11-22 11:02:15', '2019-11-22 11:02:18', '1', '$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('31', 'test9', 'test9', '2019-11-22 11:02:15', '2019-11-22 11:02:18', '1', '$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('32', 'test10', 'test10', '2019-11-22 11:02:15', '2019-11-22 11:02:18', '1', '$10$ZJHoSQhZsiqnLcug6YxJUebzcr/IBBJAbUFgwcYfugs9gqrE2krhm', 'shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('33', 'test11', 'test11', null, '2019-11-22 13:52:45', '1', '$2a$10$8Eb4iDZY0MoXZV3YVC9S..vk11K8vtQRqQrPefn4acVS.H1MvvOGm', 'shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg'); INSERT INTO `sms_admin` VALUES ('34', 'rancho', 'rancho', null, '2019-11-27 22:53:15', '1', '$2a$10$hiIDTJIT2UNDXU3YSwIENuezARCd0br2K8ZT/o4wpYn.hycA7lx/i', null); -- ---------------------------- -- Table structure for sms_admin_role -- ---------------------------- DROP TABLE IF EXISTS `sms_admin_role`; CREATE TABLE `sms_admin_role` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `admin_id` int(11) DEFAULT NULL COMMENT '管理员id', `role_id` int(11) DEFAULT NULL COMMENT '角色id', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COMMENT='管理员角色表'; -- ---------------------------- -- Records of sms_admin_role -- ---------------------------- INSERT INTO `sms_admin_role` VALUES ('26', '33', '37', '2019-11-22 17:20:15'); INSERT INTO `sms_admin_role` VALUES ('43', '34', '40', '2020-01-21 09:51:30'); INSERT INTO `sms_admin_role` VALUES ('44', '22', '1', '2020-02-24 11:36:42'); INSERT INTO `sms_admin_role` VALUES ('45', '22', '37', '2020-02-24 11:36:42'); -- ---------------------------- -- Table structure for sms_menu -- ---------------------------- DROP TABLE IF EXISTS `sms_menu`; CREATE TABLE `sms_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `pid` int(11) DEFAULT NULL COMMENT '父级id', `name` varchar(255) DEFAULT NULL COMMENT '名称', `value` varchar(255) DEFAULT NULL COMMENT '权限值', `type` int(1) DEFAULT NULL COMMENT '权限类型:0->目录;1->菜单;2->按钮(接口绑定权限)', `uri` varchar(255) DEFAULT NULL COMMENT 'uri地址', `status` int(1) DEFAULT NULL COMMENT '状态(0禁用,1启用)', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `component` varchar(255) DEFAULT NULL COMMENT '组件', `icon` varchar(512) DEFAULT NULL COMMENT 'icon', `is_hidden` int(1) DEFAULT NULL COMMENT '是否隐藏->0:否,1:是', `sort` int(3) DEFAULT NULL COMMENT '排序', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='权限表'; -- ---------------------------- -- Records of sms_menu -- ---------------------------- INSERT INTO `sms_menu` VALUES ('1', '0', '系统管理', 'system', '0', '/system', '1', '2019-11-15 10:25:18', 'Layout', 'system', '0', '1'); INSERT INTO `sms_menu` VALUES ('2', '1', '管理员', 'admin:list', '1', '/admin/list', '1', '2019-11-15 10:26:00', 'sms/admin/index', 'admin', '0', '1'); INSERT INTO `sms_menu` VALUES ('3', '1', '角色', 'role:list', '1', '/role/list', '1', '2019-11-16 12:53:54', 'sms/role/index', 'role', '0', '2'); INSERT INTO `sms_menu` VALUES ('5', '2', '添加管理员', 'admin:save', '2', '/admin/save', '1', '2019-11-21 16:31:52', '', '', '1', '1'); INSERT INTO `sms_menu` VALUES ('11', '2', '修改管理员', 'admin:update', '2', '/admin/update', '1', '2019-11-21 16:31:52', '', '', '1', '2'); INSERT INTO `sms_menu` VALUES ('12', '3', '添加角色', 'role:save', '2', '/role/save', '1', '2019-11-16 12:53:54', '', '', '1', '1'); INSERT INTO `sms_menu` VALUES ('13', '3', '修改角色', 'role:update', '2', '/role/update', '1', '2020-01-21 10:05:32', null, null, '1', '2'); INSERT INTO `sms_menu` VALUES ('14', '3', '删除角色', 'role:delete', '2', '/role/delete', '1', '2020-01-21 10:06:24', null, null, '1', '3'); INSERT INTO `sms_menu` VALUES ('15', '2', '禁用|启用管理员', 'admin:updateStatus', '2', '/admin/updateStatus', '1', '2020-01-21 10:08:11', null, null, '1', '3'); -- ---------------------------- -- Table structure for sms_role -- ---------------------------- DROP TABLE IF EXISTS `sms_role`; CREATE TABLE `sms_role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL COMMENT '名称', `description` varchar(255) DEFAULT NULL COMMENT '描述', `status` int(1) DEFAULT NULL COMMENT '状态(0禁用,1启用)', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8 COMMENT='角色表'; -- ---------------------------- -- Records of sms_role -- ---------------------------- INSERT INTO `sms_role` VALUES ('1', 'admin', '超级管理员', '1', '2019-11-15 10:26:52'); INSERT INTO `sms_role` VALUES ('37', 'test', '测试角色', '1', '2019-11-19 10:04:18'); INSERT INTO `sms_role` VALUES ('40', 'test1', 'test', '1', '2020-01-20 17:47:01'); INSERT INTO `sms_role` VALUES ('43', '而我却二群', '', '1', '2020-02-25 10:57:18'); INSERT INTO `sms_role` VALUES ('44', '1', '1', '1', '2020-02-25 10:57:42'); INSERT INTO `sms_role` VALUES ('45', 'del', 'del', '1', '2020-02-25 13:21:36'); -- ---------------------------- -- Table structure for sms_role_menu -- ---------------------------- DROP TABLE IF EXISTS `sms_role_menu`; CREATE TABLE `sms_role_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `role_id` int(11) DEFAULT NULL COMMENT '角色id', `menu_id` int(11) DEFAULT NULL COMMENT '权限id', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8 COMMENT='角色权限表'; -- ---------------------------- -- Records of sms_role_menu -- ---------------------------- INSERT INTO `sms_role_menu` VALUES ('36', '38', '1', '2019-11-22 16:22:25'); INSERT INTO `sms_role_menu` VALUES ('37', '38', '3', '2019-11-22 16:22:25'); INSERT INTO `sms_role_menu` VALUES ('49', '40', '1', '2020-01-21 09:36:24'); INSERT INTO `sms_role_menu` VALUES ('50', '40', '2', '2020-01-21 09:36:24'); INSERT INTO `sms_role_menu` VALUES ('51', '40', '11', '2020-01-21 09:36:24'); INSERT INTO `sms_role_menu` VALUES ('52', '40', '6', '2020-01-21 09:36:24'); INSERT INTO `sms_role_menu` VALUES ('53', '40', '9', '2020-01-21 09:36:24'); INSERT INTO `sms_role_menu` VALUES ('63', '44', '1', '2020-02-25 10:57:42'); INSERT INTO `sms_role_menu` VALUES ('64', '44', '2', '2020-02-25 10:57:42'); INSERT INTO `sms_role_menu` VALUES ('65', '44', '5', '2020-02-25 10:57:42'); INSERT INTO `sms_role_menu` VALUES ('66', '37', '1', '2020-02-25 12:51:20'); INSERT INTO `sms_role_menu` VALUES ('67', '37', '2', '2020-02-25 12:51:20'); INSERT INTO `sms_role_menu` VALUES ('68', '37', '5', '2020-02-25 12:51:20'); INSERT INTO `sms_role_menu` VALUES ('69', '37', '3', '2020-02-25 12:51:20'); INSERT INTO `sms_role_menu` VALUES ('79', '43', '1', '2020-02-26 10:22:10'); INSERT INTO `sms_role_menu` VALUES ('80', '43', '2', '2020-02-26 10:22:10'); INSERT INTO `sms_role_menu` VALUES ('81', '43', '11', '2020-02-26 10:22:10'); INSERT INTO `sms_role_menu` VALUES ('82', '43', '15', '2020-02-26 10:22:10'); INSERT INTO `sms_role_menu` VALUES ('83', '45', '1', '2020-02-26 11:57:21'); INSERT INTO `sms_role_menu` VALUES ('84', '45', '2', '2020-02-26 11:57:21'); INSERT INTO `sms_role_menu` VALUES ('85', '45', '5', '2020-02-26 11:57:21'); INSERT INTO `sms_role_menu` VALUES ('86', '45', '11', '2020-02-26 11:57:21'); INSERT INTO `sms_role_menu` VALUES ('87', '45', '15', '2020-02-26 11:57:21');
the_stack
-- 24.09.2015 18:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540577,TO_TIMESTAMP('2015-09-24 18:23:39','YYYY-MM-DD HH24:MI:SS'),100,'Auftrag','de.metas.swat','Y','N','M_InOutSO DRAFT INCLUDED',TO_TIMESTAMP('2015-09-24 18:23:39','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 24.09.2015 18:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540577 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 24.09.2015 18:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3791,3521,0,540577,319,TO_TIMESTAMP('2015-09-24 18:24:38','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-24 18:24:38','YYYY-MM-DD HH24:MI:SS'),100,' 1=2') ; -- 24.09.2015 18:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference SET Description=NULL,Updated=TO_TIMESTAMP('2015-09-24 18:24:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 24.09.2015 18:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=540577 ; -- 24.09.2015 18:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_Reference_Source_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,Description,EntityType,IsActive,IsDirected,IsExplicit,Name,Role_Source,Role_Target,Updated,UpdatedBy) VALUES (0,0,540577,540565,540128,TO_TIMESTAMP('2015-09-24 18:26:06','YYYY-MM-DD HH24:MI:SS'),100,NULL,'de.metas.swat','Y','Y','N','M_InOut -> Invoice (SO)','Invoice','Order',TO_TIMESTAMP('2015-09-24 18:26:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 24.09.2015 18:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540578,TO_TIMESTAMP('2015-09-24 18:26:38','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','RelType M_InOut -> Invoice SO',TO_TIMESTAMP('2015-09-24 18:26:38','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 24.09.2015 18:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540578 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 24.09.2015 18:27 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3492,3484,0,540578,318,TO_TIMESTAMP('2015-09-24 18:27:38','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-24 18:27:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 25.09.2015 12:07 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=167, WhereClause='ISSOTRX = ''Y''',Updated=TO_TIMESTAMP('2015-09-25 12:07:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540578 ; -- 25.09.2015 12:08 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Target_ID=540578, Role_Source=NULL, Role_Target=NULL,Updated=TO_TIMESTAMP('2015-09-25 12:08:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540128 ; -- 25.09.2015 12:08 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference SET Description='false condition', Name='M_InOut DRAFT INCLUDED',Updated=TO_TIMESTAMP('2015-09-25 12:08:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 25.09.2015 12:08 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=540577 ; -- 25.09.2015 12:09 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540579,TO_TIMESTAMP('2015-09-25 12:09:06','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','RelType M_InOut -> Invoice PO',TO_TIMESTAMP('2015-09-25 12:09:06','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 12:09 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540579 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 12:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_Reference_Source_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,IsExplicit,Name,Updated,UpdatedBy) VALUES (0,0,540577,540578,540129,TO_TIMESTAMP('2015-09-25 12:24:24','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','Y','N','M_InOut -> Invoice (PO)',TO_TIMESTAMP('2015-09-25 12:24:24','YYYY-MM-DD HH24:MI:SS'),100) ; UPDATE AD_RelationType SET AD_Reference_TARGET_ID=540579 WHERE AD_RelationType_ID=540129; -- 25.09.2015 14:31 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3492,3484,0,540579,318,TO_TIMESTAMP('2015-09-25 14:31:11','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 14:31:11','YYYY-MM-DD HH24:MI:SS'),100,'ISSOTRX = ''N''') ; -- 25.09.2015 14:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,IsExplicit,Name,Updated,UpdatedBy) VALUES (0,0,540130,TO_TIMESTAMP('2015-09-25 14:32:14','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','N','C_Invoice -> M_InOut (SO)',TO_TIMESTAMP('2015-09-25 14:32:14','YYYY-MM-DD HH24:MI:SS'),100) ; -- 25.09.2015 14:54 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540571,Updated=TO_TIMESTAMP('2015-09-25 14:54:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540130 ; -- 25.09.2015 14:54 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference SET Name='C_Invoice SO TO Order DRAFT INCLUDED',Updated=TO_TIMESTAMP('2015-09-25 14:54:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540571 ; -- 25.09.2015 14:54 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=540571 ; -- 25.09.2015 14:55 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference SET Name='C_Invoice SO -> Order DRAFT INCLUDED',Updated=TO_TIMESTAMP('2015-09-25 14:55:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540571 ; -- 25.09.2015 14:55 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=540571 ; -- 25.09.2015 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540583,TO_TIMESTAMP('2015-09-25 15:10:08','YYYY-MM-DD HH24:MI:SS'),100,'Ausgangsrechnung','de.metas.swat','Y','N','C_Invoice SO -> M_InOut DRAFT INCLUDED',TO_TIMESTAMP('2015-09-25 15:10:08','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 15:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540583 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 15:11 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3484,0,540583,318,TO_TIMESTAMP('2015-09-25 15:11:05','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 15:11:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 25.09.2015 15:15 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='C_Invoice.IsSOTrx=''Y'' AND EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID WHERE (il.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = ''Y'' AND il.C_Invoice_ID = C_Invoice.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-25 15:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 25.09.2015 15:15 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540583,Updated=TO_TIMESTAMP('2015-09-25 15:15:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540124 ; -- 25.09.2015 15:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540584,TO_TIMESTAMP('2015-09-25 15:32:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','RelType C_Invoice -> M_InOut (SO)',TO_TIMESTAMP('2015-09-25 15:32:40','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 15:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540584 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 16:44 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3521,0,540584,319,TO_TIMESTAMP('2015-09-25 16:44:57','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 16:44:57','YYYY-MM-DD HH24:MI:SS'),100,' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR M_InOut.M_InOut_ID = @M_InOut_ID/-1@ ) AND i.IsSOTrx = M_InOut.IsSOTrx AND i.IsSOTrx = ''Y'' )') ; -- 25.09.2015 16:45 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Target_ID=540584,Updated=TO_TIMESTAMP('2015-09-25 16:45:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540124 ; -- 25.09.2015 16:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540571,Updated=TO_TIMESTAMP('2015-09-25 16:46:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540124 ; -- 25.09.2015 16:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540583,Updated=TO_TIMESTAMP('2015-09-25 16:46:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540130 ; -- 25.09.2015 16:47 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Target_ID=540567,Updated=TO_TIMESTAMP('2015-09-25 16:47:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540124 ; -- 25.09.2015 16:47 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Target_ID=540584,Updated=TO_TIMESTAMP('2015-09-25 16:47:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540130 ; -- 25.09.2015 16:47 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,IsExplicit,Name,Updated,UpdatedBy) VALUES (0,0,540131,TO_TIMESTAMP('2015-09-25 16:47:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','N','C_Invoice -> M_InOut (PO)',TO_TIMESTAMP('2015-09-25 16:47:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 25.09.2015 16:52 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540585,TO_TIMESTAMP('2015-09-25 16:52:17','YYYY-MM-DD HH24:MI:SS'),100,'Ausgangsrechnung','de.metas.swat','Y','N','C_Invoice PO -> M_InOut DRAFT INCLUDED',TO_TIMESTAMP('2015-09-25 16:52:17','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 16:52 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540585 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 16:53 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3484,0,540585,318,TO_TIMESTAMP('2015-09-25 16:53:01','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 16:53:01','YYYY-MM-DD HH24:MI:SS'),100,'C_Invoice.IsSOTrx=''N'' AND EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID WHERE (il.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = ''N'' AND il.C_Invoice_ID = C_Invoice.C_Invoice_ID )') ; -- 25.09.2015 16:53 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=NULL,Updated=TO_TIMESTAMP('2015-09-25 16:53:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540130 ; -- 25.09.2015 16:53 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540583,Updated=TO_TIMESTAMP('2015-09-25 16:53:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540130 ; -- 25.09.2015 16:53 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540585,Updated=TO_TIMESTAMP('2015-09-25 16:53:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540131 ; -- 25.09.2015 16:57 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540586,TO_TIMESTAMP('2015-09-25 16:57:07','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','RelType C_Invoice -> M_InOut (PO)',TO_TIMESTAMP('2015-09-25 16:57:07','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 16:57 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540586 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 16:57 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3521,0,540586,319,TO_TIMESTAMP('2015-09-25 16:57:39','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 16:57:39','YYYY-MM-DD HH24:MI:SS'),100,' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR M_InOut.M_InOut_ID = @M_InOut_ID/-1@ ) AND i.IsSOTrx = M_InOut.IsSOTrx AND i.IsSOTrx = ''N'' )') ; -- 25.09.2015 16:58 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Target_ID=540586,Updated=TO_TIMESTAMP('2015-09-25 16:58:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540131 ; -- 25.09.2015 16:58 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=184,Updated=TO_TIMESTAMP('2015-09-25 16:58:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540586 ; -- 25.09.2015 16:59 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=169,Updated=TO_TIMESTAMP('2015-09-25 16:59:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540584 ; -- 25.09.2015 16:59 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=183,Updated=TO_TIMESTAMP('2015-09-25 16:59:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540579 ; -- 25.09.2015 17:19 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=184,Updated=TO_TIMESTAMP('2015-09-25 17:19:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 25.09.2015 17:19 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2015-09-25 17:19:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 25.09.2015 17:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='c_invoice.ISSOTRX =@IsSoTrx@',Updated=TO_TIMESTAMP('2015-09-25 17:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540578 ; -- 25.09.2015 17:44 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='c_invoice.ISSOTRX =@IsSoTrx@',Updated=TO_TIMESTAMP('2015-09-25 17:44:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540579 ; -- 25.09.2015 17:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540587,TO_TIMESTAMP('2015-09-25 17:46:19','YYYY-MM-DD HH24:MI:SS'),100,'false condition','de.metas.swat','Y','N','M_InOut PO DRAFT INCLUDED',TO_TIMESTAMP('2015-09-25 17:46:19','YYYY-MM-DD HH24:MI:SS'),100,'T') ; -- 25.09.2015 17:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540587 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 25.09.2015 17:49 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,3521,0,540587,319,184,TO_TIMESTAMP('2015-09-25 17:49:44','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N',TO_TIMESTAMP('2015-09-25 17:49:44','YYYY-MM-DD HH24:MI:SS'),100,'1=2') ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET AD_Reference_Source_ID=540587,Updated=TO_TIMESTAMP('2015-09-25 17:50:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540129 ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference SET Name='M_InOut SO DRAFT INCLUDED',Updated=TO_TIMESTAMP('2015-09-25 17:50:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=540577 ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=169,Updated=TO_TIMESTAMP('2015-09-25 17:50:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=167,Updated=TO_TIMESTAMP('2015-09-25 17:50:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 25.09.2015 17:50 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET AD_Window_ID=183,Updated=TO_TIMESTAMP('2015-09-25 17:50:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 12:21 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='C_Invoice.IsSOTrx=@IsSoTrx@ AND EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID WHERE (il.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = @IsSoTrx@ AND il.C_Invoice_ID = C_Invoice.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 12:21:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 13:13 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET Name='C_Order -> Invoice (SO)',Updated=TO_TIMESTAMP('2015-09-28 13:13:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540128 ; -- 28.09.2015 13:15 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN C_OrderLine ol on il.C_OrderLine_ID = ol.C_OrderLine_ID WHERE C_Order.C_Order_ID = ol.C_Order_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR C_Order.C_Order_ID = @C_Order_ID/-1@ ) AND i.IsSOTrx = C_Order.IsSOTrx AND i.IsSOTrx = ''Y'' )',Updated=TO_TIMESTAMP('2015-09-28 13:15:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540567 ; -- 28.09.2015 13:19 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID WHERE (il.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = ''N'' AND il.C_Invoice_ID = C_Invoice.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 13:19:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 13:56 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i ON il.c_invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) AND i.C_Invoice_ID = C_Invoice.C_Invoice_ID AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = @IsSoTrx@ )',Updated=TO_TIMESTAMP('2015-09-28 13:56:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 13:58 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET Name='M_InOut -> Invoice (SO)',Updated=TO_TIMESTAMP('2015-09-28 13:58:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540128 ; -- 28.09.2015 15:05 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET IsActive='N',Updated=TO_TIMESTAMP('2015-09-28 15:05:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=1000003 ; -- 28.09.2015 16:20 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i ON il.c_invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID=@C_Invoice_ID/-1@) OR (io.M_InOut_ID = @M_InOut_ID/-1@) )',Updated=TO_TIMESTAMP('2015-09-28 16:20:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID WHERE (io.M_InOut_ID = @M_InOut_ID/-1@) AND C_Invoice.IsSOTrx = io.IsSOTrx AND C_Invoice.IsSOTrx = ''N'' AND il.C_Invoice_ID = C_Invoice.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 16:23:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 16:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID AND ( M_InOut.M_InOut_ID = @M_InOut_ID/-1@ ) AND i.IsSOTrx = M_InOut.IsSOTrx AND i.IsSOTrx = ''N'' )',Updated=TO_TIMESTAMP('2015-09-28 16:23:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540586 ; -- 28.09.2015 16:29 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i ON il.c_invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID=@C_Invoice_ID/-1@) )',Updated=TO_TIMESTAMP('2015-09-28 16:29:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:31 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i ON il.c_invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID=@C_Invoice_ID/-1@) )',Updated=TO_TIMESTAMP('2015-09-28 16:31:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='C_Invoice.IsSOTrx=''Y'' AND EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i ON il.c_invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID=@C_Invoice_ID/-1@) )',Updated=TO_TIMESTAMP('2015-09-28 16:32:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:33 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID AND ( M_InOut.M_InOut_ID = @M_InOut_ID/-1@ ) AND i.IsSOTrx = M_InOut.IsSOTrx AND i.IsSOTrx = ''Y'' )',Updated=TO_TIMESTAMP('2015-09-28 16:33:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540584 ; -- 28.09.2015 16:37 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='M_InOut.IsSoTrx = @IsSoTrx@',Updated=TO_TIMESTAMP('2015-09-28 16:37:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540577 ; -- 28.09.2015 16:37 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET IsDirected='N',Updated=TO_TIMESTAMP('2015-09-28 16:37:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540128 ; -- 28.09.2015 16:38 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_RelationType SET IsDirected='Y',Updated=TO_TIMESTAMP('2015-09-28 16:38:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540128 ; -- 28.09.2015 16:40 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID and io. M_InOut_ID = @M_InOut_ID/-1@ )',Updated=TO_TIMESTAMP('2015-09-28 16:40:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:41 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID and io.M_InOut_ID = @M_InOut_ID/-1@ )',Updated=TO_TIMESTAMP('2015-09-28 16:41:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:41 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID and io.M_InOut_ID = @M_InOut_ID/-1@ )',Updated=TO_TIMESTAMP('2015-09-28 16:41:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:43 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 16:43:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 16:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@ ) )',Updated=TO_TIMESTAMP('2015-09-28 16:46:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 17:46 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i on il.C_Invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@) AND i = io.IsSOTrx AND i.IsSOTrx = ''N'' AND il.C_Invoice_ID =i.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 17:46:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 17:47 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i on il.C_Invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@) AND i.IsSoTrx = io.IsSOTrx AND i.IsSOTrx = ''N'' AND il.C_Invoice_ID =i.C_Invoice_ID )',Updated=TO_TIMESTAMP('2015-09-28 17:47:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 17:49 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='EXISTS ( SELECT 1 FROM M_InOut io LEFT JOIN M_InOutLine iol ON io.M_InOut_ID = iol.M_InOut_ID LEFT JOIN C_InvoiceLine il ON il.M_InOutline_ID = iol.M_InOutline_ID JOIN C_Invoice i on il.C_Invoice_ID = i.C_Invoice_ID WHERE (i.C_Invoice_ID = @C_Invoice_ID/-1@ ) AND i.IsSoTrx = io.IsSOTrx AND i.IsSOTrx = ''N'' )',Updated=TO_TIMESTAMP('2015-09-28 17:49:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 17:53 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@ ) )',Updated=TO_TIMESTAMP('2015-09-28 17:53:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 17:54 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause='M_InOut.IsSoTrx = @IsSoTrx@',Updated=TO_TIMESTAMP('2015-09-28 17:54:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540587 ; -- 28.09.2015 17:58 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@ ) AND io.issotrx = i.issotrx and io.issotrx = ''Y'' )',Updated=TO_TIMESTAMP('2015-09-28 17:58:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540583 ; -- 28.09.2015 17:58 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE C_Invoice.C_Invoice_ID = i.C_Invoice_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@ ) AND io.issotrx = i.issotrx and io.issotrx = ''N'' )',Updated=TO_TIMESTAMP('2015-09-28 17:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540585 ; -- 28.09.2015 18:03 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i JOIN C_InvoiceLine il on i.C_Invoice_ID = il.C_Invoice_ID JOIN M_InOutLine iol on il.M_InOutline_ID = iol.M_InOutline_ID JOIN M_InOut io on iol.M_InOut_ID = io.M_InOut_ID WHERE M_InOut.M_InOut_ID = io.M_InOut_ID AND ( i.C_Invoice_ID = @C_Invoice_ID/-1@ OR io.M_InOut_ID = @M_InOut_ID/-1@ ) AND i.IsSOTrx = M_InOut.IsSOTrx AND i.IsSOTrx = ''N'' )',Updated=TO_TIMESTAMP('2015-09-28 18:03:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540586 ;
the_stack
-- New configuration column "escalate" to provide alert escalation capability. Allows for when a job fails at a certain alert level a given number of times, the alert level in the monitoring is raised to the next level up. (Experimental. Please provide feedback) -- Adjust monitor trigger on job_log table to be able to handle custom alert codes better. -- Included alert_text value in description returned by check_job_status to make it clearer how many of each alert status occurred. -- Fixed pgTAP tests to pass properly and account for new return values. Added tests for escalation. ALTER TABLE @extschema@.job_check_config ADD escalate int; /* * Escalation trigger to cause the alert_code value of job_check_log to be higher than the originally inserted value * if the escalation policy is set and the number of failed jobs exceeds the configured value */ CREATE FUNCTION job_check_log_escalate_trig() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE v_count int; v_escalate int; v_highest_logged_alert_code int; v_max_alert_code int; v_step_id bigint; BEGIN SELECT escalate INTO v_escalate FROM @extschema@.job_check_config WHERE job_name = NEW.job_name; IF v_escalate IS NOT NULL THEN -- Only get the count of the highest number of failures for an alert code for a specific job SELECT count(job_name) , alert_code INTO v_count , v_highest_logged_alert_code FROM @extschema@.job_check_log WHERE job_name = NEW.job_name GROUP BY job_name, alert_code ORDER BY alert_code DESC LIMIT 1 ; -- Ensure new alert codes are always equal to at least the last escalated value IF v_highest_logged_alert_code > NEW.alert_code THEN NEW.alert_code = v_highest_logged_alert_code; END IF; -- +1 to ensure the insertion that matches the v_escalate value triggers the escalation, not the next insertion IF v_count + 1 >= v_escalate THEN SELECT max(alert_code) INTO v_max_alert_code FROM @extschema@.job_status_text; IF NEW.alert_code < v_max_alert_code THEN -- Don't exceed the highest configured alert code NEW.alert_code = NEW.alert_code + 1; -- Log that alert code was escalated by the last job that failed EXECUTE 'SELECT @extschema@.add_step('||NEW.job_id||', ''ALERT ESCALATION'')' INTO v_step_id; EXECUTE 'SELECT @extschema@.update_step('||v_step_id||', ''ESCALATE'', ''Job has alerted at level '||NEW.alert_code - 1 ||' in excess of the escalate value configured for this job ('||v_escalate|| '). Alert code value has been escaleted to: '||NEW.alert_code||''')'; EXECUTE 'UPDATE @extschema@.job_log SET status = ''ESCALATED'' WHERE job_id = '||NEW.job_id; END IF; END IF; END IF; RETURN NEW; END $$; CREATE TRIGGER job_check_log_escalate_trig BEFORE INSERT ON @extschema@.job_check_log FOR EACH ROW EXECUTE PROCEDURE job_check_log_escalate_trig(); /* * Job Monitor Trigger */ CREATE OR REPLACE FUNCTION job_monitor() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE v_alert_code int; BEGIN SELECT alert_code INTO v_alert_code FROM @extschema@.job_status_text WHERE alert_text = NEW.status; IF v_alert_code IS NOT NULL THEN IF v_alert_code = 1 THEN DELETE FROM @extschema@.job_check_log WHERE job_name = NEW.job_name; ELSE INSERT INTO @extschema@.job_check_log (job_id, job_name, alert_code) VALUES (NEW.job_id, NEW.job_name, v_alert_code); END IF; END IF; RETURN NULL; END $$; /* * Check Job status * * p_history is how far into job_log's past the check will go. Don't go further back than the longest job's interval that is contained * in job_check_config to keep check efficient * Return code 1 means a successful job run * Return code 2 is for use with jobs that support a warning indicator. Not critical, but someone should look into it * Return code 3 is for use with a critical job failure */ CREATE OR REPLACE FUNCTION check_job_status(p_history interval, OUT alert_code int, OUT alert_status text, OUT job_name text, OUT alert_text text) RETURNS SETOF record LANGUAGE plpgsql AS $$ DECLARE v_count int = 1; v_longest_period interval; v_row record; v_rowcount int; v_problem_count int := 0; v_version int; BEGIN -- Leave this check here in case helper function isn't used and this is called directly with an interval argument SELECT greatest(max(error_threshold), max(warn_threshold)) INTO v_longest_period FROM @extschema@.job_check_config; IF v_longest_period IS NOT NULL THEN IF p_history < v_longest_period THEN RAISE EXCEPTION 'Input argument must be greater than or equal to the longest threshold in job_check_config table'; END IF; END IF; SELECT current_setting('server_version_num')::int INTO v_version; CREATE TEMP TABLE jobmon_check_job_status_temp (alert_code int, alert_status text, job_name text, alert_text text, pid int); -- Check for jobs with three consecutive errors and not set for any special configuration INSERT INTO jobmon_check_job_status_temp (alert_code, alert_status, job_name, alert_text) SELECT l.alert_code, 'FAILED_RUN' AS alert_status, l.job_name, '3 consecutive '||t.alert_text||' runs' AS alert_text FROM @extschema@.job_check_log l JOIN @extschema@.job_status_text t ON l.alert_code = t.alert_code WHERE l.job_name NOT IN ( SELECT c.job_name FROM @extschema@.job_check_config c ) GROUP BY l.job_name, l.alert_code, t.alert_text HAVING count(*) > 2; GET DIAGNOSTICS v_rowcount = ROW_COUNT; IF v_rowcount IS NOT NULL AND v_rowcount > 0 THEN v_problem_count := v_problem_count + 1; END IF; -- Check for jobs with specially configured sensitivity INSERT INTO jobmon_check_job_status_temp (alert_code, alert_status, job_name, alert_text) SELECT l.alert_code, 'FAILED_RUN' as alert_status, l.job_name, count(*)||' '||t.alert_text||' run(s)' AS alert_text FROM @extschema@.job_check_log l JOIN @extschema@.job_check_config c ON l.job_name = c.job_name JOIN @extschema@.job_status_text t ON l.alert_code = t.alert_code GROUP BY l.job_name, l.alert_code, t.alert_text, c.sensitivity HAVING count(*) > c.sensitivity; GET DIAGNOSTICS v_rowcount = ROW_COUNT; IF v_rowcount IS NOT NULL AND v_rowcount > 0 THEN v_problem_count := v_problem_count + 1; END IF; -- Check for missing jobs that have configured time thresholds. Jobs that have not run since before the p_history will return pid as NULL INSERT INTO jobmon_check_job_status_temp (alert_code, alert_status, job_name, alert_text, pid) SELECT CASE WHEN l.max_start IS NULL AND l.end_time IS NULL THEN 3 WHEN (CURRENT_TIMESTAMP - l.max_start) > c.error_threshold THEN 3 WHEN (CURRENT_TIMESTAMP - l.max_start) > c.warn_threshold THEN 2 ELSE 3 END AS ac , CASE WHEN (CURRENT_TIMESTAMP - l.max_start) > c.warn_threshold OR l.end_time IS NULL THEN 'MISSING' ELSE l.status END AS alert_status , c.job_name , COALESCE('Last completed run: '||l.max_end, 'Has not completed a run since highest configured monitoring time period') AS alert_text , l.pid FROM @extschema@.job_check_config c LEFT JOIN ( WITH max_start_time AS ( SELECT w.job_name, max(w.start_time) as max_start, max(w.end_time) as max_end FROM @extschema@.job_log w WHERE start_time > (CURRENT_TIMESTAMP - p_history) GROUP BY w.job_name) SELECT a.job_name, a.end_time, a.status, a.pid, m.max_start, m.max_end FROM @extschema@.job_log a JOIN max_start_time m ON a.job_name = m.job_name and a.start_time = m.max_start WHERE start_time > (CURRENT_TIMESTAMP - p_history) ) l ON c.job_name = l.job_name WHERE c.active AND (CURRENT_TIMESTAMP - l.max_start) > c.warn_threshold OR l.max_start IS NULL ORDER BY ac, l.job_name, l.max_start; GET DIAGNOSTICS v_rowcount = ROW_COUNT; IF v_rowcount IS NOT NULL AND v_rowcount > 0 THEN v_problem_count := v_problem_count + 1; END IF; -- Check for BLOCKED after RUNNING to ensure blocked jobs are labelled properly IF v_version >= 90200 THEN -- Jobs currently running that have not run before within their configured monitoring time period FOR v_row IN SELECT j.job_name FROM @extschema@.job_log j JOIN @extschema@.job_check_config c ON j.job_name = c.job_name JOIN pg_catalog.pg_stat_activity a ON j.pid = a.pid WHERE j.start_time > (CURRENT_TIMESTAMP - p_history) AND (CURRENT_TIMESTAMP - j.start_time) >= least(c.warn_threshold, c.error_threshold) AND j.end_time IS NULL LOOP UPDATE jobmon_check_job_status_temp t SET alert_status = 'RUNNING' , alert_text = (SELECT COALESCE('Currently running. Last completed run: '||max(end_time), 'Currently running. Job has not had a completed run within configured monitoring time period.') FROM @extschema@.job_log WHERE job_log.job_name = v_row.job_name AND job_log.start_time > (CURRENT_TIMESTAMP - p_history)) WHERE t.job_name = v_row.job_name; END LOOP; -- Jobs blocked by locks FOR v_row IN SELECT j.job_name FROM @extschema@.job_log j JOIN pg_catalog.pg_locks l ON j.pid = l.pid JOIN pg_catalog.pg_stat_activity a ON j.pid = a.pid WHERE j.start_time > (CURRENT_TIMESTAMP - p_history) AND NOT l.granted LOOP UPDATE jobmon_check_job_status_temp t SET alert_status = 'BLOCKED' , alert_text = COALESCE('Another transaction has a lock that blocking this job from completing') WHERE t.job_name = v_row.job_name; END LOOP; ELSE -- version less than 9.2 with old procpid column -- Jobs currently running that have not run before within their configured monitoring time period FOR v_row IN SELECT j.job_name FROM @extschema@.job_log j JOIN @extschema@.job_check_config c ON j.job_name = c.job_name JOIN pg_catalog.pg_stat_activity a ON j.pid = a.procpid WHERE j.start_time > (CURRENT_TIMESTAMP - p_history) AND (CURRENT_TIMESTAMP - j.start_time) >= least(c.warn_threshold, c.error_threshold) AND j.end_time IS NULL LOOP UPDATE jobmon_check_job_status_temp t SET alert_status = 'RUNNING' , alert_text = (SELECT COALESCE('Currently running. Last completed run: '||max(end_time), 'Currently running. Job has not had a completed run within configured monitoring time period.') FROM @extschema@.job_log WHERE job_log.job_name = v_row.job_name AND job_log.start_time > (CURRENT_TIMESTAMP - p_history)) WHERE t.job_name = v_row.job_name; END LOOP; -- Jobs blocked by locks FOR v_row IN SELECT j.job_name FROM @extschema@.job_log j JOIN pg_catalog.pg_locks l ON j.pid = l.pid JOIN pg_catalog.pg_stat_activity a ON j.pid = a.procpid WHERE j.start_time > (CURRENT_TIMESTAMP - p_history) AND NOT l.granted LOOP UPDATE jobmon_check_job_status_temp t SET alert_status = 'BLOCKED' , alert_text = COALESCE('Another transaction has a lock that blocking this job from completing') WHERE t.job_name = v_row.job_name; END LOOP; END IF; -- end version check IF IF v_problem_count > 0 THEN FOR v_row IN SELECT t.alert_code, t.alert_status, t.job_name, t.alert_text FROM jobmon_check_job_status_temp t ORDER BY alert_code DESC, job_name ASC, alert_status ASC LOOP alert_code := v_row.alert_code; alert_status := v_row.alert_status; job_name := v_row.job_name; alert_text := v_row.alert_text; RETURN NEXT; END LOOP; ELSE alert_code := 1; alert_status := 'OK'; job_name := NULL; alert_text := 'All jobs run successfully'; RETURN NEXT; END IF; DROP TABLE IF EXISTS jobmon_check_job_status_temp; END $$; /* * Helper function to allow calling without an argument. */ CREATE OR REPLACE FUNCTION check_job_status(OUT alert_code int, OUT alert_status text, OUT job_name text, OUT alert_text text) RETURNS SETOF record LANGUAGE plpgsql STABLE AS $$ DECLARE v_longest_period interval; v_row record; BEGIN -- Interval doesn't matter if nothing is in job_check_config. Just give default of 1 week. -- Still monitors for any 3 consecutive failures. SELECT COALESCE(greatest(max(error_threshold), max(warn_threshold)), '1 week') INTO v_longest_period FROM @extschema@.job_check_config; FOR v_row IN SELECT q.alert_code, q.alert_status, q.job_name, q.alert_text FROM @extschema@.check_job_status(v_longest_period) q LOOP alert_code := v_row.alert_code; alert_status := v_row.alert_status; job_name := v_row.job_name; alert_text := v_row.alert_text; RETURN NEXT; END LOOP; END $$;
the_stack
-- 01.10.2015 13:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,552760,542895,0,15,540504,'N','ValueDate',TO_TIMESTAMP('2015-10-01 13:22:43','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',7,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Datum',0,TO_TIMESTAMP('2015-10-01 13:22:43','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 01.10.2015 13:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552760 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 01.10.2015 13:22 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_HU_Attribute ADD ValueDate TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,552761,542896,0,15,540504,'N','ValueDateInitial',TO_TIMESTAMP('2015-10-01 13:23:03','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',7,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Datum (initial)',0,TO_TIMESTAMP('2015-10-01 13:23:03','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552761 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_HU_Attribute ADD ValueDateInitial TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,552760,556343,0,540512,TO_TIMESTAMP('2015-10-01 13:23:29','YYYY-MM-DD HH24:MI:SS'),100,7,'de.metas.handlingunits','Y','Y','Y','N','N','N','N','N','Datum',TO_TIMESTAMP('2015-10-01 13:23:29','YYYY-MM-DD HH24:MI:SS'),100) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=556343 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,552761,556344,0,540512,TO_TIMESTAMP('2015-10-01 13:23:29','YYYY-MM-DD HH24:MI:SS'),100,7,'de.metas.handlingunits','Y','Y','Y','N','N','N','N','N','Datum (initial)',TO_TIMESTAMP('2015-10-01 13:23:29','YYYY-MM-DD HH24:MI:SS'),100) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=556344 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2015-10-01 13:23:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556343 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2015-10-01 13:23:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556344 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2015-10-01 13:23:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552184 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2015-10-01 13:23:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556343 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2015-10-01 13:23:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556344 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2015-10-01 13:23:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552184 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2015-10-01 13:23:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556344 ; -- 01.10.2015 13:23 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2015-10-01 13:23:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556343 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2015-10-01 13:24:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556344 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80,Updated=TO_TIMESTAMP('2015-10-01 13:24:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552195 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2015-10-01 13:24:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552196 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2015-10-01 13:24:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556343 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2015-10-01 13:24:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556344 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2015-10-01 13:24:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552196 ; -- 01.10.2015 13:24 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2015-10-01 13:24:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556343 ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,552762,542895,0,15,540513,'N','ValueDate',TO_TIMESTAMP('2015-10-01 13:25:21','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',7,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Datum',0,TO_TIMESTAMP('2015-10-01 13:25:21','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552762 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_HU_Trx_Attribute ADD ValueDate TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,552763,542896,0,15,540513,'N','ValueDateInitial',TO_TIMESTAMP('2015-10-01 13:25:32','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.handlingunits',7,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Datum (initial)',0,TO_TIMESTAMP('2015-10-01 13:25:32','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=552763 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE M_HU_Trx_Attribute ADD ValueDateInitial TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,552762,556345,0,540516,TO_TIMESTAMP('2015-10-01 13:25:54','YYYY-MM-DD HH24:MI:SS'),100,7,'de.metas.handlingunits','Y','Y','Y','N','N','N','N','N','Datum',TO_TIMESTAMP('2015-10-01 13:25:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=556345 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,552763,556346,0,540516,TO_TIMESTAMP('2015-10-01 13:25:54','YYYY-MM-DD HH24:MI:SS'),100,7,'de.metas.handlingunits','Y','Y','Y','N','N','N','N','N','Datum (initial)',TO_TIMESTAMP('2015-10-01 13:25:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 01.10.2015 13:25 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=556346 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2015-10-01 13:26:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556346 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60,Updated=TO_TIMESTAMP('2015-10-01 13:26:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552247 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2015-10-01 13:26:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552249 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556345 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552248 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552236 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552241 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554057 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2015-10-01 13:26:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554055 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556346 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552247 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552249 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556345 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552248 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552236 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554057 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554055 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2015-10-01 13:26:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552241 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2015-10-01 13:26:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556346 ; -- 01.10.2015 13:26 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2015-10-01 13:26:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556345 ;
the_stack
-- Double EOL symbol (\n\n) used as separator. This means that query string like "{SQL1}\n\n{SQL2}" would -- cause two queries to the RDBMS: first "{SQL1}" and second "{SQL2}". -- Create 'users' table. CREATE TABLE "users" ( "id" INTEGER NOT NULL, "username" VARCHAR2(128 CHAR) NOT NULL, "password" VARCHAR2(128 CHAR) NOT NULL, "email" VARCHAR2(128 CHAR) NOT NULL ) LOGGING NOCOMPRESS NOCACHE; COMMENT ON COLUMN "users"."id" IS 'User''s entry primary key'; COMMENT ON COLUMN "users"."username" IS 'Имя пользователя'; COMMENT ON COLUMN "users"."password" IS '用户的密码'; COMMENT ON COLUMN "users"."email" IS 'דוא"ל של המשתמש'; ALTER TABLE "users" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "users" ADD CHECK ("username" IS NOT NULL); ALTER TABLE "users" ADD CHECK ("password" IS NOT NULL); ALTER TABLE "users" ADD CHECK ("email" IS NOT NULL); ALTER TABLE "users" ADD PRIMARY KEY ("id"); CREATE SEQUENCE "users_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "users_id_trigger" BEFORE INSERT ON "users" FOR EACH ROW BEGIN SELECT "users_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'profiles' table. CREATE TABLE "profiles" ( "id" INTEGER NOT NULL, "first_name" VARCHAR2(128 CHAR) NOT NULL, "last_name" VARCHAR2(128 CHAR) NOT NULL, "user_id" INTEGER NOT NULL ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "profiles" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "profiles" ADD CHECK ("first_name" IS NOT NULL); ALTER TABLE "profiles" ADD CHECK ("last_name" IS NOT NULL); ALTER TABLE "profiles" ADD CHECK ("user_id" IS NOT NULL); ALTER TABLE "profiles" ADD PRIMARY KEY ("id"); ALTER TABLE "profiles" ADD FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE; CREATE SEQUENCE "profiles_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "profiles_id_trigger" BEFORE INSERT ON "profiles" FOR EACH ROW BEGIN SELECT "profiles_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'posts' table. CREATE TABLE "posts" ( "id" INTEGER NOT NULL, "title" VARCHAR2(128 CHAR) NOT NULL, "create_time" TIMESTAMP NOT NULL, "author_id" INTEGER NOT NULL, "content" CLOB ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "posts" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "posts" ADD CHECK ("title" IS NOT NULL); ALTER TABLE "posts" ADD CHECK ("create_time" IS NOT NULL); ALTER TABLE "posts" ADD CHECK ("author_id" IS NOT NULL); ALTER TABLE "posts" ADD PRIMARY KEY ("id"); ALTER TABLE "posts" ADD FOREIGN KEY ("author_id") REFERENCES "users" ("id") ON DELETE CASCADE; CREATE SEQUENCE "posts_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "posts_id_trigger" BEFORE INSERT ON "posts" FOR EACH ROW BEGIN SELECT "posts_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'comments' table. CREATE TABLE "comments" ( "id" INTEGER NOT NULL, "content" CLOB, "post_id" INTEGER NOT NULL, "author_id" INTEGER NOT NULL ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "comments" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "comments" ADD CHECK ("post_id" IS NOT NULL); ALTER TABLE "comments" ADD CHECK ("author_id" IS NOT NULL); ALTER TABLE "comments" ADD PRIMARY KEY ("id"); ALTER TABLE "comments" ADD FOREIGN KEY ("post_id") REFERENCES "posts" ("id") ON DELETE CASCADE; ALTER TABLE "comments" ADD FOREIGN KEY ("author_id") REFERENCES "users" ("id") ON DELETE CASCADE; CREATE SEQUENCE "comments_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "comments_id_trigger" BEFORE INSERT ON "comments" FOR EACH ROW BEGIN SELECT "comments_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'categories' table. CREATE TABLE "categories" ( "id" INTEGER NOT NULL, "name" VARCHAR2(128 CHAR) NOT NULL, "parent_id" INTEGER ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "categories" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "categories" ADD CHECK ("name" IS NOT NULL); ALTER TABLE "categories" ADD PRIMARY KEY ("id"); ALTER TABLE "categories" ADD FOREIGN KEY ("parent_id") REFERENCES "categories" ("id") ON DELETE CASCADE; CREATE SEQUENCE "categories_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "categories_id_trigger" BEFORE INSERT ON "categories" FOR EACH ROW BEGIN SELECT "categories_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'post_category' table. CREATE TABLE "post_category" ( "category_id" INTEGER NOT NULL, "post_id" INTEGER NOT NULL ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "post_category" ADD CHECK ("category_id" IS NOT NULL); ALTER TABLE "post_category" ADD CHECK ("post_id" IS NOT NULL); ALTER TABLE "post_category" ADD PRIMARY KEY ("category_id", "post_id"); ALTER TABLE "post_category" ADD FOREIGN KEY ("category_id") REFERENCES "posts" ("id") ON DELETE CASCADE; ALTER TABLE "post_category" ADD FOREIGN KEY ("post_id") REFERENCES "categories" ("id") ON DELETE CASCADE; -- Create 'orders' table. CREATE TABLE "orders" ( "key1" INTEGER NOT NULL, "key2" INTEGER NOT NULL, "name" VARCHAR2(128 CHAR) NOT NULL ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "orders" ADD CHECK ("key1" IS NOT NULL); ALTER TABLE "orders" ADD CHECK ("key2" IS NOT NULL); ALTER TABLE "orders" ADD CHECK ("name" IS NOT NULL); ALTER TABLE "orders" ADD PRIMARY KEY ("key1", "key2"); -- Create 'items' table. CREATE TABLE "items" ( "id" INTEGER NOT NULL, "name" VARCHAR2(128 CHAR) NOT NULL, "col1" INTEGER NOT NULL, "col2" INTEGER NOT NULL ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "items" ADD CHECK ("id" IS NOT NULL); ALTER TABLE "items" ADD CHECK ("name" IS NOT NULL); ALTER TABLE "items" ADD CHECK ("col1" IS NOT NULL); ALTER TABLE "items" ADD CHECK ("col2" IS NOT NULL); ALTER TABLE "items" ADD PRIMARY KEY ("id"); ALTER TABLE "items" ADD FOREIGN KEY ("col1", "col2") REFERENCES "orders" ("key1", "key2") ON DELETE CASCADE; CREATE SEQUENCE "items_id_sequence" START WITH 1 INCREMENT BY 1 NOMAXVALUE; CREATE TRIGGER "items_id_trigger" BEFORE INSERT ON "items" FOR EACH ROW BEGIN SELECT "items_id_sequence".nextval INTO :new."id" FROM dual; END; -- Create 'types' table. CREATE TABLE "types" ( "int_col" INT NOT NULL, "int_col2" INTEGER DEFAULT 1, "char_col" CHAR(100) NOT NULL, "char_col2" VARCHAR2(100 CHAR) DEFAULT 'something', "char_col3" CLOB, "float_col" NUMBER(4, 3) NOT NULL, "float_col2" BINARY_DOUBLE DEFAULT 1.23, "blob_col" BLOB, "numeric_col" NUMBER(5, 2) DEFAULT 33.22, "time" TIMESTAMP DEFAULT TO_TIMESTAMP('2010-01-01 00:00:00','YYYY-MM-DD HH24:MI:SS'), "bool_col" NUMBER(1, 0) NOT NULL, "bool_col2" NUMBER(1, 0) DEFAULT 1 ) LOGGING NOCOMPRESS NOCACHE; ALTER TABLE "types" ADD CHECK ("int_col" IS NOT NULL); ALTER TABLE "types" ADD CHECK ("char_col" IS NOT NULL); ALTER TABLE "types" ADD CHECK ("float_col" IS NOT NULL); ALTER TABLE "types" ADD CHECK ("bool_col" IS NOT NULL); -- Data for the 'users' table. INSERT INTO "users" ("username", "password", "email") VALUES ('user1', 'pass1', 'email1'); INSERT INTO "users" ("username", "password", "email") VALUES ('user2', 'pass2', 'email2'); INSERT INTO "users" ("username", "password", "email") VALUES ('user3', 'pass3', 'email3'); INSERT INTO "users" ("username", "password", "email") VALUES ('пользователь4', '密码4', 'דוא"ל4'); -- Data for the 'profiles' table. INSERT INTO "profiles" ("first_name", "last_name", "user_id") VALUES ('first 1', 'last 1', 1); INSERT INTO "profiles" ("first_name", "last_name", "user_id") VALUES ('first 2', 'last 2', 2); -- Data for the 'posts' table. INSERT INTO "posts" ("title", "create_time", "author_id", "content") VALUES ('post 1', TIMESTAMP '2000-01-01 00:00:00', 1, 'content 1'); INSERT INTO "posts" ("title", "create_time", "author_id", "content") VALUES ('post 2', TIMESTAMP '2000-01-02 00:00:00', 2, 'content 2'); INSERT INTO "posts" ("title", "create_time", "author_id", "content") VALUES ('post 3', TIMESTAMP '2000-01-03 00:00:00', 2, 'content 3'); INSERT INTO "posts" ("title", "create_time", "author_id", "content") VALUES ('post 4', TIMESTAMP '2000-01-04 00:00:00', 2, 'content 4'); INSERT INTO "posts" ("title", "create_time", "author_id", "content") VALUES ('post 5', TIMESTAMP '2000-01-05 00:00:00', 3, 'content 5'); -- Data for the 'comments' table. INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 1', 1, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 2', 1, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 3', 1, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 4', 2, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 5', 2, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 6', 3, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 7', 3, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 8', 3, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 9', 3, 2); INSERT INTO "comments" ("content", "post_id", "author_id") VALUES ('comment 10', 5, 3); -- Data for the 'categories' table. INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 1', NULL); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 2', NULL); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 3', NULL); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 4', 1); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 5', 1); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 6', 5); INSERT INTO "categories" ("name", "parent_id") VALUES ('cat 7', 5); -- Data for the 'post_category' table. INSERT INTO "post_category" ("category_id", "post_id") VALUES (1, 1); INSERT INTO "post_category" ("category_id", "post_id") VALUES (2, 1); INSERT INTO "post_category" ("category_id", "post_id") VALUES (3, 1); INSERT INTO "post_category" ("category_id", "post_id") VALUES (4, 2); INSERT INTO "post_category" ("category_id", "post_id") VALUES (1, 2); INSERT INTO "post_category" ("category_id", "post_id") VALUES (1, 3); -- Data for the 'orders' table. INSERT INTO "orders" ("key1", "key2", "name") VALUES (1, 2, 'order 12'); INSERT INTO "orders" ("key1", "key2", "name") VALUES (1, 3, 'order 13'); INSERT INTO "orders" ("key1", "key2", "name") VALUES (2, 1, 'order 21'); INSERT INTO "orders" ("key1", "key2", "name") VALUES (2, 2, 'order 22'); -- Data for the 'items' table. INSERT INTO "items" ("name", "col1", "col2") VALUES ('item 1', 1, 2); INSERT INTO "items" ("name", "col1", "col2") VALUES ('item 2', 1, 2); INSERT INTO "items" ("name", "col1", "col2") VALUES ('item 3', 1, 3); INSERT INTO "items" ("name", "col1", "col2") VALUES ('item 4', 2, 2); INSERT INTO "items" ("name", "col1", "col2") VALUES ('item 5', 2, 2);
the_stack
create schema nodegroup_table_like_test; set current_schema = nodegroup_table_like_test; select node_name, node_type from pgxc_node order by 1,2; create node group ngroup1 with (datanode1, datanode3, datanode5, datanode7); create node group ngroup2 with (datanode2, datanode4, datanode6, datanode8, datanode10, datanode12); CREATE TABLE test1 (a int, b serial) TO GROUP ngroup1; CREATE TABLE test2 (a int, b int DEFAULT nextval('test1_b_seq') ) TO GROUP ngroup1; CREATE TABLE like_test2 (LIKE test2 including all) TO GROUP ngroup2; DROP TABLE like_test2; CREATE TABLE test3 (c int, d serial) TO GROUP ngroup2; alter table test3 alter d drop default; alter table test3 drop column d; drop table test3; CREATE TABLE test3 (c int, d serial) TO GROUP ngroup2; create sequence test3_seq owned by test3.c; alter sequence test3_seq owned by test1.a; drop sequence test3_seq cascade; create sequence test3_seq owned by test3.c; create table like_test1_test3 (id int, like test1, like test3 including all) TO GROUP ngroup2; create schema "spc schema"; CREATE TABLE "spc schema"."special tab" (a int, "b col" serial) TO GROUP ngroup2; CREATE TABLE "spc schema"."tab2" (a int, b int) TO GROUP ngroup1; alter sequence "spc schema"."special tab_b col_seq" owned by "spc schema".tab2.b; alter sequence "spc schema"."special tab_b col_seq" owned by "spc schema"."special tab".b; set xc_maintenance_mode=on; alter node group ngroup1 set sequence to local; alter node group ngroup2 set sequence to local; alter node group ngroup1 set sequence to all node; alter node group ngroup2 set sequence to all node; set xc_maintenance_mode=off; drop schema "spc schema" cascade; drop table test3; drop table like_test1_test3; CREATE TABLE REGION ( R_REGIONKEY INT NOT NULL , R_NAME CHAR(25) NOT NULL , R_COMMENT VARCHAR(152) ) with (orientation=column,compression=high ) distribute by replication TO GROUP ngroup1 ; CREATE TABLE NATION ( N_NATIONKEY INT NOT NULL , N_NAME CHAR(25) NOT NULL , N_REGIONKEY INT NOT NULL , N_COMMENT VARCHAR(152) ) with (orientation=column,compression=high ) distribute by replication TO GROUP ngroup1 ; CREATE TABLE SUPPLIER ( S_SUPPKEY BIGINT NOT NULL , S_NAME CHAR(25) NOT NULL , S_ADDRESS VARCHAR(40) NOT NULL , S_NATIONKEY INT NOT NULL , S_PHONE CHAR(15) NOT NULL , S_ACCTBAL DECIMAL(15,2) NOT NULL , S_COMMENT VARCHAR(101) NOT NULL --, primary key (S_SUPPKEY) ) with (orientation=column,compression=high ) distribute by hash(S_SUPPKEY) TO GROUP ngroup1 PARTITION BY RANGE(S_NATIONKEY) ( PARTITION S_NATIONKEY_1 VALUES LESS THAN(1), PARTITION S_NATIONKEY_2 VALUES LESS THAN(2), PARTITION S_NATIONKEY_3 VALUES LESS THAN(3), PARTITION S_NATIONKEY_4 VALUES LESS THAN(4), PARTITION S_NATIONKEY_5 VALUES LESS THAN(5), PARTITION S_NATIONKEY_6 VALUES LESS THAN(6), PARTITION S_NATIONKEY_7 VALUES LESS THAN(7), PARTITION S_NATIONKEY_8 VALUES LESS THAN(8), PARTITION S_NATIONKEY_9 VALUES LESS THAN(9), PARTITION S_NATIONKEY_10 VALUES LESS THAN(10), PARTITION S_NATIONKEY_11 VALUES LESS THAN(11), PARTITION S_NATIONKEY_12 VALUES LESS THAN(12), PARTITION S_NATIONKEY_13 VALUES LESS THAN(13), PARTITION S_NATIONKEY_14 VALUES LESS THAN(14), PARTITION S_NATIONKEY_15 VALUES LESS THAN(15), PARTITION S_NATIONKEY_16 VALUES LESS THAN(16), PARTITION S_NATIONKEY_17 VALUES LESS THAN(17), PARTITION S_NATIONKEY_18 VALUES LESS THAN(18), PARTITION S_NATIONKEY_19 VALUES LESS THAN(19), PARTITION S_NATIONKEY_20 VALUES LESS THAN(20), PARTITION S_NATIONKEY_21 VALUES LESS THAN(21), PARTITION S_NATIONKEY_22 VALUES LESS THAN(22), PARTITION S_NATIONKEY_23 VALUES LESS THAN(23), PARTITION S_NATIONKEY_24 VALUES LESS THAN(24), PARTITION S_NATIONKEY_25 VALUES LESS THAN(25) ) ; create index on SUPPLIER(S_SUPPKEY) LOCAL; CREATE TABLE CUSTOMER ( C_CUSTKEY BIGINT NOT NULL , C_NAME VARCHAR(25) NOT NULL , C_ADDRESS VARCHAR(40) NOT NULL , C_NATIONKEY INT NOT NULL , C_PHONE CHAR(15) NOT NULL , C_ACCTBAL DECIMAL(15,2) NOT NULL , C_MKTSEGMENT CHAR(10) NOT NULL , C_COMMENT VARCHAR(117) NOT NULL ) with (orientation=column,compression=high ) distribute by hash(C_CUSTKEY) TO GROUP ngroup1 PARTITION BY RANGE(C_NATIONKEY) ( PARTITION C_NATIONKEY_1 VALUES LESS THAN(1), PARTITION C_NATIONKEY_2 VALUES LESS THAN(2), PARTITION C_NATIONKEY_3 VALUES LESS THAN(3), PARTITION C_NATIONKEY_4 VALUES LESS THAN(4), PARTITION C_NATIONKEY_5 VALUES LESS THAN(5), PARTITION C_NATIONKEY_6 VALUES LESS THAN(6), PARTITION C_NATIONKEY_7 VALUES LESS THAN(7), PARTITION C_NATIONKEY_8 VALUES LESS THAN(8), PARTITION C_NATIONKEY_9 VALUES LESS THAN(9), PARTITION C_NATIONKEY_10 VALUES LESS THAN(10), PARTITION C_NATIONKEY_11 VALUES LESS THAN(11), PARTITION C_NATIONKEY_12 VALUES LESS THAN(12), PARTITION C_NATIONKEY_13 VALUES LESS THAN(13), PARTITION C_NATIONKEY_14 VALUES LESS THAN(14), PARTITION C_NATIONKEY_15 VALUES LESS THAN(15), PARTITION C_NATIONKEY_16 VALUES LESS THAN(16), PARTITION C_NATIONKEY_17 VALUES LESS THAN(17), PARTITION C_NATIONKEY_18 VALUES LESS THAN(18), PARTITION C_NATIONKEY_19 VALUES LESS THAN(19), PARTITION C_NATIONKEY_20 VALUES LESS THAN(20), PARTITION C_NATIONKEY_21 VALUES LESS THAN(21), PARTITION C_NATIONKEY_22 VALUES LESS THAN(22), PARTITION C_NATIONKEY_23 VALUES LESS THAN(23), PARTITION C_NATIONKEY_24 VALUES LESS THAN(24), PARTITION C_NATIONKEY_25 VALUES LESS THAN(25) ) ; create index on CUSTOMER(C_CUSTKEY) LOCAL; CREATE TABLE PART ( P_PARTKEY BIGINT NOT NULL , P_NAME VARCHAR(55) NOT NULL , P_MFGR CHAR(25) NOT NULL , P_BRAND CHAR(10) NOT NULL , P_TYPE VARCHAR(25) NOT NULL , P_SIZE BIGINT NOT NULL , P_CONTAINER CHAR(10) NOT NULL , P_RETAILPRICE DECIMAL(15,2) NOT NULL , P_COMMENT VARCHAR(23) NOT NULL --, primary key (P_PARTKEY) ) with (orientation=column,compression=high ) distribute by hash(P_PARTKEY) TO GROUP ngroup1 PARTITION BY RANGE(P_SIZE) ( PARTITION P_SIZE_1 VALUES LESS THAN(11), PARTITION P_SIZE_2 VALUES LESS THAN(21), PARTITION P_SIZE_3 VALUES LESS THAN(31), PARTITION P_SIZE_4 VALUES LESS THAN(41), PARTITION P_SIZE_5 VALUES LESS THAN(51) ) ; create index on PART(P_PARTKEY) LOCAL; CREATE TABLE PARTSUPP ( PS_PARTKEY BIGINT NOT NULL , PS_SUPPKEY BIGINT NOT NULL , PS_AVAILQTY BIGINT NOT NULL , PS_SUPPLYCOST DECIMAL(15,2) NOT NULL , PS_COMMENT VARCHAR(199) NOT NULL --, primary key (PS_PARTKEY, PS_SUPPKEY) ) with (orientation=column,compression=high ) distribute by hash(PS_PARTKEY) TO GROUP ngroup1 PARTITION BY RANGE(PS_AVAILQTY) ( PARTITION PS_AVAILQTY_1 VALUES LESS THAN(1000), PARTITION PS_AVAILQTY_2 VALUES LESS THAN(2000), PARTITION PS_AVAILQTY_3 VALUES LESS THAN(3000), PARTITION PS_AVAILQTY_4 VALUES LESS THAN(4000), PARTITION PS_AVAILQTY_5 VALUES LESS THAN(5000), PARTITION PS_AVAILQTY_6 VALUES LESS THAN(6000), PARTITION PS_AVAILQTY_7 VALUES LESS THAN(7000), PARTITION PS_AVAILQTY_8 VALUES LESS THAN(8000), PARTITION PS_AVAILQTY_9 VALUES LESS THAN(9000), PARTITION PS_AVAILQTY_10 VALUES LESS THAN(10000) ) ; create index on PARTSUPP(PS_PARTKEY, PS_SUPPKEY) LOCAL; CREATE TABLE ORDERS ( O_ORDERKEY BIGINT NOT NULL , O_CUSTKEY BIGINT NOT NULL , O_ORDERSTATUS CHAR(1) NOT NULL , O_TOTALPRICE DECIMAL(15,2) NOT NULL , O_ORDERDATE DATE NOT NULL , O_ORDERPRIORITY CHAR(15) NOT NULL , O_CLERK CHAR(15) NOT NULL , O_SHIPPRIORITY BIGINT NOT NULL , O_COMMENT VARCHAR(79) NOT NULL --, primary key (O_ORDERKEY) ) with (orientation=column,compression=high ) distribute by hash(O_ORDERKEY) TO GROUP ngroup1 PARTITION BY RANGE(O_ORDERDATE) ( PARTITION O_ORDERDATE_1 VALUES LESS THAN('1993-01-01 00:00:00'), PARTITION O_ORDERDATE_2 VALUES LESS THAN('1994-01-01 00:00:00'), PARTITION O_ORDERDATE_3 VALUES LESS THAN('1995-01-01 00:00:00'), PARTITION O_ORDERDATE_4 VALUES LESS THAN('1996-01-01 00:00:00'), PARTITION O_ORDERDATE_5 VALUES LESS THAN('1997-01-01 00:00:00'), PARTITION O_ORDERDATE_6 VALUES LESS THAN('1998-01-01 00:00:00'), PARTITION O_ORDERDATE_7 VALUES LESS THAN('1999-01-01 00:00:00') ) ; create index on ORDERS(O_ORDERKEY) LOCAL; CREATE TABLE LINEITEM ( L_ORDERKEY BIGINT NOT NULL , L_PARTKEY BIGINT NOT NULL , L_SUPPKEY BIGINT NOT NULL , L_LINENUMBER BIGINT NOT NULL , L_QUANTITY DECIMAL(15,2) NOT NULL , L_EXTENDEDPRICE DECIMAL(15,2) NOT NULL , L_DISCOUNT DECIMAL(15,2) NOT NULL , L_TAX DECIMAL(15,2) NOT NULL , L_RETURNFLAG CHAR(1) NOT NULL , L_LINESTATUS CHAR(1) NOT NULL , L_SHIPDATE DATE NOT NULL , L_COMMITDATE DATE NOT NULL , L_RECEIPTDATE DATE NOT NULL , L_SHIPINSTRUCT CHAR(25) NOT NULL , L_SHIPMODE CHAR(10) NOT NULL , L_COMMENT VARCHAR(44) NOT NULL --, primary key (L_ORDERKEY, L_LINENUMBER) ) with (orientation=column,compression=high ) distribute by hash(L_ORDERKEY) TO GROUP ngroup1 PARTITION BY RANGE(L_SHIPDATE) ( PARTITION L_SHIPDATE_1 VALUES LESS THAN('1993-01-01 00:00:00'), PARTITION L_SHIPDATE_2 VALUES LESS THAN('1994-01-01 00:00:00'), PARTITION L_SHIPDATE_3 VALUES LESS THAN('1995-01-01 00:00:00'), PARTITION L_SHIPDATE_4 VALUES LESS THAN('1996-01-01 00:00:00'), PARTITION L_SHIPDATE_5 VALUES LESS THAN('1997-01-01 00:00:00'), PARTITION L_SHIPDATE_6 VALUES LESS THAN('1998-01-01 00:00:00'), PARTITION L_SHIPDATE_7 VALUES LESS THAN('1999-01-01 00:00:00') ) ; create index on LINEITEM(L_ORDERKEY, L_LINENUMBER) LOCAL; CREATE TABLE films0 ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, did integer NOT NULL, date_prod date, kind varchar(10), len interval hour to minute ) TO GROUP ngroup1; CREATE SEQUENCE serial1; CREATE TABLE distributors0 ( did integer PRIMARY KEY DEFAULT nextval('serial1'), name varchar(40) NOT NULL CHECK (name <> '') ) TO GROUP ngroup1; CREATE TABLE array_int ( a int, vector int[][] ) TO GROUP ngroup1; CREATE TABLE films1 ( code char(5), title varchar(40), did integer, date_prod date, kind varchar(10), len interval hour to minute, CONSTRAINT production UNIQUE(date_prod) )TO GROUP ngroup1; CREATE TABLE distributors1 ( did integer CHECK (did > 100), name varchar(40) )TO GROUP ngroup1; CREATE TABLE distributors2 ( did integer, name varchar(40) CONSTRAINT con1 CHECK (did > 100 AND name <> '') )TO GROUP ngroup1; CREATE TABLE films2 ( code char(5), title varchar(40), did integer, date_prod date, kind varchar(10), len interval hour to minute, CONSTRAINT code_title PRIMARY KEY(code,title) ) TO GROUP NGROUP1; CREATE TABLE distributors3 ( did integer, name varchar(40), PRIMARY KEY(did) ) TO GROUP NGROUP1; CREATE TABLE distributors4 ( did integer PRIMARY KEY, name varchar(40) ) TO GROUP NGROUP1; CREATE TABLE distributors5 ( name varchar(40) DEFAULT 'Luso Films', did integer DEFAULT nextval('serial1'), modtime timestamp DEFAULT current_timestamp ) TO GROUP NGROUP1; CREATE TABLE distributors6 ( did integer CONSTRAINT no_null NOT NULL, name varchar(40) NOT NULL )TO GROUP NGROUP1; CREATE TABLE distributors7 ( did integer, name varchar(40) UNIQUE ) TO GROUP NGROUP1; CREATE TABLE distributors8 ( did integer, name varchar(40), UNIQUE(name) WITH (fillfactor=70) ) WITH (fillfactor=70) TO GROUP ngroup1; CREATE TABLE circles( c1 serial , c2 varchar(100), c3 date default '2018-06-14', c4 timestamp with time zone default '2018-06-14 12:30:30+8', c5 numeric(18,9) default -999999999.000000009, c6 text default 'comments', partial cluster key(c1,c3) )with(orientation=column, compression=middle)distribute by hash(c1) TO GROUP ngroup1 partition by range(c1) (partition col_on_01 start(-32768) end(0) every(200), partition col_on_02 start(0) end(32767) every(500) ); CREATE TABLE warehouse_t1 ( W_WAREHOUSE_SK INTEGER NOT NULL, W_WAREHOUSE_ID CHAR(16) NOT NULL, W_WAREHOUSE_NAME VARCHAR(20) , W_WAREHOUSE_SQ_FT INTEGER , W_STREET_NUMBER CHAR(10) , W_STREET_NAME VARCHAR(60) , W_STREET_TYPE CHAR(15) , W_SUITE_NUMBER CHAR(10) , W_CITY VARCHAR(60) , W_COUNTY VARCHAR(30) , W_STATE CHAR(2) , W_ZIP CHAR(10) , W_COUNTRY VARCHAR(20) , W_GMT_OFFSET DECIMAL(5,2) )DISTRIBUTE BY REPLICATION TO GROUP ngroup1; CREATE TABLE warehouse_t2 ( W_WAREHOUSE_SK INTEGER PRIMARY KEY CHECK (W_WAREHOUSE_SK > 0), W_WAREHOUSE_ID CHAR(16) NOT NULL, W_WAREHOUSE_NAME VARCHAR(20) CHECK (W_WAREHOUSE_NAME IS NOT NULL), W_WAREHOUSE_SQ_FT serial , W_STREET_NUMBER bigserial , W_STREET_NAME VARCHAR(60) , W_STREET_TYPE CHAR(15) , W_SUITE_NUMBER smallserial , W_CITY VARCHAR(60) , W_COUNTY VARCHAR(30) , W_STATE CHAR(2) , W_ZIP CHAR(10) , W_COUNTRY VARCHAR(20) , W_GMT_OFFSET DECIMAL(5,2), CONSTRAINT W_CONSTR_KEY2 CHECK(W_WAREHOUSE_SK > 0 AND W_WAREHOUSE_NAME IS NOT NULL) )COMPRESS TO GROUP ngroup1; CREATE TEMPORARY TABLE warehouse_t3 ( W_WAREHOUSE_SK INTEGER NOT NULL, W_WAREHOUSE_ID CHAR(16) NOT NULL, W_WAREHOUSE_NAME VARCHAR(20) , W_WAREHOUSE_SQ_FT INTEGER , W_STREET_NUMBER CHAR(10) , W_STREET_NAME VARCHAR(60) , W_STREET_TYPE CHAR(15) , W_SUITE_NUMBER CHAR(10) , W_CITY VARCHAR(60) , W_COUNTY VARCHAR(30) , W_STATE CHAR(2) , W_ZIP CHAR(10) , W_COUNTRY VARCHAR(20) , W_GMT_OFFSET DECIMAL(5,2) ) TO GROUP ngroup1; CREATE TABLE like_region(LIKE nodegroup_table_like_test.region INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_nation(LIKE nodegroup_table_like_test.nation INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_supplier(LIKE nodegroup_table_like_test.supplier INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_customer(LIKE nodegroup_table_like_test.customer INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_part(LIKE nodegroup_table_like_test.part INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_partsupp(LIKE nodegroup_table_like_test.partsupp INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_orders(LIKE nodegroup_table_like_test.orders INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_lineitem(LIKE nodegroup_table_like_test.lineitem INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_lineitem2(a int, LIKE nodegroup_table_like_test.lineitem INCLUDING ALL, b text, c serial) TO GROUP ngroup2; CREATE TABLE like_films0(LIKE nodegroup_table_like_test.films0 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_films1(LIKE nodegroup_table_like_test.films1 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_films2(LIKE nodegroup_table_like_test.films2 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_array_int(LIKE nodegroup_table_like_test.array_int INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors0(LIKE nodegroup_table_like_test.distributors0 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors1(LIKE nodegroup_table_like_test.distributors1 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors2(LIKE nodegroup_table_like_test.distributors2 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors3(LIKE nodegroup_table_like_test.distributors3 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors4(LIKE nodegroup_table_like_test.distributors4 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors5(LIKE nodegroup_table_like_test.distributors5 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors6(LIKE nodegroup_table_like_test.distributors6 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors7(LIKE nodegroup_table_like_test.distributors7 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_distributors8(LIKE nodegroup_table_like_test.distributors8 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_circles(LIKE nodegroup_table_like_test.circles INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_warehouse_t1(LIKE nodegroup_table_like_test.warehouse_t1 INCLUDING ALL) TO GROUP ngroup2; CREATE TABLE like_warehouse_t2(LIKE nodegroup_table_like_test.warehouse_t2 INCLUDING ALL) TO GROUP ngroup2; CREATE TEMPORARY TABLE like_warehouse_t3(LIKE warehouse_t3 INCLUDING ALL) TO GROUP ngroup2; DROP TABLE warehouse_t3; DROP TABLE like_warehouse_t3; drop schema nodegroup_table_like_test cascade; drop node group ngroup1; drop node group ngroup2;
the_stack
-- ---------------------------- -- Table structure for SysButton -- ---------------------------- DROP TABLE [dbo].[SysButton] GO CREATE TABLE [dbo].[SysButton] ( [SysButtonId] uniqueidentifier NOT NULL , [SysModuleId] uniqueidentifier NULL , [ButtonCode] int NULL , [ButtonName] varchar(40) NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysButton', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'按钮表' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'按钮表' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysButton', 'COLUMN', N'SysButtonId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'按钮表Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'SysButtonId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'按钮表Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'SysButtonId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysButton', 'COLUMN', N'SysModuleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'API和模块Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'SysModuleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'API和模块Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'SysModuleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysButton', 'COLUMN', N'ButtonCode')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'按钮代号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'ButtonCode' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'按钮代号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'ButtonCode' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysButton', 'COLUMN', N'ButtonName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'按钮名称' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'ButtonName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'按钮名称' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysButton' , @level2type = 'COLUMN', @level2name = N'ButtonName' GO -- ---------------------------- -- Records of SysButton -- ---------------------------- -- ---------------------------- -- Table structure for SysModule -- ---------------------------- DROP TABLE [dbo].[SysModule] GO CREATE TABLE [dbo].[SysModule] ( [SysModuleId] uniqueidentifier NOT NULL , [ModuleName] varchar(50) NULL , [LinkUrl] varchar(200) NULL , [Controller] varchar(100) NULL , [Action] varchar(100) NULL , [ModuleStatus] bit NULL , [Sort] int NULL , [ParentId] uniqueidentifier NULL , [ModuleIcon] varchar(200) NULL , [IsDelete] bit NULL , [ModuleDesc] varchar(400) NULL , [ModuleType] int NULL , [SysUserId] uniqueidentifier NULL , [UserName] varchar(100) NULL , [CreateTime] datetime NULL , [ModifyId] uniqueidentifier NULL , [ModifyByName] varchar(100) NULL , [ModifyTime] datetime NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'API和模块表存储api接口和模块' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'API和模块表存储api接口和模块' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'SysModuleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'API和模块表Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'SysModuleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'API和模块表Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'SysModuleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModuleName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'模块名称' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'模块名称' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'LinkUrl')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'API或模块地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'LinkUrl' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'API或模块地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'LinkUrl' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'Controller')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'控制器' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Controller' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'控制器' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Controller' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'Action')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Action' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Action' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModuleStatus')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否启用' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleStatus' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否启用' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleStatus' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'Sort')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'排序' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Sort' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'排序' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'Sort' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ParentId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'父Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ParentId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'父Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ParentId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModuleIcon')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'模块图标' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleIcon' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'模块图标' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleIcon' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'IsDelete')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'IsDelete' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'IsDelete' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModuleDesc')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleDesc' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleDesc' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModuleType')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否模块(0:api 1:模块)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleType' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否模块(0:api 1:模块)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModuleType' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'SysUserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'SysUserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'SysUserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'UserName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'UserName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'UserName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'CreateTime')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'CreateTime' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'CreateTime' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModifyId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModifyByName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyByName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyByName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysModule', 'COLUMN', N'ModifyTime')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyTime' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysModule' , @level2type = 'COLUMN', @level2name = N'ModifyTime' GO -- ---------------------------- -- Records of SysModule -- ---------------------------- INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'67C1AC1E-1448-4F6C-A835-C12D66CE0DAC', N'超级管理员2', N'/api/v2/ImageTest/EFCoreTest', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'A44DEA54-FE72-4C27-BF40-5A624975D982', N'超管2指定数量文件上传', N'/api/v2/FileTest/UploadFile', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'4D41C4D6-44D3-469F-8491-2F3C82BB786D', N'多文件上传', N'/api/v2/FileTest/UploadFileList', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'9DC2891B-B39E-44F5-B2E1-CF2CCF4BF4EB', N'文件下载', N'/api/v2/FileTest/DownloadFile', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'E20EFD23-5ECA-4686-8D64-4A194C183459', N'管理员1', N'/api/v2/Test/ArrayTest', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'45482BF8-EE56-4B86-AC59-51230C0BE672', null, N'/api/v2/Test/BlogList', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'FDE54D4D-9FB2-424C-970E-CDE496A52650', N'普通用户0', N'/api/v2/Test/AddBlog', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'FB66445A-B4B4-4D4B-9CD7-C8CB7160DB02', null, N'/api/v2/Test/UpdateBlog', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'F433AB0E-786A-494E-BA13-F857D6720BF3', null, N'/api/v2/Test/DeleteBlog', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'13C3EA8A-013C-4995-8D29-A48237C0BADA', null, N'/api/v2/Test/HiddenTest', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'583299A9-634C-4A88-86D8-1784A530EC34', null, N'/api/v2/Test/FormHeader', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'49F6C83B-988E-4B84-8C4E-97445884CDC1', null, N'/api/v1/Authorization/LoginV1', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysModule] ([SysModuleId], [ModuleName], [LinkUrl], [Controller], [Action], [ModuleStatus], [Sort], [ParentId], [ModuleIcon], [IsDelete], [ModuleDesc], [ModuleType], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'70F3775C-513C-48FB-85AC-9C45944A0EB4', null, N'/api/v1/Authorization/Test', null, null, N'1', null, null, null, N'0', null, N'0', null, null, null, null, null, null) GO GO -- ---------------------------- -- Table structure for SysOperateLog -- ---------------------------- DROP TABLE [dbo].[SysOperateLog] GO CREATE TABLE [dbo].[SysOperateLog] ( [SysOperateLogId] uniqueidentifier NOT NULL , [Controller] varchar(100) NULL , [Action] varchar(100) NULL , [LinkUrl] varchar(200) NULL , [IPAddress] varchar(50) NULL , [OperateTime] datetime NULL , [SysUserId] uniqueidentifier NULL , [UserName] varchar(100) NULL , [OperateDesc] varchar(400) NULL , [OperateType] int NULL , [BusinessId] uniqueidentifier NULL , [IsDelete] bit NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作记录' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作记录' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'SysOperateLogId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作记录Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'SysOperateLogId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作记录Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'SysOperateLogId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'Controller')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'控制器' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'Controller' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'控制器' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'Controller' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'Action')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'方法' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'Action' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'方法' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'Action' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'LinkUrl')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'API或模块地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'LinkUrl' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'API或模块地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'LinkUrl' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'IPAddress')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'IP地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'IPAddress' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'IP地址' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'IPAddress' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'OperateTime')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateTime' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateTime' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'SysUserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'SysUserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'SysUserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'UserName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'UserName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'UserName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'OperateDesc')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateDesc' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateDesc' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'OperateType')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'操作动作(0:登录 1:增 2:删 3:改 4:查)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateType' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'操作动作(0:登录 1:增 2:删 3:改 4:查)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'OperateType' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'BusinessId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'业务Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'BusinessId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'业务Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'BusinessId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysOperateLog', 'COLUMN', N'IsDelete')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'IsDelete' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysOperateLog' , @level2type = 'COLUMN', @level2name = N'IsDelete' GO -- ---------------------------- -- Records of SysOperateLog -- ---------------------------- -- ---------------------------- -- Table structure for SysRole -- ---------------------------- DROP TABLE [dbo].[SysRole] GO CREATE TABLE [dbo].[SysRole] ( [SysRoleId] uniqueidentifier NOT NULL , [RoleName] varchar(40) NULL , [RoleDesc] varchar(400) NULL , [RoleStatus] bit NULL , [IsDelete] bit NULL , [SysUserId] uniqueidentifier NULL , [UserName] varchar(100) NULL , [CreateTime] datetime NULL , [ModifyId] uniqueidentifier NULL , [ModifyByName] varchar(100) NULL , [ModifyTime] datetime NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色表' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色表' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'SysRoleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'SysRoleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'SysRoleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'RoleName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'RoleDesc')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleDesc' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'备注' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleDesc' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'RoleStatus')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否启用' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleStatus' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否启用' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'RoleStatus' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'IsDelete')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'IsDelete' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否删除' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'IsDelete' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'SysUserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'SysUserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'SysUserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'UserName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'UserName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'UserName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'CreateTime')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'创建时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'CreateTime' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'创建时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'CreateTime' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'ModifyId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改人Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'ModifyByName')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyByName' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改人姓名' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyByName' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRole', 'COLUMN', N'ModifyTime')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'修改时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyTime' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'修改时间' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRole' , @level2type = 'COLUMN', @level2name = N'ModifyTime' GO -- ---------------------------- -- Records of SysRole -- ---------------------------- INSERT INTO [dbo].[SysRole] ([SysRoleId], [RoleName], [RoleDesc], [RoleStatus], [IsDelete], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'A6F8C57E-4DC4-4837-8630-AD0139FE834C', N'SuperAdmin', N'超级管理员', N'1', N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysRole] ([SysRoleId], [RoleName], [RoleDesc], [RoleStatus], [IsDelete], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'424002A8-521D-4324-B3E0-81A51B340010', N'Admin', N'管理员', N'1', N'0', null, null, null, null, null, null) GO GO INSERT INTO [dbo].[SysRole] ([SysRoleId], [RoleName], [RoleDesc], [RoleStatus], [IsDelete], [SysUserId], [UserName], [CreateTime], [ModifyId], [ModifyByName], [ModifyTime]) VALUES (N'4D4875B5-1EB8-428A-8BAA-1F938E1A4E83', N'User', N'普通用户', N'1', N'0', null, null, null, null, null, null) GO GO -- ---------------------------- -- Table structure for SysRoleModuleButton -- ---------------------------- DROP TABLE [dbo].[SysRoleModuleButton] GO CREATE TABLE [dbo].[SysRoleModuleButton] ( [SysRoleModuleButtonId] uniqueidentifier NOT NULL , [SysRoleId] uniqueidentifier NULL , [SysModuleId] uniqueidentifier NULL , [AvailableButtonJson] varchar(4000) NULL , [ModuleType] int NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色与模块、按钮关系中间表 一个角色下有多个模块,每个模块可用按钮存这个模块有哪些按钮是可以使用的。' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色与模块、按钮关系中间表 一个角色下有多个模块,每个模块可用按钮存这个模块有哪些按钮是可以使用的。' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', 'COLUMN', N'SysRoleModuleButtonId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色与模块按钮关系Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysRoleModuleButtonId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色与模块按钮关系Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysRoleModuleButtonId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', 'COLUMN', N'SysRoleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysRoleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysRoleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', 'COLUMN', N'SysModuleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'模块或APIId' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysModuleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'模块或APIId' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'SysModuleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', 'COLUMN', N'AvailableButtonJson')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'可用按钮Json(最大应该不会超过2000个)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'AvailableButtonJson' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'可用按钮Json(最大应该不会超过2000个)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'AvailableButtonJson' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysRoleModuleButton', 'COLUMN', N'ModuleType')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'是否模块(0:api 1:模块)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'ModuleType' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'是否模块(0:api 1:模块)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysRoleModuleButton' , @level2type = 'COLUMN', @level2name = N'ModuleType' GO -- ---------------------------- -- Records of SysRoleModuleButton -- ---------------------------- INSERT INTO [dbo].[SysRoleModuleButton] ([SysRoleModuleButtonId], [SysRoleId], [SysModuleId], [AvailableButtonJson], [ModuleType]) VALUES (N'30C89D74-13DB-462B-BC8D-7A2769CC6811', N'A6F8C57E-4DC4-4837-8630-AD0139FE834C', N'67C1AC1E-1448-4F6C-A835-C12D66CE0DAC', null, N'0') GO GO INSERT INTO [dbo].[SysRoleModuleButton] ([SysRoleModuleButtonId], [SysRoleId], [SysModuleId], [AvailableButtonJson], [ModuleType]) VALUES (N'3AFE44DE-E250-4903-BE46-EC0E28C94AA7', N'424002A8-521D-4324-B3E0-81A51B340010', N'E20EFD23-5ECA-4686-8D64-4A194C183459', null, N'0') GO GO INSERT INTO [dbo].[SysRoleModuleButton] ([SysRoleModuleButtonId], [SysRoleId], [SysModuleId], [AvailableButtonJson], [ModuleType]) VALUES (N'A2004BA2-9275-4EEF-9EB8-5D14F9ECCDD4', N'4D4875B5-1EB8-428A-8BAA-1F938E1A4E83', N'FDE54D4D-9FB2-424C-970E-CDE496A52650', null, N'0') GO GO INSERT INTO [dbo].[SysRoleModuleButton] ([SysRoleModuleButtonId], [SysRoleId], [SysModuleId], [AvailableButtonJson], [ModuleType]) VALUES (N'9EDDBD9E-C2D8-475D-9A8A-9D54F1F3771A', N'A6F8C57E-4DC4-4837-8630-AD0139FE834C', N'A44DEA54-FE72-4C27-BF40-5A624975D982', null, N'0') GO GO -- ---------------------------- -- Table structure for SysUser -- ---------------------------- DROP TABLE [dbo].[SysUser] GO CREATE TABLE [dbo].[SysUser] ( [SysUserId] uniqueidentifier NOT NULL , [UserId] varchar(100) NULL , [UserPwd] varchar(100) NULL , [UserType] int NULL , [UserStatus] int NULL , [Telphone] varchar(50) NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户表-用户信息表可以在建一个扩展表存真实姓名签名性别。' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户表-用户信息表可以在建一个扩展表存真实姓名签名性别。' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'SysUserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'SysUserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'SysUserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'UserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户帐号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户帐号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'UserPwd')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户密码' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserPwd' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户密码' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserPwd' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'UserType')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户类型(0:普通用户 1:管理员 2:超级管理员)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserType' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户类型(0:普通用户 1:管理员 2:超级管理员)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserType' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'UserStatus')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户状态(0:禁用 1:启用)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserStatus' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户状态(0:禁用 1:启用)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'UserStatus' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUser', 'COLUMN', N'Telphone')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'手机号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'Telphone' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'手机号' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUser' , @level2type = 'COLUMN', @level2name = N'Telphone' GO -- ---------------------------- -- Records of SysUser -- ---------------------------- INSERT INTO [dbo].[SysUser] ([SysUserId], [UserId], [UserPwd], [UserType], [UserStatus], [Telphone]) VALUES (N'07B71543-DED0-4CB7-8E39-9964C0887992', N'0', N'0', N'0', N'1', null) GO GO INSERT INTO [dbo].[SysUser] ([SysUserId], [UserId], [UserPwd], [UserType], [UserStatus], [Telphone]) VALUES (N'31F24766-7DCA-444D-A9CB-B64283AC2E82', N'1', N'1', N'1', N'1', null) GO GO INSERT INTO [dbo].[SysUser] ([SysUserId], [UserId], [UserPwd], [UserType], [UserStatus], [Telphone]) VALUES (N'77BC688C-2B29-4E92-9F19-57568469105B', N'2', N'2', N'2', N'1', null) GO GO -- ---------------------------- -- Table structure for SysUserRole -- ---------------------------- DROP TABLE [dbo].[SysUserRole] GO CREATE TABLE [dbo].[SysUserRole] ( [SysUserRoleId] uniqueidentifier NOT NULL , [SysUserId] uniqueidentifier NULL , [SysRoleId] uniqueidentifier NULL ) GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUserRole', NULL, NULL)) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户与角色中间表(一个用户可以有多个角色)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户与角色中间表(一个用户可以有多个角色)' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUserRole', 'COLUMN', N'SysUserRoleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户与角色的关系Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysUserRoleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户与角色的关系Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysUserRoleId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUserRole', 'COLUMN', N'SysUserId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'用户Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysUserId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'用户Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysUserId' GO IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description', 'SCHEMA', N'dbo', 'TABLE', N'SysUserRole', 'COLUMN', N'SysRoleId')) > 0) EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysRoleId' ELSE EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'角色Id' , @level0type = 'SCHEMA', @level0name = N'dbo' , @level1type = 'TABLE', @level1name = N'SysUserRole' , @level2type = 'COLUMN', @level2name = N'SysRoleId' GO -- ---------------------------- -- Records of SysUserRole -- ---------------------------- INSERT INTO [dbo].[SysUserRole] ([SysUserRoleId], [SysUserId], [SysRoleId]) VALUES (N'E0DF6EF9-CD55-4458-B3E5-A90526836CA6', N'07B71543-DED0-4CB7-8E39-9964C0887992', N'4D4875B5-1EB8-428A-8BAA-1F938E1A4E83') GO GO INSERT INTO [dbo].[SysUserRole] ([SysUserRoleId], [SysUserId], [SysRoleId]) VALUES (N'0ADD2F77-C9B3-4023-A180-4D85250EC827', N'31F24766-7DCA-444D-A9CB-B64283AC2E82', N'424002A8-521D-4324-B3E0-81A51B340010') GO GO INSERT INTO [dbo].[SysUserRole] ([SysUserRoleId], [SysUserId], [SysRoleId]) VALUES (N'3439AAF1-7B91-4C08-9687-69F47EAC6344', N'77BC688C-2B29-4E92-9F19-57568469105B', N'A6F8C57E-4DC4-4837-8630-AD0139FE834C') GO GO -- ---------------------------- -- Indexes structure for table SysButton -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysButton -- ---------------------------- ALTER TABLE [dbo].[SysButton] ADD PRIMARY KEY NONCLUSTERED ([SysButtonId]) GO -- ---------------------------- -- Indexes structure for table SysModule -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysModule -- ---------------------------- ALTER TABLE [dbo].[SysModule] ADD PRIMARY KEY NONCLUSTERED ([SysModuleId]) GO -- ---------------------------- -- Indexes structure for table SysOperateLog -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysOperateLog -- ---------------------------- ALTER TABLE [dbo].[SysOperateLog] ADD PRIMARY KEY NONCLUSTERED ([SysOperateLogId]) GO -- ---------------------------- -- Indexes structure for table SysRole -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysRole -- ---------------------------- ALTER TABLE [dbo].[SysRole] ADD PRIMARY KEY NONCLUSTERED ([SysRoleId]) GO -- ---------------------------- -- Indexes structure for table SysRoleModuleButton -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysRoleModuleButton -- ---------------------------- ALTER TABLE [dbo].[SysRoleModuleButton] ADD PRIMARY KEY NONCLUSTERED ([SysRoleModuleButtonId]) GO -- ---------------------------- -- Indexes structure for table SysUser -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysUser -- ---------------------------- ALTER TABLE [dbo].[SysUser] ADD PRIMARY KEY NONCLUSTERED ([SysUserId]) GO -- ---------------------------- -- Indexes structure for table SysUserRole -- ---------------------------- -- ---------------------------- -- Primary Key structure for table SysUserRole -- ---------------------------- ALTER TABLE [dbo].[SysUserRole] ADD PRIMARY KEY NONCLUSTERED ([SysUserRoleId]) GO
the_stack
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 29, 2018 at 10:39 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `school_erp` -- -- -------------------------------------------------------- -- -- Table structure for table `account` -- CREATE TABLE `account` ( `account_id` int(11) NOT NULL, `account_name` varchar(20) NOT NULL, `print_name` text NOT NULL, `group_acc` varchar(15) NOT NULL, `op_bal` int(5) NOT NULL, `dr_cr` varchar(20) NOT NULL, `address` text NOT NULL, `address1` text NOT NULL, `city` varchar(15) NOT NULL, `state` varchar(25) NOT NULL, `email` varchar(60) NOT NULL, `phone` int(10) NOT NULL, `mobile` int(10) NOT NULL, `contact_per` varchar(20) NOT NULL, `birthday_on` date NOT NULL, `anniv_on` date NOT NULL, `bank_name` text NOT NULL, `bank_acc_no` int(11) NOT NULL, `cheque_p_name` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `account` -- INSERT INTO `account` (`account_id`, `account_name`, `print_name`, `group_acc`, `op_bal`, `dr_cr`, `address`, `address1`, `city`, `state`, `email`, `phone`, `mobile`, `contact_per`, `birthday_on`, `anniv_on`, `bank_name`, `bank_acc_no`, `cheque_p_name`) VALUES (3, 'Banks Account', 'BA', 'Banks', 5000, 'dr', 'Balaji Puram', '', 'Agra', 'Uttar Pradesh', 'Akshat41121995@gmail.com', 2147483647, 2147483647, 'Rajesh', '2017-08-17', '2017-08-15', 'SBI', 2147483647, 'SBI Cheque'), (4, 'Direct Income', '', 'Banks', 0, 'dr', '', '', '', '', '', 0, 0, '', '0000-00-00', '0000-00-00', '', 0, ''), (5, 'Direct Income', '', 'Banks', 0, 'dr', '', '', '', '', '', 0, 0, '', '0000-00-00', '0000-00-00', '', 0, ''), (6, 'Direct Income', '', 'Banks', 0, 'dr', '', '', '', '', '', 0, 0, '', '0000-00-00', '0000-00-00', '', 0, ''); -- -------------------------------------------------------- -- -- Table structure for table `account_group` -- CREATE TABLE `account_group` ( `account_group_id` int(11) NOT NULL, `account_group_name` varchar(35) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `account_group` -- INSERT INTO `account_group` (`account_group_id`, `account_group_name`) VALUES (38, 'Banks'), (40, 'Library'), (47, 'Transport'), (48, 'test'), (49, 'tution'), (51, 'Group2'), (52, 'Group1'), (53, 'testgr'); -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `admin_id` int(11) NOT NULL, `admin_email` varchar(100) NOT NULL, `admin_password` varchar(255) NOT NULL, `admin_name` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`admin_id`, `admin_email`, `admin_password`, `admin_name`) VALUES (1, 'akshat41121995@gmail.com', 'nicola11', 'Akshat'), (2, 'sajal@gmail.com', '1234', 'Sajal'), (4, 'admin@gmail.com', '1234', 'Admin\r\n'), (5, 'user@gmail.com', 'user', 'User'); -- -------------------------------------------------------- -- -- Table structure for table `assessment` -- CREATE TABLE `assessment` ( `assessment_id` int(100) NOT NULL, `assessment_name` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `attendance` -- CREATE TABLE `attendance` ( `date` date NOT NULL, `class` varchar(5) NOT NULL, `section` varchar(3) NOT NULL, `student_id` int(11) NOT NULL, `status` varchar(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `attendance` -- INSERT INTO `attendance` (`date`, `class`, `section`, `student_id`, `status`) VALUES ('0000-00-00', 'Prese', '293', 0, '2'), ('2017-09-20', '2', 'A', 293, '0'), ('2017-09-20', '2', 'A', 293, 'P'), ('2017-09-26', '2', 'A', 284, 'P'), ('2017-09-26', '2', 'A', 286, 'P'), ('2017-09-26', '2', 'A', 289, 'P'), ('2017-09-26', '2', 'A', 290, 'P'), ('2017-09-26', '2', 'A', 291, 'P'), ('2017-09-26', '2', 'A', 293, 'P'), ('2017-09-26', '2', 'A', 284, 'P'), ('2017-09-26', '2', 'A', 286, 'P'), ('2017-09-26', '2', 'A', 289, 'P'), ('2017-09-26', '2', 'A', 290, 'P'), ('2017-09-26', '2', 'A', 291, 'P'), ('2017-09-26', '2', 'A', 293, 'P'), ('2017-09-27', '2', 'A', 284, 'P'), ('2017-09-27', '2', 'A', 286, 'P'), ('2017-09-27', '2', 'A', 289, 'P'), ('2017-09-27', '2', 'A', 290, 'P'), ('2017-09-27', '2', 'A', 291, 'P'), ('2017-09-27', '2', 'A', 293, 'P'), ('2017-09-26', '3', 'A', 111, 'A'), ('2017-09-26', '3', 'A', 112, 'P'), ('2017-09-26', '3', 'A', 113, 'P'), ('0000-00-00', '2', 'A', 284, 'P'), ('0000-00-00', '2', 'A', 286, 'P'), ('0000-00-00', '2', 'A', 289, 'P'), ('0000-00-00', '2', 'A', 290, 'P'), ('0000-00-00', '2', 'A', 291, 'P'), ('0000-00-00', '2', 'A', 293, 'P'), ('2017-09-19', '2', 'A', 284, 'P'), ('2017-09-19', '2', 'A', 286, 'P'), ('2017-09-19', '2', 'A', 289, 'P'), ('2017-09-19', '2', 'A', 290, 'P'), ('2017-09-19', '2', 'A', 291, 'P'), ('2017-09-19', '2', 'A', 293, 'P'), ('2017-09-26', '2', 'A', 334, 'A'), ('0000-00-00', '2', 'A', 284, 'P'), ('0000-00-00', '2', 'A', 286, 'P'), ('0000-00-00', '2', 'A', 289, 'P'), ('0000-00-00', '2', 'A', 290, 'P'), ('0000-00-00', '2', 'A', 291, 'P'), ('0000-00-00', '2', 'A', 293, 'P'), ('2017-09-13', '2', 'A', 284, 'P'), ('2017-09-13', '2', 'A', 286, 'P'), ('2017-09-13', '2', 'A', 290, 'A'), ('2017-09-13', '2', 'A', 291, 'P'), ('2017-09-13', '2', 'A', 293, 'P'), ('2017-09-21', '2', 'A', 284, 'P'), ('2017-09-21', '2', 'A', 284, 'P'), ('2017-09-26', '2', 'A', 284, 'P'), ('2017-09-26', '2', 'A', 284, 'P'), ('2017-09-06', '2', 'A', 284, 'P'), ('2017-09-27', '2', 'A', 284, 'P'), ('2017-09-27', '2', 'A', 284, 'P'), ('0000-00-00', '2', 'A', 284, 'P'), ('2017-10-25', '2', 'A', 284, 'P'), ('2017-10-17', '2', 'A', 284, 'P'), ('2017-10-16', '2', 'A', 284, 'P'); -- -------------------------------------------------------- -- -- Table structure for table `bill_sundry` -- CREATE TABLE `bill_sundry` ( `bill_sundry_id` int(11) NOT NULL, `charge_head` varchar(100) NOT NULL, `account` varchar(100) NOT NULL, `type` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `caste` -- CREATE TABLE `caste` ( `caste_id` int(3) NOT NULL, `caste_name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `caste` -- INSERT INTO `caste` (`caste_id`, `caste_name`) VALUES (39, 'Hindu'), (41, 'Muslim'), (42, 'Christian'), (43, 'Defence'), (44, 'Sikhs'), (45, 'hello'); -- -------------------------------------------------------- -- -- Table structure for table `category` -- CREATE TABLE `category` ( `category_id` int(11) NOT NULL, `category_name` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `category` -- INSERT INTO `category` (`category_id`, `category_name`) VALUES (29, 'General'), (30, 'OBC'), (31, 'SC'), (32, 'ST'), (34, 'Minorities'); -- -------------------------------------------------------- -- -- Table structure for table `class` -- CREATE TABLE `class` ( `class` int(2) NOT NULL, `prefix` varchar(5) NOT NULL, `start_from` date NOT NULL, `incharge` varchar(25) NOT NULL, `class_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `class` -- INSERT INTO `class` (`class`, `prefix`, `start_from`, `incharge`, `class_id`) VALUES (2, '', '0000-00-00', '', 30), (3, '', '0000-00-00', '', 31), (4, '', '0000-00-00', '', 32), (5, '', '0000-00-00', 'mr nicshay', 35), (6, 'th', '0000-00-00', 'xyz', 36), (13, 'th', '2017-09-20', 'Mr. Mittal', 37), (15, 'th', '0000-00-00', 'Mr. Joraver', 38), (99, 'th', '2017-12-31', 'Ms Ridhima', 40), (77, '', '0000-00-00', '', 41), (122, '', '2017-10-16', '', 42); -- -------------------------------------------------------- -- -- Table structure for table `contact_us` -- CREATE TABLE `contact_us` ( `name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `mobile` int(30) NOT NULL, `message` text NOT NULL, `contact_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `contra` -- CREATE TABLE `contra` ( `contra_id` int(11) NOT NULL, `date` date NOT NULL, `voucher_no` int(10) NOT NULL, `d_c` varchar(5) NOT NULL, `account_name` varchar(50) NOT NULL, `amount` int(10) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `credit_note` -- CREATE TABLE `credit_note` ( `credit_note_id` int(11) NOT NULL, `date` date NOT NULL, `voucher_no` int(10) NOT NULL, `d_c` varchar(5) NOT NULL, `account_name` varchar(100) NOT NULL, `amount` int(100) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `debit_note` -- CREATE TABLE `debit_note` ( `debit_note_id` int(11) NOT NULL, `date` date NOT NULL, `voucher_no` int(10) NOT NULL, `d_c` varchar(5) NOT NULL, `account_name` varchar(100) NOT NULL, `amount` int(10) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `family` -- CREATE TABLE `family` ( `family_id` int(11) NOT NULL, `family_name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `feedback` -- CREATE TABLE `feedback` ( `feedback_id` int(11) NOT NULL, `name` varchar(20) NOT NULL, `email` text NOT NULL, `message` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `fees_head` -- CREATE TABLE `fees_head` ( `fees_head_id` int(11) NOT NULL, `fees_heading` text NOT NULL, `group_name` text NOT NULL, `account_name` text NOT NULL, `frequency` text NOT NULL, `january` int(11) DEFAULT NULL, `february` int(11) DEFAULT NULL, `march` int(11) DEFAULT NULL, `april` int(11) DEFAULT NULL, `may` int(11) DEFAULT NULL, `june` int(11) DEFAULT NULL, `july` int(11) DEFAULT NULL, `august` int(11) DEFAULT NULL, `september` int(11) DEFAULT NULL, `october` int(11) DEFAULT NULL, `december` int(11) DEFAULT NULL, `november` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `fees_head` -- INSERT INTO `fees_head` (`fees_head_id`, `fees_heading`, `group_name`, `account_name`, `frequency`, `january`, `february`, `march`, `april`, `may`, `june`, `july`, `august`, `september`, `october`, `december`, `november`) VALUES (34, 'Admission Fees', 'General', 'Direct Income', 'one_time', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (35, 'Annual Fees', 'General', 'Direct Income', 'annual', NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (36, 'Tuition Fees', 'General', 'Banks Account', 'monthly', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (37, 'Exam Fees', 'General', 'Banks Account', 'half_yearly', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, 1), (38, 'Computer Fees', 'General', 'Banks Account', 'annual', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (39, 'Computer Fees 1', 'General', 'Banks Account', 'monthly', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (40, 'uniform fees', 'uniform', 'Banks Account', 'quaterly', 1, NULL, NULL, 1, NULL, NULL, 1, NULL, NULL, 1, NULL, NULL), (41, 'fh1', 'g1', 'Banks Account', 'monthly', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `fees_head_group` -- CREATE TABLE `fees_head_group` ( `fees_head_group_id` int(11) NOT NULL, `fees_head_group_name` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `fees_head_group` -- INSERT INTO `fees_head_group` (`fees_head_group_id`, `fees_head_group_name`) VALUES (18, 'General'), (19, 'uniform'), (20, 'g1'); -- -------------------------------------------------------- -- -- Table structure for table `fees_plan` -- CREATE TABLE `fees_plan` ( `fees_heading` varchar(20) DEFAULT NULL, `value` int(10) DEFAULT NULL, `category` varchar(5) DEFAULT NULL, `class` varchar(5) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `fees_plan` -- INSERT INTO `fees_plan` (`fees_heading`, `value`, `category`, `class`) VALUES ('fh1', 200, 'SC', '3'), ('fh1', 200, 'SC', '3'), ('fh1', 200, 'SC', '4'), ('fh1', 200, 'OBC', '3'), ('fh1', 200, 'OBC', '4'), ('fh1', 335, 'Gener', '2'), ('fh1', 335, 'Gener', '3'), ('fh1', 456, 'SC', '4'), ('fh1', 456, 'SC', '5'), ('library', 4598, 'Gener', '5'), ('Admission Fees', 1000, 'New', '2'), ('Admission Fees', 1000, 'New', '3'), ('Admission Fees', 1000, 'New', '4'), ('Admission Fees', 1000, 'New', '5'), ('Admission Fees', 2000, 'New', '6'), ('Admission Fees', 2000, 'New', '13'), ('Admission Fees', 2000, 'New', '15'), ('Admission Fees', 2000, 'New', '99'), ('Admission Fees', 2000, 'New', '77'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('Admission Fees', 98, 'Old', '2'), ('Admission Fees', 98, 'Old', '3'), ('Admission Fees', 98, 'New', '2'), ('Admission Fees', 98, 'New', '3'), ('fh1', 500, 'New', '2'); -- -------------------------------------------------------- -- -- Table structure for table `fees_plan_category` -- CREATE TABLE `fees_plan_category` ( `category_id` int(11) NOT NULL, `category_name` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `fees_plan_category` -- INSERT INTO `fees_plan_category` (`category_id`, `category_name`) VALUES (29, 'Old'), (30, 'New'), (31, 'millitary'), (32, 'obc'); -- -------------------------------------------------------- -- -- Table structure for table `fees_reciept` -- CREATE TABLE `fees_reciept` ( `reciept_id` int(11) NOT NULL, `date` date NOT NULL, `reciept_no` int(5) NOT NULL, `admission_no` int(5) NOT NULL, `jan` int(11) NOT NULL, `feb` int(11) NOT NULL, `mar` int(11) NOT NULL, `apr` int(11) NOT NULL, `may` int(11) NOT NULL, `jun` int(11) NOT NULL, `jul` int(11) NOT NULL, `aug` int(11) NOT NULL, `sep` int(11) NOT NULL, `oct` int(11) NOT NULL, `nov` int(11) NOT NULL, `dece` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `fees_reciept` -- INSERT INTO `fees_reciept` (`reciept_id`, `date`, `reciept_no`, `admission_no`, `jan`, `feb`, `mar`, `apr`, `may`, `jun`, `jul`, `aug`, `sep`, `oct`, `nov`, `dece`) VALUES (12, '0000-00-00', 22, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0), (13, '0000-00-00', 22, 4, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0), (14, '0000-00-00', 22, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), (15, '0000-00-00', 4, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (16, '0000-00-00', 4, 8, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0), (17, '0000-00-00', 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (18, '0000-00-00', 7, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (19, '0000-00-00', 7, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (20, '0000-00-00', 7, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (21, '0000-00-00', 7, 5, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0), (22, '0000-00-00', 7, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (23, '0000-00-00', 7, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (24, '0000-00-00', 7, 8, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0), (25, '0000-00-00', 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (26, '0000-00-00', 5, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (27, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (28, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (29, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (30, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (31, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (32, '0000-00-00', 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (33, '0000-00-00', 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (34, '0000-00-00', 8, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (35, '0000-00-00', 8, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (36, '0000-00-00', 8, 289, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (37, '0000-00-00', 8, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (38, '0000-00-00', 8, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (39, '0000-00-00', 8, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (40, '0000-00-00', 8, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (41, '0000-00-00', 8, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (42, '0000-00-00', 8, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (43, '0000-00-00', 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (44, '0000-00-00', 8, 8, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0), (45, '0000-00-00', 8, 288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (46, '0000-00-00', 8, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (47, '0000-00-00', 8, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (48, '0000-00-00', 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (49, '2017-10-16', 90, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (50, '0000-00-00', 90, 8, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0), (51, '0000-00-00', 6, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (52, '0000-00-00', 6, 9, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0), (53, '0000-00-00', 7, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), (54, '0000-00-00', 7, 9, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0), (55, '0000-00-00', 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `gatepass` -- CREATE TABLE `gatepass` ( `gatepass_id` int(11) NOT NULL, `name` varchar(30) NOT NULL, `photo` text NOT NULL, `profession` varchar(30) NOT NULL, `address` varchar(100) NOT NULL, `contact_no` int(10) NOT NULL, `purpose` text NOT NULL, `date_of_visit` date NOT NULL, `time_of_visit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `expected_return_date` date NOT NULL, `expected_return_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `proof_of_identity` text NOT NULL, `items_retained` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `house` -- CREATE TABLE `house` ( `house_id` int(11) NOT NULL, `house_name` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `house` -- INSERT INTO `house` (`house_id`, `house_name`) VALUES (17, 'Blue'), (18, 'Yellow'), (19, 'Red'), (20, 'Green'); -- -------------------------------------------------------- -- -- Table structure for table `journal` -- CREATE TABLE `journal` ( `journal_id` int(11) NOT NULL, `date` date NOT NULL, `voucher_no` int(10) NOT NULL, `d_c` varchar(5) NOT NULL, `account_name` varchar(50) NOT NULL, `amount` int(10) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `organisation_info` -- CREATE TABLE `organisation_info` ( `org_id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `address_1` varchar(100) NOT NULL, `address_2` varchar(100) NOT NULL, `city` varchar(25) NOT NULL, `phone_no` int(11) NOT NULL, `fax_no` int(11) NOT NULL, `mobile` int(11) NOT NULL, `email` varchar(50) NOT NULL, `password` text NOT NULL, `website` varchar(50) NOT NULL, `contact_person` varchar(50) NOT NULL, `pan_no` varchar(15) NOT NULL, `affiliation` text NOT NULL, `license_no` int(20) NOT NULL, `service_tax_no` int(20) NOT NULL, `session_start` date NOT NULL, `session_end` date NOT NULL, `dise_code` int(11) DEFAULT NULL, `school_code` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `organisation_info` -- INSERT INTO `organisation_info` (`org_id`, `name`, `address_1`, `address_2`, `city`, `phone_no`, `fax_no`, `mobile`, `email`, `password`, `website`, `contact_person`, `pan_no`, `affiliation`, `license_no`, `service_tax_no`, `session_start`, `session_end`, `dise_code`, `school_code`) VALUES (4, 'Simpkins School', 'A22', 'maruti estate', 'Agra', 98989898, 287832, 878797897, 'akshat41121995@gmail.com', 'nicola', 'www.futureheadech.com', 'akshat', '9882ckkasj09', 'cbse', 29, 0, '1222-12-12', '3122-12-12', 32145, 921834); -- -------------------------------------------------------- -- -- Table structure for table `owner` -- CREATE TABLE `owner` ( `ownerId` int(10) NOT NULL, `ownerEmail` varchar(50) NOT NULL, `ownerPass` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `owner` -- INSERT INTO `owner` (`ownerId`, `ownerEmail`, `ownerPass`) VALUES (1, 'akshat41121995@gmail.com', 'nicola11'), (2, 'sajal.mnc@gmail.com', 'sajal1234'), (3, 'sachin@gmail.com', 'sachin1234\r\n'); -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE `payments` ( `payment_id` int(11) NOT NULL, `date` date NOT NULL, `vch_no` int(5) NOT NULL, `d_c` int(5) NOT NULL, `account_name` varchar(50) NOT NULL, `amount` int(10) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `receipt` -- CREATE TABLE `receipt` ( `receipt_id` int(11) NOT NULL, `date` date NOT NULL, `vch_no` int(10) NOT NULL, `d_c` varchar(5) NOT NULL, `account_name` varchar(20) NOT NULL, `amount` int(10) NOT NULL, `short_narration` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `route` -- CREATE TABLE `route` ( `route_id` int(11) NOT NULL, `route_name` text NOT NULL, `freq` varchar(20) NOT NULL, `january` int(11) DEFAULT NULL, `february` int(11) DEFAULT NULL, `march` int(11) DEFAULT NULL, `april` int(11) DEFAULT NULL, `may` int(11) DEFAULT NULL, `june` int(11) DEFAULT NULL, `july` int(11) DEFAULT NULL, `august` int(11) DEFAULT NULL, `september` int(11) DEFAULT NULL, `october` int(11) DEFAULT NULL, `november` int(11) DEFAULT NULL, `december` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `route_plan` -- CREATE TABLE `route_plan` ( `route_plan_id` int(11) NOT NULL, `route_name` varchar(50) NOT NULL, `value` int(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `section` -- CREATE TABLE `section` ( `section_id` int(2) NOT NULL, `section_name` varchar(5) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `section` -- INSERT INTO `section` (`section_id`, `section_name`) VALUES (100, 'C'), (104, 'E'), (107, 'A'), (108, 'B'); -- -------------------------------------------------------- -- -- Table structure for table `student` -- CREATE TABLE `student` ( `student_id` int(5) NOT NULL, `student_first_name` varchar(20) NOT NULL, `student_middle_name` varchar(20) NOT NULL, `student_last_name` varchar(20) NOT NULL, `student_class` varchar(10) NOT NULL, `student_section` varchar(5) NOT NULL, `student_roll_no` int(2) NOT NULL, `route` varchar(20) DEFAULT NULL, `caste` varchar(10) NOT NULL, `category` varchar(10) NOT NULL, `house` varchar(10) NOT NULL, `student_photo` int(11) DEFAULT NULL, `admission_no` int(5) NOT NULL, `gender` varchar(5) NOT NULL, `student_dob` date NOT NULL, `house_no` varchar(5) NOT NULL, `street_name` varchar(50) NOT NULL, `other_info` varchar(60) NOT NULL, `zip_code` varchar(6) NOT NULL, `city` varchar(20) NOT NULL, `state` varchar(20) NOT NULL, `country` varchar(20) NOT NULL, `fathers_first_name` varchar(20) NOT NULL, `fathers_middle_name` varchar(20) NOT NULL, `fathers_last_name` varchar(25) NOT NULL, `f_mobile` int(10) NOT NULL, `f_qual` varchar(15) NOT NULL, `f_occu` varchar(15) NOT NULL, `f_dob` date NOT NULL, `f_photo` text NOT NULL, `mothers_first_name` varchar(20) NOT NULL, `mothers_middle_name` varchar(15) NOT NULL, `mothers_last_name` varchar(20) NOT NULL, `m_mobile` int(10) NOT NULL, `m_qual` varchar(15) NOT NULL, `m_occu` varchar(15) NOT NULL, `m_dob` date NOT NULL, `m_photo` text NOT NULL, `parents_wedding_date` date NOT NULL, `las` varchar(50) NOT NULL, `remarks` varchar(30) NOT NULL, `last_exam_given` varchar(20) NOT NULL, `year` date NOT NULL, `status` varchar(10) NOT NULL, `marks` int(11) NOT NULL, `board` varchar(10) NOT NULL, `bg` varchar(5) NOT NULL, `vl` int(10) NOT NULL, `vr` int(10) NOT NULL, `height` int(5) NOT NULL, `weight` int(5) NOT NULL, `dental_hy` varchar(20) NOT NULL, `tc` int(11) NOT NULL, `cc` int(11) NOT NULL, `report_cc` int(11) NOT NULL, `dob_certificate` int(11) NOT NULL, `admission_form_no` int(11) NOT NULL, `date_admission` date NOT NULL, `ledger_balance` int(5) NOT NULL, `fees_balance` int(5) NOT NULL, `comments` varchar(50) NOT NULL, `hostel_room_no` varchar(5) NOT NULL, `bed_no` int(5) NOT NULL, `scholarship_no` int(10) NOT NULL, `aadhar_uid` int(16) NOT NULL, `family` varchar(20) NOT NULL, `status_adm` varchar(10) NOT NULL, `discontinue_date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `student` -- INSERT INTO `student` (`student_id`, `student_first_name`, `student_middle_name`, `student_last_name`, `student_class`, `student_section`, `student_roll_no`, `route`, `caste`, `category`, `house`, `student_photo`, `admission_no`, `gender`, `student_dob`, `house_no`, `street_name`, `other_info`, `zip_code`, `city`, `state`, `country`, `fathers_first_name`, `fathers_middle_name`, `fathers_last_name`, `f_mobile`, `f_qual`, `f_occu`, `f_dob`, `f_photo`, `mothers_first_name`, `mothers_middle_name`, `mothers_last_name`, `m_mobile`, `m_qual`, `m_occu`, `m_dob`, `m_photo`, `parents_wedding_date`, `las`, `remarks`, `last_exam_given`, `year`, `status`, `marks`, `board`, `bg`, `vl`, `vr`, `height`, `weight`, `dental_hy`, `tc`, `cc`, `report_cc`, `dob_certificate`, `admission_form_no`, `date_admission`, `ledger_balance`, `fees_balance`, `comments`, `hostel_room_no`, `bed_no`, `scholarship_no`, `aadhar_uid`, `family`, `status_adm`, `discontinue_date`) VALUES (283, 'Akshat', '', 'Gupta', '3', 'B', 5, '300', 'Hindu', 'General', 'Yellow', 0, 1, 'Male', '1995-04-12', '7', '', '', '', 'agra', '', '', 'alok', '', '', 0, '', 'business', '0000-00-00', '', 'varsha', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'simpkins school', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 75, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (284, 'Abhinav', '', 'Singh', '2', 'A', 0, '', 'Hindu', 'General', 'Blue', 0, 2, 'Male', '0000-00-00', '76', '', '', '', 'Newyork', '', '', 'XYZA', '', '', 0, '', 'business', '0000-00-00', '', 'BCDE', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'St. Peters', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 1623, '0000-00-00', 735, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (285, 'Akshat', '', 'Gupta', '4', 'B', 5, 'Balaji Puram', 'Hindu', 'General', 'Green', 0, 3, 'Male', '1995-04-12', 'b21', '', '', '', 'Agra', '', '', 'ak', '', '', 0, '', 'business', '0000-00-00', '', 'va', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'ss', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 8123, '0000-00-00', 250, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (286, 'Aman', '', 'Mehra', '2', 'A', 8, 'Kargil', 'Hindu', 'General', 'Blue', 0, 4, 'Male', '2222-02-22', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (287, 'Naina', '', 'Sharma', '3', 'C', 88, 'Kamla Nagar', 'Hindu', 'OBC', 'Yellow', 0, 5, 'Femal', '1996-10-10', '88', '', '', '282010', 'Agra', '', '', 'Shyam ', '', 'Sharma', 0, '', 'business', '0000-00-00', '', 'Radha Sharms', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'UML', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 123, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (288, 'Himanshi', '', 'Gupta', '3', 'C', 45, 'Jaipur House', 'Hindu', 'General', 'Red', 0, 6, 'femal', '1998-10-10', '78', '', '', '', 'kanpur', '', '', 'anil', '', '', 0, '', 'business', '0000-00-00', '', 'poonam', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'st petrics', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 56, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (289, 'Shashank', '', '', '2', 'A', 0, '', 'Hindu', 'General', 'Blue', 0, 7, 'male', '0000-00-00', '77', '', '', '', 'agra', '', '', 'Ak', '', '', 0, '', 'business', '0000-00-00', '', 'VK', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (290, 'manushi', '', '', '2', 'A', 0, '', 'Hindu', 'General', 'Blue', 0, 8, 'male', '0000-00-00', '77', '', '', '', 'Agra', '', '', 'abcd', '', '', 0, '', 'business', '0000-00-00', '', 'efgh', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'ss', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 66, '0000-00-00', 765, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (291, 'Akshat', '', '', '2', 'A', 0, '', 'Hindu', 'General', 'Blue', NULL, 9, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (293, 'Test', '', '', '2', 'A', 0, '', 'Hindu', 'General', 'Blue', NULL, 10, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (294, 'Ram', '', 'Verma', '2', 'C', 0, 'Balaji Puram', 'Hindu', 'General', 'Blue', NULL, 11, 'male', '0000-00-00', 'c 7', '', '', '', 'Agra', '', '', 'Ram', '', 'Verma', 2147483647, '', 'business', '0000-00-00', '', 'Ram', '', 'Verma', 2147483647, '', 'business', '0000-00-00', '', '0000-00-00', 'Verma', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 923, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (295, 'abcd', '', '', '2', 'E', 9, 'Shahganj', 'Hindu', 'General', 'Yellow', NULL, 12, 'male', '2017-12-31', '66', '', '', '', 'agra', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (296, 'Sajal', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 13, 'male', '0000-00-00', '77', '', '', '', 'Agra', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (297, 'asd', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 14, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (298, 'Akshat', '', '', '2', 'C', 0, 'Balaji Puram', 'Hindu', 'General', 'Blue', NULL, 15, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (299, 'Sachin', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 16, 'male', '0000-00-00', '99', '', '', '', 'Agra', '', '', 'Fname', '', '', 0, '', 'business', '0000-00-00', '', 'mname', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'ss', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 90, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (300, 'asd', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 17, 'male', '0000-00-00', '1', '', '', '', 'agra', '', '', 'asd', '', '', 0, '', 'business', '0000-00-00', '', 'asjdhasjd', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'as', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (301, 'Raja', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 18, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (302, 'Raja', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 18, 'male', '0000-00-00', '', '', '', '', '', '', '', '', '', '', 0, '', '', '0000-00-00', '', '', '', '', 0, '', '', '0000-00-00', '', '0000-00-00', '', '', '', '0000-00-00', '', 0, '', '', 0, 0, 0, 0, '', 0, 0, 0, 0, 0, '0000-00-00', 0, 0, '', '', 0, 0, 0, '', '', '0000-00-00'), (303, 'Raja', '', '', '2', 'C', 0, '', 'Hindu', 'General', 'Blue', NULL, 18, 'male', '0000-00-00', '445', '', '', '', 'dash', '', '', 'abcd', '', '', 0, '', 'business', '0000-00-00', '', 'efgh', '', '', 0, '', 'business', '0000-00-00', '', '0000-00-00', 'DPS', '', '', '0000-00-00', 'pass', 0, '', 'a+', 0, 0, 0, 0, '', 0, 0, 0, 0, 1823, '0000-00-00', 788, 0, '', '', 0, 0, 0, '', '', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `student_leaving_certificate` -- CREATE TABLE `student_leaving_certificate` ( `slc_id` int(11) NOT NULL, `name` varchar(25) NOT NULL, `f_name` varchar(25) NOT NULL, `m_name` varchar(25) NOT NULL, `class` int(3) NOT NULL, `school_name` varchar(50) NOT NULL, `end_date` date NOT NULL, `start_date` date NOT NULL, `dob` date NOT NULL, `dob_words` text NOT NULL, `class_present` int(3) NOT NULL, `year` int(4) NOT NULL, `start_class` int(11) DEFAULT NULL, `caste_name` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `student_leaving_certificate` -- INSERT INTO `student_leaving_certificate` (`slc_id`, `name`, `f_name`, `m_name`, `class`, `school_name`, `end_date`, `start_date`, `dob`, `dob_words`, `class_present`, `year`, `start_class`, `caste_name`) VALUES (1, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (2, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (3, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (4, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (5, 'Satyam', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (6, 'Aman', 'Naman', 'Swati', 8, 'Simpkins School', '0000-00-00', '0000-00-00', '0000-00-00', 'aksjdkajskjdak', 8, 2018, 0, 'general'), (7, 'Aman', 'Naman', 'Swati', 8, 'Simpkins School', '0000-00-00', '0000-00-00', '0000-00-00', 'aksjdkajskjdak', 8, 2018, 0, 'general'), (8, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (9, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (10, 'Akshat', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (11, 'AG', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (12, 'Prashant', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''), (13, 'Aman', '', '', 0, '', '0000-00-00', '0000-00-00', '0000-00-00', '', 0, 0, 0, ''); -- -------------------------------------------------------- -- -- Table structure for table `subject` -- CREATE TABLE `subject` ( `subject_id` int(100) NOT NULL, `subject_name` varchar(200) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `terms` -- CREATE TABLE `terms` ( `term_id` int(100) NOT NULL, `term_name` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `account` -- ALTER TABLE `account` ADD PRIMARY KEY (`account_id`); -- -- Indexes for table `account_group` -- ALTER TABLE `account_group` ADD PRIMARY KEY (`account_group_id`); -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`admin_id`); -- -- Indexes for table `assessment` -- ALTER TABLE `assessment` ADD PRIMARY KEY (`assessment_id`); -- -- Indexes for table `bill_sundry` -- ALTER TABLE `bill_sundry` ADD PRIMARY KEY (`bill_sundry_id`); -- -- Indexes for table `caste` -- ALTER TABLE `caste` ADD PRIMARY KEY (`caste_id`); -- -- Indexes for table `category` -- ALTER TABLE `category` ADD PRIMARY KEY (`category_id`); -- -- Indexes for table `class` -- ALTER TABLE `class` ADD PRIMARY KEY (`class_id`); -- -- Indexes for table `contact_us` -- ALTER TABLE `contact_us` ADD PRIMARY KEY (`contact_id`); -- -- Indexes for table `contra` -- ALTER TABLE `contra` ADD PRIMARY KEY (`contra_id`); -- -- Indexes for table `credit_note` -- ALTER TABLE `credit_note` ADD PRIMARY KEY (`credit_note_id`); -- -- Indexes for table `debit_note` -- ALTER TABLE `debit_note` ADD PRIMARY KEY (`debit_note_id`); -- -- Indexes for table `family` -- ALTER TABLE `family` ADD PRIMARY KEY (`family_id`); -- -- Indexes for table `feedback` -- ALTER TABLE `feedback` ADD PRIMARY KEY (`feedback_id`); -- -- Indexes for table `fees_head` -- ALTER TABLE `fees_head` ADD PRIMARY KEY (`fees_head_id`); -- -- Indexes for table `fees_head_group` -- ALTER TABLE `fees_head_group` ADD PRIMARY KEY (`fees_head_group_id`); -- -- Indexes for table `fees_plan_category` -- ALTER TABLE `fees_plan_category` ADD PRIMARY KEY (`category_id`); -- -- Indexes for table `fees_reciept` -- ALTER TABLE `fees_reciept` ADD PRIMARY KEY (`reciept_id`); -- -- Indexes for table `gatepass` -- ALTER TABLE `gatepass` ADD PRIMARY KEY (`gatepass_id`); -- -- Indexes for table `house` -- ALTER TABLE `house` ADD PRIMARY KEY (`house_id`); -- -- Indexes for table `journal` -- ALTER TABLE `journal` ADD PRIMARY KEY (`journal_id`); -- -- Indexes for table `organisation_info` -- ALTER TABLE `organisation_info` ADD PRIMARY KEY (`org_id`); -- -- Indexes for table `owner` -- ALTER TABLE `owner` ADD PRIMARY KEY (`ownerId`); -- -- Indexes for table `payments` -- ALTER TABLE `payments` ADD PRIMARY KEY (`payment_id`); -- -- Indexes for table `receipt` -- ALTER TABLE `receipt` ADD PRIMARY KEY (`receipt_id`); -- -- Indexes for table `route` -- ALTER TABLE `route` ADD PRIMARY KEY (`route_id`); -- -- Indexes for table `route_plan` -- ALTER TABLE `route_plan` ADD PRIMARY KEY (`route_plan_id`); -- -- Indexes for table `section` -- ALTER TABLE `section` ADD PRIMARY KEY (`section_id`); -- -- Indexes for table `student` -- ALTER TABLE `student` ADD PRIMARY KEY (`student_id`); -- -- Indexes for table `student_leaving_certificate` -- ALTER TABLE `student_leaving_certificate` ADD PRIMARY KEY (`slc_id`); -- -- Indexes for table `subject` -- ALTER TABLE `subject` ADD PRIMARY KEY (`subject_id`); -- -- Indexes for table `terms` -- ALTER TABLE `terms` ADD PRIMARY KEY (`term_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `account` -- ALTER TABLE `account` MODIFY `account_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `account_group` -- ALTER TABLE `account_group` MODIFY `account_group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `admin_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `assessment` -- ALTER TABLE `assessment` MODIFY `assessment_id` int(100) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `bill_sundry` -- ALTER TABLE `bill_sundry` MODIFY `bill_sundry_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `caste` -- ALTER TABLE `caste` MODIFY `caste_id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46; -- -- AUTO_INCREMENT for table `category` -- ALTER TABLE `category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35; -- -- AUTO_INCREMENT for table `class` -- ALTER TABLE `class` MODIFY `class_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- -- AUTO_INCREMENT for table `contact_us` -- ALTER TABLE `contact_us` MODIFY `contact_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `contra` -- ALTER TABLE `contra` MODIFY `contra_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `credit_note` -- ALTER TABLE `credit_note` MODIFY `credit_note_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `debit_note` -- ALTER TABLE `debit_note` MODIFY `debit_note_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `family` -- ALTER TABLE `family` MODIFY `family_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `feedback` -- ALTER TABLE `feedback` MODIFY `feedback_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fees_head` -- ALTER TABLE `fees_head` MODIFY `fees_head_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42; -- -- AUTO_INCREMENT for table `fees_head_group` -- ALTER TABLE `fees_head_group` MODIFY `fees_head_group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `fees_plan_category` -- ALTER TABLE `fees_plan_category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33; -- -- AUTO_INCREMENT for table `fees_reciept` -- ALTER TABLE `fees_reciept` MODIFY `reciept_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56; -- -- AUTO_INCREMENT for table `gatepass` -- ALTER TABLE `gatepass` MODIFY `gatepass_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `house` -- ALTER TABLE `house` MODIFY `house_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `journal` -- ALTER TABLE `journal` MODIFY `journal_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `organisation_info` -- ALTER TABLE `organisation_info` MODIFY `org_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `owner` -- ALTER TABLE `owner` MODIFY `ownerId` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `payments` -- ALTER TABLE `payments` MODIFY `payment_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `receipt` -- ALTER TABLE `receipt` MODIFY `receipt_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `route` -- ALTER TABLE `route` MODIFY `route_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `route_plan` -- ALTER TABLE `route_plan` MODIFY `route_plan_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `section` -- ALTER TABLE `section` MODIFY `section_id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=109; -- -- AUTO_INCREMENT for table `student` -- ALTER TABLE `student` MODIFY `student_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=304; -- -- AUTO_INCREMENT for table `student_leaving_certificate` -- ALTER TABLE `student_leaving_certificate` MODIFY `slc_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `subject` -- ALTER TABLE `subject` MODIFY `subject_id` int(100) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `terms` -- ALTER TABLE `terms` MODIFY `term_id` int(100) NOT NULL AUTO_INCREMENT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
the_stack
/* following scripts: arabic, hebrew and other scripts in the arabic region */ /* ======================================================================= */ /* IBM-862 */ /* Dos Standard CharSet for Hebrew */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */ /* Convert-Tables: mappings/vendors/micsft/pc/cp862.txt from 04/24/96 Version 2.00 */ /* Last-Changes from us: */ /* ----------------------------------------------------------------------- */ #define IBM862UNI_START 0x80 #define IBM862UNI_END 0xFF static sal_uInt16 const aImplIBM862ToUniTab[IBM862UNI_END - IBM862UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0x80 */ 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0x80 */ 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0x90 */ 0x05E8, 0x05E9, 0x05EA, 0x00A2, 0x00A3, 0x00A5, 0x20A7, 0x0192, /* 0x90 */ 0x00E1, 0x00ED, 0x00F3, 0x00FA, 0x00F1, 0x00D1, 0x00AA, 0x00BA, /* 0xA0 */ 0x00BF, 0x2310, 0x00AC, 0x00BD, 0x00BC, 0x00A1, 0x00AB, 0x00BB, /* 0xA0 */ 0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556, /* 0xB0 */ 0x2555, 0x2563, 0x2551, 0x2557, 0x255D, 0x255C, 0x255B, 0x2510, /* 0xB0 */ 0x2514, 0x2534, 0x252C, 0x251C, 0x2500, 0x253C, 0x255E, 0x255F, /* 0xC0 */ 0x255A, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256C, 0x2567, /* 0xC0 */ 0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256B, /* 0xD0 */ 0x256A, 0x2518, 0x250C, 0x2588, 0x2584, 0x258C, 0x2590, 0x2580, /* 0xD0 */ 0x03B1, 0x00DF, 0x0393, 0x03C0, 0x03A3, 0x03C3, 0x00B5, 0x03C4, /* 0xE0 */ 0x03A6, 0x0398, 0x03A9, 0x03B4, 0x221E, 0x03C6, 0x03B5, 0x2229, /* 0xE0 */ 0x2261, 0x00B1, 0x2265, 0x2264, 0x2320, 0x2321, 0x00F7, 0x2248, /* 0xF0 */ 0x00B0, 0x2219, 0x00B7, 0x221A, 0x207F, 0x00B2, 0x25A0, 0x00A0 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define IBM862CHAR_START 0x05D0 #define IBM862CHAR_END 0x05EA static sal_uChar const aImplIBM862ToCharTab[IBM862CHAR_END - IBM862CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, /* 0x05D0 */ 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, /* 0x05D0 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, /* 0x05E0 */ 0x98, 0x99, 0x9A /* 0x05E0 */ }; /* ----------------------------------------------------------------------- */ #define IBM862TOCHARTABEX_COUNT 101 static ImplUniCharTabData const aImplIBM862ToCharTabEx[IBM862TOCHARTABEX_COUNT] = { { 0x00A0, 0xFF, 0 }, { 0x00A1, 0xAD, 0 }, { 0x00A2, 0x9B, 0 }, { 0x00A3, 0x9C, 0 }, { 0x00A5, 0x9D, 0 }, { 0x00AA, 0xA6, 0 }, { 0x00AB, 0xAE, 0 }, { 0x00AC, 0xAA, 0 }, { 0x00B0, 0xF8, 0 }, { 0x00B1, 0xF1, 0 }, { 0x00B2, 0xFD, 0 }, { 0x00B5, 0xE6, 0 }, { 0x00B7, 0xFA, 0 }, { 0x00BA, 0xA7, 0 }, { 0x00BB, 0xAF, 0 }, { 0x00BC, 0xAC, 0 }, { 0x00BD, 0xAB, 0 }, { 0x00BF, 0xA8, 0 }, { 0x00D1, 0xA5, 0 }, { 0x00DF, 0xE1, 0 }, { 0x00E1, 0xA0, 0 }, { 0x00ED, 0xA1, 0 }, { 0x00F1, 0xA4, 0 }, { 0x00F3, 0xA2, 0 }, { 0x00F7, 0xF6, 0 }, { 0x00FA, 0xA3, 0 }, { 0x0192, 0x9F, 0 }, { 0x0393, 0xE2, 0 }, { 0x0398, 0xE9, 0 }, { 0x03A3, 0xE4, 0 }, { 0x03A6, 0xE8, 0 }, { 0x03A9, 0xEA, 0 }, { 0x03B1, 0xE0, 0 }, { 0x03B4, 0xEB, 0 }, { 0x03B5, 0xEE, 0 }, { 0x03C0, 0xE3, 0 }, { 0x03C3, 0xE5, 0 }, { 0x03C4, 0xE7, 0 }, { 0x03C6, 0xED, 0 }, { 0x207F, 0xFC, 0 }, { 0x20A7, 0x9E, 0 }, { 0x2219, 0xF9, 0 }, { 0x221A, 0xFB, 0 }, { 0x221E, 0xEC, 0 }, { 0x2229, 0xEF, 0 }, { 0x2248, 0xF7, 0 }, { 0x2261, 0xF0, 0 }, { 0x2264, 0xF3, 0 }, { 0x2265, 0xF2, 0 }, { 0x2310, 0xA9, 0 }, { 0x2320, 0xF4, 0 }, { 0x2321, 0xF5, 0 }, { 0x2500, 0xC4, 0 }, { 0x2502, 0xB3, 0 }, { 0x250C, 0xDA, 0 }, { 0x2510, 0xBF, 0 }, { 0x2514, 0xC0, 0 }, { 0x2518, 0xD9, 0 }, { 0x251C, 0xC3, 0 }, { 0x2524, 0xB4, 0 }, { 0x252C, 0xC2, 0 }, { 0x2534, 0xC1, 0 }, { 0x253C, 0xC5, 0 }, { 0x2550, 0xCD, 0 }, { 0x2551, 0xBA, 0 }, { 0x2552, 0xD5, 0 }, { 0x2553, 0xD6, 0 }, { 0x2554, 0xC9, 0 }, { 0x2555, 0xB8, 0 }, { 0x2556, 0xB7, 0 }, { 0x2557, 0xBB, 0 }, { 0x2558, 0xD4, 0 }, { 0x2559, 0xD3, 0 }, { 0x255A, 0xC8, 0 }, { 0x255B, 0xBE, 0 }, { 0x255C, 0xBD, 0 }, { 0x255D, 0xBC, 0 }, { 0x255E, 0xC6, 0 }, { 0x255F, 0xC7, 0 }, { 0x2560, 0xCC, 0 }, { 0x2561, 0xB5, 0 }, { 0x2562, 0xB6, 0 }, { 0x2563, 0xB9, 0 }, { 0x2564, 0xD1, 0 }, { 0x2565, 0xD2, 0 }, { 0x2566, 0xCB, 0 }, { 0x2567, 0xCF, 0 }, { 0x2568, 0xD0, 0 }, { 0x2569, 0xCA, 0 }, { 0x256A, 0xD8, 0 }, { 0x256B, 0xD7, 0 }, { 0x256C, 0xCE, 0 }, { 0x2580, 0xDF, 0 }, { 0x2584, 0xDC, 0 }, { 0x2588, 0xDB, 0 }, { 0x258C, 0xDD, 0 }, { 0x2590, 0xDE, 0 }, { 0x2591, 0xB0, 0 }, { 0x2592, 0xB1, 0 }, { 0x2593, 0xB2, 0 }, { 0x25A0, 0xFE, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplIBM862ByteCvtData = { aImplIBM862ToUniTab, NULL, IBM862UNI_START, IBM862UNI_END, NOTABUNI_START, NOTABUNI_END, aImplIBM862ToCharTab, NULL, aImplIBM862ToCharTabEx, IBM862CHAR_START, IBM862CHAR_END, NOTABCHAR_START, NOTABCHAR_END, IBM862TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplIBM862TextEncodingData = { { &aImplIBM862ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 177, "iso8859-8", "IBM862", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME | RTL_TEXTENCODING_INFO_R2L }; /* DOS/OS2, SCRIPT_HEBREW, pc code page 862, mac encoding 5 */ /* ======================================================================= */ /* IBM-864 */ /* Dos Standard CharSet for Arabic */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */ /* Convert-Tables: mappings/vendors/micsft/pc/cp864.txt from 04/24/96 Version 2.00 */ /* Last-Changes from us: */ /* ----------------------------------------------------------------------- */ #define IBM864UNI_START 0x80 #define IBM864UNI_END 0xFE static sal_uInt16 const aImplIBM864ToUniTab[IBM864UNI_END - IBM864UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x00B0, 0x00B7, 0x2219, 0x221A, 0x2592, 0x2500, 0x2502, 0x253C, /* 0x80 */ 0x2524, 0x252C, 0x251C, 0x2534, 0x2510, 0x250C, 0x2514, 0x2518, /* 0x80 */ 0x03B2, 0x221E, 0x03C6, 0x00B1, 0x00BD, 0x00BC, 0x2248, 0x00AB, /* 0x90 */ 0x00BB, 0xFEF7, 0xFEF8, 0, 0, 0xFEFB, 0xFEFC, 0, /* 0x90 */ 0x00A0, 0x00AD, 0xFE82, 0x00A3, 0x00A4, 0xFE84, 0, 0, /* 0xA0 */ 0xFE8E, 0xFE8F, 0xFE95, 0xFE99, 0x060C, 0xFE9D, 0xFEA1, 0xFEA5, /* 0xA0 */ 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, /* 0xB0 */ 0x0668, 0x0669, 0xFED1, 0x061B, 0xFEB1, 0xFEB5, 0xFEB9, 0x061F, /* 0xB0 */ 0x00A2, 0xFE80, 0xFE81, 0xFE83, 0xFE85, 0xFECA, 0xFE8B, 0xFE8D, /* 0xC0 */ 0xFE91, 0xFE93, 0xFE97, 0xFE9B, 0xFE9F, 0xFEA3, 0xFEA7, 0xFEA9, /* 0xC0 */ 0xFEAB, 0xFEAD, 0xFEAF, 0xFEB3, 0xFEB7, 0xFEBB, 0xFEBF, 0xFEC1, /* 0xD0 */ 0xFEC5, 0xFECB, 0xFECF, 0x00A6, 0x00AC, 0x00F7, 0x00D7, 0xFEC9, /* 0xD0 */ 0x0640, 0xFED3, 0xFED7, 0xFEDB, 0xFEDF, 0xFEE3, 0xFEE7, 0xFEEB, /* 0xE0 */ 0xFEED, 0xFEEF, 0xFEF3, 0xFEBD, 0xFECC, 0xFECE, 0xFECD, 0xFEE1, /* 0xE0 */ 0xFE7D, 0x0651, 0xFEE5, 0xFEE9, 0xFEEC, 0xFEF0, 0xFEF2, 0xFED0, /* 0xF0 */ 0xFED5, 0xFEF5, 0xFEF6, 0xFEDD, 0xFED9, 0xFEF1, 0x25A0 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define IBM864CHAR_START 0xFE7D #define IBM864CHAR_END 0xFEFC static sal_uChar const aImplIBM864ToCharTab[IBM864CHAR_END - IBM864CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0xF0, 0, 0, /* 0xFE70 */ 0xC1, 0xC2, 0xA2, 0xC3, 0xA5, 0xC4, 0, 0, /* 0xFE80 */ 0, 0, 0, 0xC6, 0, 0xC7, 0xA8, 0xA9, /* 0xFE80 */ 0, 0xC8, 0, 0xC9, 0, 0xAA, 0, 0xCA, /* 0xFE90 */ 0, 0xAB, 0, 0xCB, 0, 0xAD, 0, 0xCC, /* 0xFE90 */ 0, 0xAE, 0, 0xCD, 0, 0xAF, 0, 0xCE, /* 0xFEA0 */ 0, 0xCF, 0, 0xD0, 0, 0xD1, 0, 0xD2, /* 0xFEA0 */ 0, 0xBC, 0, 0xD3, 0, 0xBD, 0, 0xD4, /* 0xFEB0 */ 0, 0xBE, 0, 0xD5, 0, 0xEB, 0, 0xD6, /* 0xFEB0 */ 0, 0xD7, 0, 0, 0, 0xD8, 0, 0, /* 0xFEC0 */ 0, 0xDF, 0xC5, 0xD9, 0xEC, 0xEE, 0xED, 0xDA, /* 0xFEC0 */ 0xF7, 0xBA, 0, 0xE1, 0, 0xF8, 0, 0xE2, /* 0xFED0 */ 0, 0xFC, 0, 0xE3, 0, 0xFB, 0, 0xE4, /* 0xFED0 */ 0, 0xEF, 0, 0xE5, 0, 0xF2, 0, 0xE6, /* 0xFEE0 */ 0, 0xF3, 0, 0xE7, 0xF4, 0xE8, 0, 0xE9, /* 0xFEE0 */ 0xF5, 0xFD, 0xF6, 0xEA, 0, 0xF9, 0xFA, 0x99, /* 0xFEF0 */ 0x9A, 0, 0, 0x9D, 0x9E /* 0xFEF0 */ }; /* ----------------------------------------------------------------------- */ #define IBM864TOCHARTABEX_COUNT 51 static ImplUniCharTabData const aImplIBM864ToCharTabEx[IBM864TOCHARTABEX_COUNT] = { { 0x00A0, 0xA0, 0 }, { 0x00A2, 0xC0, 0 }, { 0x00A3, 0xA3, 0 }, { 0x00A4, 0xA4, 0 }, { 0x00A6, 0xDB, 0 }, { 0x00AB, 0x97, 0 }, { 0x00AC, 0xDC, 0 }, { 0x00AD, 0xA1, 0 }, { 0x00B0, 0x80, 0 }, { 0x00B1, 0x93, 0 }, { 0x00B7, 0x81, 0 }, { 0x00BB, 0x98, 0 }, { 0x00BC, 0x95, 0 }, { 0x00BD, 0x94, 0 }, { 0x00D7, 0xDE, 0 }, { 0x00F7, 0xDD, 0 }, { 0x03B2, 0x90, 0 }, { 0x03C6, 0x92, 0 }, { 0x060C, 0xAC, 0 }, { 0x061B, 0xBB, 0 }, { 0x061F, 0xBF, 0 }, { 0x0640, 0xE0, 0 }, { 0x0651, 0xF1, 0 }, { 0x0660, 0xB0, 0 }, { 0x0661, 0xB1, 0 }, { 0x0662, 0xB2, 0 }, { 0x0663, 0xB3, 0 }, { 0x0664, 0xB4, 0 }, { 0x0665, 0xB5, 0 }, { 0x0666, 0xB6, 0 }, { 0x0667, 0xB7, 0 }, { 0x0668, 0xB8, 0 }, { 0x0669, 0xB9, 0 }, { 0x066A, 0x25, 0 }, { 0x2219, 0x82, 0 }, { 0x221A, 0x83, 0 }, { 0x221E, 0x91, 0 }, { 0x2248, 0x96, 0 }, { 0x2500, 0x85, 0 }, { 0x2502, 0x86, 0 }, { 0x250C, 0x8D, 0 }, { 0x2510, 0x8C, 0 }, { 0x2514, 0x8E, 0 }, { 0x2518, 0x8F, 0 }, { 0x251C, 0x8A, 0 }, { 0x2524, 0x88, 0 }, { 0x252C, 0x89, 0 }, { 0x2534, 0x8B, 0 }, { 0x253C, 0x87, 0 }, { 0x2592, 0x84, 0 }, { 0x25A0, 0xFE, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplIBM864ByteCvtData = { aImplIBM864ToUniTab, NULL, IBM864UNI_START, IBM864UNI_END, NOTABUNI_START, NOTABUNI_END, aImplIBM864ToCharTab, NULL, aImplIBM864ToCharTabEx, IBM864CHAR_START, IBM864CHAR_END, NOTABCHAR_START, NOTABCHAR_END, IBM864TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplIBM864TextEncodingData = { { &aImplIBM864ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 178, "iso8859-6", "IBM864", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME | RTL_TEXTENCODING_INFO_R2L }; /* DOS/OS2, SCRIPT_ARABIC, pc code page 864, mac encoding 4 */ /* ======================================================================= */ /* MS-1255 */ /* Windows Standard CharSet for Hebrew */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */ /* Convert-Tables: mappings/vendors/micsft/windows/cp1255.txt from 04/15/98 Version 2.01 */ /* Last-Changes from us: */ /* ----------------------------------------------------------------------- */ #define MS1255UNI_START 0x80 #define MS1255UNI_END 0xFF static sal_uInt16 const aImplMS1255ToUniTab[MS1255UNI_END - MS1255UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x20AC, 0, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */ 0x02C6, 0x2030, 0, 0x2039, 0, 0, 0, 0, /* 0x80 */ 0, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */ 0x02DC, 0x2122, 0, 0x203A, 0, 0, 0, 0, /* 0x90 */ 0x00A0, 0x00A1, 0x00A2, 0x00A3, 0x20AA, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */ 0x00A8, 0x00A9, 0x00D7, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */ 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */ 0x00B8, 0x00B9, 0x00F7, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00BF, /* 0xB0 */ 0x05B0, 0x05B1, 0x05B2, 0x05B3, 0x05B4, 0x05B5, 0x05B6, 0x05B7, /* 0xC0 */ 0x05B8, 0x05B9, 0, 0x05BB, 0x05BC, 0x05BD, 0x05BE, 0x05BF, /* 0xC0 */ 0x05C0, 0x05C1, 0x05C2, 0x05C3, 0x05F0, 0x05F1, 0x05F2, 0x05F3, /* 0xD0 */ 0x05F4, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0xE0 */ 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0xE0 */ 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0xF0 */ 0x05E8, 0x05E9, 0x05EA, 0, 0, 0x200E, 0x200F, 0 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define MS1255CHAR_START 0x05B0 #define MS1255CHAR_END 0x05F4 static sal_uChar const aImplMS1255ToCharTab[MS1255CHAR_END - MS1255CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x05B0 */ 0xC8, 0xC9, 0, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x05B0 */ 0xD0, 0xD1, 0xD2, 0xD3, 0, 0, 0, 0, /* 0x05C0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x05C0 */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x05D0 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x05D0 */ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x05E0 */ 0xF8, 0xF9, 0xFA, 0, 0, 0, 0, 0, /* 0x05E0 */ 0xD4, 0xD5, 0xD6, 0xD7, 0xD8 /* 0x05F0 */ }; /* ----------------------------------------------------------------------- */ #define MS1255TOCHARTABEX_COUNT 54 static ImplUniCharTabData const aImplMS1255ToCharTabEx[MS1255TOCHARTABEX_COUNT] = { { 0x00A0, 0xA0, 0 }, { 0x00A1, 0xA1, 0 }, { 0x00A2, 0xA2, 0 }, { 0x00A3, 0xA3, 0 }, { 0x00A5, 0xA5, 0 }, { 0x00A6, 0xA6, 0 }, { 0x00A7, 0xA7, 0 }, { 0x00A8, 0xA8, 0 }, { 0x00A9, 0xA9, 0 }, { 0x00AB, 0xAB, 0 }, { 0x00AC, 0xAC, 0 }, { 0x00AD, 0xAD, 0 }, { 0x00AE, 0xAE, 0 }, { 0x00AF, 0xAF, 0 }, { 0x00B0, 0xB0, 0 }, { 0x00B1, 0xB1, 0 }, { 0x00B2, 0xB2, 0 }, { 0x00B3, 0xB3, 0 }, { 0x00B4, 0xB4, 0 }, { 0x00B5, 0xB5, 0 }, { 0x00B6, 0xB6, 0 }, { 0x00B7, 0xB7, 0 }, { 0x00B8, 0xB8, 0 }, { 0x00B9, 0xB9, 0 }, { 0x00BB, 0xBB, 0 }, { 0x00BC, 0xBC, 0 }, { 0x00BD, 0xBD, 0 }, { 0x00BE, 0xBE, 0 }, { 0x00BF, 0xBF, 0 }, { 0x00D7, 0xAA, 0 }, { 0x00F7, 0xBA, 0 }, { 0x0192, 0x83, 0 }, { 0x02C6, 0x88, 0 }, { 0x02DC, 0x98, 0 }, { 0x200E, 0xFD, 0 }, { 0x200F, 0xFE, 0 }, { 0x2013, 0x96, 0 }, { 0x2014, 0x97, 0 }, { 0x2018, 0x91, 0 }, { 0x2019, 0x92, 0 }, { 0x201A, 0x82, 0 }, { 0x201C, 0x93, 0 }, { 0x201D, 0x94, 0 }, { 0x201E, 0x84, 0 }, { 0x2020, 0x86, 0 }, { 0x2021, 0x87, 0 }, { 0x2022, 0x95, 0 }, { 0x2026, 0x85, 0 }, { 0x2030, 0x89, 0 }, { 0x2039, 0x8B, 0 }, { 0x203A, 0x9B, 0 }, { 0x20AA, 0xA4, 0 }, { 0x20AC, 0x80, 0 }, { 0x2122, 0x99, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplMS1255ByteCvtData = { aImplMS1255ToUniTab, NULL, MS1255UNI_START, MS1255UNI_END, NOTABUNI_START, NOTABUNI_END, aImplMS1255ToCharTab, NULL, aImplMS1255ToCharTabEx, MS1255CHAR_START, MS1255CHAR_END, NOTABCHAR_START, NOTABCHAR_END, MS1255TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplMS1255TextEncodingData = { { &aImplMS1255ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 177, "iso8859-8", "windows-1255", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME | RTL_TEXTENCODING_INFO_R2L }; /* WIN, SCRIPT_HEBREW, pc code page 862, mac encoding 5 */ /* ======================================================================= */ /* MS-1256 */ /* Windows Standard CharSet for Arabic */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */ /* Convert-Tables: mappings/vendors/micsft/windows/cp1256.txt from 01/5/99 Version 2.01 */ /* ----------------------------------------------------------------------- */ #define MS1256UNI_START 0x80 #define MS1256UNI_END 0xFF static sal_uInt16 const aImplMS1256ToUniTab[MS1256UNI_END - MS1256UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021, /* 0x80 */ 0x02C6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, /* 0x80 */ 0x06AF, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014, /* 0x90 */ 0x06A9, 0x2122, 0x0691, 0x203A, 0x0153, 0x200C, 0x200D, 0x06BA, /* 0x90 */ 0x00A0, 0x060C, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */ 0x00A8, 0x00A9, 0x06BE, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */ 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */ 0x00B8, 0x00B9, 0x061B, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x061F, /* 0xB0 */ 0x06C1, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, /* 0xC0 */ 0x0628, 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, /* 0xC0 */ 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x00D7, /* 0xD0 */ 0x0637, 0x0638, 0x0639, 0x063A, 0x0640, 0x0641, 0x0642, 0x0643, /* 0xD0 */ 0x00E0, 0x0644, 0x00E2, 0x0645, 0x0646, 0x0647, 0x0648, 0x00E7, /* 0xE0 */ 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x0649, 0x064A, 0x00EE, 0x00EF, /* 0xE0 */ 0x064B, 0x064C, 0x064D, 0x064E, 0x00F4, 0x064F, 0x0650, 0x00F7, /* 0xF0 */ 0x0651, 0x00F9, 0x0652, 0x00FB, 0x00FC, 0x200E, 0x200F, 0x06D2 /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define MS1256CHAR_START 0x061B #define MS1256CHAR_END 0x0652 static sal_uChar const aImplMS1256ToCharTab[MS1256CHAR_END - MS1256CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0xBA, 0, 0, 0, 0xBF, /* 0x0610 */ 0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0620 */ 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0620 */ 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD8, /* 0x0630 */ 0xD9, 0xDA, 0xDB, 0, 0, 0, 0, 0, /* 0x0630 */ 0xDC, 0xDD, 0xDE, 0xDF, 0xE1, 0xE3, 0xE4, 0xE5, /* 0x0640 */ 0xE6, 0xEC, 0xED, 0xF0, 0xF1, 0xF2, 0xF3, 0xF5, /* 0x0640 */ 0xF6, 0xF8, 0xFA /* 0x0650 */ }; /* ----------------------------------------------------------------------- */ #define MS1256TOCHARTABEX_COUNT 81 static ImplUniCharTabData const aImplMS1256ToCharTabEx[MS1256TOCHARTABEX_COUNT] = { { 0x00A0, 0xA0, 0 }, { 0x00A2, 0xA2, 0 }, { 0x00A3, 0xA3, 0 }, { 0x00A4, 0xA4, 0 }, { 0x00A5, 0xA5, 0 }, { 0x00A6, 0xA6, 0 }, { 0x00A7, 0xA7, 0 }, { 0x00A8, 0xA8, 0 }, { 0x00A9, 0xA9, 0 }, { 0x00AB, 0xAB, 0 }, { 0x00AC, 0xAC, 0 }, { 0x00AD, 0xAD, 0 }, { 0x00AE, 0xAE, 0 }, { 0x00AF, 0xAF, 0 }, { 0x00B0, 0xB0, 0 }, { 0x00B1, 0xB1, 0 }, { 0x00B2, 0xB2, 0 }, { 0x00B3, 0xB3, 0 }, { 0x00B4, 0xB4, 0 }, { 0x00B5, 0xB5, 0 }, { 0x00B6, 0xB6, 0 }, { 0x00B7, 0xB7, 0 }, { 0x00B8, 0xB8, 0 }, { 0x00B9, 0xB9, 0 }, { 0x00BB, 0xBB, 0 }, { 0x00BC, 0xBC, 0 }, { 0x00BD, 0xBD, 0 }, { 0x00BE, 0xBE, 0 }, { 0x00D7, 0xD7, 0 }, { 0x00E0, 0xE0, 0 }, { 0x00E2, 0xE2, 0 }, { 0x00E7, 0xE7, 0 }, { 0x00E8, 0xE8, 0 }, { 0x00E9, 0xE9, 0 }, { 0x00EA, 0xEA, 0 }, { 0x00EB, 0xEB, 0 }, { 0x00EE, 0xEE, 0 }, { 0x00EF, 0xEF, 0 }, { 0x00F4, 0xF4, 0 }, { 0x00F7, 0xF7, 0 }, { 0x00F9, 0xF9, 0 }, { 0x00FB, 0xFB, 0 }, { 0x00FC, 0xFC, 0 }, { 0x0152, 0x8C, 0 }, { 0x0153, 0x9C, 0 }, { 0x0192, 0x83, 0 }, { 0x02C6, 0x88, 0 }, { 0x060C, 0xA1, 0 }, { 0x0679, 0x8A, 0 }, { 0x067E, 0x81, 0 }, { 0x0686, 0x8D, 0 }, { 0x0688, 0x8F, 0 }, { 0x0691, 0x9A, 0 }, { 0x0698, 0x8E, 0 }, { 0x06A9, 0x98, 0 }, { 0x06AF, 0x90, 0 }, { 0x06BA, 0x9F, 0 }, { 0x06BE, 0xAA, 0 }, { 0x06C1, 0xC0, 0 }, { 0x06D2, 0xFF, 0 }, { 0x200C, 0x9D, 0 }, { 0x200D, 0x9E, 0 }, { 0x200E, 0xFD, 0 }, { 0x200F, 0xFE, 0 }, { 0x2013, 0x96, 0 }, { 0x2014, 0x97, 0 }, { 0x2018, 0x91, 0 }, { 0x2019, 0x92, 0 }, { 0x201A, 0x82, 0 }, { 0x201C, 0x93, 0 }, { 0x201D, 0x94, 0 }, { 0x201E, 0x84, 0 }, { 0x2020, 0x86, 0 }, { 0x2021, 0x87, 0 }, { 0x2022, 0x95, 0 }, { 0x2026, 0x85, 0 }, { 0x2030, 0x89, 0 }, { 0x2039, 0x8B, 0 }, { 0x203A, 0x9B, 0 }, { 0x20AC, 0x80, 0 }, { 0x2122, 0x99, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplMS1256ByteCvtData = { aImplMS1256ToUniTab, NULL, MS1256UNI_START, MS1256UNI_END, NOTABUNI_START, NOTABUNI_END, aImplMS1256ToCharTab, NULL, aImplMS1256ToCharTabEx, MS1256CHAR_START, MS1256CHAR_END, NOTABCHAR_START, NOTABCHAR_END, MS1256TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplMS1256TextEncodingData = { { &aImplMS1256ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 178, "iso8859-6", "windows-1256", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MIME | RTL_TEXTENCODING_INFO_R2L }; /* WIN, SCRIPT_ARABIC, pc code page 864, mac encoding 4 */ /* ======================================================================= */ /* ISO-8859-6 */ /* Unix Standard for Arabic */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */ /* Convert-Tables: mappings/iso8859/8859-6.txt from 07/27/99 Version 1.0 (based on Unicode 3.0) */ /* Last-Changes from us: */ /* !!! 0x30-0x39 sind Arabische Zahlen und muessten eigentlich nach 0x0660-0x0669 gemappt werden !!! */ #define ISO88596UNI_START 0xA0 #define ISO88596UNI_END 0xF2 static sal_uInt16 const aImplISO88596ToUniTab[ISO88596UNI_END - ISO88596UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x00A0, 0, 0, 0, 0x00A4, 0, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0x060C, 0x00AD, 0, 0, /* 0xA0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xB0 */ 0, 0, 0, 0x061B, 0, 0, 0, 0x061F, /* 0xB0 */ 0, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, /* 0xC0 */ 0x0628, 0x0629, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, 0x062F, /* 0xC0 */ 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, /* 0xD0 */ 0x0638, 0x0639, 0x063A, 0, 0, 0, 0, 0, /* 0xD0 */ 0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, /* 0xE0 */ 0x0648, 0x0649, 0x064A, 0x064B, 0x064C, 0x064D, 0x064E, 0x064F, /* 0xE0 */ 0x0650, 0x0651, 0x0652 /* 0xF0 */ /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define ISO88596CHAR_START 0x061B #define ISO88596CHAR_END 0x0669 static sal_uChar const aImplISO88596ToCharTab[ISO88596CHAR_END - ISO88596CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0xBB, 0, 0, 0, 0xBF, /* 0x0610 */ 0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, /* 0x0620 */ 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, /* 0x0620 */ 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, /* 0x0630 */ 0xD8, 0xD9, 0xDA, 0, 0, 0, 0, 0, /* 0x0630 */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x0640 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x0640 */ 0xF0, 0xF1, 0xF2, 0, 0, 0, 0, 0, /* 0x0650 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0x0650 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, /* 0x0660 */ 0x38, 0x39 /* 0x0660 */ }; /* ----------------------------------------------------------------------- */ #define ISO88596TOCHARTABEX_COUNT 4 static ImplUniCharTabData const aImplISO88596ToCharTabEx[ISO88596TOCHARTABEX_COUNT] = { { 0x00A0, 0xA0, 0 }, { 0x00A4, 0xA4, 0 }, { 0x00AD, 0xAD, 0 }, { 0x060C, 0xAC, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplISO88596ByteCvtData = { aImplISO88596ToUniTab, aImpl8090SameToUniTab, ISO88596UNI_START, ISO88596UNI_END, SAME8090UNI_START, SAME8090UNI_END, aImplISO88596ToCharTab, aImpl8090SameToCharTab, aImplISO88596ToCharTabEx, ISO88596CHAR_START, ISO88596CHAR_END, SAME8090CHAR_START, SAME8090CHAR_END, ISO88596TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplISO88596TextEncodingData = { { &aImplISO88596ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 178, "iso8859-6", "ISO-8859-6", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_R2L | RTL_TEXTENCODING_INFO_MIME }; /* SCRIPT_ARABIC, pc code page 864, mac encoding 4 */ /* ======================================================================= */ /* ISO-8859-8 */ /* Unix Standard for Hebrew */ /* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme, 0x80-0x9F Control-Caracter wie in Unicode */ /* Convert-Tables: mappings/iso8859/8859-8.txt from 2000-Jan-03 Version 1.1 (based on Unicode 3.0) */ #define ISO88598UNI_START 0xA0 #define ISO88598UNI_END 0xFE static sal_uInt16 const aImplISO88598ToUniTab[ISO88598UNI_END - ISO88598UNI_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x00A0, 0, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7, /* 0xA0 */ 0x00A8, 0x00A9, 0x00D7, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF, /* 0xA0 */ 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7, /* 0xB0 */ 0x00B8, 0x00B9, 0x00F7, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0, /* 0xB0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xC0 */ 0, 0, 0, 0, 0, 0, 0, 0, /* 0xD0 */ 0, 0, 0, 0, 0, 0, 0, 0x2017, /* 0xD0 */ 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, /* 0xE0 */ 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF, /* 0xE0 */ 0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, /* 0xF0 */ 0x05E8, 0x05E9, 0x05EA, 0, 0, 0x200E, 0x200F /* 0xF0 */ }; /* ----------------------------------------------------------------------- */ #define ISO88598CHAR_START 0x05D0 #define ISO88598CHAR_END 0x05EA static sal_uChar const aImplISO88598ToCharTab[ISO88598CHAR_END - ISO88598CHAR_START + 1] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, /* 0x05D0 */ 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, /* 0x05D0 */ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, /* 0x05E0 */ 0xF8, 0xF9, 0xFA /* 0x05E0 */ }; /* ----------------------------------------------------------------------- */ #define ISO88598TOCHARTABEX_COUNT 33 static ImplUniCharTabData const aImplISO88598ToCharTabEx[ISO88598TOCHARTABEX_COUNT] = { { 0x00A0, 0xA0, 0 }, { 0x00A2, 0xA2, 0 }, { 0x00A3, 0xA3, 0 }, { 0x00A4, 0xA4, 0 }, { 0x00A5, 0xA5, 0 }, { 0x00A6, 0xA6, 0 }, { 0x00A7, 0xA7, 0 }, { 0x00A8, 0xA8, 0 }, { 0x00A9, 0xA9, 0 }, { 0x00AB, 0xAB, 0 }, { 0x00AC, 0xAC, 0 }, { 0x00AD, 0xAD, 0 }, { 0x00AE, 0xAE, 0 }, { 0x00AF, 0xAF, 0 }, { 0x00B0, 0xB0, 0 }, { 0x00B1, 0xB1, 0 }, { 0x00B2, 0xB2, 0 }, { 0x00B3, 0xB3, 0 }, { 0x00B4, 0xB4, 0 }, { 0x00B5, 0xB5, 0 }, { 0x00B6, 0xB6, 0 }, { 0x00B7, 0xB7, 0 }, { 0x00B8, 0xB8, 0 }, { 0x00B9, 0xB9, 0 }, { 0x00BB, 0xBB, 0 }, { 0x00BC, 0xBC, 0 }, { 0x00BD, 0xBD, 0 }, { 0x00BE, 0xBE, 0 }, { 0x00D7, 0xAA, 0 }, { 0x00F7, 0xBA, 0 }, { 0x200E, 0xFD, 0 }, { 0x200F, 0xFE, 0 }, { 0x2017, 0xDF, 0 } }; /* ----------------------------------------------------------------------- */ static ImplByteConvertData const aImplISO88598ByteCvtData = { aImplISO88598ToUniTab, aImpl8090SameToUniTab, ISO88598UNI_START, ISO88598UNI_END, SAME8090UNI_START, SAME8090UNI_END, aImplISO88598ToCharTab, aImpl8090SameToCharTab, aImplISO88598ToCharTabEx, ISO88598CHAR_START, ISO88598CHAR_END, SAME8090CHAR_START, SAME8090CHAR_END, ISO88598TOCHARTABEX_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplISO88598TextEncodingData = { { &aImplISO88598ByteCvtData, ImplCharToUnicode, ImplUnicodeToChar, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 1, 1, 177, "iso8859-8", "ISO-8859-8", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_R2L | RTL_TEXTENCODING_INFO_MIME }; /* SCRIPT_HEBREW, pc code page 862, mac encoding 5 */
the_stack
-- -- CREATE_INDEX -- Create ancillary data structures (i.e. indices) -- -- -- BTREE -- CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops); CREATE INDEX onek_unique2 ON onek USING btree(unique2 int4_ops); CREATE INDEX onek_hundred ON onek USING btree(hundred int4_ops); CREATE INDEX onek_stringu1 ON onek USING btree(stringu1 name_ops); CREATE INDEX tenk1_unique1 ON tenk1 USING btree(unique1 int4_ops); CREATE INDEX tenk1_unique2 ON tenk1 USING btree(unique2 int4_ops); CREATE INDEX tenk1_hundred ON tenk1 USING btree(hundred int4_ops); CREATE INDEX tenk1_thous_tenthous ON tenk1 (thousand, tenthous); CREATE INDEX tenk2_unique1 ON tenk2 USING btree(unique1 int4_ops); CREATE INDEX tenk2_unique2 ON tenk2 USING btree(unique2 int4_ops); CREATE INDEX tenk2_hundred ON tenk2 USING btree(hundred int4_ops); CREATE INDEX rix ON road USING btree (name text_ops); CREATE INDEX iix ON ihighway USING btree (name text_ops); CREATE INDEX six ON shighway USING btree (name text_ops); -- test comments COMMENT ON INDEX six_wrong IS 'bad index'; COMMENT ON INDEX six IS 'good index'; COMMENT ON INDEX six IS NULL; -- -- BTREE ascending/descending cases -- -- we load int4/text from pure descending data (each key is a new -- low key) and name/f8 from pure ascending data (each key is a new -- high key). we had a bug where new low keys would sometimes be -- "lost". -- CREATE INDEX bt_i4_index ON bt_i4_heap USING btree (seqno int4_ops); CREATE INDEX bt_name_index ON bt_name_heap USING btree (seqno name_ops); CREATE INDEX bt_txt_index ON bt_txt_heap USING btree (seqno text_ops); CREATE INDEX bt_f8_index ON bt_f8_heap USING btree (seqno float8_ops); -- -- BTREE partial indices -- CREATE INDEX onek2_u1_prtl ON onek2 USING btree(unique1 int4_ops) where unique1 < 20 or unique1 > 980; CREATE INDEX onek2_u2_prtl ON onek2 USING btree(unique2 int4_ops) where stringu1 < 'B'; CREATE INDEX onek2_stu1_prtl ON onek2 USING btree(stringu1 name_ops) where onek2.stringu1 >= 'J' and onek2.stringu1 < 'K'; -- -- GIN over int[] and text[] -- -- Note: GIN currently supports only bitmap scans, not plain indexscans -- SET enable_seqscan = OFF; SET enable_indexscan = OFF; SET enable_bitmapscan = ON; CREATE INDEX intarrayidx ON array_index_op_test USING gin (i); explain (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT * FROM array_index_op_test WHERE i @> '{32}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i @> '{32}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{32}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i @> '{17}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{17}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i @> '{32,17}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{32,17}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i <@ '{38,34,32,89}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i = '{47,77}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i = '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i @> '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i <@ '{}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i = '{NULL}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i @> '{NULL}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i && '{NULL}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i <@ '{NULL}' ORDER BY seqno; CREATE INDEX textarrayidx ON array_index_op_test USING gin (t); explain (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAAA72908}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAAA72908}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t && '{AAAAAAAA72908}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAAAAA646}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t && '{AAAAAAAAAA646}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAAA72908,AAAAAAAAAA646}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t && '{AAAAAAAA72908,AAAAAAAAAA646}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t <@ '{AAAAAAAA72908,AAAAAAAAAAAAAAAAAAA17075,AA88409,AAAAAAAAAAAAAAAAAA36842,AAAAAAA48038,AAAAAAAAAAAAAA10611}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t = '{AAAAAAAAAA646,A87088}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t = '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t @> '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t && '{}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t <@ '{}' ORDER BY seqno; -- And try it with a multicolumn GIN index DROP INDEX intarrayidx, textarrayidx; CREATE INDEX botharrayidx ON array_index_op_test USING gin (i, t); SELECT * FROM array_index_op_test WHERE i @> '{32}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{32}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAA80240}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t && '{AAAAAAA80240}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i @> '{32}' AND t && '{AAAAAAA80240}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE i && '{32}' AND t @> '{AAAAAAA80240}' ORDER BY seqno; SELECT * FROM array_index_op_test WHERE t = '{}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i = '{NULL}' ORDER BY seqno; SELECT * FROM array_op_test WHERE i <@ '{NULL}' ORDER BY seqno; RESET enable_seqscan; RESET enable_indexscan; RESET enable_bitmapscan; -- -- Test GIN index's reloptions -- CREATE INDEX gin_relopts_test ON array_index_op_test USING gin (i) WITH (FASTUPDATE=on, GIN_PENDING_LIST_LIMIT=128); \d gin_relopts_test -- -- HASH -- CREATE INDEX hash_i4_index ON hash_i4_heap USING hash (random int4_ops); CREATE INDEX hash_name_index ON hash_name_heap USING hash (random name_ops); CREATE INDEX hash_txt_index ON hash_txt_heap USING hash (random text_ops); CREATE INDEX hash_f8_index ON hash_f8_heap USING hash (random float8_ops); -- CREATE INDEX hash_ovfl_index ON hash_ovfl_heap USING hash (x int4_ops); -- -- Test functional index -- -- PGXC: Here replication is used to ensure correct index creation -- when a non-shippable expression is used. -- PGXCTODO: this should be removed once global constraints are supported CREATE TABLE func_index_heap (f1 text, f2 text) DISTRIBUTE BY REPLICATION; CREATE UNIQUE INDEX func_index_index on func_index_heap (textcat(f1,f2)); INSERT INTO func_index_heap VALUES('ABC','DEF'); INSERT INTO func_index_heap VALUES('AB','CDEFG'); INSERT INTO func_index_heap VALUES('QWE','RTY'); -- this should fail because of unique index: INSERT INTO func_index_heap VALUES('ABCD', 'EF'); -- but this shouldn't: INSERT INTO func_index_heap VALUES('QWERTY'); -- -- Same test, expressional index -- DROP TABLE func_index_heap; -- PGXC: Here replication is used to ensure correct index creation -- when a non-shippable expression is used. -- PGXCTODO: this should be removed once global constraints are supported CREATE TABLE func_index_heap (f1 text, f2 text) DISTRIBUTE BY REPLICATION; CREATE UNIQUE INDEX func_index_index on func_index_heap ((f1 || f2) text_ops); INSERT INTO func_index_heap VALUES('ABC','DEF'); INSERT INTO func_index_heap VALUES('AB','CDEFG'); INSERT INTO func_index_heap VALUES('QWE','RTY'); -- this should fail because of unique index: INSERT INTO func_index_heap VALUES('ABCD', 'EF'); -- but this shouldn't: INSERT INTO func_index_heap VALUES('QWERTY'); -- -- Also try building functional, expressional, and partial indexes on -- tables that already contain data. -- create unique index hash_f8_index_1 on hash_f8_heap(abs(random)); create unique index hash_f8_index_2 on hash_f8_heap((seqno + 1), random); create unique index hash_f8_index_3 on hash_f8_heap(random) where seqno > 1000; -- -- Try some concurrent index builds -- -- Unfortunately this only tests about half the code paths because there are -- no concurrent updates happening to the table at the same time. CREATE TABLE concur_heap (f1 text, f2 text); -- empty table CREATE INDEX CONCURRENTLY concur_index1 ON concur_heap(f2,f1); INSERT INTO concur_heap VALUES ('a','b'); INSERT INTO concur_heap VALUES ('b','b'); -- unique index CREATE UNIQUE INDEX CONCURRENTLY concur_index2 ON concur_heap(f1); -- check if constraint is set up properly to be enforced INSERT INTO concur_heap VALUES ('b','x'); -- check if constraint is enforced properly at build time CREATE UNIQUE INDEX CONCURRENTLY concur_index3 ON concur_heap(f2); -- test that expression indexes and partial indexes work concurrently CREATE INDEX CONCURRENTLY concur_index4 on concur_heap(f2) WHERE f1='a'; CREATE INDEX CONCURRENTLY concur_index5 on concur_heap(f2) WHERE f1='x'; -- here we also check that you can default the index name CREATE INDEX CONCURRENTLY on concur_heap((f2||f1)); -- You can't do a concurrent index build in a transaction START TRANSACTION; CREATE INDEX CONCURRENTLY concur_index7 ON concur_heap(f1); COMMIT; -- But you can do a regular index build in a transaction START TRANSACTION; CREATE INDEX std_index on concur_heap(f2); COMMIT; -- check to make sure that the failed indexes were cleaned up properly and the -- successful indexes are created properly. Notably that they do NOT have the -- "invalid" flag set. \d concur_heap -- -- Try some concurrent index drops -- DROP INDEX CONCURRENTLY "concur_index2"; -- works DROP INDEX CONCURRENTLY IF EXISTS "concur_index2"; -- notice -- failures DROP INDEX CONCURRENTLY "concur_index2", "concur_index3"; START TRANSACTION; DROP INDEX CONCURRENTLY "concur_index5"; ROLLBACK; -- successes DROP INDEX CONCURRENTLY IF EXISTS "concur_index3"; DROP INDEX CONCURRENTLY "concur_index4"; DROP INDEX CONCURRENTLY "concur_index5"; DROP INDEX CONCURRENTLY "concur_index1"; DROP INDEX CONCURRENTLY "concur_heap_expr_idx"; \d concur_heap DROP TABLE concur_heap; -- -- Test ADD CONSTRAINT USING INDEX -- CREATE TABLE cwi_test( a int , b varchar(10), c char); -- add some data so that all tests have something to work with. INSERT INTO cwi_test VALUES(1, 2), (3, 4), (5, 6); CREATE UNIQUE INDEX cwi_uniq_idx ON cwi_test(a , b); ALTER TABLE cwi_test ADD primary key USING INDEX cwi_uniq_idx; \d cwi_test CREATE UNIQUE INDEX cwi_uniq2_idx ON cwi_test(b , a); ALTER TABLE cwi_test DROP CONSTRAINT cwi_uniq_idx, ADD CONSTRAINT cwi_replaced_pkey PRIMARY KEY USING INDEX cwi_uniq2_idx; \d cwi_test DROP INDEX cwi_replaced_pkey; -- Should fail; a constraint depends on it DROP TABLE cwi_test; -- -- Tests for IS NULL/IS NOT NULL with b-tree indexes -- SELECT unique1, unique2 INTO onek_with_null FROM onek; INSERT INTO onek_with_null (unique1,unique2) VALUES (NULL, -1), (NULL, NULL); CREATE UNIQUE INDEX onek_nulltest ON onek_with_null (unique2,unique1); SET enable_seqscan = OFF; SET enable_indexscan = ON; SET enable_bitmapscan = ON; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL AND unique1 > 500; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique1 > 500; DROP INDEX onek_nulltest; CREATE UNIQUE INDEX onek_nulltest ON onek_with_null (unique2 desc,unique1); SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL AND unique1 > 500; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique1 > 500; DROP INDEX onek_nulltest; CREATE UNIQUE INDEX onek_nulltest ON onek_with_null (unique2 desc nulls last,unique1); SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL AND unique1 > 500; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique1 > 500; DROP INDEX onek_nulltest; CREATE UNIQUE INDEX onek_nulltest ON onek_with_null (unique2 nulls first,unique1); SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NOT NULL; SELECT count(*) FROM onek_with_null WHERE unique1 IS NOT NULL AND unique1 > 500; SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique1 > 500; DROP INDEX onek_nulltest; -- Check initial-positioning logic too CREATE UNIQUE INDEX onek_nulltest ON onek_with_null (unique2); SET enable_seqscan = OFF; SET enable_indexscan = ON; SET enable_bitmapscan = OFF; SELECT unique1, unique2 FROM onek_with_null ORDER BY unique2 LIMIT 2; SELECT unique1, unique2 FROM onek_with_null WHERE unique2 >= -1 ORDER BY unique2 LIMIT 2; SELECT unique1, unique2 FROM onek_with_null WHERE unique2 >= 0 ORDER BY unique2 LIMIT 2; SELECT unique1, unique2 FROM onek_with_null ORDER BY unique2 DESC LIMIT 2; SELECT unique1, unique2 FROM onek_with_null WHERE unique2 >= -1 ORDER BY unique2 DESC LIMIT 2; SELECT unique1, unique2 FROM onek_with_null WHERE unique2 < 999 ORDER BY unique2 DESC LIMIT 2; RESET enable_seqscan; RESET enable_indexscan; RESET enable_bitmapscan; DROP TABLE onek_with_null; -- -- Check bitmap index path planning -- EXPLAIN (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT * FROM tenk1 WHERE thousand = 42 AND (tenthous = 1 OR tenthous = 3 OR tenthous = 42); SELECT * FROM tenk1 WHERE thousand = 42 AND (tenthous = 1 OR tenthous = 3 OR tenthous = 42); EXPLAIN (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT count(*) FROM tenk1 WHERE hundred = 42 AND (thousand = 42 OR thousand = 99); SELECT count(*) FROM tenk1 WHERE hundred = 42 AND (thousand = 42 OR thousand = 99); -- -- Check behavior with duplicate index column contents -- CREATE TABLE dupindexcols AS SELECT unique1 as id, stringu2::text as f1 FROM tenk1; CREATE INDEX dupindexcols_i ON dupindexcols (f1, id, f1 text_pattern_ops); ANALYZE dupindexcols; EXPLAIN (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT count(*) FROM dupindexcols WHERE f1 > 'WA' and id < 1000 and f1 ~<~ 'YX'; SELECT count(*) FROM dupindexcols WHERE f1 > 'WA' and id < 1000 and f1 ~<~ 'YX'; -- -- Check ordering of =ANY indexqual results (bug in 9.2.0) -- vacuum analyze tenk1; -- ensure we get consistent plans here EXPLAIN (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT unique1 FROM tenk1 WHERE unique1 IN (1,42,7) ORDER BY unique1; SELECT unique1 FROM tenk1 WHERE unique1 IN (1,42,7) ORDER BY unique1; EXPLAIN (NUM_NODES OFF, NODES OFF, COSTS OFF) SELECT thousand, tenthous FROM tenk1 WHERE thousand < 2 AND tenthous IN (1001,3000) ORDER BY thousand; SELECT thousand, tenthous FROM tenk1 WHERE thousand < 2 AND tenthous IN (1001,3000) ORDER BY thousand; --test for relpages and reltuples of pg_class create table test_table(a int, b int); create table test_table_col(a int, b int) with (orientation=column); insert into test_table select generate_series(1,100),generate_series(1,100); insert into test_table_col select * from test_table; analyze test_table; analyze test_table_col; select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table'; create index test_table_idx1 on test_table(a,b); select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table'; analyze test_table; select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table_idx1'; select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table_col'; create index test_table_col_idx1 on test_table_col(a,b); select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table_col'; analyze test_table_col; select relpages>0 as relpages,reltuples>0 as reltuples from pg_class where relname='test_table_col_idx1'; --test create index schema_name.index_name on... CREATE SCHEMA testindexschema; CREATE SCHEMA testindexschema2; set current_schema = testindexschema; --Create index on the table CREATE TABLE test1(a int, b int, c varchar(30)); CREATE INDEX ON test1(a); \di+ test1_a_idx CREATE INDEX indextest1 ON test1(a); \di+ indextest1 CREATE INDEX indextest2 ON test1(a, b); \di+ indextest2 CREATE INDEX indextest3 ON test1(a) WHERE a>1; \di+ indextest3 CREATE INDEX indextest4 ON test1(lower(c)); \di+ indextest4 CREATE UNIQUE index indextest5 ON test1(a); \di+ indextest5 CREATE INDEX testindexschema.indextest6 ON test1(a); \di+ testindexschema.indextest6 CREATE INDEX testindexschema.indextest7 ON test1(a, b); \di+ testindexschema.indextest7 CREATE INDEX testindexschema.indextest8 ON test1(a) WHERE a>1; \di+ testindexschema.indextest8 CREATE INDEX testindexschema.indextest9 ON test1(lower(c)); \di+ testindexschema.indextest9 CREATE UNIQUE index testindexschema.indextest10 ON test1(a); \di+ testindexschema.indextest10 CREATE UNIQUE index testindexschema2.indextest11 ON test1(a); DROP TABLE test1; --Create index on the partition table CREATE TABLE partition_test1 ( c1 int, c2 int, c3 varchar(30) ) PARTITION BY RANGE (c1) ( PARTITION partition_p1 VALUES LESS THAN (50), PARTITION partition_p2 VALUES LESS THAN (100), PARTITION partition_p3 VALUES LESS THAN (150) ); CREATE INDEX ON partition_test1(c1) local; \di+ partition_test1_c1_idx CREATE INDEX partition_idxtest1 ON partition_test1(c1) local; \di+ partition_idxtest1 CREATE INDEX partition_idxtest2 ON partition_test1(c1, c2) local; \di+ partition_idxtest2 CREATE INDEX partition_idxtest3 ON partition_test1(c1) WHERE c1>1 local; \di+ partition_idxtest3 CREATE INDEX partition_idxtest4 ON partition_test1(lower(c3)) local; \di+ partition_idxtest4 CREATE UNIQUE INDEX partition_idxtest5 ON partition_test1(c1) local; \di+ partition_idxtest5 CREATE INDEX partition_idxtest6 ON partition_test1(c1) local ( PARTITION p1_index TABLESPACE PG_DEFAULT, PARTITION p2_index TABLESPACE PG_DEFAULT, PARTITION p3_index TABLESPACE PG_DEFAULT ); \di+ partition_idxtest6 CREATE INDEX testindexschema.partition_idxtest7 ON partition_test1(c1) local; \di+ testindexschema.partition_idxtest1 CREATE INDEX testindexschema.partition_idxtest8 ON partition_test1(c1, c2) local; \di+ testindexschema.partition_idxtest2 CREATE INDEX testindexschema.partition_idxtest9 ON partition_test1(c1) WHERE c1>1 local; \di+ testindexschema.partition_idxtest3 CREATE INDEX testindexschema.partition_idxtest10 ON partition_test1(lower(c3)) local; \di+ testindexschema.partition_idxtest4 CREATE UNIQUE INDEX testindexschema.partition_idxtest11 ON partition_test1(c1) local; \di+ testindexschema.partition_idxtest5 CREATE INDEX testindexschema.partition_idxtest12 ON partition_test1(c1) local ( PARTITION p1_index TABLESPACE PG_DEFAULT, PARTITION p2_index TABLESPACE PG_DEFAULT, PARTITION p3_index TABLESPACE PG_DEFAULT ); \di+ testindexschema.partition_idxtest6 CREATE INDEX testindexschema2.partition_idxtest13 ON partition_test1(c1) local; DROP TABLE partition_test1; DROP SCHEMA testindexschema2 CASCADE; --Add UNIQUE, PRIMARY KEY constraint, create implicit index --UNIQUE CREATE TABLE unique_table1 ( a int UNIQUE, b text ); \di+ unique_table1_a_key CREATE TABLE unique_table2 ( a int CONSTRAINT unique_con UNIQUE, b text ); \di+ unique_con CREATE TABLE partition_unique_table1 ( c1 int UNIQUE, c2 int ) PARTITION BY RANGE (c1) ( PARTITION test_unique_p1 VALUES LESS THAN (50), PARTITION test_unique_p2 VALUES LESS THAN (100), PARTITION test_unique_p3 VALUES LESS THAN (150) ); \di+ partition_unique_table1_c1_key CREATE TABLE partition_unique_table2 ( c1 int CONSTRAINT partition_unique_con UNIQUE, c2 int ) PARTITION BY RANGE (c1) ( PARTITION test_unique_p1 VALUES LESS THAN (50), PARTITION test_unique_p2 VALUES LESS THAN (100), PARTITION test_unique_p3 VALUES LESS THAN (150) ); \di+ partition_unique_con DROP TABLE unique_table1; DROP TABLE unique_table2; DROP TABLE partition_unique_table1; DROP TABLE partition_unique_table2; reset current_schema; DROP SCHEMA testindexschema CASCADE; drop index test_table_idx1; drop index test_table_col_idx1; drop table test_table; drop table test_table_col; SET enable_seqscan=off; reset enable_indexscan; reset enable_bitmapscan; DROP TABLE IF EXISTS ddl_index_visibility; CREATE TABLE ddl_index_visibility(id INT, first_name text, last_name text); --insert data INSERT INTO ddl_index_visibility SELECT id, md5(random()::text), md5(random()::text) FROM (SELECT * FROM generate_series(1,2000) AS id) AS x; --this update will produce a HOT, then the next created index need to check xmin when using it(get_relation_info) update ddl_index_visibility set first_name='+dw', last_name='dw_rt' where id = 698; --create index, indcheckxmin will be true create index ddl_index_visibility_idx on ddl_index_visibility USING btree(id); --explain, should be BitmapHeapScan explain(costs off) select * from ddl_index_visibility where id=698; select * from ddl_index_visibility where id=698; reset enable_seqscan; DROP TABLE ddl_index_visibility;
the_stack
use KopSoftWms go -- ---------------------------- -- Table structure for Sys_dept -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_dept]') AND type IN ('U')) DROP TABLE [dbo].[Sys_dept] GO CREATE TABLE [dbo].[Sys_dept] ( [DeptId] bigint NOT NULL, [DeptNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [DeptName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_dept] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dept', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dept', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dept', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dept', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dept', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Sys_dict -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_dict]') AND type IN ('U')) DROP TABLE [dbo].[Sys_dict] GO CREATE TABLE [dbo].[Sys_dict] ( [DictId] bigint NOT NULL, [DictNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [DictName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [DictType] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_dict] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dict', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dict', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dict', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dict', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_dict', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_dict -- ---------------------------- INSERT INTO [dbo].[Sys_dict] VALUES (N'503747692996853760', NULL, N'件', N'1', N'1', NULL, N'491786087098744832', N'2018-10-22 09:53:29.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'503752972895780864', NULL, N'采购入库单', N'3', N'1', NULL, N'491786087098744832', N'2018-10-22 10:14:27.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'503753018307510272', NULL, N'成品出库单', N'4', N'1', NULL, N'491786087098744832', N'2018-10-22 10:14:39.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507099447742693376', NULL, N'A级物料', N'2', N'1', N'A级物料', N'491786087098744832', N'2018-10-31 15:52:09.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507099512351752192', NULL, N'普通材料', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:52:25.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507099602579619840', NULL, N'耗材类', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:52:47.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507100062879318016', NULL, N'包材料', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:54:36.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507100561112301568', NULL, N'危险品料', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:56:35.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507100596751302656', NULL, N'成品类', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:56:44.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507100629949218816', NULL, N'冶工具 ', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:56:52.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507100659967852544', NULL, N'设备', N'2', N'1', NULL, N'491786087098744832', N'2018-10-31 15:56:59.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507452557040287744', NULL, N'台', N'1', N'1', N'台', N'491786087098744832', N'2018-11-01 15:15:17.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'507477339421016064', NULL, N'个', N'1', N'1', NULL, N'491786087098744832', N'2018-11-01 16:53:46.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517162885743378432', NULL, N'自有', N'6', N'1', NULL, N'504990858139926528', N'2018-11-28 10:20:39.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517162936238604288', NULL, N'租赁', N'6', N'1', NULL, N'504990858139926528', N'2018-11-28 10:20:52.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517163878539329536', NULL, N'专业生产用设备', N'5', N'1', NULL, N'504990858139926528', N'2018-11-28 10:24:37.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517163903772262400', NULL, N'动能发生设备', N'5', N'1', NULL, N'504990858139926528', N'2018-11-28 10:24:43.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517163985334697984', NULL, N'电器设备', N'5', N'1', NULL, N'504990858139926528', N'2018-11-28 10:25:03.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'517164060874113024', NULL, N'锻压设备', N'5', N'1', N'1', N'504990858139926528', N'2018-11-28 10:25:21.000', N'491786087098744832', N'2018-11-28 16:23:44.000') GO INSERT INTO [dbo].[Sys_dict] VALUES (N'524588722197364736', NULL, N'A物料', N'2', N'1', NULL, N'504990858139926528', N'2018-12-18 22:08:18.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'524838103836262400', N'1', N'stockin', N'0', N'2', N'勿动,入库单编号', N'504990858139926528', N'2018-12-19 14:39:14.000', NULL, N'1900-01-01 00:00:00.000') GO INSERT INTO [dbo].[Sys_dict] VALUES (N'524838556393275392', N'1', N'stockout', N'0', N'2', N'勿动,出库单编号', N'504990858139926528', N'2018-12-19 14:41:03.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'525173270467575808', NULL, N'退货入库单', N'3', N'1', NULL, N'504990858139926528', N'2018-12-20 12:51:02.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_dict] VALUES (N'525175016191426560', NULL, N'试用入库', N'3', N'1', N'YOU SHEN ME YONG NE ?', N'504990858139926528', N'2018-12-20 12:58:01.000', N'504990858139926528', N'2018-12-28 12:17:18.000') GO INSERT INTO [dbo].[Sys_dict] VALUES (N'539715276204146688', NULL, N'光年', N'1', N'0', NULL, N'504990858139926528', N'2019-01-29 15:55:49.240', N'504990858139926528', N'2019-01-29 15:56:11.477') GO -- ---------------------------- -- Table structure for Sys_log -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_log]') AND type IN ('U')) DROP TABLE [dbo].[Sys_log] GO CREATE TABLE [dbo].[Sys_log] ( [LogId] bigint NOT NULL, [LogType] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [Description] nvarchar(1000) COLLATE Chinese_PRC_CI_AS NULL, [Url] nvarchar(150) COLLATE Chinese_PRC_CI_AS NULL, [Browser] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL, [LogIp] nvarchar(15) COLLATE Chinese_PRC_CI_AS NULL ) GO ALTER TABLE [dbo].[Sys_log] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_log', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_log', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_log', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_log', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Sys_menu_wms -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_menu_wms]') AND type IN ('U')) DROP TABLE [dbo].[Sys_menu_wms] GO CREATE TABLE [dbo].[Sys_menu_wms] ( [MenuId] bigint NOT NULL, [MenuName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [MenuUrl] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [MenuIcon] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [MenuParent] bigint NULL, [Sort] int NULL, [Status] tinyint NULL, [MenuType] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_menu_wms] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'启用1 禁用0', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'Status' GO EXEC sp_addextendedproperty 'MS_Description', N'menu btn', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'MenuType' GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_menu_wms', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_menu_wms -- ---------------------------- INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'1', N'系统管理', N'#', NULL, N'-1', N'1', N'1', N'menu', N'1', NULL, NULL, N'2018-09-24 12:10:42.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'2', N'用户管理', N'/User', NULL, N'1', N'4', N'1', N'menu', N'1', NULL, NULL, N'2018-09-24 12:12:56.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'3', N'部门管理', N'/Dept', NULL, N'1', N'3', N'1', N'menu', N'1', NULL, NULL, N'2018-09-24 12:14:38.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'4', N'角色管理', N'/Role', NULL, N'1', N'2', N'1', N'menu', N'1', NULL, NULL, N'2018-09-24 12:14:57.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'5', N'数据字典', N'/Dict', NULL, N'1', N'5', N'1', N'menu', N'1', NULL, NULL, N'2018-10-21 14:44:30.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'6', N'基础资料', N'#', NULL, N'-1', N'6', N'1', N'menu', N'1', NULL, NULL, N'2018-09-24 12:19:07.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'7', N'物料管理', N'/Material', NULL, N'6', N'7', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:50:37.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'8', N'客户管理', N'/Customer', NULL, N'6', N'8', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:50:44.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'9', N'供应商管理', N'/Supplier', NULL, N'6', N'9', N'1', N'menu', N'1', NULL, NULL, N'2018-10-21 10:25:53.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'10', N'承运商管理', N'/Carrier', NULL, N'6', N'10', N'1', N'menu', N'1', NULL, NULL, N'2018-10-21 10:25:58.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'11', N'仓库管理', N'#', NULL, N'-1', N'11', N'1', N'menu', N'1', NULL, NULL, N'2018-12-18 23:01:36.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'12', N'仓库管理', N'/Warehouse', NULL, N'11', N'12', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:48:09.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'13', N'库区管理', N'/ReservoirArea', NULL, N'11', N'13', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:49:11.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'14', N'货架管理', N'/StorageRack', N'&#xe61a;', N'11', N'14', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:49:14.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'22', N'日志管理', N'#', N'&#xe62e;', N'-1', N'22', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:50:51.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'23', N'系统日志', N'/Log', NULL, N'22', N'23', N'1', N'menu', N'1', NULL, NULL, N'2018-10-09 08:50:54.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'24', N'入库管理', N'/StockIn', NULL, N'11', N'24', N'1', N'menu', N'1', NULL, NULL, N'2018-12-19 14:09:08.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'27', N'出库管理', N'/StockOut', NULL, N'11', N'27', N'1', N'menu', N'1', NULL, NULL, N'2019-01-22 11:06:17.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'29', N'库存查询', N'/Inventory', NULL, N'11', N'29', N'1', N'menu', N'1', NULL, NULL, NULL, NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'30', N'库存记录', N'/InventoryRecord', NULL, N'11', N'30', N'1', N'menu', N'1', NULL, NULL, NULL, NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'31', N'登录统计', N'/Log/Bar', NULL, N'22', N'31', N'1', N'menu', N'1', NULL, NULL, NULL, NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'32', N'发货记录', N'/Delivery', NULL, N'11', N'32', N'1', N'menu', N'1', NULL, NULL, NULL, NULL, NULL) GO INSERT INTO [dbo].[Sys_menu_wms] VALUES (N'33', N'库存移动', N'/InventoryMove', NULL, N'11', N'33', N'1', N'menu', N'1', NULL, NULL, NULL, NULL, NULL) GO -- ---------------------------- -- Table structure for Sys_role -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_role]') AND type IN ('U')) DROP TABLE [dbo].[Sys_role] GO CREATE TABLE [dbo].[Sys_role] ( [RoleId] bigint NOT NULL, [RoleName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [RoleType] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_role] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'admin #', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'RoleType' GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_role', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_role -- ---------------------------- INSERT INTO [dbo].[Sys_role] VALUES (N'494712986628259840', N'系统管理员', N'admin', N'1', N'系统管理员', N'491786087098744832', N'2018-09-27 11:32:43.000', N'504990858139926528', N'2019-03-05 14:48:04.943') GO -- ---------------------------- -- Table structure for Sys_rolemenu -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_rolemenu]') AND type IN ('U')) DROP TABLE [dbo].[Sys_rolemenu] GO CREATE TABLE [dbo].[Sys_rolemenu] ( [RoleMenuId] bigint NOT NULL, [RoleId] bigint NULL, [MenuId] bigint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_rolemenu] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_rolemenu', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_rolemenu', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_rolemenu', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_rolemenu', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_rolemenu -- ---------------------------- INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'494712986762477568', N'494712986628259840', N'1', N'491786087098744832', N'2018-09-27 11:32:47.000', N'491786087098744832', N'2018-12-11 22:26:00.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'494712986762477569', N'494712986628259840', N'2', N'491786087098744832', N'2018-09-27 11:32:47.000', N'491786087098744832', N'2018-12-11 22:26:00.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'494712986762477570', N'494712986628259840', N'3', N'491786087098744832', N'2018-09-27 11:32:47.000', N'491786087098744832', N'2018-12-11 22:26:00.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'494712986762477571', N'494712986628259840', N'4', N'491786087098744832', N'2018-09-27 11:32:47.000', N'491786087098744832', N'2018-12-11 22:26:00.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'494712986762477572', N'494712986628259840', N'5', N'491786087098744832', N'2018-09-27 11:32:47.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681041502208', N'494712986628259840', N'6', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681083445248', N'494712986628259840', N'7', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681137971200', N'494712986628259840', N'8', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681158942720', N'494712986628259840', N'9', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681188302848', N'494712986628259840', N'12', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:01.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681217662976', N'494712986628259840', N'10', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:02.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681247023104', N'494712986628259840', N'11', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:02.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681272188928', N'494712986628259840', N'13', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:02.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'499030681427378176', N'494712986628259840', N'14', N'491786087098744832', N'2018-10-09 09:29:46.000', N'491786087098744832', N'2018-12-11 22:26:02.000') GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'522056476315877376', N'494712986628259840', N'22', N'491786087098744832', N'2018-12-11 22:26:03.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'522056476953411584', N'494712986628259840', N'23', N'491786087098744832', N'2018-12-11 22:26:03.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'522056477603528704', N'494712986628259840', N'24', N'491786087098744832', N'2018-12-11 22:26:04.000', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'537141837408763904', N'494712986628259840', N'29', N'504990858139926528', N'2019-01-22 13:29:53.670', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'537141837408763905', N'494712986628259840', N'30', N'504990858139926528', N'2019-01-22 13:29:53.670', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'537177594374651904', N'494712986628259840', N'27', N'504990858139926528', N'2019-01-22 15:51:58.783', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'537507366317326336', N'494712986628259840', N'31', N'504990858139926528', N'2019-01-23 13:42:22.520', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'548367997115301888', N'494712986628259840', N'32', N'504990858139926528', N'2019-02-22 12:58:38.973', NULL, NULL) GO INSERT INTO [dbo].[Sys_rolemenu] VALUES (N'551747124224589824', N'494712986628259840', N'33', N'504990858139926528', N'2019-03-03 20:46:05.387', NULL, NULL) GO -- ---------------------------- -- Table structure for Sys_serialnum -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_serialnum]') AND type IN ('U')) DROP TABLE [dbo].[Sys_serialnum] GO CREATE TABLE [dbo].[Sys_serialnum] ( [SerialNumberId] int NOT NULL, [SerialNumber] varchar(30) COLLATE Chinese_PRC_CI_AS NULL, [SerialCount] int NULL, [TableName] varchar(50) COLLATE Chinese_PRC_CI_AS NULL, [Prefix] varchar(10) COLLATE Chinese_PRC_CI_AS NULL, [Digit] int NULL, [Mantissa] int NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Sys_serialnum] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'表名', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'TableName' GO EXEC sp_addextendedproperty 'MS_Description', N'前缀', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'Prefix' GO EXEC sp_addextendedproperty 'MS_Description', N'位数', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'Digit' GO EXEC sp_addextendedproperty 'MS_Description', N'尾数', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'Mantissa' GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_serialnum', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_serialnum -- ---------------------------- INSERT INTO [dbo].[Sys_serialnum] VALUES (N'1', N'R20190301002520000001', N'1', N'Wms_stockin', N'R', N'22', N'6', N'1', N'入库单', N'1', N'2019-01-07 11:16:09.000', N'504990858139926528', N'2019-03-01 00:25:20.113') GO INSERT INTO [dbo].[Sys_serialnum] VALUES (N'2', N'C20190303212032000001', N'1', N'Wms_stockout', N'C', N'22', N'6', N'1', N'出库单', N'1', N'2019-02-13 09:24:58.000', N'504990858139926528', N'2019-03-03 21:20:32.283') GO INSERT INTO [dbo].[Sys_serialnum] VALUES (N'3', N'M20190304224033000002', N'2', N'Wms_inventorymove', N'M', N'22', N'6', N'1', N'库存移动', N'1', N'2019-03-03 13:16:43.000', N'504990858139926528', N'2019-03-04 22:40:33.597') GO -- ---------------------------- -- Table structure for Sys_user -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Sys_user]') AND type IN ('U')) DROP TABLE [dbo].[Sys_user] GO CREATE TABLE [dbo].[Sys_user] ( [UserId] bigint NOT NULL, [UserName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [UserNickname] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [Pwd] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, [Sort] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [Email] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [Tel] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [Mobile] nvarchar(12) COLLATE Chinese_PRC_CI_AS NULL, [Sex] tinyint NULL, [DeptId] bigint NULL, [LoginIp] nvarchar(15) COLLATE Chinese_PRC_CI_AS NULL, [LoginDate] datetime NULL, [LoginTime] int NULL, [IsEabled] tinyint NULL, [IsDel] tinyint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL, [RoleId] bigint NULL, [HeadImg] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ) GO ALTER TABLE [dbo].[Sys_user] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'0男 1女', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'Sex' GO EXEC sp_addextendedproperty 'MS_Description', N'1 启用 0 禁用', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'IsEabled' GO EXEC sp_addextendedproperty 'MS_Description', N'1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Sys_user', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Records of Sys_user -- ---------------------------- INSERT INTO [dbo].[Sys_user] VALUES (N'491786087098744832', N'admin', N'admin', N'202cb962ac59075b964b07152d234b70', NULL, NULL, N'15678676789', NULL, N'1', N'0', N'127.0.0.1', N'2019-02-27 22:09:59.980', N'1060', N'1', N'1', N'系统管理员', N'491786087098744832', N'2018-09-19 09:42:20.000', NULL, NULL, N'494712986628259840', NULL) GO -- ---------------------------- -- Table structure for Wms_carrier -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_carrier]') AND type IN ('U')) DROP TABLE [dbo].[Wms_carrier] GO CREATE TABLE [dbo].[Wms_carrier] ( [CarrierId] bigint NOT NULL, [CarrierNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [CarrierName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL, [Address] nvarchar(80) COLLATE Chinese_PRC_CI_AS NULL, [Tel] nvarchar(13) COLLATE Chinese_PRC_CI_AS NULL, [CarrierPerson] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [CarrierLevel] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [Email] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_carrier] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'承运商编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CarrierNo' GO EXEC sp_addextendedproperty 'MS_Description', N'承运商名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CarrierName' GO EXEC sp_addextendedproperty 'MS_Description', N'承运商地址', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'Address' GO EXEC sp_addextendedproperty 'MS_Description', N'联系电话', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'Tel' GO EXEC sp_addextendedproperty 'MS_Description', N'联系人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CarrierPerson' GO EXEC sp_addextendedproperty 'MS_Description', N'级别', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CarrierLevel' GO EXEC sp_addextendedproperty 'MS_Description', N'Email', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'Email' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_carrier', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_customer -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_customer]') AND type IN ('U')) DROP TABLE [dbo].[Wms_customer] GO CREATE TABLE [dbo].[Wms_customer] ( [CustomerId] bigint NOT NULL, [CustomerNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [CustomerName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL, [Address] nvarchar(200) COLLATE Chinese_PRC_CI_AS NULL, [Tel] nvarchar(13) COLLATE Chinese_PRC_CI_AS NULL, [CustomerPerson] nvarchar(30) COLLATE Chinese_PRC_CI_AS NULL, [CustomerLevel] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [Email] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_customer] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'客户编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CustomerNo' GO EXEC sp_addextendedproperty 'MS_Description', N'客户名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CustomerName' GO EXEC sp_addextendedproperty 'MS_Description', N'客户地址', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'Address' GO EXEC sp_addextendedproperty 'MS_Description', N'联系电话', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'Tel' GO EXEC sp_addextendedproperty 'MS_Description', N'联系人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CustomerPerson' GO EXEC sp_addextendedproperty 'MS_Description', N'级别', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CustomerLevel' GO EXEC sp_addextendedproperty 'MS_Description', N'Email', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'Email' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_customer', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_delivery -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_delivery]') AND type IN ('U')) DROP TABLE [dbo].[Wms_delivery] GO CREATE TABLE [dbo].[Wms_delivery] ( [DeliveryId] bigint NOT NULL, [StockOutId] bigint NULL, [CarrierId] bigint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL, [DeliveryDate] datetime NULL, [TrackingNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ) GO ALTER TABLE [dbo].[Wms_delivery] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'发货主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'DeliveryId' GO EXEC sp_addextendedproperty 'MS_Description', N'出库单主表Id', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'StockOutId' GO EXEC sp_addextendedproperty 'MS_Description', N'承运商Id', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'CarrierId' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'ModifiedDate' GO EXEC sp_addextendedproperty 'MS_Description', N'发货日期', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'DeliveryDate' GO EXEC sp_addextendedproperty 'MS_Description', N'快递单号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_delivery', 'COLUMN', N'TrackingNo' GO -- ---------------------------- -- Table structure for Wms_inventory -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_inventory]') AND type IN ('U')) DROP TABLE [dbo].[Wms_inventory] GO CREATE TABLE [dbo].[Wms_inventory] ( [InventoryId] bigint NOT NULL, [MaterialId] bigint NULL, [StoragerackId] bigint NULL, [Qty] decimal(18,2) NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_inventory] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventory', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_inventorymove -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_inventorymove]') AND type IN ('U')) DROP TABLE [dbo].[Wms_inventorymove] GO CREATE TABLE [dbo].[Wms_inventorymove] ( [InventorymoveId] bigint NOT NULL, [InventorymoveNo] varchar(30) COLLATE Chinese_PRC_CI_AS NULL, [SourceStoragerackId] bigint NULL, [AimStoragerackId] bigint NULL, [Status] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_inventorymove] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'库存移动主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'InventorymoveId' GO EXEC sp_addextendedproperty 'MS_Description', N'库存移动编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'InventorymoveNo' GO EXEC sp_addextendedproperty 'MS_Description', N'原货架Id', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'SourceStoragerackId' GO EXEC sp_addextendedproperty 'MS_Description', N'目标货架', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'AimStoragerackId' GO EXEC sp_addextendedproperty 'MS_Description', N'状态', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'Status' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventorymove', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_inventoryrecord -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_inventoryrecord]') AND type IN ('U')) DROP TABLE [dbo].[Wms_inventoryrecord] GO CREATE TABLE [dbo].[Wms_inventoryrecord] ( [InventoryrecordId] bigint NOT NULL, [StockInDetailId] bigint NULL, [Qty] decimal(18,2) NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NOT NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_inventoryrecord] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_inventoryrecord', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_invmovedetail -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_invmovedetail]') AND type IN ('U')) DROP TABLE [dbo].[Wms_invmovedetail] GO CREATE TABLE [dbo].[Wms_invmovedetail] ( [MoveDetailId] bigint NOT NULL, [InventorymoveId] bigint NULL, [Status] tinyint NULL, [MaterialId] bigint NULL, [PlanQty] decimal(18) NULL, [ActQty] decimal(18) NULL, [AuditinId] bigint NULL, [AuditinTime] datetime NULL, [IsDel] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_invmovedetail] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'MoveDetailId' GO EXEC sp_addextendedproperty 'MS_Description', N'库存移动Id', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'InventorymoveId' GO EXEC sp_addextendedproperty 'MS_Description', N'物料', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'MaterialId' GO EXEC sp_addextendedproperty 'MS_Description', N'计划数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'PlanQty' GO EXEC sp_addextendedproperty 'MS_Description', N'实际数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'ActQty' GO EXEC sp_addextendedproperty 'MS_Description', N'审核人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'AuditinId' GO EXEC sp_addextendedproperty 'MS_Description', N'审核时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'AuditinTime' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_invmovedetail', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_material -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_material]') AND type IN ('U')) DROP TABLE [dbo].[Wms_material] GO CREATE TABLE [dbo].[Wms_material] ( [MaterialId] bigint NOT NULL, [MaterialNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [MaterialName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL, [MaterialType] bigint NULL, [Unit] bigint NULL, [StoragerackId] bigint NULL, [ReservoirAreaId] bigint NULL, [WarehouseId] bigint NULL, [Qty] decimal(18) NULL, [ExpiryDate] decimal(18) NULL, [IsDel] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_material] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'产品编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'MaterialNo' GO EXEC sp_addextendedproperty 'MS_Description', N'产品名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'MaterialName' GO EXEC sp_addextendedproperty 'MS_Description', N'产品类型', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'MaterialType' GO EXEC sp_addextendedproperty 'MS_Description', N'单位', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'Unit' GO EXEC sp_addextendedproperty 'MS_Description', N'默认所属货架', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'StoragerackId' GO EXEC sp_addextendedproperty 'MS_Description', N'默认所属库区', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'ReservoirAreaId' GO EXEC sp_addextendedproperty 'MS_Description', N'默认所属仓库', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'WarehouseId' GO EXEC sp_addextendedproperty 'MS_Description', N'安全库存', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'Qty' GO EXEC sp_addextendedproperty 'MS_Description', N'有效期', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'ExpiryDate' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_material', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_reservoirarea -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_reservoirarea]') AND type IN ('U')) DROP TABLE [dbo].[Wms_reservoirarea] GO CREATE TABLE [dbo].[Wms_reservoirarea] ( [ReservoirAreaId] bigint NOT NULL, [ReservoirAreaNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [ReservoirAreaName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL, [WarehouseId] bigint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_reservoirarea] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'ReservoirAreaId' GO EXEC sp_addextendedproperty 'MS_Description', N'库区编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'ReservoirAreaNo' GO EXEC sp_addextendedproperty 'MS_Description', N'库区名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'ReservoirAreaName' GO EXEC sp_addextendedproperty 'MS_Description', N'所属仓库ID', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'WarehouseId' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_reservoirarea', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_stockin -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_stockin]') AND type IN ('U')) DROP TABLE [dbo].[Wms_stockin] GO CREATE TABLE [dbo].[Wms_stockin] ( [StockInId] bigint NOT NULL, [StockInNo] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, [StockInType] bigint NULL, [SupplierId] bigint NULL, [OrderNo] nvarchar(32) COLLATE Chinese_PRC_CI_AS NULL, [StockInStatus] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_stockin] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'StockInId' GO EXEC sp_addextendedproperty 'MS_Description', N'入库单号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'StockInNo' GO EXEC sp_addextendedproperty 'MS_Description', N'入库类型', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'StockInType' GO EXEC sp_addextendedproperty 'MS_Description', N'供应商', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'SupplierId' GO EXEC sp_addextendedproperty 'MS_Description', N'订单号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'OrderNo' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockin', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_stockindetail -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_stockindetail]') AND type IN ('U')) DROP TABLE [dbo].[Wms_stockindetail] GO CREATE TABLE [dbo].[Wms_stockindetail] ( [StockInDetailId] bigint NOT NULL, [StockInId] bigint NULL, [Status] tinyint NULL, [MaterialId] bigint NULL, [PlanInQty] decimal(18) NULL, [ActInQty] decimal(18) NULL, [StoragerackId] bigint NULL, [AuditinId] bigint NULL, [AuditinTime] datetime NULL, [IsDel] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_stockindetail] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'StockInDetailId' GO EXEC sp_addextendedproperty 'MS_Description', N'入库单号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'StockInId' GO EXEC sp_addextendedproperty 'MS_Description', N'物料', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'MaterialId' GO EXEC sp_addextendedproperty 'MS_Description', N'计划数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'PlanInQty' GO EXEC sp_addextendedproperty 'MS_Description', N'实际数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'ActInQty' GO EXEC sp_addextendedproperty 'MS_Description', N'货架', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'StoragerackId' GO EXEC sp_addextendedproperty 'MS_Description', N'审核人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'AuditinId' GO EXEC sp_addextendedproperty 'MS_Description', N'审核时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'AuditinTime' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockindetail', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_stockout -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_stockout]') AND type IN ('U')) DROP TABLE [dbo].[Wms_stockout] GO CREATE TABLE [dbo].[Wms_stockout] ( [StockOutId] bigint NOT NULL, [StockOutNo] varchar(22) COLLATE Chinese_PRC_CI_AS NULL, [OrderNo] varchar(50) COLLATE Chinese_PRC_CI_AS NULL, [StockOutType] bigint NULL, [CustomerId] bigint NULL, [StockOutStatus] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_stockout] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'出库单,系统自动生成', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'StockOutNo' GO EXEC sp_addextendedproperty 'MS_Description', N'出库订单', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'OrderNo' GO EXEC sp_addextendedproperty 'MS_Description', N'出库类型', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'StockOutType' GO EXEC sp_addextendedproperty 'MS_Description', N'客户', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'CustomerId' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockout', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_stockoutdetail -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_stockoutdetail]') AND type IN ('U')) DROP TABLE [dbo].[Wms_stockoutdetail] GO CREATE TABLE [dbo].[Wms_stockoutdetail] ( [StockOutDetailId] bigint NOT NULL, [StockOutId] bigint NULL, [Status] tinyint NULL, [MaterialId] bigint NULL, [PlanOutQty] decimal(18) NULL, [ActOutQty] decimal(18) NULL, [StoragerackId] bigint NULL, [AuditinId] bigint NULL, [AuditinTime] datetime NULL, [IsDel] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_stockoutdetail] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'主键', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'StockOutDetailId' GO EXEC sp_addextendedproperty 'MS_Description', N'出库单', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'StockOutId' GO EXEC sp_addextendedproperty 'MS_Description', N'物料', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'MaterialId' GO EXEC sp_addextendedproperty 'MS_Description', N'计划数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'PlanOutQty' GO EXEC sp_addextendedproperty 'MS_Description', N'实际数量', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'ActOutQty' GO EXEC sp_addextendedproperty 'MS_Description', N'货架', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'StoragerackId' GO EXEC sp_addextendedproperty 'MS_Description', N'审核人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'AuditinId' GO EXEC sp_addextendedproperty 'MS_Description', N'审核时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'AuditinTime' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_stockoutdetail', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_storagerack -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_storagerack]') AND type IN ('U')) DROP TABLE [dbo].[Wms_storagerack] GO CREATE TABLE [dbo].[Wms_storagerack] ( [StorageRackId] bigint NOT NULL, [StorageRackNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [StorageRackName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NULL, [ReservoirAreaId] bigint NOT NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL, [WarehouseId] bigint NULL ) GO ALTER TABLE [dbo].[Wms_storagerack] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'货架Id', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'StorageRackId' GO EXEC sp_addextendedproperty 'MS_Description', N'货架编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'StorageRackNo' GO EXEC sp_addextendedproperty 'MS_Description', N'货架名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'StorageRackName' GO EXEC sp_addextendedproperty 'MS_Description', N'所属库区', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'ReservoirAreaId' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_storagerack', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_supplier -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_supplier]') AND type IN ('U')) DROP TABLE [dbo].[Wms_supplier] GO CREATE TABLE [dbo].[Wms_supplier] ( [SupplierId] bigint NOT NULL, [SupplierNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [SupplierName] nvarchar(60) COLLATE Chinese_PRC_CI_AS NOT NULL, [Address] nvarchar(80) COLLATE Chinese_PRC_CI_AS NULL, [Tel] nvarchar(13) COLLATE Chinese_PRC_CI_AS NULL, [SupplierPerson] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [SupplierLevel] nvarchar(10) COLLATE Chinese_PRC_CI_AS NULL, [Email] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [IsDel] tinyint NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_supplier] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'供应商编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'SupplierNo' GO EXEC sp_addextendedproperty 'MS_Description', N'供应商名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'SupplierName' GO EXEC sp_addextendedproperty 'MS_Description', N'供应商地址', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'Address' GO EXEC sp_addextendedproperty 'MS_Description', N'联系电话', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'Tel' GO EXEC sp_addextendedproperty 'MS_Description', N'联系人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'SupplierPerson' GO EXEC sp_addextendedproperty 'MS_Description', N'级别', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'SupplierLevel' GO EXEC sp_addextendedproperty 'MS_Description', N'Email', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'Email' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'1 0', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_supplier', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Table structure for Wms_warehouse -- ---------------------------- IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Wms_warehouse]') AND type IN ('U')) DROP TABLE [dbo].[Wms_warehouse] GO CREATE TABLE [dbo].[Wms_warehouse] ( [WarehouseId] bigint NOT NULL, [WarehouseNo] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL, [WarehouseName] nvarchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL, [IsDel] tinyint NULL, [Remark] nvarchar(255) COLLATE Chinese_PRC_CI_AS NULL, [CreateBy] bigint NULL, [CreateDate] datetime NULL, [ModifiedBy] bigint NULL, [ModifiedDate] datetime NULL ) GO ALTER TABLE [dbo].[Wms_warehouse] SET (LOCK_ESCALATION = TABLE) GO EXEC sp_addextendedproperty 'MS_Description', N'仓库编号', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'WarehouseNo' GO EXEC sp_addextendedproperty 'MS_Description', N'仓库名称', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'WarehouseName' GO EXEC sp_addextendedproperty 'MS_Description', N'是否删除 1未删除 0删除', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'IsDel' GO EXEC sp_addextendedproperty 'MS_Description', N'备注', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'Remark' GO EXEC sp_addextendedproperty 'MS_Description', N'创建人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'CreateBy' GO EXEC sp_addextendedproperty 'MS_Description', N'创建时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'CreateDate' GO EXEC sp_addextendedproperty 'MS_Description', N'修改人', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'ModifiedBy' GO EXEC sp_addextendedproperty 'MS_Description', N'修改时间', 'SCHEMA', N'dbo', 'TABLE', N'Wms_warehouse', 'COLUMN', N'ModifiedDate' GO -- ---------------------------- -- Primary Key structure for table Sys_dept -- ---------------------------- ALTER TABLE [dbo].[Sys_dept] ADD CONSTRAINT [PK__sys_dept__014881AE6EC0713C] PRIMARY KEY CLUSTERED ([DeptId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_dict -- ---------------------------- ALTER TABLE [dbo].[Sys_dict] ADD CONSTRAINT [PK__sys_dict__9882F3F0719CDDE7] PRIMARY KEY CLUSTERED ([DictId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_log -- ---------------------------- ALTER TABLE [dbo].[Sys_log] ADD CONSTRAINT [PK__sys_log__5E54864874794A92] PRIMARY KEY CLUSTERED ([LogId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_menu_wms -- ---------------------------- ALTER TABLE [dbo].[Sys_menu_wms] ADD CONSTRAINT [PK__sys_menu__C99ED2307A3223E8] PRIMARY KEY CLUSTERED ([MenuId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_rolemenu -- ---------------------------- ALTER TABLE [dbo].[Sys_rolemenu] ADD CONSTRAINT [PK__sys_role__F86287B67D0E9093] PRIMARY KEY CLUSTERED ([RoleMenuId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_serialnum -- ---------------------------- ALTER TABLE [dbo].[Sys_serialnum] ADD CONSTRAINT [PK__Sys_seri__BA34B05627F8EE98] PRIMARY KEY CLUSTERED ([SerialNumberId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Sys_user -- ---------------------------- ALTER TABLE [dbo].[Sys_user] ADD CONSTRAINT [PK__sys_user__1788CC4C7FEAFD3E] PRIMARY KEY CLUSTERED ([UserId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_carrier -- ---------------------------- ALTER TABLE [dbo].[Wms_carrier] ADD CONSTRAINT [PK__wms_carr__CB82055902C769E9] PRIMARY KEY CLUSTERED ([CarrierId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_customer -- ---------------------------- ALTER TABLE [dbo].[Wms_customer] ADD CONSTRAINT [PK__wms_cust__A4AE64D805A3D694] PRIMARY KEY CLUSTERED ([CustomerId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_delivery -- ---------------------------- ALTER TABLE [dbo].[Wms_delivery] ADD CONSTRAINT [PK__Wms_deli__626D8FCE3EDC53F0] PRIMARY KEY CLUSTERED ([DeliveryId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_inventory -- ---------------------------- ALTER TABLE [dbo].[Wms_inventory] ADD CONSTRAINT [PK__Wms_inve__F5FDE6B32EA5EC27] PRIMARY KEY CLUSTERED ([InventoryId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_inventorymove -- ---------------------------- ALTER TABLE [dbo].[Wms_inventorymove] ADD CONSTRAINT [PK__Wms_inve__A1254B8D42ACE4D4] PRIMARY KEY CLUSTERED ([InventorymoveId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_inventoryrecord -- ---------------------------- ALTER TABLE [dbo].[Wms_inventoryrecord] ADD CONSTRAINT [PK__Wms_inve__F5FDE6B32EA5EC27_copy1] PRIMARY KEY CLUSTERED ([InventoryrecordId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_invmovedetail -- ---------------------------- ALTER TABLE [dbo].[Wms_invmovedetail] ADD CONSTRAINT [PK__Wms_stoc__EEDA101354CB950F] PRIMARY KEY CLUSTERED ([MoveDetailId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_material -- ---------------------------- ALTER TABLE [dbo].[Wms_material] ADD CONSTRAINT [PK__wms_mate__C50610F70B5CAFEA] PRIMARY KEY CLUSTERED ([MaterialId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_reservoirarea -- ---------------------------- ALTER TABLE [dbo].[Wms_reservoirarea] ADD CONSTRAINT [PK__wms_rese__0CB017220E391C95] PRIMARY KEY CLUSTERED ([ReservoirAreaId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_stockin -- ---------------------------- ALTER TABLE [dbo].[Wms_stockin] ADD CONSTRAINT [PK__wms_stoc__794DA66C11158940] PRIMARY KEY CLUSTERED ([StockInId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_stockindetail -- ---------------------------- ALTER TABLE [dbo].[Wms_stockindetail] ADD CONSTRAINT [PK__wms_stoc__EEDA101313F1F5EB] PRIMARY KEY CLUSTERED ([StockInDetailId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_stockout -- ---------------------------- ALTER TABLE [dbo].[Wms_stockout] ADD CONSTRAINT [PK__Wms_stoc__C5308D7A3552E9B6] PRIMARY KEY CLUSTERED ([StockOutId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_stockoutdetail -- ---------------------------- ALTER TABLE [dbo].[Wms_stockoutdetail] ADD CONSTRAINT [PK__wms_stoc__EEDA101313F1F5EB_copy1] PRIMARY KEY CLUSTERED ([StockOutDetailId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_storagerack -- ---------------------------- ALTER TABLE [dbo].[Wms_storagerack] ADD CONSTRAINT [PK__wms_stor__243CF6DE16CE6296] PRIMARY KEY CLUSTERED ([StorageRackId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_supplier -- ---------------------------- ALTER TABLE [dbo].[Wms_supplier] ADD CONSTRAINT [PK__wms_supp__4BE666B419AACF41] PRIMARY KEY CLUSTERED ([SupplierId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO -- ---------------------------- -- Primary Key structure for table Wms_warehouse -- ---------------------------- ALTER TABLE [dbo].[Wms_warehouse] ADD CONSTRAINT [PK__wms_ware__2608AFF91C873BEC] PRIMARY KEY CLUSTERED ([WarehouseId]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO
the_stack
-- 2017-12-07T14:44:46.282 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Name='Lager Gruppe',Updated=TO_TIMESTAMP('2017-12-07 14:44:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540380 ; -- 2017-12-07T14:44:53.961 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 14:44:53','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Window_ID=540380 AND AD_Language='en_US' ; -- 2017-12-07T14:46:40.517 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,540996,0,540380,TO_TIMESTAMP('2017-12-07 14:46:40','YYYY-MM-DD HH24:MI:SS'),100,'U','_Lager_Gruppe','Y','N','N','N','N','Lager Gruppe',TO_TIMESTAMP('2017-12-07 14:46:40','YYYY-MM-DD HH24:MI:SS'),100,'Lager Gruppe') ; -- 2017-12-07T14:46:40.518 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=540996 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2017-12-07T14:46:40.520 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 540996, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=540996) ; -- 2017-12-07T14:46:41.097 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000070, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540996 AND AD_Tree_ID=10 ; -- 2017-12-07T14:46:44.908 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000069, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540996 AND AD_Tree_ID=10 ; -- 2017-12-07T14:48:19.669 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Name='Lager Gruppe Kommissionierung',Updated=TO_TIMESTAMP('2017-12-07 14:48:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540380 ; -- 2017-12-07T14:48:19.676 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Description=NULL, IsActive='Y', Name='Lager Gruppe Kommissionierung',Updated=TO_TIMESTAMP('2017-12-07 14:48:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=540996 ; -- 2017-12-07T14:48:54.455 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET InternalName='_Lager_Gruppe_Kommissionierung', WEBUI_NameBrowse='Lager Gruppe Kommissionierung',Updated=TO_TIMESTAMP('2017-12-07 14:48:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=540996 ; -- 2017-12-07T14:49:16.687 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 14:49:16','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse Picking Group',WEBUI_NameBrowse='Warehouse Picking Group' WHERE AD_Menu_ID=540996 AND AD_Language='en_US' ; -- 2017-12-07T14:53:17.986 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540899,540562,TO_TIMESTAMP('2017-12-07 14:53:17','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-12-07 14:53:17','YYYY-MM-DD HH24:MI:SS'),100,'main') ; -- 2017-12-07T14:53:17.987 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540562 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-12-07T14:53:18.026 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540750,540562,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:53:18.055 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540751,540562,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:53:18.094 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540750,541300,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:53:18.618 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560642,0,540899,541300,549694,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100,'Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','N','Y','Y','N','Name',10,10,0,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:53:18.646 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560643,0,540899,541300,549695,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Beschreibung',20,20,0,TO_TIMESTAMP('2017-12-07 14:53:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:54:27.393 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540751,541301,TO_TIMESTAMP('2017-12-07 14:54:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','flags',10,TO_TIMESTAMP('2017-12-07 14:54:27','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:54:38.594 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560640,0,540899,541301,549696,'F',TO_TIMESTAMP('2017-12-07 14:54:38','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Aktiv',10,0,0,TO_TIMESTAMP('2017-12-07 14:54:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:54:45.315 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540751,541302,TO_TIMESTAMP('2017-12-07 14:54:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-12-07 14:54:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:54:54.219 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560639,0,540899,541302,549697,'F',TO_TIMESTAMP('2017-12-07 14:54:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-12-07 14:54:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:55:02.920 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560638,0,540899,541302,549698,'F',TO_TIMESTAMP('2017-12-07 14:55:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-12-07 14:55:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:56:14.198 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540750,541303,TO_TIMESTAMP('2017-12-07 14:56:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','description',20,TO_TIMESTAMP('2017-12-07 14:56:14','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-07T14:56:32.878 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541303, SeqNo=10,Updated=TO_TIMESTAMP('2017-12-07 14:56:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549695 ; -- 2017-12-07T14:57:31.221 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541300, SeqNo=20,Updated=TO_TIMESTAMP('2017-12-07 14:57:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549695 ; -- 2017-12-07T14:57:36.447 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=541303 ; -- 2017-12-07T14:58:51.995 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-12-07 14:58:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549696 ; -- 2017-12-07T14:58:51.997 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-12-07 14:58:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549697 ; -- 2017-12-07T14:59:03.528 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=10,Updated=TO_TIMESTAMP('2017-12-07 14:59:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549694 ; -- 2017-12-07T14:59:03.530 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=20,Updated=TO_TIMESTAMP('2017-12-07 14:59:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549695 ; -- 2017-12-07T14:59:03.531 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=30,Updated=TO_TIMESTAMP('2017-12-07 14:59:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549696 ; -- 2017-12-07T14:59:03.532 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=40,Updated=TO_TIMESTAMP('2017-12-07 14:59:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549697 ; -- 2017-12-07T15:02:07.406 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:02:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=560642 AND AD_Language='de_CH' ; -- 2017-12-07T15:02:22.551 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:02:22','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Description' WHERE AD_Field_ID=560643 AND AD_Language='en_US' ; -- 2017-12-07T15:02:29.953 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:02:29','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=560642 AND AD_Language='en_US' ; -- 2017-12-07T15:02:32.813 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:02:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='N' WHERE AD_Field_ID=560642 AND AD_Language='de_CH' ; -- 2017-12-07T15:02:49.133 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:02:49','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client',Description='',Help='' WHERE AD_Field_ID=560638 AND AD_Language='en_US' ; -- 2017-12-07T15:03:07.617 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:03:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=560639 AND AD_Language='en_US' ; -- 2017-12-07T15:03:19.270 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:03:19','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Aktive',Description='',Help='' WHERE AD_Field_ID=560640 AND AD_Language='en_US' ; -- 2017-12-07T15:03:25.529 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-07 15:03:25','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=560641 AND AD_Language='en_US' ;
the_stack
-- 2018-07-11T10:36:11.708 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AD_Client_ID,IsActive,CreatedBy,IsReport,IsDirectPrint,Value,AccessLevel,EntityType,ShowHelp,IsBetaFunctionality,IsServerProcess,CopyFromProcess,AD_Process_ID,AllowProcessReRun,IsUseBPartnerLanguage,IsApplySecuritySettings,Type,RefreshAllAfterExecution,IsOneInstanceOnly,LockWaitTimeout,AD_Org_ID,Name,Classname,UpdatedBy,Created,Updated) VALUES (0,'Y',100,'N','N','Documents_EnqueueNotPosted','3','de.metas.acct','Y','N','N','N',540989,'Y','Y','N','Java','N','N',0,0,'Enqueue all not posted documents','de.metas.acct.process.Documents_EnqueueNotPosted',100,TO_TIMESTAMP('2018-07-11 10:36:11','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2018-07-11 10:36:11','YYYY-MM-DD HH24:MI:SS')) ; -- 2018-07-11T10:36:11.733 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=540989 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2018-07-11T10:40:42.496 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (AD_Process_ID,Action,AD_Client_ID,IsActive,CreatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,AD_Menu_ID,IsCreateNew,InternalName,AD_Org_ID,Name,UpdatedBy,Created,Updated) VALUES (540989,'P',0,'Y',100,'N','N','N','de.metas.acct',541125,'N','Documents_EnqueueNotPosted',0,'Enqueue all not posted documents',100,TO_TIMESTAMP('2018-07-11 10:40:42','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2018-07-11 10:40:42','YYYY-MM-DD HH24:MI:SS')) ; -- 2018-07-11T10:40:42.499 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=541125 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2018-07-11T10:40:42.503 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541125, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541125) ; -- 2018-07-11T10:40:43.121 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.130 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540814 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.132 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540803 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.133 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540904 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.134 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540749 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.135 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540779 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.136 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540910 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.137 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540758 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.139 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540759 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.140 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540806 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.141 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540891 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.143 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540896 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.144 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540903 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.145 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540906 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.146 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540907 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.147 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540908 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.148 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=541015 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.149 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=541016 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.150 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541042 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.152 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=541120 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.153 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000056 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.154 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000064 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.155 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000072 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:43.157 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=541125 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540814 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.336 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540803 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.337 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540904 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.339 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540749 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.340 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540779 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.342 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540910 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.343 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540758 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.344 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540759 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.346 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540806 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.347 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540891 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.349 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540896 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.350 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540903 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.351 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540906 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.352 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540907 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.353 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540908 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.354 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=541015 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.356 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=541016 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.357 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541042 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.359 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=541120 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.361 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541125 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.362 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000056 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.364 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000064 AND AD_Tree_ID=10 ; -- 2018-07-11T10:40:47.366 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000072 AND AD_Tree_ID=10 ;
the_stack
-- 1. First the points for the voronoi ogr2ogr -f "ESRI Shapefile" -lco ENCODING="UTF-8" -s_srs EPSG:4326 -t_srs EPSG:4326 \ -overwrite shp/quatroshapes_neighborhoods_pts.shp \ -nlt POLYGON PG:"host=localhost user=foursquare dbname=foursquare" \ -sql "SELECT woe_id, name, the_geom FROM quatroshapes_neighborhoods" -- 2. Then the core quattroshapes part -- do the dissolve union CREATE TABLE quatroshapes_neighborhoods_diss AS SELECT woe_id, count(woe_id) as quad_count, sum(photo_count) as photo_sum, max(photo_count) as photo_max, ST_Union(f.poly_geom) as singlegeom FROM quatroshapes_neighborhoods As f GROUP BY woe_id; -- Update the geometry_columns table SELECT Populate_Geometry_Columns(); -- Then add the attrs back -- Add the columns ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN geoname_id numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_adm0 numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_adm1 numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_adm2 numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_lau numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_locality numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_en character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_adm0 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_adm1 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_adm2 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_lau character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN name_locality character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_version character varying(10); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN placetype character varying(50); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN woe_funk character varying(50); -- set the default UPDATE quatroshapes_neighborhoods_diss SET woe_version = 'unknown'; -- Populate the columns, from GeoPlanet 7.10.0 UPDATE quatroshapes_neighborhoods_diss SET name = geoplanet_places.name, name_en = geoplanet_places.english_name, geoname_id = geoplanet_places.gn_id, woe_adm0 = geoplanet_places.woe_adm0, woe_adm1 = geoplanet_places.woe_adm1, woe_adm2 = geoplanet_places.woe_adm2, woe_lau = geoplanet_places.woe_lau, woe_locality = geoplanet_places.woe_locality, name_adm0 = geoplanet_places.name_adm0, name_adm1 = geoplanet_places.name_adm1, name_adm2 = geoplanet_places.name_adm2, name_lau = geoplanet_places.name_lau, name_locality = geoplanet_places.name_locality, placetype = geoplanet_places.placetype, woe_funk = geoplanet_places.woe_funk, woe_version = '7.10.0' FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_id = geoplanet_places.woe_id; -- make sure the locality is right on the one's UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_locality = geoplanet_places.woe_id AND quatroshapes_neighborhoods_diss.woe_funk = 'Parented by a neighborhood' AND geoplanet_places.placetype = 'Town'; -- we changed a bunch of other ones -- make sure the locality is right on the one's UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_id = geoplanet_places.woe_id --AND quatroshapes_neighborhoods_diss.woe_lau = quatroshapes_neighborhoods_diss.woe_locality ; -- SPECIAL CASES -- Laguna Heights, San Francisco, CA UPDATE geoplanet_places SET woe_locality = 2487956, name_locality = 'San Francisco' WHERE woe_id = 2434643; -- Le Frak City, New York, NY UPDATE geoplanet_places SET woe_locality = 2459115, name_locality = 'New York' WHERE woe_id = 23511863; UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_id IN (23511863, 2434643) AND quatroshapes_neighborhoods_diss.woe_locality = geoplanet_places.woe_id; -- post lau=locality fix UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_id = geoplanet_places.woe_id; -- General case UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss.woe_locality = geoplanet_places.woe_id; WITH parentlocality_woe AS ( SELECT name, woe_id, placetype FROM geoplanet_places ) UPDATE quatroshapes_neighborhoods_diss SET woe_locality = geoplanet_places.woe_locality, name_locality = geoplanet_places.name_locality FROM geoplanet_places, parentlocality_woe WHERE quatroshapes_neighborhoods_diss.woe_id = geoplanet_places.woe_id AND geoplanet_places.woe_locality = parentlocality_woe.woe_id AND quatroshapes_neighborhoods_diss.woe_funk = 'Parented by a neighborhood' AND quatroshapes_neighborhoods_diss.woe_version = '7.10.0' AND parentlocality_woe.placetype = 'Town'; -- some localadmin don't have localites and the suburbs are parented directly. -- while that makes sense administratively, it's poor in terms of map display UPDATE quatroshapes_neighborhoods_diss SET woe_locality = woe_lau, name_locality = name_lau WHERE quatroshapes_neighborhoods_diss.woe_locality IS NULL; -- add the GN versions of the same ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_name character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_fcode character varying(10); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_adm0_cc character varying(2); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_name_adm1 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_locality numeric; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN gn_name_locality character varying(200); UPDATE quatroshapes_neighborhoods_diss SET gn_name = geoname.name, gn_fcode = geoname.fcode, gn_adm0_cc = geoname.cc2, gn_name_adm1 = geoname.admin1 FROM geoname WHERE quatroshapes_neighborhoods_diss.geoname_id = geoname.geonameid; WITH parentlocality_woe AS ( SELECT name, woe_id, gn_id, gn_name FROM geoplanet_places ) UPDATE quatroshapes_neighborhoods_diss SET gn_locality = parentlocality_woe.gn_id, gn_name_locality = parentlocality_woe.gn_name FROM parentlocality_woe WHERE quatroshapes_neighborhoods_diss.woe_locality = parentlocality_woe.woe_id; -- fill in more cc WITH parentlocality_woe AS ( SELECT name, woe_id, gn_id, gn_name FROM geoplanet_places ), parentlocality_gn AS ( SELECT name, geonameid, country FROM geoname ) UPDATE quatroshapes_neighborhoods_diss SET gn_adm0_cc = parentlocality_gn.country FROM parentlocality_woe, parentlocality_gn WHERE quatroshapes_neighborhoods_diss.woe_locality = parentlocality_woe.woe_id AND parentlocality_woe.gn_id = parentlocality_gn.geonameid AND quatroshapes_neighborhoods_diss.gn_adm0_cc IS NULL; -- fill in more admin1 WITH parentlocality_woe AS ( SELECT name, woe_id, gn_id, gn_name FROM geoplanet_places ), parentlocality_gn AS ( SELECT name, geonameid, admin1 FROM geoname ) UPDATE quatroshapes_neighborhoods_diss SET gn_name_adm1 = parentlocality_gn.admin1 FROM parentlocality_woe, parentlocality_gn WHERE quatroshapes_neighborhoods_diss.woe_locality = parentlocality_woe.woe_id AND parentlocality_woe.gn_id = parentlocality_gn.geonameid AND quatroshapes_neighborhoods_diss.gn_name_adm1 IS NULL AND quatroshapes_neighborhoods_diss.woe_locality = quatroshapes_neighborhoods_diss.woe_lau; -- how many are missing from GeoPlanet 7.10 SELECT count(*) FROM quatroshapes_neighborhoods_diss LEFT OUTER JOIN geoplanet_places ON geoplanet_places.woe_id = quatroshapes_neighborhoods_diss.woe_id WHERE geoplanet_places.woe_id IS null; -- let's set those from GeoPlanet 7.3.1 instead WITH missing AS ( SELECT quatroshapes_neighborhoods_diss.woe_id FROM quatroshapes_neighborhoods_diss LEFT OUTER JOIN geoplanet_places ON geoplanet_places.woe_id = quatroshapes_neighborhoods_diss.woe_id WHERE geoplanet_places.woe_id IS null ) UPDATE quatroshapes_neighborhoods_diss SET name = geoplanet_places_7_3_1.name, name_en = geoplanet_places_7_3_1.name, woe_adm0 = geoplanet_places_7_3_1.woe_adm0, woe_adm1 = geoplanet_places_7_3_1.woe_adm1, woe_adm2 = geoplanet_places_7_3_1.woe_adm2, woe_lau = geoplanet_places_7_3_1.woe_lau, woe_locality = geoplanet_places_7_3_1.woe_locality, name_adm0 = geoplanet_places_7_3_1.name_adm0, name_adm1 = geoplanet_places_7_3_1.name_adm1, name_adm2 = geoplanet_places_7_3_1.name_adm2, name_lau = geoplanet_places_7_3_1.name_lau, name_locality = geoplanet_places_7_3_1.name_locality, placetype = geoplanet_places_7_3_1.placetype, woe_funk = geoplanet_places_7_3_1.woe_funk, woe_version = '7.3.1' FROM missing, geoplanet_places_7_3_1 WHERE quatroshapes_neighborhoods_diss.woe_id = missing.woe_id AND quatroshapes_neighborhoods_diss.woe_id = geoplanet_places_7_3_1.woe_id; -- woe_id | name | name_en ----------+------+--------- -- 55999165 | | -- 55999062 | | -- 55999530 | | -- 55999278 | | -- 20162160 | | UPDATE quatroshapes_neighborhoods_diss SET name = 'Limehouse', name_en = 'Limehouse', woe_adm0 = 23424775, woe_adm1 = 2344922, woe_adm2 = 29375078, woe_lau = NULL, woe_locality = 4348, name_adm0 = 'Canada', name_adm1 = 'Ontario', name_adm2 = 'Halton', name_lau = '', name_locality = 'Acton' WHERE quatroshapes_neighborhoods_diss.woe_id = 55999165; UPDATE quatroshapes_neighborhoods_diss SET name = 'Belfountain', name_en = 'Belfountain', woe_adm0 = 23424775, woe_adm1 = 2344922, woe_adm2 = 29375178, woe_lau = NULL, woe_locality = 23396905, name_adm0 = 'Canada', name_adm1 = 'Ontario', name_adm2 = 'Peel', name_lau = '', name_locality = 'Caledon' WHERE quatroshapes_neighborhoods_diss.woe_id = 55999062; UPDATE quatroshapes_neighborhoods_diss SET name = 'Inglewood', name_en = 'Inglewood', woe_adm0 = 23424775, woe_adm1 = 2344922, woe_adm2 = 29375178, woe_lau = NULL, woe_locality = 23396905, name_adm0 = 'Canada', name_adm1 = 'Ontario', name_adm2 = 'Peel', name_lau = '', name_locality = 'Caledon' WHERE quatroshapes_neighborhoods_diss.woe_id = 55999530; UPDATE quatroshapes_neighborhoods_diss SET name = 'Claremont', name_en = 'Claremont', woe_adm0 = 23424775, woe_adm1 = 2344922, woe_adm2 = 29375180, woe_lau = NULL, woe_locality = 4364, name_adm0 = 'Canada', name_adm1 = 'Ontario', name_adm2 = 'Durham', name_lau = '', name_locality = 'Pickering' WHERE quatroshapes_neighborhoods_diss.woe_id = 55999278; UPDATE quatroshapes_neighborhoods_diss SET name = 'Gemeinde Mühltal', name_en = 'Gemeinde Muhltal', woe_adm0 = 23424829, woe_adm1 = 2345485, woe_adm2 = 12596968, woe_lau = NULL, woe_locality = NULL, name_adm0 = 'Germany', name_adm1 = 'Hesse', name_adm2 = 'Darmstadt-Dieburg', name_lau = '', name_locality = '' WHERE quatroshapes_neighborhoods_diss.woe_id = 20162160; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN hoods int; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN local_sum int; ALTER TABLE quatroshapes_neighborhoods_diss ADD COLUMN local_max int; WITH locality_hoods AS ( SELECT woe_locality, count(*) as neighbhoods, sum(photo_sum) as local_sum, max(photo_sum) as local_max FROM quatroshapes_neighborhoods_diss GROUP BY woe_locality ) UPDATE quatroshapes_neighborhoods_diss SET hoods = locality_hoods.neighbhoods, local_sum = locality_hoods.local_sum, local_max = locality_hoods.local_max FROM locality_hoods WHERE quatroshapes_neighborhoods_diss.woe_locality = locality_hoods.woe_locality; -- now back in the shell, let's export ogr2ogr -f "ESRI Shapefile" -lco ENCODING="UTF-8" -s_srs EPSG:4326 -t_srs EPSG:4326 \ -overwrite shp/quatroshapes_neighborhoods_diss.shp -nlt POLYGON \ PG:"host=localhost user=foursquare dbname=foursquare" \ -sql "SELECT woe_id, name, name_en, name_adm0, name_adm1, name_adm2, name_lau, name_locality as name_local, woe_adm0, woe_adm1, woe_adm2, woe_lau, woe_locality as woe_local, woe_version as woe_ver, placetype, geoname_id as gn_id, gn_name, gn_fcode, gn_adm0_cc, gn_name_adm1 as gn_namadm1, gn_locality as gn_local, gn_name_locality as gn_nam_loc, woe_funk, quad_count, photo_sum, photo_max, hoods as localhoods, local_sum, local_max, singlegeom FROM quatroshapes_neighborhoods_diss" -- 3. Then the buffer quattroshapes part (to clip the voronoi) -- do the dissolve union CREATE TABLE quatroshapes_neighborhoods_buffer_diss AS (SELECT 1, ST_Union(f.buffer_geom) as singlegeom FROM quatroshapes_neighborhoods As f); -- Update the geometry_columns table SELECT Populate_Geometry_Columns(); -- there is only 1 shape, so no attr to join -- now back in the shell, let's export ogr2ogr -f "ESRI Shapefile" -lco ENCODING="UTF-8" -s_srs EPSG:4326 -t_srs EPSG:4326 \ -overwrite shp/quatroshapes_neighborhoods_buffer_diss.shp \ -nlt POLYGON PG:"host=localhost user=foursquare dbname=foursquare" \ -sql "SELECT * FROM quatroshapes_neighborhoods_buffer_diss" -- locality dissolve version (for attr only) -- do the dissolve union DROP TABLE quatroshapes_neighborhoods_diss_as_locality; CREATE TABLE quatroshapes_neighborhoods_diss_as_locality AS SELECT woe_locality as woe_id, count(*) as localhoods, sum(photo_sum) as local_sum, max(photo_sum) as local_max, ST_Union(f.singlegeom) as singlegeom FROM quatroshapes_neighborhoods_diss As f GROUP BY woe_locality; -- Update the geometry_columns table SELECT Populate_Geometry_Columns(); -- Add the columns ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN geoname_id numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_adm0 numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_adm1 numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_adm2 numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_lau numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_locality numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_en character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_adm0 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_adm1 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_adm2 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_lau character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN name_locality character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_version character varying(10); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN placetype character varying(50); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN woe_funk character varying(50); -- set the default UPDATE quatroshapes_neighborhoods_diss_as_locality SET woe_version = 'unknown'; -- Populate the columns, from GeoPlanet 7.10.0 UPDATE quatroshapes_neighborhoods_diss_as_locality SET name = geoplanet_places.name, name_en = geoplanet_places.english_name, geoname_id = geoplanet_places.gn_id, woe_adm0 = geoplanet_places.woe_adm0, woe_adm1 = geoplanet_places.woe_adm1, woe_adm2 = geoplanet_places.woe_adm2, woe_lau = geoplanet_places.woe_lau, woe_locality = geoplanet_places.woe_locality, name_adm0 = geoplanet_places.name_adm0, name_adm1 = geoplanet_places.name_adm1, name_adm2 = geoplanet_places.name_adm2, name_lau = geoplanet_places.name_lau, name_locality = geoplanet_places.name_locality, placetype = geoplanet_places.placetype, woe_funk = geoplanet_places.woe_funk, woe_version = '7.10.0' FROM geoplanet_places WHERE quatroshapes_neighborhoods_diss_as_locality.woe_id = geoplanet_places.woe_id; -- add the GN versions of the same ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_name character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_fcode character varying(10); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_adm0_cc character varying(2); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_name_adm1 character varying(200); ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_locality numeric; ALTER TABLE quatroshapes_neighborhoods_diss_as_locality ADD COLUMN gn_name_locality character varying(200); UPDATE quatroshapes_neighborhoods_diss_as_locality SET gn_name = geoname.name, gn_fcode = geoname.fcode, gn_adm0_cc = geoname.country, gn_name_adm1 = geoname.admin1, gn_locality = geoname.geonameid, gn_name_locality = geoname.name FROM geoname WHERE quatroshapes_neighborhoods_diss_as_locality.geoname_id = geoname.geonameid; -- now back in the shell, let's export ogr2ogr -f "ESRI Shapefile" -lco ENCODING="UTF-8" -s_srs EPSG:4326 -t_srs EPSG:4326 \ -overwrite shp/quatroshapes_neighborhoods_diss_as_locality.shp -nlt POLYGON \ PG:"host=localhost user=foursquare dbname=foursquare" \ -sql "SELECT woe_id, name, name_en, name_adm0, name_adm1, name_adm2, name_lau, name_locality as name_local, woe_adm0, woe_adm1, woe_adm2, woe_lau, woe_locality as woe_local, woe_version as woe_ver, placetype, geoname_id as gn_id, gn_name, gn_fcode, gn_adm0_cc, gn_name_adm1 as gn_namadm1, gn_locality as gn_local, gn_name_locality as gn_nam_loc, woe_funk, localhoods, local_sum, local_max, singlegeom FROM quatroshapes_neighborhoods_diss_as_locality"
the_stack
--- -- this is the view we use as benchmark -- it's generated by the metasfresh client if we open the invoice candidate withod and filter for Updated >= 2016-06.16 15:51 -- EXPLAIN (ANALYZE, BUFFERS) SELECT HeaderAggregationKeyBuilder_ID,IsPackagingMaterial,QualityInvoiceLineGroupType,LineAggregationKeyBuilder_ID,AD_Org_ID,C_Invoice_Candidate_ID,C_Invoice_Candidate_HeaderAggregation_Effective_ID,IsSOTrx,IsManual, (CASE WHEN C_Invoice_Candidate.M_Material_Tracking_ID IS NULL THEN 'N' ELSE 'Y' END) AS IsMaterialTracking, M_Material_Tracking_ID,Line,C_DocTypeInvoice_ID,C_ILCandHandler_ID,AD_Table_ID,Record_ID,Description,IsToClear,C_Order_ID,DateOrdered,C_OrderLine_ID,M_InOut_ID, (SELECT o.DatePromised from C_Order o where o.C_Order_ID = C_Invoice_Candidate.C_Order_ID) AS DatePromised, First_Ship_BPLocation_ID,POReference,DeliveryDate, (SELECT C_BPartner_ID FROM C_Order where C_Order_ID = C_Invoice_Candidate.C_Order_ID) AS C_Order_BPartner,C_Activity_ID,C_Charge_ID,M_Product_ID, ( select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = C_Invoice_Candidate.M_Product_ID ) AS M_Product_Category_ID, ( select p.ProductType from M_Product p where p.M_Product_ID = C_Invoice_Candidate.M_Product_ID ) AS ProductType, M_PricingSystem_ID,M_PriceList_Version_ID,C_Currency_ID,C_ConversionType_ID,C_Tax_ID,C_Tax_Override_ID, COALESCE(C_Invoice_Candidate.C_Tax_Override_ID, C_Invoice_Candidate.C_Tax_ID) AS C_Tax_Effective_ID,QtyOrdered,QtyDelivered,QtyOrderedOverUnder,InvoiceRule,InvoiceRule_Override, COALESCE(InvoiceRule_Override, InvoiceRule) AS InvoiceRule_Effective, (select bp.C_InvoiceSchedule_ID from C_Bpartner bp where bp.C_BPartner_ID=C_Invoice_Candidate.Bill_BPartner_ID) AS C_InvoiceSchedule_ID,InvoiceScheduleAmtStatus,DateToInvoice,DateToInvoice_Override, COALESCE(DateToInvoice_Override, DateToInvoice) AS DateToInvoice_Effective,DateInvoiced,DateAcct,QualityDiscountPercent,QualityDiscountPercent_Override, COALESCE(C_Invoice_Candidate.QualityDiscountPercent_Override, C_Invoice_Candidate.QualityDiscountPercent) AS QualityDiscountPercent_Effective,QtyWithIssues,IsInDispute,QtyWithIssues_Effective, ( select rs.QualityNote from M_ReceiptSchedule rs where exists (select 1 from M_ReceiptSchedule_Alloc rsa where rsa.m_receiptschedule_id=rs.m_receiptschedule_id and rs.C_OrderLine_ID = C_Invoice_Candidate.C_OrderLine_ID) ) AS QualityNote_ReceiptSchedule, ReasonDiscount,PriceEntered,PriceEntered_Override,IsTaxIncluded_Override,Discount,Discount_Override,PriceActual,PriceActual_Override,PriceActual_Net_Effective, ( select bp.Name from C_BPartner bp where bp.C_BPartner_ID = C_Invoice_Candidate.Bill_BPartner_ID ) AS Bill_BPartner_Name, IsEdiRecipient,IsEdiEnabled,Bill_BPartner_ID,Bill_Location_ID,Bill_User_ID,QtyInvoiced,C_UOM_ID,QtyToInvoiceBeforeDiscount,QtyToInvoice_Override,QtyToInvoice_OverrideFulfilled,QtyToInvoice,QtyToInvoiceInPriceUOM,Price_UOM_ID,QtyEnteredTU, (SELECT COALESCE(SUM(ROUND((ic.qtyToInvoiceInPriceUOM * COALESCE(ic.PriceActual_Override, ic.PriceActual)), 2)), 0) FROM C_Invoice_Candidate ic WHERE ic.C_Order_ID=C_Invoice_Candidate.C_Order_ID) AS TotalOfOrder, (SELECT COALESCE(SUM(ROUND((ic.qtyToInvoiceInPriceUOM * COALESCE(ic.PriceEntered_Override, ic.PriceEntered)), 2)), 0) FROM C_Invoice_Candidate ic WHERE ic.C_Order_ID=C_Invoice_Candidate.C_Order_ID) AS TotalOfOrderExcludingDiscount,(SELECT SUM(ol.LineNetAmt) FROM C_OrderLine ol WHERE ol.C_OrderLine_ID=C_Invoice_Candidate.C_OrderLine_ID) AS LineNetAmt, ApprovalForInvoicing,IsInOutApprovedForInvoicing,NetAmtToInvoice,NetAmtInvoiced,SplitAmt,C_Invoice_Candidate_Agg_ID,HeaderAggregationKey,LineAggregationKey,LineAggregationKey_Suffix,AD_User_InCharge_ID, ( case when exists (select 1 from C_Invoice_Candidate_Recompute icr where icr.C_Invoice_Candidate_ID=C_Invoice_Candidate.C_Invoice_Candidate_ID) then 'Y' else 'N' end ) AS IsToRecompute,IsError, (CASE WHEN EXISTS (select 1 from T_Lock where T_Lock.Record_ID=C_Invoice_Candidate.C_Invoice_Candidate_ID and T_Lock.AD_Table_ID=(select AD_Table_ID from AD_Table where TableName='C_Invoice_Candidate')) THEN 'Y' ELSE 'N' END) AS Processing, Processed_Calc,Processed_Override,Processed,SchedulerResult,ErrorMsg,DescriptionHeader,DescriptionBottom,IsPrinted, (select rs.qualityDiscountPercent from M_ReceiptSchedule rs where exists (select 1 from M_ReceiptSchedule_Alloc rsa where rsa.m_receiptschedule_id=rs.m_receiptschedule_id) and rs.C_OrderLine_ID = C_Invoice_Candidate.C_OrderLine_ID) AS QualityDiscountPercent_ReceiptSchedule, Created,CreatedBy,IsActive,Updated,AD_Note_ID,AD_Client_ID,UpdatedBy,C_Invoice_Candidate_HeaderAggregation_Override_ID,IsTaxIncluded,HeaderAggregationKey_Calc, C_Invoice_Candidate_HeaderAggregation_ID FROM C_Invoice_Candidate WHERE ( (Created>= TIMESTAMP '2016-06-16 15:51:00.0' )) AND C_Invoice_Candidate.AD_Client_ID IN(0,1000000) AND C_Invoice_Candidate.AD_Org_ID IN (0,1000004,1000001,1000000) AND C_Invoice_Candidate.C_Invoice_Candidate_ID NOT IN ( SELECT Record_ID FROM AD_Private_Access WHERE AD_Table_ID = 540270 AND AD_User_ID <> 100 AND IsActive = 'Y' ) ORDER BY Created DESC --- -- Results-Summary (TLDR) -- on the DB, we have 1348927 ICs -- on the DB-server, with only the DBMS running (no metasfres-server) and only one client connected, the query takes -- more than *30 seconds* without "DLM" -- ->aprox *15 seconds* if we set up DLM indices etc and move 1094035 IC to DLM_Level 1, together with those records that are referenced by those ICs via SQL-column. -- That leaves aprox 250'000 remaining in level 0. Note that on erpprod we calculate with aprox 60'000 ICs in dlm-level 0 -- The rest of this file contains notes about how I tested. I only used the client in the end, to verify that the chagnes are actually noticable. --remove dlm stuff *including* the DLM_Level column, if it exists SELECT dlm.remove_table_from_dlm('C_Invoice_Candidate', false); SELECT dlm.remove_table_from_dlm('C_Order', false); SELECT dlm.remove_table_from_dlm('C_OrderLine', false); SELECT dlm.remove_table_from_dlm('M_ReceiptSchedule_Alloc', false); SELECT dlm.remove_table_from_dlm('M_ReceiptSchedule', false); -- make sure the planner knows what's up ANALYZE VERBOSE C_Invoice_Candidate; ANALYZE VERBOSE C_Order; ANALYZE VERBOSE C_OrderLine; ANALYZE VERBOSE M_ReceiptSchedule_Alloc; ANALYZE VERBOSE M_ReceiptSchedule; -- flush OS caches and restart postgres; see http://stackoverflow.com/a/1223421/1012103 -- root@DBMS:~# service postgresql stop && sync && echo 3 > /proc/sys/vm/drop_caches && service postgresql start -- do explain analyze buffer etc.. -- "Sort (cost=202367.29..202367.48 rows=79 width=2166) (actual time=207.712..208.143 rows=544 loops=1)" -- Note that this wasn't reproducible on later runs. There we got -- pg-9.1: "Index Scan Backward using c_invoice_candidate_create on c_invoice_candidate (cost=15.96..214555.65 rows=73 width=2106) (actual time=116.984..1747.659 rows=544 loops=1)" -- pg-9.5: "Index Scan Backward using c_invoice_candidate_create on c_invoice_candidate (cost=16.28.. 41663.41 rows=106 width=2085) (actual time=132.856..1535.716 rows=544 loops=1)" --- instead. -- now enable DLM SELECT dlm.add_table_to_dlm('C_Invoice_Candidate'); SELECT dlm.add_table_to_dlm('C_Order'); SELECT dlm.add_table_to_dlm('C_OrderLine'); SELECT dlm.add_table_to_dlm('M_ReceiptSchedule_Alloc'); SELECT dlm.add_table_to_dlm('M_ReceiptSchedule'); -- flush OS caches and restart postgres; see http://stackoverflow.com/a/1223421/1012103 -- root@DBMS:~# service postgresql stop && sync && echo 3 > /proc/sys/vm/drop_caches && service postgresql start -- do explain analyze buffer etc..again -- pg-9.1: "Index Scan Backward using c_invoice_candidate_created on public.c_invoice_candidate_tbl (cost=15.96..176.88 rows=1 width=1687) (actual time=0.445..268.927 rows=544 loops=1)" -- pg-9.5: "Index Scan Backward using c_invoice_candidate_create_dlm_partial on c_invoice_candidate_tbl (cost=16.28..172.09 rows=1 width=1682) (actual time=153.611..1564.482 rows=544 loops=1)" -- Note: i didn't understand the pg-9.1 result..i might have made a mistake (forgot to flush? maybe actually did have the data updated?). However, the pg-9.5 result seems plausible -- now update "some" values to generate background data UPDATE C_Invoice_Candidate_Tbl SET DLM_Level=1 WHERE processed='Y' AND updated + interval '1 weeks' < now(); UPDATE C_Order_Tbl o SET DLM_Level=1 FROM C_Invoice_Candidate_Tbl ic WHERE o.C_Order_ID=ic.C_Order_ID AND ic.DLM_Level=1 AND COALESCE(o.DLM_Level,0)!=1; UPDATE C_OrderLine_Tbl ol SET DLM_Level=1 FROM C_Invoice_Candidate_Tbl ic WHERE ol.C_OrderLine_ID=ic.C_OrderLine_ID AND ic.DLM_Level=1 AND COALESCE(ol.DLM_Level,0)!=1; UPDATE M_ReceiptSchedule_Tbl rs SET DLM_Level=1 FROM C_Invoice_Candidate_Tbl ic WHERE ic.C_OrderLine_ID=rs.C_OrderLine_ID AND ic.DLM_Level=1 AND COALESCE(rs.DLM_Level,0)!=1; UPDATE M_ReceiptSchedule_Alloc_Tbl rsa SET DLM_Level=1 FROM M_ReceiptSchedule_Tbl rs WHERE rs.M_ReceiptSchedule_ID=rsa.M_ReceiptSchedule_ID AND rs.DLM_Level=1 AND COALESCE(rsa.DLM_Level,0)!=1; -- check out the result: SELECT 'C_Invoice_Candidate_Tbl' as Tbl, count(*), DLM_Level FROM C_Invoice_Candidate_Tbl GROUP BY DLM_Level UNION SELECT 'C_Order_Tbl', count(*), DLM_Level FROM C_Order_Tbl GROUP BY DLM_Level UNION SELECT 'C_OrderLine_Tbl', count(*), DLM_Level FROM C_OrderLine_Tbl GROUP BY DLM_Level UNION SELECT 'M_ReceiptSchedule_Tbl', count(*), DLM_Level FROM M_ReceiptSchedule_Tbl GROUP BY DLM_Level UNION SELECT 'M_ReceiptSchedule_Alloc_Tbl', count(*), DLM_Level FROM M_ReceiptSchedule_Alloc_Tbl GROUP BY DLM_Level ORDER BY Tbl, DLM_Level NULLS first; /* Result: "C_Invoice_Candidate_Tbl";254892; "C_Invoice_Candidate_Tbl";1094035;1 "C_OrderLine_Tbl";167594; "C_OrderLine_Tbl";786560;1 "C_Order_Tbl";7033; "C_Order_Tbl";117259;1 "M_ReceiptSchedule_Alloc_Tbl";1895970; "M_ReceiptSchedule_Alloc_Tbl";5269628;1 "M_ReceiptSchedule_Tbl";73179; "M_ReceiptSchedule_Tbl";141663;1 */ -- make sure the statistics are up to date ANALYZE VERBOSE C_Invoice_Candidate_Tbl; ANALYZE VERBOSE C_Order_Tbl; ANALYZE VERBOSE C_OrderLine_Tbl; ANALYZE VERBOSE M_ReceiptSchedule_Alloc_Tbl; ANALYZE VERBOSE M_ReceiptSchedule_Tbl; -- flush OS caches and restart postgres; see http://stackoverflow.com/a/1223421/1012103 -- root@DBMS:~# service postgresql stop && sync && echo 3 > /proc/sys/vm/drop_caches && service postgresql start -- do explain analyze buffer etc..again -- "Index Scan Backward using c_invoice_candidate_create_dlm_partial on c_invoice_candidate_tbl (cost=15.96.. 176.51 rows= 1 width=2106) (actual time=146.663..1735.551 rows=534 loops=1)" <- pg-9.1 with partial indices -- "Index Scan Backward using c_invoice_candidate_create_dlm_partial on c_invoice_candidate_tbl (cost=16.28.. 168.21 rows= 1 width=1678) (actual time= 99.858..1607.801 rows=534 loops=1)" <- pg-9.5 with partial indices -- "Index Scan Backward using c_invoice_candidate_create on c_invoice_candidate_tbl (cost=16.28..10473.15 rows=21 width=2120) (actual time= 78.620..1475.508 rows=534 loops=1)" <- pg-9.5 without partial indices -- "Index Scan Backward using c_invoice_candidate_create on c_invoice_candidate_tbl (cost=16.28..10473.15 rows=21 width=2120) (actual time=106.524..1715.651 rows=534 loops=1)" <- pg-9.5 without partial indices repeat
the_stack
DROP FUNCTION IF EXISTS report.fresh_pricelist_details_template_report(NUMERIC, NUMERIC, CHARACTER VARYING, NUMERIC, text); CREATE OR REPLACE FUNCTION report.fresh_pricelist_details_template_report(IN p_c_bpartner_id numeric, IN p_m_pricelist_version_id numeric, IN p_ad_language character varying, IN p_c_bpartner_location_id numeric, IN p_show_product_price_pi_flag text) RETURNS TABLE ( prodvalue text, customerproductnumber text, productcategory text, productname text, attributes text, itemproductname text, qty numeric, priceUOMSymbol text, pricestd text, m_productprice_id integer, c_bpartner_id numeric, m_hu_pi_item_product_id integer, uom_x12de355 text, priceUOM_x12de355 text, c_bpartner_location_id numeric, qtycuspertu numeric, m_product_id integer, bp_value text, bp_name text, reportfilename text, show_product_price_pi_flag text ) AS $BODY$ -- SELECT plc.value AS prodvalue, plc.customerproductnumber as customerproductnumber, plc.productcategory as productcategory, plc.productname as productname, plc.attributes as attributes, COALESCE(replace(plc.itemproductname, hupiv.name, pi.Name), stockingUOM.uomsymbol) as itemproductname, NULL::numeric as qty, plc.uomsymbol as priceUOMSymbol, to_char(plc.pricestd, getPricePattern(prl.priceprecision::integer)) as pricestd, plc.M_ProductPrice_ID as m_productprice_id, p_c_bpartner_id as c_bpartner_id, plc.M_HU_PI_Item_Product_ID as m_hu_pi_item_product_id, stockingUOM.x12de355 as uom_x12de355, plc.UOM_x12de355 as priceUOM_x12de355, p_c_bpartner_location_id as c_bpartner_location_id, plc.qtycuspertu /* internally used as a multiplier for the CU-qty if M_HU_PI_Item_Product_ID is given */ as qtycuspertu, plc.m_product_id as m_product_id, plc.BP_Value as bp_value, plc.BP_Name as bp_name, CONCAT(bp_value, '_', bp_name, '_', case when prlv.isactive = 'Y' then prlv.validfrom::date else null end, '.xls') as reportfilename, p_show_product_price_pi_flag as show_product_price_pi_flag FROM report.fresh_PriceList_Details_Report(p_c_bpartner_id, p_m_pricelist_version_id, NULL, p_ad_language, p_show_product_price_pi_flag) plc LEFT OUTER JOIN M_HU_PI_Item_Product hupip on hupip.M_HU_PI_Item_Product_ID = plc.M_HU_PI_Item_Product_ID LEFT OUTER JOIN M_HU_PI_Item hupii on hupii.M_HU_PI_Item_ID = hupip.M_HU_PI_Item_ID LEFT OUTER JOIN M_HU_PI_Version hupiv on hupiv.M_HU_PI_Version_ID = hupii.M_HU_PI_Version_ID LEFT OUTER JOIN M_HU_PI pi on pi.M_HU_PI_ID = hupiv.M_HU_PI_ID LEFT OUTER JOIN M_Product p ON p.m_product_id = plc.m_product_id LEFT OUTER JOIN C_UOM stockingUOM ON stockingUOM.c_uom_id = p.c_uom_id LEFT OUTER JOIN M_Pricelist_Version prlv on prlv.m_pricelist_version_id = p_m_pricelist_version_id LEFT OUTER JOIN M_Pricelist prl on prlv.m_pricelist_id = prl.m_pricelist_id $BODY$ LANGUAGE sql STABLE; COMMENT ON FUNCTION report.fresh_pricelist_details_template_report(NUMERIC, NUMERIC, CHARACTER VARYING, NUMERIC, text) IS 'Used in UNION with fresh_pricelist_details_template_report_With_PP_PI to export pricing data. The pricing data is exported into the excel-template file jasperreports\de\metas\reports\pricelist\report.xls. This is done by the AD_Process with Value=RV_Fresh_PriceList_Exporter'; DROP FUNCTION IF EXISTS report.fresh_pricelist_details_template_report_With_PP_PI(NUMERIC, NUMERIC, CHARACTER VARYING, NUMERIC, text); CREATE OR REPLACE FUNCTION report.fresh_pricelist_details_template_report_With_PP_PI(IN p_c_bpartner_id numeric, IN p_m_pricelist_version_id numeric, IN p_ad_language character varying, IN p_c_bpartner_location_id numeric, IN p_show_product_price_pi_flag text) RETURNS TABLE ( prodvalue text, customerproductnumber text, productcategory text, productname text, attributes text, itemproductname text, qty numeric, priceUOMSymbol text, pricestd text, m_productprice_id integer, c_bpartner_id numeric, m_hu_pi_item_product_id integer, uom_x12de355 text, priceUOM_x12de355 text, c_bpartner_location_id numeric, qtycuspertu numeric, m_product_id integer, bp_value text, bp_name text, reportfilename text, show_product_price_pi_flag text ) AS $BODY$ -- SELECT plc.value AS prodvalue, plc.customerproductnumber as customerproductnumber, plc.productcategory as productcategory, plc.productname as productname, plc.attributes as attributes, COALESCE(replace(plc.itemproductname, hupiv.name, pi.Name), stockingUOM.uomsymbol) as itemproductname, NULL::numeric as qty, plc.uomsymbol as priceUOMSymbol, to_char(plc.pricestd, getPricePattern(prl.priceprecision::integer)) as pricestd, plc.M_ProductPrice_ID as m_productprice_id, p_c_bpartner_id as c_bpartner_id, plc.M_HU_PI_Item_Product_ID as m_hu_pi_item_product_id, stockingUOM.x12de355 as uom_x12de355, plc.uom_x12de355 as priceUOM_x12de355, p_c_bpartner_location_id as c_bpartner_location_id, plc.qtycuspertu /* internally used as a multiplier for the CU-qty if M_HU_PI_Item_Product_ID is given */ as qtycuspertu, plc.m_product_id as m_product_id, plc.BP_Value as bp_value, plc.BP_Name as bp_name, CONCAT(bp_value, '_', bp_name, '_', case when prlv.isactive = 'Y' then prlv.validfrom::date else null end, '.xls') as reportfilename, p_show_product_price_pi_flag as show_product_price_pi_flag FROM report.fresh_PriceList_Details_Report_With_PP_PI(p_c_bpartner_id, p_m_pricelist_version_id, NULL, p_ad_language, p_show_product_price_pi_flag) plc LEFT OUTER JOIN M_HU_PI_Item_Product hupip on hupip.M_HU_PI_Item_Product_ID = plc.M_HU_PI_Item_Product_ID LEFT OUTER JOIN M_HU_PI_Item hupii on hupii.M_HU_PI_Item_ID = hupip.M_HU_PI_Item_ID LEFT OUTER JOIN M_HU_PI_Version hupiv on hupiv.M_HU_PI_Version_ID = hupii.M_HU_PI_Version_ID LEFT OUTER JOIN M_HU_PI pi on pi.M_HU_PI_ID = hupiv.M_HU_PI_ID LEFT OUTER JOIN M_Product p ON p.m_product_id = plc.m_product_id LEFT OUTER JOIN C_UOM stockingUOM ON stockingUOM.c_uom_id = p.c_uom_id LEFT OUTER JOIN M_Pricelist_Version prlv on prlv.m_pricelist_version_id = p_m_pricelist_version_id LEFT OUTER JOIN M_Pricelist prl on prlv.m_pricelist_id = prl.m_pricelist_id $BODY$ LANGUAGE sql STABLE; COMMENT ON FUNCTION report.fresh_pricelist_details_template_report_With_PP_PI(NUMERIC, NUMERIC, CHARACTER VARYING, NUMERIC, text) IS 'Used in UNION with fresh_pricelist_details_template_report to export pricing data. The pricing data is exported into the excel-template file jasperreports\de\metas\reports\pricelist\report.xls. This is done by the AD_Process with Value=RV_Fresh_PriceList_Exporter';
the_stack
-- 2018-02-03T08:25:10.401 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540982,540630,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'main') ; -- 2018-02-03T08:25:10.405 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540630 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2018-02-03T08:25:10.469 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540846,540630,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.532 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540846,541429,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.595 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561328,0,540982,541429,550555,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','GO URL',0,10,0,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.638 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561330,0,540982,541429,550556,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Auth Password',0,20,0,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.676 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561329,0,540982,541429,550557,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Auth Username',0,30,0,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.710 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561331,0,540982,541429,550558,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Request Username',0,40,0,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:25:10.744 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561332,0,540982,541429,550559,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Request Sender ID',0,50,0,TO_TIMESTAMP('2018-02-03 08:25:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:29:18.002 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,561325,0,540982,541429,550560,'F',TO_TIMESTAMP('2018-02-03 08:29:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2018-02-03 08:29:17','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-02-03T08:29:41.809 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,UIStyle,Updated,UpdatedBy,WidgetSize) VALUES (0,561324,0,540982,541429,550561,'F',TO_TIMESTAMP('2018-02-03 08:29:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',20,0,0,'',TO_TIMESTAMP('2018-02-03 08:29:41','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2018-02-03T08:29:57.365 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2018-02-03 08:29:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550560 ; -- 2018-02-03T08:30:20.590 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550556 ; -- 2018-02-03T08:30:20.592 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550557 ; -- 2018-02-03T08:30:20.594 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550555 ; -- 2018-02-03T08:30:20.595 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550558 ; -- 2018-02-03T08:30:20.596 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550559 ; -- 2018-02-03T08:30:20.598 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-03 08:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550560 ; -- 2018-02-03T08:30:53.066 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-03 08:30:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550557 ; -- 2018-02-03T08:30:54.754 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-03 08:30:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550555 ; -- 2018-02-03T08:30:56.568 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-03 08:30:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550558 ; -- 2018-02-03T08:30:58.151 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-03 08:30:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550559 ; -- 2018-02-03T08:31:03.469 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-03 08:31:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550560 ; -- 2018-02-03T08:31:11.509 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-03 08:31:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550561 ; -- 2018-02-03T08:31:19.889 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=15,Updated=TO_TIMESTAMP('2018-02-03 08:31:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550556 ; -- 2018-02-03T08:32:06.392 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-03 08:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550556 ; -- 2018-02-03T08:32:06.825 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-03 08:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550557 ; -- 2018-02-03T08:32:07.168 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-03 08:32:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550555 ; -- 2018-02-03T08:32:07.495 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-03 08:32:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550558 ; -- 2018-02-03T08:32:13.569 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-03 08:32:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550559 ; -- 2018-02-03T08:35:28.943 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='GO! URL',Updated=TO_TIMESTAMP('2018-02-03 08:35:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561328 ; -- 2018-02-03T08:35:38.731 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Auth Passwort',Updated=TO_TIMESTAMP('2018-02-03 08:35:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561330 ; -- 2018-02-03T08:35:46.638 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Auth Benutzername',Updated=TO_TIMESTAMP('2018-02-03 08:35:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561329 ; -- 2018-02-03T08:35:52.867 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Request Benutzername',Updated=TO_TIMESTAMP('2018-02-03 08:35:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561331 ; -- 2018-02-03T08:36:24.619 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='GO Lieferweg Konfiguration',Updated=TO_TIMESTAMP('2018-02-03 08:36:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561327 ; -- 2018-02-03T08:37:00.068 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='GO! Konfiguration',Updated=TO_TIMESTAMP('2018-02-03 08:37:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540982 ; -- 2018-02-03T08:37:32.685 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Fracht Kategorie',Updated=TO_TIMESTAMP('2018-02-03 08:37:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7053 ;
the_stack
SET FOREIGN_KEY_CHECKS = 0; ####################################################################################################################### # Config: INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/left/start', 3, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/left/end', 5, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/right/start', 6, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/right/end', 8, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/up/start', 9, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/up/end', 11, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/down/start', 0, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'players/animations/defaultFrames/down/end', 2, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/enabled', 1, 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/mapWidthDivisor', 1, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/mapHeightDivisor', 1, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/fixedWidth', 450, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/fixedHeight', 450, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/roundMap', 1, 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/camX', 140, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/camY', 10, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/camBackgroundColor', 'rgba(0,0,0,0.6)', 't'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/camZoom', '0.35', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/roundMap', 1, 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/addCircle', 1, 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleX', 220, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleY', 88, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleRadio', 80.35, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleColor', 'rgb(0,0,0)', 't'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleAlpha', 1, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleStrokeLineWidth', 6, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleStrokeColor', 0, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleStrokeAlpha', '0.6', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleFillColor', 1, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/minimap/circleFillAlpha', 0, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/settings/enabled', 1, 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/settings/responsiveX', '100', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/settings/responsiveY', '100', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/settings/x', '940', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/settings/y', '280', 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/pointer/topOffSet', 16, 'i'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'ui/lifeBar/showOnClick', '1', 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/allowOnRegistration', '1', 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/allowOnLogin', '1', 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/registrationAvailableRooms', '*', 't'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/loginLastLocation', '1', 'b'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/loginLastLocationLabel', 'Last Location', 't'); INSERT INTO `config` (`id`, `scope`, `path`, `value`, `type`) VALUES (NULL, 'client', 'rooms/selection/loginAvailableRooms', '*', 't'); UPDATE `config` SET `path` = 'map/tileData/height' WHERE `path` = 'general/tileData/height'; UPDATE `config` SET `path` = 'map/tileData/margin' WHERE `path` = 'general/tileData/margin'; UPDATE `config` SET `path` = 'map/tileData/spacing' WHERE `path` = 'general/tileData/spacing'; UPDATE `config` SET `path` = 'map/tileData/width' WHERE `path` = 'general/tileData/width'; ## ------------------------------------------------------------------------------------------------------------------- # Players: ALTER TABLE `players` ADD COLUMN `created_at` TIMESTAMP NOT NULL DEFAULT NOW() AFTER `name`; ## ------------------------------------------------------------------------------------------------------------------- # World feature pack: INSERT INTO `features` (`code`, `title`, `is_enabled`) VALUES ('rooms', 'Rooms', '1'); ## ------------------------------------------------------------------------------------------------------------------- # Objects animations: CREATE TABLE `objects_animations` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `object_id` INT(10) UNSIGNED NOT NULL, `animationKey` VARCHAR(255) NOT NULL COLLATE 'utf8_unicode_ci', `animationData` TEXT NOT NULL COLLATE 'utf8_unicode_ci', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `object_id_animationKey` (`object_id`, `animationKey`) USING BTREE, INDEX `id` (`id`) USING BTREE, INDEX `object_id` (`object_id`) USING BTREE, CONSTRAINT `FK_objects_animations_objects` FOREIGN KEY (`object_id`) REFERENCES `objects` (`id`) ON UPDATE CASCADE ON DELETE NO ACTION ) COLLATE='utf8_unicode_ci' ENGINE=InnoDB; SET @object_id = (SELECT id FROM objects WHERE `layer_name` = 'respawn-area-monsters-lvl-1-2' AND object_class_key = 'enemy_1'); INSERT INTO `objects_animations` (`id`, `object_id`, `animationKey`, `animationData`) VALUES (NULL, @object_id, CONCAT('respawn-area-monsters-lvl-1-2_', @object_id, '_right'), '{"start":6,"end":8}'); INSERT INTO `objects_animations` (`id`, `object_id`, `animationKey`, `animationData`) VALUES (NULL, @object_id, CONCAT('respawn-area-monsters-lvl-1-2_', @object_id, '_down'), '{"start":0,"end":2}'); INSERT INTO `objects_animations` (`id`, `object_id`, `animationKey`, `animationData`) VALUES (NULL, @object_id, CONCAT('respawn-area-monsters-lvl-1-2_', @object_id, '_left'), '{"start":3,"end":5}'); INSERT INTO `objects_animations` (`id`, `object_id`, `animationKey`, `animationData`) VALUES (NULL, @object_id, CONCAT('respawn-area-monsters-lvl-1-2_', @object_id, '_up'), '{"start":9,"end":11}'); ## ------------------------------------------------------------------------------------------------------------------- # Audio: INSERT INTO `features` (`code`, `title`, `is_enabled`) VALUES ('audio', 'Audio', '1'); CREATE TABLE IF NOT EXISTS `audio_categories` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `category_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `category_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `enabled` int NOT NULL DEFAULT '0', `single_audio` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `category_key` (`category_key`), UNIQUE KEY `category_label` (`category_label`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `audio` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `audio_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `files_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `config` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `room_id` int unsigned DEFAULT NULL, `category_id` int unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `audio_key` (`audio_key`), KEY `FK_audio_rooms` (`room_id`), KEY `FK_audio_audio_categories` (`category_id`), CONSTRAINT `FK_audio_audio_categories` FOREIGN KEY (`category_id`) REFERENCES `audio_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_audio_rooms` FOREIGN KEY (`room_id`) REFERENCES `rooms` (`id`) ON DELETE SET NULL ON UPDATE SET NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `audio_markers` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `audio_id` int unsigned NOT NULL, `marker_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `start` int unsigned NOT NULL, `duration` int unsigned NOT NULL, `config` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `audio_id_marker_key` (`audio_id`,`marker_key`), KEY `audio_id` (`audio_id`), CONSTRAINT `FK_audio_markers_audio` FOREIGN KEY (`audio_id`) REFERENCES `audio` (`id`) ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `audio_player_config` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `player_id` int unsigned NOT NULL, `category_id` int unsigned DEFAULT NULL, `enabled` int unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `player_id_category_id` (`player_id`,`category_id`), KEY `FK_audio_player_config_audio_categories` (`category_id`), CONSTRAINT `FK_audio_player_config_audio_categories` FOREIGN KEY (`category_id`) REFERENCES `audio_categories` (`id`) ON UPDATE CASCADE, CONSTRAINT `FK_audio_player_config_players` FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE RESTRICT ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; INSERT INTO `audio_categories` (`id`, `category_key`, `category_label`, `enabled`, `single_audio`) VALUES (NULL, 'music', 'Music', 1, 1), (NULL, 'sound', 'Sound', 1, 0); SET @music_category = (SELECT id FROM audio_categories WHERE `category_key` = 'music'); SET @sound_category = (SELECT id FROM audio_categories WHERE `category_key` = 'sound'); SET @reldens_town_room_id = (SELECT id FROM rooms WHERE `name` = 'ReldensTown'); INSERT INTO `audio` (`id`, `audio_key`, `files_name`, `config`, `room_id`, `category_id`) VALUES (NULL, 'footstep', 'footstep.ogg,footstep.mp3', NULL, NULL, @sound_category), (NULL, 'ReldensTownAudio', 'reldens-town.ogg,reldens-town.mp3', NULL, @reldens_town_room_id, @music_category), (NULL, 'intro', 'intro.ogg,intro.mp3', NULL, NULL, @music_category); SET @reldens_town_audio_id = (SELECT id FROM audio WHERE `audio_key` = 'footstep'); SET @footstep_audio_id = (SELECT id FROM audio WHERE `audio_key` = 'ReldensTownAudio'); INSERT INTO `audio_markers` (`id`, `audio_id`, `marker_key`, `start`, `duration`, `config`) VALUES (NULL, @reldens_town_audio_id, 'ReldensTown', 0, 41, NULL), (NULL, @footstep_audio_id,'journeyman_right', 0, 1, NULL), (NULL, @footstep_audio_id,'journeyman_left', 0, 1, NULL), (NULL, @footstep_audio_id,'journeyman_up', 0, 1, NULL), (NULL, @footstep_audio_id,'journeyman_down', 0, 1, NULL), (NULL, @footstep_audio_id,'r_journeyman_right', 0, 1, NULL), (NULL, @footstep_audio_id,'r_journeyman_left', 0, 1, NULL), (NULL, @footstep_audio_id,'r_journeyman_up', 0, 1, NULL), (NULL, @footstep_audio_id,'r_journeyman_down', 0, 1, NULL), (NULL, @footstep_audio_id,'sorcerer_right', 0, 1, NULL), (NULL, @footstep_audio_id,'sorcerer_left', 0, 1, NULL), (NULL, @footstep_audio_id,'sorcerer_up', 0, 1, NULL), (NULL, @footstep_audio_id,'sorcerer_down', 0, 1, NULL), (NULL, @footstep_audio_id,'r_sorcerer_right', 0, 1, NULL), (NULL, @footstep_audio_id,'r_sorcerer_left', 0, 1, NULL), (NULL, @footstep_audio_id,'r_sorcerer_up', 0, 1, NULL), (NULL, @footstep_audio_id,'r_sorcerer_down', 0, 1, NULL), (NULL, @footstep_audio_id,'warlock_right', 0, 1, NULL), (NULL, @footstep_audio_id,'warlock_left', 0, 1, NULL), (NULL, @footstep_audio_id,'warlock_up', 0, 1, NULL), (NULL, @footstep_audio_id,'warlock_down', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warlock_right', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warlock_left', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warlock_up', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warlock_down', 0, 1, NULL), (NULL, @footstep_audio_id,'swordsman_right', 0, 1, NULL), (NULL, @footstep_audio_id,'swordsman_left', 0, 1, NULL), (NULL, @footstep_audio_id,'swordsman_up', 0, 1, NULL), (NULL, @footstep_audio_id,'swordsman_down', 0, 1, NULL), (NULL, @footstep_audio_id,'r_swordsman_right', 0, 1, NULL), (NULL, @footstep_audio_id,'r_swordsman_left', 0, 1, NULL), (NULL, @footstep_audio_id,'r_swordsman_up', 0, 1, NULL), (NULL, @footstep_audio_id,'r_swordsman_down', 0, 1, NULL), (NULL, @footstep_audio_id,'warrior_right', 0, 1, NULL), (NULL, @footstep_audio_id,'warrior_left', 0, 1, NULL), (NULL, @footstep_audio_id,'warrior_up', 0, 1, NULL), (NULL, @footstep_audio_id,'warrior_down', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warrior_right', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warrior_left', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warrior_up', 0, 1, NULL), (NULL, @footstep_audio_id,'r_warrior_down', 0, 1, NULL); INSERT IGNORE INTO `audio_player_config` (`id`, `player_id`, `category_id`, `enabled`) SELECT NULL, p.id AS playerId, ac.id AS audioCategoryId, 1 FROM players AS p JOIN audio_categories AS ac; ## -------------------------------------------------------------------------------------------------------------------
the_stack
-- -- RULES -- From Jan's original setup_ruletest.sql and run_ruletest.sql -- - thomas 1998-09-13 -- -- -- Tables and rules for the view test -- CREATE TABLE rtest_t1 ( a int4, b int4 ); CREATE TABLE rtest_t2 ( a int4, b int4 ); CREATE TABLE rtest_t3 ( a int4, b int4 ); CREATE VIEW rtest_v1 AS SELECT * FROM rtest_t1; CREATE RULE rtest_v1_ins AS ON INSERT TO rtest_v1 DO INSTEAD INSERT INTO rtest_t1 VALUES (NEW.a, NEW.b); CREATE RULE rtest_v1_upd AS ON UPDATE TO rtest_v1 DO INSTEAD UPDATE rtest_t1 SET a = NEW.a, b = NEW.b WHERE a = OLD.a; CREATE RULE rtest_v1_del AS ON DELETE TO rtest_v1 DO INSTEAD DELETE FROM rtest_t1 WHERE a = OLD.a; -- Test comments COMMENT ON RULE rtest_v1_bad ON rtest_v1 IS 'bad rule'; COMMENT ON RULE rtest_v1_del ON rtest_v1 IS 'delete rule'; COMMENT ON RULE rtest_v1_del ON rtest_v1 IS NULL; -- -- Tables and rules for the constraint update/delete test -- -- Note: -- Now that we have multiple action rule support, we check -- both possible syntaxes to define them (The last action -- can but must not have a semicolon at the end). -- CREATE TABLE rtest_system ( sysname text, sysdesc text ); CREATE TABLE rtest_interface ( sysname text, ifname text ); CREATE TABLE rtest_person ( pname text, pdesc text ); CREATE TABLE rtest_admin ( pname text, sysname text ); CREATE RULE rtest_sys_upd AS ON UPDATE TO rtest_system DO ALSO ( UPDATE rtest_interface SET sysname = NEW.sysname WHERE sysname = OLD.sysname; UPDATE rtest_admin SET sysname = new.sysname WHERE sysname = old.sysname); CREATE RULE rtest_sys_del AS ON DELETE TO rtest_system DO ALSO ( DELETE FROM rtest_interface WHERE sysname = OLD.sysname; DELETE FROM rtest_admin WHERE sysname = old.sysname; ); CREATE RULE rtest_pers_upd AS ON UPDATE TO rtest_person DO ALSO UPDATE rtest_admin SET pname = NEW.pname WHERE pname = OLD.pname; CREATE RULE rtest_pers_del AS ON DELETE TO rtest_person DO ALSO DELETE FROM rtest_admin WHERE pname = OLD.pname; -- -- Tables and rules for the logging test -- CREATE TABLE rtest_emp ( ename char(20), salary money ); CREATE TABLE rtest_emplog ( ename char(20), who name, action char(10), newsal money, oldsal money ); CREATE TABLE rtest_empmass ( ename char(20), salary money ); CREATE RULE rtest_emp_ins AS ON INSERT TO rtest_emp DO INSERT INTO rtest_emplog VALUES (NEW.ename, CURRENT_USER, 'hired', NEW.salary, '0.00'); CREATE RULE rtest_emp_upd AS ON UPDATE TO rtest_emp WHERE NEW.salary != OLD.salary DO INSERT INTO rtest_emplog VALUES (NEW.ename, CURRENT_USER, 'honored', NEW.salary, OLD.salary); CREATE RULE rtest_emp_del AS ON DELETE TO rtest_emp DO INSERT INTO rtest_emplog VALUES (OLD.ename, CURRENT_USER, 'fired', '0.00', OLD.salary); -- -- Tables and rules for the multiple cascaded qualified instead -- rule test -- CREATE TABLE rtest_t4 ( a int4, b text ); CREATE TABLE rtest_t5 ( a int4, b text ); CREATE TABLE rtest_t6 ( a int4, b text ); CREATE TABLE rtest_t7 ( a int4, b text ); CREATE TABLE rtest_t8 ( a int4, b text ); CREATE TABLE rtest_t9 ( a int4, b text ); CREATE RULE rtest_t4_ins1 AS ON INSERT TO rtest_t4 WHERE NEW.a >= 10 AND NEW.a < 20 DO INSTEAD INSERT INTO rtest_t5 VALUES (NEW.a, NEW.b); CREATE RULE rtest_t4_ins2 AS ON INSERT TO rtest_t4 WHERE NEW.a >= 20 AND NEW.a < 30 DO INSERT INTO rtest_t6 VALUES (NEW.a, NEW.b); CREATE RULE rtest_t5_ins AS ON INSERT TO rtest_t5 WHERE NEW.a > 15 DO INSERT INTO rtest_t7 VALUES (NEW.a, NEW.b); CREATE RULE rtest_t6_ins AS ON INSERT TO rtest_t6 WHERE NEW.a > 25 DO INSTEAD INSERT INTO rtest_t8 VALUES (NEW.a, NEW.b); -- -- Tables and rules for the rule fire order test -- -- As of PG 7.3, the rules should fire in order by name, regardless -- of INSTEAD attributes or creation order. -- CREATE TABLE rtest_order1 ( a int4 ); CREATE TABLE rtest_order2 ( a int4, b int4, c text ); CREATE SEQUENCE rtest_seq; CREATE RULE rtest_order_r3 AS ON INSERT TO rtest_order1 DO INSTEAD INSERT INTO rtest_order2 VALUES (NEW.a, nextval('rtest_seq'), 'rule 3 - this should run 3rd'); CREATE RULE rtest_order_r4 AS ON INSERT TO rtest_order1 WHERE a < 100 DO INSTEAD INSERT INTO rtest_order2 VALUES (NEW.a, nextval('rtest_seq'), 'rule 4 - this should run 4th'); CREATE RULE rtest_order_r2 AS ON INSERT TO rtest_order1 DO INSERT INTO rtest_order2 VALUES (NEW.a, nextval('rtest_seq'), 'rule 2 - this should run 2nd'); CREATE RULE rtest_order_r1 AS ON INSERT TO rtest_order1 DO INSTEAD INSERT INTO rtest_order2 VALUES (NEW.a, nextval('rtest_seq'), 'rule 1 - this should run 1st'); -- -- Tables and rules for the instead nothing test -- CREATE TABLE rtest_nothn1 ( a int4, b text ); CREATE TABLE rtest_nothn2 ( a int4, b text ); CREATE TABLE rtest_nothn3 ( a int4, b text ); CREATE TABLE rtest_nothn4 ( a int4, b text ); CREATE RULE rtest_nothn_r1 AS ON INSERT TO rtest_nothn1 WHERE NEW.a >= 10 AND NEW.a < 20 DO INSTEAD NOTHING; CREATE RULE rtest_nothn_r2 AS ON INSERT TO rtest_nothn1 WHERE NEW.a >= 30 AND NEW.a < 40 DO INSTEAD NOTHING; CREATE RULE rtest_nothn_r3 AS ON INSERT TO rtest_nothn2 WHERE NEW.a >= 100 DO INSTEAD INSERT INTO rtest_nothn3 VALUES (NEW.a, NEW.b); CREATE RULE rtest_nothn_r4 AS ON INSERT TO rtest_nothn2 DO INSTEAD NOTHING; -- -- Tests on a view that is select * of a table -- and has insert/update/delete instead rules to -- behave close like the real table. -- -- -- We need test date later -- INSERT INTO rtest_t2 VALUES (1, 21); INSERT INTO rtest_t2 VALUES (2, 22); INSERT INTO rtest_t2 VALUES (3, 23); INSERT INTO rtest_t3 VALUES (1, 31); INSERT INTO rtest_t3 VALUES (2, 32); INSERT INTO rtest_t3 VALUES (3, 33); INSERT INTO rtest_t3 VALUES (4, 34); INSERT INTO rtest_t3 VALUES (5, 35); -- insert values INSERT INTO rtest_v1 VALUES (1, 11); INSERT INTO rtest_v1 VALUES (2, 12); SELECT * FROM rtest_v1; -- delete with constant expression DELETE FROM rtest_v1 WHERE a = 1; SELECT * FROM rtest_v1; INSERT INTO rtest_v1 VALUES (1, 11); DELETE FROM rtest_v1 WHERE b = 12; SELECT * FROM rtest_v1; INSERT INTO rtest_v1 VALUES (2, 12); INSERT INTO rtest_v1 VALUES (2, 13); SELECT * FROM rtest_v1; * * Remember the DELETE rule ON rtest_v1: It says * * DO INSTEAD DELETE FROM rtest_t1 WHERE a = old.a * * So this time BOTH ROWS WITH a = 2 must get deleted \p \r DELETE FROM rtest_v1 WHERE b = 12; SELECT * FROM rtest_v1; DELETE FROM rtest_v1; -- insert select INSERT INTO rtest_v1 SELECT * FROM rtest_t2; SELECT * FROM rtest_v1; DELETE FROM rtest_v1; -- same with swapped targetlist INSERT INTO rtest_v1 (b, a) SELECT b, a FROM rtest_t2; SELECT * FROM rtest_v1; -- now with only one target attribute INSERT INTO rtest_v1 (a) SELECT a FROM rtest_t3; SELECT * FROM rtest_v1; SELECT * FROM rtest_v1 WHERE b ISNULL; -- let attribute a differ (must be done on rtest_t1 - see above) UPDATE rtest_t1 SET a = a + 10 WHERE b ISNULL; DELETE FROM rtest_v1 WHERE b ISNULL; SELECT * FROM rtest_v1; -- now updates with constant expression UPDATE rtest_v1 SET b = 42 WHERE a = 2; SELECT * FROM rtest_v1; UPDATE rtest_v1 SET b = 99 WHERE b = 42; SELECT * FROM rtest_v1; UPDATE rtest_v1 SET b = 88 WHERE b < 50; SELECT * FROM rtest_v1; DELETE FROM rtest_v1; INSERT INTO rtest_v1 SELECT rtest_t2.a, rtest_t3.b FROM rtest_t2, rtest_t3 WHERE rtest_t2.a = rtest_t3.a; SELECT * FROM rtest_v1; -- updates in a mergejoin UPDATE rtest_v1 SET b = rtest_t2.b FROM rtest_t2 WHERE rtest_v1.a = rtest_t2.a; SELECT * FROM rtest_v1; INSERT INTO rtest_v1 SELECT * FROM rtest_t3; SELECT * FROM rtest_v1; UPDATE rtest_t1 SET a = a + 10 WHERE b > 30; SELECT * FROM rtest_v1; UPDATE rtest_v1 SET a = rtest_t3.a + 20 FROM rtest_t3 WHERE rtest_v1.b = rtest_t3.b; SELECT * FROM rtest_v1; -- -- Test for constraint updates/deletes -- INSERT INTO rtest_system VALUES ('orion', 'Linux Jan Wieck'); INSERT INTO rtest_system VALUES ('notjw', 'WinNT Jan Wieck (notebook)'); INSERT INTO rtest_system VALUES ('neptun', 'Fileserver'); INSERT INTO rtest_interface VALUES ('orion', 'eth0'); INSERT INTO rtest_interface VALUES ('orion', 'eth1'); INSERT INTO rtest_interface VALUES ('notjw', 'eth0'); INSERT INTO rtest_interface VALUES ('neptun', 'eth0'); INSERT INTO rtest_person VALUES ('jw', 'Jan Wieck'); INSERT INTO rtest_person VALUES ('bm', 'Bruce Momjian'); INSERT INTO rtest_admin VALUES ('jw', 'orion'); INSERT INTO rtest_admin VALUES ('jw', 'notjw'); INSERT INTO rtest_admin VALUES ('bm', 'neptun'); UPDATE rtest_system SET sysname = 'pluto' WHERE sysname = 'neptun'; SELECT * FROM rtest_interface; SELECT * FROM rtest_admin; UPDATE rtest_person SET pname = 'jwieck' WHERE pdesc = 'Jan Wieck'; -- Note: use ORDER BY here to ensure consistent output across all systems. -- The above UPDATE affects two rows with equal keys, so they could be -- updated in either order depending on the whim of the local qsort(). SELECT * FROM rtest_admin ORDER BY pname, sysname; DELETE FROM rtest_system WHERE sysname = 'orion'; SELECT * FROM rtest_interface; SELECT * FROM rtest_admin; -- -- Rule qualification test -- INSERT INTO rtest_emp VALUES ('wiecc', '5000.00'); INSERT INTO rtest_emp VALUES ('gates', '80000.00'); UPDATE rtest_emp SET ename = 'wiecx' WHERE ename = 'wiecc'; UPDATE rtest_emp SET ename = 'wieck', salary = '6000.00' WHERE ename = 'wiecx'; UPDATE rtest_emp SET salary = '7000.00' WHERE ename = 'wieck'; DELETE FROM rtest_emp WHERE ename = 'gates'; SELECT ename, who = CURRENT_USER AS "matches user", action, newsal, oldsal FROM rtest_emplog ORDER BY ename, action, newsal; INSERT INTO rtest_empmass VALUES ('meyer', '4000.00'); INSERT INTO rtest_empmass VALUES ('maier', '5000.00'); INSERT INTO rtest_empmass VALUES ('mayr', '6000.00'); INSERT INTO rtest_emp SELECT * FROM rtest_empmass; SELECT ename, who = CURRENT_USER AS "matches user", action, newsal, oldsal FROM rtest_emplog ORDER BY ename, action, newsal; UPDATE rtest_empmass SET salary = salary + '1000.00'; UPDATE rtest_emp SET salary = rtest_empmass.salary FROM rtest_empmass WHERE rtest_emp.ename = rtest_empmass.ename; SELECT ename, who = CURRENT_USER AS "matches user", action, newsal, oldsal FROM rtest_emplog ORDER BY ename, action, newsal; DELETE FROM rtest_emp USING rtest_empmass WHERE rtest_emp.ename = rtest_empmass.ename; SELECT ename, who = CURRENT_USER AS "matches user", action, newsal, oldsal FROM rtest_emplog ORDER BY ename, action, newsal; -- -- Multiple cascaded qualified instead rule test -- INSERT INTO rtest_t4 VALUES (1, 'Record should go to rtest_t4'); INSERT INTO rtest_t4 VALUES (2, 'Record should go to rtest_t4'); INSERT INTO rtest_t4 VALUES (10, 'Record should go to rtest_t5'); INSERT INTO rtest_t4 VALUES (15, 'Record should go to rtest_t5'); INSERT INTO rtest_t4 VALUES (19, 'Record should go to rtest_t5 and t7'); INSERT INTO rtest_t4 VALUES (20, 'Record should go to rtest_t4 and t6'); INSERT INTO rtest_t4 VALUES (26, 'Record should go to rtest_t4 and t8'); INSERT INTO rtest_t4 VALUES (28, 'Record should go to rtest_t4 and t8'); INSERT INTO rtest_t4 VALUES (30, 'Record should go to rtest_t4'); INSERT INTO rtest_t4 VALUES (40, 'Record should go to rtest_t4'); SELECT * FROM rtest_t4; SELECT * FROM rtest_t5; SELECT * FROM rtest_t6; SELECT * FROM rtest_t7; SELECT * FROM rtest_t8; DELETE FROM rtest_t4; DELETE FROM rtest_t5; DELETE FROM rtest_t6; DELETE FROM rtest_t7; DELETE FROM rtest_t8; INSERT INTO rtest_t9 VALUES (1, 'Record should go to rtest_t4'); INSERT INTO rtest_t9 VALUES (2, 'Record should go to rtest_t4'); INSERT INTO rtest_t9 VALUES (10, 'Record should go to rtest_t5'); INSERT INTO rtest_t9 VALUES (15, 'Record should go to rtest_t5'); INSERT INTO rtest_t9 VALUES (19, 'Record should go to rtest_t5 and t7'); INSERT INTO rtest_t9 VALUES (20, 'Record should go to rtest_t4 and t6'); INSERT INTO rtest_t9 VALUES (26, 'Record should go to rtest_t4 and t8'); INSERT INTO rtest_t9 VALUES (28, 'Record should go to rtest_t4 and t8'); INSERT INTO rtest_t9 VALUES (30, 'Record should go to rtest_t4'); INSERT INTO rtest_t9 VALUES (40, 'Record should go to rtest_t4'); INSERT INTO rtest_t4 SELECT * FROM rtest_t9 WHERE a < 20; SELECT * FROM rtest_t4; SELECT * FROM rtest_t5; SELECT * FROM rtest_t6; SELECT * FROM rtest_t7; SELECT * FROM rtest_t8; INSERT INTO rtest_t4 SELECT * FROM rtest_t9 WHERE b ~ 'and t8'; SELECT * FROM rtest_t4; SELECT * FROM rtest_t5; SELECT * FROM rtest_t6; SELECT * FROM rtest_t7; SELECT * FROM rtest_t8; INSERT INTO rtest_t4 SELECT a + 1, b FROM rtest_t9 WHERE a IN (20, 30, 40); SELECT * FROM rtest_t4; SELECT * FROM rtest_t5; SELECT * FROM rtest_t6; SELECT * FROM rtest_t7; SELECT * FROM rtest_t8; -- -- Check that the ordering of rules fired is correct -- INSERT INTO rtest_order1 VALUES (1); SELECT * FROM rtest_order2; -- -- Check if instead nothing w/without qualification works -- INSERT INTO rtest_nothn1 VALUES (1, 'want this'); INSERT INTO rtest_nothn1 VALUES (2, 'want this'); INSERT INTO rtest_nothn1 VALUES (10, 'don''t want this'); INSERT INTO rtest_nothn1 VALUES (19, 'don''t want this'); INSERT INTO rtest_nothn1 VALUES (20, 'want this'); INSERT INTO rtest_nothn1 VALUES (29, 'want this'); INSERT INTO rtest_nothn1 VALUES (30, 'don''t want this'); INSERT INTO rtest_nothn1 VALUES (39, 'don''t want this'); INSERT INTO rtest_nothn1 VALUES (40, 'want this'); INSERT INTO rtest_nothn1 VALUES (50, 'want this'); INSERT INTO rtest_nothn1 VALUES (60, 'want this'); SELECT * FROM rtest_nothn1; INSERT INTO rtest_nothn2 VALUES (10, 'too small'); INSERT INTO rtest_nothn2 VALUES (50, 'too small'); INSERT INTO rtest_nothn2 VALUES (100, 'OK'); INSERT INTO rtest_nothn2 VALUES (200, 'OK'); SELECT * FROM rtest_nothn2; SELECT * FROM rtest_nothn3; DELETE FROM rtest_nothn1; DELETE FROM rtest_nothn2; DELETE FROM rtest_nothn3; INSERT INTO rtest_nothn4 VALUES (1, 'want this'); INSERT INTO rtest_nothn4 VALUES (2, 'want this'); INSERT INTO rtest_nothn4 VALUES (10, 'don''t want this'); INSERT INTO rtest_nothn4 VALUES (19, 'don''t want this'); INSERT INTO rtest_nothn4 VALUES (20, 'want this'); INSERT INTO rtest_nothn4 VALUES (29, 'want this'); INSERT INTO rtest_nothn4 VALUES (30, 'don''t want this'); INSERT INTO rtest_nothn4 VALUES (39, 'don''t want this'); INSERT INTO rtest_nothn4 VALUES (40, 'want this'); INSERT INTO rtest_nothn4 VALUES (50, 'want this'); INSERT INTO rtest_nothn4 VALUES (60, 'want this'); INSERT INTO rtest_nothn1 SELECT * FROM rtest_nothn4; SELECT * FROM rtest_nothn1; DELETE FROM rtest_nothn4; INSERT INTO rtest_nothn4 VALUES (10, 'too small'); INSERT INTO rtest_nothn4 VALUES (50, 'too small'); INSERT INTO rtest_nothn4 VALUES (100, 'OK'); INSERT INTO rtest_nothn4 VALUES (200, 'OK'); INSERT INTO rtest_nothn2 SELECT * FROM rtest_nothn4; SELECT * FROM rtest_nothn2; SELECT * FROM rtest_nothn3; CREATE TABLE rtest_view1 ( a int4, b text, v bool ); CREATE TABLE rtest_view2 ( a int4 ); CREATE TABLE rtest_view3 ( a int4, b text ); CREATE TABLE rtest_view4 ( a int4, b text, c int4 ); CREATE VIEW rtest_vview1 AS SELECT a, b FROM rtest_view1 X WHERE 0 < ( SELECT count(*) FROM rtest_view2 Y WHERE Y.a = X.a); CREATE VIEW rtest_vview2 AS SELECT a, b FROM rtest_view1 WHERE v; CREATE VIEW rtest_vview3 AS SELECT a, b FROM rtest_vview2 X WHERE 0 < ( SELECT count(*) FROM rtest_view2 Y WHERE Y.a = X.a); CREATE VIEW rtest_vview4 AS SELECT X.a, X.b, count(Y.a) AS refcount FROM rtest_view1 X, rtest_view2 Y WHERE X.a = Y.a GROUP BY X.a, X.b; CREATE FUNCTION rtest_viewfunc1 (int4) RETURNS int4 AS 'select count(*)::int4 from rtest_view2 where a = $1' LANGUAGE sql; CREATE VIEW rtest_vview5 AS SELECT a, b, rtest_viewfunc1 (a) AS refcount FROM rtest_view1; INSERT INTO rtest_view1 VALUES (1, 'item 1', 't'); INSERT INTO rtest_view1 VALUES (2, 'item 2', 't'); INSERT INTO rtest_view1 VALUES (3, 'item 3', 't'); INSERT INTO rtest_view1 VALUES (4, 'item 4', 'f'); INSERT INTO rtest_view1 VALUES (5, 'item 5', 't'); INSERT INTO rtest_view1 VALUES (6, 'item 6', 'f'); INSERT INTO rtest_view1 VALUES (7, 'item 7', 't'); INSERT INTO rtest_view1 VALUES (8, 'item 8', 't'); INSERT INTO rtest_view2 VALUES (2); INSERT INTO rtest_view2 VALUES (2); INSERT INTO rtest_view2 VALUES (4); INSERT INTO rtest_view2 VALUES (5); INSERT INTO rtest_view2 VALUES (7); INSERT INTO rtest_view2 VALUES (7); INSERT INTO rtest_view2 VALUES (7); INSERT INTO rtest_view2 VALUES (7); SELECT * FROM rtest_vview1; SELECT * FROM rtest_vview2; SELECT * FROM rtest_vview3; SELECT * FROM rtest_vview4 ORDER BY a, b; SELECT * FROM rtest_vview5; INSERT INTO rtest_view3 SELECT * FROM rtest_vview1 WHERE a < 7; SELECT * FROM rtest_view3; DELETE FROM rtest_view3; INSERT INTO rtest_view3 SELECT * FROM rtest_vview2 WHERE a != 5 AND b !~ '2'; SELECT * FROM rtest_view3; DELETE FROM rtest_view3; INSERT INTO rtest_view3 SELECT * FROM rtest_vview3; SELECT * FROM rtest_view3; DELETE FROM rtest_view3; INSERT INTO rtest_view4 SELECT * FROM rtest_vview4 WHERE 3 > refcount; SELECT * FROM rtest_view4 ORDER BY a, b; DELETE FROM rtest_view4; INSERT INTO rtest_view4 SELECT * FROM rtest_vview5 WHERE a > 2 AND refcount = 0; SELECT * FROM rtest_view4; DELETE FROM rtest_view4; -- -- Test for computations in views -- CREATE TABLE rtest_comp ( part text, unit char(4), size float ); CREATE TABLE rtest_unitfact ( unit char(4), factor float ); CREATE VIEW rtest_vcomp AS SELECT X.part, (X.size * Y.factor) AS size_in_cm FROM rtest_comp X, rtest_unitfact Y WHERE X.unit = Y.unit; INSERT INTO rtest_unitfact VALUES ('m', 100.0); INSERT INTO rtest_unitfact VALUES ('cm', 1.0); INSERT INTO rtest_unitfact VALUES ('inch', 2.54); INSERT INTO rtest_comp VALUES ('p1', 'm', 5.0); INSERT INTO rtest_comp VALUES ('p2', 'm', 3.0); INSERT INTO rtest_comp VALUES ('p3', 'cm', 5.0); INSERT INTO rtest_comp VALUES ('p4', 'cm', 15.0); INSERT INTO rtest_comp VALUES ('p5', 'inch', 7.0); INSERT INTO rtest_comp VALUES ('p6', 'inch', 4.4); SELECT * FROM rtest_vcomp ORDER BY part; SELECT * FROM rtest_vcomp WHERE size_in_cm > 10.0 ORDER BY size_in_cm USING >; -- -- In addition run the (slightly modified) queries from the -- programmers manual section on the rule system. -- CREATE TABLE shoe_data ( shoename char(10), -- primary key sh_avail integer, -- available # of pairs slcolor char(10), -- preferred shoelace color slminlen float, -- minimum shoelace length slmaxlen float, -- maximum shoelace length slunit char(8) -- length unit ); CREATE TABLE shoelace_data ( sl_name char(10), -- primary key sl_avail integer, -- available # of pairs sl_color char(10), -- shoelace color sl_len float, -- shoelace length sl_unit char(8) -- length unit ); CREATE TABLE unit ( un_name char(8), -- the primary key un_fact float -- factor to transform to cm ); CREATE VIEW shoe AS SELECT sh.shoename, sh.sh_avail, sh.slcolor, sh.slminlen, sh.slminlen * un.un_fact AS slminlen_cm, sh.slmaxlen, sh.slmaxlen * un.un_fact AS slmaxlen_cm, sh.slunit FROM shoe_data sh, unit un WHERE sh.slunit = un.un_name; CREATE VIEW shoelace AS SELECT s.sl_name, s.sl_avail, s.sl_color, s.sl_len, s.sl_unit, s.sl_len * u.un_fact AS sl_len_cm FROM shoelace_data s, unit u WHERE s.sl_unit = u.un_name; CREATE VIEW shoe_ready AS SELECT rsh.shoename, rsh.sh_avail, rsl.sl_name, rsl.sl_avail, int4smaller(rsh.sh_avail, rsl.sl_avail) AS total_avail FROM shoe rsh, shoelace rsl WHERE rsl.sl_color = rsh.slcolor AND rsl.sl_len_cm >= rsh.slminlen_cm AND rsl.sl_len_cm <= rsh.slmaxlen_cm; INSERT INTO unit VALUES ('cm', 1.0); INSERT INTO unit VALUES ('m', 100.0); INSERT INTO unit VALUES ('inch', 2.54); INSERT INTO shoe_data VALUES ('sh1', 2, 'black', 70.0, 90.0, 'cm'); INSERT INTO shoe_data VALUES ('sh2', 0, 'black', 30.0, 40.0, 'inch'); INSERT INTO shoe_data VALUES ('sh3', 4, 'brown', 50.0, 65.0, 'cm'); INSERT INTO shoe_data VALUES ('sh4', 3, 'brown', 40.0, 50.0, 'inch'); INSERT INTO shoelace_data VALUES ('sl1', 5, 'black', 80.0, 'cm'); INSERT INTO shoelace_data VALUES ('sl2', 6, 'black', 100.0, 'cm'); INSERT INTO shoelace_data VALUES ('sl3', 0, 'black', 35.0, 'inch'); INSERT INTO shoelace_data VALUES ('sl4', 8, 'black', 40.0, 'inch'); INSERT INTO shoelace_data VALUES ('sl5', 4, 'brown', 1.0, 'm'); INSERT INTO shoelace_data VALUES ('sl6', 0, 'brown', 0.9, 'm'); INSERT INTO shoelace_data VALUES ('sl7', 7, 'brown', 60, 'cm'); INSERT INTO shoelace_data VALUES ('sl8', 1, 'brown', 40, 'inch'); -- SELECTs in doc SELECT * FROM shoelace ORDER BY sl_name; SELECT * FROM shoe_ready WHERE total_avail >= 2 ORDER BY 1; CREATE TABLE shoelace_log ( sl_name char(10), -- shoelace changed sl_avail integer, -- new available value log_who name, -- who did it log_when timestamp -- when ); -- Want "log_who" to be CURRENT_USER, -- but that is non-portable for the regression test -- - thomas 1999-02-21 CREATE RULE log_shoelace AS ON UPDATE TO shoelace_data WHERE NEW.sl_avail != OLD.sl_avail DO INSERT INTO shoelace_log VALUES (NEW.sl_name, NEW.sl_avail, 'Al Bundy', 'epoch'); UPDATE shoelace_data SET sl_avail = 6 WHERE sl_name = 'sl7'; SELECT * FROM shoelace_log; CREATE RULE shoelace_ins AS ON INSERT TO shoelace DO INSTEAD INSERT INTO shoelace_data VALUES (NEW.sl_name, NEW.sl_avail, NEW.sl_color, NEW.sl_len, NEW.sl_unit); CREATE RULE shoelace_upd AS ON UPDATE TO shoelace DO INSTEAD UPDATE shoelace_data SET sl_name = NEW.sl_name, sl_avail = NEW.sl_avail, sl_color = NEW.sl_color, sl_len = NEW.sl_len, sl_unit = NEW.sl_unit WHERE sl_name = OLD.sl_name; CREATE RULE shoelace_del AS ON DELETE TO shoelace DO INSTEAD DELETE FROM shoelace_data WHERE sl_name = OLD.sl_name; CREATE TABLE shoelace_arrive ( arr_name char(10), arr_quant integer ); CREATE TABLE shoelace_ok ( ok_name char(10), ok_quant integer ); CREATE RULE shoelace_ok_ins AS ON INSERT TO shoelace_ok DO INSTEAD UPDATE shoelace SET sl_avail = sl_avail + NEW.ok_quant WHERE sl_name = NEW.ok_name; INSERT INTO shoelace_arrive VALUES ('sl3', 10); INSERT INTO shoelace_arrive VALUES ('sl6', 20); INSERT INTO shoelace_arrive VALUES ('sl8', 20); SELECT * FROM shoelace ORDER BY sl_name; INSERT INTO shoelace_ok SELECT * FROM shoelace_arrive; SELECT * FROM shoelace ORDER BY sl_name; SELECT * FROM shoelace_log ORDER BY sl_name; CREATE VIEW shoelace_obsolete AS SELECT * FROM shoelace WHERE NOT EXISTS ( SELECT shoename FROM shoe WHERE slcolor = sl_color); CREATE VIEW shoelace_candelete AS SELECT * FROM shoelace_obsolete WHERE sl_avail = 0; INSERT INTO shoelace VALUES ('sl9', 0, 'pink', 35.0, 'inch', 0.0); INSERT INTO shoelace VALUES ('sl10', 1000, 'magenta', 40.0, 'inch', 0.0); -- Unsupported (even though a similar updatable view construct is) INSERT INTO shoelace VALUES ('sl10', 1000, 'magenta', 40.0, 'inch', 0.0) ON CONFLICT DO NOTHING; SELECT * FROM shoelace_obsolete ORDER BY sl_len_cm; SELECT * FROM shoelace_candelete; DELETE FROM shoelace WHERE EXISTS ( SELECT * FROM shoelace_candelete WHERE sl_name = shoelace.sl_name); SELECT * FROM shoelace ORDER BY sl_name; SELECT * FROM shoe ORDER BY shoename; SELECT count(*) FROM shoe; -- -- Simple test of qualified ON INSERT ... this did not work in 7.0 ... -- CREATE TABLE rules_foo ( f1 int ); CREATE TABLE rules_foo2 ( f1 int ); CREATE RULE rules_foorule AS ON INSERT TO rules_foo WHERE f1 < 100 DO INSTEAD NOTHING; INSERT INTO rules_foo VALUES (1); INSERT INTO rules_foo VALUES (1001); SELECT * FROM rules_foo; DROP RULE rules_foorule ON rules_foo; -- this should fail because f1 is not exposed for unqualified reference: CREATE RULE rules_foorule AS ON INSERT TO rules_foo WHERE f1 < 100 DO INSTEAD INSERT INTO rules_foo2 VALUES (f1); -- this is the correct way: CREATE RULE rules_foorule AS ON INSERT TO rules_foo WHERE f1 < 100 DO INSTEAD INSERT INTO rules_foo2 VALUES (NEW.f1); INSERT INTO rules_foo VALUES (2); INSERT INTO rules_foo VALUES (100); SELECT * FROM rules_foo; SELECT * FROM rules_foo2; DROP RULE rules_foorule ON rules_foo; DROP TABLE rules_foo; DROP TABLE rules_foo2; -- -- Test rules containing INSERT ... SELECT, which is a very ugly special -- case as of 7.1. Example is based on bug report from Joel Burton. -- CREATE TABLE pparent ( pid int, txt text ); INSERT INTO pparent VALUES (1, 'parent1'); INSERT INTO pparent VALUES (2, 'parent2'); CREATE TABLE cchild ( pid int, descrip text ); INSERT INTO cchild VALUES (1, 'descrip1'); CREATE VIEW vview AS SELECT pparent.pid, txt, descrip FROM pparent LEFT JOIN cchild USING (pid); CREATE RULE rrule AS ON UPDATE TO vview DO INSTEAD (INSERT INTO cchild (pid, descrip) SELECT OLD.pid, NEW.descrip WHERE OLD.descrip ISNULL; UPDATE cchild SET descrip = new.descrip WHERE cchild.pid = old.pid; ); SELECT * FROM vview; UPDATE vview SET descrip = 'test1' WHERE pid = 1; SELECT * FROM vview; UPDATE vview SET descrip = 'test2' WHERE pid = 2; SELECT * FROM vview; UPDATE vview SET descrip = 'test3' WHERE pid = 3; SELECT * FROM vview; SELECT * FROM cchild; DROP RULE rrule ON vview; DROP VIEW vview; DROP TABLE pparent; DROP TABLE cchild; -- -- Check that ruleutils are working -- -- temporarily disable fancy output, so view changes create less diff noise a \t SELECT viewname, definition FROM pg_views WHERE schemaname IN ('pg_catalog', 'public') ORDER BY viewname; SELECT tablename, rulename, definition FROM pg_rules WHERE schemaname IN ('pg_catalog', 'public') ORDER BY tablename, rulename; -- restore normal output mode a \t -- -- CREATE OR REPLACE RULE -- CREATE TABLE ruletest_tbl ( a int, b int ); CREATE TABLE ruletest_tbl2 ( a int, b int ); CREATE OR REPLACE RULE myrule AS ON INSERT TO ruletest_tbl DO INSTEAD INSERT INTO ruletest_tbl2 VALUES ( 10, 10 ); INSERT INTO ruletest_tbl VALUES (99, 99); CREATE OR REPLACE RULE myrule AS ON INSERT TO ruletest_tbl DO INSTEAD INSERT INTO ruletest_tbl2 VALUES ( 1000, 1000 ); INSERT INTO ruletest_tbl VALUES (99, 99); SELECT * FROM ruletest_tbl2; -- Check that rewrite rules splitting one INSERT into multiple -- conditional statements does not disable FK checking. CREATE TABLE rule_and_refint_t1 ( id1a integer, id1b integer, PRIMARY KEY (id1a, id1b) ); CREATE TABLE rule_and_refint_t2 ( id2a integer, id2c integer, PRIMARY KEY (id2a, id2c) ); CREATE TABLE rule_and_refint_t3 ( id3a integer, id3b integer, id3c integer, data text, PRIMARY KEY (id3a, id3b, id3c), FOREIGN KEY (id3a, id3b) REFERENCES rule_and_refint_t1 (id1a, id1b), FOREIGN KEY (id3a, id3c) REFERENCES rule_and_refint_t2 (id2a, id2c) ); INSERT INTO rule_and_refint_t1 VALUES (1, 11); INSERT INTO rule_and_refint_t1 VALUES (1, 12); INSERT INTO rule_and_refint_t1 VALUES (2, 21); INSERT INTO rule_and_refint_t1 VALUES (2, 22); INSERT INTO rule_and_refint_t2 VALUES (1, 11); INSERT INTO rule_and_refint_t2 VALUES (1, 12); INSERT INTO rule_and_refint_t2 VALUES (2, 21); INSERT INTO rule_and_refint_t2 VALUES (2, 22); INSERT INTO rule_and_refint_t3 VALUES (1, 11, 11, 'row1'); INSERT INTO rule_and_refint_t3 VALUES (1, 11, 12, 'row2'); INSERT INTO rule_and_refint_t3 VALUES (1, 12, 11, 'row3'); INSERT INTO rule_and_refint_t3 VALUES (1, 12, 12, 'row4'); INSERT INTO rule_and_refint_t3 VALUES (1, 11, 13, 'row5'); INSERT INTO rule_and_refint_t3 VALUES (1, 13, 11, 'row6'); -- Ordinary table INSERT INTO rule_and_refint_t3 VALUES (1, 13, 11, 'row6') ON CONFLICT DO NOTHING; -- rule not fired, so fk violation INSERT INTO rule_and_refint_t3 VALUES (1, 13, 11, 'row6') ON CONFLICT (id3a, id3b, id3c) DO UPDATE SET id3b = excluded.id3b; -- rule fired, so unsupported INSERT INTO shoelace VALUES ('sl9', 0, 'pink', 35.0, 'inch', 0.0) ON CONFLICT (sl_name) DO UPDATE SET sl_avail = excluded.sl_avail; CREATE RULE rule_and_refint_t3_ins AS ON INSERT TO rule_and_refint_t3 WHERE (EXISTS ( SELECT 1 FROM rule_and_refint_t3 WHERE (((rule_and_refint_t3.id3a = NEW.id3a) AND (rule_and_refint_t3.id3b = NEW.id3b)) AND (rule_and_refint_t3.id3c = NEW.id3c)))) DO INSTEAD UPDATE rule_and_refint_t3 SET data = NEW.data WHERE (((rule_and_refint_t3.id3a = NEW.id3a) AND (rule_and_refint_t3.id3b = NEW.id3b)) AND (rule_and_refint_t3.id3c = NEW.id3c)); INSERT INTO rule_and_refint_t3 VALUES (1, 11, 13, 'row7'); INSERT INTO rule_and_refint_t3 VALUES (1, 13, 11, 'row8'); -- -- disallow dropping a view's rule (bug #5072) -- CREATE VIEW rules_fooview AS SELECT 'rules_foo'::text; DROP RULE "_RETURN" ON rules_fooview; DROP VIEW rules_fooview; -- -- test conversion of table to view (needed to load some pg_dump files) -- CREATE TABLE rules_fooview ( x int, y text ); SELECT xmin, * FROM rules_fooview; CREATE RULE "_RETURN" AS ON SELECT TO rules_fooview DO INSTEAD SELECT 1 AS x, 'aaa'::text AS y; SELECT * FROM rules_fooview; SELECT xmin, * FROM rules_fooview; -- fail, views don't have such a column SELECT reltoastrelid, relkind, relfrozenxid FROM pg_class WHERE oid = 'rules_fooview'::regclass; DROP VIEW rules_fooview; -- trying to convert a partitioned table to view is not allowed CREATE TABLE rules_fooview ( x int, y text ) PARTITION BY LIST (x); CREATE RULE "_RETURN" AS ON SELECT TO rules_fooview DO INSTEAD SELECT 1 AS x, 'aaa'::text AS y; -- nor can one convert a partition to view CREATE TABLE rules_fooview_part PARTITION OF rules_fooview FOR VALUES IN (1); CREATE RULE "_RETURN" AS ON SELECT TO rules_fooview_part DO INSTEAD SELECT 1 AS x, 'aaa'::text AS y; -- -- check for planner problems with complex inherited UPDATES -- CREATE TABLE id ( id serial PRIMARY KEY, name text ); -- currently, must respecify PKEY for each inherited subtable CREATE TABLE test_1 ( id integer PRIMARY KEY ) INHERITS ( id ); CREATE TABLE test_2 ( id integer PRIMARY KEY ) INHERITS ( id ); CREATE TABLE test_3 ( id integer PRIMARY KEY ) INHERITS ( id ); INSERT INTO test_1 (name) VALUES ('Test 1'); INSERT INTO test_1 (name) VALUES ('Test 2'); INSERT INTO test_2 (name) VALUES ('Test 3'); INSERT INTO test_2 (name) VALUES ('Test 4'); INSERT INTO test_3 (name) VALUES ('Test 5'); INSERT INTO test_3 (name) VALUES ('Test 6'); CREATE VIEW id_ordered AS SELECT * FROM id ORDER BY id; CREATE RULE update_id_ordered AS ON UPDATE TO id_ordered DO INSTEAD UPDATE id SET name = NEW.name WHERE id = OLD.id; SELECT * FROM id_ordered; UPDATE id_ordered SET name = 'update 2' WHERE id = 2; UPDATE id_ordered SET name = 'update 4' WHERE id = 4; UPDATE id_ordered SET name = 'update 5' WHERE id = 5; SELECT * FROM id_ordered; DROP TABLE id CASCADE; -- -- check corner case where an entirely-dummy subplan is created by -- constraint exclusion -- CREATE temp TABLE t1 ( a integer PRIMARY KEY ); CREATE temp TABLE t1_1 ( CHECK (a >= 0 AND a < 10) ) INHERITS ( t1 ); CREATE temp TABLE t1_2 ( CHECK (a >= 10 AND a < 20) ) INHERITS ( t1 ); CREATE RULE t1_ins_1 AS ON INSERT TO t1 WHERE NEW.a >= 0 AND NEW.a < 10 DO INSTEAD INSERT INTO t1_1 VALUES (NEW.a); CREATE RULE t1_ins_2 AS ON INSERT TO t1 WHERE NEW.a >= 10 AND NEW.a < 20 DO INSTEAD INSERT INTO t1_2 VALUES (NEW.a); CREATE RULE t1_upd_1 AS ON UPDATE TO t1 WHERE OLD.a >= 0 AND OLD.a < 10 DO INSTEAD UPDATE t1_1 SET a = NEW.a WHERE a = OLD.a; CREATE RULE t1_upd_2 AS ON UPDATE TO t1 WHERE OLD.a >= 10 AND OLD.a < 20 DO INSTEAD UPDATE t1_2 SET a = NEW.a WHERE a = OLD.a; SET constraint_exclusion = ON; INSERT INTO t1 SELECT * FROM generate_series(5, 19, 1) g; UPDATE t1 SET a = 4 WHERE a = 5; SELECT * FROM ONLY t1; SELECT * FROM ONLY t1_1; SELECT * FROM ONLY t1_2; RESET constraint_exclusion; -- test various flavors of pg_get_viewdef() SELECT pg_get_viewdef('shoe'::regclass) AS unpretty; SELECT pg_get_viewdef('shoe'::regclass, TRUE) AS pretty; SELECT pg_get_viewdef('shoe'::regclass, 0) AS prettier; -- -- check multi-row VALUES in rules -- CREATE TABLE rules_src ( f1 int, f2 int ); CREATE TABLE rules_log ( f1 int, f2 int, tag text ); INSERT INTO rules_src VALUES (1, 2), (11, 12); CREATE RULE r1 AS ON UPDATE TO rules_src DO ALSO INSERT INTO rules_log VALUES (OLD.*, 'old'), (NEW.*, 'new'); UPDATE rules_src SET f2 = f2 + 1; UPDATE rules_src SET f2 = f2 * 10; SELECT * FROM rules_src; SELECT * FROM rules_log; CREATE RULE r2 AS ON UPDATE TO rules_src DO ALSO VALUES (OLD.*, 'old'), (NEW.*, 'new'); UPDATE rules_src SET f2 = f2 / 10; SELECT * FROM rules_src; SELECT * FROM rules_log; CREATE RULE r3 AS ON DELETE TO rules_src DO NOTIFY rules_src_deletion; \d+ rules_src -- -- Ensure an aliased target relation for insert is correctly deparsed. -- CREATE RULE r4 AS ON INSERT TO rules_src DO INSTEAD INSERT INTO rules_log AS trgt SELECT NEW.* RETURNING trgt.f1, trgt.f2; CREATE RULE r5 AS ON UPDATE TO rules_src DO INSTEAD UPDATE rules_log AS trgt SET tag = 'updated' WHERE trgt.f1 = NEW.f1; \d+ rules_src -- -- check alter rename rule -- CREATE TABLE rule_t1 ( a int ); CREATE VIEW rule_v1 AS SELECT * FROM rule_t1; CREATE RULE InsertRule AS ON INSERT TO rule_v1 DO INSTEAD INSERT INTO rule_t1 VALUES (NEW.a); ALTER RULE InsertRule ON rule_v1 RENAME TO NewInsertRule; INSERT INTO rule_v1 VALUES (1); SELECT * FROM rule_v1; \d+ rule_v1 -- -- error conditions for alter rename rule -- ALTER RULE InsertRule ON rule_v1 RENAME TO NewInsertRule; -- doesn't exist ALTER RULE NewInsertRule ON rule_v1 RENAME TO "_RETURN"; -- already exists ALTER RULE "_RETURN" ON rule_v1 RENAME TO abc; -- ON SELECT rule cannot be renamed DROP VIEW rule_v1; DROP TABLE rule_t1; -- -- check display of VALUES in view definitions -- CREATE VIEW rule_v1 AS VALUES (1, 2); \d+ rule_v1 DROP VIEW rule_v1; CREATE VIEW rule_v1 (x) AS VALUES (1, 2); \d+ rule_v1 DROP VIEW rule_v1; CREATE VIEW rule_v1 (x) AS SELECT * FROM ( VALUES (1, 2)) v; \d+ rule_v1 DROP VIEW rule_v1; CREATE VIEW rule_v1 (x) AS SELECT * FROM ( VALUES (1, 2)) v (q, w); \d+ rule_v1 DROP VIEW rule_v1; -- -- Check DO INSTEAD rules with ON CONFLICT -- CREATE TABLE hats ( hat_name char(10) PRIMARY KEY, hat_color char(10) -- hat color ); CREATE TABLE hat_data ( hat_name char(10), hat_color char(10) -- hat color ); CREATE UNIQUE INDEX hat_data_unique_idx ON hat_data (hat_name COLLATE "C" bpchar_pattern_ops); -- DO NOTHING with ON CONFLICT CREATE RULE hat_nosert AS ON INSERT TO hats DO INSTEAD INSERT INTO hat_data VALUES (NEW.hat_name, NEW.hat_color) ON CONFLICT (hat_name COLLATE "C" bpchar_pattern_ops) WHERE hat_color = 'green' DO NOTHING RETURNING *; SELECT definition FROM pg_rules WHERE tablename = 'hats' ORDER BY rulename; -- Works (projects row) INSERT INTO hats VALUES ('h7', 'black') RETURNING *; -- Works (does nothing) INSERT INTO hats VALUES ('h7', 'black') RETURNING *; SELECT tablename, rulename, definition FROM pg_rules WHERE tablename = 'hats'; DROP RULE hat_nosert ON hats; -- DO NOTHING without ON CONFLICT CREATE RULE hat_nosert_all AS ON INSERT TO hats DO INSTEAD INSERT INTO hat_data VALUES (NEW.hat_name, NEW.hat_color) ON CONFLICT DO NOTHING RETURNING *; SELECT definition FROM pg_rules WHERE tablename = 'hats' ORDER BY rulename; DROP RULE hat_nosert_all ON hats; -- Works (does nothing) INSERT INTO hats VALUES ('h7', 'black') RETURNING *; -- DO UPDATE with a WHERE clause CREATE RULE hat_upsert AS ON INSERT TO hats DO INSTEAD INSERT INTO hat_data VALUES (NEW.hat_name, NEW.hat_color) ON CONFLICT (hat_name) DO UPDATE SET hat_name = hat_data.hat_name, hat_color = excluded.hat_color WHERE excluded.hat_color <> 'forbidden' AND hat_data.* != excluded.* RETURNING *; SELECT definition FROM pg_rules WHERE tablename = 'hats' ORDER BY rulename; -- Works (does upsert) INSERT INTO hats VALUES ('h8', 'black') RETURNING *; SELECT * FROM hat_data WHERE hat_name = 'h8'; INSERT INTO hats VALUES ('h8', 'white') RETURNING *; SELECT * FROM hat_data WHERE hat_name = 'h8'; INSERT INTO hats VALUES ('h8', 'forbidden') RETURNING *; SELECT * FROM hat_data WHERE hat_name = 'h8'; SELECT tablename, rulename, definition FROM pg_rules WHERE tablename = 'hats'; -- ensure explain works for on insert conflict rules EXPLAIN ( COSTS OFF ) INSERT INTO hats VALUES ('h8', 'forbidden') RETURNING *; -- ensure upserting into a rule, with a CTE (different offsets!) works WITH data ( hat_name, hat_color ) AS MATERIALIZED ( VALUES ( 'h8', 'green' ), ( 'h9', 'blue' ), ( 'h7', 'forbidden' )) INSERT INTO hats SELECT * FROM data RETURNING *; EXPLAIN ( COSTS OFF ) WITH data (hat_name, hat_color) AS MATERIALIZED ( VALUES ('h8', 'green'), ('h9', 'blue'), ('h7', 'forbidden')) INSERT INTO hats SELECT * FROM data RETURNING *; SELECT * FROM hat_data WHERE hat_name IN ('h8', 'h9', 'h7') ORDER BY hat_name; DROP RULE hat_upsert ON hats; DROP TABLE hats; DROP TABLE hat_data; -- test for pg_get_functiondef properly regurgitating SET parameters -- Note that the function is kept around to stress pg_dump. CREATE FUNCTION func_with_set_params () RETURNS integer AS 'select 1;' LANGUAGE SQL SET search_path TO PG_CATALOG SET extra_float_digits TO 2 SET work_mem TO '4MB' SET datestyle TO iso, mdy SET local_preload_libraries TO "Mixed/Case", 'c:/''a"/path', '', '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' IMMUTABLE STRICT; SELECT pg_get_functiondef('func_with_set_params()'::regprocedure); -- tests for pg_get_*def with invalid objects SELECT pg_get_constraintdef(0); SELECT pg_get_functiondef(0); SELECT pg_get_indexdef(0); SELECT pg_get_ruledef(0); SELECT pg_get_statisticsobjdef (0); SELECT pg_get_triggerdef(0); SELECT pg_get_viewdef(0); SELECT pg_get_function_arguments(0); SELECT pg_get_function_identity_arguments(0); SELECT pg_get_function_result(0); SELECT pg_get_function_arg_default (0, 0); SELECT pg_get_function_arg_default ('pg_class'::regclass, 0); SELECT pg_get_partkeydef (0); -- test rename for a rule defined on a partitioned table CREATE TABLE rules_parted_table ( a int ) PARTITION BY LIST (a); CREATE TABLE rules_parted_table_1 PARTITION OF rules_parted_table FOR VALUES IN (1); CREATE RULE rules_parted_table_insert AS ON INSERT TO rules_parted_table DO INSTEAD INSERT INTO rules_parted_table_1 VALUES (NEW.*); ALTER RULE rules_parted_table_insert ON rules_parted_table RENAME TO rules_parted_table_insert_redirect; DROP TABLE rules_parted_table; -- -- Test enabling/disabling -- CREATE TABLE ruletest1 ( a int ); CREATE TABLE ruletest2 ( b int ); CREATE RULE rule1 AS ON INSERT TO ruletest1 DO INSTEAD INSERT INTO ruletest2 VALUES (NEW.*); INSERT INTO ruletest1 VALUES (1); ALTER TABLE ruletest1 DISABLE RULE rule1; INSERT INTO ruletest1 VALUES (2); ALTER TABLE ruletest1 ENABLE RULE rule1; SET session_replication_role = REPLICA; INSERT INTO ruletest1 VALUES (3); ALTER TABLE ruletest1 ENABLE REPLICA RULE rule1; INSERT INTO ruletest1 VALUES (4); RESET session_replication_role; INSERT INTO ruletest1 VALUES (5); SELECT * FROM ruletest1; SELECT * FROM ruletest2; DROP TABLE ruletest1; DROP TABLE ruletest2;
the_stack
-- STORED PROCEDURE -- Index instance V2 -- -- DESCRIPTION -- Adds or updates the various extended query tag indices for a given DICOM instance. -- -- PARAMETERS -- @watermark -- * The Dicom instance watermark. -- @stringExtendedQueryTags -- * String extended query tag data -- @longExtendedQueryTags -- * Long extended query tag data -- @doubleExtendedQueryTags -- * Double extended query tag data -- @ -- * DateTime extended query tag data -- @personNameExtendedQueryTags -- * PersonName extended query tag data -- RETURN VALUE -- None /***************************************************************************************/ CREATE OR ALTER PROCEDURE dbo.IndexInstanceV2 @watermark BIGINT, @stringExtendedQueryTags dbo.InsertStringExtendedQueryTagTableType_1 READONLY, @longExtendedQueryTags dbo.InsertLongExtendedQueryTagTableType_1 READONLY, @doubleExtendedQueryTags dbo.InsertDoubleExtendedQueryTagTableType_1 READONLY, @dateTimeExtendedQueryTags dbo.InsertDateTimeExtendedQueryTagTableType_2 READONLY, @personNameExtendedQueryTags dbo.InsertPersonNameExtendedQueryTagTableType_1 READONLY AS BEGIN SET NOCOUNT ON SET XACT_ABORT ON BEGIN TRANSACTION DECLARE @studyKey BIGINT DECLARE @seriesKey BIGINT DECLARE @instanceKey BIGINT -- Add lock so that the instance cannot be removed DECLARE @status TINYINT SELECT @studyKey = StudyKey, @seriesKey = SeriesKey, @instanceKey = InstanceKey, @status = Status FROM dbo.Instance WITH (HOLDLOCK) WHERE Watermark = @watermark IF @@ROWCOUNT = 0 THROW 50404, 'Instance does not exists', 1 IF @status <> 1 -- Created THROW 50409, 'Instance has not yet been stored succssfully', 1 -- Insert Extended Query Tags -- String Key tags IF EXISTS (SELECT 1 FROM @stringExtendedQueryTags) BEGIN MERGE INTO dbo.ExtendedQueryTagString WITH (HOLDLOCK) AS T USING ( -- Locks tags in dbo.ExtendedQueryTag SELECT input.TagKey, input.TagValue, input.TagLevel FROM @stringExtendedQueryTags input INNER JOIN dbo.ExtendedQueryTag WITH (REPEATABLEREAD) ON dbo.ExtendedQueryTag.TagKey = input.TagKey -- Only merge on extended query tag which is being adding. AND dbo.ExtendedQueryTag.TagStatus <> 2 ) AS S ON T.TagKey = S.TagKey AND T.StudyKey = @studyKey -- Null SeriesKey indicates a Study level tag, no need to compare SeriesKey AND ISNULL(T.SeriesKey, @seriesKey) = @seriesKey -- Null InstanceKey indicates a Study/Series level tag, no to compare InstanceKey AND ISNULL(T.InstanceKey, @instanceKey) = @instanceKey WHEN MATCHED THEN -- When index already exist, update only when watermark is newer UPDATE SET T.Watermark = IIF(@watermark > T.Watermark, @watermark, T.Watermark), T.TagValue = IIF(@watermark > T.Watermark, S.TagValue, T.TagValue) WHEN NOT MATCHED THEN INSERT (TagKey, TagValue, StudyKey, SeriesKey, InstanceKey, Watermark) VALUES ( S.TagKey, S.TagValue, @studyKey, -- When TagLevel is not Study, we should fill SeriesKey (CASE WHEN S.TagLevel <> 2 THEN @seriesKey ELSE NULL END), -- When TagLevel is Instance, we should fill InstanceKey (CASE WHEN S.TagLevel = 0 THEN @instanceKey ELSE NULL END), @watermark ); END -- Long Key tags IF EXISTS (SELECT 1 FROM @longExtendedQueryTags) BEGIN MERGE INTO dbo.ExtendedQueryTagLong WITH (HOLDLOCK) AS T USING ( SELECT input.TagKey, input.TagValue, input.TagLevel FROM @longExtendedQueryTags input INNER JOIN dbo.ExtendedQueryTag WITH (REPEATABLEREAD) ON dbo.ExtendedQueryTag.TagKey = input.TagKey AND dbo.ExtendedQueryTag.TagStatus <> 2 ) AS S ON T.TagKey = S.TagKey AND T.StudyKey = @studyKey AND ISNULL(T.SeriesKey, @seriesKey) = @seriesKey AND ISNULL(T.InstanceKey, @instanceKey) = @instanceKey WHEN MATCHED THEN -- When index already exist, update only when watermark is newer UPDATE SET T.Watermark = IIF(@watermark > T.Watermark, @watermark, T.Watermark), T.TagValue = IIF(@watermark > T.Watermark, S.TagValue, T.TagValue) WHEN NOT MATCHED THEN INSERT (TagKey, TagValue, StudyKey, SeriesKey, InstanceKey, Watermark) VALUES ( S.TagKey, S.TagValue, @studyKey, (CASE WHEN S.TagLevel <> 2 THEN @seriesKey ELSE NULL END), (CASE WHEN S.TagLevel = 0 THEN @instanceKey ELSE NULL END), @watermark ); END -- Double Key tags IF EXISTS (SELECT 1 FROM @doubleExtendedQueryTags) BEGIN MERGE INTO dbo.ExtendedQueryTagDouble WITH (HOLDLOCK) AS T USING ( SELECT input.TagKey, input.TagValue, input.TagLevel FROM @doubleExtendedQueryTags input INNER JOIN dbo.ExtendedQueryTag WITH (REPEATABLEREAD) ON dbo.ExtendedQueryTag.TagKey = input.TagKey AND dbo.ExtendedQueryTag.TagStatus <> 2 ) AS S ON T.TagKey = S.TagKey AND T.StudyKey = @studyKey AND ISNULL(T.SeriesKey, @seriesKey) = @seriesKey AND ISNULL(T.InstanceKey, @instanceKey) = @instanceKey WHEN MATCHED THEN -- When index already exist, update only when watermark is newer UPDATE SET T.Watermark = IIF(@watermark > T.Watermark, @watermark, T.Watermark), T.TagValue = IIF(@watermark > T.Watermark, S.TagValue, T.TagValue) WHEN NOT MATCHED THEN INSERT (TagKey, TagValue, StudyKey, SeriesKey, InstanceKey, Watermark) VALUES ( S.TagKey, S.TagValue, @studyKey, (CASE WHEN S.TagLevel <> 2 THEN @seriesKey ELSE NULL END), (CASE WHEN S.TagLevel = 0 THEN @instanceKey ELSE NULL END), @watermark ); END -- DateTime Key tags IF EXISTS (SELECT 1 FROM @dateTimeExtendedQueryTags) BEGIN MERGE INTO dbo.ExtendedQueryTagDateTime WITH (HOLDLOCK) AS T USING ( SELECT input.TagKey, input.TagValue, input.TagValueUtc, input.TagLevel FROM @dateTimeExtendedQueryTags input INNER JOIN dbo.ExtendedQueryTag WITH (REPEATABLEREAD) ON dbo.ExtendedQueryTag.TagKey = input.TagKey AND dbo.ExtendedQueryTag.TagStatus <> 2 ) AS S ON T.TagKey = S.TagKey AND T.StudyKey = @studyKey AND ISNULL(T.SeriesKey, @seriesKey) = @seriesKey AND ISNULL(T.InstanceKey, @instanceKey) = @instanceKey WHEN MATCHED THEN -- When index already exist, update only when watermark is newer UPDATE SET T.Watermark = IIF(@watermark > T.Watermark, @watermark, T.Watermark), T.TagValue = IIF(@watermark > T.Watermark, S.TagValue, T.TagValue) WHEN NOT MATCHED THEN INSERT (TagKey, TagValue, StudyKey, SeriesKey, InstanceKey, Watermark, TagValueUtc) VALUES ( S.TagKey, S.TagValue, @studyKey, (CASE WHEN S.TagLevel <> 2 THEN @seriesKey ELSE NULL END), (CASE WHEN S.TagLevel = 0 THEN @instanceKey ELSE NULL END), @watermark, S.TagValueUtc ); END -- PersonName Key tags IF EXISTS (SELECT 1 FROM @personNameExtendedQueryTags) BEGIN MERGE INTO dbo.ExtendedQueryTagPersonName WITH (HOLDLOCK) AS T USING ( SELECT input.TagKey, input.TagValue, input.TagLevel FROM @personNameExtendedQueryTags input INNER JOIN dbo.ExtendedQueryTag WITH (REPEATABLEREAD) ON dbo.ExtendedQueryTag.TagKey = input.TagKey AND dbo.ExtendedQueryTag.TagStatus <> 2 ) AS S ON T.TagKey = S.TagKey AND T.StudyKey = @studyKey AND ISNULL(T.SeriesKey, @seriesKey) = @seriesKey AND ISNULL(T.InstanceKey, @instanceKey) = @instanceKey WHEN MATCHED THEN -- When index already exist, update only when watermark is newer UPDATE SET T.Watermark = IIF(@watermark > T.Watermark, @watermark, T.Watermark), T.TagValue = IIF(@watermark > T.Watermark, S.TagValue, T.TagValue) WHEN NOT MATCHED THEN INSERT (TagKey, TagValue, StudyKey, SeriesKey, InstanceKey, Watermark) VALUES ( S.TagKey, S.TagValue, @studyKey, (CASE WHEN S.TagLevel <> 2 THEN @seriesKey ELSE NULL END), (CASE WHEN S.TagLevel = 0 THEN @instanceKey ELSE NULL END), @watermark ); END COMMIT TRANSACTION END
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_organization -- ---------------------------- DROP TABLE IF EXISTS `sys_organization`; CREATE TABLE `sys_organization` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` bigint(20) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` bigint(20) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `available` bit(1) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `level` bigint(20) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `parent_code` varchar(255) DEFAULT NULL, `parent_path` varchar(255) DEFAULT NULL, `telephone` varchar(255) DEFAULT NULL, `type` enum('机构','部门') DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for sys_permission -- ---------------------------- DROP TABLE IF EXISTS `sys_permission`; CREATE TABLE `sys_permission` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `resource_code` varchar(255) DEFAULT NULL, `role_code` varchar(255) DEFAULT NULL, `created_by` varchar(40) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` varchar(40) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, `resource_id` bigint(20) DEFAULT NULL, `role_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK73ogamir4f5eqt48s14524sdt` (`resource_code`), KEY `FKaoemqa19twbb9o8e5xq6am0c7` (`role_code`), KEY `FKcv8ki936tcaenkg3s8oc8j52n` (`resource_id`), KEY `FKk9ru2110pc5m5ja96jh0dth0j` (`role_id`), CONSTRAINT `FKcv8ki936tcaenkg3s8oc8j52n` FOREIGN KEY (`resource_id`) REFERENCES `sys_resources` (`id`), CONSTRAINT `FKk9ru2110pc5m5ja96jh0dth0j` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=413 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_permission -- ---------------------------- BEGIN; INSERT INTO `sys_permission` VALUES (388, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 3, 1); INSERT INTO `sys_permission` VALUES (389, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 4, 1); INSERT INTO `sys_permission` VALUES (390, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 8, 1); INSERT INTO `sys_permission` VALUES (391, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 9, 1); INSERT INTO `sys_permission` VALUES (392, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 10, 1); INSERT INTO `sys_permission` VALUES (393, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 20, 1); INSERT INTO `sys_permission` VALUES (394, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 21, 1); INSERT INTO `sys_permission` VALUES (395, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 5, 1); INSERT INTO `sys_permission` VALUES (396, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 11, 1); INSERT INTO `sys_permission` VALUES (397, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 12, 1); INSERT INTO `sys_permission` VALUES (398, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 13, 1); INSERT INTO `sys_permission` VALUES (399, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 22, 1); INSERT INTO `sys_permission` VALUES (400, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 23, 1); INSERT INTO `sys_permission` VALUES (401, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 24, 1); INSERT INTO `sys_permission` VALUES (402, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 6, 1); INSERT INTO `sys_permission` VALUES (403, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 14, 1); INSERT INTO `sys_permission` VALUES (404, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 15, 1); INSERT INTO `sys_permission` VALUES (405, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 16, 1); INSERT INTO `sys_permission` VALUES (406, NULL, NULL, 'root', '2018-10-23 23:38:40', 'root', '2018-10-23 23:38:40', 25, 1); COMMIT; -- ---------------------------- -- Table structure for sys_resources -- ---------------------------- DROP TABLE IF EXISTS `sys_resources`; CREATE TABLE `sys_resources` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `available` bit(1) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `permission` varchar(255) DEFAULT NULL, `rank_` bigint(20) DEFAULT NULL, `resource_type` enum('菜单组','菜单','功能','其他') DEFAULT NULL, `theme_json` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `created_by` varchar(20) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` varchar(20) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, `parent_name` varchar(255) DEFAULT NULL, `parent_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKglxcbhp7kn357vaor242fuj8c` (`parent_id`), CONSTRAINT `FKglxcbhp7kn357vaor242fuj8c` FOREIGN KEY (`parent_id`) REFERENCES `sys_resources` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_resources -- ---------------------------- BEGIN; INSERT INTO `sys_resources` VALUES (3, b'1', '权限管理', NULL, 1, '菜单组', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO `sys_resources` VALUES (4, b'1', '用户管理', 'ueboot:user:read', 999, '菜单', NULL, '/ueboot/shiro/User', NULL, NULL, 'root', '2018-09-08 09:55:51', '权限管理', 3); INSERT INTO `sys_resources` VALUES (5, b'1', '角色管理', 'ueboot:role:read', 998, '菜单', NULL, '/ueboot/shiro/Role', NULL, NULL, 'root', '2018-09-08 09:55:58', '权限管理', 3); INSERT INTO `sys_resources` VALUES (6, b'1', '资源管理', 'ueboot:resources:read', 997, '菜单', NULL, '/ueboot/shiro/Resources', NULL, NULL, 'root', '2018-09-08 09:56:05', '权限管理', 3); INSERT INTO `sys_resources` VALUES (8, b'1', '查询', 'ueboot:user:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '用户管理', 4); INSERT INTO `sys_resources` VALUES (9, b'1', '添加与修改', 'ueboot:user:save', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '用户管理', 4); INSERT INTO `sys_resources` VALUES (10, b'1', '删除', 'ueboot:user:delete', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '用户管理', 4); INSERT INTO `sys_resources` VALUES (11, b'1', '查询', 'ueboot:role:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (12, b'1', '添加与修改', 'ueboot:role:save', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (13, b'1', '删除', 'ueboot:role:delete', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (25, b'1', '角色授权', 'ueboot:permission:read,ueboot:permission:save,ueboot:permission:delete', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (14, b'1', '查询', 'ueboot:resources:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '资源管理', 6); INSERT INTO `sys_resources` VALUES (15, b'1', '添加与修改', 'ueboot:resources:save', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '资源管理', 6); INSERT INTO `sys_resources` VALUES (16, b'1', '删除', 'ueboot:resources:delete', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '资源管理', 6); INSERT INTO `sys_resources` VALUES (20, b'1', '角色查询', 'ueboot:role:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '用户管理', 4); INSERT INTO `sys_resources` VALUES (21, b'1', '分配角色', 'ueboot:userRole:save', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '用户管理', 4); INSERT INTO `sys_resources` VALUES (22, b'1', '资源列表查询', 'ueboot:resources:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (23, b'1', '权限查询', 'ueboot:userRole:read', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); INSERT INTO `sys_resources` VALUES (24, b'1', '权限分配', 'ueboot:userRole:save', NULL, '功能', NULL, NULL, NULL, NULL, NULL, NULL, '角色管理', 5); COMMIT; -- ---------------------------- -- Table structure for sys_role -- ---------------------------- DROP TABLE IF EXISTS `sys_role`; CREATE TABLE `sys_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(50) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` varchar(50) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, `available` bit(1) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `org_code` varchar(255) DEFAULT NULL, `role` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_plpigyqwsqfn7mn66npgf9ftp` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_role -- ---------------------------- BEGIN; INSERT INTO `sys_role` VALUES (1, NULL, NULL, NULL, NULL, b'1', NULL, '最高用户权限', '超级管理员', NULL, NULL); COMMIT; -- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(20) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` varchar(20) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, `org_code` varchar(255) DEFAULT NULL, `password` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `credential_expired_date` datetime DEFAULT NULL, `is_locked` bit(1) DEFAULT NULL, `role_names` varchar(255) DEFAULT NULL, `role_ids` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; alter table sys_user add valid bit default 1 null comment '是否有效'; -- ---------------------------- -- Records of sys_user -- 默认用户名:root 密码:111111 -- ---------------------------- BEGIN; INSERT INTO `sys_user` VALUES (1, NULL, NULL, 'root', '2018-10-13 23:50:51', NULL, 'd71e762f824bd6f39c505fa6804a3a20f3dc7e2fd8b4a0a5691bfd5326c061e2d84a0ee306a864955599f92c03840c5db3706a21484e8a0ee35539951e1f042b', 'root', '2099-03-30 14:18:21', b'0', '超级管理员', '1,2,',b'1'); COMMIT; -- ---------------------------- -- Table structure for sys_user_role -- ---------------------------- DROP TABLE IF EXISTS `sys_user_role`; CREATE TABLE `sys_user_role` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `role_id` bigint(20) DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL, `created_by` varchar(255) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `last_modified_by` varchar(255) DEFAULT NULL, `last_modified_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKhh52n8vd4ny9ff4x9fb8v65qx` (`role_id`), KEY `FKb40xxfch70f5qnyfw8yme1n1s` (`user_id`), CONSTRAINT `FKb40xxfch70f5qnyfw8yme1n1s` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`id`), CONSTRAINT `FKhh52n8vd4ny9ff4x9fb8v65qx` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_user_role -- ---------------------------- BEGIN; INSERT INTO `sys_user_role` VALUES (33, 1, 1, 'root', '2018-10-13 23:50:51', 'root', '2018-10-13 23:50:51'); COMMIT; SET FOREIGN_KEY_CHECKS = 1;
the_stack
set enable_opfusion=on; set enable_partition_opfusion=on; set enable_bitmapscan=off; set enable_seqscan=off; set opfusion_debug_mode = 'log'; set log_min_messages=debug; set logging_module = 'on(OPFUSION)'; set sql_beta_feature = 'index_cost_with_leaf_pages_only'; --create table drop table if exists test_bypass_sql_partition; create table test_bypass_sql_partition(col1 int, col2 int, col3 text) partition by range (col1) ( partition test_bypass_sql_partition_1 values less than(10), partition test_bypass_sql_partition_2 values less than(20), partition test_bypass_sql_partition_3 values less than(30), partition test_bypass_sql_partition_4 values less than(40), partition test_bypass_sql_partition_5 values less than(50), partition test_bypass_sql_partition_6 values less than(60), partition test_bypass_sql_partition_7 values less than(70), partition test_bypass_sql_partition_8 values less than(80) ); create index itest_bypass_sql_partition on test_bypass_sql_partition(col1,col2) local; insert into test_bypass_sql_partition select generate_series(0,79,1), generate_series(0,100,10), repeat('a',7); prepare p11 as insert into test_bypass_sql_partition values($1,$2,$3); prepare p12 as insert into test_bypass_sql_partition(col1,col2) values ($1,$2); explain execute p11(0,0,'test_insert'); execute p11(10,10,'test_insert'); execute p11(12,12,'test_insert'); execute p11(-1,-1,'test_insert2'); execute p11(23,23,'test_insert2'); execute p11(33,33,'test_insert3'); execute p11(0,0,'test_insert3'); explain execute p12(1,1); execute p12(1,1); execute p12(22,22); execute p12(20,20); --nobypass execute p11(null,null,null); prepare p_insert1 as insert into test_bypass_sql_partition values(0,generate_series(1,100),'test'); execute p_insert1; --bypass prepare p13 as select * from test_bypass_sql_partition where col1=$1 and col2=$2; explain execute p13(0,0); execute p13(0,0); execute p13(10,0); execute p13(20,0); execute p13(30,0); execute p13(40,0); set enable_indexonlyscan=off; explain execute p13(0,0); execute p13(0,0); reset enable_indexonlyscan; prepare p15 as update test_bypass_sql_partition set col2=col2+$4,col3=$3 where col1=$1 and col2=$2; explain execute p15 (0,0,'test_update',-1); execute p15 (0,0,'test_update',-1); prepare p16 as update test_bypass_sql_partition set col2=mod($1,$2) where col1=$3 and col2=$4; explain execute p16(5,3,1,1); execute p16(5,3,1,1); prepare p101 as update test_bypass_sql_partition set col2=$1,col3=$2 where col1=$3 ; execute p101 (111,'test_update2',-1); prepare p102 as select * from test_bypass_sql_partition where col1=$1; execute p102 (1); prepare p1011 as insert into test_bypass_sql_partition values(-3,-3,'test_pbe'); prepare p1013 as update test_bypass_sql_partition set col2=10 where col1=-3; prepare p1012 as select * from test_bypass_sql_partition where col1=-3; prepare p1014 as select * from test_bypass_sql_partition where col1=-3 for update; prepare p1015 as delete from test_bypass_sql_partition where col1=-3; explain execute p1011; execute p1011; explain execute p1012; execute p1012; explain execute p1013; execute p1013; explain execute p1014; execute p1014; prepare p10141 as select col1,col2 from test_bypass_sql_partition where col1=-3 for update; explain execute p10141; execute p10141; prepare p1021 as select * from test_bypass_sql_partition where col1=$1 limit 1; explain execute p1021(1); execute p1021(1); --bypass through index only scan prepare p10211 as select col1,col2 from test_bypass_sql_partition where col1=$1 limit 1; explain execute p10211(1); execute p10211(1); prepare p10212 as select col1,col2 from test_bypass_sql_partition where col1=$1 offset 1; explain execute p10212(1); execute p10212(1); prepare p10213 as select col1,col2 from test_bypass_sql_partition where col1=$1 limit 1 offset null; explain execute p10213(1); execute p10213(1); prepare p10214 as select col1,col2 from test_bypass_sql_partition where col1=$1 limit null offset null; explain execute p10214(1); execute p10214(1); prepare p1024 as select * from test_bypass_sql_partition where col1=0 order by col1 for update limit 1; prepare p1025 as select * from test_bypass_sql_partition where col1=$1 for update limit 1; execute p1024; execute p1025(1); prepare p104 as select * from test_bypass_sql_partition where col1=$1 order by col1; execute p104 (3); prepare p1052 as select col1,col2 from test_bypass_sql_partition where col1=$1 order by col1 for update limit 2; execute p1052(2); prepare p10601 as select col1,col2 from test_bypass_sql_partition where col1>$1 and col1<$2 and col2>$3 order by col1; execute p10601 (0,10,1); --nobypass prepare p1020 as select * from test_bypass_sql_partition where col1>0 order by col1 limit 1; execute p1020; prepare p10200 as select col1,col2 from test_bypass_sql_partition where col1>0 order by col1 limit 1; explain execute p10200; execute p10200; prepare p1022 as select * from test_bypass_sql_partition where col1=$1 limit $2; explain execute p1022(0,3); execute p1022(0,3); explain execute p1022(0,null); execute p1022(0,null); prepare p1023 as select * from test_bypass_sql_partition where col1=$1 limit $2 offset $3; explain execute p1023(0,3,2); execute p1023(0,3,2); prepare p1026 as select * from test_bypass_sql_partition where col1=$1 for update limit $2; prepare p1027 as select * from test_bypass_sql_partition where col1=$1 for update limit $2 offset $3; explain execute p1026(0,3); execute p1026(0,3); explain execute p1027(0,3,2); execute p1027(0,3,2); prepare p103 as select col1,col2 from test_bypass_sql_partition where col2=$1 order by col1; execute p103 (2); prepare p105 as select col1,col2 from test_bypass_sql_partition where col1<$1 order by col1 limit 2; execute p105 (5); prepare p1051 as select col1,col2 from test_bypass_sql_partition where col1<$1 and col1>$2 order by col1 limit 3; execute p1051(5,3); prepare p106 as select col1,col2 from test_bypass_sql_partition where col1>$1 and col2>$2 order by col1 limit 3; execute p106 (0,1); --bypass prepare p17 as select * from test_bypass_sql_partition where col1=$1 and col2=$2 for update; execute p17 (3,3); prepare p18 as update test_bypass_sql_partition set col2=$1*$2 where col1=$3 and col2=$4; explain execute p18(3,7,3,3); execute p18(3,7,3,3); prepare p111 as select col1,col2 from test_bypass_sql_partition where col1>10 and col1<20 order by col1 desc; execute p111; prepare p112 as select col1,col2 from test_bypass_sql_partition where col1>10 and col1<20 order by col1 limit 10; execute p112; --nobypass prepare p181 as update test_bypass_sql_partition set col2= $1 where col1 is null; explain execute p181(111); execute p181(111); prepare p191 as select * from test_bypass_sql_partition where col1 is null and col2 is null; prepare p192 as delete from test_bypass_sql_partition where col1 is null and col2 is null; execute p191; execute p192; --error execute p11(null,null,'test_null'); --bypass through index only scan prepare p11301 as select col1,col2 from test_bypass_sql_partition where col1 = $1 order by col1,col2 desc; explain execute p11301 (2); execute p11301 (2); prepare p11401 as select col1,col2 from test_bypass_sql_partition where col1 = $1 order by col1,col2; explain execute p11401 (2); execute p11401 (2); set enable_indexonlyscan=off; explain execute p11301 (2); execute p11401 (2); reset enable_indexonlyscan; --nobypass prepare p120 as insert into test_bypass_sql_partition select * from test_bypass_sql_partition where col1>$1 and col1<$2; execute p120 (0, 9); --not bypass prepare p115 as select * from test_bypass_sql_partition order by col2 desc; explain execute p115; execute p115; prepare p116 as select * from test_bypass_sql_partition order by col2; explain execute p116; execute p116; prepare p117 as select col1, col2 from test_bypass_sql_partition where true order by col1 limit 10; prepare p118 as select col2, col1 from test_bypass_sql_partition order by col1 limit 10; prepare p119 as select col1, col2 from test_bypass_sql_partition order by col1 desc limit 10; execute p117; execute p118; execute p119; --bypass prepare p_select1 as select * from test_bypass_sql_partition where col1 = $1 limit 10; execute p_select1(0); prepare p_select2 as select * from test_bypass_sql_partition where col1 = $1 limit 10 for update; execute p_select2(0); --nobypass prepare p_select3 as select col1, col2 from test_bypass_sql_partition limit 10; execute p_select3; prepare p_select4 as select col1, col2 from test_bypass_sql_partition where col1 < $1 and col1 > $2 limit 10; execute p_select4(20,10); prepare p_select5 as select col1, col2 from test_bypass_sql_partition where col1 <= $1 and col1 >=$2 limit 10; execute p_select5(11,15); --bypass prepare p_update1 as update test_bypass_sql_partition set col3=$1 where col1=$2; execute p_update1(1, 10); prepare p_update2 as update test_bypass_sql_partition set col3=$1,col2=col1-$2 where col1=$3; execute p_update2('test_null',1,1); --nobypass update test_bypass_sql_partition set col3='test_null' where col1 < 70; update test_bypass_sql_partition set col3='test_null' where true; update test_bypass_sql_partition set col1 = 1 where col1 > 1 and col1 < 10; prepare p_update3 as update test_bypass_sql_partition set col1 = $1 where col1 > $2 and col1 < $3; execute p_update3(1,1,10); prepare p_update4 as update test_bypass_sql_partition set col3=$1,col2=mod(5,3) where col1 > $2 and col1 < $3; execute p_update4('test_null',11,15); prepare p_update5 as update test_bypass_sql_partition set col3=$1,col2=col1-1 where col1 >= $2 and col1 <= $3; execute p_update5('test_null',1,10); --bypass prepare p_delete1 as delete from test_bypass_sql_partition where col1=$1; execute p_delete1 (1); --nobypass prepare p_delete3 as delete from test_bypass_sql_partition where col1 > $1 and col1 < $2; execute p_delete3(1,10); prepare p_delete4 as delete from test_bypass_sql_partition where col1 <= $1 and col1 >= $2; execute p_delete4(1,10); prepare p_delete2 as delete from test_bypass_sql_partition where true; execute p_delete2; reset enable_partition_opfusion; drop table test_bypass_sql_partition;
the_stack
-- 2017-07-26T19:14:40.803 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541426 ; -- 2017-07-26T19:15:08.586 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy,WidgetSize) VALUES (0,10441,0,661,540101,547177,TO_TIMESTAMP('2017-07-26 19:15:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',50,0,0,TO_TIMESTAMP('2017-07-26 19:15:08','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2017-07-26T19:15:19.920 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-26 19:15:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547177 ; -- 2017-07-26T19:15:27.320 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2017-07-26 19:15:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541468 ; -- 2017-07-26T19:15:39.169 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541469 ; -- 2017-07-26T19:15:44.457 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Nr.',Updated=TO_TIMESTAMP('2017-07-26 19:15:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541470 ; -- 2017-07-26T19:15:49.725 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541470 ; -- 2017-07-26T19:16:07.484 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541463 ; -- 2017-07-26T19:16:24.871 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540072,540958,TO_TIMESTAMP('2017-07-26 19:16:24','YYYY-MM-DD HH24:MI:SS'),100,'Y','doc',5,TO_TIMESTAMP('2017-07-26 19:16:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:21:07.261 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10438,0,661,540958,547178,TO_TIMESTAMP('2017-07-26 19:21:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Nr.',10,0,0,TO_TIMESTAMP('2017-07-26 19:21:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:21:28.911 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10425,0,661,540958,547179,TO_TIMESTAMP('2017-07-26 19:21:28','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Datum',20,0,0,TO_TIMESTAMP('2017-07-26 19:21:28','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:22:33.990 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541459 ; -- 2017-07-26T19:22:38.408 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541460 ; -- 2017-07-26T19:23:02.020 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10432,0,661,540097,547180,TO_TIMESTAMP('2017-07-26 19:23:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Buchungsdatum',170,0,0,TO_TIMESTAMP('2017-07-26 19:23:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:23:09.561 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Storno Beleg',Updated=TO_TIMESTAMP('2017-07-26 19:23:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541441 ; -- 2017-07-26T19:23:40.657 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-07-26 19:23:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547180 ; -- 2017-07-26T19:23:55.490 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET Name='advanced edit', UIStyle='primary',Updated=TO_TIMESTAMP('2017-07-26 19:23:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540097 ; -- 2017-07-26T19:25:42.063 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547178 ; -- 2017-07-26T19:25:42.068 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547179 ; -- 2017-07-26T19:25:42.072 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541464 ; -- 2017-07-26T19:25:42.077 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541471 ; -- 2017-07-26T19:25:42.081 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541466 ; -- 2017-07-26T19:25:42.085 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541468 ; -- 2017-07-26T19:25:42.087 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-07-26 19:25:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541467 ; -- 2017-07-26T19:26:18.229 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,661,540402,TO_TIMESTAMP('2017-07-26 19:26:17','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-07-26 19:26:17','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit') ; -- 2017-07-26T19:26:18.233 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540402 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-07-26T19:26:21.236 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540541,540402,TO_TIMESTAMP('2017-07-26 19:26:21','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-07-26 19:26:21','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:26:37.814 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET AD_UI_Column_ID=540541, SeqNo=10,Updated=TO_TIMESTAMP('2017-07-26 19:26:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540097 ; -- 2017-07-26T19:26:53.650 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-07-26 19:26:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541458 ; -- 2017-07-26T19:26:58.106 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-07-26 19:26:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541462 ; -- 2017-07-26T19:27:35.973 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-07-26 19:27:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547178 ; -- 2017-07-26T19:27:39.636 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-07-26 19:27:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547179 ; -- 2017-07-26T19:39:21.099 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nr.',Updated=TO_TIMESTAMP('2017-07-26 19:39:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10438 ; -- 2017-07-26T19:39:30.243 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Datum',Updated=TO_TIMESTAMP('2017-07-26 19:39:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10425 ; -- 2017-07-26T19:41:24.661 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10437,0,661,540958,547181,TO_TIMESTAMP('2017-07-26 19:41:24','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Freigegeben',30,0,0,TO_TIMESTAMP('2017-07-26 19:41:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:41:48.200 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10435,0,661,540958,547182,TO_TIMESTAMP('2017-07-26 19:41:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Manuell',40,0,0,TO_TIMESTAMP('2017-07-26 19:41:48','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:42:02.788 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,10426,0,661,540958,547183,TO_TIMESTAMP('2017-07-26 19:42:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Verarbeitet',50,0,0,TO_TIMESTAMP('2017-07-26 19:42:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-07-26T19:42:15.203 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541464 ; -- 2017-07-26T19:42:15.222 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541465 ; -- 2017-07-26T19:42:15.232 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541466 ; -- 2017-07-26T19:42:15.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541471 ; -- 2017-07-26T19:42:19.358 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540100 ; -- 2017-07-26T19:42:23.573 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-26 19:42:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540958 ; -- 2017-07-26T19:42:45.604 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-07-26 19:42:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547181 ; -- 2017-07-26T19:42:45.610 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-07-26 19:42:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547183 ; -- 2017-07-26T19:42:45.613 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-07-26 19:42:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547182 ; -- 2017-07-26T19:43:10.055 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Betrag',Updated=TO_TIMESTAMP('2017-07-26 19:43:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10440 ; -- 2017-07-26T19:55:17.609 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Abschreibung',Updated=TO_TIMESTAMP('2017-07-26 19:55:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4380 ; -- 2017-07-26T19:55:42.792 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Über-/Unterzahlung',Updated=TO_TIMESTAMP('2017-07-26 19:55:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8931 ; -- 2017-07-26T19:56:20.806 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Kassenbuch Zeile',Updated=TO_TIMESTAMP('2017-07-26 19:56:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4371 ; -- 2017-07-26T19:56:41.262 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Datum',Updated=TO_TIMESTAMP('2017-07-26 19:56:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4387 ; -- 2017-07-26T19:57:01.556 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-26 19:57:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541445 ; -- 2017-07-26T19:57:04.131 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-26 19:57:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541451 ; -- 2017-07-26T19:57:06.772 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-26 19:57:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541450 ; -- 2017-07-26T19:57:09.583 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-07-26 19:57:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541452 ; -- 2017-07-26T19:57:11.839 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-07-26 19:57:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541454 ; -- 2017-07-26T19:57:13.871 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-07-26 19:57:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541453 ; -- 2017-07-26T19:57:16.239 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-07-26 19:57:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541449 ; -- 2017-07-26T19:57:18.682 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-07-26 19:57:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541447 ; -- 2017-07-26T19:57:20.910 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-07-26 19:57:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541446 ; -- 2017-07-26T19:57:24.460 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-07-26 19:57:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541443 ; -- 2017-07-26T19:57:48.078 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-07-26 19:57:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541444 ; -- 2017-07-26T19:58:02.381 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2017-07-26 19:58:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541444 ; -- 2017-07-26T19:58:06.708 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-07-26 19:58:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541442 ; -- 2017-07-26T19:58:12.100 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-07-26 19:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541448 ; -- 2017-07-26T19:58:19.580 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-07-26 19:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541457 ; -- 2017-07-26T19:58:22.677 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-07-26 19:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541455 ; -- 2017-07-26T19:58:26.079 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2017-07-26 19:58:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541456 ; -- 2017-07-26T19:58:33.530 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-07-26 19:58:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540098 ;
the_stack
-- 1. column partitioned table CREATE TABLE hw_cstore_alter1_t3 (a int, b int, c decimal(20, 0) ) with (orientation = column) PARTITION BY RANGE(a)( PARTITION p1 values less than (10), PARTITION p2 values less than (20), PARTITION p3 values less than (30) ); INSERT INTO hw_cstore_alter1_t3 VALUES (1, 2, 20), (12, 22, 40), (24, 55, 100); ALTER TABLE hw_cstore_alter1_t3 RENAME a TO a1; -- ok SELECT a1 FROM hw_cstore_alter1_t3 ORDER BY 1; ALTER TABLE hw_cstore_alter1_t3 RENAME COLUMN b TO b1; -- ok SELECT b1 FROM hw_cstore_alter1_t3 ORDER BY 1; ALTER TABLE hw_cstore_alter1_t3 RENAME c TO a1; -- failed, name conflicts ALTER TABLE hw_cstore_alter1_t3 RENAME c TO xmin; -- failed, conflict with system column name SELECT c FROM hw_cstore_alter1_t3 ORDER BY 1; ALTER TABLE hw_cstore_alter1_t3 RENAME c TO abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234; -- ok , but truncate SELECT * FROM hw_cstore_alter1_t3 ORDER BY a1; ALTER TABLE hw_cstore_alter1_t3 RENAME abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234 TO c; -- ok -- 1.1 column partitioned index CREATE INDEX idx_hw_cstore_alter1_t3 ON hw_cstore_alter1_t3(b1) LOCAL; ALTER INDEX idx_hw_cstore_alter1_t3 RENAME TO idx1_hw_cstore_alter1_t3; -- ok select count(1) from pg_class where relname = 'idx1_hw_cstore_alter1_t3'; -- 2. column partition ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION p1 TO p2; -- failed, name conflicts ALTER TABLE IF EXISTS hw_cstore_alter1_t3 RENAME PARTITION p1 TO p2; -- failed, name conflicts ALTER TABLE IF EXISTS hw_cstore_alter1_t3 RENAME PARTITION FOR (5) TO p2; -- failed, name conflicts ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION FOR (5) TO p2; -- failed, name conflicts ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION FOR (5) TO p4; -- ok ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION p4 TO p5; -- ok ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION p6 TO p7; -- failed, partition not exist ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION FOR (100) TO p7; -- failed, partition not exist ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION p2 TO pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234; -- ok but truncate SELECT * FROM hw_cstore_alter1_t3 PARTITION (pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij12) ORDER BY 1; -- ok SELECT * FROM hw_cstore_alter1_t3 PARTITION (pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234) ORDER BY 1; -- ok but truncate ALTER TABLE hw_cstore_alter1_t3 RENAME PARTITION pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234 TO pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234; -- failed -- 2.1 index partition \d+ hw_cstore_alter1_t3 ALTER INDEX idx1_hw_cstore_alter1_t3 RENAME PARTITION p1_b1_idx TO p2_b1_idx; -- failed, name conflicts ALTER INDEX IF EXISTS idx1_hw_cstore_alter1_t3 RENAME PARTITION p7_b1_idx TO p1_b1_idx; -- failed, not found ALTER INDEX idx1_hw_cstore_alter1_t3 RENAME PARTITION p1_b1_idx TO pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234; -- ok, but truncate ALTER INDEX idx1_hw_cstore_alter1_t3 RENAME PARTITION pabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij1234 TO p1_b1_idx; -- ok DROP TABLE hw_cstore_alter1_t3; -- 3. update view on partition create table hw_cstore_alter_t4(id int) partition by range(id) ( partition p1 values less than(5), partition p2 values less than(10) ); INSERT INTO hw_cstore_alter_t4 values(1), (2), (3), (4); -- 3.1 partiton name create view v1_hw_cstore_alter_t4 as select id from hw_cstore_alter_t4 partition(p1); \d+ v1_hw_cstore_alter_t4 alter table hw_cstore_alter_t4 rename partition p1 to pp1; \d+ v1_hw_cstore_alter_t4 SELECT COUNT(*) FROM v1_hw_cstore_alter_t4; -- 3.2 partition for (values list) create view v2_hw_cstore_alter_t4 as select id from hw_cstore_alter_t4 partition FOR (8); \d+ v2_hw_cstore_alter_t4 alter table hw_cstore_alter_t4 rename partition p2 TO pp2; \d+ v2_hw_cstore_alter_t4 SELECT COUNT(*) FROM v2_hw_cstore_alter_t4; DROP TABLE hw_cstore_alter_t4 cascade; -- 3.10 column table create table hw_cstore_alter_t5(id int) with (orientation = column) partition by range(id) ( partition p1 values less than(5), partition p2 values less than(10) ); INSERT INTO hw_cstore_alter_t5 values(1), (2), (3), (4); -- 3.10.1 partition name create view v1_hw_cstore_alter_t5 as select id from hw_cstore_alter_t5 partition(p1); \d+ v1_hw_cstore_alter_t5 alter table hw_cstore_alter_t5 rename partition p1 to pp1; \d+ v1_hw_cstore_alter_t5 SELECT COUNT(*) FROM v1_hw_cstore_alter_t5; -- 3.10.2 partition for (values list) create view v2_hw_cstore_alter_t5 as select id from hw_cstore_alter_t5 partition FOR (8); \d+ v2_hw_cstore_alter_t5 alter table hw_cstore_alter_t5 rename partition p2 TO pp2; \d+ v2_hw_cstore_alter_t5 SELECT COUNT(*) FROM v2_hw_cstore_alter_t5; DROP TABLE hw_cstore_alter_t5 cascade; -- 4. alter table column set/reset attribute_option CREATE TABLE hw_cstore_alter_t6 (a int, b int, c int); ALTER TABLE hw_cstore_alter_t6 ALTER COLUMN a SET (n_distinct_inherited = 7); ALTER TABLE hw_cstore_alter_t6 ALTER COLUMN a RESET (n_distinct_inherited); ALTER TABLE hw_cstore_alter_t6 ALTER COLUMN a SET (n_distinct = 7); ALTER TABLE hw_cstore_alter_t6 ALTER COLUMN a RESET (n_distinct); ALTER TABLE hw_cstore_alter_t6 ALTER COLUMN a RESET (n_distinct, n_distinct_inherited); DROP TABLE hw_cstore_alter_t6; CREATE TABLE hw_cstore_alter_t7 (a int, b int, c int) with (internal_mask = 1024); -- failed CREATE TABLE hw_cstore_alter_t7 (a int, b int, c int) WITH (orientation = column); ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET (n_distinct_inherited = 7); -- failed ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a RESET (n_distinct_inherited); -- failed ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET (n_distinct = 7); ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a RESET (n_distinct); ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a RESET (n_distinct, n_distinct_inherited); -- failed \d+ hw_cstore_alter_t7 -- 4.1 change storage type ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET STORAGE PLAIN; -- failed ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET STORAGE EXTERNAL; -- failed ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET STORAGE EXTENDED; -- failed ALTER TABLE hw_cstore_alter_t7 ALTER COLUMN a SET STORAGE MAIN; -- failed -- 4.2 set with/without oids ALTER TABLE hw_cstore_alter_t7 SET WITH OIDS; -- failed ALTER TABLE hw_cstore_alter_t7 SET WITHOUT OIDS; -- failed -- 4.3 SET/RESET relation options -- 4.3.1 column table ALTER TABLE hw_cstore_alter_t7 SET (ORIENTATION = ROW); -- failed ALTER TABLE hw_cstore_alter_t7 RESET (ORIENTATION); -- failed ALTER TABLE hw_cstore_alter_t7 SET (internal_mask = 0); -- failed ALTER TABLE hw_cstore_alter_t7 RESET (internal_mask); -- failed ALTER TABLE hw_cstore_alter_t7 SET (FILLFACTOR = 70); -- failed ALTER TABLE hw_cstore_alter_t7 RESET (FILLFACTOR); -- failed ALTER TABLE hw_cstore_alter_t7 SET (autovacuum_enabled = true); -- ok ALTER TABLE hw_cstore_alter_t7 RESET (autovacuum_enabled); -- ok ALTER TABLE hw_cstore_alter_t7 SET (security_barrier); -- failed ALTER TABLE hw_cstore_alter_t7 RESET (security_barrier); -- failed \d+ hw_cstore_alter_t7 -- 4.3.2 psort table CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (compression = 'low'); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (fillfactor = 100); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (autovacuum_enabled = true); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (security_barrier = on); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (internal_mask = 0); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (orientation = column); -- failed CREATE INDEX idx1_hw_cstore_alter_t7 ON hw_cstore_alter_t7(b) with (max_batchrow = 60000, deltarow_threshold = 9999, partial_cluster_rows = 600000); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 SET (ORIENTATION = ROW); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (ORIENTATION); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 SET (compression = 'yes'); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (compression); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 SET (internal_mask = 0); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (internal_mask); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 SET (max_batchrow = 60000); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 RESET (max_batchrow); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 SET (deltarow_threshold = 5000); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 RESET (deltarow_threshold); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 SET (partial_cluster_rows = 700000); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 RESET (partial_cluster_rows); -- ok ALTER INDEX idx1_hw_cstore_alter_t7 SET (security_barrier = false); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (security_barrier); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 SET (FILLFACTOR = 70); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (FILLFACTOR); -- failed ALTER TABLE idx1_hw_cstore_alter_t7 SET (autovacuum_enabled = true); -- failed ALTER INDEX idx1_hw_cstore_alter_t7 RESET (autovacuum_enabled); -- failed DROP INDEX idx1_hw_cstore_alter_t7; DROP TABLE hw_cstore_alter_t7; -- 4.3.3 row table CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (compression = 'high'); -- failed CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (max_batchrow = 60000); -- failed CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (deltarow_threshold = 9999); -- failed CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (partial_cluster_rows = 600000); -- failed CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (internal_mask = 1024); -- failed CREATE TABLE hw_cstore_alter_t8(a int , b int , c int ) with (compression = 'no', fillfactor=70); -- ok ALTER TABLE hw_cstore_alter_t8 SET (compression = 'yes'); -- ok ALTER TABLE hw_cstore_alter_t8 SET (compression = 'no'); -- ok ALTER TABLE hw_cstore_alter_t8 SET (compression = 'low'); -- failed ALTER TABLE hw_cstore_alter_t8 SET (compression = 'middle'); -- failed ALTER TABLE hw_cstore_alter_t8 SET (compression = 'high'); -- failed \d+ hw_cstore_alter_t8 ALTER TABLE hw_cstore_alter_t8 RESET (compression); -- ok \d+ hw_cstore_alter_t8 ALTER TABLE hw_cstore_alter_t8 SET (max_batchrow = 10000); -- failed ALTER TABLE hw_cstore_alter_t8 RESET (max_batchrow); -- failed ALTER TABLE hw_cstore_alter_t8 SET (deltarow_threshold = 9999); -- failed ALTER TABLE hw_cstore_alter_t8 RESET (deltarow_threshold); -- failed ALTER TABLE hw_cstore_alter_t8 SET (partial_cluster_rows = 600000); -- failed ALTER TABLE hw_cstore_alter_t8 RESET (partial_cluster_rows); -- failed ALTER TABLE hw_cstore_alter_t8 SET (ORIENTATION = COLUMN); -- failed ALTER TABLE hw_cstore_alter_t8 SET (ORIENTATION = ROW); -- failed ALTER TABLE hw_cstore_alter_t8 RESET (ORIENTATION); -- failed ALTER TABLE hw_cstore_alter_t8 SET (internal_mask = 0); -- failed ALTER TABLE hw_cstore_alter_t8 RESET (internal_mask); -- failed DROP TABLE hw_cstore_alter_t8; CREATE TABLE hw_cstore_alter_t9(a int , b int , c int ); -- ok DROP TABLE hw_cstore_alter_t9; CREATE TABLE hw_cstore_alter_t9(a int , b int , c int ) with ( orientation = row ); -- ok -- 4.3.3.1 bree index CREATE INDEX idx1_hw_cstore_alter_t9 ON hw_cstore_alter_t9(b); -- ok ALTER INDEX idx1_hw_cstore_alter_t9 SET (fillfactor = 70); -- ok ALTER INDEX idx1_hw_cstore_alter_t9 RESET (fillfactor); -- ok ALTER INDEX idx1_hw_cstore_alter_t9 SET (compression = 'yes'); -- failed, unsupported ALTER INDEX idx1_hw_cstore_alter_t9 RESET (compression); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (autovacuum_enabled = true); -- failed, unsupported ALTER INDEX idx1_hw_cstore_alter_t9 RESET (autovacuum_enabled); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (security_barrier = true); -- failed, unsupported ALTER INDEX idx1_hw_cstore_alter_t9 RESET (security_barrier); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (max_batchrow=10000); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 RESET (max_batchrow); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (orientation = column); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 RESET (orientation); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (internal_mask = 0); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 RESET (internal_mask); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 SET (partial_cluster_rows = 600000); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 RESET (partial_cluster_rows); -- ok, ignore it ALTER INDEX idx1_hw_cstore_alter_t9 SET (deltarow_threshold = 5000); -- failed ALTER INDEX idx1_hw_cstore_alter_t9 RESET (deltarow_threshold); -- ok, ignore it \d+ idx1_hw_cstore_alter_t9 DROP INDEX idx1_hw_cstore_alter_t9; drop TABLE hw_cstore_alter_t9;
the_stack
-- This CLP file was created using DB2LOOK Version 8.2 -- Timestamp: 10/04/2004 06:10:49 PM -- Database Name: GHTDB -- Database Manager Version: DB2/NT Version 8.2.0 -- Database Codepage: 1208 -- Database Collating Sequence is: BINARY DROP DATABASE GHTDB; create database ghtdb USING CODESET UTF8 TERRITORY US; CONNECT TO GHTDB; --Create temp tablespace create user temporary tablespace ght_tempspace managed by system using ('GHT_TEMPSPACE'); -- Mimic tablespace ALTER TABLESPACE SYSCATSPACE PREFETCHSIZE 16 OVERHEAD 24.100000 TRANSFERRATE 0.900000; ALTER TABLESPACE TEMPSPACE1 PREFETCHSIZE 16 OVERHEAD 24.100000 TRANSFERRATE 0.900000; ALTER TABLESPACE USERSPACE1 PREFETCHSIZE 16 OVERHEAD 24.100000 TRANSFERRATE 0.900000; --------------------------------- -- DDL Statements for distinct types and/or Abstract Data Types --------------------------------- CREATE DISTINCT TYPE "DB2ADMIN"."BIGINT1" AS "SYSIBM ".DECIMAL(19) WITH COMPARISONS; ------------------------------------------------ -- DDL Statements for types tables ------------------------------------------------ CREATE TABLE "DB2ADMIN"."TYPES_SIMPLE" ( "ID" CHAR(10) , "T_SMALLINT" SMALLINT , "T_INTEGER" INTEGER , "T_BIGINT" BIGINT , "T_DECIMAL" DECIMAL(5,0) , "T_REAL" REAL , "T_DOUBLE" DOUBLE , "T_CHARACTER" CHAR(10) , "T_VARCHAR" VARCHAR(10) , "T_LONGVARCHAR" LONG VARCHAR ) IN "USERSPACE1" ; CREATE TABLE "DB2ADMIN"."TYPES_EXTENDED" ( "ID" CHAR(10) , "T_DATE" DATE , "T_TIME" TIME , "T_TIMESTAMP" TIMESTAMP , "T_BLOB" BLOB(1048576) LOGGED COMPACT , "T_CLOB" CLOB(1048576) LOGGED COMPACT , "T_DBCLOB" DBCLOB(1048576) LOGGED COMPACT ) IN "USERSPACE1" ; CREATE TABLE "DB2ADMIN"."TYPES_SPECIFIC" ( "ID" CHAR(10) , "T_GRAPHIC" GRAPHIC(10) , "T_VARGRAPHIC" VARGRAPHIC(10) , "T_LONGVARGRAPHIC" LONG VARGRAPHIC ) IN "USERSPACE1" ; ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."CATEGORIES" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."CATEGORIES" ( "CATEGORYID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "CATEGORYNAME" VARCHAR(15) NOT NULL , "DESCRIPTION" DBCLOB(1073741823) NOT LOGGED NOT COMPACT ) IN "USERSPACE1" ; CREATE TABLE "MAINSOFT"."CATEGORIESNEW" ( "CATEGORYID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "CATEGORYNAME" VARCHAR(15) NOT NULL , "DESCRIPTION" DBCLOB(1073741823) NOT LOGGED NOT COMPACT ) IN "USERSPACE1" ; CREATE TABLE "MAINSOFT"."CATEGORIES" ( "CATEGORYID" VARCHAR(10) NOT NULL , "CATEGORYNAME" VARCHAR(15) NOT NULL , "DESCRIPTION" DBCLOB(1073741823) NOT LOGGED NOT COMPACT) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."CATEGORIES" CREATE INDEX "DB2ADMIN"."CATEGORYNAME" ON "DB2ADMIN"."CATEGORIES" ("CATEGORYNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CATEGORIES" CREATE INDEX "DB2ADMIN"."PK_CATEGORIES" ON "DB2ADMIN"."CATEGORIES" ("CATEGORYID" ASC) CLUSTER ; -- DDL Statements for primary key on Table "DB2ADMIN"."CATEGORIES" ALTER TABLE "DB2ADMIN"."CATEGORIES" ADD CONSTRAINT "SQL040118121530460" PRIMARY KEY ("CATEGORYID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ( "CUSTOMERID" CHAR(5) NOT NULL , "CUSTOMERTYPEID" CHAR(10) NOT NULL ) IN "USERSPACE1" ; -- DDL Statements for primary key on Table "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ALTER TABLE "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ADD CONSTRAINT "PK_CUSTOMERCUSTOME" PRIMARY KEY ("CUSTOMERID", "CUSTOMERTYPEID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."CUSTOMERDEMOGRAPHICS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."CUSTOMERDEMOGRAPHICS" ( "CUSTOMERTYPEID" CHAR(10) NOT NULL , "CUSTOMERDESC" DBCLOB(1073741823) NOT LOGGED NOT COMPACT ) IN "USERSPACE1" ; -- DDL Statements for primary key on Table "DB2ADMIN"."CUSTOMERDEMOGRAPHICS" ALTER TABLE "DB2ADMIN"."CUSTOMERDEMOGRAPHICS" ADD CONSTRAINT "PK_CUSTOMERDEMOGRA" PRIMARY KEY ("CUSTOMERTYPEID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."CUSTOMERS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."CUSTOMERS" ( "CUSTOMERID" CHAR(5) NOT NULL , "COMPANYNAME" VARCHAR(40) NOT NULL , "CONTACTNAME" VARCHAR(30) , "CONTACTTITLE" VARCHAR(30) , "ADDRESS" VARCHAR(60) , "CITY" VARCHAR(15) , "REGION" VARCHAR(15) , "POSTALCODE" VARCHAR(10) , "COUNTRY" VARCHAR(15) , "PHONE" VARCHAR(24) , "FAX" VARCHAR(24) ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."CITY" ON "DB2ADMIN"."CUSTOMERS" ("CITY" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."COMPANYNAME" ON "DB2ADMIN"."CUSTOMERS" ("COMPANYNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."PK_CUSTOMERS" ON "DB2ADMIN"."CUSTOMERS" ("CUSTOMERID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."POSTALCODE" ON "DB2ADMIN"."CUSTOMERS" ("POSTALCODE" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."REGION" ON "DB2ADMIN"."CUSTOMERS" ("REGION" ASC); -- DDL Statements for unique constraints on Table "DB2ADMIN"."CUSTOMERS" ALTER TABLE "DB2ADMIN"."CUSTOMERS" ADD CONSTRAINT "UK_CUSTOMERID" UNIQUE ("CUSTOMERID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."EMPLOYEETERRITORIES" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."EMPLOYEETERRITORIES" ( "EMPLOYEEID" INTEGER NOT NULL , "TERRITORYID" VARCHAR(20) NOT NULL ) IN "USERSPACE1" ; -- DDL Statements for primary key on Table "DB2ADMIN"."EMPLOYEETERRITORIES" ALTER TABLE "DB2ADMIN"."EMPLOYEETERRITORIES" ADD CONSTRAINT "PK_EMPLOYEETERRITO" PRIMARY KEY ("EMPLOYEEID", "TERRITORYID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."SHIPPERS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."SHIPPERS" ( "SHIPPERID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "COMPANYNAME" VARCHAR(40) NOT NULL , "PHONE" VARCHAR(24) ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."SHIPPERS" CREATE INDEX "DB2ADMIN"."PK_SHIPPERS" ON "DB2ADMIN"."SHIPPERS" ("SHIPPERID" ASC) CLUSTER ; -- DDL Statements for primary key on Table "DB2ADMIN"."SHIPPERS" ALTER TABLE "DB2ADMIN"."SHIPPERS" ADD CONSTRAINT "SQL040118121538100" PRIMARY KEY ("SHIPPERID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."ORDERS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."ORDERS" ( "ORDERID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "CUSTOMERID" CHAR(5) , "EMPLOYEEID" INTEGER , "ORDERDATE" DATE , "REQUIREDDATE" DATE , "SHIPPEDDATE" DATE , "SHIPVIA" INTEGER , "FREIGHT" DECIMAL(19,4) WITH DEFAULT 0 , "SHIPNAME" VARCHAR(40) , "SHIPADDRESS" VARCHAR(60) , "SHIPCITY" VARCHAR(15) , "SHIPREGION" VARCHAR(15) , "SHIPPOSTALCODE" VARCHAR(10) , "SHIPCOUNTRY" VARCHAR(15) ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."CUSTOMERID" ON "DB2ADMIN"."ORDERS" ("CUSTOMERID" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."EMPLOYEEID" ON "DB2ADMIN"."ORDERS" ("EMPLOYEEID" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."ORDERDATE" ON "DB2ADMIN"."ORDERS" ("ORDERDATE" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."PK_ORDERS" ON "DB2ADMIN"."ORDERS" ("ORDERID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."SHIPPEDDATE" ON "DB2ADMIN"."ORDERS" ("SHIPPEDDATE" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."SHIPPERSORDERS" ON "DB2ADMIN"."ORDERS" ("SHIPVIA" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."ORDERS" CREATE INDEX "DB2ADMIN"."SHIPPOSTALCODE" ON "DB2ADMIN"."ORDERS" ("SHIPPOSTALCODE" ASC); -- DDL Statements for primary key on Table "DB2ADMIN"."ORDERS" ALTER TABLE "DB2ADMIN"."ORDERS" ADD CONSTRAINT "SQL040118121536160" PRIMARY KEY ("ORDERID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."PRODUCTS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."PRODUCTS" ( "PRODUCTID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "PRODUCTNAME" VARCHAR(40) NOT NULL , "SUPPLIERID" INTEGER , "CATEGORYID" INTEGER , "QUANTITYPERUNIT" VARCHAR(20) , "UNITPRICE" DECIMAL(19,4) WITH DEFAULT 0 , "UNITSINSTOCK" SMALLINT WITH DEFAULT 0 , "UNITSONORDER" SMALLINT WITH DEFAULT 0 , "REORDERLEVEL" SMALLINT WITH DEFAULT 0 , "DISCONTINUED" SMALLINT NOT NULL WITH DEFAULT 0 ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."PRODUCTS" CREATE INDEX "DB2ADMIN"."CATEGORIESPRODUCTS" ON "DB2ADMIN"."PRODUCTS" ("CATEGORYID" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."PRODUCTS" CREATE INDEX "DB2ADMIN"."PK_PRODUCTS" ON "DB2ADMIN"."PRODUCTS" ("PRODUCTID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."PRODUCTS" CREATE INDEX "DB2ADMIN"."PRODUCTNAME" ON "DB2ADMIN"."PRODUCTS" ("PRODUCTNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."PRODUCTS" CREATE INDEX "DB2ADMIN"."SUPPLIERID" ON "DB2ADMIN"."PRODUCTS" ("SUPPLIERID" ASC); -- DDL Statements for primary key on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "SQL040118121537130" PRIMARY KEY ("PRODUCTID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."REGION" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."REGION" ( "REGIONID" INTEGER NOT NULL , "REGIONDESCRIPTION" CHAR(50) NOT NULL ) IN "USERSPACE1" ; -- DDL Statements for unique constraints on Table "DB2ADMIN"."REGION" ALTER TABLE "DB2ADMIN"."REGION" ADD CONSTRAINT "UK_REGION" UNIQUE ("REGIONID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."SUPPLIERS" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."SUPPLIERS" ( "SUPPLIERID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY ( START WITH +1 INCREMENT BY +1 MINVALUE +1 MAXVALUE +2147483647 NO CYCLE CACHE 20 NO ORDER ) , "COMPANYNAME" VARCHAR(40) NOT NULL , "CONTACTNAME" VARCHAR(30) , "CONTACTTITLE" VARCHAR(30) , "ADDRESS" VARCHAR(60) , "CITY" VARCHAR(15) , "REGION" VARCHAR(15) , "POSTALCODE" VARCHAR(10) , "COUNTRY" VARCHAR(15) , "PHONE" VARCHAR(24) , "FAX" VARCHAR(24) , "HOMEPAGE" DBCLOB(1073741823) NOT LOGGED NOT COMPACT ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."SUPPLIERS" CREATE INDEX "DB2ADMIN"."COMPANYNAME1" ON "DB2ADMIN"."SUPPLIERS" ("COMPANYNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."SUPPLIERS" CREATE INDEX "DB2ADMIN"."PK_SUPPLIERS" ON "DB2ADMIN"."SUPPLIERS" ("SUPPLIERID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."SUPPLIERS" CREATE INDEX "DB2ADMIN"."POSTALCODE2" ON "DB2ADMIN"."SUPPLIERS" ("POSTALCODE" ASC); -- DDL Statements for primary key on Table "DB2ADMIN"."SUPPLIERS" ALTER TABLE "DB2ADMIN"."SUPPLIERS" ADD CONSTRAINT "SQL040118121538820" PRIMARY KEY ("SUPPLIERID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."TERRITORIES" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."TERRITORIES" ( "TERRITORYID" VARCHAR(20) NOT NULL , "TERRITORYDESCRIPTION" CHAR(50) NOT NULL , "REGIONID" INTEGER NOT NULL ) IN "USERSPACE1" ; -- DDL Statements for primary key on Table "DB2ADMIN"."TERRITORIES" ALTER TABLE "DB2ADMIN"."TERRITORIES" ADD CONSTRAINT "PK_TERRITORIES" PRIMARY KEY ("TERRITORYID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."EMPLOYEES" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."EMPLOYEES" ( "EMPLOYEEID" INTEGER NOT NULL , "LASTNAME" VARCHAR(20) NOT NULL , "FIRSTNAME" VARCHAR(10) NOT NULL , "TITLE" VARCHAR(30) , "TITLEOFCOURTESY" VARCHAR(25) , "BIRTHDATE" TIMESTAMP , "HIREDATE" TIMESTAMP , "ADDRESS" VARCHAR(60) , "CITY" VARCHAR(15) , "REGION" VARCHAR(15) , "POSTALCODE" VARCHAR(10) , "COUNTRY" VARCHAR(15) , "HOMEPHONE" VARCHAR(24) , "EXTENSION" VARCHAR(4) , "NOTES" DBCLOB(1073741823) NOT LOGGED NOT COMPACT , "REPORTSTO" INTEGER , "PHOTOPATH" VARCHAR(255) , "MYCOLUMN" INTEGER ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."EMPLOYEES" CREATE INDEX "DB2ADMIN"."LASTNAME" ON "DB2ADMIN"."EMPLOYEES" ("LASTNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."EMPLOYEES" CREATE INDEX "DB2ADMIN"."PK_EMPLOYEES" ON "DB2ADMIN"."EMPLOYEES" ("EMPLOYEEID" ASC) CLUSTER ; -- DDL Statements for primary key on Table "DB2ADMIN"."EMPLOYEES" ALTER TABLE "DB2ADMIN"."EMPLOYEES" ADD CONSTRAINT "SQL040126121512760" PRIMARY KEY ("EMPLOYEEID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."Order Details" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."Order Details" ( "ORDERID" INTEGER NOT NULL , "PRODUCTID" INTEGER NOT NULL , "UNITPRICE" DECIMAL(19,4) NOT NULL WITH DEFAULT 0 , "QUANTITY" SMALLINT NOT NULL WITH DEFAULT 1 , "DISCOUNT" REAL NOT NULL WITH DEFAULT 0 ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."Order Details" CREATE INDEX "DB2ADMIN"."ORDERID" ON "DB2ADMIN"."Order Details" ("ORDERID" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."Order Details" CREATE INDEX "DB2ADMIN"."PK_ORDER_DETAILS" ON "DB2ADMIN"."Order Details" ("ORDERID" ASC, "PRODUCTID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."Order Details" CREATE INDEX "DB2ADMIN"."PRODUCTID" ON "DB2ADMIN"."Order Details" ("PRODUCTID" ASC); -- DDL Statements for primary key on Table "DB2ADMIN"."Order Details" ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "SQL040127121002770" PRIMARY KEY ("ORDERID", "PRODUCTID"); ------------------------------------------------ -- DDL Statements for table "DB2ADMIN"."GH_EMPTYTABLE" ------------------------------------------------ CREATE TABLE "DB2ADMIN"."GH_EMPTYTABLE" ( "COL1" INTEGER , "COL2" VARCHAR(50) ) IN "USERSPACE1" ; -- DDL Statements for foreign keys on Table "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ALTER TABLE "DB2ADMIN"."CUSTOMERCUSTOMERDEMO" ADD CONSTRAINT "SQL040118143112730" FOREIGN KEY ("CUSTOMERTYPEID") REFERENCES "DB2ADMIN"."CUSTOMERDEMOGRAPHICS" ("CUSTOMERTYPEID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for foreign keys on Table "DB2ADMIN"."EMPLOYEETERRITORIES" ALTER TABLE "DB2ADMIN"."EMPLOYEETERRITORIES" ADD CONSTRAINT "SQL040118143112790" FOREIGN KEY ("TERRITORYID") REFERENCES "DB2ADMIN"."TERRITORIES" ("TERRITORYID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for foreign keys on Table "DB2ADMIN"."ORDERS" ALTER TABLE "DB2ADMIN"."ORDERS" ADD CONSTRAINT "SQL040127151054370" FOREIGN KEY ("SHIPVIA") REFERENCES "DB2ADMIN"."SHIPPERS" ("SHIPPERID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for foreign keys on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "SQL040127151054430" FOREIGN KEY ("CATEGORYID") REFERENCES "DB2ADMIN"."CATEGORIES" ("CATEGORYID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "SQL040127151054460" FOREIGN KEY ("SUPPLIERID") REFERENCES "DB2ADMIN"."SUPPLIERS" ("SUPPLIERID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "CK_PRODUCTS_UNITPR" CHECK (UNITPRICE >= 0) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "CK_REORDERLEVEL" CHECK (REORDERLEVEL >= 0) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "CK_UNITSINSTOCK" CHECK (UNITSINSTOCK >= 0) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."PRODUCTS" ALTER TABLE "DB2ADMIN"."PRODUCTS" ADD CONSTRAINT "CK_UNITSONORDER" CHECK (UNITSONORDER >= 0) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for foreign keys on Table "DB2ADMIN"."EMPLOYEES" ALTER TABLE "DB2ADMIN"."EMPLOYEES" ADD CONSTRAINT "SQL040126121642680" FOREIGN KEY ("REPORTSTO") REFERENCES "DB2ADMIN"."EMPLOYEES" ("EMPLOYEEID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for foreign keys on Table "DB2ADMIN"."Order Details" ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "SQL040127151054020" FOREIGN KEY ("ORDERID") REFERENCES "DB2ADMIN"."ORDERS" ("ORDERID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "SQL040127151054350" FOREIGN KEY ("PRODUCTID") REFERENCES "DB2ADMIN"."PRODUCTS" ("PRODUCTID") ON DELETE NO ACTION ON UPDATE NO ACTION ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."Order Details" ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "CK_DISCOUNT" CHECK (DISCOUNT >= 0 AND DISCOUNT <= 1) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."Order Details" ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "CK_QUANTITY" CHECK (QUANTITY > 0) ENFORCED ENABLE QUERY OPTIMIZATION; -- DDL Statements for check constraints on Table "DB2ADMIN"."Order Details" ALTER TABLE "DB2ADMIN"."Order Details" ADD CONSTRAINT "CK_UNITPRICE" CHECK (UNITPRICE >= 0) ENFORCED ENABLE QUERY OPTIMIZATION; CREATE view DB2ADMIN.CURRENT_PRODUCT_LIST AS SELECT PRODUCTS.ProductName,PRODUCTS.UnitPrice FROM DB2ADMIN.PRODUCTS AS PRODUCTS where PRODUCTS.UnitPrice > (select AVG(DB2ADMIN.PRODUCTS.UnitPrice) from DB2ADMIN.PRODUCTS); -------------------------------------------------------- -- Database and Database Manager configuration parameters -------------------------------------------------------- UPDATE DBM CFG USING cpuspeed 3.306410e-007; UPDATE DBM CFG USING intra_parallel NO; UPDATE DBM CFG USING federated YES; UPDATE DBM CFG USING fed_noauth NO; UPDATE DB CFG FOR GHTDB USING locklist 25; UPDATE DB CFG FOR GHTDB USING dft_degree 1; UPDATE DB CFG FOR GHTDB USING maxlocks 22; UPDATE DB CFG FOR GHTDB USING avg_appls 1; UPDATE DB CFG FOR GHTDB USING stmtheap 2048; UPDATE DB CFG FOR GHTDB USING dft_queryopt 5; --------------------------------- -- Environment Variables settings --------------------------------- --COMMIT WORK; ---CONNECT RESET; --TERMINATE; -- USER is: -- Specified SCHEMA is: DB2ADMIN -- The db2look utility will consider only the specified tables -- Creating DDL for table(s) -- Schema name is ignored for the Federated Section ; COMMIT WORK; CONNECT RESET; --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- DROP DATABASE GHTDB_EX; create database ghtdb_EX USING CODESET UTF8 TERRITORY US; CONNECT TO GHTDB_EX; CREATE TABLE "DB2ADMIN"."CUSTOMERS" ( "CUSTOMERID" CHAR(10) NOT NULL , "COMPANYNAME" VARCHAR(40) NOT NULL , "CONTACTNAME" VARCHAR(30) , "CONTACTTITLE" VARCHAR(30) , "ADDRESS" VARCHAR(60) , "CITY" VARCHAR(15) , "REGION" VARCHAR(15) , "POSTALCODE" VARCHAR(10) , "COUNTRY" VARCHAR(15) , "PHONE" VARCHAR(24) , "FAX" VARCHAR(24) ) IN "USERSPACE1" ; -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."CITY" ON "DB2ADMIN"."CUSTOMERS" ("CITY" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."COMPANYNAME" ON "DB2ADMIN"."CUSTOMERS" ("COMPANYNAME" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."PK_CUSTOMERS" ON "DB2ADMIN"."CUSTOMERS" ("CUSTOMERID" ASC) CLUSTER ; -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."POSTALCODE" ON "DB2ADMIN"."CUSTOMERS" ("POSTALCODE" ASC); -- DDL Statements for indexes on Table "DB2ADMIN"."CUSTOMERS" CREATE INDEX "DB2ADMIN"."REGION" ON "DB2ADMIN"."CUSTOMERS" ("REGION" ASC); -- DDL Statements for unique constraints on Table "DB2ADMIN"."CUSTOMERS" ALTER TABLE "DB2ADMIN"."CUSTOMERS" ADD CONSTRAINT "UK_CUSTOMERID" UNIQUE ("CUSTOMERID"); COMMIT WORK; CONNECT RESET; TERMINATE;
the_stack
-- CREATE DATABASE `poggit` /*!40100 DEFAULT CHARACTER SET latin1 */ /*!80016 DEFAULT ENCRYPTION='N' */; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `uid` int unsigned NOT NULL PRIMARY KEY, `name` varchar(255) UNIQUE, `token` varchar(64), `scopes` varchar(511) DEFAULT '', `email` varchar(255) DEFAULT '', `lastLogin` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `lastNotif` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `opts` varchar(16383) DEFAULT '{}' ); DROP TABLE IF EXISTS `user_ips`; CREATE TABLE `user_ips` ( `uid` int unsigned NOT NULL, `ip` varchar(100) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`uid`,`ip`), FOREIGN KEY (`uid`) REFERENCES `users` (`uid`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `repos`; CREATE TABLE `repos` ( `repoId` int unsigned NOT NULL PRIMARY KEY, `owner` varchar(256) NOT NULL, `name` varchar(256) NOT NULL, `private` tinyint(1) NOT NULL DEFAULT '0', `build` tinyint(1) NOT NULL DEFAULT '0', `fork` tinyint(1) NOT NULL, `accessWith` int unsigned NOT NULL, `webhookId` bigint unsigned NOT NULL, `webhookKey` binary(8) NOT NULL, KEY `full_name` (`owner`,`name`) ); DROP TABLE IF EXISTS `submit_rules`; CREATE TABLE `submit_rules` ( `id` varchar(10) NOT NULL PRIMARY KEY, `title` varchar(1000), `content` text, `uses` int DEFAULT '0' ); DROP TABLE IF EXISTS `projects`; CREATE TABLE `projects` ( `projectId` int unsigned NOT NULL PRIMARY KEY, `repoId` int unsigned NOT NULL, `name` varchar(255) NOT NULL, `path` varchar(1000) NOT NULL, `type` tinyint unsigned NOT NULL, -- Plugin = 0, Library = 1 `framework` varchar(100) NOT NULL, -- default, nowhere `lang` tinyint(1) NOT NULL, UNIQUE KEY `repo_proj` (`repoId`,`name`), FOREIGN KEY (`repoId`) REFERENCES `repos` (`repoId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `project_subs`; CREATE TABLE `project_subs` ( `projectId` int unsigned, `userId` int unsigned, `level` tinyint DEFAULT '1', UNIQUE KEY `user_project` (`userId`,`projectId`) ); DROP TABLE IF EXISTS `resources`; CREATE TABLE `resources` ( `resourceId` bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `type` varchar(100) NOT NULL, -- phar, md, png, zip, etc. `mimeType` varchar(100) NOT NULL, `created` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `accessFilters` json NOT NULL, `dlCount` bigint NOT NULL DEFAULT '0', `duration` int unsigned NOT NULL, `relMd` bigint unsigned, `src` varchar(40), `fileSize` int NOT NULL DEFAULT '-1' ) AUTO_INCREMENT = 2; INSERT INTO resources (resourceId, type, mimeType, accessFilters, dlCount, duration, fileSize) VALUES (1, '', 'text/plain', '[]', 0, 315360000, 0); DROP TABLE IF EXISTS `builds`; CREATE TABLE `builds` ( `buildId` bigint unsigned NOT NULL PRIMARY KEY, `resourceId` bigint unsigned, `projectId` int unsigned, `class` tinyint, -- Dev = 1, PR = 4 `branch` varchar(255) DEFAULT 'master', `sha` char(40), `cause` varchar(8191), `internal` int, -- internal (project,class) build number, as opposed to global build number `created` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `triggerUser` int unsigned DEFAULT '0', -- not necessarily REFERENCES users(uid), because may not have registered on Poggit yet `logRsr` bigint unsigned DEFAULT '1', `path` varchar(1000), `main` varchar(255), `buildsAfterThis` smallint DEFAULT '0', -- a temporary column for checking build completion KEY `builds_by_project` (`projectId`), KEY `logRsr` (`logRsr`), FOREIGN KEY (`projectId`) REFERENCES `projects` (`projectId`) ON DELETE CASCADE, FOREIGN KEY (`logRsr`) REFERENCES `resources` (`resourceId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `builds_statuses`; CREATE TABLE `builds_statuses` ( `buildId` bigint unsigned, `level` tinyint NOT NULL, `class` varchar(255) NOT NULL, `body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, KEY `statuses_by_build` (`buildId`), KEY `statuses_by_level` (`buildId`,`level`), FOREIGN KEY (`buildId`) REFERENCES `builds` (`buildId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `virion_builds`; CREATE TABLE `virion_builds` ( `buildId` bigint unsigned NOT NULL PRIMARY KEY, `version` varchar(255) NOT NULL, `api` varchar(255) NOT NULL, -- JSON-encoded FOREIGN KEY (`buildId`) REFERENCES `builds` (`buildId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `virion_usages`; CREATE TABLE `virion_usages` ( `virionBuild` bigint unsigned NOT NULL, `userBuild` bigint unsigned NOT NULL, FOREIGN KEY (`virionBuild`) REFERENCES `builds` (`buildId`) ON DELETE CASCADE, FOREIGN KEY (`userBuild`) REFERENCES `builds` (`buildId`) ON DELETE CASCADE ); CREATE OR REPLACE VIEW `recent_virion_usages` AS select `virion_build`.`projectId` AS `virionProject`,`user_build`.`projectId` AS `userProject`, (unix_timestamp() - max(unix_timestamp(`user_build`.`created`))) AS `sinceLastUse` from ((`virion_usages` join `builds` `virion_build` on((`virion_usages`.`virionBuild` = `virion_build`.`buildId`))) join `builds` `user_build` on((`virion_usages`.`userBuild` = `user_build`.`buildId`))) group by `virion_build`.`projectId`,`user_build`.`projectId` order by `sinceLastUse`; DROP TABLE IF EXISTS `namespaces`; CREATE TABLE `namespaces` ( `nsid` int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL UNIQUE, `parent` int unsigned, `depth` tinyint unsigned NOT NULL, KEY `ns_by_depth` (`depth`) ) AUTO_INCREMENT = 2; DROP TABLE IF EXISTS `known_classes`; CREATE TABLE `known_classes` ( `clid` int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `parent` int unsigned NOT NULL, `name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, UNIQUE KEY `cl_by_fqn` (`parent`,`name`) ) AUTO_INCREMENT = 2; DROP TABLE IF EXISTS `class_occurrences`; CREATE TABLE `class_occurrences` ( `clid` int unsigned NOT NULL, `buildId` bigint unsigned NOT NULL ); DROP TABLE IF EXISTS `known_commands`; CREATE TABLE `known_commands` ( `name` varchar(255) NOT NULL, `description` varchar(255), `usage` varchar(255), `class` varchar(255), `buildId` bigint unsigned NOT NULL, PRIMARY KEY (`name`,`buildId`), KEY `name` (`name`), KEY `buildId` (`buildId`), FULLTEXT KEY `description` (`description`), FULLTEXT KEY `usage` (`usage`), FOREIGN KEY (`buildId`) REFERENCES `builds` (`buildId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `known_aliases`; CREATE TABLE `known_aliases` ( `name` varchar(255) NOT NULL, `buildId` bigint unsigned NOT NULL, `alias` varchar(255) NOT NULL, PRIMARY KEY (`name`,`buildId`,`alias`), KEY `alias` (`alias`), FOREIGN KEY (`name`, `buildId`) REFERENCES `known_commands` (`name`, `buildId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `known_spoons`; CREATE TABLE `known_spoons` ( `id` smallint NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(16) UNIQUE, `php` varchar(5) DEFAULT '7.2', `incompatible` tinyint(1) NOT NULL, `indev` tinyint(1) NOT NULL, `supported` tinyint(1) NOT NULL DEFAULT '0', `pharDefault` varchar(255) ); DROP TABLE IF EXISTS `releases`; CREATE TABLE `releases` ( `releaseId` int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(255), `shortDesc` varchar(255) DEFAULT '', `artifact` bigint unsigned, `projectId` int unsigned, `buildId` bigint unsigned, `version` varchar(100), `description` bigint unsigned, `descriptionType` varchar(4), `descriptionMarkdown` longtext, `descriptionText` longtext, `icon` varchar(511), `changelog` bigint unsigned, `changelogText` longtext, `license` varchar(100), `licenseRes` bigint DEFAULT '1', `licenseText` longtext, `flags` smallint DEFAULT '0', `creation` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `state` tinyint DEFAULT '0', `updateTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `parent_releaseId` int unsigned, `assignee` int unsigned, `was_checked` tinyint(1) DEFAULT '0', `adminNote` text, KEY `releases_by_project` (`projectId`), KEY `releases_by_name` (`name`), KEY `buildId` (`buildId`), KEY `assignee` (`assignee`), FOREIGN KEY (`projectId`) REFERENCES `projects` (`projectId`) ON DELETE CASCADE, FOREIGN KEY (`assignee`) REFERENCES `users` (`uid`) ON DELETE RESTRICT ); DROP TABLE IF EXISTS `release_authors`; CREATE TABLE `release_authors` ( `projectId` int unsigned, `uid` int unsigned, -- may not be registered on Poggit `name` varchar(32), `level` tinyint, -- collaborator = 1, contributor = 2, translator = 3, requester = 4 UNIQUE KEY `projectId` (`projectId`,`uid`), FOREIGN KEY (`projectId`) REFERENCES `projects` (`projectId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_categories`; CREATE TABLE `release_categories` ( `projectId` int unsigned, `category` smallint unsigned NOT NULL, `isMainCategory` tinyint(1) NOT NULL DEFAULT '0', UNIQUE KEY `projectId_2` (`projectId`,`category`), KEY `projectId` (`projectId`), FOREIGN KEY (`projectId`) REFERENCES `projects` (`projectId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_keywords`; CREATE TABLE `release_keywords` ( `projectId` int unsigned, `word` varchar(100) NOT NULL, KEY `projectId` (`projectId`), FOREIGN KEY (`projectId`) REFERENCES `projects` (`projectId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `spoon_prom`; CREATE TABLE `spoon_prom` ( `name` varchar(50) NOT NULL PRIMARY KEY, `value` varchar(16), KEY `value` (`value`), FOREIGN KEY (`value`) REFERENCES `known_spoons` (`name`) ); DROP TABLE IF EXISTS `spoon_desc`; CREATE TABLE `spoon_desc` ( `api` varchar(20), `value` varchar(500), KEY `api` (`api`) ); DROP TABLE IF EXISTS `release_spoons`; CREATE TABLE `release_spoons` ( `releaseId` int unsigned, `since` varchar(16), `till` varchar(16), KEY `releaseId` (`releaseId`), KEY `since` (`since`), KEY `till` (`till`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE, FOREIGN KEY (`since`) REFERENCES `known_spoons` (`name`), FOREIGN KEY (`till`) REFERENCES `known_spoons` (`name`) ); DROP TABLE IF EXISTS `release_deps`; CREATE TABLE `release_deps` ( `releaseId` int unsigned, `name` varchar(100) NOT NULL, `version` varchar(100) NOT NULL, `depRelId` int unsigned, `isHard` tinyint(1) NOT NULL, KEY `releaseId` (`releaseId`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_reqr`; CREATE TABLE `release_reqr` ( `releaseId` int unsigned, `type` tinyint, `details` varchar(255) DEFAULT '', `isRequire` tinyint(1) NOT NULL, KEY `releaseId` (`releaseId`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_perms`; CREATE TABLE `release_perms` ( `releaseId` int unsigned, `val` tinyint, KEY `release_meta_index` (`releaseId`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_reviews`; CREATE TABLE `release_reviews` ( `reviewId` int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `releaseId` int unsigned, `user` int unsigned, `criteria` int unsigned, `type` tinyint unsigned, -- Official = 1, User = 2, Robot = 3 `cat` tinyint unsigned, -- perspective: code? test? `score` smallint unsigned, `message` varchar(8191) DEFAULT '', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, UNIQUE KEY `reviews_by_plugin_user_criteria` (`releaseId`,`user`,`criteria`), KEY `reviews_by_plugin` (`releaseId`), KEY `reviews_by_plugin_user` (`releaseId`,`user`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_reply_reviews`; CREATE TABLE `release_reply_reviews` ( `reviewId` int unsigned NOT NULL, `user` int unsigned NOT NULL, `message` varchar(8191), `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`reviewId`,`user`), FOREIGN KEY (`reviewId`) REFERENCES `release_reviews` (`reviewId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_votes`; CREATE TABLE `release_votes` ( `user` int unsigned, `releaseId` int unsigned, `vote` tinyint, `message` varchar(255) DEFAULT '', `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, UNIQUE KEY `user_releaseId` (`user`,`releaseId`), KEY `releaseId` (`releaseId`), FOREIGN KEY (`releaseId`) REFERENCES `releases` (`releaseId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `release_watches`; CREATE TABLE `release_watches` ( `uid` int unsigned, `projectId` int unsigned ); DROP TABLE IF EXISTS `category_watches`; CREATE TABLE `category_watches` ( `uid` int unsigned, `category` smallint unsigned NOT NULL ); DROP TABLE IF EXISTS `event_timeline`; CREATE TABLE `event_timeline` ( `eventId` bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `type` smallint unsigned NOT NULL, `details` varchar(8191) ) AUTO_INCREMENT = 1; INSERT INTO event_timeline (type, details) VALUES (1, '{"eventId":null,"created":null}'); DROP TABLE IF EXISTS `user_timeline`; CREATE TABLE `user_timeline` ( `eventId` bigint unsigned, `userId` int unsigned ); DROP TABLE IF EXISTS `users_online`; CREATE TABLE `users_online` ( `ip` varchar(40) NOT NULL PRIMARY KEY, `lastOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ); DROP TABLE IF EXISTS `rsr_dl_ips`; CREATE TABLE `rsr_dl_ips` ( `resourceId` bigint unsigned NOT NULL, `ip` varchar(100) NOT NULL, `latest` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `count` int NOT NULL DEFAULT '1', PRIMARY KEY (`resourceId`,`ip`), FOREIGN KEY (`resourceId`) REFERENCES `resources` (`resourceId`) ON DELETE CASCADE ); DROP TABLE IF EXISTS `ext_refs`; CREATE TABLE `ext_refs` ( `srcDomain` varchar(255) NOT NULL PRIMARY KEY, `cnt` bigint DEFAULT '1' ); -- Default data needed for out of the box to work, use spoons.edit to add/edit more INSERT INTO `known_spoons` (`id`, `name`, `php`, `incompatible`, `indev`, `supported`, `pharDefault`) VALUES (0, '3.0.0', '7.2', true, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.0.0/PocketMine-MP.phar'), (1, '3.1.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.1.0/PocketMine-MP.phar'), (2, '3.2.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.2.0/PocketMine-MP.phar'), (3, '3.3.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.3.0/PocketMine-MP.phar'), (4, '3.4.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.4.0/PocketMine-MP.phar'), (5, '3.5.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.5.0/PocketMine-MP.phar'), (6, '3.6.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.6.0/PocketMine-MP.phar'), (7, '3.7.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.7.0/PocketMine-MP.phar'), (8, '3.8.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.8.0/PocketMine-MP.phar'), (9, '3.9.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.9.0/PocketMine-MP.phar'), (10, '3.10.0', '7.2', false, false, false, 'https://github.com/pmmp/PocketMine-MP/releases/download/3.10.0/PocketMine-MP.phar'); INSERT INTO `spoon_desc` (`api`, `value`) VALUES ('3.0.0', 'MCPE 1.4 Support'), ('3.1.0', 'MCPE 1.5 Support'), ('3.2.0', 'MCPE 1.6 Support'), ('3.3.0', 'MCPE 1.7 Support'), ('3.4.0', ''), ('3.5.0', 'MCPE 1.8 Support'), ('3.6.0', 'MCPE 1.9 Support'), ('3.7.0', 'MCPE 1.10 Support'), ('3.8.0', 'MCPE 1.11 Support'), ('3.9.0', 'MCPE 1.12 Support'), ('3.10.0', 'MCPE 1.13 Support'); INSERT INTO `spoon_prom` (`name`, `value`) VALUES ('poggit.pmapis.promoted', '3.10.0'), ('poggit.pmapis.promotedCompat', '3.10.0'), ('poggit.pmapis.latest', '3.10.0'), ('poggit.pmapis.latestCompat', '3.0.0'); DELIMITER $$ CREATE FUNCTION `IncRsrDlCnt`(p_resourceId BIGINT UNSIGNED, p_ip VARCHAR(56)) RETURNS int BEGIN DECLARE v_count INT; SELECT IFNULL((SELECT count FROM rsr_dl_ips WHERE resourceId = p_resourceId AND ip = p_ip), 0) INTO v_count; IF v_count > 0 THEN UPDATE rsr_dl_ips SET latest = CURRENT_TIMESTAMP, count = v_count + 1 WHERE resourceId = p_resourceId AND ip = p_ip; ELSE UPDATE resources SET dlCount = dlCount + 1 WHERE resourceId = p_resourceId; INSERT INTO rsr_dl_ips (resourceId, ip) VALUES (p_resourceId, p_ip); END IF; RETURN v_count + 1; END $$ CREATE FUNCTION `KeepOnline`(p_ip VARCHAR(40), p_uid INT UNSIGNED) RETURNS int BEGIN DECLARE cnt INT; IF p_uid != 0 THEN UPDATE users SET lastLogin = CURRENT_TIMESTAMP WHERE uid = p_uid; END IF; INSERT INTO users_online (ip, lastOn) VALUES (p_ip, CURRENT_TIMESTAMP) ON DUPLICATE KEY UPDATE lastOn = CURRENT_TIMESTAMP; DELETE FROM users_online WHERE UNIX_TIMESTAMP() - UNIX_TIMESTAMP(lastOn) > 300; SELECT COUNT(*) INTO cnt FROM users_online; RETURN cnt; END $$ -- for humans only CREATE PROCEDURE `BumpApi`(IN api_id SMALLINT) BEGIN CREATE TEMPORARY TABLE bumps ( rid INT UNSIGNED ); INSERT INTO bumps (rid) SELECT releaseId FROM (SELECT r.releaseId, r.flags & 4 outdated, MAX(k.id) max FROM releases r LEFT JOIN release_spoons s ON r.releaseId = s.releaseId INNER JOIN known_spoons k ON k.name = s.till GROUP BY r.releaseId HAVING outdated = 0 AND max < api_id) t; UPDATE releases SET flags = flags | 4 WHERE EXISTS(SELECT rid FROM bumps WHERE rid = releaseId); DROP TABLE bumps; END $$ CREATE PROCEDURE `MergeExtRef`(IN to_name VARCHAR(255), IN from_pattern VARCHAR(255)) BEGIN DECLARE to_add BIGINT; SELECT SUM(cnt) INTO to_add FROM ext_refs WHERE srcDomain LIKE from_pattern; UPDATE ext_refs SET cnt = cnt + to_add WHERE srcDomain = to_name; DELETE FROM ext_refs WHERE srcDomain LIKE from_pattern; END $$ DELIMITER ;
the_stack
CREATE DATABASE IF NOT EXISTS `metastore` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `metastore`; -- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64) -- -- Host: localhost Database: metastore -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `BUCKETING_COLS` -- DROP TABLE IF EXISTS `BUCKETING_COLS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `BUCKETING_COLS` ( `SD_ID` bigint(20) NOT NULL, `BUCKET_COL_NAME` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`SD_ID`,`INTEGER_IDX`), KEY `BUCKETING_COLS_N49` (`SD_ID`), CONSTRAINT `BUCKETING_COLS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `BUCKETING_COLS` -- LOCK TABLES `BUCKETING_COLS` WRITE; /*!40000 ALTER TABLE `BUCKETING_COLS` DISABLE KEYS */; /*!40000 ALTER TABLE `BUCKETING_COLS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `CDS` -- DROP TABLE IF EXISTS `CDS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `CDS` ( `CD_ID` bigint(20) NOT NULL, PRIMARY KEY (`CD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `CDS` -- LOCK TABLES `CDS` WRITE; /*!40000 ALTER TABLE `CDS` DISABLE KEYS */; /*!40000 ALTER TABLE `CDS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `COLUMNS_V2` -- DROP TABLE IF EXISTS `COLUMNS_V2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `COLUMNS_V2` ( `CD_ID` bigint(20) NOT NULL, `COMMENT` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `TYPE_NAME` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`CD_ID`,`COLUMN_NAME`), KEY `COLUMNS_V2_N49` (`CD_ID`), CONSTRAINT `COLUMNS_V2_FK1` FOREIGN KEY (`CD_ID`) REFERENCES `CDS` (`CD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `COLUMNS_V2` -- LOCK TABLES `COLUMNS_V2` WRITE; /*!40000 ALTER TABLE `COLUMNS_V2` DISABLE KEYS */; /*!40000 ALTER TABLE `COLUMNS_V2` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `DATABASE_PARAMS` -- DROP TABLE IF EXISTS `DATABASE_PARAMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `DATABASE_PARAMS` ( `DB_ID` bigint(20) NOT NULL, `PARAM_KEY` varchar(180) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`DB_ID`,`PARAM_KEY`), KEY `DATABASE_PARAMS_N49` (`DB_ID`), CONSTRAINT `DATABASE_PARAMS_FK1` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `DATABASE_PARAMS` -- LOCK TABLES `DATABASE_PARAMS` WRITE; /*!40000 ALTER TABLE `DATABASE_PARAMS` DISABLE KEYS */; /*!40000 ALTER TABLE `DATABASE_PARAMS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `DBS` -- DROP TABLE IF EXISTS `DBS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `DBS` ( `DB_ID` bigint(20) NOT NULL, `DESC` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `DB_LOCATION_URI` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `OWNER_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `OWNER_TYPE` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`DB_ID`), UNIQUE KEY `UNIQUE_DATABASE` (`NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `DBS` -- LOCK TABLES `DBS` WRITE; /*!40000 ALTER TABLE `DBS` DISABLE KEYS */; INSERT INTO `DBS` VALUES (1,'Default Hive database','file:/home/novemser/Documents/Code/spark/spark-warehouse','default','public','ROLE'); /*!40000 ALTER TABLE `DBS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `FUNCS` -- DROP TABLE IF EXISTS `FUNCS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `FUNCS` ( `FUNC_ID` bigint(20) NOT NULL, `CLASS_NAME` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `CREATE_TIME` int(11) NOT NULL, `DB_ID` bigint(20) DEFAULT NULL, `FUNC_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `FUNC_TYPE` int(11) NOT NULL, `OWNER_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `OWNER_TYPE` varchar(10) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`FUNC_ID`), UNIQUE KEY `UNIQUEFUNCTION` (`FUNC_NAME`,`DB_ID`), KEY `FUNCS_N49` (`DB_ID`), CONSTRAINT `FUNCS_FK1` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `FUNCS` -- LOCK TABLES `FUNCS` WRITE; /*!40000 ALTER TABLE `FUNCS` DISABLE KEYS */; /*!40000 ALTER TABLE `FUNCS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `FUNC_RU` -- DROP TABLE IF EXISTS `FUNC_RU`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `FUNC_RU` ( `FUNC_ID` bigint(20) NOT NULL, `RESOURCE_TYPE` int(11) NOT NULL, `RESOURCE_URI` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`FUNC_ID`,`INTEGER_IDX`), KEY `FUNC_RU_N49` (`FUNC_ID`), CONSTRAINT `FUNC_RU_FK1` FOREIGN KEY (`FUNC_ID`) REFERENCES `FUNCS` (`FUNC_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `FUNC_RU` -- LOCK TABLES `FUNC_RU` WRITE; /*!40000 ALTER TABLE `FUNC_RU` DISABLE KEYS */; /*!40000 ALTER TABLE `FUNC_RU` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `GLOBAL_PRIVS` -- DROP TABLE IF EXISTS `GLOBAL_PRIVS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `GLOBAL_PRIVS` ( `USER_GRANT_ID` bigint(20) NOT NULL, `CREATE_TIME` int(11) NOT NULL, `GRANT_OPTION` smallint(6) NOT NULL, `GRANTOR` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `GRANTOR_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `PRINCIPAL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `PRINCIPAL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `USER_PRIV` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`USER_GRANT_ID`), UNIQUE KEY `GLOBALPRIVILEGEINDEX` (`PRINCIPAL_NAME`,`PRINCIPAL_TYPE`,`USER_PRIV`,`GRANTOR`,`GRANTOR_TYPE`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `GLOBAL_PRIVS` -- LOCK TABLES `GLOBAL_PRIVS` WRITE; /*!40000 ALTER TABLE `GLOBAL_PRIVS` DISABLE KEYS */; INSERT INTO `GLOBAL_PRIVS` VALUES (1,1519786960,1,'admin','ROLE','admin','ROLE','All'); /*!40000 ALTER TABLE `GLOBAL_PRIVS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PARTITIONS` -- DROP TABLE IF EXISTS `PARTITIONS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PARTITIONS` ( `PART_ID` bigint(20) NOT NULL, `CREATE_TIME` int(11) NOT NULL, `LAST_ACCESS_TIME` int(11) NOT NULL, `PART_NAME` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `SD_ID` bigint(20) DEFAULT NULL, `TBL_ID` bigint(20) DEFAULT NULL, PRIMARY KEY (`PART_ID`), UNIQUE KEY `UNIQUEPARTITION` (`PART_NAME`,`TBL_ID`), KEY `PARTITIONS_N50` (`TBL_ID`), KEY `PARTITIONS_N49` (`SD_ID`), CONSTRAINT `PARTITIONS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`), CONSTRAINT `PARTITIONS_FK2` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PARTITIONS` -- LOCK TABLES `PARTITIONS` WRITE; /*!40000 ALTER TABLE `PARTITIONS` DISABLE KEYS */; /*!40000 ALTER TABLE `PARTITIONS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PARTITION_KEYS` -- DROP TABLE IF EXISTS `PARTITION_KEYS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PARTITION_KEYS` ( `TBL_ID` bigint(20) NOT NULL, `PKEY_COMMENT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `PKEY_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PKEY_TYPE` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`TBL_ID`,`PKEY_NAME`), KEY `PARTITION_KEYS_N49` (`TBL_ID`), CONSTRAINT `PARTITION_KEYS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PARTITION_KEYS` -- LOCK TABLES `PARTITION_KEYS` WRITE; /*!40000 ALTER TABLE `PARTITION_KEYS` DISABLE KEYS */; /*!40000 ALTER TABLE `PARTITION_KEYS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PARTITION_KEY_VALS` -- DROP TABLE IF EXISTS `PARTITION_KEY_VALS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PARTITION_KEY_VALS` ( `PART_ID` bigint(20) NOT NULL, `PART_KEY_VAL` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`PART_ID`,`INTEGER_IDX`), KEY `PARTITION_KEY_VALS_N49` (`PART_ID`), CONSTRAINT `PARTITION_KEY_VALS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PARTITION_KEY_VALS` -- LOCK TABLES `PARTITION_KEY_VALS` WRITE; /*!40000 ALTER TABLE `PARTITION_KEY_VALS` DISABLE KEYS */; /*!40000 ALTER TABLE `PARTITION_KEY_VALS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PARTITION_PARAMS` -- DROP TABLE IF EXISTS `PARTITION_PARAMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PARTITION_PARAMS` ( `PART_ID` bigint(20) NOT NULL, `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`PART_ID`,`PARAM_KEY`), KEY `PARTITION_PARAMS_N49` (`PART_ID`), CONSTRAINT `PARTITION_PARAMS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PARTITION_PARAMS` -- LOCK TABLES `PARTITION_PARAMS` WRITE; /*!40000 ALTER TABLE `PARTITION_PARAMS` DISABLE KEYS */; /*!40000 ALTER TABLE `PARTITION_PARAMS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PART_COL_STATS` -- DROP TABLE IF EXISTS `PART_COL_STATS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PART_COL_STATS` ( `CS_ID` bigint(20) NOT NULL, `AVG_COL_LEN` double DEFAULT NULL, `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `COLUMN_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `DB_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `BIG_DECIMAL_HIGH_VALUE` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `BIG_DECIMAL_LOW_VALUE` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `DOUBLE_HIGH_VALUE` double DEFAULT NULL, `DOUBLE_LOW_VALUE` double DEFAULT NULL, `LAST_ANALYZED` bigint(20) NOT NULL, `LONG_HIGH_VALUE` bigint(20) DEFAULT NULL, `LONG_LOW_VALUE` bigint(20) DEFAULT NULL, `MAX_COL_LEN` bigint(20) DEFAULT NULL, `NUM_DISTINCTS` bigint(20) DEFAULT NULL, `NUM_FALSES` bigint(20) DEFAULT NULL, `NUM_NULLS` bigint(20) NOT NULL, `NUM_TRUES` bigint(20) DEFAULT NULL, `PART_ID` bigint(20) DEFAULT NULL, `PARTITION_NAME` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `TABLE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, PRIMARY KEY (`CS_ID`), KEY `PART_COL_STATS_N49` (`PART_ID`), CONSTRAINT `PART_COL_STATS_FK1` FOREIGN KEY (`PART_ID`) REFERENCES `PARTITIONS` (`PART_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PART_COL_STATS` -- LOCK TABLES `PART_COL_STATS` WRITE; /*!40000 ALTER TABLE `PART_COL_STATS` DISABLE KEYS */; /*!40000 ALTER TABLE `PART_COL_STATS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ROLES` -- DROP TABLE IF EXISTS `ROLES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ROLES` ( `ROLE_ID` bigint(20) NOT NULL, `CREATE_TIME` int(11) NOT NULL, `OWNER_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `ROLE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`ROLE_ID`), UNIQUE KEY `ROLEENTITYINDEX` (`ROLE_NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ROLES` -- LOCK TABLES `ROLES` WRITE; /*!40000 ALTER TABLE `ROLES` DISABLE KEYS */; INSERT INTO `ROLES` VALUES (1,1519786960,'admin','admin'),(2,1519786960,'public','public'); /*!40000 ALTER TABLE `ROLES` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SDS` -- DROP TABLE IF EXISTS `SDS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SDS` ( `SD_ID` bigint(20) NOT NULL, `CD_ID` bigint(20) DEFAULT NULL, `INPUT_FORMAT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `IS_COMPRESSED` bit(1) NOT NULL, `IS_STOREDASSUBDIRECTORIES` bit(1) NOT NULL, `LOCATION` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `NUM_BUCKETS` int(11) NOT NULL, `OUTPUT_FORMAT` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `SERDE_ID` bigint(20) DEFAULT NULL, PRIMARY KEY (`SD_ID`), KEY `SDS_N50` (`CD_ID`), KEY `SDS_N49` (`SERDE_ID`), CONSTRAINT `SDS_FK1` FOREIGN KEY (`CD_ID`) REFERENCES `CDS` (`CD_ID`), CONSTRAINT `SDS_FK2` FOREIGN KEY (`SERDE_ID`) REFERENCES `SERDES` (`SERDE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SDS` -- LOCK TABLES `SDS` WRITE; /*!40000 ALTER TABLE `SDS` DISABLE KEYS */; /*!40000 ALTER TABLE `SDS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SD_PARAMS` -- DROP TABLE IF EXISTS `SD_PARAMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SD_PARAMS` ( `SD_ID` bigint(20) NOT NULL, `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`SD_ID`,`PARAM_KEY`), KEY `SD_PARAMS_N49` (`SD_ID`), CONSTRAINT `SD_PARAMS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SD_PARAMS` -- LOCK TABLES `SD_PARAMS` WRITE; /*!40000 ALTER TABLE `SD_PARAMS` DISABLE KEYS */; /*!40000 ALTER TABLE `SD_PARAMS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SEQUENCE_TABLE` -- DROP TABLE IF EXISTS `SEQUENCE_TABLE`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SEQUENCE_TABLE` ( `SEQUENCE_NAME` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `NEXT_VAL` bigint(20) NOT NULL, PRIMARY KEY (`SEQUENCE_NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SEQUENCE_TABLE` -- LOCK TABLES `SEQUENCE_TABLE` WRITE; /*!40000 ALTER TABLE `SEQUENCE_TABLE` DISABLE KEYS */; INSERT INTO `SEQUENCE_TABLE` VALUES ('org.apache.hadoop.hive.metastore.model.MDatabase',6),('org.apache.hadoop.hive.metastore.model.MGlobalPrivilege',6),('org.apache.hadoop.hive.metastore.model.MRole',6),('org.apache.hadoop.hive.metastore.model.MVersionTable',6); /*!40000 ALTER TABLE `SEQUENCE_TABLE` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SERDES` -- DROP TABLE IF EXISTS `SERDES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SERDES` ( `SERDE_ID` bigint(20) NOT NULL, `NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `SLIB` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`SERDE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SERDES` -- LOCK TABLES `SERDES` WRITE; /*!40000 ALTER TABLE `SERDES` DISABLE KEYS */; /*!40000 ALTER TABLE `SERDES` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SERDE_PARAMS` -- DROP TABLE IF EXISTS `SERDE_PARAMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SERDE_PARAMS` ( `SERDE_ID` bigint(20) NOT NULL, `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`SERDE_ID`,`PARAM_KEY`), KEY `SERDE_PARAMS_N49` (`SERDE_ID`), CONSTRAINT `SERDE_PARAMS_FK1` FOREIGN KEY (`SERDE_ID`) REFERENCES `SERDES` (`SERDE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SERDE_PARAMS` -- LOCK TABLES `SERDE_PARAMS` WRITE; /*!40000 ALTER TABLE `SERDE_PARAMS` DISABLE KEYS */; /*!40000 ALTER TABLE `SERDE_PARAMS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SKEWED_COL_NAMES` -- DROP TABLE IF EXISTS `SKEWED_COL_NAMES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SKEWED_COL_NAMES` ( `SD_ID` bigint(20) NOT NULL, `SKEWED_COL_NAME` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`SD_ID`,`INTEGER_IDX`), KEY `SKEWED_COL_NAMES_N49` (`SD_ID`), CONSTRAINT `SKEWED_COL_NAMES_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SKEWED_COL_NAMES` -- LOCK TABLES `SKEWED_COL_NAMES` WRITE; /*!40000 ALTER TABLE `SKEWED_COL_NAMES` DISABLE KEYS */; /*!40000 ALTER TABLE `SKEWED_COL_NAMES` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SKEWED_COL_VALUE_LOC_MAP` -- DROP TABLE IF EXISTS `SKEWED_COL_VALUE_LOC_MAP`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SKEWED_COL_VALUE_LOC_MAP` ( `SD_ID` bigint(20) NOT NULL, `STRING_LIST_ID_KID` bigint(20) NOT NULL, `LOCATION` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`SD_ID`,`STRING_LIST_ID_KID`), KEY `SKEWED_COL_VALUE_LOC_MAP_N50` (`STRING_LIST_ID_KID`), KEY `SKEWED_COL_VALUE_LOC_MAP_N49` (`SD_ID`), CONSTRAINT `SKEWED_COL_VALUE_LOC_MAP_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`), CONSTRAINT `SKEWED_COL_VALUE_LOC_MAP_FK2` FOREIGN KEY (`STRING_LIST_ID_KID`) REFERENCES `SKEWED_STRING_LIST` (`STRING_LIST_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SKEWED_COL_VALUE_LOC_MAP` -- LOCK TABLES `SKEWED_COL_VALUE_LOC_MAP` WRITE; /*!40000 ALTER TABLE `SKEWED_COL_VALUE_LOC_MAP` DISABLE KEYS */; /*!40000 ALTER TABLE `SKEWED_COL_VALUE_LOC_MAP` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SKEWED_STRING_LIST` -- DROP TABLE IF EXISTS `SKEWED_STRING_LIST`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SKEWED_STRING_LIST` ( `STRING_LIST_ID` bigint(20) NOT NULL, PRIMARY KEY (`STRING_LIST_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SKEWED_STRING_LIST` -- LOCK TABLES `SKEWED_STRING_LIST` WRITE; /*!40000 ALTER TABLE `SKEWED_STRING_LIST` DISABLE KEYS */; /*!40000 ALTER TABLE `SKEWED_STRING_LIST` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SKEWED_STRING_LIST_VALUES` -- DROP TABLE IF EXISTS `SKEWED_STRING_LIST_VALUES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SKEWED_STRING_LIST_VALUES` ( `STRING_LIST_ID` bigint(20) NOT NULL, `STRING_LIST_VALUE` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`STRING_LIST_ID`,`INTEGER_IDX`), KEY `SKEWED_STRING_LIST_VALUES_N49` (`STRING_LIST_ID`), CONSTRAINT `SKEWED_STRING_LIST_VALUES_FK1` FOREIGN KEY (`STRING_LIST_ID`) REFERENCES `SKEWED_STRING_LIST` (`STRING_LIST_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SKEWED_STRING_LIST_VALUES` -- LOCK TABLES `SKEWED_STRING_LIST_VALUES` WRITE; /*!40000 ALTER TABLE `SKEWED_STRING_LIST_VALUES` DISABLE KEYS */; /*!40000 ALTER TABLE `SKEWED_STRING_LIST_VALUES` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SKEWED_VALUES` -- DROP TABLE IF EXISTS `SKEWED_VALUES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SKEWED_VALUES` ( `SD_ID_OID` bigint(20) NOT NULL, `STRING_LIST_ID_EID` bigint(20) DEFAULT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`SD_ID_OID`,`INTEGER_IDX`), KEY `SKEWED_VALUES_N50` (`SD_ID_OID`), KEY `SKEWED_VALUES_N49` (`STRING_LIST_ID_EID`), CONSTRAINT `SKEWED_VALUES_FK1` FOREIGN KEY (`SD_ID_OID`) REFERENCES `SDS` (`SD_ID`), CONSTRAINT `SKEWED_VALUES_FK2` FOREIGN KEY (`STRING_LIST_ID_EID`) REFERENCES `SKEWED_STRING_LIST` (`STRING_LIST_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SKEWED_VALUES` -- LOCK TABLES `SKEWED_VALUES` WRITE; /*!40000 ALTER TABLE `SKEWED_VALUES` DISABLE KEYS */; /*!40000 ALTER TABLE `SKEWED_VALUES` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SORT_COLS` -- DROP TABLE IF EXISTS `SORT_COLS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SORT_COLS` ( `SD_ID` bigint(20) NOT NULL, `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `ORDER` int(11) NOT NULL, `INTEGER_IDX` int(11) NOT NULL, PRIMARY KEY (`SD_ID`,`INTEGER_IDX`), KEY `SORT_COLS_N49` (`SD_ID`), CONSTRAINT `SORT_COLS_FK1` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SORT_COLS` -- LOCK TABLES `SORT_COLS` WRITE; /*!40000 ALTER TABLE `SORT_COLS` DISABLE KEYS */; /*!40000 ALTER TABLE `SORT_COLS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `TABLE_PARAMS` -- DROP TABLE IF EXISTS `TABLE_PARAMS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `TABLE_PARAMS` ( `TBL_ID` bigint(20) NOT NULL, `PARAM_KEY` varchar(256) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `PARAM_VALUE` varchar(4000) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, PRIMARY KEY (`TBL_ID`,`PARAM_KEY`), KEY `TABLE_PARAMS_N49` (`TBL_ID`), CONSTRAINT `TABLE_PARAMS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `TABLE_PARAMS` -- LOCK TABLES `TABLE_PARAMS` WRITE; /*!40000 ALTER TABLE `TABLE_PARAMS` DISABLE KEYS */; /*!40000 ALTER TABLE `TABLE_PARAMS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `TAB_COL_STATS` -- DROP TABLE IF EXISTS `TAB_COL_STATS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `TAB_COL_STATS` ( `CS_ID` bigint(20) NOT NULL, `AVG_COL_LEN` double DEFAULT NULL, `COLUMN_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `COLUMN_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `DB_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `BIG_DECIMAL_HIGH_VALUE` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `BIG_DECIMAL_LOW_VALUE` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `DOUBLE_HIGH_VALUE` double DEFAULT NULL, `DOUBLE_LOW_VALUE` double DEFAULT NULL, `LAST_ANALYZED` bigint(20) NOT NULL, `LONG_HIGH_VALUE` bigint(20) DEFAULT NULL, `LONG_LOW_VALUE` bigint(20) DEFAULT NULL, `MAX_COL_LEN` bigint(20) DEFAULT NULL, `NUM_DISTINCTS` bigint(20) DEFAULT NULL, `NUM_FALSES` bigint(20) DEFAULT NULL, `NUM_NULLS` bigint(20) NOT NULL, `NUM_TRUES` bigint(20) DEFAULT NULL, `TBL_ID` bigint(20) DEFAULT NULL, `TABLE_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, PRIMARY KEY (`CS_ID`), KEY `TAB_COL_STATS_N49` (`TBL_ID`), CONSTRAINT `TAB_COL_STATS_FK1` FOREIGN KEY (`TBL_ID`) REFERENCES `TBLS` (`TBL_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `TAB_COL_STATS` -- LOCK TABLES `TAB_COL_STATS` WRITE; /*!40000 ALTER TABLE `TAB_COL_STATS` DISABLE KEYS */; /*!40000 ALTER TABLE `TAB_COL_STATS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `TBLS` -- DROP TABLE IF EXISTS `TBLS`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `TBLS` ( `TBL_ID` bigint(20) NOT NULL, `CREATE_TIME` int(11) NOT NULL, `DB_ID` bigint(20) DEFAULT NULL, `LAST_ACCESS_TIME` int(11) NOT NULL, `OWNER` varchar(767) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `RETENTION` int(11) NOT NULL, `SD_ID` bigint(20) DEFAULT NULL, `TBL_NAME` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `TBL_TYPE` varchar(128) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, `VIEW_EXPANDED_TEXT` mediumtext, `VIEW_ORIGINAL_TEXT` mediumtext, PRIMARY KEY (`TBL_ID`), UNIQUE KEY `UNIQUETABLE` (`TBL_NAME`,`DB_ID`), KEY `TBLS_N50` (`SD_ID`), KEY `TBLS_N49` (`DB_ID`), CONSTRAINT `TBLS_FK1` FOREIGN KEY (`DB_ID`) REFERENCES `DBS` (`DB_ID`), CONSTRAINT `TBLS_FK2` FOREIGN KEY (`SD_ID`) REFERENCES `SDS` (`SD_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `TBLS` -- LOCK TABLES `TBLS` WRITE; /*!40000 ALTER TABLE `TBLS` DISABLE KEYS */; /*!40000 ALTER TABLE `TBLS` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `VERSION` -- DROP TABLE IF EXISTS `VERSION`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `VERSION` ( `VER_ID` bigint(20) NOT NULL, `SCHEMA_VERSION` varchar(127) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, `VERSION_COMMENT` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, PRIMARY KEY (`VER_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `VERSION` -- LOCK TABLES `VERSION` WRITE; /*!40000 ALTER TABLE `VERSION` DISABLE KEYS */; INSERT INTO `VERSION` VALUES (1,'1.2.0','Set by MetaStore novemser@127.0.1.1'); /*!40000 ALTER TABLE `VERSION` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping events for database 'metastore' -- -- -- Dumping routines for database 'metastore' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2018-02-28 11:04:04
the_stack
--create table DROP TABLE IF EXISTS partition_unsable_index_1; create table partition_unsable_index_1 ( c1 int, c2 int, c3 date not null ) partition by range (c3) INTERVAL ('1 month') ( PARTITION partition_unsable_index_1_p0 VALUES LESS THAN ('2020-03-01'), PARTITION partition_unsable_index_1_p1 VALUES LESS THAN ('2020-04-01'), PARTITION partition_unsable_index_1_p2 VALUES LESS THAN ('2020-05-01') ); -- create 3 indexes, and specify it's partition name CREATE INDEX idx1_partition_unsable_index_1 on partition_unsable_index_1(c3) local ( partition idx1_partition_unsable_index_1_p1, partition idx1_partition_unsable_index_1_p2, partition idx1_partition_unsable_index_1_p3 ); CREATE INDEX idx2_partition_unsable_index_1 on partition_unsable_index_1(c2, c3) local ( partition idx2_partition_unsable_index_1_p1, partition idx2_partition_unsable_index_1_p2, partition idx2_partition_unsable_index_1_p3 ); CREATE INDEX idx3_partition_unsable_index_1 on partition_unsable_index_1(c1, c2, c3) local ( partition idx3_partition_unsable_index_1_p1, partition idx3_partition_unsable_index_1_p2, partition idx3_partition_unsable_index_1_p3 ); --insert data insert into partition_unsable_index_1 values(7,2,'2020-03-01'); insert into partition_unsable_index_1 values(3,1,'2020-04-01'); insert into partition_unsable_index_1 values(5,3,'2020-05-01'); insert into partition_unsable_index_1 values(7,5,'2020-06-01'); insert into partition_unsable_index_1 values(1,4,'2020-07-01'); -- query all index partitions select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by relname; -- 1. alter index, modify one of it's partition to unusable state ALTER INDEX idx1_partition_unsable_index_1 MODIFY PARTITION idx1_partition_unsable_index_1_p1 UNUSABLE; -- check indunusable info select relname, parttype, partstrategy, boundaries, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; -- rebuild index partition ALTER INDEX idx1_partition_unsable_index_1 REBUILD PARTITION idx1_partition_unsable_index_1_p1; -- check indunusable info select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; --2.ALTER INDEX unusable select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; ALTER INDEX idx1_partition_unsable_index_1 UNUSABLE; select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; ALTER INDEX idx1_partition_unsable_index_1 REBUILD; select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; --test for reindex partition ALTER INDEX idx1_partition_unsable_index_1 UNUSABLE; select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; REINDEX INDEX idx1_partition_unsable_index_1 PARTITION idx1_partition_unsable_index_1_p1; select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; ALTER INDEX idx1_partition_unsable_index_1 REBUILD; select relname, parttype, partstrategy, indisusable from pg_partition where parentid = (select oid from pg_class where relname = 'idx1_partition_unsable_index_1') order by 1; -- 3. alter table, modify one of it's partition's all indexes to unusable state ALTER TABLE partition_unsable_index_1 MODIFY PARTITION partition_unsable_index_1_p0 UNUSABLE LOCAL INDEXES; -- check indunusable info select relname, indisusable from pg_partition where relname = 'idx1_partition_unsable_index_1_p1' or relname = 'idx2_partition_unsable_index_1_p1' or relname = 'idx3_partition_unsable_index_1_p1' or relname = 'p1_partition_unsable_index_1' order by 1; -- rebuild ALTER TABLE partition_unsable_index_1 MODIFY PARTITION partition_unsable_index_1_p0 REBUILD UNUSABLE LOCAL INDEXES; -- check again select relname, indisusable from pg_partition where relname = 'idx1_partition_unsable_index_1_p1' or relname = 'idx2_partition_unsable_index_1_p1' or relname = 'idx3_partition_unsable_index_1_p1' or relname = 'p1_partition_unsable_index_1' order by 1; ALTER INDEX idx1_partition_unsable_index_1 MODIFY PARTITION idx1_partition_unsable_index_1_p1 UNUSABLE; -- idx1_partition_unsable_index_1_p1 is unusable select part.relname, part.indisusable from pg_class class , pg_partition part , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid and part.parentid = ind.indexrelid order by 1; -- can not cluster partition bacause of unusable local index CLUSTER partition_unsable_index_1 PARTITION (partition_unsable_index_1_p0) USING idx1_partition_unsable_index_1; CLUSTER partition_unsable_index_1 USING idx1_partition_unsable_index_1; -- indisclustered is false select class.relname, ind.indisclustered from pg_class class , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid order by 2; -- cluster ok ALTER INDEX idx1_partition_unsable_index_1 REBUILD; CLUSTER partition_unsable_index_1 USING idx1_partition_unsable_index_1; -- idx1_partition_unsable_index_1_p1 is usable select part.relname, part.indisusable from pg_class class , pg_partition part , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid and part.parentid = ind.indexrelid order by 1; -- indisclustered is true select class.relname, ind.indisclustered from pg_class class , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid order by 2; -- cluster other index ALTER INDEX idx2_partition_unsable_index_1 MODIFY PARTITION idx2_partition_unsable_index_1_p1 UNUSABLE; ALTER INDEX idx2_partition_unsable_index_1 REBUILD; CLUSTER partition_unsable_index_1 USING idx2_partition_unsable_index_1; select class.relname, ind.indisclustered from pg_class class , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid order by 2; -- cluster a partition ALTER INDEX idx1_partition_unsable_index_1 MODIFY PARTITION idx1_partition_unsable_index_1_p1 UNUSABLE; ALTER INDEX idx1_partition_unsable_index_1 REBUILD PARTITION idx1_partition_unsable_index_1_p1; CLUSTER partition_unsable_index_1 PARTITION (partition_unsable_index_1_p0) USING idx1_partition_unsable_index_1; CLUSTER partition_unsable_index_1 USING idx1_partition_unsable_index_1; select class.relname, ind.indisclustered from pg_class class , pg_index ind where class.relname = 'partition_unsable_index_1' and ind.indrelid = class.oid order by 2; --5.2 merge (not support yet, keep the case hear for support in the future) -- merge failed due to unusable index partition ALTER INDEX idx1_partition_unsable_index_1 MODIFY PARTITION idx1_partition_unsable_index_1_p1 UNUSABLE; ALTER TABLE partition_unsable_index_1 MERGE PARTITIONS partition_unsable_index_1_p0, p2_partition_unsable_index_3 INTO PARTITION px_partition_unsable_index_3; --rebuild unusable index partition ALTER INDEX idx1_partition_unsable_index_1 REBUILD PARTITION idx1_partition_unsable_index_1_p1; --5.3 exchange -- create plain table and index CREATE TABLE table_unusable_index_exchange (c1 int, c2 int, c3 date not null); CREATE INDEX idx1_table_unusable_index_exchange on table_unusable_index_exchange(c3); CREATE INDEX idx2_table_unusable_index_exchange on table_unusable_index_exchange(c2, c3); CREATE INDEX idx3_table_unusable_index_exchange on table_unusable_index_exchange(c1, c2, c3); --- unusable non-partitioned-index ALTER INDEX idx1_table_unusable_index_exchange UNUSABLE; ALTER TABLE partition_unsable_index_1 EXCHANGE PARTITION (partition_unsable_index_1_p0) WITH TABLE table_unusable_index_exchange; ALTER INDEX idx1_table_unusable_index_exchange REBUILD; -- unusable partitioned-index ALTER INDEX idx1_partition_unsable_index_1 UNUSABLE; ALTER TABLE partition_unsable_index_1 EXCHANGE PARTITION (partition_unsable_index_1_p0) WITH TABLE table_unusable_index_exchange; ALTER INDEX idx1_partition_unsable_index_1 REBUILD; -- modify one index partition unusable -- exchange failed due to unusable index partition ALTER INDEX idx1_partition_unsable_index_1 MODIFY PARTITION idx1_partition_unsable_index_1_p1 UNUSABLE; ALTER TABLE partition_unsable_index_1 EXCHANGE PARTITION (partition_unsable_index_1_p0) WITH TABLE table_unusable_index_exchange; -- exchange ok ALTER INDEX idx1_partition_unsable_index_1 REBUILD PARTITION idx1_partition_unsable_index_1_p1; ALTER TABLE partition_unsable_index_1 EXCHANGE PARTITION (partition_unsable_index_1_p0) WITH TABLE table_unusable_index_exchange; -- clean table_unusable_index_exchange DROP TABLE table_unusable_index_exchange; DROP TABLE partition_unsable_index_1; --6. index and unique index check create table partition_unsable_index_1 ( c1 int, c2 int, c3 date not null ) partition by range (c3) INTERVAL ('1 month') ( PARTITION partition_unsable_index_1_p0 VALUES LESS THAN ('2020-03-01'), PARTITION partition_unsable_index_1_p1 VALUES LESS THAN ('2020-04-01'), PARTITION partition_unsable_index_1_p2 VALUES LESS THAN ('2020-05-01') ); -- create a unique index CREATE UNIQUE INDEX idx_unique_partition_unsable_index_1 on partition_unsable_index_1(c2, c3) LOCAL ( partition idx_unique_partition_unsable_index_1_p1, partition idx_unique_partition_unsable_index_1_p2, partition idx_unique_partition_unsable_index_1_p3 ); --insert duplicated rows should report error insert into partition_unsable_index_1 values(3,3,'2020-02-01'); insert into partition_unsable_index_1 values(5,3,'2020-02-01'); -- fail -- set local index unusable ALTER INDEX idx_unique_partition_unsable_index_1 MODIFY PARTITION idx_unique_partition_unsable_index_1_p1 UNUSABLE; -- bypass the unique index check insert into partition_unsable_index_1 values(5,3,'2020-02-01'); -- success --but report unique check error here ALTER INDEX idx_unique_partition_unsable_index_1 REBUILD PARTITION idx_unique_partition_unsable_index_1_p1; -- cleanup DROP INDEX idx_unique_partition_unsable_index_1; insert into partition_unsable_index_1 values(5,3,'2020-02-01'); -- success --cleanup DROP TABLE partition_unsable_index_1;
the_stack
-- 2017-12-29T13:45:18.784 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544399 ; -- 2017-12-29T13:45:18.795 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544400 ; -- 2017-12-29T13:45:18.797 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544411 ; -- 2017-12-29T13:45:18.798 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544408 ; -- 2017-12-29T13:45:18.799 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410 ; -- 2017-12-29T13:45:18.800 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544412 ; -- 2017-12-29T13:45:18.801 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544401 ; -- 2017-12-29T13:45:18.803 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544416 ; -- 2017-12-29T13:45:18.804 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544405 ; -- 2017-12-29T13:45:18.805 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-12-29 13:45:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547353 ; -- 2017-12-29T13:49:42.585 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-12-29 13:49:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544399 ; -- 2017-12-29T13:49:46.208 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-12-29 13:49:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544400 ; -- 2017-12-29T13:49:48.185 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-12-29 13:49:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544411 ; -- 2017-12-29T13:49:49.585 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-12-29 13:49:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544408 ; -- 2017-12-29T13:49:51.268 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-12-29 13:49:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410 ; -- 2017-12-29T13:49:54.720 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-12-29 13:49:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544401 ; -- 2017-12-29T13:50:04.104 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-12-29 13:50:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544405 ; -- 2017-12-29T13:50:07.912 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-12-29 13:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544403 ; -- 2017-12-29T13:50:11.977 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-12-29 13:50:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544404 ; -- 2017-12-29T13:50:13.806 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2017-12-29 13:50:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544413 ; -- 2017-12-29T13:50:16.336 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2017-12-29 13:50:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544415 ; -- 2017-12-29T13:50:20.051 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2017-12-29 13:50:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544409 ; -- 2017-12-29T13:50:22.320 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2017-12-29 13:50:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544406 ; -- 2017-12-29T13:50:24.272 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2017-12-29 13:50:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544414 ; -- 2017-12-29T13:50:26.175 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=200,Updated=TO_TIMESTAMP('2017-12-29 13:50:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544407 ; -- 2017-12-29T13:50:31.872 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=210,Updated=TO_TIMESTAMP('2017-12-29 13:50:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547353 ; -- 2017-12-29T13:50:35.977 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=220,Updated=TO_TIMESTAMP('2017-12-29 13:50:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547354 ; -- 2017-12-29T13:51:08.717 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2017-12-29 13:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544413 ; -- 2017-12-29T13:54:42.787 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Zeile',Updated=TO_TIMESTAMP('2017-12-29 13:54:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53485 ; -- 2017-12-29T13:54:56.194 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Zeile',Updated=TO_TIMESTAMP('2017-12-29 13:54:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544397 ; -- 2017-12-29T13:55:09.345 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-12-29 13:55:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544400 ; -- 2017-12-29T13:56:00.160 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Ist %',Updated=TO_TIMESTAMP('2017-12-29 13:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544408 ; -- 2017-12-29T13:56:05.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Menge %',Updated=TO_TIMESTAMP('2017-12-29 13:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410 ; -- 2017-12-29T13:56:14.459 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='% Menge',Updated=TO_TIMESTAMP('2017-12-29 13:56:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410 ; -- 2017-12-29T13:56:22.925 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-12-29 13:56:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410 ; -- 2017-12-29T13:56:26.558 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-12-29 13:56:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544412 ; -- 2017-12-29T13:56:37.807 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ist %',Updated=TO_TIMESTAMP('2017-12-29 13:56:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53496 ; -- 2017-12-29T13:56:52.306 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='% Menge',Updated=TO_TIMESTAMP('2017-12-29 13:56:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53499 ; -- 2017-12-29T13:59:26.001 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-29 13:59:26','YYYY-MM-DD HH24:MI:SS'),Name='Line' WHERE AD_Field_ID=53485 AND AD_Language='en_US' ; -- 2017-12-29T13:59:42.571 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-29 13:59:42','YYYY-MM-DD HH24:MI:SS'),Name='Is %' WHERE AD_Field_ID=53496 AND AD_Language='en_US' ; -- 2017-12-29T13:59:57.018 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-29 13:59:57','YYYY-MM-DD HH24:MI:SS'),Name='% Qty' WHERE AD_Field_ID=53499 AND AD_Language='en_US' ; -- 2017-12-29T14:00:12.111 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-29 14:00:12','YYYY-MM-DD HH24:MI:SS'),Name='% Scrap' WHERE AD_Field_ID=53502 AND AD_Language='en_US' ; -- 2017-12-29T14:00:25.044 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-29 14:00:25','YYYY-MM-DD HH24:MI:SS'),Name='Qty' WHERE AD_Field_ID=53498 AND AD_Language='en_US' ;
the_stack
static sal_uInt16 const aImplBig5Hkscs2001ToUnicodeData[] = { /* row 0: --- */ /* row 1: --- */ /* row 2: --- */ /* row 3: --- */ /* row 4: --- */ /* row 5: --- */ /* row 6: --- */ /* row 7: --- */ /* row 8: --- */ /* row 9: --- */ /* row 10: --- */ /* row 11: --- */ /* row 12: --- */ /* row 13: --- */ /* row 14: --- */ /* row 15: --- */ /* row 16: --- */ /* row 17: --- */ /* row 18: --- */ /* row 19: --- */ /* row 20: --- */ /* row 21: --- */ /* row 22: --- */ /* row 23: --- */ /* row 24: --- */ /* row 25: --- */ /* row 26: --- */ /* row 27: --- */ /* row 28: --- */ /* row 29: --- */ /* row 30: --- */ /* row 31: --- */ /* row 32: --- */ /* row 33: --- */ /* row 34: --- */ /* row 35: --- */ /* row 36: --- */ /* row 37: --- */ /* row 38: --- */ /* row 39: --- */ /* row 40: --- */ /* row 41: --- */ /* row 42: --- */ /* row 43: --- */ /* row 44: --- */ /* row 45: --- */ /* row 46: --- */ /* row 47: --- */ /* row 48: --- */ /* row 49: --- */ /* row 50: --- */ /* row 51: --- */ /* row 52: --- */ /* row 53: --- */ /* row 54: --- */ /* row 55: --- */ /* row 56: --- */ /* row 57: --- */ /* row 58: --- */ /* row 59: --- */ /* row 60: --- */ /* row 61: --- */ /* row 62: --- */ /* row 63: --- */ /* row 64: --- */ /* row 65: --- */ /* row 66: --- */ /* row 67: --- */ /* row 68: --- */ /* row 69: --- */ /* row 70: --- */ /* row 71: --- */ /* row 72: --- */ /* row 73: --- */ /* row 74: --- */ /* row 75: --- */ /* row 76: --- */ /* row 77: --- */ /* row 78: --- */ /* row 79: --- */ /* row 80: --- */ /* row 81: --- */ /* row 82: --- */ /* row 83: --- */ /* row 84: --- */ /* row 85: --- */ /* row 86: --- */ /* row 87: --- */ /* row 88: --- */ /* row 89: --- */ /* row 90: --- */ /* row 91: --- */ /* row 92: --- */ /* row 93: --- */ /* row 94: --- */ /* row 95: --- */ /* row 96: --- */ /* row 97: --- */ /* row 98: --- */ /* row 99: --- */ /* row 100: --- */ /* row 101: --- */ /* row 102: --- */ /* row 103: --- */ /* row 104: --- */ /* row 105: --- */ /* row 106: --- */ /* row 107: --- */ /* row 108: --- */ /* row 109: --- */ /* row 110: --- */ /* row 111: --- */ /* row 112: --- */ /* row 113: --- */ /* row 114: --- */ /* row 115: --- */ /* row 116: --- */ /* row 117: --- */ /* row 118: --- */ /* row 119: --- */ /* row 120: --- */ /* row 121: --- */ /* row 122: --- */ /* row 123: --- */ /* row 124: --- */ /* row 125: --- */ /* row 126: --- */ /* row 127: --- */ /* row 128: --- */ /* row 129: --- */ /* row 130: --- */ /* row 131: --- */ /* row 132: --- */ /* row 133: --- */ /* row 134: --- */ /* row 135: --- */ /* row 136 */ 64 | (170 << 8), /* first, last */ 0xF303,0xF304,0xF305,0xF306,0xF307,0xF308, 0xF309,0xF30A,0xF30B,0xF30C,0xF30D,0xF30E,0xF30F,0xF310,0xF311,0xF312, 0xF313,0xF314,0xF315,0xF316,0xF317,0xF318,0x0100,0x00C1,0x01CD,0x00C0, 0x0112,0x00C9,0x011A,0x00C8,0x014C,0x00D3,0x01D1,0x00D2,0xF325,0x1EBE, 0xF327,0x1EC0,0x00CA,0x0101,0x00E1,0x01CE,0x00E0,0x0251,0x0113,0x00E9, 0x011B,0x00E8,0x012B,0x00ED,0x01D0,0x00EC,0x014D,0x00F3,0x01D2,0x00F2, 0x016B,0x00FA,0x01D4,0x00F9,0x01D6,0x01D8,0x01DA,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x01DC,0x00FC,0xF344,0x1EBF,0xF346,0x1EC1,0x00EA,0x0261,0xF34A, 0xF34B, /* row 137 */ 64 | (254 << 8), /* first, last */ 0xF3A0,0xF3A1,0xffff,0x650A,0xffff,0xffff, 0x4E3D,0x6EDD,0x9D4E,0x91DF,0xffff,0xffff,0xF3AC,0x6491,0x4F1A,0x4F28, 0x4FA8,0x5156,0x5174,0x519C,0x51E4,0x52A1,0x52A8,0x533B,0x534E,0x53D1, 0x53D8,0x56E2,0x58F0,0x5904,0x5907,0x5932,0x5934,0x5B66,0x5B9E,0x5B9F, 0x5C9A,0x5E86,0x603B,0x6589,0x67FE,0x6804,0x6865,0x6D4E,0x70BC,0x7535, 0x7EA4,0x7EAC,0x7EBA,0x7EC7,0x7ECF,0x7EDF,0x7F06,0x7F37,0x827A,0x82CF, 0x836F,0x89C6,0x8BBE,0x8BE2,0x8F66,0x8F67,0x8F6E,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x7411,0x7CFC,0x7DCD,0x6946,0x7AC9,0x5227,0xffff,0xffff,0xffff, 0xffff,0x918C,0x78B8,0x915E,0x80BC,0xffff,0x8D0B,0x80F6,0xF3F0,0xffff, 0xffff,0x809F,0x9EC7,0x4CCD,0x9DC9,0x9E0C,0x4C3E,0xF3F9,0xF3FA,0x9E0A, 0xF3FC,0x35C1,0xffff,0x6E9A,0x823E,0x7519,0xffff,0x4911,0x9A6C,0x9A8F, 0x9F99,0x7987,0xF408,0xF409,0xF40A,0xF40B,0x4E24,0x4E81,0x4E80,0x4E87, 0x4EBF,0x4EEB,0x4F37,0x344C,0x4FBD,0x3E48,0x5003,0x5088,0x347D,0x3493, 0x34A5,0x5186,0x5905,0x51DB,0x51FC,0x5205,0x4E89,0x5279,0x5290,0x5327, 0x35C7,0x53A9,0x3551,0x53B0,0x3553,0x53C2,0x5423,0x356D,0x3572,0x3681, 0x5493,0x54A3,0x54B4,0x54B9,0x54D0,0x54EF,0x5518,0x5523,0x5528,0x3598, 0x553F,0x35A5,0x35BF,0x55D7,0x35C5, /* row 138 */ 64 | (254 << 8), /* first, last */ 0xF43D,0x5525,0xffff,0xF440,0xF441,0xF442, 0x5590,0xF444,0x39EC,0xF446,0x8E46,0xF448,0xF449,0x4053,0xF44B,0x777A, 0xF44D,0x3A34,0x47D5,0xF450,0xF451,0xF452,0x64DD,0xF454,0xF455,0xF456, 0xF457,0x648D,0x8E7E,0xF45A,0xF45B,0xF45C,0xF45D,0xF45E,0xF45F,0xffff, 0xF461,0xF462,0xF463,0x47F4,0xF465,0xF466,0x9AB2,0x3A67,0xF469,0x3FED, 0x3506,0xF46C,0xF46D,0xF46E,0xF46F,0x9D6E,0x9815,0xffff,0x43D9,0xF474, 0x64B4,0x54E3,0xF477,0xF478,0xF479,0x39FB,0xF47B,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xF47C,0xF47D,0xF47E,0x64EA,0xF480,0xF481,0x8E68,0xF483,0xF484, 0xF485,0xffff,0x480B,0xF488,0x3FFA,0x5873,0xF48B,0xffff,0xF48D,0xF48E, 0xF48F,0xF490,0xF491,0x5579,0x40BB,0x43BA,0xffff,0x4AB4,0xF497,0xF498, 0x81AA,0x98F5,0xF49B,0x6379,0x39FE,0xF49E,0x8DC0,0x56A1,0x647C,0x3E43, 0xffff,0xF4A4,0xF4A5,0xF4A6,0xF4A7,0xffff,0xF4A9,0xF4AA,0x3992,0x3A06, 0xF4AD,0x3578,0xF4AF,0xF4B0,0x5652,0xF4B2,0xF4B3,0xF4B4,0x34BC,0x6C3D, 0xF4B7,0xffff,0xffff,0xF4BA,0xF4BB,0xF4BC,0xF4BD,0xF4BE,0xF4BF,0xF4C0, 0xF4C1,0x7F93,0xF4C3,0xF4C4,0xF4C5,0x35FB,0xF4C7,0xF4C8,0xF4C9,0xF4CA, 0x3F93,0xF4CC,0xF4CD,0xF4CE,0xF4CF,0xffff,0xF4D1,0xF4D2,0xF4D3,0xF4D4, 0xF4D5,0x3FF9,0xF4D7,0x6432,0xF4D9, /* row 139 */ 64 | (253 << 8), /* first, last */ 0xF4DA,0xF4DB,0xF4DC,0xF4DD,0xF4DE,0xF4DF, 0xF4E0,0x3A18,0xF4E2,0xF4E3,0xF4E4,0xF4E5,0xF4E6,0xF4E7,0xF4E8,0xF4E9, 0x95AA,0x54CC,0x82C4,0x55B9,0xffff,0xF4EF,0x9C26,0x9AB6,0xF4F2,0xF4F3, 0x7140,0x816D,0x80EC,0x5C1C,0xF4F8,0x8134,0x3797,0x535F,0xF4FC,0x91B6, 0xF4FE,0xF4FF,0xF500,0xF501,0x35DD,0xF503,0x3609,0xF505,0x56AF,0xF507, 0xF508,0xF509,0xF50A,0xF50B,0xF50C,0xF50D,0xF50E,0xF50F,0xF510,0xF511, 0x5A54,0xF513,0xF514,0xF515,0xF516,0x579C,0xF518,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xF519,0xF51A,0xF51B,0xF51C,0xF51D,0x3703,0xF51F,0xF520,0xF521, 0xF522,0xF523,0xF524,0xF525,0xF526,0x5899,0x5268,0x361A,0xF52A,0x7BB2, 0x5B68,0x4800,0x4B2C,0x9F27,0x49E7,0x9C1F,0x9B8D,0xF533,0xF534,0x55FB, 0x35F2,0x5689,0x4E28,0x5902,0xF53A,0xF53B,0x9751,0xF53D,0x4E5B,0x4EBB, 0x353E,0x5C23,0x5F51,0x5FC4,0x38FA,0x624C,0x6535,0x6B7A,0x6C35,0x6C3A, 0x706C,0x722B,0x4E2C,0x72AD,0xF54E,0x7F52,0x793B,0x7CF9,0x7F53,0xF553, 0x34C1,0xffff,0xF556,0x8002,0x8080,0xF559,0xF55A,0x535D,0x8864,0x89C1, 0xF55E,0x8BA0,0x8D1D,0x9485,0x9578,0x957F,0x95E8,0xF565,0x97E6,0x9875, 0x98CE,0x98DE,0x9963,0xF56B,0x9C7C,0x9E1F,0x9EC4,0x6B6F,0xF907,0x4E37, 0xF572,0x961D,0x6237,0x94A2, /* row 140 */ 64 | (220 << 8), /* first, last */ 0x503B,0x6DFE,0xF579,0xF57A,0x3DC9,0x888F, 0xF57D,0x7077,0x5CF5,0x4B20,0xF581,0x3559,0xF583,0x6122,0xF585,0x8FA7, 0x91F6,0x7191,0x6719,0x73BA,0xF58B,0xF58C,0x3C8B,0xF58E,0x4B10,0x78E4, 0x7402,0x51AE,0xF593,0x4009,0x6A63,0xF596,0x4223,0x860F,0xffff,0x7A2A, 0xF59B,0xF59C,0x9755,0x704D,0x5324,0xF5A0,0x93F4,0x76D9,0xF5A3,0xF5A4, 0x77DD,0x4EA3,0x4FF0,0x50BC,0x4E2F,0x4F17,0xF5AB,0x5434,0x7D8B,0x5892, 0x58D0,0xF5B0,0x5E92,0x5E99,0x5FC2,0xF5B4,0x658B,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xF5B6,0x6919,0x6A43,0xF5B9,0x6CFF,0xffff,0x7200,0xF5BD,0x738C, 0x3EDB,0xF5C0,0x5B15,0x74B9,0x8B83,0xF5C4,0xF5C5,0x7A93,0x7BEC,0x7CC3, 0x7E6C,0x82F8,0x8597,0xF5CC,0x8890,0xF5CE,0x8EB9,0xF5D0,0x8FCF,0x855F, 0x99E0,0x9221,0xF5D5,0xF5D6,0xF5D7,0x4071,0x42A2,0x5A1A,0xffff,0xffff, 0xffff,0x9868,0x676B,0x4276,0x573D,0xffff,0x85D6,0xF5E4,0x82BF,0xF5E6, 0x4C81,0xF5E8,0x5D7B,0xF5EA,0xF5EB,0xF5EC,0xF5ED,0x5B96,0xF5EF,0xffff, 0x7E5B, /* row 141 */ 96 | (254 << 8), /* first, last */ 0x5D3E,0x5D48,0x5D56,0x3DFC, 0x380F,0x5DA4,0x5DB9,0x3820,0x3838,0x5E42,0x5EBD,0x5F25,0x5F83,0x3908, 0x3914,0x393F,0x394D,0x60D7,0x613D,0x5CE5,0x3989,0x61B7,0x61B9,0x61CF, 0x39B8,0x622C,0x6290,0x62E5,0x6318,0x39F8,0x56B1,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x3A03,0x63E2,0x63FB,0x6407,0x645A,0x3A4B,0x64C0,0x5D15,0x5621, 0x9F9F,0x3A97,0x6586,0x3ABD,0x65FF,0x6653,0x3AF2,0x6692,0x3B22,0x6716, 0x3B42,0x67A4,0x6800,0x3B58,0x684A,0x6884,0x3B72,0x3B71,0x3B7B,0x6909, 0x6943,0x725C,0x6964,0x699F,0x6985,0x3BBC,0x69D6,0x3BDD,0x6A65,0x6A74, 0x6A71,0x6A82,0x3BEC,0x6A99,0x3BF2,0x6AAB,0x6AB5,0x6AD4,0x6AF6,0x6B81, 0x6BC1,0x6BEA,0x6C75,0x6CAA,0x3CCB,0x6D02,0x6D06,0x6D26,0x6D81,0x3CEF, 0x6DA4,0x6DB1,0x6E15,0x6E18,0x6E29,0x6E86,0xF694,0x6EBB,0x6EE2,0x6EDA, 0x9F7F,0x6EE8,0x6EE9,0x6F24,0x6F34,0x3D46,0xF69E,0x6F81,0x6FBE,0x3D6A, 0x3D75,0x71B7,0x5C99,0x3D8A,0x702C,0x3D91,0x7050,0x7054,0x706F,0x707F, 0x7089,0xF6AD,0x43C1,0x35F1,0xF6B0, /* row 142 */ 64 | (254 << 8), /* first, last */ 0xE311,0x57BE,0xE313,0x713E,0xE315,0x364E, 0x69A2,0xE318,0x5B74,0x7A49,0xE31B,0xE31C,0x7A65,0x7A7D,0xE31F,0x7ABB, 0x7AB0,0x7AC2,0x7AC3,0x71D1,0xE325,0x41CA,0x7ADA,0x7ADD,0x7AEA,0x41EF, 0x54B2,0xE32C,0x7B0B,0x7B55,0x7B29,0xE330,0xE331,0x7BA2,0x7B6F,0x839C, 0xE335,0xE336,0x7BD0,0x8421,0x7B92,0x7BB8,0xE33B,0x3DAD,0xE33D,0x8492, 0x7BFA,0x7C06,0x7C35,0xE342,0x7C44,0x7C83,0xE345,0x7CA6,0x667D,0xE348, 0x7CC9,0x7CC7,0x7CE6,0x7C74,0x7CF3,0x7CF5,0x7CCE,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x7E67,0x451D,0xE352,0x7D5D,0xE354,0x748D,0x7D89,0x7DAB,0x7135, 0x7DB3,0x7DD2,0xE35B,0xE35C,0x7DE4,0x3D13,0x7DF5,0xE360,0x7DE5,0xE362, 0x7E1D,0xE364,0xE365,0x7E6E,0x7E92,0x432B,0x946C,0x7E27,0x7F40,0x7F41, 0x7F47,0x7936,0xE36F,0x99E1,0x7F97,0xE372,0x7FA3,0xE374,0xE375,0x455C, 0xE377,0x4503,0xE379,0x7FFA,0xE37B,0x8005,0x8008,0x801D,0x8028,0x802F, 0xE381,0xE382,0x803B,0x803C,0x8061,0xE386,0x4989,0xE388,0xE389,0xE38A, 0x6725,0x80A7,0xE38D,0x8107,0x811A,0x58B0,0xE391,0x6C7F,0xE393,0xE394, 0x64E7,0xE396,0x8218,0xE398,0x6A53,0xE39A,0xE39B,0x447A,0x8229,0xE39E, 0xE39F,0xE3A0,0x4FF9,0xE3A2,0x84E2,0x8362,0xE3A5,0xE3A6,0xE3A7,0xE3A8, 0xE3A9,0x82AA,0x691B,0xE3AC,0x41DB, /* row 143 */ 64 | (254 << 8), /* first, last */ 0x854B,0x82D0,0x831A,0xE3B1,0xE3B2,0x36C1, 0xE3B4,0xE3B5,0x827B,0x82E2,0x8318,0xE3B9,0xE3BA,0xE3BB,0xE3BC,0xE3BD, 0x3DBF,0x831D,0x55EC,0x8385,0x450B,0xE3C3,0x83AC,0x83C1,0x83D3,0x347E, 0xE3C8,0x6A57,0x855A,0x3496,0xE3CC,0xE3CD,0x8458,0xE3CF,0x8471,0x3DD3, 0x44E4,0x6AA7,0x844A,0xE3D5,0x7958,0x84A8,0xE3D8,0xE3D9,0xE3DA,0x84DE, 0x840F,0x8391,0x44A0,0x8493,0x84E4,0xE3E1,0x4240,0xE3E3,0x4543,0x8534, 0x5AF2,0xE3E7,0x4527,0x8573,0x4516,0x67BF,0x8616,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE3ED,0xE3EE,0x85C1,0xE3F0,0x8602,0xE3F2,0xE3F3,0xE3F4,0x456A, 0x8628,0x3648,0xE3F8,0x53F7,0xE3FA,0x867E,0x8771,0xE3FD,0x87EE,0xE3FF, 0x87B1,0x87DA,0x880F,0x5661,0x866C,0x6856,0x460F,0x8845,0x8846,0xE409, 0xE40A,0xE40B,0x885E,0x889C,0x465B,0x88B4,0x88B5,0x63C1,0x88C5,0x7777, 0xE414,0x8987,0x898A,0x89A6,0x89A9,0x89A7,0x89BC,0xE41B,0x89E7,0xE41D, 0xE41E,0x8A9C,0x7793,0x91FE,0x8A90,0xE423,0x7AE9,0xE425,0xE426,0x4713, 0xE428,0x717C,0x8B0C,0x8B1F,0xE42C,0xE42D,0x8B3F,0x8B4C,0x8B4D,0x8AA9, 0xE432,0x8B90,0x8B9B,0x8AAF,0xE436,0x4615,0x884F,0x8C9B,0xE43A,0xE43B, 0xE43C,0x3725,0xE43E,0x8CD6,0xE440,0xE441,0x8D12,0x8D03,0xE444,0x8CDB, 0x705C,0x8D11,0xE448,0x3ED0,0x8D77, /* row 144 */ 64 | (254 << 8), /* first, last */ 0x8DA9,0xE44C,0xE44D,0xE44E,0x3B7C,0xE450, 0xE451,0x7AE7,0x8EAD,0x8EB6,0x8EC3,0x92D4,0x8F19,0x8F2D,0xE459,0xE45A, 0x8FA5,0x9303,0xE45D,0xE45E,0x8FB3,0x492A,0xE461,0xE462,0xE463,0x5EF8, 0xE465,0x8FF9,0xE467,0xE468,0xE469,0xE46A,0x3980,0xE46C,0x9037,0xE46E, 0xE46F,0x9061,0xE471,0xE472,0x90A8,0xE474,0x90C4,0xE476,0x90AE,0x90FD, 0x9167,0x3AF0,0x91A9,0x91C4,0x7CAC,0xE47E,0xE47F,0x920E,0x6C9F,0x9241, 0x9262,0xE484,0x92B9,0xE486,0xE487,0xE488,0xE489,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE48A,0x932C,0x936B,0xE48D,0xE48E,0x708F,0x5AC3,0xE491,0xE492, 0x4965,0x9244,0xE495,0xE496,0xE497,0x9373,0x945B,0x8EBC,0x9585,0x95A6, 0x9426,0x95A0,0x6FF6,0x42B9,0xE4A1,0xE4A2,0xE4A3,0xE4A4,0x49DF,0x6C1C, 0x967B,0x9696,0x416C,0x96A3,0xE4AB,0x61DA,0x96B6,0x78F5,0xE4AF,0x96BD, 0x53CC,0x49A1,0xE4B3,0xE4B4,0xE4B5,0xE4B6,0xE4B7,0xE4B8,0xE4B9,0xE4BA, 0x9731,0x8642,0x9736,0x4A0F,0x453D,0x4585,0xE4C1,0x7075,0x5B41,0x971B, 0x975C,0xE4C6,0x9757,0x5B4A,0xE4C9,0x975F,0x9425,0x50D0,0xE4CD,0xE4CE, 0x9789,0x979F,0x97B1,0x97BE,0x97C0,0x97D2,0x97E0,0xE4D6,0x97EE,0x741C, 0xE4D9,0x97FF,0x97F5,0xE4DC,0xE4DD,0x4AD1,0x9834,0x9833,0x984B,0x9866, 0x3B0E,0xE4E4,0x3D51,0xE4E6,0xE4E7, /* row 145 */ 64 | (254 << 8), /* first, last */ 0xE4E8,0x98CA,0x98B7,0x98C8,0x98C7,0x4AFF, 0xE4EE,0xE4EF,0x55B0,0x98E1,0x98E6,0x98EC,0x9378,0x9939,0xE4F6,0x4B72, 0xE4F8,0xE4F9,0x99F5,0x9A0C,0x9A3B,0x9A10,0x9A58,0xE4FF,0x36C4,0xE501, 0xE502,0x9AE0,0x9AE2,0xE505,0x9AF4,0x4C0E,0x9B14,0x9B2D,0xE50A,0x5034, 0x9B34,0xE50D,0x38C3,0xE50F,0x9B50,0x9B40,0xE512,0x5A45,0xE514,0x9B8E, 0xE516,0x9C02,0x9BFF,0x9C0C,0xE51A,0x9DD4,0xE51C,0xE51D,0xE51E,0xE51F, 0xE520,0xE521,0x9D7E,0x9D83,0xE524,0x9E0E,0x6888,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x9DC4,0xE528,0xE529,0xE52A,0xE52B,0xE52C,0x9D39,0xE52E,0xE52F, 0x9E90,0x9E95,0x9E9E,0x9EA2,0x4D34,0x9EAA,0x9EAF,0xE537,0x9EC1,0x3B60, 0x39E5,0x3D1D,0x4F32,0x37BE,0xE53E,0x9F02,0x9F08,0x4B96,0x9424,0xE543, 0x9F17,0x9F16,0x9F39,0x569F,0x568A,0x9F45,0x99B8,0xE54B,0x97F2,0x847F, 0x9F62,0x9F69,0x7ADC,0x9F8E,0x7216,0x4BBE,0xE554,0xE555,0x7177,0xE557, 0xE558,0xE559,0x739E,0xE55B,0xE55C,0x799F,0xE55E,0xE55F,0x9369,0x93F3, 0xE562,0x92EC,0x9381,0x93CB,0xE566,0xE567,0x7217,0x3EEB,0x7772,0x7A43, 0x70D0,0xE56D,0xE56E,0x717E,0xE570,0x70A3,0xE572,0xE573,0x3EC7,0xE575, 0xE576,0xE577,0x3722,0xE579,0xE57A,0x36E1,0xE57C,0xE57D,0xE57E,0x3723, 0xE580,0x575B,0xE582,0xE583,0xE584, /* row 146 */ 64 | (254 << 8), /* first, last */ 0xE585,0xE586,0x8503,0xE588,0x8503,0x8455, 0xE58B,0xE58C,0xE58D,0xE58E,0xE58F,0xE590,0x44F4,0xE592,0xE593,0xE594, 0x67F9,0x3733,0x3C15,0x3DE7,0x586C,0xE59A,0x6810,0x4057,0xE59D,0xE59E, 0xE59F,0xE5A0,0xE5A1,0x54CB,0x569E,0xE5A4,0x5692,0xE5A6,0xE5A7,0xE5A8, 0x93C6,0xE5AA,0x939C,0x4EF8,0x512B,0x3819,0xE5AF,0x4EBC,0xE5B1,0xE5B2, 0x4F4B,0x4F8A,0xE5B5,0x5A68,0xE5B7,0xE5B8,0x3999,0xE5BA,0xE5BB,0x3435, 0x4F29,0xE5BE,0xE5BF,0xE5C0,0x8ADA,0xE5C2,0x4E98,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x50CD,0x510D,0x4FA2,0x4F03,0xE5C8,0xE5C9,0x4F42,0x502E,0x506C, 0x5081,0x4FCC,0x4FE5,0x5058,0x50FC,0x5159,0x515B,0x515D,0x515E,0x6E76, 0xE5D7,0xE5D8,0xE5D9,0x6D72,0xE5DB,0xE5DC,0x51A8,0x51C3,0xE5DF,0x44DD, 0xE5E1,0xE5E2,0xE5E3,0x8D7A,0xE5E5,0xE5E6,0x5259,0x52A4,0xE5E9,0x52E1, 0x936E,0x467A,0x718C,0xE5EE,0xE5EF,0xE5F0,0xE5F1,0x69D1,0xE5F3,0x7479, 0x3EDE,0x7499,0x7414,0x7456,0x7398,0x4B8E,0xE5FB,0xE5FC,0x53D0,0x3584, 0x720F,0xE600,0x55B4,0xE602,0x54CD,0xE604,0x571D,0x925D,0x96F4,0x9366, 0x57DD,0x578D,0x577F,0x363E,0x58CB,0x5A99,0xE60F,0xE610,0xE611,0xE612, 0x5A2C,0x59B8,0x928F,0x5A7E,0x5ACF,0x5A12,0xE619,0xE61A,0xE61B,0xE61C, 0x36F5,0x6D05,0x7443,0x5A21,0xE621, /* row 147 */ 64 | (254 << 8), /* first, last */ 0x5A81,0xE623,0xE624,0x93E0,0x748C,0xE627, 0x7105,0x4972,0x9408,0xE62B,0x93BD,0x37A0,0x5C1E,0x5C9E,0x5E5E,0x5E48, 0xE632,0xE633,0xE634,0x5ECD,0x5B4F,0xE637,0xE638,0x3701,0xE63A,0x36DD, 0xE63C,0x36D3,0x812A,0xE63F,0xE640,0xE641,0xE642,0x5F0C,0x5F0E,0xE645, 0xE646,0x5A6B,0xE648,0x5B44,0x8614,0xE64B,0x8860,0x607E,0xE64E,0xE64F, 0x5FDB,0x3EB8,0xE652,0xE653,0xE654,0xE655,0x61C0,0xE657,0xE658,0xE659, 0x6199,0x6198,0x6075,0xE65D,0xE65E,0xE65F,0xE660,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x6471,0xE662,0xE663,0x3A29,0xE665,0xE666,0xE667,0xE668,0x6337, 0xE66A,0x64B6,0x6331,0x63D1,0xE66E,0xE66F,0x62A4,0xE671,0x643B,0x656B, 0x6972,0x3BF4,0xE676,0xE677,0xE678,0xE679,0x550D,0xE67B,0xE67C,0xE67D, 0x66CE,0xE67F,0xE680,0x3AE0,0x4190,0xE683,0xE684,0xE685,0xE686,0xE687, 0xE688,0x78EE,0xE68A,0xE68B,0xE68C,0x3464,0xE68E,0xE68F,0xE690,0x668E, 0xE692,0x666B,0x4B93,0x6630,0xE696,0xE697,0x6663,0xE699,0xE69A,0x661E, 0xE69C,0x38D1,0xE69E,0xE69F,0x3B99,0xE6A1,0xE6A2,0x74D0,0x3B96,0x678F, 0xE6A6,0x68B6,0x681E,0x3BC4,0x6ABE,0x3863,0xE6AC,0xE6AD,0x6A33,0x6A52, 0x6AC9,0x6B05,0xE6B2,0x6511,0x6898,0x6A4C,0x3BD7,0x6A7A,0x6B57,0xE6B9, 0xE6BA,0x93A0,0x92F2,0xE6BD,0xE6BE, /* row 148 */ 64 | (254 << 8), /* first, last */ 0x9289,0xE6C0,0xE6C1,0x9467,0x6DA5,0x6F0B, 0xE6C5,0x6D67,0xE6C7,0x3D8F,0x6E04,0xE6CA,0x5A3D,0x6E0A,0x5847,0x6D24, 0x7842,0x713B,0xE6D1,0xE6D2,0x70F1,0x7250,0x7287,0x7294,0xE6D7,0xE6D8, 0x5179,0xE6DA,0xE6DB,0x747A,0xE6DD,0xE6DE,0xE6DF,0xE6E0,0xE6E1,0x3F06, 0x3EB1,0xE6E4,0xE6E5,0xE6E6,0x60A7,0x3EF3,0x74CC,0x743C,0x9387,0x7437, 0x449F,0xE6EE,0x4551,0x7583,0x3F63,0xE6F2,0xE6F3,0x3F58,0x7555,0x7673, 0xE6F7,0x3B19,0x7468,0xE6FA,0xE6FB,0xE6FC,0x3AFB,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x3DCD,0xE6FF,0x3EFF,0xE701,0xE702,0x91FA,0x5732,0x9342,0xE706, 0xE707,0x50DF,0xE709,0xE70A,0x7778,0xE70C,0x770E,0x770F,0x777B,0xE710, 0xE711,0x3A5E,0xE713,0x7438,0x749B,0x3EBF,0xE717,0xE718,0x40C8,0xE71A, 0xE71B,0x9307,0xE71D,0x781E,0x788D,0x7888,0x78D2,0x73D0,0x7959,0xE724, 0xE725,0x410E,0x799B,0x8496,0x79A5,0x6A2D,0xE72B,0x7A3A,0x79F4,0x416E, 0xE72F,0x4132,0x9235,0x79F1,0xE733,0xE734,0xE735,0xE736,0xE737,0x3597, 0x556B,0x3570,0x36AA,0xE73C,0xE73D,0x7AE2,0x5A59,0xE740,0xE741,0xE742, 0x5A0D,0xE744,0x78F0,0x5A2A,0xE747,0x7AFE,0x41F9,0x7C5D,0x7C6D,0x4211, 0xE74D,0xE74E,0xE74F,0x7CCD,0xE751,0xE752,0x7C8E,0x7C7C,0x7CAE,0x6AB2, 0x7DDC,0x7E07,0x7DD3,0x7F4E,0xE75B, /* row 149 */ 64 | (254 << 8), /* first, last */ 0xE75C,0xE75D,0x7D97,0xE75F,0x426A,0xE761, 0xE762,0x67D6,0xE764,0xE765,0x57C4,0xE767,0xE768,0xE769,0x7FDD,0x7B27, 0xE76C,0xE76D,0xE76E,0x7B0C,0xE770,0x99E6,0x8645,0x9A63,0x6A1C,0xE775, 0x39E2,0xE777,0xE778,0x9A1F,0xE77A,0x8480,0xE77C,0xE77D,0x44EA,0x8137, 0x4402,0x80C6,0x8109,0x8142,0xE784,0x98C3,0xE786,0x8262,0x8265,0xE789, 0x8453,0xE78B,0x8610,0xE78D,0x5A86,0x417F,0xE790,0x5B2B,0xE792,0x5AE4, 0xE794,0x86A0,0xE796,0xE797,0x882D,0xE799,0x5A02,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x886E,0x4F45,0x8887,0x88BF,0x88E6,0x8965,0x894D,0xE7A2,0x8954, 0xE7A4,0xE7A5,0xE7A6,0xE7A7,0xE7A8,0xE7A9,0x3EAD,0x84A3,0x46F5,0x46CF, 0x37F2,0x8A3D,0x8A1C,0xE7B1,0x5F4D,0x922B,0xE7B4,0x65D4,0x7129,0x70C4, 0xE7B8,0x9D6D,0x8C9F,0x8CE9,0xE7BC,0x599A,0x77C3,0x59F0,0x436E,0x36D4, 0x8E2A,0x8EA7,0xE7C4,0x8F30,0x8F4A,0x42F4,0x6C58,0x6FBB,0xE7CA,0x489B, 0x6F79,0x6E8B,0xE7CE,0x9BE9,0x36B5,0xE7D1,0x90BB,0x9097,0x5571,0x4906, 0x91BB,0x9404,0xE7D8,0x4062,0xE7DA,0x9427,0xE7DC,0xE7DD,0x84E5,0x8A2B, 0x9599,0x95A7,0x9597,0x9596,0xE7E4,0x7445,0x3EC2,0xE7E7,0xE7E8,0xE7E9, 0x3EE7,0xE7EB,0x968F,0xE7ED,0xE7EE,0xE7EF,0x3ECC,0xE7F1,0xE7F2,0xE7F3, 0x7412,0x746B,0x3EFC,0x9741,0xE7F8, /* row 150 */ 64 | (254 << 8), /* first, last */ 0x6847,0x4A1D,0xE7FB,0xE7FC,0x975D,0x9368, 0xE7FF,0xE800,0xE801,0xE802,0x92BA,0x5B11,0x8B69,0x493C,0x73F9,0xE808, 0x979B,0x9771,0x9938,0xE80C,0x5DC1,0xE80E,0xE80F,0x981F,0xE811,0x92F6, 0xE813,0x91E5,0x44C0,0xE816,0xE817,0xE818,0x98DC,0xE81A,0x3F00,0x922A, 0x4925,0x8414,0x993B,0x994D,0xE821,0x3DFD,0x999B,0x4B6F,0x99AA,0x9A5C, 0xE827,0xE828,0x6A8F,0x9A21,0x5AFE,0x9A2F,0xE82D,0x4B90,0xE82F,0x99BC, 0x4BBD,0x4B97,0x937D,0x5872,0xE835,0x5822,0xE837,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE838,0x7844,0xE83A,0xE83B,0x68C5,0x3D7D,0x9458,0x3927,0x6150, 0xE841,0xE842,0x6107,0x9C4F,0x9C53,0x9C7B,0x9C35,0x9C10,0x9B7F,0x9BCF, 0xE84B,0x9B9F,0xE84D,0xE84E,0x9D21,0x4CAE,0xE851,0x9E18,0x4CB0,0x9D0C, 0xE855,0xE856,0xE857,0xE858,0x9DA5,0x84BD,0xE85B,0xE85C,0xE85D,0x85FC, 0x4533,0xE860,0xE861,0xE862,0x8420,0x85EE,0xE865,0xE866,0xE867,0x79E2, 0xE869,0xE86A,0x492D,0xE86C,0x3D62,0x93DB,0x92BE,0x9348,0xE871,0x78B9, 0x9277,0x944D,0x4FE4,0x3440,0x9064,0xE878,0x783D,0x7854,0x78B6,0x784B, 0xE87D,0xE87E,0xE87F,0x369A,0x4F72,0x6FDA,0x6FD9,0x701E,0x701E,0x5414, 0xE887,0x57BB,0x58F3,0x578A,0x9D16,0x57D7,0x7134,0x34AF,0xE88F,0x71EB, 0xE891,0xE892,0x5B28,0xE894,0xE895, /* row 151 */ 64 | (254 << 8), /* first, last */ 0x610C,0x5ACE,0x5A0B,0x42BC,0xE89A,0x372C, 0x4B7B,0xE89D,0x93BB,0x93B8,0xE8A0,0xE8A1,0x8472,0xE8A3,0xE8A4,0xE8A5, 0xE8A6,0xE8A7,0x5994,0xE8A9,0xE8AA,0x7DA8,0xE8AC,0xE8AD,0xE8AE,0xE8AF, 0xE8B0,0x92E5,0x73E2,0x3EE9,0x74B4,0xE8B5,0xE8B6,0x3EE1,0xE8B8,0x6AD8, 0x73F3,0x73FB,0x3ED6,0xE8BD,0xE8BE,0xE8BF,0xE8C0,0xE8C1,0xE8C2,0xE8C3, 0x7448,0xE8C5,0x70A5,0xE8C7,0x9284,0x73E6,0x935F,0xE8CB,0x9331,0xE8CD, 0xE8CE,0x9386,0xE8D0,0xE8D1,0x4935,0xE8D3,0x716B,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE8D5,0xE8D6,0x56A4,0xE8D8,0xE8D9,0xE8DA,0x5502,0x79C4,0xE8DD, 0x7DFE,0xE8DF,0xE8E0,0xE8E1,0x452E,0x9401,0x370A,0xE8E5,0xE8E6,0x59B0, 0xE8E8,0xE8E9,0xE8EA,0x5AA1,0x36E2,0xE8ED,0x36B0,0x925F,0x5A79,0xE8F1, 0xE8F2,0x9374,0x3CCD,0xE8F5,0x4A96,0x398A,0x50F4,0x3D69,0x3D4C,0xE8FB, 0x7175,0x42FB,0xE8FE,0x6E0F,0xE900,0x44EB,0x6D57,0xE903,0x7067,0x6CAF, 0x3CD6,0xE907,0xE908,0x6E02,0x6F0C,0x3D6F,0xE90C,0x7551,0x36BC,0x34C8, 0x4680,0x3EDA,0x4871,0x59C4,0x926E,0x493E,0x8F41,0xE917,0xE918,0x5812, 0x57C8,0x36D6,0xE91C,0x70FE,0xE91E,0xE91F,0xE920,0xE921,0xE922,0x68B9, 0x6967,0xE925,0xE926,0xE927,0xE928,0xE929,0xE92A,0xE92B,0xE92C,0x6A1A, 0xE92E,0xE92F,0x843E,0x44DF,0x44CE, /* row 152 */ 64 | (254 << 8), /* first, last */ 0xE933,0xE934,0xE935,0xE936,0x6F17,0xE938, 0x833D,0xE93A,0x83ED,0xE93C,0xE93D,0xE93E,0x5989,0x5A82,0xE941,0x5A61, 0x5A71,0xE944,0xE945,0x372D,0x59EF,0xE948,0x36C7,0x718E,0x9390,0x669A, 0xE94D,0x5A6E,0x5A2B,0xE950,0x6A2B,0xE952,0xE953,0xE954,0xE955,0x711D, 0xE957,0xE958,0x4FB0,0xE95A,0x5CC2,0xE95C,0xE95D,0xE95E,0x6A0C,0xE960, 0xE961,0x70A6,0x7133,0xE964,0x3DA5,0x6CDF,0xE967,0xE968,0x7E65,0x59EB, 0x5D2F,0x3DF3,0x5F5C,0xE96E,0xE96F,0x7DA4,0x8426,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x5485,0xE973,0xE974,0xE975,0x577E,0xE977,0xE978,0x3FE5,0xE97A, 0xE97B,0x7003,0xE97D,0x5D70,0x738F,0x7CD3,0xE981,0xE982,0x4FC8,0x7FE7, 0x72CD,0x7310,0xE987,0x7338,0x7339,0xE98A,0x7341,0x7348,0x3EA9,0xE98E, 0x906C,0x71F5,0xE991,0x73E1,0x81F6,0x3ECA,0x770C,0x3ED1,0x6CA2,0x56FD, 0x7419,0x741E,0x741F,0x3EE2,0x3EF0,0x3EF4,0x3EFA,0x74D3,0x3F0E,0x3F53, 0x7542,0x756D,0x7572,0x758D,0x3F7C,0x75C8,0x75DC,0x3FC0,0x764D,0x3FD7, 0x7674,0x3FDC,0x767A,0xE9B0,0x7188,0x5623,0x8980,0x5869,0x401D,0x7743, 0x4039,0x6761,0x4045,0x35DB,0x7798,0x406A,0x406F,0x5C5E,0x77BE,0x77CB, 0x58F2,0x7818,0x70B9,0x781C,0x40A8,0x7839,0x7847,0x7851,0x7866,0x8448, 0xE9CB,0x7933,0x6803,0x7932,0x4103, /* row 153 */ 64 | (254 << 8), /* first, last */ 0x4109,0x7991,0x7999,0x8FBB,0x7A06,0x8FBC, 0x4167,0x7A91,0x41B2,0x7ABC,0x8279,0x41C4,0x7ACF,0x7ADB,0x41CF,0x4E21, 0x7B62,0x7B6C,0x7B7B,0x7C12,0x7C1B,0x4260,0x427A,0x7C7B,0x7C9C,0x428C, 0x7CB8,0x4294,0x7CED,0x8F93,0x70C0,0xE9EF,0x7DCF,0x7DD4,0x7DD0,0x7DFD, 0x7FAE,0x7FB4,0x729F,0x4397,0x8020,0x8025,0x7B39,0x802E,0x8031,0x8054, 0x3DCC,0x57B4,0x70A0,0x80B7,0x80E9,0x43ED,0x810C,0x732A,0x810E,0x8112, 0x7560,0x8114,0x4401,0x3B39,0x8156,0x8159,0x815A,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x4413,0x583A,0x817C,0x8184,0x4425,0x8193,0x442D,0x81A5,0x57EF, 0x81C1,0x81E4,0x8254,0x448F,0x82A6,0x8276,0x82CA,0x82D8,0x82FF,0x44B0, 0x8357,0x9669,0x698A,0x8405,0x70F5,0x8464,0x60E3,0x8488,0x4504,0x84BE, 0x84E1,0x84F8,0x8510,0x8538,0x8552,0x453B,0x856F,0x8570,0x85E0,0x4577, 0x8672,0x8692,0x86B2,0x86EF,0x9645,0x878B,0x4606,0x4617,0x88AE,0x88FF, 0x8924,0x8947,0x8991,0xEA43,0x8A29,0x8A38,0x8A94,0x8AB4,0x8C51,0x8CD4, 0x8CF2,0x8D1C,0x4798,0x585F,0x8DC3,0x47ED,0x4EEE,0x8E3A,0x55D8,0x5754, 0x8E71,0x55F5,0x8EB0,0x4837,0x8ECE,0x8EE2,0x8EE4,0x8EED,0x8EF2,0x8FB7, 0x8FC1,0x8FCA,0x8FCC,0x9033,0x99C4,0x48AD,0x98E0,0x9213,0x491E,0x9228, 0x9258,0x926B,0x92B1,0x92AE,0x92BF, /* row 154 */ 64 | (254 << 8), /* first, last */ 0x92E3,0x92EB,0x92F3,0x92F4,0x92FD,0x9343, 0x9384,0x93AD,0x4945,0x4951,0x9EBF,0x9417,0x5301,0x941D,0x942D,0x943E, 0x496A,0x9454,0x9479,0x952D,0x95A2,0x49A7,0x95F4,0x9633,0x49E5,0x67A0, 0x4A24,0x9740,0x4A35,0x97B2,0x97C2,0x5654,0x4AE4,0x60E8,0x98B9,0x4B19, 0x98F1,0x5844,0x990E,0x9919,0x51B4,0x991C,0x9937,0x9942,0x995D,0x9962, 0x4B70,0x99C5,0x4B9D,0x9A3C,0x9B0F,0x7A83,0x9B69,0x9B81,0x9BDD,0x9BF1, 0x9BF4,0x4C6D,0x9C20,0x376F,0xEAA9,0x9D49,0x9C3A,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x9EFE,0x5650,0x9D93,0x9DBD,0x9DC0,0x9DFC,0x94F6,0x8FB6,0x9E7B, 0x9EAC,0x9EB1,0x9EBD,0x9EC6,0x94DC,0x9EE2,0x9EF1,0x9EF8,0x7AC8,0x9F44, 0xEABF,0xEAC0,0xEAC1,0x691A,0x94C3,0x59AC,0xEAC5,0x5840,0x94C1,0x37B9, 0xEAC9,0xEACA,0xEACB,0xEACC,0x5757,0x7173,0xEACF,0xEAD0,0xEAD1,0x546A, 0xEAD3,0xEAD4,0x549E,0xEAD6,0xEAD7,0xEAD8,0xEAD9,0xEADA,0x60E7,0xEADC, 0x567A,0xEADE,0xEADF,0xEAE0,0xEAE1,0xEAE2,0xEAE3,0x6955,0x9C2F,0x87A5, 0xEAE7,0xEAE8,0xEAE9,0xEAEA,0xEAEB,0xEAEC,0x5C20,0xEAEE,0x5E0B,0xEAF0, 0xEAF1,0xEAF2,0x671E,0xEAF4,0xEAF5,0xEAF6,0x3647,0xEAF8,0xEAF9,0xEAFA, 0xEAFB,0x5364,0x84AD,0xEAFE,0xEAFF,0xEB00,0x8B81,0xEB02,0xEB03,0xEB04, 0xEB05,0x4E78,0x70BB,0xEB08,0xEB09, /* row 155 */ 64 | (254 << 8), /* first, last */ 0xEB0A,0xEB0B,0xEB0C,0xEB0D,0xEB0E,0xEB0F, 0x62C3,0xEB11,0xEB12,0x7198,0x6855,0xEB15,0x69E9,0x36C8,0xEB18,0xEB19, 0xEB1A,0xEB1B,0xEB1C,0xEB1D,0x82FD,0xEB1F,0xEB20,0xEB21,0x89A5,0xEB23, 0x8FA0,0xEB25,0x97B8,0xEB27,0x9847,0x9ABD,0xEB2A,0xffff,0xEB2C,0xEB2D, 0xEB2E,0xEB2F,0xEB30,0xEB31,0xEB32,0xEB33,0xEB34,0xEB35,0xEB36,0xEB37, 0xEB38,0xEB39,0x5FB1,0x6648,0x66BF,0xEB3D,0xEB3E,0xEB3F,0x7201,0xEB41, 0x77D7,0xEB43,0xEB44,0x7E87,0xEB46,0x58B5,0x670E,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x6918,0xEB4A,0xEB4B,0xEB4C,0xEB4D,0xEB4E,0xEB4F,0xEB50,0x48D0, 0x4AB8,0xEB53,0xEB54,0xEB55,0xEB56,0xEB57,0xEB58,0xEB59,0xEB5A,0xEB5B, 0x51D2,0xEB5D,0x599F,0xEB5F,0x3BBE,0xEB61,0xEB62,0xEB63,0x5788,0xEB65, 0x399B,0xEB67,0xEB68,0xEB69,0x3762,0xEB6B,0x8B5E,0xEB6D,0x99D6,0xEB6F, 0xEB70,0xEB71,0x7209,0xEB73,0xEB74,0x5965,0xEB76,0xEB77,0xEB78,0x8EDA, 0xEB7A,0x528F,0x573F,0x7171,0xEB7E,0xEB7F,0xEB80,0xEB81,0x55BC,0xEB83, 0xEB84,0xEB85,0x91D4,0x3473,0xEB88,0xEB89,0xEB8A,0x4718,0xEB8C,0xEB8D, 0xEB8E,0xEB8F,0xEB90,0x5066,0x34FB,0xEB93,0x60DE,0xEB95,0x477C,0xEB97, 0xEB98,0xEB99,0xEB9A,0xEB9B,0x57A1,0x7151,0x6FB6,0xEB9F,0xEBA0,0x9056, 0xEBA2,0xEBA3,0x8B62,0xEBA5,0xEBA6, /* row 156 */ 64 | (254 << 8), /* first, last */ 0x5D5B,0xEBA8,0x8F36,0xEBAA,0xEBAB,0x8AEA, 0xEBAD,0xEBAE,0xEBAF,0xEBB0,0x4BC0,0xEBB2,0xEBB3,0xEBB4,0x9465,0xEBB6, 0x6195,0x5A27,0xEBB9,0x4FBB,0x56B9,0xEBBC,0xEBBD,0x4E6A,0xEBBF,0x9656, 0x6D8F,0xEBC2,0x3618,0x8977,0xEBC5,0xEBC6,0xEBC7,0xEBC8,0x71DF,0xEBCA, 0x7B42,0xEBCC,0xEBCD,0xEBCE,0x9104,0xEBD0,0x7A45,0x9DF0,0xEBD3,0x9A26, 0xEBD5,0x365F,0xEBD7,0xEBD8,0x7983,0xEBDA,0xEBDB,0x5D2C,0xEBDD,0x83CF, 0xEBDF,0x46D0,0xEBE1,0x753B,0x8865,0xEBE4,0x58B6,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x371C,0xEBE7,0xEBE8,0xEBE9,0x3C54,0xEBEB,0xEBEC,0x9281,0xEBEE, 0xEBEF,0x9330,0xEBF1,0xEBF2,0x6C39,0x949F,0xEBF5,0xEBF6,0x8827,0x88F5, 0xEBF9,0xEBFA,0xEBFB,0x6EB8,0xEBFD,0xEBFE,0x39A4,0x36B9,0x5C10,0x79E3, 0x453F,0x66B6,0xEC05,0xEC06,0x8943,0xEC08,0xEC09,0x56D6,0x40DF,0xEC0C, 0x39A1,0xEC0E,0xEC0F,0xEC10,0x71AD,0x8366,0xEC13,0xEC14,0x5A67,0x4CB7, 0xEC17,0xEC18,0xEC19,0xEC1A,0xEC1B,0xEC1C,0xEC1D,0x7B43,0x797E,0xEC20, 0x6FB5,0xEC22,0x6A03,0xEC24,0x53A2,0xEC26,0x93BF,0x6836,0x975D,0xEC2A, 0xEC2B,0xEC2C,0xEC2D,0xEC2E,0xEC2F,0x5D85,0xEC31,0xEC32,0x5715,0x9823, 0xEC35,0x5DAB,0xEC37,0x65BE,0x69D5,0x53D2,0xEC3B,0xEC3C,0x3C11,0x6736, 0xEC3F,0xEC40,0xEC41,0xEC42,0xEC43, /* row 157 */ 64 | (254 << 8), /* first, last */ 0xEC44,0xEC45,0xEC46,0xEC47,0xEC48,0xEC49, 0x35CA,0xEC4B,0xEC4C,0x48FA,0x63E6,0xEC4F,0x7808,0x9255,0xEC52,0x43F2, 0xEC54,0x43DF,0xEC56,0xEC57,0xEC58,0x59F8,0xEC5A,0x8F0B,0xEC5C,0xEC5D, 0x7B51,0xEC5F,0xEC60,0x3DF7,0xEC62,0xEC63,0x8FD0,0x728F,0x568B,0xEC67, 0xEC68,0xEC69,0xEC6A,0xEC6B,0xEC6C,0xEC6D,0xEC6E,0xEC6F,0xEC70,0xEC71, 0xEC72,0xEC73,0x7E9F,0xEC75,0xEC76,0x4CA4,0x9547,0xEC79,0x71A2,0xEC7B, 0x4D91,0x9012,0xEC7E,0x4D9C,0xEC80,0x8FBE,0x55C1,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x8FBA,0xEC84,0x8FB9,0xEC86,0x4509,0x7E7F,0x6F56,0x6AB1,0x4EEA, 0x34E4,0xEC8D,0xEC8E,0x373A,0x8E80,0xEC91,0xEC92,0xEC93,0xEC94,0xEC95, 0xEC96,0x3DEB,0xEC98,0xEC99,0xEC9A,0xEC9B,0x4E9A,0xEC9D,0xEC9E,0x56BF, 0xECA0,0x8E0E,0x5B6D,0xECA3,0xECA4,0x63DE,0x62D0,0xECA7,0xECA8,0x6530, 0x562D,0xECAB,0x541A,0xECAD,0x3DC6,0xECAF,0x4C7D,0x5622,0x561E,0x7F49, 0xECB4,0x5975,0xECB6,0x8770,0x4E1C,0xECB9,0xECBA,0xECBB,0x8117,0x9D5E, 0x8D18,0x763B,0x9C45,0x764E,0x77B9,0x9345,0x5432,0x8148,0x82F7,0x5625, 0x8132,0x8418,0x80BD,0x55EA,0x7962,0x5643,0x5416,0xECCF,0x35CE,0x5605, 0x55F1,0x66F1,0xECD4,0x362D,0x7534,0x55F0,0x55BA,0x5497,0x5572,0xECDB, 0xECDC,0x5ED0,0xECDE,0xECDF,0xECE0, /* row 158 */ 64 | (254 << 8), /* first, last */ 0xECE1,0x9EAB,0x7D5A,0x55DE,0xECE5,0x629D, 0x976D,0x5494,0x8CCD,0x71F6,0x9176,0x63FC,0x63B9,0x63FE,0x5569,0xECF0, 0x9C72,0xECF2,0x519A,0x34DF,0xECF5,0x51A7,0x544D,0x551E,0x5513,0x7666, 0x8E2D,0xECFC,0x75B1,0x80B6,0x8804,0x8786,0x88C7,0x81B6,0x841C,0xED04, 0x44EC,0x7304,0xED07,0x5B90,0x830B,0xED0A,0x567B,0xED0C,0xED0D,0xED0E, 0xED0F,0xED10,0xED11,0x9170,0xED13,0x9208,0xED15,0xED16,0xED17,0xED18, 0x7266,0xED1A,0x474E,0xED1C,0xED1D,0xED1E,0x40FA,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x9C5D,0x651F,0xED22,0x48F3,0xED24,0xED25,0xED26,0xED27,0x6062, 0xED29,0xED2A,0xffff,0xED2C,0xED2D,0x71A3,0x7E8E,0x9D50,0x4E1A,0x4E04, 0x3577,0x5B0D,0x6CB2,0x5367,0x36AC,0x39DC,0x537D,0x36A5,0xED3B,0x589A, 0xED3D,0x822D,0x544B,0x57AA,0xED41,0xED42,0xffff,0x3A52,0xED45,0x7374, 0xED47,0x4D09,0x9BED,0xED4A,0xED4B,0x4C5B,0xED4D,0xED4E,0xED4F,0x845C, 0xED51,0xED52,0xED53,0xED54,0x632E,0x7D25,0xED57,0xED58,0x3A2A,0x9008, 0x52CC,0x3E74,0x367A,0x45E9,0xED5F,0x7640,0x5AF0,0xED62,0x787A,0x47B6, 0x58A7,0x40BF,0x567C,0x9B8B,0x5D74,0x7654,0xED6B,0x9E85,0x4CE1,0x75F9, 0x37FB,0x6119,0xED71,0xED72,0xffff,0x565D,0xED75,0x57A7,0xED77,0xED78, 0x5234,0xED7A,0x35AD,0x6C4A,0x9D7C, /* row 159 */ 64 | (254 << 8), /* first, last */ 0x7C56,0x9B39,0x57DE,0xED81,0x5C53,0x64D3, 0xED84,0xED85,0xED86,0x86AD,0xED88,0xED89,0xED8A,0xED8B,0xffff,0x51FE, 0xED8E,0x5D8E,0x9703,0xED91,0x9E81,0x904C,0x7B1F,0x9B02,0x5CD1,0x7BA3, 0x6268,0x6335,0x9AFF,0x7BCF,0x9B2A,0x7C7E,0x9B2E,0x7C42,0x7C86,0x9C15, 0x7BFC,0x9B09,0x9F17,0x9C1B,0xEDA6,0x9F5A,0x5573,0x5BC3,0x4FFD,0x9E98, 0x4FF2,0x5260,0x3E06,0x52D1,0x5767,0x5056,0x59B7,0x5E12,0x97C8,0x9DAB, 0x8F5C,0x5469,0x97B4,0x9940,0x97BA,0x532C,0x6130,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x692C,0x53DA,0x9C0A,0x9D02,0x4C3B,0x9641,0x6980,0x50A6,0x7546, 0xEDC6,0x99DA,0x5273,0xffff,0x9159,0x9681,0x915C,0xffff,0x9151,0xEDCF, 0x637F,0xEDD1,0x6ACA,0x5611,0x918E,0x757A,0x6285,0xEDD7,0x734F,0x7C70, 0xEDDA,0xEDDB,0xffff,0xEDDD,0x76D6,0x9B9D,0x4E2A,0xEDE1,0x83BE,0x8842, 0xffff,0x5C4A,0x69C0,0x50ED,0x577A,0x521F,0x5DF5,0x4ECE,0x6C31,0xEDED, 0x4F39,0x549C,0x54DA,0x529A,0x8D82,0x35FE,0x5F0C,0x35F3,0xffff,0x6B52, 0x917C,0x9FA5,0x9B97,0x982E,0x98B4,0x9ABA,0x9EA8,0x9E84,0x717A,0x7B14, 0xffff,0x6BFA,0x8818,0x7F78,0xffff,0x5620,0xEE08,0x8E77,0x9F53,0xffff, 0x8DD4,0x8E4F,0x9E1C,0x8E01,0x6282,0xEE11,0x8E28,0x8E75,0x7AD3,0xEE15, 0x7A3E,0x78D8,0x6CEA,0x8A67,0x7607, /* row 160 */ 64 | (254 << 8), /* first, last */ 0xEE1B,0x9F26,0x6CCE,0x87D6,0x75C3,0xEE20, 0x7853,0xEE22,0x8D0C,0x72E2,0x7371,0x8B2D,0x7302,0x74F1,0x8CEB,0xEE2A, 0x862F,0x5FBA,0x88A0,0x44B7,0xffff,0xEE30,0xEE31,0xffff,0x8A7E,0xEE34, 0xffff,0x60FD,0x7667,0x9AD7,0x9D44,0x936E,0x9B8F,0x87F5,0xffff,0x880F, 0x8CF7,0x732C,0x9721,0x9BB0,0x35D6,0x72B2,0x4C07,0x7C51,0x994A,0xEE48, 0x6159,0x4C04,0x9E96,0x617D,0xffff,0x575F,0x616F,0x62A6,0x6239,0x62CE, 0x3A5C,0x61E2,0x53AA,0xEE56,0x6364,0x6802,0x35D2,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x5D57,0xEE5B,0x8FDA,0xEE5D,0xffff,0x50D9,0xEE60,0x7906,0x5332, 0x9638,0xEE64,0x4065,0xffff,0x77FE,0xffff,0x7CC2,0xEE6A,0x7CDA,0x7A2D, 0x8066,0x8063,0x7D4D,0x7505,0x74F2,0x8994,0x821A,0x670C,0x8062,0xEE76, 0x805B,0x74F0,0x8103,0x7724,0x8989,0xEE7C,0x7553,0xEE7E,0x87A9,0x87CE, 0x81C8,0x878C,0x8A49,0x8CAD,0x8B43,0x772B,0x74F8,0x84DA,0x3635,0x69B2, 0x8DA6,0xffff,0x89A9,0x7468,0x6DB9,0x87C1,0xEE91,0x74E7,0x3DDB,0x7176, 0x60A4,0x619C,0x3CD1,0x7162,0x6077,0xffff,0x7F71,0xEE9C,0x7250,0x60E9, 0x4B7E,0x5220,0x3C18,0xEEA2,0xEEA3,0xEEA4,0xEEA5,0xEEA6,0xEEA7,0xEEA8, 0xEEA9,0xEEAA,0x5CC1,0xEEAC,0xEEAD,0xEEAE,0xEEAF,0xEEB0,0xEEB1,0x4562, 0x5B1F,0xEEB4,0x9F50,0x9EA6,0xEEB7, /* row 161: --- */ /* row 162: --- */ /* row 163: --- */ /* row 164: --- */ /* row 165: --- */ /* row 166: --- */ /* row 167: --- */ /* row 168: --- */ /* row 169: --- */ /* row 170: --- */ /* row 171: --- */ /* row 172: --- */ /* row 173: --- */ /* row 174: --- */ /* row 175: --- */ /* row 176: --- */ /* row 177: --- */ /* row 178: --- */ /* row 179: --- */ /* row 180: --- */ /* row 181: --- */ /* row 182: --- */ /* row 183: --- */ /* row 184: --- */ /* row 185: --- */ /* row 186: --- */ /* row 187: --- */ /* row 188: --- */ /* row 189: --- */ /* row 190: --- */ /* row 191: --- */ /* row 192: --- */ /* row 193: --- */ /* row 194: --- */ /* row 195: --- */ /* row 196: --- */ /* row 197: --- */ /* row 198 */ 161 | (254 << 8), /* first, last */ 0x2460,0x2461,0x2462,0x2463,0x2464,0x2465,0x2466,0x2467,0x2468, 0x2469,0x2474,0x2475,0x2476,0x2477,0x2478,0x2479,0x247A,0x247B,0x247C, 0x247D,0x2170,0x2171,0x2172,0x2173,0x2174,0x2175,0x2176,0x2177,0x2178, 0x2179,0x4E36,0x4E3F,0x4E85,0x4EA0,0x5182,0x5196,0x51AB,0x52F9,0x5338, 0x5369,0x53B6,0x590A,0x5B80,0x5DDB,0x2F33,0x5E7F,0xF6E0,0x5F50,0x5F61, 0x6534,0xF6E4,0x7592,0xF6E6,0x8FB5,0xF6E8,0x00A8,0x02C6,0x30FD,0x30FE, 0x309D,0x309E,0xF6EF,0xF6F0,0x3005,0x3006,0x3007,0x30FC,0xFF3B,0xFF3D, 0x273D,0x3041,0x3042,0x3043,0x3044,0x3045,0x3046,0x3047,0x3048,0x3049, 0x304A,0x304B,0x304C,0x304D,0x304E,0x304F,0x3050,0x3051,0x3052,0x3053, 0x3054,0x3055,0x3056,0x3057,0x3058, /* row 199 */ 64 | (254 << 8), /* first, last */ 0x3059,0x305A,0x305B,0x305C,0x305D,0x305E, 0x305F,0x3060,0x3061,0x3062,0x3063,0x3064,0x3065,0x3066,0x3067,0x3068, 0x3069,0x306A,0x306B,0x306C,0x306D,0x306E,0x306F,0x3070,0x3071,0x3072, 0x3073,0x3074,0x3075,0x3076,0x3077,0x3078,0x3079,0x307A,0x307B,0x307C, 0x307D,0x307E,0x307F,0x3080,0x3081,0x3082,0x3083,0x3084,0x3085,0x3086, 0x3087,0x3088,0x3089,0x308A,0x308B,0x308C,0x308D,0x308E,0x308F,0x3090, 0x3091,0x3092,0x3093,0x30A1,0x30A2,0x30A3,0x30A4,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x30A5,0x30A6,0x30A7,0x30A8,0x30A9,0x30AA,0x30AB,0x30AC,0x30AD, 0x30AE,0x30AF,0x30B0,0x30B1,0x30B2,0x30B3,0x30B4,0x30B5,0x30B6,0x30B7, 0x30B8,0x30B9,0x30BA,0x30BB,0x30BC,0x30BD,0x30BE,0x30BF,0x30C0,0x30C1, 0x30C2,0x30C3,0x30C4,0x30C5,0x30C6,0x30C7,0x30C8,0x30C9,0x30CA,0x30CB, 0x30CC,0x30CD,0x30CE,0x30CF,0x30D0,0x30D1,0x30D2,0x30D3,0x30D4,0x30D5, 0x30D6,0x30D7,0x30D8,0x30D9,0x30DA,0x30DB,0x30DC,0x30DD,0x30DE,0x30DF, 0x30E0,0x30E1,0x30E2,0x30E3,0x30E4,0x30E5,0x30E6,0x30E7,0x30E8,0x30E9, 0x30EA,0x30EB,0x30EC,0x30ED,0x30EE,0x30EF,0x30F0,0x30F1,0x30F2,0x30F3, 0x30F4,0x30F5,0x30F6,0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0401, 0x0416,0x0417,0x0418,0x0419,0x041A, /* row 200 */ 64 | (254 << 8), /* first, last */ 0x041B,0x041C,0x041D,0x041E,0x041F,0x0420, 0x0421,0x0422,0x0423,0x0424,0x0425,0x0426,0x0427,0x0428,0x0429,0x042A, 0x042B,0x042C,0x042D,0x042E,0x042F,0x0430,0x0431,0x0432,0x0433,0x0434, 0x0435,0x0451,0x0436,0x0437,0x0438,0x0439,0x043A,0x043B,0x043C,0x043D, 0x043E,0x043F,0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,0x0446,0x0447, 0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,0x044E,0x044F,0x21E7,0x21B8, 0x21B9,0xF7E5,0xF7E6,0x4E5A,0xF7E8,0x5202,0xF7EA,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xF7EB,0x5188,0xF7ED,0xF7EE,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xFFE2,0xFFE4,0xFF07,0xFF02,0x3231, 0x2116,0x2121,0x309B,0x309C,0x2E80,0x2E84,0x2E86,0x2E87,0x2E88,0x2E8A, 0x2E8C,0x2E8D,0x2E95,0x2E9C,0x2E9D,0x2EA5,0x2EA7,0x2EAA,0x2EAC,0x2EAE, 0x2EB6,0x2EBC,0x2EBE,0x2EC6,0x2ECA,0x2ECC,0x2ECD,0x2ECF,0x2ED6,0x2ED7, 0x2EDE,0x2EE3,0xffff,0xffff,0xffff,0x0283,0x0250,0x025B,0x0254,0x0275, 0x0153,0x00F8,0x014B,0x028A,0x026A, /* row 201: --- */ /* row 202: --- */ /* row 203: --- */ /* row 204: --- */ /* row 205: --- */ /* row 206: --- */ /* row 207: --- */ /* row 208: --- */ /* row 209: --- */ /* row 210: --- */ /* row 211: --- */ /* row 212: --- */ /* row 213: --- */ /* row 214: --- */ /* row 215: --- */ /* row 216: --- */ /* row 217: --- */ /* row 218: --- */ /* row 219: --- */ /* row 220: --- */ /* row 221: --- */ /* row 222: --- */ /* row 223: --- */ /* row 224: --- */ /* row 225: --- */ /* row 226: --- */ /* row 227: --- */ /* row 228: --- */ /* row 229: --- */ /* row 230: --- */ /* row 231: --- */ /* row 232: --- */ /* row 233: --- */ /* row 234: --- */ /* row 235: --- */ /* row 236: --- */ /* row 237: --- */ /* row 238: --- */ /* row 239: --- */ /* row 240: --- */ /* row 241: --- */ /* row 242: --- */ /* row 243: --- */ /* row 244: --- */ /* row 245: --- */ /* row 246: --- */ /* row 247: --- */ /* row 248: --- */ /* row 249 */ 214 | (254 << 8), /* first, last */ 0x7881,0x92B9,0x88CF,0x58BB,0x6052,0x7CA7, 0x5AFA,0x2554,0x2566,0x2557,0x2560,0x256C,0x2563,0x255A,0x2569,0x255D, 0x2552,0x2564,0x2555,0x255E,0x256A,0x2561,0x2558,0x2567,0x255B,0x2553, 0x2565,0x2556,0x255F,0x256B,0x2562,0x2559,0x2568,0x255C,0x2551,0x2550, 0x256D,0x256E,0x2570,0x256F,0xFFED, /* row 250 */ 64 | (254 << 8), /* first, last */ 0xE000,0x92DB,0xE002,0xE003,0x854C,0x42B5, 0x73EF,0x51B5,0x3649,0xE009,0xE00A,0x9344,0xE00C,0x82EE,0xE00E,0x783C, 0x6744,0x62DF,0xE012,0xE013,0xE014,0xE015,0xE016,0x4FAB,0xE018,0x5008, 0xE01A,0xE01B,0xE01C,0xE01D,0xE01E,0x5029,0xE020,0x5FA4,0xE022,0xE023, 0x6EDB,0xE025,0x507D,0x5101,0x347A,0x510E,0x986C,0x3743,0x8416,0xE02D, 0xE02E,0x5160,0xE030,0x516A,0xE032,0xE033,0xE034,0xE035,0xE036,0xE037, 0xE038,0x5B82,0x877D,0xE03B,0xE03C,0x51B2,0x51B8,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0x9D34,0x51C9,0x51CF,0x51D1,0x3CDC,0x51D3,0xE045,0x51B3,0x51E2, 0x5342,0x51ED,0x83CD,0x693E,0xE04C,0x5F7B,0x520B,0x5226,0x523C,0x52B5, 0x5257,0x5294,0x52B9,0x52C5,0x7C15,0x8542,0x52E0,0x860D,0xE05A,0x5305, 0xE05C,0x5549,0x6ED9,0xE05F,0xE060,0xE061,0x5333,0x5344,0xE064,0x6CCB, 0xE066,0x681B,0x73D5,0x604A,0x3EAA,0x38CC,0xE06C,0x71DD,0x44A2,0x536D, 0x5374,0xE071,0x537E,0x537F,0xE074,0xE075,0x77E6,0x5393,0xE078,0x53A0, 0x53AB,0x53AE,0x73A7,0xE07D,0x3F59,0x739C,0x53C1,0x53C5,0x6C49,0x4E49, 0x57FE,0x53D9,0x3AAB,0xE087,0x53E0,0xE089,0xE08A,0x53F6,0xE08C,0x5413, 0x7079,0x552B,0x6657,0x6D5B,0x546D,0xE093,0xE094,0x555D,0x548F,0x54A4, 0x47A6,0xE099,0xE09A,0x3DB4,0xE09C, /* row 251 */ 64 | (254 << 8), /* first, last */ 0xE09D,0xE09E,0x5547,0x4CED,0x542F,0x7417, 0x5586,0x55A9,0x5605,0xE0A6,0xE0A7,0x4552,0xE0A9,0x66B3,0xE0AB,0x5637, 0x66CD,0xE0AE,0x66A4,0x66AD,0x564D,0x564F,0x78F1,0x56F1,0x9787,0x53FE, 0x5700,0x56EF,0x56ED,0xE0BA,0x3623,0xE0BC,0x5746,0xE0BE,0x6C6E,0x708B, 0x5742,0x36B1,0xE0C3,0x57E6,0xE0C5,0x5803,0xE0C7,0xE0C8,0x5826,0xE0CA, 0x585C,0x58AA,0x3561,0x58E0,0x58DC,0xE0D0,0x58FB,0x5BFF,0x5743,0xE0D4, 0xE0D5,0x93D3,0x35A1,0x591F,0x68A6,0x36C3,0x6E59,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE0DC,0x5A24,0x5553,0xE0DF,0x8505,0x59C9,0xE0E2,0xE0E3,0xE0E4, 0xE0E5,0x59D9,0xE0E7,0xE0E8,0xE0E9,0x6D71,0xE0EB,0xE0EC,0x59F9,0xE0EE, 0x5AAB,0x5A63,0x36E6,0xE0F2,0x5A77,0x3708,0x5A96,0x7465,0x5AD3,0xE0F8, 0xE0F9,0x3D85,0xE0FB,0x3732,0xE0FD,0x5E83,0x52D0,0x5B76,0x6588,0x5B7C, 0xE103,0x4004,0x485D,0xE106,0x5BD5,0x6160,0xE109,0xE10A,0xE10B,0x5BF3, 0x5B9D,0x4D10,0x5C05,0xE110,0x5C13,0x73CE,0x5C14,0xE114,0xE115,0x5C49, 0x48DD,0x5C85,0x5CE9,0x5CEF,0x5D8B,0xE11C,0xE11D,0x5D10,0x5D18,0x5D46, 0xE121,0x5CBA,0x5DD7,0x82FC,0x382D,0xE126,0xE127,0xE128,0x8287,0x3836, 0x3BC2,0x5E2E,0x6A8A,0x5E75,0x5E7A,0xE130,0xE131,0x53A6,0x4EB7,0x5ED0, 0x53A8,0xE136,0x5E09,0x5EF4,0xE139, /* row 252 */ 64 | (254 << 8), /* first, last */ 0x5EF9,0x5EFB,0x38A0,0x5EFC,0x683E,0x941B, 0x5F0D,0xE141,0xE142,0x3ADE,0x48AE,0xE145,0x5F3A,0xE147,0xE148,0x5F58, 0xE14A,0x5F63,0x97BD,0xE14D,0x5F72,0x9340,0xE150,0x5FA7,0x5DB6,0x3D5F, 0xE154,0xE155,0xE156,0xE157,0x91D6,0xE159,0xE15A,0x6031,0x6685,0xE15D, 0x3963,0x3DC7,0x3639,0x5790,0xE162,0x7971,0x3E40,0x609E,0x60A4,0x60B3, 0xE168,0xE169,0xE16A,0x74A4,0x50E1,0x5AA0,0x6164,0x8424,0x6142,0xE171, 0xE172,0x6181,0x51F4,0xE175,0x6187,0x5BAA,0xE178,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE179,0x61D3,0xE17B,0xE17C,0x61D0,0x3932,0xE17F,0xE180,0x6023, 0x615C,0x651E,0x638B,0xE185,0x62C5,0xE187,0x62D5,0xE189,0x636C,0xE18B, 0x3A17,0x6438,0x63F8,0xE18F,0xE190,0x6490,0x6F8A,0xE193,0x9814,0xE195, 0xE196,0x64E1,0x64E5,0x947B,0x3A66,0x643A,0x3A57,0x654D,0x6F16,0xE19F, 0xE1A0,0x6585,0x656D,0x655F,0xE1A4,0x65B5,0xE1A6,0x4B37,0x65D1,0x40D8, 0xE1AA,0x65E0,0x65E3,0x5FDF,0xE1AE,0x6618,0xE1B0,0xE1B1,0x6644,0xE1B3, 0xE1B4,0x664B,0xE1B6,0x6667,0xE1B8,0x6673,0x6674,0xE1BB,0xE1BC,0xE1BD, 0xE1BE,0xE1BF,0x77C5,0xE1C1,0x99A4,0x6702,0xE1C4,0xE1C5,0x3B2B,0x69FA, 0xE1C8,0x675E,0x6767,0x6762,0xE1CC,0xE1CD,0x67D7,0x44E9,0x6822,0x6E50, 0x923C,0x6801,0xE1D4,0xE1D5,0x685D, /* row 253 */ 64 | (254 << 8), /* first, last */ 0xE1D7,0x69E1,0x6A0B,0xE1DA,0x6973,0x68C3, 0xE1DD,0x6901,0x6900,0x3D32,0x3A01,0xE1E2,0x3B80,0x67AC,0x6961,0xE1E6, 0x42FC,0x6936,0x6998,0x3BA1,0xE1EB,0x8363,0x5090,0x69F9,0xE1EF,0xE1F0, 0x6A45,0xE1F2,0x6A9D,0x3BF3,0x67B1,0x6AC8,0xE1F7,0x3C0D,0x6B1D,0xE1FA, 0x60DE,0x6B35,0x6B74,0xE1FE,0x6EB5,0xE200,0xE201,0xE202,0x3740,0x5421, 0xE205,0x6BE1,0xE207,0x6BDC,0x6C37,0xE20A,0xE20B,0xE20C,0x6C5A,0x8226, 0x6C79,0xE210,0x44C5,0xE212,0xE213,0xE214,0xE215,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE216,0x36E5,0x3CEB,0xE219,0x9B83,0xE21B,0xE21C,0x7F8F,0x6837, 0xE21F,0xE220,0xE221,0x6D96,0x6D5C,0x6E7C,0x6F04,0xE226,0xE227,0xE228, 0x8533,0xE22A,0x51C7,0x6C9C,0x6E1D,0x842E,0xE22F,0x6E2F,0xE231,0x7453, 0xE233,0x79CC,0x6E4F,0x5A91,0xE237,0x6FF8,0x370D,0x6F9D,0xE23B,0x6EFA, 0xE23D,0xE23E,0x4555,0x93F0,0x6F44,0x6F5C,0x3D4E,0x6F74,0xE245,0x3D3B, 0x6F9F,0xE248,0x6FD3,0xE24A,0xE24B,0xE24C,0xE24D,0xE24E,0xE24F,0x51DF, 0xE251,0xE252,0xE253,0xE254,0x704B,0x707E,0x70A7,0x7081,0x70CC,0x70D5, 0x70D6,0x70DF,0x4104,0x3DE8,0x71B4,0x7196,0xE261,0x712B,0x7145,0x5A88, 0x714A,0x716E,0x5C9C,0xE268,0x714F,0x9362,0xE26B,0x712C,0xE26D,0xE26E, 0xE26F,0x71BA,0xE271,0x70BD,0x720E, /* row 254 */ 64 | (254 << 8), /* first, last */ 0x9442,0x7215,0x5911,0x9443,0x7224,0x9341, 0xE27A,0x722E,0x7240,0xE27D,0x68BD,0x7255,0x7257,0x3E55,0xE282,0x680D, 0x6F3D,0x7282,0x732A,0x732B,0xE288,0xE289,0x48ED,0xE28B,0x7328,0x732E, 0x73CF,0x73AA,0xE290,0xE291,0x73C9,0x7449,0xE294,0xE295,0xE296,0x6623, 0x36C5,0xE299,0xE29A,0xE29B,0x73F7,0x7415,0x6903,0xE29F,0x7439,0xE2A1, 0x3ED7,0x745C,0xE2A4,0x7460,0xE2A6,0x7447,0x73E4,0x7476,0x83B9,0x746C, 0x3730,0x7474,0x93F1,0x6A2C,0x7482,0x4953,0xE2B2,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xE2B3,0xE2B4,0xE2B5,0x5B46,0xE2B7,0xE2B8,0x74C8,0xE2BA,0x750E, 0x74E9,0x751E,0xE2BE,0xE2BF,0x5BD7,0xE2C1,0x9385,0x754D,0x754A,0x7567, 0x756E,0xE2C7,0x3F04,0xE2C9,0x758E,0x745D,0x759E,0x75B4,0x7602,0x762C, 0x7651,0x764F,0x766F,0x7676,0xE2D4,0x7690,0x81EF,0x37F8,0xE2D8,0xE2D9, 0x76A1,0x76A5,0x76B7,0x76CC,0xE2DE,0x8462,0xE2E0,0xE2E1,0xE2E2,0x771E, 0x7726,0x7740,0x64AF,0xE2E7,0x7758,0xE2E9,0x77AF,0xE2EB,0xE2EC,0xE2ED, 0x77F4,0x7809,0xE2F0,0xE2F1,0x68CA,0x78AF,0x78C7,0x78D3,0x96A5,0x792E, 0xE2F8,0x78D7,0x7934,0x78B1,0xE2FC,0x8FB8,0x8884,0xE2FF,0xE300,0xE301, 0x7986,0x8900,0x6902,0x7980,0xE306,0x799D,0xE308,0x793C,0x79A9,0x6E2A, 0xE30C,0x3EA8,0x79C6,0xE30F,0x79D4, /* row 255: --- */ }; static sal_Int32 const aImplBig5Hkscs2001ToUnicodeRowOffsets[] = { -1, /* row 0 */ -1, /* row 1 */ -1, /* row 2 */ -1, /* row 3 */ -1, /* row 4 */ -1, /* row 5 */ -1, /* row 6 */ -1, /* row 7 */ -1, /* row 8 */ -1, /* row 9 */ -1, /* row 10 */ -1, /* row 11 */ -1, /* row 12 */ -1, /* row 13 */ -1, /* row 14 */ -1, /* row 15 */ -1, /* row 16 */ -1, /* row 17 */ -1, /* row 18 */ -1, /* row 19 */ -1, /* row 20 */ -1, /* row 21 */ -1, /* row 22 */ -1, /* row 23 */ -1, /* row 24 */ -1, /* row 25 */ -1, /* row 26 */ -1, /* row 27 */ -1, /* row 28 */ -1, /* row 29 */ -1, /* row 30 */ -1, /* row 31 */ -1, /* row 32 */ -1, /* row 33 */ -1, /* row 34 */ -1, /* row 35 */ -1, /* row 36 */ -1, /* row 37 */ -1, /* row 38 */ -1, /* row 39 */ -1, /* row 40 */ -1, /* row 41 */ -1, /* row 42 */ -1, /* row 43 */ -1, /* row 44 */ -1, /* row 45 */ -1, /* row 46 */ -1, /* row 47 */ -1, /* row 48 */ -1, /* row 49 */ -1, /* row 50 */ -1, /* row 51 */ -1, /* row 52 */ -1, /* row 53 */ -1, /* row 54 */ -1, /* row 55 */ -1, /* row 56 */ -1, /* row 57 */ -1, /* row 58 */ -1, /* row 59 */ -1, /* row 60 */ -1, /* row 61 */ -1, /* row 62 */ -1, /* row 63 */ -1, /* row 64 */ -1, /* row 65 */ -1, /* row 66 */ -1, /* row 67 */ -1, /* row 68 */ -1, /* row 69 */ -1, /* row 70 */ -1, /* row 71 */ -1, /* row 72 */ -1, /* row 73 */ -1, /* row 74 */ -1, /* row 75 */ -1, /* row 76 */ -1, /* row 77 */ -1, /* row 78 */ -1, /* row 79 */ -1, /* row 80 */ -1, /* row 81 */ -1, /* row 82 */ -1, /* row 83 */ -1, /* row 84 */ -1, /* row 85 */ -1, /* row 86 */ -1, /* row 87 */ -1, /* row 88 */ -1, /* row 89 */ -1, /* row 90 */ -1, /* row 91 */ -1, /* row 92 */ -1, /* row 93 */ -1, /* row 94 */ -1, /* row 95 */ -1, /* row 96 */ -1, /* row 97 */ -1, /* row 98 */ -1, /* row 99 */ -1, /* row 100 */ -1, /* row 101 */ -1, /* row 102 */ -1, /* row 103 */ -1, /* row 104 */ -1, /* row 105 */ -1, /* row 106 */ -1, /* row 107 */ -1, /* row 108 */ -1, /* row 109 */ -1, /* row 110 */ -1, /* row 111 */ -1, /* row 112 */ -1, /* row 113 */ -1, /* row 114 */ -1, /* row 115 */ -1, /* row 116 */ -1, /* row 117 */ -1, /* row 118 */ -1, /* row 119 */ -1, /* row 120 */ -1, /* row 121 */ -1, /* row 122 */ -1, /* row 123 */ -1, /* row 124 */ -1, /* row 125 */ -1, /* row 126 */ -1, /* row 127 */ -1, /* row 128 */ -1, /* row 129 */ -1, /* row 130 */ -1, /* row 131 */ -1, /* row 132 */ -1, /* row 133 */ -1, /* row 134 */ -1, /* row 135 */ 0, /* row 136; 148/216 bytes (68.5%) */ 108, /* row 137; 288/384 bytes (75.0%) */ 300, /* row 138; 294/384 bytes (76.6%) */ 492, /* row 139; 310/382 bytes (81.2%) */ 683, /* row 140; 234/316 bytes (74.1%) */ 841, /* row 141; 252/320 bytes (78.8%) */ 1001, /* row 142; 316/384 bytes (82.3%) */ 1193, /* row 143; 316/384 bytes (82.3%) */ 1385, /* row 144; 316/384 bytes (82.3%) */ 1577, /* row 145; 316/384 bytes (82.3%) */ 1769, /* row 146; 316/384 bytes (82.3%) */ 1961, /* row 147; 316/384 bytes (82.3%) */ 2153, /* row 148; 316/384 bytes (82.3%) */ 2345, /* row 149; 316/384 bytes (82.3%) */ 2537, /* row 150; 316/384 bytes (82.3%) */ 2729, /* row 151; 316/384 bytes (82.3%) */ 2921, /* row 152; 316/384 bytes (82.3%) */ 3113, /* row 153; 316/384 bytes (82.3%) */ 3305, /* row 154; 316/384 bytes (82.3%) */ 3497, /* row 155; 314/384 bytes (81.8%) */ 3689, /* row 156; 316/384 bytes (82.3%) */ 3881, /* row 157; 316/384 bytes (82.3%) */ 4073, /* row 158; 310/384 bytes (80.7%) */ 4265, /* row 159; 298/384 bytes (77.6%) */ 4457, /* row 160; 296/384 bytes (77.1%) */ -1, /* row 161 */ -1, /* row 162 */ -1, /* row 163 */ -1, /* row 164 */ -1, /* row 165 */ -1, /* row 166 */ -1, /* row 167 */ -1, /* row 168 */ -1, /* row 169 */ -1, /* row 170 */ -1, /* row 171 */ -1, /* row 172 */ -1, /* row 173 */ -1, /* row 174 */ -1, /* row 175 */ -1, /* row 176 */ -1, /* row 177 */ -1, /* row 178 */ -1, /* row 179 */ -1, /* row 180 */ -1, /* row 181 */ -1, /* row 182 */ -1, /* row 183 */ -1, /* row 184 */ -1, /* row 185 */ -1, /* row 186 */ -1, /* row 187 */ -1, /* row 188 */ -1, /* row 189 */ -1, /* row 190 */ -1, /* row 191 */ -1, /* row 192 */ -1, /* row 193 */ -1, /* row 194 */ -1, /* row 195 */ -1, /* row 196 */ -1, /* row 197 */ 4649, /* row 198; 190/190 bytes (100.0%) */ 4744, /* row 199; 316/384 bytes (82.3%) */ 4936, /* row 200; 230/384 bytes (59.9%) */ -1, /* row 201 */ -1, /* row 202 */ -1, /* row 203 */ -1, /* row 204 */ -1, /* row 205 */ -1, /* row 206 */ -1, /* row 207 */ -1, /* row 208 */ -1, /* row 209 */ -1, /* row 210 */ -1, /* row 211 */ -1, /* row 212 */ -1, /* row 213 */ -1, /* row 214 */ -1, /* row 215 */ -1, /* row 216 */ -1, /* row 217 */ -1, /* row 218 */ -1, /* row 219 */ -1, /* row 220 */ -1, /* row 221 */ -1, /* row 222 */ -1, /* row 223 */ -1, /* row 224 */ -1, /* row 225 */ -1, /* row 226 */ -1, /* row 227 */ -1, /* row 228 */ -1, /* row 229 */ -1, /* row 230 */ -1, /* row 231 */ -1, /* row 232 */ -1, /* row 233 */ -1, /* row 234 */ -1, /* row 235 */ -1, /* row 236 */ -1, /* row 237 */ -1, /* row 238 */ -1, /* row 239 */ -1, /* row 240 */ -1, /* row 241 */ -1, /* row 242 */ -1, /* row 243 */ -1, /* row 244 */ -1, /* row 245 */ -1, /* row 246 */ -1, /* row 247 */ -1, /* row 248 */ 5128, /* row 249; 84/84 bytes (100.0%) */ 5170, /* row 250; 316/384 bytes (82.3%) */ 5362, /* row 251; 316/384 bytes (82.3%) */ 5554, /* row 252; 316/384 bytes (82.3%) */ 5746, /* row 253; 316/384 bytes (82.3%) */ 5938, /* row 254; 316/384 bytes (82.3%) */ -1, /* row 255 */ }; static sal_uInt16 const aImplUnicodeToBig5Hkscs2001Data[] = { /* plane 0, page 0 */ 168 | (252 << 8), /* first, last */ 0xC6D8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8859,0x8857, 0, 0, 0, 0, 0, 0, 0x885D,0x885B,0x8866, 0, 0, 0, 0, 0, 0, 0, 0x8861,0x885F, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x886A,0x8868, 0, 0, 0, 0, 0, 0,0x886F,0x886D,0x88A7, 0,0x8873,0x8871, 0, 0, 0, 0,0x8877,0x8875, 0, 0, 0, 0,0xC8FB,0x887B, 0x8879, 0,0x88A2, /* plane 0, page 1 */ 0 | (220 << 8), /* first, last */ 0x8856,0x8867, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x885A,0x886C, 0, 0, 0, 0, 0, 0,0x885C,0x886E, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8870, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC8FC,0x885E,0x8874, 0, 0, 0, 0, 0,0xC8FA, 0, 0, 0, 0, 0, 0, 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C841,0xC842, 0xC843,0xC844,0xC845,0xC846,0xC847,0xC848,0xC849,0xC84A,0xC84B,0xC84C, 0xC84D,0xC84E,0xC84F,0xC850,0xC851,0xC852,0xC853,0xC854,0xC855,0xC856, 0xC857,0xC858,0xC859,0xC85A,0xC85C,0xC85D,0xC85E,0xC85F,0xC860,0xC861, 0xC862,0xC863,0xC864,0xC865,0xC866,0xC867,0xC868,0xC869,0xC86A,0xC86B, 0xC86C,0xC86D,0xC86E,0xC86F,0xC870,0xC871,0xC872,0xC873,0xC874,0xC875, 0,0xC85B, /* plane 0, page 5: --- */ /* plane 0, page 6: --- */ /* plane 0, page 7: --- */ /* plane 0, page 8: --- */ /* plane 0, page 9: --- */ /* plane 0, page 10: --- */ /* plane 0, page 11: --- */ /* plane 0, page 12: --- */ /* plane 0, page 13: --- */ /* plane 0, page 14: --- */ /* plane 0, page 15: --- */ /* plane 0, page 16: --- */ /* plane 0, page 17: --- */ /* plane 0, page 18: --- */ /* plane 0, page 19: --- */ /* plane 0, page 20: --- */ /* plane 0, page 21: --- */ /* plane 0, page 22: --- */ /* plane 0, page 23: --- */ /* plane 0, page 24: --- */ /* plane 0, page 25: --- */ /* plane 0, page 26: --- */ /* plane 0, page 27: --- */ /* plane 0, page 28: --- */ /* plane 0, page 29: --- */ /* plane 0, page 30 */ 190 | (193 << 8), /* first, last */ 0x8863,0x88A4,0x8865,0x88A6, /* plane 0, page 31: --- */ /* plane 0, page 32: --- */ /* plane 0, page 33 */ 22 | (231 << 8), /* first, last */ 0xC8D2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC8D3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC6B5,0xC6B6,0xC6B7,0xC6B8,0xC6B9,0xC6BA,0xC6BB,0xC6BC, 0xC6BD,0xC6BE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC877,0xC878, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC876, /* plane 0, page 34: --- */ /* plane 0, page 35: --- */ /* plane 0, page 36 */ 96 | (125 << 8), /* first, last */ 0xC6A1,0xC6A2,0xC6A3,0xC6A4, 0xC6A5,0xC6A6,0xC6A7,0xC6A8,0xC6A9,0xC6AA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC6AB,0xC6AC,0xC6AD,0xC6AE, 0xC6AF,0xC6B0,0xC6B1,0xC6B2,0xC6B3,0xC6B4, /* plane 0, page 37 */ 80 | (112 << 8), /* first, last */ 0xF9F9,0xF9F8,0xF9E6,0xF9EF,0xF9DD,0xF9E8,0xF9F1,0xF9DF,0xF9EC,0xF9F5, 0xF9E3,0xF9EE,0xF9F7,0xF9E5,0xF9E9,0xF9F2,0xF9E0,0xF9EB,0xF9F4,0xF9E2, 0xF9E7,0xF9F0,0xF9DE,0xF9ED,0xF9F6,0xF9E4,0xF9EA,0xF9F3,0xF9E1,0xF9FA, 0xF9FB,0xF9FD,0xF9FC, /* plane 0, page 38: --- */ /* plane 0, page 39 */ 61 | (61 << 8), /* first, last */ 0xC6E6, /* plane 0, page 40: --- */ /* plane 0, page 41: --- */ /* plane 0, page 42: --- */ /* plane 0, page 43: --- */ /* plane 0, page 44: --- */ /* plane 0, page 45: --- */ /* plane 0, page 46 */ 128 | (227 << 8), /* first, last */ 0xC8D6, 0, 0, 0,0xC8D7, 0,0xC8D8,0xC8D9,0xC8DA, 0,0xC8DB, 0, 0xC8DC,0xC8DD, 0, 0, 0, 0, 0, 0, 0,0xC8DE, 0, 0, 0, 0, 0, 0,0xC8DF,0xC8E0, 0, 0, 0, 0, 0, 0, 0,0xC8E1, 0,0xC8E2, 0, 0, 0xC8E3, 0,0xC8E4, 0,0xC8E5, 0, 0, 0, 0, 0, 0, 0,0xC8E6, 0, 0, 0, 0, 0,0xC8E7, 0, 0xC8E8, 0, 0, 0, 0, 0, 0, 0,0xC8E9, 0, 0, 0,0xC8EA, 0,0xC8EB,0xC8EC, 0,0xC8ED, 0, 0, 0, 0, 0, 0,0xC8EE,0xC8EF, 0, 0, 0, 0, 0, 0,0xC8F0, 0, 0, 0, 0,0xC8F1, /* plane 0, page 47 */ 51 | (51 << 8), /* first, last */ 0xC6CD, /* plane 0, page 48 */ 5 | (254 << 8), /* first, last */ 0xC6E0,0xC6E1,0xC6E2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC6E7,0xC6E8,0xC6E9,0xC6EA,0xC6EB, 0xC6EC,0xC6ED,0xC6EE,0xC6EF,0xC6F0,0xC6F1,0xC6F2,0xC6F3,0xC6F4,0xC6F5, 0xC6F6,0xC6F7,0xC6F8,0xC6F9,0xC6FA,0xC6FB,0xC6FC,0xC6FD,0xC6FE,0xC740, 0xC741,0xC742,0xC743,0xC744,0xC745,0xC746,0xC747,0xC748,0xC749,0xC74A, 0xC74B,0xC74C,0xC74D,0xC74E,0xC74F,0xC750,0xC751,0xC752,0xC753,0xC754, 0xC755,0xC756,0xC757,0xC758,0xC759,0xC75A,0xC75B,0xC75C,0xC75D,0xC75E, 0xC75F,0xC760,0xC761,0xC762,0xC763,0xC764,0xC765,0xC766,0xC767,0xC768, 0xC769,0xC76A,0xC76B,0xC76C,0xC76D,0xC76E,0xC76F,0xC770,0xC771,0xC772, 0xC773,0xC774,0xC775,0xC776,0xC777,0xC778,0xC779,0xC77A, 0, 0, 0, 0, 0, 0, 0,0xC8D4,0xC8D5,0xC6DC,0xC6DD, 0, 0,0xC77B,0xC77C,0xC77D,0xC77E,0xC7A1,0xC7A2,0xC7A3,0xC7A4,0xC7A5, 0xC7A6,0xC7A7,0xC7A8,0xC7A9,0xC7AA,0xC7AB,0xC7AC,0xC7AD,0xC7AE,0xC7AF, 0xC7B0,0xC7B1,0xC7B2,0xC7B3,0xC7B4,0xC7B5,0xC7B6,0xC7B7,0xC7B8,0xC7B9, 0xC7BA,0xC7BB,0xC7BC,0xC7BD,0xC7BE,0xC7BF,0xC7C0,0xC7C1,0xC7C2,0xC7C3, 0xC7C4,0xC7C5,0xC7C6,0xC7C7,0xC7C8,0xC7C9,0xC7CA,0xC7CB,0xC7CC,0xC7CD, 0xC7CE,0xC7CF,0xC7D0,0xC7D1,0xC7D2,0xC7D3,0xC7D4,0xC7D5,0xC7D6,0xC7D7, 0xC7D8,0xC7D9,0xC7DA,0xC7DB,0xC7DC,0xC7DD,0xC7DE,0xC7DF,0xC7E0,0xC7E1, 0xC7E2,0xC7E3,0xC7E4,0xC7E5,0xC7E6,0xC7E7,0xC7E8,0xC7E9,0xC7EA,0xC7EB, 0xC7EC,0xC7ED,0xC7EE,0xC7EF,0xC7F0,0xC7F1,0xC7F2, 0, 0, 0, 0, 0,0xC6E3,0xC6DA,0xC6DB, /* plane 0, page 49: --- */ /* plane 0, page 50 */ 49 | (49 << 8), /* first, last */ 0xC8D1, /* plane 0, page 51: --- */ /* plane 0, page 52 */ 53 | (251 <<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x8BB7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x91C0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9AB3,0x91C3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xA0FC, 0, 0,0x9FEE, 0, 0, 0, 0, 0, 0, 0x9F69, 0, 0, 0, 0, 0, 0, 0,0x91C8, 0, 0, 0, 0, 0, 0,0x91C9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8DE6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x91CB, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x89C8, 0, 0, 0, 0, 0,0x8DAA, 0, 0, 0, 0, 0,0x9FDD, /* plane 0, page 160: --- */ /* plane 0, page 161: --- */ /* plane 0, page 162: --- */ /* plane 0, page 163: --- */ /* plane 0, page 164: --- */ /* plane 0, page 165: --- */ /* plane 0, page 166: --- */ /* plane 0, page 167: --- */ /* plane 0, page 168: --- */ /* plane 0, page 169: --- */ /* plane 0, page 170: --- */ /* plane 0, page 171: --- */ /* plane 0, page 172: --- */ /* plane 0, page 173: --- */ /* plane 0, page 174: --- */ /* plane 0, page 175: --- */ /* plane 0, page 176: --- */ /* plane 0, page 177: --- */ /* plane 0, page 178: --- */ /* plane 0, page 179: --- */ /* plane 0, page 180: --- */ /* plane 0, page 181: --- */ /* plane 0, page 182: --- */ /* plane 0, page 183: --- */ /* plane 0, page 184: --- */ /* plane 0, page 185: --- */ /* plane 0, page 186: --- */ /* plane 0, page 187: --- */ /* plane 0, page 188: --- */ /* plane 0, page 189: --- */ /* plane 0, page 190: --- */ /* plane 0, page 191: --- */ /* plane 0, page 192: --- */ /* plane 0, page 193: --- */ /* plane 0, page 194: --- */ /* plane 0, page 195: --- */ /* plane 0, page 196: --- */ /* plane 0, page 197: --- */ /* plane 0, page 198: --- */ /* plane 0, page 199: --- */ /* plane 0, page 200: --- */ /* plane 0, page 201: --- */ /* plane 0, page 202: --- */ /* plane 0, page 203: --- */ /* plane 0, page 204: --- */ /* plane 0, page 205: --- */ /* plane 0, page 206: --- */ /* plane 0, page 207: --- */ /* plane 0, page 208: --- */ /* plane 0, page 209: --- */ /* plane 0, page 210: --- */ /* plane 0, page 211: --- */ /* plane 0, page 212: --- */ /* plane 0, page 213: --- */ /* plane 0, page 214: --- */ /* plane 0, page 215: --- */ /* plane 0, page 216: --- */ /* plane 0, page 217: --- */ /* plane 0, page 218: --- */ /* plane 0, page 219: --- */ /* plane 0, page 220: --- */ /* plane 0, page 221: --- */ /* plane 0, page 222: --- */ /* plane 0, page 223: --- */ /* plane 0, page 224 */ 0 | (253 << 8), /* first, last */ 0xFA40, 0,0xFA42,0xFA43, 0,0xFA45, 0, 0,0xFA48,0xFA49, 0xFA4A, 0,0xFA4C, 0,0xFA4E, 0, 0, 0,0xFA52,0xFA53, 0xFA54,0xFA55,0xFA56, 0,0xFA58, 0,0xFA5A,0xFA5B,0xFA5C,0xFA5D, 0xFA5E, 0,0xFA60, 0,0xFA62,0xFA63, 0,0xFA65, 0, 0, 0xFA68, 0, 0,0xFA6B, 0,0xFA6D,0xFA6E, 0,0xFA70, 0, 0xFA72,0xFA73,0xFA74,0xFA75,0xFA76,0xFA77,0xFA78, 0, 0,0xFA7B, 0xFA7C, 0, 0, 0, 0, 0, 0,0xFAA5, 0,0xFAA7, 0, 0, 0, 0, 0, 0,0xFAAE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFABC, 0,0xFABE, 0, 0,0xFAC1,0xFAC2,0xFAC3, 0, 0, 0xFAC6, 0,0xFAC8, 0, 0, 0,0xFACC,0xFACD,0xFACE, 0, 0xFAD0, 0, 0,0xFAD3, 0, 0,0xFAD6,0xFAD7, 0, 0, 0xFADA, 0, 0, 0, 0,0xFADF,0xFAE0, 0, 0, 0, 0, 0, 0, 0,0xFAE8,0xFAE9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0,0x8F63, 0x8F64, 0, 0,0x8F67, 0, 0,0x8F6A,0x8F6B,0x8F6C, 0, 0, 0,0x8F70, 0, 0,0x8F73,0x8F74,0x8F75,0x8F76, 0, 0,0x8F79,0x8F7A, 0,0x8F7C, 0, 0,0x8FA1,0x8FA2, 0, 0x8FA4, 0,0x8FA6,0x8FA7,0x8FA8,0x8FA9, 0,0x8FAB,0x8FAC, 0, 0x8FAE, 0, 0,0x8FB1, 0,0x8FB3, /* plane 0, page 228 */ 6 | (255 << 8), /* first, last */ 0x8FBA, 0, 0,0x8FBD, 0x8FBE,0x8FBF, 0, 0,0x8FC2, 0, 0, 0, 0, 0, 0x8FC8, 0, 0, 0, 0, 0, 0,0x8FCF, 0,0x8FD1, 0x8FD2, 0, 0, 0, 0,0x8FD7, 0,0x8FD9,0x8FDA,0x8FDB, 0x8FDC, 0, 0, 0,0x8FE0,0x8FE1, 0, 0, 0, 0, 0x8FE6, 0, 0, 0,0x8FEA,0x8FEB, 0, 0,0x8FEE,0x8FEF, 0x8FF0,0x8FF1,0x8FF2, 0,0x8FF4,0x8FF5, 0, 0,0x8FF8, 0, 0, 0,0x8FFC,0x8FFD, 0, 0,0x9041,0x9042,0x9043,0x9044, 0x9045,0x9046, 0, 0, 0, 0, 0, 0, 0,0x904E, 0x904F, 0, 0,0x9052,0x9053, 0,0x9055,0x9056,0x9057,0x9058, 0,0x905A, 0,0x905C,0x905D,0x905E,0x905F,0x9060,0x9061, 0, 0x9063,0x9064, 0,0x9066,0x9067, 0,0x9069, 0,0x906B, 0, 0, 0,0x906F, 0, 0, 0,0x9073,0x9074, 0, 0, 0, 0,0x9079, 0,0x907B,0x907C,0x907D,0x907E,0x90A1, 0, 0,0x90A4,0x90A5, 0, 0,0x90A8,0x90A9,0x90AA, 0,0x90AC, 0x90AD,0x90AE, 0, 0, 0, 0, 0, 0, 0, 0, 0x90B7,0x90B8,0x90B9,0x90BA,0x90BB,0x90BC, 0, 0, 0,0x90C0, 0,0x90C2, 0, 0, 0,0x90C6, 0, 0,0x90C9,0x90CA, 0x90CB,0x90CC,0x90CD,0x90CE,0x90CF,0x90D0,0x90D1, 0, 0, 0, 0x90D5,0x90D6,0x90D7,0x90D8, 0, 0, 0, 0,0x90DD, 0, 0,0x90E0, 0, 0, 0,0x90E4,0x90E5, 0, 0, 0, 0, 0, 0, 0,0x90ED, 0, 0,0x90F0, 0, 0, 0x90F3,0x90F4,0x90F5, 0, 0, 0, 0,0x90FA,0x90FB,0x90FC, 0x90FD,0x90FE,0x9140, 0, 0, 0, 0,0x9145,0x9146,0x9147, 0, 0, 0, 0, 0, 0,0x914E,0x914F,0x9150,0x9151, 0, 0, 0, 0, 0,0x9157, /* plane 0, page 229 */ 0 | (254 << 8), /* first, last */ 0x9158,0x9159,0x915A, 0, 0,0x915D, 0,0x915F, 0, 0, 0x9162, 0, 0,0x9165,0x9166,0x9167, 0, 0,0x916A, 0, 0x916C, 0,0x916E, 0, 0, 0,0x9172, 0,0x9174,0x9175, 0x9176,0x9177,0x9178,0x9179, 0, 0,0x917C, 0, 0, 0, 0x91A2,0x91A3,0x91A4,0x91A5,0x91A6, 0,0x91A8,0x91A9, 0, 0, 0, 0,0x91AE, 0, 0,0x91B1, 0,0x91B3,0x91B4,0x91B5, 0,0x91B7,0x91B8, 0, 0,0x91BB, 0,0x91BD, 0, 0, 0, 0, 0, 0, 0,0x91C5, 0, 0, 0, 0, 0, 0, 0,0x91CD,0x91CE,0x91CF, 0,0x91D1,0x91D2,0x91D3, 0,0x91D5,0x91D6, 0,0x91D8,0x91D9, 0, 0,0x91DC, 0, 0, 0,0x91E0,0x91E1, 0,0x91E3, 0, 0, 0,0x91E7, 0x91E8, 0,0x91EA, 0,0x91EC,0x91ED,0x91EE,0x91EF,0x91F0,0x91F1, 0x91F2,0x91F3,0x91F4,0x91F5,0x91F6,0x91F7,0x91F8,0x91F9,0x91FA, 0, 0x91FC,0x91FD,0x91FE,0x9240,0x9241, 0,0x9243, 0, 0,0x9246, 0x9247,0x9248,0x9249,0x924A,0x924B,0x924C,0x924D,0x924E,0x924F, 0, 0x9251,0x9252,0x9253, 0,0x9255, 0,0x9257,0x9258,0x9259,0x925A, 0x925B,0x925C, 0, 0,0x925F, 0,0x9261,0x9262,0x9263, 0, 0x9265, 0, 0, 0,0x9269,0x926A, 0,0x926C,0x926D, 0, 0,0x9270, 0,0x9272,0x9273,0x9274,0x9275,0x9276,0x9277, 0, 0x9279,0x927A,0x927B, 0,0x927D, 0, 0, 0, 0, 0, 0x92A5,0x92A6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x92B4,0x92B5,0x92B6, 0,0x92B8, 0x92B9, 0, 0,0x92BC,0x92BD,0x92BE,0x92BF,0x92C0, 0,0x92C2, 0x92C3, 0, 0,0x92C6, 0, 0,0x92C9, 0,0x92CB,0x92CC, 0x92CD,0x92CE, 0,0x92D0, 0,0x92D2, 0, 0, 0, 0, 0x92D7,0x92D8,0x92D9, 0,0x92DB, /* plane 0, page 230 */ 0 | (255 << 8), /* first, last */ 0x92DD, 0,0x92DF, 0,0x92E1, 0, 0, 0, 0, 0, 0, 0,0x92E9, 0, 0,0x92EC,0x92ED,0x92EE,0x92EF, 0, 0, 0, 0, 0, 0,0x92F6,0x92F7,0x92F8,0x92F9,0x92FA, 0, 0, 0,0x92FE, 0,0x9341,0x9342, 0, 0,0x9345, 0,0x9347, 0,0x9349, 0,0x934B, 0, 0, 0, 0, 0x9350,0x9351,0x9352, 0, 0,0x9355,0x9356,0x9357,0x9358,0x9359, 0x935A,0x935B, 0,0x935D,0x935E,0x935F,0x9360, 0, 0,0x9363, 0x9364, 0,0x9366, 0, 0,0x9369, 0, 0,0x936C,0x936D, 0,0x936F,0x9370,0x9371,0x9372,0x9373, 0,0x9375,0x9376,0x9377, 0, 0, 0,0x937B,0x937C,0x937D,0x937E, 0,0x93A2,0x93A3, 0x93A4,0x93A5,0x93A6,0x93A7,0x93A8, 0,0x93AA, 0, 0, 0, 0x93AE,0x93AF, 0,0x93B1, 0, 0, 0,0x93B5,0x93B6,0x93B7, 0x93B8,0x93B9, 0,0x93BB,0x93BC,0x93BD, 0,0x93BF,0x93C0,0x93C1, 0x93C2,0x93C3,0x93C4,0x93C5,0x93C6,0x93C7,0x93C8, 0,0x93CA,0x93CB, 0x93CC,0x93CD,0x93CE,0x93CF,0x93D0, 0,0x93D2, 0,0x93D4, 0, 0x93D6,0x93D7, 0,0x93D9,0x93DA, 0,0x93DC,0x93DD,0x93DE,0x93DF, 0x93E0,0x93E1,0x93E2, 0,0x93E4, 0,0x93E6, 0, 0,0x93E9, 0,0x93EB,0x93EC,0x93ED, 0, 0, 0, 0,0x93F2, 0, 0, 0,0x93F6, 0, 0,0x93F9,0x93FA, 0, 0,0x93FD, 0x93FE, 0,0x9441,0x9442, 0, 0, 0,0x9446, 0,0x9448, 0x9449, 0,0x944B, 0, 0, 0, 0, 0, 0,0x9452, 0x9453, 0, 0, 0, 0,0x9458,0x9459, 0,0x945B,0x945C, 0,0x945E,0x945F,0x9460,0x9461,0x9462,0x9463,0x9464,0x9465,0x9466, 0x9467, 0,0x9469, 0, 0, 0, 0,0x946E,0x946F,0x9470, 0,0x9472,0x9473,0x9474,0x9475, 0, 0,0x9478,0x9479, 0, 0x947B,0x947C,0x947D,0x947E,0x94A1,0x94A2, /* plane 0, page 231 */ 0 | (255 << 8), /* first, last */ 0x94A3,0x94A4,0x94A5, 0, 0, 0,0x94A9,0x94AA, 0,0x94AC, 0x94AD, 0,0x94AF, 0, 0, 0,0x94B3,0x94B4,0x94B5,0x94B6, 0, 0,0x94B9,0x94BA,0x94BB,0x94BC,0x94BD,0x94BE, 0,0x94C0, 0, 0, 0, 0, 0, 0,0x94C7,0x94C8,0x94C9, 0, 0, 0, 0,0x94CE, 0, 0,0x94D1,0x94D2,0x94D3, 0, 0,0x94D6,0x94D7,0x94D8,0x94D9,0x94DA,0x94DB, 0,0x94DD,0x94DE, 0x94DF,0x94E0, 0, 0,0x94E3,0x94E4,0x94E5, 0,0x94E7, 0, 0,0x94EA, 0,0x94EC, 0, 0,0x94EF,0x94F0,0x94F1,0x94F2, 0,0x94F4,0x94F5, 0, 0, 0, 0, 0, 0, 0, 0,0x94FE,0x9540,0x9541, 0,0x9543,0x9544,0x9545,0x9546, 0, 0x9548,0x9549, 0,0x954B,0x954C,0x954D, 0, 0,0x9550,0x9551, 0x9552, 0,0x9554, 0, 0, 0, 0,0x9559,0x955A,0x955B, 0x955C, 0,0x955E, 0,0x9560,0x9561,0x9562, 0,0x9564, 0, 0, 0,0x9568, 0,0x956A, 0, 0,0x956D, 0,0x956F, 0,0x9571, 0,0x9573,0x9574, 0,0x9576, 0,0x9578, 0, 0x957A,0x957B, 0,0x957D, 0, 0, 0, 0, 0, 0, 0, 0,0x95A8, 0,0x95AA,0x95AB,0x95AC,0x95AD,0x95AE,0x95AF, 0x95B0, 0,0x95B2,0x95B3,0x95B4, 0, 0,0x95B7, 0, 0, 0x95BA, 0, 0, 0,0x95BE, 0, 0, 0,0x95C2, 0, 0, 0,0x95C6,0x95C7, 0, 0,0x95CA, 0, 0,0x95CD, 0, 0,0x95D0,0x95D1, 0, 0,0x95D4, 0,0x95D6,0x95D7, 0, 0, 0,0x95DB, 0, 0,0x95DE,0x95DF,0x95E0, 0, 0x95E2,0x95E3, 0, 0, 0, 0, 0, 0,0x95EA, 0, 0x95EC,0x95ED,0x95EE,0x95EF,0x95F0,0x95F1, 0,0x95F3,0x95F4,0x95F5, 0x95F6,0x95F7,0x95F8,0x95F9, 0, 0,0x95FC, 0,0x95FE, 0, 0x9641,0x9642,0x9643, 0, 0,0x9646, /* plane 0, page 232 */ 0 | (254 << 8), /* first, last */ 0x9647,0x9648,0x9649, 0, 0, 0,0x964D, 0,0x964F, 0, 0, 0,0x9653, 0,0x9655,0x9656, 0,0x9658, 0,0x965A, 0,0x965C,0x965D,0x965E,0x965F, 0,0x9661,0x9662, 0,0x9664, 0, 0, 0,0x9668,0x9669, 0,0x966B, 0, 0,0x966E, 0x966F, 0, 0, 0, 0,0x9674,0x9675,0x9676, 0,0x9678, 0x9679, 0, 0,0x967C, 0,0x967E,0x96A1, 0,0x96A3,0x96A4, 0,0x96A6, 0,0x96A8, 0,0x96AA,0x96AB, 0, 0, 0, 0, 0, 0, 0, 0,0x96B4, 0,0x96B6,0x96B7, 0, 0x96B9,0x96BA, 0,0x96BC, 0,0x96BE,0x96BF,0x96C0,0x96C1, 0, 0,0x96C4,0x96C5,0x96C6, 0,0x96C8,0x96C9,0x96CA,0x96CB, 0, 0,0x96CE,0x96CF,0x96D0, 0,0x96D2,0x96D3,0x96D4,0x96D5,0x96D6, 0, 0, 0,0x96DA, 0, 0, 0, 0,0x96DF, 0, 0x96E1, 0, 0, 0, 0,0x96E6,0x96E7,0x96E8,0x96E9, 0, 0, 0, 0, 0, 0,0x96F0, 0, 0, 0, 0, 0, 0,0x96F7,0x96F8, 0,0x96FA,0x96FB, 0,0x96FD,0x96FE, 0, 0, 0,0x9743,0x9744,0x9745,0x9746,0x9747, 0, 0, 0x974A,0x974B, 0,0x974D,0x974E,0x974F,0x9750,0x9751, 0,0x9753, 0x9754, 0,0x9756,0x9757,0x9758,0x9759,0x975A, 0, 0,0x975D, 0,0x975F,0x9760,0x9761,0x9762, 0, 0, 0,0x9766,0x9767, 0x9768,0x9769,0x976A,0x976B,0x976C,0x976D, 0,0x976F, 0,0x9771, 0, 0, 0,0x9775, 0,0x9777,0x9778, 0,0x977A,0x977B, 0x977C,0x977D, 0,0x97A1,0x97A2, 0,0x97A4,0x97A5,0x97A6, 0, 0,0x97A9, 0,0x97AB,0x97AC,0x97AD,0x97AE, 0,0x97B0,0x97B1, 0x97B2, 0,0x97B4,0x97B5,0x97B6, 0,0x97B8,0x97B9,0x97BA, 0, 0,0x97BD,0x97BE, 0,0x97C0,0x97C1,0x97C2,0x97C3, 0,0x97C5, 0x97C6,0x97C7, 0,0x97C9,0x97CA, /* plane 0, page 233 */ 0 | (254 << 8), /* first, last */ 0x97CC,0x97CD, 0,0x97CF, 0, 0,0x97D2,0x97D3,0x97D4, 0, 0,0x97D7,0x97D8, 0,0x97DA,0x97DB,0x97DC,0x97DD,0x97DE, 0, 0,0x97E1, 0,0x97E3,0x97E4, 0, 0,0x97E7,0x97E8, 0, 0x97EA,0x97EB,0x97EC,0x97ED,0x97EE, 0, 0,0x97F1,0x97F2,0x97F3, 0x97F4,0x97F5,0x97F6,0x97F7,0x97F8, 0,0x97FA,0x97FB, 0,0x97FD, 0x97FE,0x9840,0x9841,0x9842,0x9843, 0,0x9845, 0,0x9847, 0, 0x9849,0x984A,0x984B, 0, 0,0x984E, 0, 0,0x9851,0x9852, 0x9853, 0,0x9855,0x9856, 0, 0, 0,0x985A, 0, 0, 0x985D, 0,0x985F,0x9860,0x9861,0x9862, 0,0x9864,0x9865, 0, 0x9867, 0,0x9869,0x986A,0x986B, 0,0x986D,0x986E, 0, 0, 0x9871,0x9872, 0,0x9874,0x9875, 0, 0, 0,0x9879, 0, 0x987B,0x987C, 0, 0, 0,0x98A2,0x98A3,0x98A4, 0,0x98A6, 0x98A7,0x98A8,0x98A9,0x98AA, 0,0x98AC, 0, 0, 0,0x98B0, 0x98B1, 0, 0, 0, 0,0x98B6, 0, 0,0x98B9, 0, 0,0x98BC,0x98BD, 0, 0,0x98C0, 0, 0,0x98C3, 0, 0x98C5, 0, 0, 0, 0, 0,0x98CB,0x98CC,0x98CD,0x98CE, 0,0x98D0,0x98D1, 0, 0, 0, 0,0x98D6, 0, 0, 0x98D9, 0,0x98DB, 0,0x98DD, 0,0x98DF, 0, 0, 0, 0,0x98E4, 0,0x98E6, 0,0x98E8,0x98E9, 0,0x98EB,0x98EC, 0, 0, 0, 0, 0, 0, 0,0x98F4, 0, 0, 0, 0, 0,0x98FA, 0, 0, 0,0x98FE,0x9940, 0, 0, 0, 0, 0,0x9946, 0,0x9948, 0, 0,0x994B, 0, 0,0x994E, 0, 0, 0, 0, 0, 0,0x9955, 0x9956, 0, 0,0x9959, 0,0x995B, 0, 0, 0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*/ 0x9FEC, 0, 0, 0, 0, 0, 0, 0, 0,0x9FF5, 0, 0, 0,0x9FF9, 0, 0, 0, 0, 0,0xA040, 0, 0, 0, 0,0xA045, 0,0xA047, 0, 0, 0, 0, 0, 0, 0,0xA04F, 0, 0, 0,0xA053, 0,0xA055,0xA056, 0, 0,0xA059, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xA068, 0,0xA06A, 0, 0,0xA06D, 0,0xA06F, 0, 0, 0, 0, 0, 0, 0, 0,0xA078, 0, 0,0xA07B, 0, 0,0xA07E, 0,0xA0A2, 0,0xA0A4, 0, 0,0xA0A7, 0, 0, 0, 0xA0AB,0xA0AC, 0, 0, 0, 0,0xA0B1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xA0BD, 0, 0, 0, 0, 0,0xA0C3, 0,0xA0C5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xA0D0, 0, 0, 0, 0, 0, 0, 0,0xA0D8, 0,0xA0DA, 0, 0, 0,0xA0DE, 0, 0, 0, 0,0xA0E3, 0, 0,0xA0E6, 0,0xA0E8,0xA0E9,0xA0EA,0xA0EB,0xA0EC,0xA0ED,0xA0EE,0xA0EF,0xA0F0, 0xA0F1, 0,0xA0F3,0xA0F4,0xA0F5,0xA0F6,0xA0F7,0xA0F8,0xA0F9, 0, 0xA0FB, 0, 0,0xA0FE, /* plane 0, page 239: --- */ /* plane 0, page 240: --- */ /* plane 0, page 241: --- */ /* plane 0, page 242: --- */ /* plane 0, page 243 */ 3 | (253 << 8), /* first, last */ 0x8840,0x8841,0x8842,0x8843,0x8844,0x8845,0x8846, 0x8847,0x8848,0x8849,0x884A,0x884B,0x884C,0x884D,0x884E,0x884F,0x8850, 0x8851,0x8852,0x8853,0x8854,0x8855, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8862, 0,0x8864, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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6,0xC8D7,0xC8D8,0xC8D9,0xC8DA,0xC8DB,0xC8DC,0xC8DD, 0xC8DE,0xC8DF,0xC8E0,0xC8E1,0xC8E2,0xC8E3,0xC8E4,0xC8E5,0xC8E6,0xC8E7, 0xC8E8,0xC8E9,0xC8EA,0xC8EB,0xC8EC,0xC8ED,0xC8EE,0xC8EF,0xC8F0,0xC8F1, /* plane 0, page 249 */ 7 | (7 << 8), /* first, last */ 0x8BF8, /* plane 0, page 250: --- */ /* plane 0, page 251: --- */ /* plane 0, page 252: --- */ /* plane 0, page 253: --- */ /* plane 0, page 254: --- */ /* plane 0, page 255 */ 2 | (237 << 8), /* first, last */ 0xC8D0, 0, 0, 0, 0,0xC8CF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xC6E4, 0,0xC6E5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8EC8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x94B4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x93E1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x93DF, 0, 0, 0, 0, 0,0xFCF0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x93EC,0x97F6,0x96CF, /* plane 2, page 56 */ 58 | (58 << 8), /* first, last */ 0x93DE, /* plane 2, page 57 */ 194 | (194 << 8), /* first, last */ 0x8ACF, /* plane 2, page 58 */ 167 | (250 << 8), /* first, last */ 0x9BA2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xFD69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9352, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x98A2, /* plane 2, page 59 */ 90 | (90 << 8), /* first, last */ 0xFD6E, /* plane 2, page 60 */ 99 | (255 << 8), /* first, last */ 0x8CA4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0,0x8FF5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x95C2, /* plane 2, page 126 */ 77 | (79 << 8), /* first, last */ 0x986A, 0,0x97CF, /* plane 2, page 127 */ 249 | (249 << 8), /* first, last */ 0x9E7C, /* plane 2, page 128 */ 2 | (244 << 8), /* first, last */ 0x9041, 0, 0, 0, 0, 0, 0,0x9CDB, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x9441, 0, 0, 0, 0,0x9CE6,0x9DB0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CEA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CED, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CFA, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8B62, 0x8A4E, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CCA,0x8A66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CFB, /* plane 2, page 129 */ 46 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9CDD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9D77, /* plane 2, page 163 */ 169 | (169 << 8), /* first, last */ 0x8940, /* plane 2, page 164 */ 52 | (91 << 8), /* first, last */ 0x9EEC, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x93AA, /* plane 2, page 165 */ 198 | (203 << 8), /* first, last */ 0x9478, 0, 0, 0, 0,0x9D7A, /* plane 2, page 166 */ 1 | (169 << 8), /* first, last */ 0x8AC9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x8B4B, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9FEC, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8AE2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9E75, /* plane 2, page 167: --- */ /* plane 2, page 168: --- */ /* plane 2, page 169: --- */ /* plane 2, page 170: --- */ /* plane 2, page 171: --- */ /* plane 2, page 172: --- */ /* plane 2, page 173: --- */ /* plane 2, page 174: --- */ /* plane 2, page 175: --- */ /* plane 2, page 176: --- */ /* plane 2, page 177: --- */ /* plane 2, page 178: --- */ /* plane 2, page 179: --- */ /* plane 2, page 180: --- */ /* plane 2, page 181: --- */ /* plane 2, page 182: --- */ /* plane 2, page 183: --- */ /* plane 2, page 184: --- */ /* plane 2, page 185: --- */ /* plane 2, page 186: --- */ /* plane 2, page 187: --- */ /* plane 2, page 188: --- */ /* plane 2, page 189: --- */ /* plane 2, page 190: --- */ /* plane 2, page 191: --- */ /* plane 2, page 192: --- */ /* plane 2, page 193: --- */ /* plane 2, page 194: --- */ /* plane 2, page 195: --- */ /* plane 2, page 196: --- */ /* plane 2, page 197: --- */ /* plane 2, page 198: --- */ /* plane 2, page 199: --- */ /* plane 2, page 200: --- */ /* plane 2, page 201: --- */ /* plane 2, page 202: --- */ /* plane 2, page 203: --- */ /* plane 2, page 204: --- */ /* plane 2, page 205: --- */ /* plane 2, page 206: --- */ /* plane 2, page 207: --- */ /* plane 2, page 208: --- */ /* plane 2, page 209: --- */ /* plane 2, page 210: --- */ /* plane 2, page 211: --- */ /* plane 2, page 212: --- */ /* plane 2, page 213: --- */ /* plane 2, page 214: --- */ /* plane 2, page 215: --- */ /* plane 2, page 216: --- */ /* plane 2, page 217: --- */ /* plane 2, page 218: --- */ /* plane 2, page 219: --- */ /* plane 2, page 220: --- */ /* plane 2, page 221: --- */ /* plane 2, page 222: --- */ /* plane 2, page 223: --- */ /* plane 2, page 224: --- */ /* plane 2, page 225: --- */ /* plane 2, page 226: --- */ /* plane 2, page 227: --- */ /* plane 2, page 228: --- */ /* plane 2, page 229: --- */ /* plane 2, page 230: --- */ /* plane 2, page 231: --- */ /* plane 2, page 232: --- */ /* plane 2, page 233: --- */ /* plane 2, page 234: --- */ /* plane 2, page 235: --- */ /* plane 2, page 236: --- */ /* plane 2, page 237: --- */ /* plane 2, page 238: --- */ /* plane 2, page 239: --- */ /* plane 2, page 240: --- */ /* plane 2, page 241: --- */ /* plane 2, page 242: --- */ /* plane 2, page 243: --- */ /* plane 2, page 244: --- */ /* plane 2, page 245: --- */ /* plane 2, page 246: --- */ /* plane 2, page 247: --- */ /* plane 2, page 248 */ 37 | (205 << 8), /* first, last */ 0x9874, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9AC8, 0, 0, 0, 0,0xA047, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x8BC3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xFC48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0xFC77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x9C52, /* plane 2, page 249 */ 148 | (212 << 8), /* first, last */ 0x8EFD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8FA8, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x957A, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0x8FF0, /* plane 2, page 250: --- */ /* plane 2, page 251: --- */ /* plane 2, page 252: --- */ /* plane 2, page 253: --- */ /* plane 2, page 254: --- */ /* plane 2, page 255: --- */ /* plane 3: --- */ /* plane 4: --- */ /* plane 5: --- */ /* plane 6: --- */ /* plane 7: --- */ /* plane 8: --- */ /* plane 9: --- */ /* plane 10: --- */ /* plane 11: --- */ /* plane 12: --- */ /* plane 13: --- */ /* plane 14: --- */ /* plane 15: --- */ /* plane 16: --- */ }; static sal_Int32 const aImplUnicodeToBig5Hkscs2001PageOffsets[] = { 0, /* plane 0, page 0; 44/172 bytes (25.6%) */ 86, /* plane 0, page 1; 46/444 bytes (10.4%) */ 308, /* plane 0, page 2; 22/240 bytes (9.2%) */ -1, /* plane 0, page 3 */ 428, /* plane 0, page 4; 134/164 bytes (81.7%) */ -1, /* plane 0, page 5 */ -1, /* plane 0, page 6 */ -1, /* plane 0, page 7 */ -1, /* plane 0, page 8 */ -1, /* plane 0, page 9 */ -1, /* plane 0, page 10 */ -1, /* plane 0, page 11 */ -1, /* plane 0, page 12 */ -1, /* plane 0, page 13 */ -1, /* plane 0, page 14 */ -1, /* plane 0, page 15 */ -1, /* plane 0, page 16 */ -1, /* plane 0, page 17 */ -1, /* plane 0, page 18 */ -1, /* plane 0, page 19 */ -1, /* plane 0, page 20 */ -1, /* plane 0, page 21 */ -1, /* plane 0, page 22 */ -1, /* plane 0, page 23 */ -1, /* plane 0, page 24 */ -1, /* plane 0, page 25 */ -1, /* plane 0, page 26 */ -1, /* plane 0, page 27 */ -1, /* plane 0, page 28 */ -1, /* plane 0, page 29 */ 510, /* plane 0, page 30; 10/10 bytes (100.0%) */ -1, /* plane 0, page 31 */ -1, /* plane 0, page 32 */ 515, /* plane 0, page 33; 32/422 bytes (7.6%) */ -1, /* plane 0, page 34 */ -1, /* plane 0, page 35 */ 726, /* plane 0, page 36; 42/62 bytes (67.7%) */ 757, /* plane 0, page 37; 68/68 bytes (100.0%) */ -1, /* plane 0, page 38 */ 791, /* plane 0, page 39; 4/4 bytes (100.0%) */ -1, /* plane 0, page 40 */ -1, /* plane 0, page 41 */ -1, /* plane 0, page 42 */ -1, /* plane 0, page 43 */ -1, /* plane 0, page 44 */ -1, /* plane 0, page 45 */ 793, /* plane 0, page 46; 58/202 bytes (28.7%) */ 894, /* plane 0, page 47; 4/4 bytes (100.0%) */ 896, /* plane 0, page 48; 360/502 bytes (71.7%) */ -1, /* plane 0, page 49 */ 1147, /* plane 0, page 50; 4/4 bytes (100.0%) */ -1, /* plane 0, page 51 */ 1149, /* plane 0, page 52; 38/400 bytes (9.5%) */ 1349, /* plane 0, page 53; 66/500 bytes (13.2%) */ 1599, /* plane 0, page 54; 80/476 bytes (16.8%) */ 1837, /* plane 0, page 55; 54/504 bytes (10.7%) */ 2089, /* plane 0, page 56; 26/474 bytes (5.5%) */ 2326, /* plane 0, page 57; 48/496 bytes (9.7%) */ 2574, /* plane 0, page 58; 48/504 bytes (9.5%) */ 2826, /* plane 0, page 59; 54/464 bytes (11.6%) */ 3058, /* plane 0, page 60; 28/456 bytes (6.1%) */ 3286, /* plane 0, page 61; 76/472 bytes (16.1%) */ 3522, /* plane 0, page 62; 72/502 bytes (14.3%) */ 3773, /* plane 0, page 63; 36/504 bytes (7.1%) */ 4025, /* plane 0, page 64; 40/496 bytes (8.1%) */ 4273, /* plane 0, page 65; 36/496 bytes (7.3%) */ 4521, /* plane 0, page 66; 34/474 bytes (7.2%) */ 4758, /* plane 0, page 67; 20/402 bytes (5.0%) */ 4959, /* plane 0, page 68; 48/490 bytes (9.8%) */ 5204, /* plane 0, page 69; 46/464 bytes (9.9%) */ 5436, /* plane 0, page 70; 22/482 bytes (4.6%) */ 5677, /* plane 0, page 71; 22/454 bytes (4.8%) */ 5904, /* plane 0, page 72; 28/504 bytes (5.6%) */ 6156, /* plane 0, page 73; 44/454 bytes (9.7%) */ 6383, /* plane 0, page 74; 22/484 bytes (4.5%) */ 6625, /* plane 0, page 75; 40/356 bytes (11.2%) */ 6803, /* plane 0, page 76; 34/470 bytes (7.2%) */ 7038, /* plane 0, page 77; 12/298 bytes (4.0%) */ 7187, /* plane 0, page 78; 74/492 bytes (15.0%) */ 7433, /* plane 0, page 79; 54/504 bytes (10.7%) */ 7685, /* plane 0, page 80; 44/502 bytes (8.8%) */ 7936, /* plane 0, page 81; 80/510 bytes (15.7%) */ 8191, /* plane 0, page 82; 64/498 bytes (12.9%) */ 8440, /* plane 0, page 83; 90/510 bytes (17.6%) */ 8695, /* plane 0, page 84; 68/444 bytes (15.3%) */ 8917, /* plane 0, page 85; 78/502 bytes (15.5%) */ 9168, /* plane 0, page 86; 80/500 bytes (16.0%) */ 9418, /* plane 0, page 87; 74/512 bytes (14.5%) */ 9674, /* plane 0, page 88; 64/500 bytes (12.8%) */ 9924, /* plane 0, page 89; 56/498 bytes (11.2%) */ 10173, /* plane 0, page 90; 86/508 bytes (16.9%) */ 10427, /* plane 0, page 91; 60/488 bytes (12.3%) */ 10671, /* plane 0, page 92; 50/484 bytes (10.3%) */ 10913, /* plane 0, page 93; 52/462 bytes (11.3%) */ 11144, /* plane 0, page 94; 44/490 bytes (9.0%) */ 11389, /* plane 0, page 95; 46/426 bytes (10.8%) */ 11602, /* plane 0, page 96; 40/440 bytes (9.1%) */ 11822, /* plane 0, page 97; 58/442 bytes (13.1%) */ 12043, /* plane 0, page 98; 34/374 bytes (9.1%) */ 12230, /* plane 0, page 99; 42/464 bytes (9.1%) */ 12462, /* plane 0, page 100; 42/458 bytes (9.2%) */ 12691, /* plane 0, page 101; 48/494 bytes (9.7%) */ 12938, /* plane 0, page 102; 54/438 bytes (12.3%) */ 13157, /* plane 0, page 103; 48/508 bytes (9.4%) */ 13411, /* plane 0, page 104; 60/408 bytes (14.7%) */ 13615, /* plane 0, page 105; 72/504 bytes (14.3%) */ 13867, /* plane 0, page 106; 76/490 bytes (15.5%) */ 14112, /* plane 0, page 107; 30/494 bytes (6.1%) */ 14359, /* plane 0, page 108; 50/458 bytes (10.9%) */ 14588, /* plane 0, page 109; 40/508 bytes (7.9%) */ 14842, /* plane 0, page 110; 56/500 bytes (11.2%) */ 15092, /* plane 0, page 111; 52/492 bytes (10.6%) */ 15338, /* plane 0, page 112; 80/506 bytes (15.8%) */ 15591, /* plane 0, page 113; 84/486 bytes (17.3%) */ 15834, /* plane 0, page 114; 52/456 bytes (11.4%) */ 16062, /* plane 0, page 115; 76/502 bytes (15.1%) */ 16313, /* plane 0, page 116; 96/496 bytes (19.4%) */ 16561, /* plane 0, page 117; 62/434 bytes (14.3%) */ 16778, /* plane 0, page 118; 50/434 bytes (11.5%) */ 16995, /* plane 0, page 119; 56/488 bytes (11.5%) */ 17239, /* plane 0, page 120; 70/478 bytes (14.6%) */ 17478, /* plane 0, page 121; 62/480 bytes (12.9%) */ 17718, /* plane 0, page 122; 64/500 bytes (12.8%) */ 17968, /* plane 0, page 123; 48/486 bytes (9.9%) */ 18211, /* plane 0, page 124; 76/472 bytes (16.1%) */ 18447, /* plane 0, page 125; 46/438 bytes (10.5%) */ 18666, /* plane 0, page 126; 36/436 bytes (8.3%) */ 18884, /* plane 0, page 127; 42/492 bytes (8.5%) */ 19130, /* plane 0, page 128; 56/492 bytes (11.4%) */ 19376, /* plane 0, page 129; 62/490 bytes (12.7%) */ 19621, /* plane 0, page 130; 60/466 bytes (12.9%) */ 19854, /* plane 0, page 131; 40/456 bytes (8.8%) */ 20082, /* plane 0, page 132; 78/490 bytes (15.9%) */ 20327, /* plane 0, page 133; 44/502 bytes (8.8%) */ 20578, /* plane 0, page 134; 38/478 bytes (7.9%) */ 20817, /* plane 0, page 135; 32/270 bytes (11.9%) */ 20952, /* plane 0, page 136; 62/506 bytes (12.3%) */ 21205, /* plane 0, page 137; 44/466 bytes (9.4%) */ 21438, /* plane 0, page 138; 34/416 bytes (8.2%) */ 21646, /* plane 0, page 139; 36/432 bytes (8.3%) */ 21862, /* plane 0, page 140; 26/336 bytes (7.7%) */ 22030, /* plane 0, page 141; 32/422 bytes (7.6%) */ 22241, /* plane 0, page 142; 56/486 bytes (11.5%) */ 22484, /* plane 0, page 143; 62/452 bytes (13.7%) */ 22710, /* plane 0, page 144; 28/380 bytes (7.4%) */ 22900, /* plane 0, page 145; 42/350 bytes (12.0%) */ 23075, /* plane 0, page 146; 82/494 bytes (16.6%) */ 23322, /* plane 0, page 147; 92/486 bytes (18.9%) */ 23565, /* plane 0, page 148; 62/494 bytes (12.6%) */ 23812, /* plane 0, page 149; 32/402 bytes (8.0%) */ 24013, /* plane 0, page 150; 34/434 bytes (7.8%) */ 24230, /* plane 0, page 151; 70/488 bytes (14.3%) */ 24474, /* plane 0, page 152; 60/454 bytes (13.2%) */ 24701, /* plane 0, page 153; 54/466 bytes (11.6%) */ 24934, /* plane 0, page 154; 46/490 bytes (9.4%) */ 25179, /* plane 0, page 155; 60/510 bytes (11.8%) */ 25434, /* plane 0, page 156; 40/248 bytes (16.1%) */ 25558, /* plane 0, page 157; 52/504 bytes (10.3%) */ 25810, /* plane 0, page 158; 68/492 bytes (13.8%) */ 26056, /* plane 0, page 159; 38/330 bytes (11.5%) */ -1, /* plane 0, page 160 */ -1, /* plane 0, page 161 */ -1, /* plane 0, page 162 */ -1, /* plane 0, page 163 */ -1, /* plane 0, page 164 */ -1, /* plane 0, page 165 */ -1, /* plane 0, page 166 */ -1, /* plane 0, page 167 */ -1, /* plane 0, page 168 */ -1, /* plane 0, page 169 */ -1, /* plane 0, page 170 */ -1, /* plane 0, page 171 */ -1, /* plane 0, page 172 */ -1, /* plane 0, page 173 */ -1, /* plane 0, page 174 */ -1, /* plane 0, page 175 */ -1, /* plane 0, page 176 */ -1, /* plane 0, page 177 */ -1, /* plane 0, page 178 */ -1, /* plane 0, page 179 */ -1, /* plane 0, page 180 */ -1, /* plane 0, page 181 */ -1, /* plane 0, page 182 */ -1, /* plane 0, page 183 */ -1, /* plane 0, page 184 */ -1, /* plane 0, page 185 */ -1, /* plane 0, page 186 */ -1, /* plane 0, page 187 */ -1, /* plane 0, page 188 */ -1, /* plane 0, page 189 */ -1, /* plane 0, page 190 */ -1, /* plane 0, page 191 */ -1, /* plane 0, page 192 */ -1, /* plane 0, page 193 */ -1, /* plane 0, page 194 */ -1, /* plane 0, page 195 */ -1, /* plane 0, page 196 */ -1, /* plane 0, page 197 */ -1, /* plane 0, page 198 */ -1, /* plane 0, page 199 */ -1, /* plane 0, page 200 */ -1, /* plane 0, page 201 */ -1, /* plane 0, page 202 */ -1, /* plane 0, page 203 */ -1, /* plane 0, page 204 */ -1, /* plane 0, page 205 */ -1, /* plane 0, page 206 */ -1, /* plane 0, page 207 */ -1, /* plane 0, page 208 */ -1, /* plane 0, page 209 */ -1, /* plane 0, page 210 */ -1, /* plane 0, page 211 */ -1, /* plane 0, page 212 */ -1, /* plane 0, page 213 */ -1, /* plane 0, page 214 */ -1, /* plane 0, page 215 */ -1, /* plane 0, page 216 */ -1, /* plane 0, page 217 */ -1, /* plane 0, page 218 */ -1, /* plane 0, page 219 */ -1, /* plane 0, page 220 */ -1, /* plane 0, page 221 */ -1, /* plane 0, page 222 */ -1, /* plane 0, page 223 */ 26221, /* plane 0, page 224; 234/510 bytes (45.9%) */ 26476, /* plane 0, page 225; 246/506 bytes (48.6%) */ 26729, /* plane 0, page 226; 232/514 bytes (45.1%) */ 26986, /* plane 0, page 227; 244/514 bytes (47.5%) */ 27243, /* plane 0, page 228; 238/502 bytes (47.4%) */ 27494, /* plane 0, page 229; 284/512 bytes (55.5%) */ 27750, /* plane 0, page 230; 304/514 bytes (59.1%) */ 28007, /* plane 0, page 231; 272/514 bytes (52.9%) */ 28264, /* plane 0, page 232; 294/512 bytes (57.4%) */ 28520, /* plane 0, page 233; 244/512 bytes (47.7%) */ 28776, /* plane 0, page 234; 160/508 bytes (31.5%) */ 29030, /* plane 0, page 235; 366/514 bytes (71.2%) */ 29287, /* plane 0, page 236; 288/508 bytes (56.7%) */ 29541, /* plane 0, page 237; 196/486 bytes (40.3%) */ 29784, /* plane 0, page 238; 106/354 bytes (29.9%) */ -1, /* plane 0, page 239 */ -1, /* plane 0, page 240 */ -1, /* plane 0, page 241 */ -1, /* plane 0, page 242 */ 29961, /* plane 0, page 243; 78/504 bytes (15.5%) */ 30213, /* plane 0, page 244; 330/508 bytes (65.0%) */ 30467, /* plane 0, page 245; 222/482 bytes (46.1%) */ 30708, /* plane 0, page 246; 94/374 bytes (25.1%) */ 30895, /* plane 0, page 247; 16/22 bytes (72.7%) */ 30906, /* plane 0, page 248; 58/58 bytes (100.0%) */ 30935, /* plane 0, page 249; 4/4 bytes (100.0%) */ -1, /* plane 0, page 250 */ -1, /* plane 0, page 251 */ -1, /* plane 0, page 252 */ -1, /* plane 0, page 253 */ -1, /* plane 0, page 254 */ 30937, /* plane 0, page 255; 16/474 bytes (3.4%) */ /* plane 1: --- */ 31174, /* plane 2, page 0; 32/414 bytes (7.7%) */ 31381, /* plane 2, page 1; 18/464 bytes (3.9%) */ 31613, /* plane 2, page 2; 28/454 bytes (6.2%) */ 31840, /* plane 2, page 3; 34/488 bytes (7.0%) */ 32084, /* plane 2, page 4; 26/474 bytes (5.5%) */ 32321, /* plane 2, page 5; 24/332 bytes (7.2%) */ 32487, /* plane 2, page 6; 16/206 bytes (7.8%) */ 32590, /* plane 2, page 7; 8/218 bytes (3.7%) */ 32699, /* plane 2, page 8; 8/342 bytes (2.3%) */ 32870, /* plane 2, page 9; 12/422 bytes (2.8%) */ 33081, /* plane 2, page 10; 12/380 bytes (3.2%) */ 33271, /* plane 2, page 11; 24/488 bytes (4.9%) */ 33515, /* plane 2, page 12; 56/492 bytes (11.4%) */ 33761, /* plane 2, page 13; 46/362 bytes (12.7%) */ 33942, /* plane 2, page 14; 74/498 bytes (14.9%) */ 34191, /* plane 2, page 15; 44/420 bytes (10.5%) */ 34401, /* plane 2, page 16; 56/456 bytes (12.3%) */ 34629, /* plane 2, page 17; 20/344 bytes (5.8%) */ 34801, /* plane 2, page 18; 18/392 bytes (4.6%) */ 34997, /* plane 2, page 19; 32/508 bytes (6.3%) */ 35251, /* plane 2, page 20; 26/472 bytes (5.5%) */ 35487, /* plane 2, page 21; 8/66 bytes (12.1%) */ 35520, /* plane 2, page 22; 44/492 bytes (8.9%) */ 35766, /* plane 2, page 23; 76/482 bytes (15.8%) */ 36007, /* plane 2, page 24; 70/440 bytes (15.9%) */ 36227, /* plane 2, page 25; 44/484 bytes (9.1%) */ 36469, /* plane 2, page 26; 10/64 bytes (15.6%) */ 36501, /* plane 2, page 27; 8/256 bytes (3.1%) */ 36629, /* plane 2, page 28; 12/264 bytes (4.5%) */ 36761, /* plane 2, page 29; 18/362 bytes (5.0%) */ 36942, /* plane 2, page 30; 18/374 bytes (4.8%) */ 37129, /* plane 2, page 31; 14/438 bytes (3.2%) */ 37348, /* plane 2, page 32; 14/370 bytes (3.8%) */ 37533, /* plane 2, page 33; 14/310 bytes (4.5%) */ 37688, /* plane 2, page 34; 6/236 bytes (2.5%) */ 37806, /* plane 2, page 35; 14/438 bytes (3.2%) */ 38025, /* plane 2, page 36; 14/276 bytes (5.1%) */ 38163, /* plane 2, page 37; 16/346 bytes (4.6%) */ 38336, /* plane 2, page 38; 22/442 bytes (5.0%) */ 38557, /* plane 2, page 39; 22/378 bytes (5.8%) */ 38746, /* plane 2, page 40; 16/492 bytes (3.3%) */ 38992, /* plane 2, page 41; 16/222 bytes (7.2%) */ 39103, /* plane 2, page 42; 12/264 bytes (4.5%) */ 39235, /* plane 2, page 43; 16/388 bytes (4.1%) */ 39429, /* plane 2, page 44; 34/330 bytes (10.3%) */ 39594, /* plane 2, page 45; 28/466 bytes (6.0%) */ 39827, /* plane 2, page 46; 16/456 bytes (3.5%) */ 40055, /* plane 2, page 47; 8/226 bytes (3.5%) */ 40168, /* plane 2, page 48; 22/338 bytes (6.5%) */ 40337, /* plane 2, page 49; 26/496 bytes (5.2%) */ 40585, /* plane 2, page 50; 36/424 bytes (8.5%) */ 40797, /* plane 2, page 51; 26/512 bytes (5.1%) */ 41053, /* plane 2, page 52; 14/462 bytes (3.0%) */ 41284, /* plane 2, page 53; 24/440 bytes (5.5%) */ 41504, /* plane 2, page 54; 26/480 bytes (5.4%) */ 41744, /* plane 2, page 55; 30/428 bytes (7.0%) */ 41958, /* plane 2, page 56; 4/4 bytes (100.0%) */ 41960, /* plane 2, page 57; 4/4 bytes (100.0%) */ 41962, /* plane 2, page 58; 10/170 bytes (5.9%) */ 42047, /* plane 2, page 59; 4/4 bytes (100.0%) */ 42049, /* plane 2, page 60; 28/316 bytes (8.9%) */ 42207, /* plane 2, page 61; 30/372 bytes (8.1%) */ 42393, /* plane 2, page 62; 44/474 bytes (9.3%) */ 42630, /* plane 2, page 63; 38/378 bytes (10.1%) */ 42819, /* plane 2, page 64; 30/420 bytes (7.1%) */ 43029, /* plane 2, page 65; 46/500 bytes (9.2%) */ 43279, /* plane 2, page 66; 34/450 bytes (7.6%) */ 43504, /* plane 2, page 67; 36/474 bytes (7.6%) */ 43741, /* plane 2, page 68; 28/424 bytes (6.6%) */ 43953, /* plane 2, page 69; 10/394 bytes (2.5%) */ 44150, /* plane 2, page 70; 14/380 bytes (3.7%) */ 44340, /* plane 2, page 71; 12/440 bytes (2.7%) */ 44560, /* plane 2, page 72; 22/478 bytes (4.6%) */ 44799, /* plane 2, page 73; 116/506 bytes (22.9%) */ 45052, /* plane 2, page 74; 108/442 bytes (24.4%) */ 45273, /* plane 2, page 75; 6/274 bytes (2.2%) */ 45410, /* plane 2, page 76; 12/420 bytes (2.9%) */ 45620, /* plane 2, page 77; 12/462 bytes (2.6%) */ 45851, /* plane 2, page 78; 10/220 bytes (4.5%) */ 45961, /* plane 2, page 79; 20/364 bytes (5.5%) */ 46143, /* plane 2, page 80; 8/230 bytes (3.5%) */ 46258, /* plane 2, page 81; 18/380 bytes (4.7%) */ 46448, /* plane 2, page 82; 14/372 bytes (3.8%) */ 46634, /* plane 2, page 83; 8/14 bytes (57.1%) */ 46641, /* plane 2, page 84; 16/174 bytes (9.2%) */ 46728, /* plane 2, page 85; 36/354 bytes (10.2%) */ 46905, /* plane 2, page 86; 16/486 bytes (3.3%) */ 47148, /* plane 2, page 87; 20/442 bytes (4.5%) */ 47369, /* plane 2, page 88; 12/280 bytes (4.3%) */ 47509, /* plane 2, page 89; 12/406 bytes (3.0%) */ 47712, /* plane 2, page 90; 12/172 bytes (7.0%) */ 47798, /* plane 2, page 91; 16/236 bytes (6.8%) */ 47916, /* plane 2, page 92; 22/510 bytes (4.3%) */ 48171, /* plane 2, page 93; 8/74 bytes (10.8%) */ 48208, /* plane 2, page 94; 20/408 bytes (4.9%) */ 48412, /* plane 2, page 95; 10/404 bytes (2.5%) */ 48614, /* plane 2, page 96; 16/252 bytes (6.3%) */ 48740, /* plane 2, page 97; 22/442 bytes (5.0%) */ 48961, /* plane 2, page 98; 12/244 bytes (4.9%) */ 49083, /* plane 2, page 99; 16/394 bytes (4.1%) */ 49280, /* plane 2, page 100; 24/304 bytes (7.9%) */ 49432, /* plane 2, page 101; 12/350 bytes (3.4%) */ 49607, /* plane 2, page 102; 18/472 bytes (3.8%) */ 49843, /* plane 2, page 103; 14/368 bytes (3.8%) */ 50027, /* plane 2, page 104; 18/346 bytes (5.2%) */ 50200, /* plane 2, page 105; 20/476 bytes (4.2%) */ 50438, /* plane 2, page 106; 14/78 bytes (17.9%) */ 50477, /* plane 2, page 107; 38/488 bytes (7.8%) */ 50721, /* plane 2, page 108; 30/356 bytes (8.4%) */ 50899, /* plane 2, page 109; 50/416 bytes (12.0%) */ 51107, /* plane 2, page 110; 44/434 bytes (10.1%) */ 51324, /* plane 2, page 111; 18/374 bytes (4.8%) */ 51511, /* plane 2, page 112; 22/472 bytes (4.7%) */ 51747, /* plane 2, page 113; 20/396 bytes (5.1%) */ 51945, /* plane 2, page 114; 16/410 bytes (3.9%) */ 52150, /* plane 2, page 115; 4/4 bytes (100.0%) */ 52152, /* plane 2, page 116; 10/204 bytes (4.9%) */ 52254, /* plane 2, page 117; 14/280 bytes (5.0%) */ 52394, /* plane 2, page 118; 18/286 bytes (6.3%) */ 52537, /* plane 2, page 119; 18/382 bytes (4.7%) */ 52728, /* plane 2, page 120; 12/228 bytes (5.3%) */ 52842, /* plane 2, page 121; 14/438 bytes (3.2%) */ 53061, /* plane 2, page 122; 22/472 bytes (4.7%) */ 53297, /* plane 2, page 123; 18/480 bytes (3.8%) */ 53537, /* plane 2, page 124; 4/4 bytes (100.0%) */ 53539, /* plane 2, page 125; 22/350 bytes (6.3%) */ 53714, /* plane 2, page 126; 6/8 bytes (75.0%) */ 53718, /* plane 2, page 127; 4/4 bytes (100.0%) */ 53720, /* plane 2, page 128; 28/488 bytes (5.7%) */ 53964, /* plane 2, page 129; 16/288 bytes (5.6%) */ 54108, /* plane 2, page 130; 18/442 bytes (4.1%) */ 54329, /* plane 2, page 131; 18/268 bytes (6.7%) */ 54463, /* plane 2, page 132; 12/228 bytes (5.3%) */ 54577, /* plane 2, page 133; 14/490 bytes (2.9%) */ 54822, /* plane 2, page 134; 20/464 bytes (4.3%) */ 55054, /* plane 2, page 135; 6/12 bytes (50.0%) */ 55060, /* plane 2, page 136; 6/82 bytes (7.3%) */ 55101, /* plane 2, page 137; 54/406 bytes (13.3%) */ 55304, /* plane 2, page 138; 74/478 bytes (15.5%) */ 55543, /* plane 2, page 139; 72/490 bytes (14.7%) */ 55788, /* plane 2, page 140; 28/418 bytes (6.7%) */ 55997, /* plane 2, page 141; 8/270 bytes (3.0%) */ 56132, /* plane 2, page 142; 24/436 bytes (5.5%) */ 56350, /* plane 2, page 143; 4/4 bytes (100.0%) */ 56352, /* plane 2, page 144; 24/206 bytes (11.7%) */ 56455, /* plane 2, page 145; 24/448 bytes (5.4%) */ -1, /* plane 2, page 146 */ -1, /* plane 2, page 147 */ 56679, /* plane 2, page 148; 22/408 bytes (5.4%) */ 56883, /* plane 2, page 149; 14/176 bytes (8.0%) */ -1, /* plane 2, page 150 */ 56971, /* plane 2, page 151; 8/364 bytes (2.2%) */ 57153, /* plane 2, page 152; 14/454 bytes (3.1%) */ 57380, /* plane 2, page 153; 24/400 bytes (6.0%) */ 57580, /* plane 2, page 154; 6/78 bytes (7.7%) */ 57619, /* plane 2, page 155; 8/420 bytes (1.9%) */ 57829, /* plane 2, page 156; 6/120 bytes (5.0%) */ 57889, /* plane 2, page 157; 14/372 bytes (3.8%) */ 58075, /* plane 2, page 158; 14/488 bytes (2.9%) */ 58319, /* plane 2, page 159; 10/378 bytes (2.6%) */ 58508, /* plane 2, page 160; 18/472 bytes (3.8%) */ 58744, /* plane 2, page 161; 24/480 bytes (5.0%) */ 58984, /* plane 2, page 162; 24/450 bytes (5.3%) */ 59209, /* plane 2, page 163; 4/4 bytes (100.0%) */ 59211, /* plane 2, page 164; 6/82 bytes (7.3%) */ 59252, /* plane 2, page 165; 6/14 bytes (42.9%) */ 59259, /* plane 2, page 166; 12/340 bytes (3.5%) */ -1, /* plane 2, page 167 */ -1, /* plane 2, page 168 */ -1, /* plane 2, page 169 */ -1, /* plane 2, page 170 */ -1, /* plane 2, page 171 */ -1, /* plane 2, page 172 */ -1, /* plane 2, page 173 */ -1, /* plane 2, page 174 */ -1, /* plane 2, page 175 */ -1, /* plane 2, page 176 */ -1, /* plane 2, page 177 */ -1, /* plane 2, page 178 */ -1, /* plane 2, page 179 */ -1, /* plane 2, page 180 */ -1, /* plane 2, page 181 */ -1, /* plane 2, page 182 */ -1, /* plane 2, page 183 */ -1, /* plane 2, page 184 */ -1, /* plane 2, page 185 */ -1, /* plane 2, page 186 */ -1, /* plane 2, page 187 */ -1, /* plane 2, page 188 */ -1, /* plane 2, page 189 */ -1, /* plane 2, page 190 */ -1, /* plane 2, page 191 */ -1, /* plane 2, page 192 */ -1, /* plane 2, page 193 */ -1, /* plane 2, page 194 */ -1, /* plane 2, page 195 */ -1, /* plane 2, page 196 */ -1, /* plane 2, page 197 */ -1, /* plane 2, page 198 */ -1, /* plane 2, page 199 */ -1, /* plane 2, page 200 */ -1, /* plane 2, page 201 */ -1, /* plane 2, page 202 */ -1, /* plane 2, page 203 */ -1, /* plane 2, page 204 */ -1, /* plane 2, page 205 */ -1, /* plane 2, page 206 */ -1, /* plane 2, page 207 */ -1, /* plane 2, page 208 */ -1, /* plane 2, page 209 */ -1, /* plane 2, page 210 */ -1, /* plane 2, page 211 */ -1, /* plane 2, page 212 */ -1, /* plane 2, page 213 */ -1, /* plane 2, page 214 */ -1, /* plane 2, page 215 */ -1, /* plane 2, page 216 */ -1, /* plane 2, page 217 */ -1, /* plane 2, page 218 */ -1, /* plane 2, page 219 */ -1, /* plane 2, page 220 */ -1, /* plane 2, page 221 */ -1, /* plane 2, page 222 */ -1, /* plane 2, page 223 */ -1, /* plane 2, page 224 */ -1, /* plane 2, page 225 */ -1, /* plane 2, page 226 */ -1, /* plane 2, page 227 */ -1, /* plane 2, page 228 */ -1, /* plane 2, page 229 */ -1, /* plane 2, page 230 */ -1, /* plane 2, page 231 */ -1, /* plane 2, page 232 */ -1, /* plane 2, page 233 */ -1, /* plane 2, page 234 */ -1, /* plane 2, page 235 */ -1, /* plane 2, page 236 */ -1, /* plane 2, page 237 */ -1, /* plane 2, page 238 */ -1, /* plane 2, page 239 */ -1, /* plane 2, page 240 */ -1, /* plane 2, page 241 */ -1, /* plane 2, page 242 */ -1, /* plane 2, page 243 */ -1, /* plane 2, page 244 */ -1, /* plane 2, page 245 */ -1, /* plane 2, page 246 */ -1, /* plane 2, page 247 */ 59429, /* plane 2, page 248; 16/340 bytes (4.7%) */ 59599, /* plane 2, page 249; 10/132 bytes (7.6%) */ -1, /* plane 2, page 250 */ -1, /* plane 2, page 251 */ -1, /* plane 2, page 252 */ -1, /* plane 2, page 253 */ -1, /* plane 2, page 254 */ -1, /* plane 2, page 255 */ /* plane 3: --- */ /* plane 4: --- */ /* plane 5: --- */ /* plane 6: --- */ /* plane 7: --- */ /* plane 8: --- */ /* plane 9: --- */ /* plane 10: --- */ /* plane 11: --- */ /* plane 12: --- */ /* plane 13: --- */ /* plane 14: --- */ /* plane 15: --- */ /* plane 16: --- */ }; static sal_Int32 const aImplUnicodeToBig5Hkscs2001PlaneOffsets[] = { 0 * 256, /* plane 0; 576/1024 bytes (56.3%), 11016/62348 bytes (17.7%) */ -1, /* plane 1 */ 1 * 256, /* plane 2; 664/1024 bytes (64.8%), 3634/56982 bytes (6.4%) */ -1, /* plane 3 */ -1, /* plane 4 */ -1, /* plane 5 */ -1, /* plane 6 */ -1, /* plane 7 */ -1, /* plane 8 */ -1, /* plane 9 */ -1, /* plane 10 */ -1, /* plane 11 */ -1, /* plane 12 */ -1, /* plane 13 */ -1, /* plane 14 */ -1, /* plane 15 */ -1, /* plane 16 */ /* 8/68 bytes (11.8%), 1240/2048 bytes (60.5%), 14650/119330 bytes (12.3%) */ };
the_stack
create type graphql.field_meta_kind as enum ( 'Constant', 'Query.collection', 'Column', 'Relationship.toMany', 'Relationship.toOne', 'OrderBy.Column', 'Filter.Column', 'Function', 'Mutation.insert', 'Mutation.delete', 'Mutation.update', 'UpdateSetArg', 'ObjectsArg', 'AtMostArg', 'Query.heartbeat', '__Typename' ); create table graphql._field ( id serial primary key, parent_type_id int references graphql._type(id), type_id int not null references graphql._type(id) on delete cascade, meta_kind graphql.field_meta_kind default 'Constant', name text not null, constant_name text, -- args if is_arg, parent_arg_field_name is required parent_arg_field_id int references graphql._field(id) on delete cascade, default_value text, -- columns entity regclass, column_name text, column_attribute_num int, column_type regtype, -- relationships local_columns text[], foreign_columns text[], foreign_entity regclass, foreign_name_override text, -- from comment directive -- function extensions func regproc, -- internal flags is_not_null boolean not null, is_array boolean not null, is_array_not_null boolean, is_arg boolean default false, is_hidden_from_schema boolean default false, description text, check (meta_kind = 'Constant' and constant_name is not null or meta_kind <> 'Constant') ); create index ix_graphql_field_type_id on graphql._field(type_id); create index ix_graphql_field_parent_type_id on graphql._field(parent_type_id); create index ix_graphql_field_parent_arg_field_id on graphql._field(parent_arg_field_id); create index ix_graphql_field_meta_kind on graphql._field(meta_kind); create index ix_graphql_field_entity on graphql._field(entity); create or replace function graphql.field_name_for_column(entity regclass, column_name text) returns text stable language sql as $$ select coalesce( graphql.comment_directive_name($1, $2), case graphql.comment_directive_inflect_names(current_schema::regnamespace) when true then graphql.to_camel_case($2) else $2 end ) $$; create or replace function graphql.lowercase_first_letter(text) returns text immutable strict language sql as $$ select format( '%s%s', substring(lower($1), 1, 1), substring($1, 2, 999) ); $$; create or replace function graphql.field_name_for_to_many(foreign_entity regclass, foreign_name_override text) returns text stable language sql as $$ select coalesce( foreign_name_override, format( '%sCollection', graphql.lowercase_first_letter( graphql.type_name(foreign_entity, 'Node') ) ) ); $$; create or replace function graphql.field_name_for_query_collection(entity regclass) returns text stable language sql as $$ select format( '%sCollection', graphql.lowercase_first_letter( coalesce( graphql.comment_directive_name(entity), graphql.type_name(entity, 'Node') ) ) ); $$; create or replace function graphql.field_name_for_to_one(foreign_entity regclass, foreign_name_override text, foreign_columns text[]) returns text stable language plpgsql as $$ declare is_inflection_on bool = graphql.comment_directive_inflect_names(current_schema::regnamespace); has_req_suffix text = case is_inflection_on when true then '\_id' when false then 'Id' end; req_suffix_len int = case is_inflection_on when true then 3 when false then 2 end; -- owner_id -> owner (inflection off); ownerId -> owner (inflection on) is_single_col_ending_id bool = ( array_length(foreign_columns, 1) = 1 and foreign_columns[1] like format('%%%s', has_req_suffix) ); base_single_col_name text = left( foreign_columns[1], 0-req_suffix_len ); base_name text = graphql.type_name(foreign_entity, 'Node'); begin return coalesce( -- comment directive override foreign_name_override, graphql.lowercase_first_letter( case is_single_col_ending_id when true then ( case when is_inflection_on then graphql.to_camel_case(base_single_col_name) else base_single_col_name end ) else base_name end ) ); end; $$; create or replace function graphql.field_name_for_function(func regproc) returns text stable language sql as $$ select coalesce( graphql.comment_directive_name(func), case graphql.comment_directive_inflect_names(current_schema::regnamespace) when true then graphql.to_camel_case(ltrim(graphql.to_function_name(func), '_')) else ltrim(graphql.to_function_name(func), '_') end ) $$; create or replace function graphql.field_name(rec graphql._field) returns text immutable language sql as $$ with base(name) as ( select graphql.type_name(rec.entity, 'Node') ) select case when rec.meta_kind = 'Constant' then rec.constant_name when rec.meta_kind in ('Column', 'OrderBy.Column', 'Filter.Column') then graphql.field_name_for_column(rec.entity, rec.column_name) when rec.meta_kind = 'Function' then graphql.field_name_for_function(rec.func) when rec.meta_kind = 'Query.collection' then graphql.field_name_for_query_collection(rec.entity) when rec.meta_kind = 'Mutation.insert' then format('insertInto%sCollection', base.name) when rec.meta_kind = 'Mutation.update' then format('update%sCollection', base.name) when rec.meta_kind = 'Mutation.delete' then format('deleteFrom%sCollection', base.name) when rec.meta_kind = 'Relationship.toMany' then graphql.field_name_for_to_many(rec.foreign_entity, rec.foreign_name_override) when rec.meta_kind = 'Relationship.toOne' then graphql.field_name_for_to_one(rec.foreign_entity, rec.foreign_name_override, rec.foreign_columns) when rec.constant_name is not null then rec.constant_name else graphql.exception(format('could not determine field name, %s', $1)) end from base $$; create function graphql.set_field_name() returns trigger language plpgsql as $$ begin new.name = graphql.field_name(new); return new; end; $$; create trigger on_insert_set_name before insert on graphql._field for each row execute procedure graphql.set_field_name(); create or replace function graphql.type_id(type_name text) returns int stable language sql as $$ select id from graphql.type where name = $1; $$; create or replace function graphql.type_id(graphql.meta_kind) returns int stable language sql as $$ -- WARNING: meta_kinds are not always unique. Make sure -- to only use this function with unique ones select id from graphql.type where meta_kind = $1; $$; create function graphql.rebuild_fields() returns void volatile language plpgsql as $$ begin alter sequence graphql._field_id_seq restart with 1; insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_hidden_from_schema, description) values (graphql.type_id('__Schema'), graphql.type_id('String'), 'description', false, false, null, false, null), (graphql.type_id('__Schema'), graphql.type_id('__Type'), 'types', true, true, true, false, 'A list of all types supported by this server.'), (graphql.type_id('__Schema'), graphql.type_id('__Type'), 'queryType', true, false, null, false, 'The type that query operations will be rooted at.'), (graphql.type_id('__Schema'), graphql.type_id('__Type'), 'mutationType', false, false, null, false, 'If this server supports mutation, the type that mutation operations will be rooted at.'), (graphql.type_id('__Schema'), graphql.type_id('__Type'), 'subscriptionType', false, false, null, false, 'If this server support subscription, the type that subscription operations will be rooted at.'), (graphql.type_id('__Schema'), graphql.type_id('__Directive'), 'directives', true, true, true, false, 'A list of all directives supported by this server.'), (graphql.type_id('__Directive'), graphql.type_id('String'), 'name', true, false, null, false, null), (graphql.type_id('__Directive'), graphql.type_id('String'), 'description', false, false, null, false, null), (graphql.type_id('__Directive'), graphql.type_id('Boolean'), 'isRepeatable', true, false, null, false, null), (graphql.type_id('__Directive'), graphql.type_id('__DirectiveLocation'), 'locations', true, true, true, false, null), (graphql.type_id('__Type'), graphql.type_id('__TypeKind'), 'kind', true, false, null, false, null), (graphql.type_id('__Type'), graphql.type_id('String'), 'name', false, false, null, false, null), (graphql.type_id('__Type'), graphql.type_id('String'), 'description', false, false, null, false, null), (graphql.type_id('__Type'), graphql.type_id('String'), 'specifiedByURL', false, false, null, false, null), (graphql.type_id('__Type'), graphql.type_id('__Field'), 'fields', false, true, true, false, null), (graphql.type_id('__Type'), graphql.type_id('__Type'), 'interfaces', true, true, false, false, null), (graphql.type_id('__Type'), graphql.type_id('__Type'), 'possibleTypes', true, true, false, false, null), (graphql.type_id('__Type'), graphql.type_id('__EnumValue'), 'enumValues', true, true, false, false, null), (graphql.type_id('__Type'), graphql.type_id('__InputValue'), 'inputFields', true, true, false, false, null), (graphql.type_id('__Type'), graphql.type_id('__Type'), 'ofType', false, false, null, false, null), (graphql.type_id('__Field'), graphql.type_id('Boolean'), 'isDeprecated', true, false, null, false, null), (graphql.type_id('__Field'), graphql.type_id('String'), 'deprecationReason', false, false, null, false, null), (graphql.type_id('__Field'), graphql.type_id('__Type'), 'type', true, false, null, false, null), (graphql.type_id('__InputValue'), graphql.type_id('String'), 'name', true, false, null, false, null), (graphql.type_id('__InputValue'), graphql.type_id('String'), 'description', false, false, null, false, null), (graphql.type_id('__InputValue'), graphql.type_id('String'), 'defaultValue', false, false, null, false, 'A GraphQL-formatted string representing the default value for this input value.'), (graphql.type_id('__InputValue'), graphql.type_id('Boolean'), 'isDeprecated', true, false, null, false, null), (graphql.type_id('__InputValue'), graphql.type_id('String'), 'deprecationReason', false, false, null, false, null), (graphql.type_id('__InputValue'), graphql.type_id('__Type'), 'type', true, false, null, false, null), (graphql.type_id('__EnumValue'), graphql.type_id('String'), 'name', true, false, null, false, null), (graphql.type_id('__EnumValue'), graphql.type_id('String'), 'description', false, false, null, false, null), (graphql.type_id('__EnumValue'), graphql.type_id('Boolean'), 'isDeprecated', true, false, null, false, null), (graphql.type_id('__EnumValue'), graphql.type_id('String'), 'deprecationReason', false, false, null, false, null); insert into graphql._field(parent_type_id, type_id, meta_kind, constant_name, is_not_null, is_array, is_array_not_null, is_hidden_from_schema, description) values (graphql.type_id('Query'), graphql.type_id('Datetime'), 'Query.heartbeat', 'heartbeat', true, false, null, false, 'UTC Datetime from server'); insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_hidden_from_schema, description) select t.id, x.* from graphql.type t, lateral ( values (graphql.type_id('__Type'), '__type', true, false, null::boolean, true, null::text), (graphql.type_id('__Schema'), '__schema', true , false, null, true, null) ) x(type_id, constant_name, is_not_null, is_array, is_array_not_null, is_hidden_from_schema, description) where t.meta_kind = 'Query'; insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_hidden_from_schema, description) values -- TODO parent type lookup from metakind (graphql.type_id('PageInfo'::graphql.meta_kind), graphql.type_id('Boolean'), 'hasPreviousPage', true, false, null, false, null), (graphql.type_id('PageInfo'::graphql.meta_kind), graphql.type_id('Boolean'), 'hasNextPage', true, false, null, false, null), (graphql.type_id('PageInfo'::graphql.meta_kind), graphql.type_id('String'), 'startCursor', false, false, null, false, null), (graphql.type_id('PageInfo'::graphql.meta_kind), graphql.type_id('String'), 'endCursor', false, false, null, false, null); insert into graphql._field(meta_kind, entity, parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, description, is_hidden_from_schema) select fs.field_meta_kind::graphql.field_meta_kind, conn.entity, fs.parent_type_id, fs.type_id, fs.constant_name, fs.is_not_null, fs.is_array, fs.is_array_not_null, fs.description, fs.is_hidden_from_schema from graphql.type conn join graphql.type edge on conn.entity = edge.entity join graphql.type node on edge.entity = node.entity, lateral ( values ('Constant', edge.id, node.id, 'node', false, false, null::boolean, null::text, null::text, null::text[], null::text[], false), ('Constant', edge.id, graphql.type_id('String'), 'cursor', true, false, null, null, null, null, null, false), ('Constant', conn.id, edge.id, 'edges', true, true, true, null, null, null, null, false), ('Constant', conn.id, graphql.type_id('PageInfo'::graphql.meta_kind), 'pageInfo', true, false, null, null, null, null, null, false), ('Query.collection', graphql.type_id('Query'::graphql.meta_kind), conn.id, null, false, false, null, format('A pagable collection of type `%s`', graphql.type_name(conn.entity, 'Node')), null, null, null, false) ) fs(field_meta_kind, parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, description, column_name, foreign_columns, local_columns, is_hidden_from_schema) where conn.meta_kind = 'Connection' and edge.meta_kind = 'Edge' and node.meta_kind = 'Node'; -- Connection.totalCount (opt in) insert into graphql._field(meta_kind, entity, parent_type_id, type_id, constant_name, is_not_null, is_array, description) select 'Constant'::graphql.field_meta_kind, conn.entity, conn.id parent_type_id, graphql.type_id('Int') type_id, 'totalCount', true as is_not_null, false as is_array, 'The total number of records matching the `filter` criteria' from graphql.type conn where conn.meta_kind = 'Connection' and graphql.comment_directive_totalCount_enabled(conn.entity); -- Object.__typename insert into graphql._field(meta_kind, entity, parent_type_id, type_id, constant_name, is_not_null, is_array, is_hidden_from_schema) select '__Typename'::graphql.field_meta_kind, t.entity, t.id, graphql.type_id('String'), '__typename', true, false, true from graphql.type t where t.type_kind = 'OBJECT'; -- Node -- Node.<column> insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, description, column_name, column_type, column_attribute_num, is_hidden_from_schema) select 'Column' as meta_kind, gt.entity, gt.id parent_type_id, graphql.type_id(es.column_type) as type_id, es.is_not_null, es.is_array as is_array, es.is_not_null and es.is_array as is_array_not_null, null::text description, es.column_name as column_name, es.column_type as column_type, es.column_attribute_num, false as is_hidden_from_schema from graphql.type gt join graphql.entity_column es on gt.entity = es.entity where gt.meta_kind = 'Node' and not es.column_type in ('json', 'jsonb') and not es.is_composite; -- Node -- Extensibility via function taking record type -- Node.<function()> insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, description, is_hidden_from_schema, func) select 'Function' as meta_kind, gt.entity, gt.id parent_type_id, graphql.type_id(pp.prorettype::regtype) as type_id, false as is_not_null, graphql.is_array(pp.prorettype::regtype) as is_array, false as is_array_not_null, null::text description, false as is_hidden_from_schema, pp.oid::regproc as func from graphql.type gt join pg_class pc on gt.entity = pc.oid join pg_proc pp on pp.proargtypes[0] = pc.reltype where gt.meta_kind = 'Node' and pronargs = 1 -- starts with underscore and graphql.to_function_name(pp.oid::regproc) like '\_%'; -- Node.<relationship> insert into graphql._field( parent_type_id, type_id, entity, foreign_entity, meta_kind, is_not_null, is_array, is_array_not_null, description, foreign_columns, local_columns, foreign_name_override ) select node.id parent_type_id, conn.id type_id, node.entity, rel.foreign_entity, case when (conn.meta_kind = 'Node' and rel.foreign_cardinality = 'ONE') then 'Relationship.toOne' when (conn.meta_kind = 'Connection' and rel.foreign_cardinality = 'MANY') then 'Relationship.toMany' else null end::graphql.field_meta_kind meta_kind, false as is_not_null, -- todo: reference column nullability false as is_array, null as is_array_not_null, null::text as description, rel.local_columns, rel.foreign_columns, rel.foreign_name_override from graphql.type node join graphql.relationship rel on node.entity = rel.local_entity join graphql.type conn on conn.entity = rel.foreign_entity and ( (conn.meta_kind = 'Node' and rel.foreign_cardinality = 'ONE') or (conn.meta_kind = 'Connection' and rel.foreign_cardinality = 'MANY') ) where node.meta_kind = 'Node'; -- NodeOrderBy insert into graphql._field(meta_kind, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, column_name, column_type, column_attribute_num, entity, description) select 'OrderBy.Column' meta_kind, gt.id parent_type, graphql.type_id('OrderByDirection'::graphql.meta_kind) as type_id, false is_not_null, false is_array, null is_array_not_null, ec.column_name, ec.column_type, ec.column_attribute_num, gt.entity, null::text description from graphql.type gt join graphql.entity_column ec on gt.entity = ec.entity where gt.meta_kind = 'OrderBy' and not ec.column_type in ('json', 'jsonb') and not ec.is_composite; -- IntFilter {eq: ... neq: ... gt: ... gte: ... lt: ... lte: ... } insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, description) select gt.id as parent_type_id, gt.graphql_type_id type_id, ops.constant_name as constant_name, false, false, null::text as description from graphql.type gt -- IntFilter join ( values ('eq'), ('lt'), ('lte'), ('neq'), ('gte'), ('gt') ) ops(constant_name) on true where gt.meta_kind = 'FilterType' and ( gt.graphql_type_id not in (graphql.type_id('UUID'), graphql.type_id('JSON')) or ops.constant_name in ('eq', 'neq') ); -- AccountFilter(column eq) insert into graphql._field(meta_kind, parent_type_id, type_id, is_not_null, is_array, column_name, column_attribute_num, entity, description) select distinct 'Filter.Column'::graphql.field_meta_kind as meta_kind, gt.id parent_type_id, gt_scalar.id type_id, false is_not_null, false is_array, ec.column_name, ec.column_attribute_num, gt.entity, null::text description from graphql.type gt join graphql.entity_column ec on gt.entity = ec.entity join graphql.type gt_scalar on graphql.type_id(ec.column_type) = gt_scalar.graphql_type_id and gt_scalar.meta_kind = 'FilterType' where gt.meta_kind = 'FilterEntity' and not ec.is_array -- disallow arrays and not ec.column_type in ('json', 'jsonb') and not ec.is_composite; -- disallow composite -- Arguments -- __Field(includeDeprecated) -- __enumValue(includeDeprecated) -- __InputFields(includeDeprecated) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, default_value, description) select distinct f.type_id as parent_type_id, graphql.type_id('Boolean') as type_id, 'includeDeprecated' as constant_name, false as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id as parent_arg_field_id, 'f' as default_value, null::text as description from graphql._field f join graphql.type t on f.type_id = t.id where t.meta_kind in ('__Field', '__EnumValue', '__InputValue', '__Directive'); -- __type(name) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, graphql.type_id('String') type_id, 'name' as constant_name, true as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, null::text as description from graphql._field f join graphql.type t on f.type_id = t.id join graphql.type pt on f.parent_type_id = pt.id where t.meta_kind = '__Type' and pt.meta_kind = 'Query' and f.constant_name = '__type'; -- Connection(first, last) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, graphql.type_id('Int') type_id, y.constant_name, false as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, y.description from graphql.type t inner join graphql._field f on t.id = f.type_id, lateral ( values ('first', 'Query the first `n` records in the collection'), ('last', 'Query the last `n` records in the collection') ) y(constant_name, description) where t.meta_kind = 'Connection'; -- Connection(before, after) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, graphql.type_id('Cursor') type_id, y.constant_name, false as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, y.description from graphql.type t inner join graphql._field f on t.id = f.type_id, lateral ( values ('before', 'Query values in the collection before the provided cursor'), ('after', 'Query values in the collection after the provided cursor') ) y(constant_name, description) where t.meta_kind = 'Connection'; -- Connection(orderBy) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, tt.id type_id, 'orderBy' as constant_name, true as is_not_null, true as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_name, 'Sort order to apply to the collection' as description from graphql.type t inner join graphql._field f on t.id = f.type_id and t.meta_kind = 'Connection' inner join graphql.type tt on t.entity = tt.entity and tt.meta_kind = 'OrderBy'; -- Connection(filter) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, tt.id type_, 'filter' as constant_name, false as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, 'Filters to apply to the results set when querying from the collection' as description from graphql.type t inner join graphql._field f on t.id = f.type_id and t.meta_kind = 'Connection' inner join graphql.type tt on t.entity = tt.entity and tt.meta_kind = 'FilterEntity'; -- Mutation.insertAccount insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, description, is_hidden_from_schema) select fs.field_meta_kind::graphql.field_meta_kind, node.entity, graphql.type_id('Mutation'::graphql.meta_kind), fs.type_id, fs.is_not_null, fs.is_array, fs.is_array_not_null, fs.description, false as is_hidden_from_schema from graphql.type node, lateral ( values ('Mutation.insert', node.id, false, false, false, format('Adds one or more `%s` records to the collection', node.name)) ) fs(field_meta_kind, type_id, is_not_null, is_array, is_array_not_null, description) where node.meta_kind = 'InsertNodeResponse'; -- Mutation.updateAccountCollection insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, description, is_hidden_from_schema) select fs.field_meta_kind::graphql.field_meta_kind, ret_type.entity, graphql.type_id('Mutation'::graphql.meta_kind), fs.type_id, fs.is_not_null, fs.is_array, fs.is_array_not_null, fs.description, false as is_hidden_from_schema from graphql.type ret_type, lateral ( values ('Mutation.update', ret_type.id, true, false, false, 'Updates zero or more records in the collection') ) fs(field_meta_kind, type_id, is_not_null, is_array, is_array_not_null, description) where ret_type.meta_kind = 'UpdateNodeResponse'; -- Mutation.deleteFromAccountCollection insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, description, is_hidden_from_schema) select fs.field_meta_kind::graphql.field_meta_kind, ret_type.entity, graphql.type_id('Mutation'::graphql.meta_kind), fs.type_id, fs.is_not_null, fs.is_array, fs.is_array_not_null, fs.description, false as is_hidden_from_schema from graphql.type ret_type, lateral ( values ('Mutation.delete', ret_type.id, true, false, false, 'Deletes zero or more records from the collection') ) fs(field_meta_kind, type_id, is_not_null, is_array, is_array_not_null, description) where ret_type.meta_kind = 'DeleteNodeResponse'; -- Mutation.insertAccount(object: ...) insert into graphql._field(meta_kind, parent_type_id, type_id, entity, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select x.meta_kind, f.type_id as parent_type_id, tt.id type_id, t.entity, x.constant_name as constant_name, true as is_not_null, true as is_array, true as is_array_not_null, true as is_arg, f.id parent_arg_field_id, null as description from graphql.type t inner join graphql._field f on t.id = f.type_id and f.meta_kind = 'Mutation.insert' inner join graphql.type tt on t.entity = tt.entity and tt.meta_kind = 'InsertNode', lateral ( values ('ObjectsArg'::graphql.field_meta_kind, 'objects') ) x(meta_kind, constant_name); -- Mutation.insertAccount(object: {<column> }) insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description, column_name, column_type, column_attribute_num, is_hidden_from_schema) select 'Column' as meta_kind, gf.entity, gf.type_id parent_type_id, graphql.type_id(ec.column_type) as type_id, false as is_not_null, ec.is_array as is_array, false as is_array_not_null, true as is_arg, gf.id as parent_arg_field_id, null::text description, ec.column_name, ec.column_type, ec.column_attribute_num, false as is_hidden_from_schema from graphql._field gf join graphql.entity_column ec on gf.entity = ec.entity where gf.meta_kind = 'ObjectsArg' and not ec.is_generated -- skip generated columns and not ec.is_serial -- skip (big)serial columns and not ec.column_type in ('json', 'jsonb') and not ec.is_array -- disallow arrays and not ec.is_composite; -- disallow arrays -- AccountUpdateResponse.affectedCount -- AccountUpdateResponse.records -- AccountDeleteResponse.affectedCount -- AccountDeleteResponse.records -- AccountInsertResponse.affectedCount -- AccountInsertResponse.records insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, description) select t.id parent_type_id, x.type_id, x.constant_name, x.is_not_null, x.is_array, x.is_array_not_null, x.description from graphql.type t join graphql.type t_base on t.entity = t_base.entity and t_base.meta_kind = 'Node', lateral ( values ('records', t_base.id, true, true, true, 'Array of records impacted by the mutation'), ('affectedCount', graphql.type_id('Int'), true, false, null, 'Count of the records impacted by the mutation') ) x (constant_name, type_id, is_not_null, is_array, is_array_not_null, description) where t.meta_kind in ('DeleteNodeResponse', 'UpdateNodeResponse', 'InsertNodeResponse'); -- Mutation.delete(... filter: {}) -- Mutation.update(... filter: {}) insert into graphql._field(parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select f.type_id as parent_type_id, tt.id type_, 'filter' as constant_name, false as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, 'Restricts the mutation''s impact to records matching the critera' as description from graphql._field f inner join graphql.type tt on f.entity = tt.entity and tt.meta_kind = 'FilterEntity' where f.meta_kind in ('Mutation.delete', 'Mutation.update'); -- Mutation.delete(... atMost: Int!) -- Mutation.update(... atMost: Int!) insert into graphql._field(meta_kind, parent_type_id, type_id, constant_name, is_not_null, is_array, is_array_not_null, is_arg, default_value, parent_arg_field_id, description) select 'AtMostArg'::graphql.field_meta_kind, f.type_id as parent_type_id, graphql.type_id('Int'), 'atMost' as constant_name, true as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, '1' as default_value, f.id parent_arg_field_id, 'The maximum number of records in the collection permitted to be affected' as description from graphql._field f where f.meta_kind in ('Mutation.delete', 'Mutation.update'); -- Mutation.update(set: ...) insert into graphql._field(meta_kind, parent_type_id, type_id, entity, constant_name, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description) select 'UpdateSetArg'::graphql.field_meta_kind, f.type_id as parent_type_id, tt.id type_id, f.entity, 'set' as constant_name, true as is_not_null, false as is_array, false as is_array_not_null, true as is_arg, f.id parent_arg_field_id, 'Fields that are set will be updated for all records matching the `filter`' as description from graphql._field f inner join graphql.type tt on tt.meta_kind = 'UpdateNode' and f.entity = tt.entity where f.meta_kind = 'Mutation.update'; -- Mutation.update(set: {<column> }) insert into graphql._field(meta_kind, entity, parent_type_id, type_id, is_not_null, is_array, is_array_not_null, is_arg, parent_arg_field_id, description, column_name, column_type, column_attribute_num, is_hidden_from_schema) select 'Column' as meta_kind, gf.entity, gf.type_id parent_type_id, graphql.type_id(ec.column_type) as type_id, false as is_not_null, ec.is_array, false as is_array_not_null, true as is_arg, gf.id as parent_arg_field_id, null::text description, ec.column_name, ec.column_type, ec.column_attribute_num, false as is_hidden_from_schema from graphql._field gf join graphql.entity_column ec on gf.entity = ec.entity where gf.meta_kind = 'UpdateSetArg' and not ec.is_generated -- skip generated columns and not ec.is_serial -- skip (big)serial columns and not ec.column_type in ('json', 'jsonb') and not ec.is_array -- disallow arrays and not ec.is_composite; -- disallow composite end; $$; create view graphql.field as select f.id, t_parent.name parent_type, t_self.name type_, f.name, f.is_not_null, f.is_array, f.is_array_not_null, f.is_arg, f_arg_parent.name as parent_arg_field_name, f.parent_arg_field_id, f.default_value, f.description, f.entity, f.column_name, f.column_type, f.column_attribute_num, f.foreign_columns, f.local_columns, f.func, f.is_hidden_from_schema, f.meta_kind from graphql._field f join graphql.type t_parent on f.parent_type_id = t_parent.id join graphql.type t_self on f.type_id = t_self.id left join graphql._field f_arg_parent on f.parent_arg_field_id = f_arg_parent.id where f.name ~ '^[_A-Za-z][_0-9A-Za-z]*$' -- Apply visibility rules and case when f.meta_kind = 'Mutation.insert' then ( pg_catalog.has_any_column_privilege(current_user, f.entity, 'INSERT') and pg_catalog.has_any_column_privilege(current_user, f.entity, 'SELECT') ) when f.meta_kind = 'Mutation.update' then ( pg_catalog.has_any_column_privilege(current_user, f.entity, 'UPDATE') and pg_catalog.has_any_column_privilege(current_user, f.entity, 'SELECT') ) when f.meta_kind = 'Mutation.delete' then ( pg_catalog.has_table_privilege(current_user, f.entity, 'DELETE') and pg_catalog.has_any_column_privilege(current_user, f.entity, 'SELECT') ) -- When an input column, make sure role has insert and permission when f_arg_parent.meta_kind = 'ObjectsArg' then pg_catalog.has_column_privilege( current_user, f.entity, f.column_name, 'INSERT' ) -- When an input column, make sure role has insert and permission when f_arg_parent.meta_kind = 'UpdateSetArg' then pg_catalog.has_column_privilege( current_user, f.entity, f.column_name, 'UPDATE' ) when f.column_name is not null then pg_catalog.has_column_privilege( current_user, f.entity, f.column_name, 'SELECT' ) when f.func is not null then pg_catalog.has_function_privilege( current_user, f.func, 'EXECUTE' ) -- Check if relationship local and remote columns are selectable when f.local_columns is not null then ( ( select bool_and( pg_catalog.has_column_privilege( current_user, f.entity, x.col, 'SELECT' ) ) from unnest(f.foreign_columns) x(col) ) and ( select bool_and( pg_catalog.has_column_privilege( current_user, f.foreign_entity, x.col, 'SELECT' ) ) from unnest(f.local_columns) x(col) ) ) when f.column_name is null then true else false end;
the_stack
EXEC tSQLt.NewTestClass 'NameAndIdResolutionTests' GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces returns null if quoted with square brackets] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('[NameAndIdResolutionTests my schema]'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces returns null if quoted with double quotes] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('"NameAndIdResolutionTests my schema"'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object name with spaces returns not null if quoted with square brackets] AS BEGIN EXEC ('CREATE TABLE [NameAndIdResolutionTests].[my table] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('[NameAndIdResolutionTests].[my table]'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object name with spaces returns not null if quoted with double quotes] AS BEGIN EXEC ('CREATE TABLE [NameAndIdResolutionTests].[my table] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('"NameAndIdResolutionTests"."my table"'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces returns not null if quoted with brackets] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests my schema].[my table] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('[NameAndIdResolutionTests my schema].[my table]'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces returns not null if not quoted] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests my schema].[my table] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('NameAndIdResolutionTests my schema.my table'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces returns not null if quoted with double quotes] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests my schema].[my table] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('"NameAndIdResolutionTests my schema"."my table"'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces returns not null if not quoted] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my schema];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('NameAndIdResolutionTests my schema'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected SCHEMA_ID of not quoted name to not return null'; END; GO ----------------------------- GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces and dots returns null if quoted with square brackets] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('[NameAndIdResolutionTests m.y sche.ma]'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces and dots returns null if quoted with double quotes] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('"NameAndIdResolutionTests m.y sche.ma"'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object name with spaces and dots returns not null if quoted with square brackets] AS BEGIN EXEC ('CREATE TABLE [NameAndIdResolutionTests].[m.y tab.le] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('[NameAndIdResolutionTests].[m.y tab.le]'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object name with spaces and dots returns not null if quoted with double quotes] AS BEGIN EXEC ('CREATE TABLE [NameAndIdResolutionTests].[m.y tab.le] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('"NameAndIdResolutionTests"."m.y tab.le"'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test schema_id of schema name with spaces and dots returns not null if not quoted] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); DECLARE @actual INT; SELECT @actual = SCHEMA_ID('NameAndIdResolutionTests m.y sche.ma'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected SCHEMA_ID of not quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces and dots returns not null if quoted with brackets] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests m.y sche.ma].[m.y tab.le] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('[NameAndIdResolutionTests m.y sche.ma].[m.y tab.le]'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces and dots returns not null if not quoted] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests m.y sche.ma].[m.y tab.le] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('NameAndIdResolutionTests m.y sche.ma.m.y tab.le'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test object_id of object and schema name with spaces and dots returns not null if quoted with double quotes] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests m.y sche.ma];'); EXEC ('CREATE TABLE [NameAndIdResolutionTests m.y sche.ma].[m.y tab.le] (i int);'); DECLARE @actual INT; SELECT @actual = OBJECT_ID('"NameAndIdResolutionTests m.y sche.ma"."m.y tab.le"'); IF @actual IS NULL EXEC tSQLt.Fail 'Expected OBJECT_ID of quoted name to not return null'; END; GO ----------------------------------------------------- GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId of schema name that does not exist returns null] AS BEGIN DECLARE @actual INT; SELECT @actual = tSQLt.Private_GetSchemaId('NameAndIdResolutionTests my schema'); EXEC tSQLt.AssertEquals NULL, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId of simple schema name returns id of schema] AS BEGIN DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = SCHEMA_ID('NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('NameAndIdResolutionTests'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId of simple bracket quoted schema name returns id of schema] AS BEGIN DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = SCHEMA_ID('NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('[NameAndIdResolutionTests]'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of schema with brackets in name if bracketed and unbracketed schema exists] AS BEGIN EXEC ('CREATE SCHEMA [[NameAndIdResolutionTests]]];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='[NameAndIdResolutionTests]'); SELECT @actual = tSQLt.Private_GetSchemaId('[NameAndIdResolutionTests]'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of schema without brackets in name if bracketed and unbracketed schema exists] AS BEGIN EXEC ('CREATE SCHEMA [[NameAndIdResolutionTests]]];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('NameAndIdResolutionTests'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of schema without brackets in name if only unbracketed schema exists] AS BEGIN DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('[NameAndIdResolutionTests]'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of schema when quoted with double quotes] AS BEGIN DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('"NameAndIdResolutionTests"'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of double quoted schema when similar schema names exist] AS BEGIN EXEC ('CREATE SCHEMA [[NameAndIdResolutionTests]]];'); EXEC ('CREATE SCHEMA ["NameAndIdResolutionTests"];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='"NameAndIdResolutionTests"'); SELECT @actual = tSQLt.Private_GetSchemaId('"NameAndIdResolutionTests"'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of bracket quoted schema when similar schema names exist] AS BEGIN EXEC ('CREATE SCHEMA [[NameAndIdResolutionTests]]];'); EXEC ('CREATE SCHEMA ["NameAndIdResolutionTests"];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='[NameAndIdResolutionTests]'); SELECT @actual = tSQLt.Private_GetSchemaId('[NameAndIdResolutionTests]'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId returns id of unquoted schema when similar schema names exist] AS BEGIN EXEC ('CREATE SCHEMA [[NameAndIdResolutionTests]]];'); EXEC ('CREATE SCHEMA ["NameAndIdResolutionTests"];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='NameAndIdResolutionTests'); SELECT @actual = tSQLt.Private_GetSchemaId('NameAndIdResolutionTests'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO CREATE PROC NameAndIdResolutionTests.[test tSQLt.Private_GetSchemaId of schema name with spaces returns not null if not quoted] AS BEGIN EXEC ('CREATE SCHEMA [NameAndIdResolutionTests my.schema];'); DECLARE @actual INT; DECLARE @expected INT; SELECT @expected = (SELECT schema_id FROM sys.schemas WHERE name='NameAndIdResolutionTests my.schema'); SELECT @actual = tSQLt.Private_GetSchemaId('NameAndIdResolutionTests my.schema'); EXEC tSQLt.AssertEquals @expected, @actual; END; GO
the_stack
-- 2021-05-13T08:22:15.209Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,SQLStatement,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584828,'Y','de.metas.impexp.excel.process.ExportToExcelProcess','N',TO_TIMESTAMP('2021-05-13 11:22:14','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','N','N','N','Y','Y',0,'Products Without Initial Cost','json','N','N','SELECT * FROM ProductsWithoutInitialCost(@AD_Org_ID/-1@)','Excel',TO_TIMESTAMP('2021-05-13 11:22:14','YYYY-MM-DD HH24:MI:SS'),100,'M_Product_ProductsWithoutInitialCost') ; -- 2021-05-13T08:22:15.305Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584828 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2021-05-13T08:30:55.133Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579151,0,TO_TIMESTAMP('2021-05-13 11:30:54','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Products Without Initial Cost','Products Without Initial Cost',TO_TIMESTAMP('2021-05-13 11:30:54','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T08:30:55.138Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=579151 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2021-05-13T08:32:00.616Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('P',0,579151,541710,0,584828,TO_TIMESTAMP('2021-05-13 11:32:00','YYYY-MM-DD HH24:MI:SS'),100,'U','M_Product_ProductsWithoutInitialCost','Y','N','N','N','N','Products Without Initial Cost',TO_TIMESTAMP('2021-05-13 11:32:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T08:32:00.618Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Menu_ID=541710 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2021-05-13T08:32:00.621Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541710, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541710) ; -- 2021-05-13T08:32:00.671Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_menu_translation_from_ad_element(579151) ; -- 2021-05-13T08:32:08.959Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541584 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.961Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.963Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540814 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.965Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=541297 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.967Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540803 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.969Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=541377 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.971Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540904 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.973Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540749 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.975Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540779 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540910 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.979Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=541308 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.980Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541313 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.982Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540758 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.984Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540759 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.992Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540806 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.994Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540891 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.996Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540896 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:08.997Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540903 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541405 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.001Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540906 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.003Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541455 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.005Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=541454 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.007Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540907 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.009Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540908 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.011Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=541015 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.013Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=541016 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.015Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541042 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.016Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=315 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.018Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=541368 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.020Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541120 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.021Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=541125 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.023Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000056 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.025Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=541304 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.027Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000064 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.029Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000072 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:09.030Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=541710 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.650Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541584 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.652Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.654Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540814 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.656Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=541297 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.658Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540803 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.659Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=541377 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.661Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540904 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.663Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540749 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.664Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540779 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.666Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540910 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.668Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=541308 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.669Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541313 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.671Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540758 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.672Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540759 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.674Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540806 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.675Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540891 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.677Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540896 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.678Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540903 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.681Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541405 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540906 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.684Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541455 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.685Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=541454 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.687Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=541710 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.688Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540907 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.690Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=540908 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.691Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=541015 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.693Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541016 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.695Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541042 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.697Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=315 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.699Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541368 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.700Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=541120 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.701Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=541125 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.703Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000056 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.705Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541304 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.706Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000064 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:14.708Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000072 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.079Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541584 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.081Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.083Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540814 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.084Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=541297 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.086Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540803 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.088Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=541377 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.090Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540904 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.091Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540749 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.092Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540779 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.094Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540910 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.096Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=541308 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.098Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541313 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.099Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540758 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.101Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540759 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.103Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540806 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.104Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540891 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.106Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540896 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.107Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540903 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.109Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541405 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.111Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540906 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.112Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541710 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.113Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=541455 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.115Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=541454 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.117Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540907 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.119Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=540908 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.120Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=541015 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.122Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541016 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.123Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541042 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.125Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=315 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.126Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541368 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.128Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=541120 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.129Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=541125 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.131Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000056 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.133Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541304 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000064 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:18.136Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000072 AND AD_Tree_ID=10 ; -- 2021-05-13T08:32:25.518Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET EntityType='D',Updated=TO_TIMESTAMP('2021-05-13 11:32:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541710 ; -- 2021-05-13T08:50:19.285Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Produkte ohne initialen Kostenpreis', PrintName='Produkte ohne initialen Kostenpreis',Updated=TO_TIMESTAMP('2021-05-13 11:50:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579151 AND AD_Language='de_CH' ; -- 2021-05-13T08:50:19.301Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579151,'de_CH') ; -- 2021-05-13T08:50:23.397Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Produkte ohne initialen Kostenpreis', PrintName='Produkte ohne initialen Kostenpreis',Updated=TO_TIMESTAMP('2021-05-13 11:50:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579151 AND AD_Language='de_DE' ; -- 2021-05-13T08:50:23.399Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579151,'de_DE') ; -- 2021-05-13T08:50:23.410Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(579151,'de_DE') ; -- 2021-05-13T08:50:23.413Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName=NULL, Name='Produkte ohne initialen Kostenpreis', Description=NULL, Help=NULL WHERE AD_Element_ID=579151 ; -- 2021-05-13T08:50:23.416Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName=NULL, Name='Produkte ohne initialen Kostenpreis', Description=NULL, Help=NULL WHERE AD_Element_ID=579151 AND IsCentrallyMaintained='Y' ; -- 2021-05-13T08:50:23.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Produkte ohne initialen Kostenpreis', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579151) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579151) ; -- 2021-05-13T08:50:23.426Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Produkte ohne initialen Kostenpreis', Name='Produkte ohne initialen Kostenpreis' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579151) ; -- 2021-05-13T08:50:23.428Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Produkte ohne initialen Kostenpreis', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579151 ; -- 2021-05-13T08:50:23.432Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Produkte ohne initialen Kostenpreis', Description=NULL, Help=NULL WHERE AD_Element_ID = 579151 ; -- 2021-05-13T08:50:23.434Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Produkte ohne initialen Kostenpreis', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579151 ; -- 2021-05-13T08:50:38.741Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='Produkte ohne initialen Kostenpreis',Updated=TO_TIMESTAMP('2021-05-13 11:50:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T08:50:43.415Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y', Name='Produkte ohne initialen Kostenpreis',Updated=TO_TIMESTAMP('2021-05-13 11:50:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584828 ; -- 2021-05-13T08:50:48.035Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y', Name='Produkte ohne initialen Kostenpreis',Updated=TO_TIMESTAMP('2021-05-13 11:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584828 ; -- 2021-05-13T11:45:55.222Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,584828,541975,30,322,'AD_Org_ID',TO_TIMESTAMP('2021-05-13 14:45:55','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Org_ID/-1@','Organisatorische Einheit des Mandanten','D',0,'Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','Y','N','Y','N','Sektion',10,TO_TIMESTAMP('2021-05-13 14:45:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T11:45:55.226Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541975 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2021-05-13T11:46:25.126Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,DisplayLogic,EntityType,FieldLength,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,102,0,584828,541976,18,'AD_Client_ID',TO_TIMESTAMP('2021-05-13 14:46:24','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Client_ID/-1@','Mandant für diese Installation.','1=0','D',0,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','Y','N','Y','N','Mandant',20,TO_TIMESTAMP('2021-05-13 14:46:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T11:46:25.132Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541976 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2021-05-13T11:46:46.501Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@AD_Client_ID/-1@, @AD_Org_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 14:46:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T12:38:43.341Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET IsMandatory='N',Updated=TO_TIMESTAMP('2021-05-13 15:38:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T13:12:05.916Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @#AD_Org_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 16:12:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T13:12:19.368Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET DefaultValue='@#AD_Client_ID/-1@',Updated=TO_TIMESTAMP('2021-05-13 16:12:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541976 ; -- 2021-05-13T13:12:22.857Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET DefaultValue='@#AD_Org_ID/-1@',Updated=TO_TIMESTAMP('2021-05-13 16:12:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T13:15:34.210Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @AD_Org_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 16:15:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T13:15:43.772Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=541976 ; -- 2021-05-13T13:15:43.784Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=541976 ; -- 2021-05-13T14:12:44.370Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @AD_Org_ID@)',Updated=TO_TIMESTAMP('2021-05-13 17:12:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T15:59:36.521Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_Value_ID=276,Updated=TO_TIMESTAMP('2021-05-13 18:59:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T16:05:50.076Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET DefaultValue='@#AD_Org_ID@',Updated=TO_TIMESTAMP('2021-05-13 19:05:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T16:09:28.196Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579153,0,'PARAM_AD_Org_ID',TO_TIMESTAMP('2021-05-13 19:09:26','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Sektion','Sektion',TO_TIMESTAMP('2021-05-13 19:09:26','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T16:09:28.209Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=579153 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2021-05-13T16:09:47.915Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Organisation', PrintName='Organisation',Updated=TO_TIMESTAMP('2021-05-13 19:09:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579153 AND AD_Language='en_US' ; -- 2021-05-13T16:09:47.918Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579153,'en_US') ; -- 2021-05-13T16:10:12.299Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Element_ID=579153, ColumnName='PARAM_AD_Org_ID', Description=NULL, Help=NULL, IsAutocomplete='Y',Updated=TO_TIMESTAMP('2021-05-13 19:10:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T16:10:25.022Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @PARAM_AD_Org_ID@)',Updated=TO_TIMESTAMP('2021-05-13 19:10:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T16:11:43.147Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @PARAM_AD_Org_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 19:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T16:35:49.537Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM "de_metas_acct".report_ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @PARAM_AD_Org_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 19:35:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T16:59:33.593Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2700,0,584828,541978,30,'M_CostElement_ID',TO_TIMESTAMP('2021-05-13 19:59:33','YYYY-MM-DD HH24:MI:SS'),100,'@M_CostElement_ID/-1@','Produkt-Kostenart','D',0,'Y','N','Y','N','N','N','Kostenart',20,TO_TIMESTAMP('2021-05-13 19:59:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-13T16:59:33.595Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541978 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2021-05-13T17:00:03.106Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM "de_metas_acct".report_ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @PARAM_AD_Org_ID/-1@, @M_CostElement_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 20:00:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ; -- 2021-05-13T17:07:00.371Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET DefaultValue=' @SQL=SELECT ce.M_CostElement_ID AS DefaultValue FROM M_CostElement ce JOIN c_acctschema sch on ce.costingmethod = sch.costingmethod JOIN ad_clientinfo ci on sch.c_acctschema_id = ci.c_acctschema1_id WHERE ci.ad_client_id = @#AD_Client_ID@',Updated=TO_TIMESTAMP('2021-05-13 20:07:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541978 ; -- 2021-05-13T17:11:37.279Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET DefaultValue='@SQL=SELECT ce.M_CostElement_ID AS DefaultValue FROM M_CostElement ce JOIN c_acctschema sch on ce.costingmethod = sch.costingmethod JOIN ad_clientinfo ci on sch.c_acctschema_id = ci.c_acctschema1_id WHERE ci.ad_client_id = @#AD_Client_ID@',Updated=TO_TIMESTAMP('2021-05-13 20:11:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541978 ; -- 2021-05-13T17:19:27.520Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_TIMESTAMP('2021-05-13 20:19:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541978 ; -- 2021-05-13T20:02:27.493Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T20:02:27.522Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=541975 ; -- 2021-05-13T20:02:36.122Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM "de_metas_acct".report_ProductsWithoutInitialCost(@#AD_Client_ID/-1@, @M_CostElement_ID/-1@)',Updated=TO_TIMESTAMP('2021-05-13 23:02:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584828 ;
the_stack
SET search_path = aouser, pg_catalog; -- -- Name: ao ao_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY ao ADD CONSTRAINT ao_pkey PRIMARY KEY (ao_id); -- -- Name: doc_order doc_order_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY doc_order ADD CONSTRAINT doc_order_pkey PRIMARY KEY (doc_order_id); -- -- Name: document document_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY document ADD CONSTRAINT document_pkey PRIMARY KEY (document_id); -- -- Name: entity entity_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY entity ADD CONSTRAINT entity_pkey PRIMARY KEY (entity_id); -- -- Name: entity_type entity_type_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY entity_type ADD CONSTRAINT entity_type_pkey PRIMARY KEY (entity_type_id); -- -- Name: filtertab filtertab_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY filtertab ADD CONSTRAINT filtertab_pkey PRIMARY KEY (query_id); -- -- Name: markuptab markuptab_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY markuptab ADD CONSTRAINT markuptab_pkey PRIMARY KEY (id); -- -- Name: players players_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY players ADD CONSTRAINT players_pkey PRIMARY KEY (player_id); -- -- Name: role role_pkey; Type: CONSTRAINT; Schema: aouser; Owner: fec -- ALTER TABLE ONLY role ADD CONSTRAINT role_pkey PRIMARY KEY (role_id); SET search_path = auditsearch, pg_catalog; -- -- Name: audit_case_finding audit_case_finding_pkey; Type: CONSTRAINT; Schema: auditsearch; Owner: fec -- ALTER TABLE ONLY audit_case_finding ADD CONSTRAINT audit_case_finding_pkey PRIMARY KEY (audit_finding_pk); -- -- Name: audit_case audit_case_pkey; Type: CONSTRAINT; Schema: auditsearch; Owner: fec -- ALTER TABLE ONLY audit_case ADD CONSTRAINT audit_case_pkey PRIMARY KEY (audit_case_id); -- -- Name: finding finding_pkey; Type: CONSTRAINT; Schema: auditsearch; Owner: fec -- ALTER TABLE ONLY finding ADD CONSTRAINT finding_pkey PRIMARY KEY (finding_pk); -- -- Name: finding_rel finding_rel_pkey; Type: CONSTRAINT; Schema: auditsearch; Owner: fec -- ALTER TABLE ONLY finding_rel ADD CONSTRAINT finding_rel_pkey PRIMARY KEY (rel_pk); SET search_path = disclosure, pg_catalog; -- -- Name: cand_cmte_linkage cand_cmte_linkage_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY cand_cmte_linkage ADD CONSTRAINT cand_cmte_linkage_pkey PRIMARY KEY (linkage_id); -- -- Name: cand_inactive cand_inactive_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY cand_inactive ADD CONSTRAINT cand_inactive_pkey PRIMARY KEY (cand_id, election_yr); -- -- Name: cand_valid_fec_yr cand_valid_fec_yr_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY cand_valid_fec_yr ADD CONSTRAINT cand_valid_fec_yr_pkey PRIMARY KEY (cand_valid_yr_id); -- -- Name: candidate_summary candidate_summary_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY candidate_summary ADD CONSTRAINT candidate_summary_pkey PRIMARY KEY (cand_id, fec_election_yr); -- -- Name: cmte_valid_fec_yr cmte_valid_fec_yr_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY cmte_valid_fec_yr ADD CONSTRAINT cmte_valid_fec_yr_pkey PRIMARY KEY (valid_fec_yr_id); -- -- Name: dim_calendar_inf dim_calendar_inf_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dim_calendar_inf ADD CONSTRAINT dim_calendar_inf_pkey PRIMARY KEY (calendar_pk); -- -- Name: dim_race_inf dim_race_inf_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dim_race_inf ADD CONSTRAINT dim_race_inf_pkey PRIMARY KEY (race_pk); -- -- Name: f_item_daily f_item_daily_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY f_item_daily ADD CONSTRAINT f_item_daily_pkey PRIMARY KEY (sub_id); -- -- Name: f_item_delete_daily f_item_delete_daily_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY f_item_delete_daily ADD CONSTRAINT f_item_delete_daily_pkey PRIMARY KEY (pg_date, table_name, sub_id); -- -- Name: f_item_receipt_or_exp f_item_receipt_or_exp_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY f_item_receipt_or_exp ADD CONSTRAINT f_item_receipt_or_exp_pkey PRIMARY KEY (sub_id); -- -- Name: f_rpt_or_form_sub f_rpt_or_form_sub_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY f_rpt_or_form_sub ADD CONSTRAINT f_rpt_or_form_sub_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f105 fec_fitem_f105_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f105 ADD CONSTRAINT fec_fitem_f105_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f56 fec_fitem_f56_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f56 ADD CONSTRAINT fec_fitem_f56_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f57 fec_fitem_f57_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f57 ADD CONSTRAINT fec_fitem_f57_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f76 fec_fitem_f76_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f76 ADD CONSTRAINT fec_fitem_f76_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f91 fec_fitem_f91_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f91 ADD CONSTRAINT fec_fitem_f91_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_f94 fec_fitem_f94_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_f94 ADD CONSTRAINT fec_fitem_f94_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1975_1976 fec_fitem_sched_a_1975_1976_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1975_1976 ADD CONSTRAINT fec_fitem_sched_a_1975_1976_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1977_1978 fec_fitem_sched_a_1977_1978_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1977_1978 ADD CONSTRAINT fec_fitem_sched_a_1977_1978_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1979_1980 fec_fitem_sched_a_1979_1980_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1979_1980 ADD CONSTRAINT fec_fitem_sched_a_1979_1980_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1981_1982 fec_fitem_sched_a_1981_1982_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1981_1982 ADD CONSTRAINT fec_fitem_sched_a_1981_1982_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1983_1984 fec_fitem_sched_a_1983_1984_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1983_1984 ADD CONSTRAINT fec_fitem_sched_a_1983_1984_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1985_1986 fec_fitem_sched_a_1985_1986_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1985_1986 ADD CONSTRAINT fec_fitem_sched_a_1985_1986_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1987_1988 fec_fitem_sched_a_1987_1988_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1987_1988 ADD CONSTRAINT fec_fitem_sched_a_1987_1988_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1989_1990 fec_fitem_sched_a_1989_1990_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1989_1990 ADD CONSTRAINT fec_fitem_sched_a_1989_1990_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1991_1992 fec_fitem_sched_a_1991_1992_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1991_1992 ADD CONSTRAINT fec_fitem_sched_a_1991_1992_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1993_1994 fec_fitem_sched_a_1993_1994_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1993_1994 ADD CONSTRAINT fec_fitem_sched_a_1993_1994_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1995_1996 fec_fitem_sched_a_1995_1996_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1995_1996 ADD CONSTRAINT fec_fitem_sched_a_1995_1996_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1997_1998 fec_fitem_sched_a_1997_1998_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1997_1998 ADD CONSTRAINT fec_fitem_sched_a_1997_1998_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_1999_2000 fec_fitem_sched_a_1999_2000_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1999_2000 ADD CONSTRAINT fec_fitem_sched_a_1999_2000_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2001_2002 fec_fitem_sched_a_2001_2002_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2001_2002 ADD CONSTRAINT fec_fitem_sched_a_2001_2002_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2003_2004 fec_fitem_sched_a_2003_2004_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2003_2004 ADD CONSTRAINT fec_fitem_sched_a_2003_2004_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2005_2006 fec_fitem_sched_a_2005_2006_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2005_2006 ADD CONSTRAINT fec_fitem_sched_a_2005_2006_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2007_2008 fec_fitem_sched_a_2007_2008_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2007_2008 ADD CONSTRAINT fec_fitem_sched_a_2007_2008_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2009_2010 fec_fitem_sched_a_2009_2010_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2009_2010 ADD CONSTRAINT fec_fitem_sched_a_2009_2010_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2011_2012 fec_fitem_sched_a_2011_2012_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2011_2012 ADD CONSTRAINT fec_fitem_sched_a_2011_2012_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2013_2014 fec_fitem_sched_a_2013_2014_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2013_2014 ADD CONSTRAINT fec_fitem_sched_a_2013_2014_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2015_2016 fec_fitem_sched_a_2015_2016_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2015_2016 ADD CONSTRAINT fec_fitem_sched_a_2015_2016_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a_2017_2018 fec_fitem_sched_a_2017_2018_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_2017_2018 ADD CONSTRAINT fec_fitem_sched_a_2017_2018_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_a fec_fitem_sched_a_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a ADD CONSTRAINT fec_fitem_sched_a_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1975_1976 fec_fitem_sched_b_1975_1976_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1975_1976 ADD CONSTRAINT fec_fitem_sched_b_1975_1976_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1977_1978 fec_fitem_sched_b_1977_1978_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1977_1978 ADD CONSTRAINT fec_fitem_sched_b_1977_1978_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1979_1980 fec_fitem_sched_b_1979_1980_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1979_1980 ADD CONSTRAINT fec_fitem_sched_b_1979_1980_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1981_1982 fec_fitem_sched_b_1981_1982_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1981_1982 ADD CONSTRAINT fec_fitem_sched_b_1981_1982_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1983_1984 fec_fitem_sched_b_1983_1984_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1983_1984 ADD CONSTRAINT fec_fitem_sched_b_1983_1984_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1985_1986 fec_fitem_sched_b_1985_1986_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1985_1986 ADD CONSTRAINT fec_fitem_sched_b_1985_1986_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1987_1988 fec_fitem_sched_b_1987_1988_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1987_1988 ADD CONSTRAINT fec_fitem_sched_b_1987_1988_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1989_1990 fec_fitem_sched_b_1989_1990_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1989_1990 ADD CONSTRAINT fec_fitem_sched_b_1989_1990_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1991_1992 fec_fitem_sched_b_1991_1992_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1991_1992 ADD CONSTRAINT fec_fitem_sched_b_1991_1992_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1993_1994 fec_fitem_sched_b_1993_1994_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1993_1994 ADD CONSTRAINT fec_fitem_sched_b_1993_1994_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1995_1996 fec_fitem_sched_b_1995_1996_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1995_1996 ADD CONSTRAINT fec_fitem_sched_b_1995_1996_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1997_1998 fec_fitem_sched_b_1997_1998_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1997_1998 ADD CONSTRAINT fec_fitem_sched_b_1997_1998_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_1999_2000 fec_fitem_sched_b_1999_2000_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_1999_2000 ADD CONSTRAINT fec_fitem_sched_b_1999_2000_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2001_2002 fec_fitem_sched_b_2001_2002_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2001_2002 ADD CONSTRAINT fec_fitem_sched_b_2001_2002_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2003_2004 fec_fitem_sched_b_2003_2004_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2003_2004 ADD CONSTRAINT fec_fitem_sched_b_2003_2004_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2005_2006 fec_fitem_sched_b_2005_2006_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2005_2006 ADD CONSTRAINT fec_fitem_sched_b_2005_2006_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2007_2008 fec_fitem_sched_b_2007_2008_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2007_2008 ADD CONSTRAINT fec_fitem_sched_b_2007_2008_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2009_2010 fec_fitem_sched_b_2009_2010_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2009_2010 ADD CONSTRAINT fec_fitem_sched_b_2009_2010_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2011_2012 fec_fitem_sched_b_2011_2012_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2011_2012 ADD CONSTRAINT fec_fitem_sched_b_2011_2012_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2013_2014 fec_fitem_sched_b_2013_2014_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2013_2014 ADD CONSTRAINT fec_fitem_sched_b_2013_2014_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2015_2016 fec_fitem_sched_b_2015_2016_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2015_2016 ADD CONSTRAINT fec_fitem_sched_b_2015_2016_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b_2017_2018 fec_fitem_sched_b_2017_2018_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b_2017_2018 ADD CONSTRAINT fec_fitem_sched_b_2017_2018_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_b fec_fitem_sched_b_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_b ADD CONSTRAINT fec_fitem_sched_b_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_c1 fec_fitem_sched_c1_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_c1 ADD CONSTRAINT fec_fitem_sched_c1_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_c2 fec_fitem_sched_c2_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_c2 ADD CONSTRAINT fec_fitem_sched_c2_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_c fec_fitem_sched_c_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_c ADD CONSTRAINT fec_fitem_sched_c_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_d fec_fitem_sched_d_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_d ADD CONSTRAINT fec_fitem_sched_d_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_e fec_fitem_sched_e_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_e ADD CONSTRAINT fec_fitem_sched_e_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_f fec_fitem_sf_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_f ADD CONSTRAINT fec_fitem_sf_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h1 fec_fitem_sh1_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h1 ADD CONSTRAINT fec_fitem_sh1_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h2 fec_fitem_sh2_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h2 ADD CONSTRAINT fec_fitem_sh2_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h3 fec_fitem_sh3_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h3 ADD CONSTRAINT fec_fitem_sh3_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h4 fec_fitem_sh4_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h4 ADD CONSTRAINT fec_fitem_sh4_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h5 fec_fitem_sh5_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h5 ADD CONSTRAINT fec_fitem_sh5_pkey PRIMARY KEY (sub_id); -- -- Name: fec_fitem_sched_h6 fec_fitem_sh6_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_h6 ADD CONSTRAINT fec_fitem_sh6_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_105 nml_form_105_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_105 ADD CONSTRAINT nml_form_105_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_10 nml_form_10_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_10 ADD CONSTRAINT nml_form_10_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_11 nml_form_11_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_11 ADD CONSTRAINT nml_form_11_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_12 nml_form_12_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_12 ADD CONSTRAINT nml_form_12_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_13 nml_form_13_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_13 ADD CONSTRAINT nml_form_13_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_1 nml_form_1_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_1 ADD CONSTRAINT nml_form_1_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_1m nml_form_1m_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_1m ADD CONSTRAINT nml_form_1m_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_1s nml_form_1s_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_1s ADD CONSTRAINT nml_form_1s_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_1z nml_form_1z_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_1z ADD CONSTRAINT nml_form_1z_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_24 nml_form_24_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_24 ADD CONSTRAINT nml_form_24_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_2 nml_form_2_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_2 ADD CONSTRAINT nml_form_2_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_2s nml_form_2s_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_2s ADD CONSTRAINT nml_form_2s_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_2z nml_form_2z_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_2z ADD CONSTRAINT nml_form_2z_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3 nml_form_3_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3 ADD CONSTRAINT nml_form_3_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3l nml_form_3l_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3l ADD CONSTRAINT nml_form_3l_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3p nml_form_3p_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3p ADD CONSTRAINT nml_form_3p_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3ps nml_form_3ps_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3ps ADD CONSTRAINT nml_form_3ps_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3pz nml_form_3pz_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3pz ADD CONSTRAINT nml_form_3pz_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3s nml_form_3s_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3s ADD CONSTRAINT nml_form_3s_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3x nml_form_3x_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3x ADD CONSTRAINT nml_form_3x_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_3z nml_form_3z_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_3z ADD CONSTRAINT nml_form_3z_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_4 nml_form_4_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_4 ADD CONSTRAINT nml_form_4_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_56 nml_form_56_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_56 ADD CONSTRAINT nml_form_56_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_57 nml_form_57_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_57 ADD CONSTRAINT nml_form_57_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_5 nml_form_5_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_5 ADD CONSTRAINT nml_form_5_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_65 nml_form_65_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_65 ADD CONSTRAINT nml_form_65_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_6 nml_form_6_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_6 ADD CONSTRAINT nml_form_6_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_76 nml_form_76_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_76 ADD CONSTRAINT nml_form_76_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_7 nml_form_7_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_7 ADD CONSTRAINT nml_form_7_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_82 nml_form_82_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_82 ADD CONSTRAINT nml_form_82_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_83 nml_form_83_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_83 ADD CONSTRAINT nml_form_83_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_8 nml_form_8_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_8 ADD CONSTRAINT nml_form_8_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_91 nml_form_91_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_91 ADD CONSTRAINT nml_form_91_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_94 nml_form_94_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_94 ADD CONSTRAINT nml_form_94_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_99_misc nml_form_99_misc_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_99_misc ADD CONSTRAINT nml_form_99_misc_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_9 nml_form_9_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_9 ADD CONSTRAINT nml_form_9_pkey PRIMARY KEY (sub_id); -- -- Name: nml_form_rfai nml_form_rfai_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_form_rfai ADD CONSTRAINT nml_form_rfai_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_a_daily nml_sched_a_daily_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_a_daily ADD CONSTRAINT nml_sched_a_daily_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_a nml_sched_a_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_a ADD CONSTRAINT nml_sched_a_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_b_daily nml_sched_b_daily_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_b_daily ADD CONSTRAINT nml_sched_b_daily_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_b nml_sched_b_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_b ADD CONSTRAINT nml_sched_b_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_c1 nml_sched_c1_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_c1 ADD CONSTRAINT nml_sched_c1_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_c2 nml_sched_c2_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_c2 ADD CONSTRAINT nml_sched_c2_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_c nml_sched_c_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_c ADD CONSTRAINT nml_sched_c_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_d nml_sched_d_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_d ADD CONSTRAINT nml_sched_d_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_e nml_sched_e_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_e ADD CONSTRAINT nml_sched_e_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_f nml_sched_f_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_f ADD CONSTRAINT nml_sched_f_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h1 nml_sched_h1_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h1 ADD CONSTRAINT nml_sched_h1_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h2 nml_sched_h2_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h2 ADD CONSTRAINT nml_sched_h2_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h3 nml_sched_h3_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h3 ADD CONSTRAINT nml_sched_h3_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h4 nml_sched_h4_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h4 ADD CONSTRAINT nml_sched_h4_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h5 nml_sched_h5_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h5 ADD CONSTRAINT nml_sched_h5_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_h6 nml_sched_h6_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_h6 ADD CONSTRAINT nml_sched_h6_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_i nml_sched_i_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_i ADD CONSTRAINT nml_sched_i_pkey PRIMARY KEY (sub_id); -- -- Name: nml_sched_l nml_sched_l_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY nml_sched_l ADD CONSTRAINT nml_sched_l_pkey PRIMARY KEY (sub_id); -- -- Name: ref_filing_desc ref_filing_desc_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY ref_filing_desc ADD CONSTRAINT ref_filing_desc_pkey PRIMARY KEY (filing_code); -- -- Name: unverified_cand_cmte unverified_cand_cmte_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY unverified_cand_cmte ADD CONSTRAINT unverified_cand_cmte_pkey PRIMARY KEY (cand_cmte_id); -- -- Name: dsc_sched_a_aggregate_size uq_ofec_sched_a_aggregate_size_cmte_id_cycle_size; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_a_aggregate_size ADD CONSTRAINT uq_ofec_sched_a_aggregate_size_cmte_id_cycle_size UNIQUE (cmte_id, cycle, size); -- -- Name: dsc_sched_a_aggregate_state uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_a_aggregate_state ADD CONSTRAINT uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state UNIQUE (cmte_id, cycle, state); -- -- Name: dsc_sched_a_aggregate_zip uq_ofec_sched_a_aggregate_zip_cmte_id_cycle_zip; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_a_aggregate_zip ADD CONSTRAINT uq_ofec_sched_a_aggregate_zip_cmte_id_cycle_zip UNIQUE (cmte_id, cycle, zip); -- -- Name: dsc_sched_b_aggregate_purpose uq_ofec_sched_b_aggregate_purpose_cmte_id_cycle_purpose; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_b_aggregate_purpose ADD CONSTRAINT uq_ofec_sched_b_aggregate_purpose_cmte_id_cycle_purpose UNIQUE (cmte_id, cycle, purpose); -- -- Name: dsc_sched_b_aggregate_recipient uq_ofec_sched_b_aggregate_recipient_cmte_id_cycle_recipient; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_b_aggregate_recipient ADD CONSTRAINT uq_ofec_sched_b_aggregate_recipient_cmte_id_cycle_recipient UNIQUE (cmte_id, cycle, recipient_nm); -- -- Name: dsc_sched_a_aggregate_employer uq_sched_a_aggregate_employer_cmte_id_cycle_employer; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_a_aggregate_employer ADD CONSTRAINT uq_sched_a_aggregate_employer_cmte_id_cycle_employer UNIQUE (cmte_id, cycle, employer); -- -- Name: dsc_sched_a_aggregate_occupation uq_sched_a_aggregate_occupation_cmte_id_cycle_occupation; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_a_aggregate_occupation ADD CONSTRAINT uq_sched_a_aggregate_occupation_cmte_id_cycle_occupation UNIQUE (cmte_id, cycle, occupation); -- -- Name: dsc_sched_b_aggregate_recipient_id uq_sched_b_agg_recpnt_id_cmte_id_cycle_recipient_cmte_id; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY dsc_sched_b_aggregate_recipient_id ADD CONSTRAINT uq_sched_b_agg_recpnt_id_cmte_id_cycle_recipient_cmte_id UNIQUE (cmte_id, cycle, recipient_cmte_id); -- -- Name: v_sum_and_det_sum_report v_sum_and_det_sum_report_pkey; Type: CONSTRAINT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY v_sum_and_det_sum_report ADD CONSTRAINT v_sum_and_det_sum_report_pkey PRIMARY KEY (orig_sub_id, form_tp_cd); SET search_path = fecapp, pg_catalog; -- -- Name: cal_category cal_category_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY cal_category ADD CONSTRAINT cal_category_pkey PRIMARY KEY (cal_category_id); -- -- Name: cal_category_subcat cal_category_subcat_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY cal_category_subcat ADD CONSTRAINT cal_category_subcat_pkey PRIMARY KEY (cal_category_id, cal_category_id_subcat); -- -- Name: cal_event_category cal_event_category_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY cal_event_category ADD CONSTRAINT cal_event_category_pkey PRIMARY KEY (cal_event_id, cal_category_id); -- -- Name: cal_event cal_event_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY cal_event ADD CONSTRAINT cal_event_pkey PRIMARY KEY (cal_event_id); -- -- Name: cal_event_status cal_event_status_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY cal_event_status ADD CONSTRAINT cal_event_status_pkey PRIMARY KEY (cal_event_status_id); -- -- Name: trc_election_dates trc_election_dates_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY trc_election_dates ADD CONSTRAINT trc_election_dates_pkey PRIMARY KEY (trc_election_id); -- -- Name: trc_election trc_election_id_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY trc_election ADD CONSTRAINT trc_election_id_pkey PRIMARY KEY (trc_election_id); -- -- Name: trc_election_status trc_election_status_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY trc_election_status ADD CONSTRAINT trc_election_status_pkey PRIMARY KEY (trc_election_status_id); -- -- Name: trc_election_type trc_election_type_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY trc_election_type ADD CONSTRAINT trc_election_type_pkey PRIMARY KEY (trc_election_type_id); -- -- Name: trc_report_due_date trc_report_due_date_id_pkey; Type: CONSTRAINT; Schema: fecapp; Owner: fec -- ALTER TABLE ONLY trc_report_due_date ADD CONSTRAINT trc_report_due_date_id_pkey PRIMARY KEY (trc_report_due_date_id); SET search_path = fecmur, pg_catalog; -- -- Name: af_case af_case_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY af_case ADD CONSTRAINT af_case_pkey PRIMARY KEY (case_id); -- -- Name: case case_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY "case" ADD CONSTRAINT case_pkey PRIMARY KEY (case_id); -- -- Name: case_subject case_subject_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY case_subject ADD CONSTRAINT case_subject_pkey PRIMARY KEY (case_id, subject_id, relatedsubject_id); -- -- Name: commission commission_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY commission ADD CONSTRAINT commission_pkey PRIMARY KEY (commission_id, case_id); -- -- Name: doc_order doc_order_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY doc_order ADD CONSTRAINT doc_order_pkey PRIMARY KEY (doc_order_id); -- -- Name: document_chg document_chg_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY document_chg ADD CONSTRAINT document_chg_pkey PRIMARY KEY (document_id); -- -- Name: document document_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY document ADD CONSTRAINT document_pkey PRIMARY KEY (document_id); -- -- Name: entity entity_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY entity ADD CONSTRAINT entity_pkey PRIMARY KEY (entity_id); -- -- Name: event event_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY event ADD CONSTRAINT event_pkey PRIMARY KEY (event_id); -- -- Name: milind milind_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY milind ADD CONSTRAINT milind_pkey PRIMARY KEY (case_id, case_no); -- -- Name: non_monetary_term non_monetary_term_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY non_monetary_term ADD CONSTRAINT non_monetary_term_pkey PRIMARY KEY (term_id); -- -- Name: players players_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY players ADD CONSTRAINT players_pkey PRIMARY KEY (player_id); -- -- Name: relatedsubject relatedsubject_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY relatedsubject ADD CONSTRAINT relatedsubject_pkey PRIMARY KEY (subject_id, relatedsubject_id); -- -- Name: relationtype relationtype_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY relationtype ADD CONSTRAINT relationtype_pkey PRIMARY KEY (relation_id); -- -- Name: role role_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY role ADD CONSTRAINT role_pkey PRIMARY KEY (role_id); -- -- Name: settlement settlement_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY settlement ADD CONSTRAINT settlement_pkey PRIMARY KEY (settlement_id); -- -- Name: stage_order stage_order_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY stage_order ADD CONSTRAINT stage_order_pkey PRIMARY KEY (stage_order_id); -- -- Name: subject subject_pkey; Type: CONSTRAINT; Schema: fecmur; Owner: fec -- ALTER TABLE ONLY subject ADD CONSTRAINT subject_pkey PRIMARY KEY (subject_id); SET search_path = public, pg_catalog; -- -- Name: checkpointtable_lox checkpointtable_lox_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY checkpointtable_lox ADD CONSTRAINT checkpointtable_lox_pkey PRIMARY KEY (group_name, group_key, log_cmplt_csn, log_cmplt_xids_seq); -- -- Name: checkpointtable checkpointtable_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY checkpointtable ADD CONSTRAINT checkpointtable_pkey PRIMARY KEY (group_name, group_key); -- -- Name: ofec_sched_a_1977_1978 idx_ofec_sched_a_1977_1978_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1977_1978 ADD CONSTRAINT idx_ofec_sched_a_1977_1978_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1979_1980 idx_ofec_sched_a_1979_1980_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1979_1980 ADD CONSTRAINT idx_ofec_sched_a_1979_1980_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1981_1982 idx_ofec_sched_a_1981_1982_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1981_1982 ADD CONSTRAINT idx_ofec_sched_a_1981_1982_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1983_1984 idx_ofec_sched_a_1983_1984_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1983_1984 ADD CONSTRAINT idx_ofec_sched_a_1983_1984_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1985_1986 idx_ofec_sched_a_1985_1986_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1985_1986 ADD CONSTRAINT idx_ofec_sched_a_1985_1986_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1987_1988 idx_ofec_sched_a_1987_1988_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1987_1988 ADD CONSTRAINT idx_ofec_sched_a_1987_1988_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1989_1990 idx_ofec_sched_a_1989_1990_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1989_1990 ADD CONSTRAINT idx_ofec_sched_a_1989_1990_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1991_1992 idx_ofec_sched_a_1991_1992_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1991_1992 ADD CONSTRAINT idx_ofec_sched_a_1991_1992_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1993_1994 idx_ofec_sched_a_1993_1994_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1993_1994 ADD CONSTRAINT idx_ofec_sched_a_1993_1994_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1995_1996 idx_ofec_sched_a_1995_1996_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1995_1996 ADD CONSTRAINT idx_ofec_sched_a_1995_1996_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1997_1998 idx_ofec_sched_a_1997_1998_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1997_1998 ADD CONSTRAINT idx_ofec_sched_a_1997_1998_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_1999_2000 idx_ofec_sched_a_1999_2000_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_1999_2000 ADD CONSTRAINT idx_ofec_sched_a_1999_2000_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2001_2002 idx_ofec_sched_a_2001_2002_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2001_2002 ADD CONSTRAINT idx_ofec_sched_a_2001_2002_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2003_2004 idx_ofec_sched_a_2003_2004_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2003_2004 ADD CONSTRAINT idx_ofec_sched_a_2003_2004_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2005_2006 idx_ofec_sched_a_2005_2006_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2005_2006 ADD CONSTRAINT idx_ofec_sched_a_2005_2006_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2007_2008 idx_ofec_sched_a_2007_2008_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2007_2008 ADD CONSTRAINT idx_ofec_sched_a_2007_2008_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2009_2010 idx_ofec_sched_a_2009_2010_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2009_2010 ADD CONSTRAINT idx_ofec_sched_a_2009_2010_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2011_2012 idx_ofec_sched_a_2011_2012_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2011_2012 ADD CONSTRAINT idx_ofec_sched_a_2011_2012_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2013_2014 idx_ofec_sched_a_2013_2014_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2013_2014 ADD CONSTRAINT idx_ofec_sched_a_2013_2014_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2015_2016 idx_ofec_sched_a_2015_2016_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2015_2016 ADD CONSTRAINT idx_ofec_sched_a_2015_2016_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_2017_2018 idx_ofec_sched_a_2017_2018_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_2017_2018 ADD CONSTRAINT idx_ofec_sched_a_2017_2018_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1977_1978 idx_ofec_sched_b_1977_1978_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1977_1978 ADD CONSTRAINT idx_ofec_sched_b_1977_1978_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1979_1980 idx_ofec_sched_b_1979_1980_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1979_1980 ADD CONSTRAINT idx_ofec_sched_b_1979_1980_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1981_1982 idx_ofec_sched_b_1981_1982_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1981_1982 ADD CONSTRAINT idx_ofec_sched_b_1981_1982_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1983_1984 idx_ofec_sched_b_1983_1984_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1983_1984 ADD CONSTRAINT idx_ofec_sched_b_1983_1984_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1985_1986 idx_ofec_sched_b_1985_1986_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1985_1986 ADD CONSTRAINT idx_ofec_sched_b_1985_1986_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1987_1988 idx_ofec_sched_b_1987_1988_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1987_1988 ADD CONSTRAINT idx_ofec_sched_b_1987_1988_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1989_1990 idx_ofec_sched_b_1989_1990_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1989_1990 ADD CONSTRAINT idx_ofec_sched_b_1989_1990_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1991_1992 idx_ofec_sched_b_1991_1992_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1991_1992 ADD CONSTRAINT idx_ofec_sched_b_1991_1992_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1993_1994 idx_ofec_sched_b_1993_1994_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1993_1994 ADD CONSTRAINT idx_ofec_sched_b_1993_1994_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1995_1996 idx_ofec_sched_b_1995_1996_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1995_1996 ADD CONSTRAINT idx_ofec_sched_b_1995_1996_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1997_1998 idx_ofec_sched_b_1997_1998_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1997_1998 ADD CONSTRAINT idx_ofec_sched_b_1997_1998_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_1999_2000 idx_ofec_sched_b_1999_2000_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_1999_2000 ADD CONSTRAINT idx_ofec_sched_b_1999_2000_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2001_2002 idx_ofec_sched_b_2001_2002_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2001_2002 ADD CONSTRAINT idx_ofec_sched_b_2001_2002_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2003_2004 idx_ofec_sched_b_2003_2004_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2003_2004 ADD CONSTRAINT idx_ofec_sched_b_2003_2004_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2005_2006 idx_ofec_sched_b_2005_2006_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2005_2006 ADD CONSTRAINT idx_ofec_sched_b_2005_2006_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2007_2008 idx_ofec_sched_b_2007_2008_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2007_2008 ADD CONSTRAINT idx_ofec_sched_b_2007_2008_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2009_2010 idx_ofec_sched_b_2009_2010_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2009_2010 ADD CONSTRAINT idx_ofec_sched_b_2009_2010_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2011_2012 idx_ofec_sched_b_2011_2012_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2011_2012 ADD CONSTRAINT idx_ofec_sched_b_2011_2012_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2013_2014 idx_ofec_sched_b_2013_2014_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2013_2014 ADD CONSTRAINT idx_ofec_sched_b_2013_2014_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2015_2016 idx_ofec_sched_b_2015_2016_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2015_2016 ADD CONSTRAINT idx_ofec_sched_b_2015_2016_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_b_2017_2018 idx_ofec_sched_b_2017_2018_sub_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_2017_2018 ADD CONSTRAINT idx_ofec_sched_b_2017_2018_sub_id PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_aggregate_contributor ofec_sched_a_aggregate_contributor_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_contributor ADD CONSTRAINT ofec_sched_a_aggregate_contributor_pkey PRIMARY KEY (idx); -- -- Name: ofec_sched_a_fulltext ofec_sched_a_fulltext_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_fulltext ADD CONSTRAINT ofec_sched_a_fulltext_pkey PRIMARY KEY (sched_a_sk); -- -- Name: ofec_sched_b_fulltext ofec_sched_b_fulltext_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_fulltext ADD CONSTRAINT ofec_sched_b_fulltext_pkey PRIMARY KEY (sched_b_sk); -- -- Name: ofec_sched_e ofec_sched_e_sub_id_pkey; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_e ADD CONSTRAINT ofec_sched_e_sub_id_pkey PRIMARY KEY (sub_id); -- -- Name: ofec_sched_a_aggregate_state uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_state ADD CONSTRAINT uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state UNIQUE (cmte_id, cycle, state); -- -- Name: ofec_sched_a_aggregate_state_old uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state_old; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_state_old ADD CONSTRAINT uq_ofec_sched_a_aggregate_state_cmte_id_cycle_state_old UNIQUE (cmte_id, cycle, state); -- -- Name: ofec_sched_a_aggregate_zip uq_ofec_sched_a_aggregate_zip_cmte_id_cycle_zip; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_zip ADD CONSTRAINT uq_ofec_sched_a_aggregate_zip_cmte_id_cycle_zip UNIQUE (cmte_id, cycle, zip); -- -- Name: ofec_sched_b_aggregate_purpose uq_ofec_sched_b_aggregate_purpose_cmte_id_cycle_purpose; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_aggregate_purpose ADD CONSTRAINT uq_ofec_sched_b_aggregate_purpose_cmte_id_cycle_purpose UNIQUE (cmte_id, cycle, purpose); -- -- Name: ofec_sched_b_aggregate_recipient uq_ofec_sched_b_aggregate_recipient_cmte_id_cycle_recipient; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_aggregate_recipient ADD CONSTRAINT uq_ofec_sched_b_aggregate_recipient_cmte_id_cycle_recipient UNIQUE (cmte_id, cycle, recipient_nm); -- -- Name: ofec_sched_a_aggregate_employer uq_sched_a_aggregate_employer_cmte_id_cycle_employer; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_employer ADD CONSTRAINT uq_sched_a_aggregate_employer_cmte_id_cycle_employer UNIQUE (cmte_id, cycle, employer); -- -- Name: ofec_sched_a_aggregate_occupation uq_sched_a_aggregate_occupation_cmte_id_cycle_occupation; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_a_aggregate_occupation ADD CONSTRAINT uq_sched_a_aggregate_occupation_cmte_id_cycle_occupation UNIQUE (cmte_id, cycle, occupation); -- -- Name: ofec_sched_b_aggregate_recipient_id uq_sched_b_agg_recpnt_id_cmte_id_cycle_recipient_cmte_id; Type: CONSTRAINT; Schema: public; Owner: fec -- ALTER TABLE ONLY ofec_sched_b_aggregate_recipient_id ADD CONSTRAINT uq_sched_b_agg_recpnt_id_cmte_id_cycle_recipient_cmte_id UNIQUE (cmte_id, cycle, recipient_cmte_id); SET search_path = rad_pri_user, pg_catalog; -- -- Name: rad_anlyst rad_anlyst_pkey; Type: CONSTRAINT; Schema: rad_pri_user; Owner: fec -- ALTER TABLE ONLY rad_anlyst ADD CONSTRAINT rad_anlyst_pkey PRIMARY KEY (anlyst_id); -- -- Name: rad_assgn rad_assgn_pkey; Type: CONSTRAINT; Schema: rad_pri_user; Owner: fec -- ALTER TABLE ONLY rad_assgn ADD CONSTRAINT rad_assgn_pkey PRIMARY KEY (assgn_id); -- -- Name: rad_lkp_anlyst_title rad_lkp_anlyst_title_pkey; Type: CONSTRAINT; Schema: rad_pri_user; Owner: fec -- ALTER TABLE ONLY rad_lkp_anlyst_title ADD CONSTRAINT rad_lkp_anlyst_title_pkey PRIMARY KEY (anlyst_title_seq); SET search_path = real_efile, pg_catalog; -- -- Name: f105 real_efile_f105_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f105 ADD CONSTRAINT real_efile_f105_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f10 real_efile_f10_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f10 ADD CONSTRAINT real_efile_f10_pkey PRIMARY KEY (repid); -- -- Name: f132 real_efile_f132_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f132 ADD CONSTRAINT real_efile_f132_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f133 real_efile_f133_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f133 ADD CONSTRAINT real_efile_f133_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f13 real_efile_f13_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f13 ADD CONSTRAINT real_efile_f13_pkey PRIMARY KEY (repid); -- -- Name: f1 real_efile_f1_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f1 ADD CONSTRAINT real_efile_f1_pkey PRIMARY KEY (repid); -- -- Name: f1m real_efile_f1m_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f1m ADD CONSTRAINT real_efile_f1m_pkey PRIMARY KEY (repid); -- -- Name: f24 real_efile_f24_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f24 ADD CONSTRAINT real_efile_f24_pkey PRIMARY KEY (repid); -- -- Name: f2 real_efile_f2_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f2 ADD CONSTRAINT real_efile_f2_pkey PRIMARY KEY (repid); -- -- Name: f3 real_efile_f3_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3 ADD CONSTRAINT real_efile_f3_pkey PRIMARY KEY (repid); -- -- Name: f3l real_efile_f3l_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3l ADD CONSTRAINT real_efile_f3l_pkey PRIMARY KEY (repid); -- -- Name: f3p real_efile_f3p_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3p ADD CONSTRAINT real_efile_f3p_pkey PRIMARY KEY (repid); -- -- Name: f3ps real_efile_f3ps_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3ps ADD CONSTRAINT real_efile_f3ps_pkey PRIMARY KEY (repid); -- -- Name: f3s real_efile_f3s_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3s ADD CONSTRAINT real_efile_f3s_pkey PRIMARY KEY (repid); -- -- Name: f3x real_efile_f3x_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3x ADD CONSTRAINT real_efile_f3x_pkey PRIMARY KEY (repid); -- -- Name: f3z real_efile_f3z_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f3z ADD CONSTRAINT real_efile_f3z_pkey PRIMARY KEY (repid, rel_lineno); -- -- Name: f4 real_efile_f4_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f4 ADD CONSTRAINT real_efile_f4_pkey PRIMARY KEY (repid); -- -- Name: f56 real_efile_f56_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f56 ADD CONSTRAINT real_efile_f56_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f57 real_efile_f57_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f57 ADD CONSTRAINT real_efile_f57_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f5 real_efile_f5_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f5 ADD CONSTRAINT real_efile_f5_pkey PRIMARY KEY (repid); -- -- Name: f65 real_efile_f65_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f65 ADD CONSTRAINT real_efile_f65_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f6 real_efile_f6_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f6 ADD CONSTRAINT real_efile_f6_pkey PRIMARY KEY (repid); -- -- Name: f76 real_efile_f76_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f76 ADD CONSTRAINT real_efile_f76_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f7 real_efile_f7_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f7 ADD CONSTRAINT real_efile_f7_pkey PRIMARY KEY (repid); -- -- Name: f8 real_efile_f8_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f8 ADD CONSTRAINT real_efile_f8_pkey PRIMARY KEY (repid); -- -- Name: f8ii real_efile_f8ii_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f8ii ADD CONSTRAINT real_efile_f8ii_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f8iii real_efile_f8iii_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f8iii ADD CONSTRAINT real_efile_f8iii_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f91 real_efile_f91_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f91 ADD CONSTRAINT real_efile_f91_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f92 real_efile_f92_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f92 ADD CONSTRAINT real_efile_f92_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f93 real_efile_f93_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f93 ADD CONSTRAINT real_efile_f93_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f94 real_efile_f94_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f94 ADD CONSTRAINT real_efile_f94_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f99 real_efile_f99_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f99 ADD CONSTRAINT real_efile_f99_pkey PRIMARY KEY (repid); -- -- Name: f9 real_efile_f9_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY f9 ADD CONSTRAINT real_efile_f9_pkey PRIMARY KEY (repid); -- -- Name: guarantors real_efile_guarantors_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY guarantors ADD CONSTRAINT real_efile_guarantors_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h1 real_efile_h1_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h1 ADD CONSTRAINT real_efile_h1_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h2 real_efile_h2_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h2 ADD CONSTRAINT real_efile_h2_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h3 real_efile_h3_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h3 ADD CONSTRAINT real_efile_h3_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h4_2 real_efile_h4_2_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h4_2 ADD CONSTRAINT real_efile_h4_2_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h5 real_efile_h5_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h5 ADD CONSTRAINT real_efile_h5_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h6 real_efile_h6_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY h6 ADD CONSTRAINT real_efile_h6_pkey PRIMARY KEY (repid, tran_id); -- -- Name: reps real_efile_reps_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY reps ADD CONSTRAINT real_efile_reps_pkey PRIMARY KEY (repid); -- -- Name: sa7 real_efile_sa7_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sa7 ADD CONSTRAINT real_efile_sa7_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sb4 real_efile_sb4_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sb4 ADD CONSTRAINT real_efile_sb4_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sc1 real_efile_sc1_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sc1 ADD CONSTRAINT real_efile_sc1_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sc real_efile_sc_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sc ADD CONSTRAINT real_efile_sc_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sd real_efile_sd_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sd ADD CONSTRAINT real_efile_sd_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sf real_efile_sf_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sf ADD CONSTRAINT real_efile_sf_pkey PRIMARY KEY (repid, tran_id); -- -- Name: si real_efile_si_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY si ADD CONSTRAINT real_efile_si_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sl real_efile_sl_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sl ADD CONSTRAINT real_efile_sl_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sl_sum real_efile_sl_sum_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY sl_sum ADD CONSTRAINT real_efile_sl_sum_pkey PRIMARY KEY (repid, lineno, iid); -- -- Name: summary real_efile_summary_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY summary ADD CONSTRAINT real_efile_summary_pkey PRIMARY KEY (repid, lineno); -- -- Name: supsum real_efile_supsum_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY supsum ADD CONSTRAINT real_efile_supsum_pkey PRIMARY KEY (repid, lineno); -- -- Name: text real_efile_text_pkey; Type: CONSTRAINT; Schema: real_efile; Owner: fec -- ALTER TABLE ONLY text ADD CONSTRAINT real_efile_text_pkey PRIMARY KEY (repid, tranid); SET search_path = real_pfile, pg_catalog; -- -- Name: f105 real_pfile_f105_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f105 ADD CONSTRAINT real_pfile_f105_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f10 real_pfile_f10_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f10 ADD CONSTRAINT real_pfile_f10_pkey PRIMARY KEY (repid); -- -- Name: f11 real_pfile_f11_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f11 ADD CONSTRAINT real_pfile_f11_pkey PRIMARY KEY (repid); -- -- Name: f12 real_pfile_f12_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f12 ADD CONSTRAINT real_pfile_f12_pkey PRIMARY KEY (repid); -- -- Name: f132 real_pfile_f132_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f132 ADD CONSTRAINT real_pfile_f132_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f133 real_pfile_f133_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f133 ADD CONSTRAINT real_pfile_f133_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f13 real_pfile_f13_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f13 ADD CONSTRAINT real_pfile_f13_pkey PRIMARY KEY (repid); -- -- Name: f1 real_pfile_f1_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f1 ADD CONSTRAINT real_pfile_f1_pkey PRIMARY KEY (repid); -- -- Name: f1m real_pfile_f1m_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f1m ADD CONSTRAINT real_pfile_f1m_pkey PRIMARY KEY (repid); -- -- Name: f24 real_pfile_f24_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f24 ADD CONSTRAINT real_pfile_f24_pkey PRIMARY KEY (repid); -- -- Name: f2 real_pfile_f2_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f2 ADD CONSTRAINT real_pfile_f2_pkey PRIMARY KEY (repid); -- -- Name: f3 real_pfile_f3_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3 ADD CONSTRAINT real_pfile_f3_pkey PRIMARY KEY (repid); -- -- Name: f3l real_pfile_f3l_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3l ADD CONSTRAINT real_pfile_f3l_pkey PRIMARY KEY (repid); -- -- Name: f3p real_pfile_f3p_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3p ADD CONSTRAINT real_pfile_f3p_pkey PRIMARY KEY (repid); -- -- Name: f3ps real_pfile_f3ps_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3ps ADD CONSTRAINT real_pfile_f3ps_pkey PRIMARY KEY (repid); -- -- Name: f3s real_pfile_f3s_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3s ADD CONSTRAINT real_pfile_f3s_pkey PRIMARY KEY (repid); -- -- Name: f3x real_pfile_f3x_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3x ADD CONSTRAINT real_pfile_f3x_pkey PRIMARY KEY (repid); -- -- Name: f3z real_pfile_f3z_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f3z ADD CONSTRAINT real_pfile_f3z_pkey PRIMARY KEY (repid); -- -- Name: f4 real_pfile_f4_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f4 ADD CONSTRAINT real_pfile_f4_pkey PRIMARY KEY (repid); -- -- Name: f56 real_pfile_f56_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f56 ADD CONSTRAINT real_pfile_f56_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f57 real_pfile_f57_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f57 ADD CONSTRAINT real_pfile_f57_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f5 real_pfile_f5_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f5 ADD CONSTRAINT real_pfile_f5_pkey PRIMARY KEY (repid); -- -- Name: f65 real_pfile_f65_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f65 ADD CONSTRAINT real_pfile_f65_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f6 real_pfile_f6_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f6 ADD CONSTRAINT real_pfile_f6_pkey PRIMARY KEY (repid); -- -- Name: f76 real_pfile_f76_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f76 ADD CONSTRAINT real_pfile_f76_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f7 real_pfile_f7_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f7 ADD CONSTRAINT real_pfile_f7_pkey PRIMARY KEY (repid); -- -- Name: f8 real_pfile_f8_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f8 ADD CONSTRAINT real_pfile_f8_pkey PRIMARY KEY (repid); -- -- Name: f8ii real_pfile_f8ii_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f8ii ADD CONSTRAINT real_pfile_f8ii_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f8iii real_pfile_f8iii_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f8iii ADD CONSTRAINT real_pfile_f8iii_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f91 real_pfile_f91_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f91 ADD CONSTRAINT real_pfile_f91_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f92 real_pfile_f92_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f92 ADD CONSTRAINT real_pfile_f92_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f93 real_pfile_f93_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f93 ADD CONSTRAINT real_pfile_f93_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f94 real_pfile_f94_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f94 ADD CONSTRAINT real_pfile_f94_pkey PRIMARY KEY (repid, tran_id); -- -- Name: f9 real_pfile_f9_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY f9 ADD CONSTRAINT real_pfile_f9_pkey PRIMARY KEY (repid); -- -- Name: h1 real_pfile_h1_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h1 ADD CONSTRAINT real_pfile_h1_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h2 real_pfile_h2_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h2 ADD CONSTRAINT real_pfile_h2_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h3 real_pfile_h3_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h3 ADD CONSTRAINT real_pfile_h3_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h4 real_pfile_h4_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h4 ADD CONSTRAINT real_pfile_h4_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h5 real_pfile_h5_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h5 ADD CONSTRAINT real_pfile_h5_pkey PRIMARY KEY (repid, tran_id); -- -- Name: h6 real_pfile_h6_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY h6 ADD CONSTRAINT real_pfile_h6_pkey PRIMARY KEY (repid, tran_id); -- -- Name: reps real_pfile_reps_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY reps ADD CONSTRAINT real_pfile_reps_pkey PRIMARY KEY (repid); -- -- Name: sa real_pfile_sa_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sa ADD CONSTRAINT real_pfile_sa_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sb real_pfile_sb_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sb ADD CONSTRAINT real_pfile_sb_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sc1 real_pfile_sc1_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sc1 ADD CONSTRAINT real_pfile_sc1_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sc2 real_pfile_sc2_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sc2 ADD CONSTRAINT real_pfile_sc2_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sc real_pfile_sc_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sc ADD CONSTRAINT real_pfile_sc_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sd real_pfile_sd_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sd ADD CONSTRAINT real_pfile_sd_pkey PRIMARY KEY (repid, tran_id); -- -- Name: se real_pfile_se_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY se ADD CONSTRAINT real_pfile_se_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sf real_pfile_sf_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sf ADD CONSTRAINT real_pfile_sf_pkey PRIMARY KEY (repid, tran_id); -- -- Name: sl real_pfile_sl_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY sl ADD CONSTRAINT real_pfile_sl_pkey PRIMARY KEY (repid, tran_id); -- -- Name: summary_sup real_pfile_summary_sup_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY summary_sup ADD CONSTRAINT real_pfile_summary_sup_pkey PRIMARY KEY (repid, lineno); -- -- Name: supsum real_pfile_supsum_pkey; Type: CONSTRAINT; Schema: real_pfile; Owner: fec -- ALTER TABLE ONLY supsum ADD CONSTRAINT real_pfile_supsum_pkey PRIMARY KEY (repid, lineno); SET search_path = rohan, pg_catalog; -- -- Name: rj_row_count rj_row_count_pk; Type: CONSTRAINT; Schema: rohan; Owner: fec -- ALTER TABLE ONLY rj_row_count ADD CONSTRAINT rj_row_count_pk PRIMARY KEY (row_id); -- -- Name: rj_user rj_user_pkey; Type: CONSTRAINT; Schema: rohan; Owner: fec -- ALTER TABLE ONLY rj_user ADD CONSTRAINT rj_user_pkey PRIMARY KEY (uid); -- -- Name: rj_user rj_user_username_key; Type: CONSTRAINT; Schema: rohan; Owner: fec -- ALTER TABLE ONLY rj_user ADD CONSTRAINT rj_user_username_key UNIQUE (username); SET search_path = staging, pg_catalog; -- -- Name: operations_log operations_log_pkey; Type: CONSTRAINT; Schema: staging; Owner: fec -- ALTER TABLE ONLY operations_log ADD CONSTRAINT operations_log_pkey PRIMARY KEY (sub_id); -- -- Name: ref_contribution_limits ref_contribution_limits_pkey; Type: CONSTRAINT; Schema: staging; Owner: fec -- ALTER TABLE ONLY ref_contribution_limits ADD CONSTRAINT ref_contribution_limits_pkey PRIMARY KEY (contrib_limit_id);
the_stack
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default'); -- TABLE: entries CREATE TABLE IF NOT EXISTS `bx_posts_posts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `author` int(10) unsigned NOT NULL, `added` int(11) NOT NULL, `changed` int(11) NOT NULL, `thumb` int(11) NOT NULL, `title` varchar(255) NOT NULL, `cat` int(11) NOT NULL, `text` text NOT NULL, `views` int(11) NOT NULL default '0', `rate` float NOT NULL default '0', `votes` int(11) NOT NULL default '0', `favorites` int(11) NOT NULL default '0', `comments` int(11) NOT NULL default '0', `reports` int(11) NOT NULL default '0', `featured` int(11) NOT NULL default '0', `allow_view_to` int(11) NOT NULL DEFAULT '3', `status` enum('active','hidden') NOT NULL DEFAULT 'active', `status_admin` enum('active','hidden') NOT NULL DEFAULT 'active', PRIMARY KEY (`id`), FULLTEXT KEY `title_text` (`title`,`text`) ); -- TABLE: storages & transcoders CREATE TABLE IF NOT EXISTS `bx_posts_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `profile_id` int(10) unsigned NOT NULL, `remote_id` varchar(128) NOT NULL, `path` varchar(255) NOT NULL, `file_name` varchar(255) NOT NULL, `mime_type` varchar(128) NOT NULL, `ext` varchar(32) NOT NULL, `size` int(11) NOT NULL, `added` int(11) NOT NULL, `modified` int(11) NOT NULL, `private` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `remote_id` (`remote_id`) ); CREATE TABLE IF NOT EXISTS `bx_posts_photos_resized` ( `id` int(11) NOT NULL AUTO_INCREMENT, `profile_id` int(10) unsigned NOT NULL, `remote_id` varchar(128) NOT NULL, `path` varchar(255) NOT NULL, `file_name` varchar(255) NOT NULL, `mime_type` varchar(128) NOT NULL, `ext` varchar(32) NOT NULL, `size` int(11) NOT NULL, `added` int(11) NOT NULL, `modified` int(11) NOT NULL, `private` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `remote_id` (`remote_id`) ); -- TABLE: comments CREATE TABLE IF NOT EXISTS `bx_posts_cmts` ( `cmt_id` int(11) NOT NULL AUTO_INCREMENT, `cmt_parent_id` int(11) NOT NULL DEFAULT '0', `cmt_vparent_id` int(11) NOT NULL DEFAULT '0', `cmt_object_id` int(11) NOT NULL DEFAULT '0', `cmt_author_id` int(10) unsigned NOT NULL DEFAULT '0', `cmt_level` int(11) NOT NULL DEFAULT '0', `cmt_text` text NOT NULL, `cmt_mood` tinyint(4) NOT NULL DEFAULT '0', `cmt_rate` int(11) NOT NULL DEFAULT '0', `cmt_rate_count` int(11) NOT NULL DEFAULT '0', `cmt_time` int(11) unsigned NOT NULL DEFAULT '0', `cmt_replies` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`cmt_id`), KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`), FULLTEXT KEY `search_fields` (`cmt_text`) ); -- TABLE: votes CREATE TABLE IF NOT EXISTS `bx_posts_votes` ( `object_id` int(11) NOT NULL default '0', `count` int(11) NOT NULL default '0', `sum` int(11) NOT NULL default '0', UNIQUE KEY `object_id` (`object_id`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `bx_posts_votes_track` ( `id` int(11) NOT NULL AUTO_INCREMENT, `object_id` int(11) NOT NULL default '0', `author_id` int(11) NOT NULL default '0', `author_nip` int(11) unsigned NOT NULL default '0', `value` tinyint(4) NOT NULL default '0', `date` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `vote` (`object_id`, `author_nip`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8; -- TABLE: views CREATE TABLE `bx_posts_views_track` ( `object_id` int(11) NOT NULL default '0', `viewer_id` int(11) NOT NULL default '0', `viewer_nip` int(11) unsigned NOT NULL default '0', `date` int(11) NOT NULL default '0', KEY `id` (`object_id`,`viewer_id`,`viewer_nip`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- TABLE: metas CREATE TABLE `bx_posts_meta_keywords` ( `object_id` int(10) unsigned NOT NULL, `keyword` varchar(255) NOT NULL, KEY `object_id` (`object_id`), KEY `keyword` (`keyword`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `bx_posts_meta_locations` ( `object_id` int(10) unsigned NOT NULL, `lat` double NOT NULL, `lng` double NOT NULL, `country` varchar(2) NOT NULL, `state` varchar(255) NOT NULL, `city` varchar(255) NOT NULL, `zip` varchar(255) NOT NULL, `street` varchar(255) NOT NULL, `street_number` varchar(255) NOT NULL, PRIMARY KEY (`object_id`), KEY `country_state_city` (`country`,`state`(8),`city`(8)) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- TABLE: reports CREATE TABLE IF NOT EXISTS `bx_posts_reports` ( `object_id` int(11) NOT NULL default '0', `count` int(11) NOT NULL default '0', UNIQUE KEY `object_id` (`object_id`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `bx_posts_reports_track` ( `id` int(11) NOT NULL AUTO_INCREMENT, `object_id` int(11) NOT NULL default '0', `author_id` int(11) NOT NULL default '0', `author_nip` int(11) unsigned NOT NULL default '0', `type` varchar(32) NOT NULL default '', `text` text NOT NULL default '', `date` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `report` (`object_id`, `author_nip`) ) ENGINE=MYISAM DEFAULT CHARSET=utf8; -- TABLE: favorites CREATE TABLE `bx_posts_favorites_track` ( `object_id` int(11) NOT NULL default '0', `author_id` int(11) NOT NULL default '0', `date` int(11) NOT NULL default '0', KEY `id` (`object_id`,`author_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- STORAGES & TRANSCODERS INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES ('bx_posts_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_posts_files', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0), ('bx_posts_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_posts_photos_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0); INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`) VALUES ('bx_posts_preview', 'bx_posts_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_posts_files";}', 'no', '1', '2592000', '0'), ('bx_posts_gallery', 'bx_posts_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_posts_files";}', 'no', '1', '2592000', '0'), ('bx_posts_cover', 'bx_posts_photos_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_posts_files";}', 'no', '1', '2592000', '0'); INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES ('bx_posts_preview', 'Resize', 'a:3:{s:1:"w";s:3:"300";s:1:"h";s:3:"200";s:11:"crop_resize";s:1:"1";}', '0'), ('bx_posts_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'), ('bx_posts_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'); -- FORMS INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES ('bx_posts', 'bx_posts', '_bx_posts_form_entry', '', 'a:1:{s:7:\"enctype\";s:19:\"multipart/form-data\";}', 'bx_posts_posts', 'id', '', '', 'do_submit', '', 0, 1, 'BxPostsFormEntry', 'modules/boonex/posts/classes/BxPostsFormEntry.php'); INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES ('bx_posts', 'bx_posts_entry_add', 'bx_posts', 0, '_bx_posts_form_entry_display_add'), ('bx_posts', 'bx_posts_entry_delete', 'bx_posts', 0, '_bx_posts_form_entry_display_delete'), ('bx_posts', 'bx_posts_entry_edit', 'bx_posts', 0, '_bx_posts_form_entry_display_edit'), ('bx_posts', 'bx_posts_entry_view', 'bx_posts', 1, '_bx_posts_form_entry_display_view'); INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES ('bx_posts', 'bx_posts', 'allow_view_to', '', '', 0, 'custom', '_bx_posts_form_entry_input_sys_allow_view_to', '_bx_posts_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_posts_form_entry_input_sys_delete_confirm', '_bx_posts_form_entry_input_delete_confirm', '_bx_posts_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_posts_form_entry_input_delete_confirm_error', '', '', 1, 0), ('bx_posts', 'bx_posts', 'do_publish', '_bx_posts_form_entry_input_do_publish', '', 0, 'submit', '_bx_posts_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'do_submit', '_bx_posts_form_entry_input_do_submit', '', 0, 'submit', '_bx_posts_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'location', '', '', 0, 'location', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'pictures', 'a:1:{i:0;s:14:"bx_posts_html5";}', 'a:2:{s:15:"bx_posts_simple";s:26:"_sys_uploader_simple_title";s:14:"bx_posts_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_posts_form_entry_input_sys_pictures', '_bx_posts_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'text', '', '', 0, 'textarea', '_bx_posts_form_entry_input_sys_text', '_bx_posts_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_posts_form_entry_input_text_err', 'XssHtml', '', 1, 0), ('bx_posts', 'bx_posts', 'title', '', '', 0, 'text', '_bx_posts_form_entry_input_sys_title', '_bx_posts_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_posts_form_entry_input_title_err', 'Xss', '', 1, 0), ('bx_posts', 'bx_posts', 'cat', '', '#!bx_posts_cats', 0, 'select', '_bx_posts_form_entry_input_sys_cat', '_bx_posts_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_posts_form_entry_input_cat_err', 'Xss', '', 1, 0), ('bx_posts', 'bx_posts', 'added', '', '', 0, 'datetime', '_bx_posts_form_entry_input_sys_date_added', '_bx_posts_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0), ('bx_posts', 'bx_posts', 'changed', '', '', 0, 'datetime', '_bx_posts_form_entry_input_sys_date_changed', '_bx_posts_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0); INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES ('bx_posts_entry_add', 'delete_confirm', 2147483647, 0, 1), ('bx_posts_entry_add', 'title', 2147483647, 1, 2), ('bx_posts_entry_add', 'cat', 2147483647, 1, 3), ('bx_posts_entry_add', 'text', 2147483647, 1, 4), ('bx_posts_entry_add', 'pictures', 2147483647, 1, 5), ('bx_posts_entry_add', 'allow_view_to', 2147483647, 1, 6), ('bx_posts_entry_add', 'location', 2147483647, 1, 7), ('bx_posts_entry_add', 'do_submit', 2147483647, 0, 8), ('bx_posts_entry_add', 'do_publish', 2147483647, 1, 9), ('bx_posts_entry_delete', 'location', 2147483647, 0, 0), ('bx_posts_entry_delete', 'cat', 2147483647, 0, 0), ('bx_posts_entry_delete', 'pictures', 2147483647, 0, 0), ('bx_posts_entry_delete', 'text', 2147483647, 0, 0), ('bx_posts_entry_delete', 'do_publish', 2147483647, 0, 0), ('bx_posts_entry_delete', 'title', 2147483647, 0, 0), ('bx_posts_entry_delete', 'allow_view_to', 2147483647, 0, 0), ('bx_posts_entry_delete', 'delete_confirm', 2147483647, 1, 1), ('bx_posts_entry_delete', 'do_submit', 2147483647, 1, 2), ('bx_posts_entry_edit', 'do_publish', 2147483647, 0, 1), ('bx_posts_entry_edit', 'delete_confirm', 2147483647, 0, 2), ('bx_posts_entry_edit', 'title', 2147483647, 1, 3), ('bx_posts_entry_edit', 'cat', 2147483647, 1, 4), ('bx_posts_entry_edit', 'text', 2147483647, 1, 5), ('bx_posts_entry_edit', 'pictures', 2147483647, 1, 6), ('bx_posts_entry_edit', 'allow_view_to', 2147483647, 1, 7), ('bx_posts_entry_edit', 'location', 2147483647, 1, 8), ('bx_posts_entry_edit', 'do_submit', 2147483647, 1, 9), ('bx_posts_entry_view', 'location', 2147483647, 0, 0), ('bx_posts_entry_view', 'pictures', 2147483647, 0, 0), ('bx_posts_entry_view', 'delete_confirm', 2147483647, 0, 0), ('bx_posts_entry_view', 'text', 2147483647, 0, 0), ('bx_posts_entry_view', 'do_publish', 2147483647, 0, 0), ('bx_posts_entry_view', 'title', 2147483647, 0, 0), ('bx_posts_entry_view', 'do_submit', 2147483647, 0, 0), ('bx_posts_entry_view', 'allow_view_to', 2147483647, 0, 0), ('bx_posts_entry_view', 'cat', 2147483647, 1, 1), ('bx_posts_entry_view', 'added', 2147483647, 1, 2), ('bx_posts_entry_view', 'changed', 2147483647, 1, 3); -- PRE-VALUES INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES ('bx_posts_cats', '_bx_posts_pre_lists_cats', 'bx_posts', '0'); INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES ('bx_posts_cats', '', 0, '_sys_please_select', ''), ('bx_posts_cats', '1', 1, '_bx_posts_cat_Animals_Pets', ''), ('bx_posts_cats', '2', 2, '_bx_posts_cat_Architecture', ''), ('bx_posts_cats', '3', 3, '_bx_posts_cat_Art', ''), ('bx_posts_cats', '4', 4, '_bx_posts_cat_Cars_Motorcycles', ''), ('bx_posts_cats', '5', 5, '_bx_posts_cat_Celebrities', ''), ('bx_posts_cats', '6', 6, '_bx_posts_cat_Design', ''), ('bx_posts_cats', '7', 7, '_bx_posts_cat_DIY_Crafts', ''), ('bx_posts_cats', '8', 8, '_bx_posts_cat_Education', ''), ('bx_posts_cats', '9', 9, '_bx_posts_cat_Film_Music_Books', ''), ('bx_posts_cats', '10', 10, '_bx_posts_cat_Food_Drink', ''), ('bx_posts_cats', '11', 11, '_bx_posts_cat_Gardening', ''), ('bx_posts_cats', '12', 12, '_bx_posts_cat_Geek', ''), ('bx_posts_cats', '13', 13, '_bx_posts_cat_Hair_Beauty', ''), ('bx_posts_cats', '14', 14, '_bx_posts_cat_Health_Fitness', ''), ('bx_posts_cats', '15', 15, '_bx_posts_cat_History', ''), ('bx_posts_cats', '16', 16, '_bx_posts_cat_Holidays_Events', ''), ('bx_posts_cats', '17', 17, '_bx_posts_cat_Home_Decor', ''), ('bx_posts_cats', '18', 18, '_bx_posts_cat_Humor', ''), ('bx_posts_cats', '19', 19, '_bx_posts_cat_Illustrations_Posters', ''), ('bx_posts_cats', '20', 20, '_bx_posts_cat_Kids_Parenting', ''), ('bx_posts_cats', '21', 21, '_bx_posts_cat_Mens_Fashion', ''), ('bx_posts_cats', '22', 22, '_bx_posts_cat_Outdoors', ''), ('bx_posts_cats', '23', 23, '_bx_posts_cat_Photography', ''), ('bx_posts_cats', '24', 24, '_bx_posts_cat_Products', ''), ('bx_posts_cats', '25', 25, '_bx_posts_cat_Quotes', ''), ('bx_posts_cats', '26', 26, '_bx_posts_cat_Science_Nature', ''), ('bx_posts_cats', '27', 27, '_bx_posts_cat_Sports', ''), ('bx_posts_cats', '28', 28, '_bx_posts_cat_Tattoos', ''), ('bx_posts_cats', '29', 29, '_bx_posts_cat_Technology', ''), ('bx_posts_cats', '30', 30, '_bx_posts_cat_Travel', ''), ('bx_posts_cats', '31', 31, '_bx_posts_cat_Weddings', ''), ('bx_posts_cats', '32', 32, '_bx_posts_cat_Womens_Fashion', ''); -- COMMENTS INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Nl2br`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES ('bx_posts', 'bx_posts', 'bx_posts_cmts', 1, 5000, 1000, 1, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-post&id={object_id}', '', 'bx_posts_posts', 'id', 'author', 'title', 'comments', '', ''); -- VOTES INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES ('bx_posts', 'bx_posts_votes', 'bx_posts_votes_track', '604800', '1', '1', '0', '1', 'bx_posts_posts', 'id', 'author', 'rate', 'votes', '', ''); -- REPORTS INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES ('bx_posts', 'bx_posts_reports', 'bx_posts_reports_track', '1', 'page.php?i=view-post&id={object_id}', 'bx_posts_posts', 'id', 'author', 'reports', '', ''); -- VIEWS INSERT INTO `sys_objects_view` (`name`, `table_track`, `period`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES ('bx_posts', 'bx_posts_views_track', '86400', '1', 'bx_posts_posts', 'id', 'author', 'views', '', ''); -- FAFORITES INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `is_on`, `is_undo`, `is_public`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES ('bx_posts', 'bx_posts_favorites_track', '1', '1', '1', 'page.php?i=view-post&id={object_id}', 'bx_posts_posts', 'id', 'author', 'favorites', '', ''); -- FEATURED INSERT INTO `sys_objects_feature` (`name`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES ('bx_posts', '1', '1', 'page.php?i=view-post&id={object_id}', 'bx_posts_posts', 'id', 'author', 'featured', '', ''); -- CONTENT INFO INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES ('bx_posts', '_bx_posts', 'bx_posts', 'added', 'edited', 'deleted', '', ''), ('bx_posts_cmts', '_bx_posts_cmts', 'bx_posts', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', ''); INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES ('bx_posts', 'bx_posts_administration', 'id', '', ''), ('bx_posts', 'bx_posts_common', 'id', '', ''); -- SEARCH EXTENDED INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES ('bx_posts', 'bx_posts', 'bx_posts', '_bx_posts_search_extended', 1, '', ''), ('bx_posts_cmts', 'bx_posts_cmts', 'bx_posts', '_bx_posts_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', ''); -- STUDIO: page & widget INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES (3, 'bx_posts', '_bx_posts', '_bx_posts', 'bx_posts@modules/boonex/posts/|std-icon.svg'); SET @iPageId = LAST_INSERT_ID(); SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home'); SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId); INSERT INTO `sys_std_widgets` (`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES (@iPageId, 'bx_posts', '{url_studio}module.php?name=bx_posts', '', 'bx_posts@modules/boonex/posts/|std-icon.svg', '_bx_posts', '', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}'); INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES (@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));
the_stack
-- 2017-06-04T18:53:42.435 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=15,Updated=TO_TIMESTAMP('2017-06-04 18:53:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540295 ; -- 2017-06-04T18:54:23.579 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,189,540260,TO_TIMESTAMP('2017-06-04 18:54:23','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-04 18:54:23','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit') ; -- 2017-06-04T18:54:23.580 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540260 AND NOT EXISTS (SELECT * FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-06-04T18:54:28.983 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540353,540260,TO_TIMESTAMP('2017-06-04 18:54:28','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-04 18:54:28','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T18:54:38.286 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540353,540604,TO_TIMESTAMP('2017-06-04 18:54:38','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,TO_TIMESTAMP('2017-06-04 18:54:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T18:54:56.740 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,6134,0,189,540604,545419,TO_TIMESTAMP('2017-06-04 18:54:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Anlage Gruppe',10,0,0,TO_TIMESTAMP('2017-06-04 18:54:56','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T18:55:12.788 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 18:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545419 ; -- 2017-06-04T18:55:22.992 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=543228 ; -- 2017-06-04T18:55:26.570 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540287 ; -- 2017-06-04T18:55:34.523 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 18:55:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543275 ; -- 2017-06-04T18:56:11.178 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 18:56:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543284 ; -- 2017-06-04T18:56:15.343 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 18:56:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543285 ; -- 2017-06-04T18:56:50.848 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-06-04 18:56:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543285 ; -- 2017-06-04T18:58:13.872 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 18:58:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543287 ; -- 2017-06-04T19:00:37.266 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540170,540605,TO_TIMESTAMP('2017-06-04 19:00:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','unit type',15,TO_TIMESTAMP('2017-06-04 19:00:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:01:03.899 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,58028,0,133,540605,545420,TO_TIMESTAMP('2017-06-04 19:01:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Einheit Typ',10,0,0,TO_TIMESTAMP('2017-06-04 19:01:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:01:14.537 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542950 ; -- 2017-06-04T19:01:21.606 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 19:01:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542951 ; -- 2017-06-04T19:01:26.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 19:01:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542952 ; -- 2017-06-04T19:01:51.285 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 19:01:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542942 ; -- 2017-06-04T19:01:57.021 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 19:01:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542943 ; -- 2017-06-04T19:03:42.171 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,462,540261,TO_TIMESTAMP('2017-06-04 19:03:42','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-04 19:03:42','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit') ; -- 2017-06-04T19:03:42.173 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section_Trl (AD_Language,AD_UI_Section_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_UI_Section_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_UI_Section t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_UI_Section_ID=540261 AND NOT EXISTS (SELECT * FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2017-06-04T19:04:10.297 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Column (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,0,540354,540261,TO_TIMESTAMP('2017-06-04 19:04:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-04 19:04:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:04:27.684 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET AD_UI_Column_ID=540354, SeqNo=10,Updated=TO_TIMESTAMP('2017-06-04 19:04:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540204 ; -- 2017-06-04T19:04:42.853 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 19:04:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542546 ; -- 2017-06-04T19:05:02.364 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 19:05:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542558 ; -- 2017-06-04T19:05:06.350 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-04 19:05:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542559 ; -- 2017-06-04T19:05:27.387 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540142,540606,TO_TIMESTAMP('2017-06-04 19:05:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','value',15,TO_TIMESTAMP('2017-06-04 19:05:27','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:05:53.082 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy,WidgetSize) VALUES (0,554048,0,462,540606,545421,TO_TIMESTAMP('2017-06-04 19:05:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Suchschlüssel',10,0,0,TO_TIMESTAMP('2017-06-04 19:05:53','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2017-06-04T19:06:00.487 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542559 ; -- 2017-06-04T19:06:15.814 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy,WidgetSize) VALUES (0,6359,0,462,540210,545422,TO_TIMESTAMP('2017-06-04 19:06:15','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-06-04 19:06:15','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2017-06-04T19:06:44.780 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542547 ; -- 2017-06-04T19:06:44.782 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542548 ; -- 2017-06-04T19:06:44.783 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542552 ; -- 2017-06-04T19:06:44.784 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542553 ; -- 2017-06-04T19:06:44.785 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542555 ; -- 2017-06-04T19:06:44.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542554 ; -- 2017-06-04T19:06:44.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542515 ; -- 2017-06-04T19:06:44.787 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542556 ; -- 2017-06-04T19:06:44.789 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542557 ; -- 2017-06-04T19:06:44.794 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542551 ; -- 2017-06-04T19:06:44.796 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542558 ; -- 2017-06-04T19:06:44.798 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-06-04 19:06:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542508 ; -- 2017-06-04T19:06:52.678 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=50,Updated=TO_TIMESTAMP('2017-06-04 19:06:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542508 ; -- 2017-06-04T19:07:05.374 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542508 ; -- 2017-06-04T19:08:03.543 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540141,540607,TO_TIMESTAMP('2017-06-04 19:08:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','value',15,TO_TIMESTAMP('2017-06-04 19:08:03','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:08:23.369 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,554048,0,462,540607,545423,TO_TIMESTAMP('2017-06-04 19:08:23','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Suchschlüssel',10,0,0,TO_TIMESTAMP('2017-06-04 19:08:23','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-06-04T19:08:43.812 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545421 ; -- 2017-06-04T19:08:48.253 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540606 ; -- 2017-06-04T19:09:39.790 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-06-04 19:09:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545422 ; -- 2017-06-04T19:09:45.909 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=50,Updated=TO_TIMESTAMP('2017-06-04 19:09:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545422 ; -- 2017-06-04T19:10:17.839 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 19:10:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542548 ; -- 2017-06-04T19:10:33.168 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 19:10:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542551 ; -- 2017-06-04T19:13:45.767 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET Name='Merkmals Wert Typ', PrintName='Merkmals Wert Typ',Updated=TO_TIMESTAMP('2017-06-04 19:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2574 ; -- 2017-06-04T19:13:45.772 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=2574 ; -- 2017-06-04T19:13:45.774 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='AttributeValueType', Name='Merkmals Wert Typ', Description='Type of Attribute Value', Help='The Attribute Value type deternines the data/validation type' WHERE AD_Element_ID=2574 ; -- 2017-06-04T19:13:45.789 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='AttributeValueType', Name='Merkmals Wert Typ', Description='Type of Attribute Value', Help='The Attribute Value type deternines the data/validation type', AD_Element_ID=2574 WHERE UPPER(ColumnName)='ATTRIBUTEVALUETYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2017-06-04T19:13:45.791 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='AttributeValueType', Name='Merkmals Wert Typ', Description='Type of Attribute Value', Help='The Attribute Value type deternines the data/validation type' WHERE AD_Element_ID=2574 AND IsCentrallyMaintained='Y' ; -- 2017-06-04T19:13:45.792 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Merkmals Wert Typ', Description='Type of Attribute Value', Help='The Attribute Value type deternines the data/validation type' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2574) AND IsCentrallyMaintained='Y' ; -- 2017-06-04T19:13:45.809 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Merkmals Wert Typ', Name='Merkmals Wert Typ' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=2574) ;
the_stack
SET search_path TO information_schema; -- element_types is generated by data_type_privileges DROP VIEW IF EXISTS information_schema.element_types CASCADE; -- data_type_privileges is generated by columns DROP VIEW IF EXISTS information_schema.data_type_privileges CASCADE; -- data_type_privileges is generated by table_privileges DROP VIEW IF EXISTS information_schema.role_column_grants CASCADE; -- data_type_privileges is generated by column_privileges DROP VIEW IF EXISTS information_schema.role_table_grants CASCADE; -- other views need upgrade for matview DROP VIEW IF EXISTS information_schema.column_domain_usage CASCADE; DROP VIEW IF EXISTS information_schema.column_privileges CASCADE; DROP VIEW IF EXISTS information_schema.column_udt_usage CASCADE; DROP VIEW IF EXISTS information_schema.columns CASCADE; DROP VIEW IF EXISTS information_schema.table_privileges CASCADE; DROP VIEW IF EXISTS information_schema.tables CASCADE; DROP VIEW IF EXISTS information_schema.view_column_usage CASCADE; DROP VIEW IF EXISTS information_schema.view_table_usage CASCADE; CREATE VIEW information_schema.column_domain_usage AS SELECT CAST(current_database() AS sql_identifier) AS domain_catalog, CAST(nt.nspname AS sql_identifier) AS domain_schema, CAST(t.typname AS sql_identifier) AS domain_name, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(c.relname AS sql_identifier) AS table_name, CAST(a.attname AS sql_identifier) AS column_name FROM pg_type t, pg_namespace nt, pg_class c, pg_namespace nc, pg_attribute a WHERE t.typnamespace = nt.oid AND c.relnamespace = nc.oid AND a.attrelid = c.oid AND a.atttypid = t.oid AND t.typtype = 'd' AND c.relkind IN ('r', 'v', 'f') AND a.attnum > 0 AND NOT a.attisdropped AND pg_has_role(t.typowner, 'USAGE'); CREATE VIEW information_schema.column_privileges AS SELECT CAST(u_grantor.rolname AS sql_identifier) AS grantor, CAST(grantee.rolname AS sql_identifier) AS grantee, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(x.relname AS sql_identifier) AS table_name, CAST(x.attname AS sql_identifier) AS column_name, CAST(x.prtype AS character_data) AS privilege_type, CAST( CASE WHEN -- object owner always has grant options pg_has_role(x.grantee, x.relowner, 'USAGE') OR x.grantable THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_grantable FROM ( SELECT pr_c.grantor, pr_c.grantee, attname, relname, relnamespace, pr_c.prtype, pr_c.grantable, pr_c.relowner FROM (SELECT oid, relname, relnamespace, relowner, (aclexplode(coalesce(relacl, acldefault('r', relowner)))).* FROM pg_class WHERE relkind IN ('r', 'v', 'f') ) pr_c (oid, relname, relnamespace, relowner, grantor, grantee, prtype, grantable), pg_attribute a WHERE a.attrelid = pr_c.oid AND a.attnum > 0 AND NOT a.attisdropped UNION SELECT pr_a.grantor, pr_a.grantee, attname, relname, relnamespace, pr_a.prtype, pr_a.grantable, c.relowner FROM (SELECT attrelid, attname, (aclexplode(coalesce(attacl, acldefault('c', relowner)))).* FROM pg_attribute a JOIN pg_class cc ON (a.attrelid = cc.oid) WHERE attnum > 0 AND NOT attisdropped ) pr_a (attrelid, attname, grantor, grantee, prtype, grantable), pg_class c WHERE pr_a.attrelid = c.oid AND relkind IN ('r', 'v', 'f') ) x, pg_namespace nc, pg_authid u_grantor, ( SELECT oid, rolname FROM pg_authid UNION ALL SELECT 0::oid, 'PUBLIC' ) AS grantee (oid, rolname) WHERE x.relnamespace = nc.oid AND x.grantee = grantee.oid AND x.grantor = u_grantor.oid AND x.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'REFERENCES', 'COMMENT') AND (pg_has_role(u_grantor.oid, 'USAGE') OR pg_has_role(grantee.oid, 'USAGE') OR grantee.rolname = 'PUBLIC'); CREATE VIEW information_schema.column_udt_usage AS SELECT CAST(current_database() AS sql_identifier) AS udt_catalog, CAST(coalesce(nbt.nspname, nt.nspname) AS sql_identifier) AS udt_schema, CAST(coalesce(bt.typname, t.typname) AS sql_identifier) AS udt_name, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(c.relname AS sql_identifier) AS table_name, CAST(a.attname AS sql_identifier) AS column_name FROM pg_attribute a, pg_class c, pg_namespace nc, (pg_type t JOIN pg_namespace nt ON (t.typnamespace = nt.oid)) LEFT JOIN (pg_type bt JOIN pg_namespace nbt ON (bt.typnamespace = nbt.oid)) ON (t.typtype = 'd' AND t.typbasetype = bt.oid) WHERE a.attrelid = c.oid AND a.atttypid = t.oid AND nc.oid = c.relnamespace AND a.attnum > 0 AND NOT a.attisdropped AND c.relkind in ('r', 'v', 'f') AND pg_has_role(coalesce(bt.typowner, t.typowner), 'USAGE'); CREATE VIEW information_schema.columns AS SELECT CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(c.relname AS sql_identifier) AS table_name, CAST(a.attname AS sql_identifier) AS column_name, CAST(a.attnum AS cardinal_number) AS ordinal_position, CAST(pg_get_expr(ad.adbin, ad.adrelid) AS character_data) AS column_default, CAST(CASE WHEN a.attnotnull OR (t.typtype = 'd' AND t.typnotnull) THEN 'NO' ELSE 'YES' END AS yes_or_no) AS is_nullable, CAST( CASE WHEN t.typtype = 'd' THEN CASE WHEN bt.typelem <> 0 AND bt.typlen = -1 THEN 'ARRAY' WHEN nbt.nspname = 'pg_catalog' THEN format_type(t.typbasetype, null) ELSE 'USER-DEFINED' END ELSE CASE WHEN t.typelem <> 0 AND t.typlen = -1 THEN 'ARRAY' WHEN nt.nspname = 'pg_catalog' THEN format_type(a.atttypid, null) ELSE 'USER-DEFINED' END END AS character_data) AS data_type, CAST( _pg_char_max_length(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS character_maximum_length, CAST( _pg_char_octet_length(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS character_octet_length, CAST( _pg_numeric_precision(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS numeric_precision, CAST( _pg_numeric_precision_radix(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS numeric_precision_radix, CAST( _pg_numeric_scale(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS numeric_scale, CAST( _pg_datetime_precision(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS cardinal_number) AS datetime_precision, CAST( _pg_interval_type(_pg_truetypid(a, t), _pg_truetypmod(a, t)) AS character_data) AS interval_type, CAST(null AS cardinal_number) AS interval_precision, CAST(null AS sql_identifier) AS character_set_catalog, CAST(null AS sql_identifier) AS character_set_schema, CAST(null AS sql_identifier) AS character_set_name, CAST(CASE WHEN nco.nspname IS NOT NULL THEN current_database() END AS sql_identifier) AS collation_catalog, CAST(nco.nspname AS sql_identifier) AS collation_schema, CAST(co.collname AS sql_identifier) AS collation_name, CAST(CASE WHEN t.typtype = 'd' THEN current_database() ELSE null END AS sql_identifier) AS domain_catalog, CAST(CASE WHEN t.typtype = 'd' THEN nt.nspname ELSE null END AS sql_identifier) AS domain_schema, CAST(CASE WHEN t.typtype = 'd' THEN t.typname ELSE null END AS sql_identifier) AS domain_name, CAST(current_database() AS sql_identifier) AS udt_catalog, CAST(coalesce(nbt.nspname, nt.nspname) AS sql_identifier) AS udt_schema, CAST(coalesce(bt.typname, t.typname) AS sql_identifier) AS udt_name, CAST(null AS sql_identifier) AS scope_catalog, CAST(null AS sql_identifier) AS scope_schema, CAST(null AS sql_identifier) AS scope_name, CAST(null AS cardinal_number) AS maximum_cardinality, CAST(a.attnum AS sql_identifier) AS dtd_identifier, CAST('NO' AS yes_or_no) AS is_self_referencing, CAST('NO' AS yes_or_no) AS is_identity, CAST(null AS character_data) AS identity_generation, CAST(null AS character_data) AS identity_start, CAST(null AS character_data) AS identity_increment, CAST(null AS character_data) AS identity_maximum, CAST(null AS character_data) AS identity_minimum, CAST(null AS yes_or_no) AS identity_cycle, CAST('NEVER' AS character_data) AS is_generated, CAST(null AS character_data) AS generation_expression, CAST(CASE WHEN c.relkind = 'r' OR (c.relkind = 'v' AND EXISTS (SELECT 1 FROM pg_rewrite WHERE ev_class = c.oid AND ev_type = '2' AND is_instead) AND EXISTS (SELECT 1 FROM pg_rewrite WHERE ev_class = c.oid AND ev_type = '4' AND is_instead)) THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_updatable FROM (pg_attribute a LEFT JOIN pg_attrdef ad ON attrelid = adrelid AND attnum = adnum) JOIN (pg_class c JOIN pg_namespace nc ON (c.relnamespace = nc.oid)) ON a.attrelid = c.oid JOIN (pg_type t JOIN pg_namespace nt ON (t.typnamespace = nt.oid)) ON a.atttypid = t.oid LEFT JOIN (pg_type bt JOIN pg_namespace nbt ON (bt.typnamespace = nbt.oid)) ON (t.typtype = 'd' AND t.typbasetype = bt.oid) LEFT JOIN (pg_collation co JOIN pg_namespace nco ON (co.collnamespace = nco.oid)) ON a.attcollation = co.oid AND (nco.nspname, co.collname) <> ('pg_catalog', 'default') WHERE (NOT pg_is_other_temp_schema(nc.oid)) AND a.attnum > 0 AND NOT a.attisdropped AND c.relkind in ('r', 'v', 'f') AND (pg_has_role(c.relowner, 'USAGE') OR has_column_privilege(c.oid, a.attnum, 'SELECT, INSERT, UPDATE, REFERENCES')); CREATE VIEW information_schema.table_privileges AS SELECT CAST(u_grantor.rolname AS sql_identifier) AS grantor, CAST(grantee.rolname AS sql_identifier) AS grantee, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(c.relname AS sql_identifier) AS table_name, CAST(c.prtype AS character_data) AS privilege_type, CAST( CASE WHEN -- object owner always has grant options pg_has_role(grantee.oid, c.relowner, 'USAGE') OR c.grantable THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_grantable, CAST(CASE WHEN c.prtype = 'SELECT' THEN 'YES' ELSE 'NO' END AS yes_or_no) AS with_hierarchy FROM ( SELECT oid, relname, relnamespace, relkind, relowner, (aclexplode(coalesce(relacl, acldefault('r', relowner)))).* FROM pg_class ) AS c (oid, relname, relnamespace, relkind, relowner, grantor, grantee, prtype, grantable), pg_namespace nc, pg_authid u_grantor, ( SELECT oid, rolname FROM pg_authid UNION ALL SELECT 0::oid, 'PUBLIC' ) AS grantee (oid, rolname) WHERE c.relnamespace = nc.oid AND c.relkind IN ('r', 'v') AND c.grantee = grantee.oid AND c.grantor = u_grantor.oid AND c.prtype IN ('INSERT', 'SELECT', 'UPDATE', 'DELETE', 'TRUNCATE', 'REFERENCES', 'TRIGGER' , 'ALTER', 'DROP', 'COMMENT', 'INDEX', 'VACUUM') AND (pg_has_role(u_grantor.oid, 'USAGE') OR pg_has_role(grantee.oid, 'USAGE') OR grantee.rolname = 'PUBLIC'); CREATE VIEW information_schema.tables AS SELECT CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nc.nspname AS sql_identifier) AS table_schema, CAST(c.relname AS sql_identifier) AS table_name, CAST( CASE WHEN nc.oid = pg_my_temp_schema() THEN 'LOCAL TEMPORARY' WHEN c.relkind = 'r' THEN 'BASE TABLE' WHEN c.relkind = 'v' THEN 'VIEW' WHEN c.relkind = 'f' THEN 'FOREIGN TABLE' ELSE null END AS character_data) AS table_type, CAST(null AS sql_identifier) AS self_referencing_column_name, CAST(null AS character_data) AS reference_generation, CAST(CASE WHEN t.typname IS NOT NULL THEN current_database() ELSE null END AS sql_identifier) AS user_defined_type_catalog, CAST(nt.nspname AS sql_identifier) AS user_defined_type_schema, CAST(t.typname AS sql_identifier) AS user_defined_type_name, CAST(CASE WHEN c.relkind = 'r' OR (c.relkind = 'v' AND EXISTS (SELECT 1 FROM pg_rewrite WHERE ev_class = c.oid AND ev_type = '3' AND is_instead)) THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_insertable_into, CAST(CASE WHEN t.typname IS NOT NULL THEN 'YES' ELSE 'NO' END AS yes_or_no) AS is_typed, CAST(null AS character_data) AS commit_action FROM pg_namespace nc JOIN pg_class c ON (nc.oid = c.relnamespace) LEFT JOIN (pg_type t JOIN pg_namespace nt ON (t.typnamespace = nt.oid)) ON (c.reloftype = t.oid) WHERE c.relkind IN ('r', 'v', 'f') AND (NOT pg_is_other_temp_schema(nc.oid)) AND (pg_has_role(c.relowner, 'USAGE') OR has_table_privilege(c.oid, 'SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER') OR has_any_column_privilege(c.oid, 'SELECT, INSERT, UPDATE, REFERENCES') ); CREATE VIEW information_schema.view_column_usage AS SELECT DISTINCT CAST(current_database() AS sql_identifier) AS view_catalog, CAST(nv.nspname AS sql_identifier) AS view_schema, CAST(v.relname AS sql_identifier) AS view_name, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nt.nspname AS sql_identifier) AS table_schema, CAST(t.relname AS sql_identifier) AS table_name, CAST(a.attname AS sql_identifier) AS column_name FROM pg_namespace nv, pg_class v, pg_depend dv, pg_depend dt, pg_class t, pg_namespace nt, pg_attribute a WHERE nv.oid = v.relnamespace AND v.relkind = 'v' AND v.oid = dv.refobjid AND dv.refclassid = 'pg_catalog.pg_class'::regclass AND dv.classid = 'pg_catalog.pg_rewrite'::regclass AND dv.deptype = 'i' AND dv.objid = dt.objid AND dv.refobjid <> dt.refobjid AND dt.classid = 'pg_catalog.pg_rewrite'::regclass AND dt.refclassid = 'pg_catalog.pg_class'::regclass AND dt.refobjid = t.oid AND t.relnamespace = nt.oid AND t.relkind IN ('r', 'v', 'f') AND t.oid = a.attrelid AND dt.refobjsubid = a.attnum AND pg_has_role(t.relowner, 'USAGE'); CREATE VIEW information_schema.view_table_usage AS SELECT DISTINCT CAST(current_database() AS sql_identifier) AS view_catalog, CAST(nv.nspname AS sql_identifier) AS view_schema, CAST(v.relname AS sql_identifier) AS view_name, CAST(current_database() AS sql_identifier) AS table_catalog, CAST(nt.nspname AS sql_identifier) AS table_schema, CAST(t.relname AS sql_identifier) AS table_name FROM pg_namespace nv, pg_class v, pg_depend dv, pg_depend dt, pg_class t, pg_namespace nt WHERE nv.oid = v.relnamespace AND v.relkind = 'v' AND v.oid = dv.refobjid AND dv.refclassid = 'pg_catalog.pg_class'::regclass AND dv.classid = 'pg_catalog.pg_rewrite'::regclass AND dv.deptype = 'i' AND dv.objid = dt.objid AND dv.refobjid <> dt.refobjid AND dt.classid = 'pg_catalog.pg_rewrite'::regclass AND dt.refclassid = 'pg_catalog.pg_class'::regclass AND dt.refobjid = t.oid AND t.relnamespace = nt.oid AND t.relkind IN ('r', 'v', 'f') AND pg_has_role(t.relowner, 'USAGE'); CREATE VIEW information_schema.data_type_privileges AS SELECT CAST(current_database() AS sql_identifier) AS object_catalog, CAST(x.objschema AS sql_identifier) AS object_schema, CAST(x.objname AS sql_identifier) AS object_name, CAST(x.objtype AS character_data) AS object_type, CAST(x.objdtdid AS sql_identifier) AS dtd_identifier FROM ( SELECT udt_schema, udt_name, 'USER-DEFINED TYPE'::text, dtd_identifier FROM attributes UNION ALL SELECT table_schema, table_name, 'TABLE'::text, dtd_identifier FROM columns UNION ALL SELECT domain_schema, domain_name, 'DOMAIN'::text, dtd_identifier FROM domains UNION ALL SELECT specific_schema, specific_name, 'ROUTINE'::text, dtd_identifier FROM parameters UNION ALL SELECT specific_schema, specific_name, 'ROUTINE'::text, dtd_identifier FROM routines ) AS x (objschema, objname, objtype, objdtdid); CREATE VIEW information_schema.role_column_grants AS SELECT grantor, grantee, table_catalog, table_schema, table_name, column_name, privilege_type, is_grantable FROM column_privileges WHERE grantor IN (SELECT role_name FROM enabled_roles) OR grantee IN (SELECT role_name FROM enabled_roles); CREATE VIEW information_schema.role_table_grants AS SELECT grantor, grantee, table_catalog, table_schema, table_name, privilege_type, is_grantable, with_hierarchy FROM table_privileges WHERE grantor IN (SELECT role_name FROM enabled_roles) OR grantee IN (SELECT role_name FROM enabled_roles); CREATE VIEW information_schema.element_types AS SELECT CAST(current_database() AS sql_identifier) AS object_catalog, CAST(n.nspname AS sql_identifier) AS object_schema, CAST(x.objname AS sql_identifier) AS object_name, CAST(x.objtype AS character_data) AS object_type, CAST(x.objdtdid AS sql_identifier) AS collection_type_identifier, CAST( CASE WHEN nbt.nspname = 'pg_catalog' THEN format_type(bt.oid, null) ELSE 'USER-DEFINED' END AS character_data) AS data_type, CAST(null AS cardinal_number) AS character_maximum_length, CAST(null AS cardinal_number) AS character_octet_length, CAST(null AS sql_identifier) AS character_set_catalog, CAST(null AS sql_identifier) AS character_set_schema, CAST(null AS sql_identifier) AS character_set_name, CAST(CASE WHEN nco.nspname IS NOT NULL THEN current_database() END AS sql_identifier) AS collation_catalog, CAST(nco.nspname AS sql_identifier) AS collation_schema, CAST(co.collname AS sql_identifier) AS collation_name, CAST(null AS cardinal_number) AS numeric_precision, CAST(null AS cardinal_number) AS numeric_precision_radix, CAST(null AS cardinal_number) AS numeric_scale, CAST(null AS cardinal_number) AS datetime_precision, CAST(null AS character_data) AS interval_type, CAST(null AS cardinal_number) AS interval_precision, CAST(null AS character_data) AS domain_default, -- XXX maybe a bug in the standard CAST(current_database() AS sql_identifier) AS udt_catalog, CAST(nbt.nspname AS sql_identifier) AS udt_schema, CAST(bt.typname AS sql_identifier) AS udt_name, CAST(null AS sql_identifier) AS scope_catalog, CAST(null AS sql_identifier) AS scope_schema, CAST(null AS sql_identifier) AS scope_name, CAST(null AS cardinal_number) AS maximum_cardinality, CAST('a' || CAST(x.objdtdid AS text) AS sql_identifier) AS dtd_identifier FROM pg_namespace n, pg_type at, pg_namespace nbt, pg_type bt, ( /* columns, attributes */ SELECT c.relnamespace, CAST(c.relname AS sql_identifier), CASE WHEN c.relkind = 'c' THEN 'USER-DEFINED TYPE'::text ELSE 'TABLE'::text END, a.attnum, a.atttypid, a.attcollation FROM pg_class c, pg_attribute a WHERE c.oid = a.attrelid AND c.relkind IN ('r', 'v', 'f', 'c') AND attnum > 0 AND NOT attisdropped UNION ALL /* domains */ SELECT t.typnamespace, CAST(t.typname AS sql_identifier), 'DOMAIN'::text, 1, t.typbasetype, t.typcollation FROM pg_type t WHERE t.typtype = 'd' UNION ALL /* parameters */ SELECT pronamespace, CAST(proname || '_' || CAST(oid AS text) AS sql_identifier), 'ROUTINE'::text, (ss.x).n, (ss.x).x, 0 FROM (SELECT p.pronamespace, p.proname, p.oid, _pg_expandarray(coalesce(p.proallargtypes, p.proargtypes::oid[])) AS x FROM pg_proc p) AS ss UNION ALL /* result types */ SELECT p.pronamespace, CAST(p.proname || '_' || CAST(p.oid AS text) AS sql_identifier), 'ROUTINE'::text, 0, p.prorettype, 0 FROM pg_proc p ) AS x (objschema, objname, objtype, objdtdid, objtypeid, objcollation) LEFT JOIN (pg_collation co JOIN pg_namespace nco ON (co.collnamespace = nco.oid)) ON x.objcollation = co.oid AND (nco.nspname, co.collname) <> ('pg_catalog', 'default') WHERE n.oid = x.objschema AND at.oid = x.objtypeid AND (at.typelem <> 0 AND at.typlen = -1) AND at.typelem = bt.oid AND nbt.oid = bt.typnamespace AND (n.nspname, x.objname, x.objtype, CAST(x.objdtdid AS sql_identifier)) IN ( SELECT object_schema, object_name, object_type, dtd_identifier FROM data_type_privileges ); GRANT SELECT ON information_schema.element_types TO PUBLIC; GRANT SELECT ON information_schema.data_type_privileges TO PUBLIC; GRANT SELECT ON information_schema.role_column_grants TO PUBLIC; GRANT SELECT ON information_schema.role_table_grants TO PUBLIC; GRANT SELECT ON information_schema.column_domain_usage TO PUBLIC; GRANT SELECT ON information_schema.column_privileges TO PUBLIC; GRANT SELECT ON information_schema.column_udt_usage TO PUBLIC; GRANT SELECT ON information_schema.columns TO PUBLIC; GRANT SELECT ON information_schema.table_privileges TO PUBLIC; GRANT SELECT ON information_schema.tables TO PUBLIC; GRANT SELECT ON information_schema.view_column_usage TO PUBLIC; GRANT SELECT ON information_schema.view_table_usage TO PUBLIC; RESET search_path;
the_stack
create schema distribute_setop; set current_schema = distribute_setop; create table setop_hash_table_01( a int, b int ,c text) ; create table setop_hash_table_02( a int, b numeric ,c text) ; create table setop_hash_table_03( a int, b bigint ,c text) ; create table setop_hash_table_04( a smallint, b bigint ,c text) ; create table setop_replication_table_01( a int, b bigint ,c text) ; create table setop_replication_table_02( a bigint, b int ,c text) ; create table setop_replication_table_03( a smallint, b bigint ,c text) ; create view setop_view_table_12 as select setop_hash_table_01.a as ta1, setop_hash_table_01.b as tb1, setop_hash_table_02.a as ta2, setop_hash_table_02.b as tb2 from setop_hash_table_01 inner join setop_hash_table_02 on (setop_hash_table_01.a = setop_hash_table_02.a); create view setop_view_table_23 as select setop_hash_table_02.a as ta1, setop_hash_table_02.b as tb1, setop_hash_table_03.a as ta2, setop_hash_table_03.b as tb2 from setop_hash_table_02 inner join setop_hash_table_03 on (setop_hash_table_02.a = setop_hash_table_03.a); create view setop_view_table_31 as select setop_hash_table_03.a as ta1, setop_hash_table_03.b as tb1, setop_hash_table_01.a as ta2, setop_hash_table_01.b as tb2 from setop_hash_table_03 inner join setop_hash_table_01 on (setop_hash_table_01.a = setop_hash_table_03.a); create index index_on_hash_01 on setop_hash_table_01(a); create index index_on_hash_02 on setop_hash_table_02(a); create index index_on_hash_03 on setop_hash_table_03(b); create index index_on_hash_04 on setop_hash_table_04(a); create index index_on_replication_01 on setop_replication_table_01(a); create index index_on_replication_02 on setop_replication_table_02(a); create index index_on_replication_03 on setop_replication_table_03(a); insert into setop_hash_table_01 values (generate_series(1,2), generate_series(2,3), 'setop_hash_table_01'); insert into setop_hash_table_02 values (generate_series(1,3), generate_series(2,4), 'setop_hash_table_02'); insert into setop_hash_table_03 values (generate_series(1,4), generate_series(2,5), 'setop_hash_table_03'); insert into setop_hash_table_04 values (generate_series(1,5), generate_series(2,6), 'setop_hash_table_04'); insert into setop_replication_table_01 values (generate_series(1,2), generate_series(2,3), 'setop_replication_table_01'); insert into setop_replication_table_02 values (generate_series(1,3), generate_series(2,4), 'setop_replication_table_02'); insert into setop_replication_table_03 values (generate_series(1,4), generate_series(2,5), 'setop_replication_table_03'); insert into setop_hash_table_01 values (generate_series(1,2), generate_series(2,3), 't'); insert into setop_hash_table_02 values (generate_series(1,3), generate_series(2,4), 't'); insert into setop_hash_table_03 values (generate_series(1,4), generate_series(2,5), 't'); insert into setop_hash_table_04 values (generate_series(1,5), generate_series(2,6), 't'); insert into setop_replication_table_01 values (generate_series(1,2), generate_series(2,3), 't'); insert into setop_replication_table_02 values (generate_series(1,3), generate_series(2,4), 't'); insert into setop_replication_table_03 values (generate_series(1,4), generate_series(2,5), 't'); analyze setop_hash_table_01; analyze setop_hash_table_02; analyze setop_hash_table_03; analyze setop_hash_table_04; analyze setop_replication_table_01; analyze setop_replication_table_02; analyze setop_replication_table_03; analyze pg_auth_members; -- ---- INTERSECT -- -- hash + hash + same distributeKey + Append executes on all DNs select * from setop_hash_table_01 intersect select * from setop_hash_table_02 order by 1, 2, 3; select a, b from setop_hash_table_01 intersect select b, a from setop_hash_table_03 order by 1, 2; select * from setop_hash_table_01 where a = 1 intersect select * from setop_hash_table_02 where b = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 intersect select b, a from setop_hash_table_03 where a = 1 order by 1, 2; -- hash + hash + same distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 intersect select * from setop_hash_table_02 where a = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 intersect select b, a from setop_hash_table_03 where b = 1 order by 1, 2; -- hash + hash + different distributeKey + Append executes on all DNs select * from setop_hash_table_01 intersect select * from setop_hash_table_03 order by 1, 2, 3; select a, b from setop_hash_table_01 intersect select b, a from setop_hash_table_02 order by 1, 2; -- hash + hash + different distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 intersect select * from setop_hash_table_03 where b = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 intersect select b, a from setop_hash_table_02 where a = 1 order by 1, 2; -- hash + hash + type cast select * from setop_hash_table_01 intersect select * from setop_hash_table_04 order by 1, 2, 3; select a, b from setop_hash_table_01 intersect select b, a from setop_hash_table_04 order by 1, 2; -- hash + replication + Append executes on special DN select * from setop_hash_table_01 intersect select * from setop_replication_table_01 order by 1, 2; -- replication + replication select * from setop_replication_table_01 intersect select * from setop_replication_table_02 order by 1, 2; -- execute on cn + hash select 1 from pg_auth_members intersect select b from setop_hash_table_02 order by 1; -- targetlist dosenot contains distributeKey select a from setop_hash_table_01 intersect select b from setop_hash_table_02 order by 1; select b from setop_hash_table_01 intersect select b from setop_hash_table_02 order by 1; select * from setop_view_table_12 intersect select * from setop_view_table_23 order by 1, 2, 3; SELECT 1 AS one intersect SELECT 1.1::float8 order by 1; -- ----EXCEPT ALL -- -- hash + hash + same distributeKey + Append executes on all DNs select * from setop_hash_table_01 except all select * from setop_hash_table_02 order by 1, 2, 3; select a, b from setop_hash_table_01 except all select b, a from setop_hash_table_03 order by 1, 2; select * from setop_hash_table_01 where a = 1 except all select * from setop_hash_table_02 where b = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except all select b, a from setop_hash_table_03 where a = 1 order by 1, 2; -- hash + hash + same distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 except all select * from setop_hash_table_02 where a = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except all select b, a from setop_hash_table_03 where b = 1 order by 1, 2; -- hash + hash + different distributeKey + Append executes on all DNs select * from setop_hash_table_01 except all select * from setop_hash_table_03 order by 1, 2, 3; select a, b from setop_hash_table_01 except all select b, a from setop_hash_table_02 order by 1, 2; -- hash + hash + different distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 except all select * from setop_hash_table_03 where b = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except all select b, a from setop_hash_table_02 where a = 1 order by 1, 2; -- hash + hash + type cast select * from setop_hash_table_01 except all select * from setop_hash_table_04 order by 1, 2, 3; select a, b from setop_hash_table_01 except all select b, a from setop_hash_table_04 order by 1, 2; -- hash + replication + Append executes on special DN select * from setop_hash_table_01 except all select * from setop_replication_table_01 order by 1, 2, 3; -- replication + replication select * from setop_replication_table_01 except all select * from setop_replication_table_02 order by 1, 2, 3; -- execute on cn + hash select 1 from pg_auth_members except all select b from setop_hash_table_02 order by 1; -- targetlist dosenot contains distributeKey select a from setop_hash_table_01 except all select b from setop_hash_table_02 order by 1; select b from setop_hash_table_01 except all select b from setop_hash_table_02 order by 1; select * from setop_view_table_12 except all select * from setop_view_table_23 order by 1, 2, 3; SELECT 1 AS one except all SELECT 1.1::float8 order by 1; -- ----EXCEPT -- -- hash + hash + same distributeKey + Append executes on all DNs explain (verbose on, costs off) select * from setop_hash_table_01 union all select * from setop_hash_table_02; select * from setop_hash_table_01 except select * from setop_hash_table_02 order by 1, 2, 3; select a, b from setop_hash_table_01 except select b, a from setop_hash_table_03 order by 1, 2; select * from setop_hash_table_01 where a = 1 except select * from setop_hash_table_02 where b = s1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except select b, a from setop_hash_table_03 where a = 1 order by 1, 2; -- hash + hash + same distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 except select * from setop_hash_table_02 where a = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except select b, a from setop_hash_table_03 where b = 1 order by 1, 2; -- hash + hash + different distributeKey + Append executes on all DNs select * from setop_hash_table_01 except select * from setop_hash_table_03 order by 1, 2, 3; select a, b from setop_hash_table_01 except select b, a from setop_hash_table_02 order by 1, 2; -- hash + hash + different distributeKey + Append executes on special DN select * from setop_hash_table_01 where a = 1 except select * from setop_hash_table_03 where b = 1 order by 1, 2, 3; select a, b from setop_hash_table_01 where a = 1 except select b, a from setop_hash_table_02 where a = 1 order by 1, 2; -- hash + hash + type cast select * from setop_hash_table_01 except select * from setop_hash_table_04 order by 1, 2, 3; select a, b from setop_hash_table_01 except select b, a from setop_hash_table_04 order by 1, 2; -- hash + replication + Append executes on special DN select * from setop_hash_table_01 except select * from setop_replication_table_01 order by 1, 2, 3; -- replication + replication select * from setop_replication_table_01 except select * from setop_replication_table_02 order by 1, 2, 3; -- execute on cn + hash select 1 from pg_auth_members except select b from setop_hash_table_02 order by 1; -- targetlist dosenot contains distributeKey select a from setop_hash_table_01 except select b from setop_hash_table_02 order by 1; select b from setop_hash_table_01 except select b from setop_hash_table_02 order by 1; select * from setop_view_table_12 except select * from setop_view_table_23 order by 1, 2, 3; SELECT 1 AS one except SELECT 1.1::float8 order by 1; --setop optimizer explain (verbose on, costs off) select 'setop_hash_table_01',b from setop_hash_table_01 union select 'setop_hash_table_03',a from setop_hash_table_03; select 'setop_hash_table_01',b from setop_hash_table_01 union select 'setop_hash_table_03',a from setop_hash_table_03 order by 1,2; explain (verbose on, costs off) SELECT b FROM setop_hash_table_01 INTERSECT (((SELECT a FROM setop_hash_table_02 UNION SELECT b FROM setop_hash_table_03))) ORDER BY 1; SELECT b FROM setop_hash_table_01 INTERSECT (((SELECT a FROM setop_hash_table_02 UNION SELECT b FROM setop_hash_table_03))) ORDER BY 1; --union all between replication and hash explain (costs off) select * from setop_replication_table_01 except select * from setop_replication_table_02 union all select setop_hash_table_01.a as ta1, setop_hash_table_01.b as tb1, setop_hash_table_01.c as tc1 from setop_hash_table_01 left join setop_hash_table_02 on (setop_hash_table_01.b = setop_hash_table_02.b); select * from setop_replication_table_01 except select * from setop_replication_table_02 union all select setop_hash_table_01.a as ta1, setop_hash_table_01.b as tb1, setop_hash_table_01.c as tc1 from setop_hash_table_01 left join setop_hash_table_02 on (setop_hash_table_01.b = setop_hash_table_02.b) order by 1, 2, 3; explain (costs off) select distinct b*2/3+5 from setop_hash_table_01 union all select a from setop_hash_table_02 order by 1; select distinct b*2/3+5 from setop_replication_table_01 union all select a from setop_replication_table_02 order by 1; drop table setop_hash_table_01 cascade; drop table setop_hash_table_02 cascade; drop table setop_hash_table_03 cascade; drop table setop_hash_table_04 cascade; drop table setop_replication_table_01 cascade; drop table setop_replication_table_02 cascade; drop table setop_replication_table_03 cascade; reset current_schema; drop schema distribute_setop;
the_stack
use zeoslib; /*==============================================================*/ /* Tables for Bug#735226 */ /*==============================================================*/ CREATE TABLE table735226a ( id INT NOT NULL, referenceid INT NOT NULL ); CREATE TABLE table735226b ( id INT NOT NULL ); /*==============================================================*/ /* Tables for Bug#726788 */ /*==============================================================*/ CREATE TABLE Table726788 ( FieldName INT NOT NULL ); /*==============================================================*/ /* Tables for Bug#735299 */ /*==============================================================*/ CREATE TABLE table735299 ( id INT NOT NULL, fld1 ENUM('Y','N'), fld2 enum('n','y'), PRIMARY KEY (id) ); /*==============================================================*/ /* Tables for Bug#740899 */ /*==============================================================*/ CREATE TABLE table740899 ( id INT NOT NULL, fld VARCHAR(35) ); /*==============================================================*/ /* Tables for Bug #724542 */ /*==============================================================*/ CREATE TABLE table724542 ( fld1 int(11), fld2 char(30), fld3 char(10) ); /*==============================================================*/ /* Tables for Bug #739448 */ /*==============================================================*/ CREATE TABLE table739448a ( fld1 int(11), fld2 char(30), fld3 char(10) ); insert into table739448a values (1, 'abcdefghi', '123456789'); CREATE TABLE table739448b ( fld1 int(11), fld2 char(30), fld3 char(10) ); insert into table739448b values(1, 'abcdefghi', '123456789'); /*==============================================================*/ /* Tables for Bug #733236 */ /*==============================================================*/ CREATE TABLE table733236 ( date DATE, time TIME, datetime DATETIME, timestamp TIMESTAMP ); INSERT INTO table733236 VALUES("1998-12-31", "23:59:59", "1998-12-31 23:59:59",19981231235959); INSERT INTO table733236 VALUES("1999-01-01", "00:00:00", "1999-01-01 00:00:00",19990101000000); INSERT INTO table733236 VALUES("2000-01-01", "00:00:00", "2000-01-01 00:00:00",20000101000000); INSERT INTO table733236 VALUES("2001-01-01", "00:00:00", "2001-01-01 00:00:00",20010101000000); INSERT INTO table733236 VALUES("2004-12-31", "23:59:59", "2004-12-31 23:59:59",20041231235959); /*==============================================================*/ /* Tables for Bug #768163 */ /*==============================================================*/ create table table768163 ( fld1 int unsigned ); /*==============================================================*/ /* Tables for Bug #799863 */ /*==============================================================*/ create table table799863 ( fld1 year ); insert into table799863 values (1024); insert into table799863 values (1940); insert into table799863 values (2003); /*==============================================================*/ /* Tables for Bug #000001 */ /*==============================================================*/ create table table000001 ( fld1 longtext, fld2 longblob ); /*==============================================================*/ /* Tables for Bug #817607 */ /*==============================================================*/ create table table817607 ( id int, `fruit name` varchar(10) ); insert into table817607 values (1, 'apple'); insert into table817607 values (2, 'cherry'); insert into table817607 values (3, 'mango'); /*==============================================================*/ /* Tables for Bug #816925 */ /*==============================================================*/ create table table816925 ( fld1 decimal(5,0), fld2 decimal(9,2), fld3 numeric(11,0), fld4 numeric(8,3) ); /*==============================================================*/ /* Tables for Bug #828147 */ /*==============================================================*/ create table table828147 ( id int4, txt text ); insert into table828147 values (1, 'abc'); /*==============================================================*/ /* Tables for Bug #840608 */ /*==============================================================*/ CREATE TABLE table840608 ( `icode` varchar(7) default NULL, `name` varchar(100) default NULL, `strength` varchar(15) default NULL, `units` varchar(50) default NULL, `unitprice` double(15,3) default NULL, `dosageform` varchar(100) default NULL, `criticalpriority` int(11) default NULL, `drugaccount` char(1) default NULL, `drugcategory` varchar(150) default NULL, `drugnote` varchar(150) default NULL, `hintcode` char(2) default NULL, `istatus` char(1) default NULL, `lastupdatestdprice` datetime default NULL, `lockprice` char(1) default NULL, `lockprint` char(1) default NULL, `maxlevel` int(11) default NULL, `minlevel` int(11) default NULL, `maxunitperdose` int(11) default NULL, `packqty` int(11) default NULL, `reorderqty` int(11) default NULL, `stdprice` double(15,3) default NULL, `stdtaken` varchar(30) default NULL, `therapeutic` varchar(150) default NULL, `therapeuticgroup` varchar(150) default NULL, `default_qty` int(11) default NULL, UNIQUE KEY `icode_unique` (`icode`), UNIQUE KEY `units_icode_name_unique` (`units`,`icode`,`name`,`packqty`,`strength`), KEY `dosageform` (`dosageform`), KEY `drugaccount` (`drugaccount`), KEY `drugcategory` (`drugcategory`), KEY `drugnote` (`drugnote`), KEY `hintcode` (`hintcode`), KEY `icode` (`icode`), KEY `istatus` (`istatus`), KEY `name` (`name`), KEY `packqty` (`packqty`), KEY `strength` (`strength`), KEY `therapeutic` (`therapeutic`), KEY `therapeuticgroup` (`therapeuticgroup`), KEY `units` (`units`) ); INSERT INTO table840608 (icode,name,strength,units,unitprice,dosageform,criticalpriority, drugaccount,drugcategory,drugnote,hintcode,istatus, lastupdatestdprice,lockprice,lockprint,maxlevel,minlevel, maxunitperdose,packqty,reorderqty,stdprice,stdtaken,therapeutic, therapeuticgroup,default_qty) VALUES ('1450012','PARACETAMOL (GPO)','500 mg.','TAB',0.5,'Tablets',0,'', NULL,'p5','58','N',NULL,'N','N',1,1,0,1000,1,NULL,'0153', 'ANTI-PYRETIC','',NULL); /*==============================================================*/ /* Tables for Bug #849723 */ /*==============================================================*/ CREATE TABLE table849723 ( fld1 time not null, fld2 varchar(10), primary key (fld1) ); INSERT INTO table849723 values ('00:00:00', 'abc'); /*==============================================================*/ /* Tables for Bug #869609 */ /*==============================================================*/ CREATE TABLE table869609 ( id int8 not null auto_increment, primary key (id) ); /*==============================================================*/ /* Tables for Bug #865564 */ /*==============================================================*/ CREATE TABLE table865564 ( fld1 float(30,2), fld2 decimal(10,4) ); INSERT INTO table865564 VALUES (123.45, 123.4567); /*==============================================================*/ /* Tables for Bug #881634 */ /*==============================================================*/ CREATE TABLE table881634a ( idt1 int4 not null, ft1 varchar(20), PRIMARY KEY (idt1) ); CREATE TABLE table881634b ( idt2 int4 not null, ft2 varchar(20), ft1 integer, PRIMARY KEY (idt2) ); /*==============================================================*/ /* Tables for Bug #884135 */ /*==============================================================*/ CREATE TABLE table884135a ( id int4 unsigned auto_increment not null, fld varchar(20), PRIMARY KEY (id) ); INSERT INTO table884135a VALUES (1, 'aaa'); INSERT INTO table884135a VALUES (2, 'bbb'); INSERT INTO table884135a VALUES (3, 'ccc'); CREATE TABLE table884135b ( id int4 unsigned auto_increment not null, mid int4 unsigned, fld varchar(20), PRIMARY KEY (id) ); INSERT INTO table884135b VALUES (1, 1, 'aaaa'); INSERT INTO table884135b VALUES (2, 1, 'aabb'); INSERT INTO table884135b VALUES (3, 1, 'aacc'); INSERT INTO table884135b VALUES (4, 2, 'bbaa'); INSERT INTO table884135b VALUES (5, 2, 'bbbb'); INSERT INTO table884135b VALUES (6, 2, 'bbcc'); INSERT INTO table884135b VALUES (7, 3, 'ccaa'); INSERT INTO table884135b VALUES (8, 3, 'ccbb'); INSERT INTO table884135b VALUES (9, 3, 'cccc'); /*==============================================================*/ /* Tables for Bug #886841 */ /*==============================================================*/ CREATE TABLE table886841 ( fld enum('y','n') default 'y' ); /*==============================================================*/ /* Tables for Bug #894367 */ /*==============================================================*/ CREATE TABLE table894367a ( fld1 varchar(30), fld2 enum('y','n') ); CREATE TABLE table894367b ( fld1 int4, fld2 float ); CREATE TABLE table894367c ( fld1 tinyblob, fld2 int8 ); /*==============================================================*/ /* Tables for Bug #886841 */ /*==============================================================*/ /* CREATE TABLE table914436 ( fld1 CHAR(15) CHARACTER SET LATIN1, fld2 VARCHAR(15) CHARACTER SET LATIN1, fld3 TEXT(15) CHARACTER SET LATIN1 ); /**/ /*==============================================================*/ /* Tables for Bug #938705 */ /*==============================================================*/ CREATE TABLE `Table 938705` ( `Field First` int4 not null auto_increment, `Field Second` varchar(10), primary key (`Field First`) ); /*==============================================================*/ /* Tables for Bug #957126 */ /*==============================================================*/ CREATE TABLE table957126 ( fld1 VARCHAR(15) DEFAULT '', fld2 VARCHAR(15) ); /*==============================================================*/ /* Tables for Bug #987022 */ /*==============================================================*/ CREATE TABLE table987022 ( fld1 BIGINT, fld2 VARCHAR(15) ); /*==============================================================*/ /* Tables for Bug #989474 */ /*==============================================================*/ CREATE TABLE table989474 ( CustID INT4, CreateDate DATE, PRIMARY KEY (CustID) ); /*==============================================================*/ /* Tables for Bug #1045286 */ /*==============================================================*/ CREATE TABLE table1045286 ( fld text not null ); INSERT INTO table1045286 VALUES ('');
the_stack
-- 2017-12-21T16:39:19.711 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543703,0,'IsReduced',TO_TIMESTAMP('2017-12-21 16:39:19','YYYY-MM-DD HH24:MI:SS'),100,'','D','','Y','Ermäßigt','Ermäßigt',TO_TIMESTAMP('2017-12-21 16:39:19','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-21T16:39:19.713 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543703 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2017-12-21T16:39:32.728 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-21 16:39:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Reduced',PrintName='Reduced' WHERE AD_Element_ID=543703 AND AD_Language='en_US' ; -- 2017-12-21T16:39:39.802 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543703,'en_US') ; -- 2017-12-21T16:50:01.773 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543704,0,'IsWithout',TO_TIMESTAMP('2017-12-21 16:50:01','YYYY-MM-DD HH24:MI:SS'),100,'','D','','Y','Ohne','Ermäßigt',TO_TIMESTAMP('2017-12-21 16:50:01','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-21T16:50:01.776 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=543704 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2017-12-21T16:50:21.766 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-21 16:50:21','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Without',PrintName='Without' WHERE AD_Element_ID=543704 AND AD_Language='en_US' ; -- 2017-12-21T16:50:21.774 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543704,'en_US') ; -- 2017-12-21T16:54:31.151 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558402,543703,0,20,252,'N','IsReduced',TO_TIMESTAMP('2017-12-21 16:54:30','YYYY-MM-DD HH24:MI:SS'),100,'N','','D',1,'','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Ermäßigt',0,0,TO_TIMESTAMP('2017-12-21 16:54:30','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2017-12-21T16:54:31.154 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558402 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2017-12-21T16:55:28.704 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='N',Updated=TO_TIMESTAMP('2017-12-21 16:55:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558402 ; -- 2017-12-21T16:55:30.404 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('C_TaxCategory','ALTER TABLE public.C_TaxCategory ADD COLUMN IsReduced CHAR(1) DEFAULT ''N'' CHECK (IsReduced IN (''Y'',''N'')) NOT NULL') ; -- 2017-12-21T16:55:48.211 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558403,543704,0,20,252,'N','IsWithout',TO_TIMESTAMP('2017-12-21 16:55:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','','D',1,'','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Ohne',0,0,TO_TIMESTAMP('2017-12-21 16:55:48','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2017-12-21T16:55:48.220 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558403 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2017-12-21T16:55:51.118 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('C_TaxCategory','ALTER TABLE public.C_TaxCategory ADD COLUMN IsWithout CHAR(1) DEFAULT ''N'' CHECK (IsWithout IN (''Y'',''N'')) NOT NULL') ; ------- -- 2017-12-21T17:00:40.495 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,558402,561242,0,176,0,TO_TIMESTAMP('2017-12-21 17:00:40','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','Ermäßigt',90,80,0,1,1,TO_TIMESTAMP('2017-12-21 17:00:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-21T17:00:40.498 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561242 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-12-21T17:00:52.804 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,558403,561243,0,176,0,TO_TIMESTAMP('2017-12-21 17:00:52','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','Ohne',100,90,0,1,1,TO_TIMESTAMP('2017-12-21 17:00:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-21T17:00:52.805 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561243 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2017-12-21T17:01:43.256 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,0,176,549851,540530,'F',TO_TIMESTAMP('2017-12-21 17:01:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Ermäßigt',30,0,0,TO_TIMESTAMP('2017-12-21 17:01:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-12-21T17:02:02.022 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_Field_ID=561242,Updated=TO_TIMESTAMP('2017-12-21 17:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549851 ; -- 2017-12-21T17:02:12.755 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561243,0,176,549852,540530,'F',TO_TIMESTAMP('2017-12-21 17:02:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Ohne',30,0,0,TO_TIMESTAMP('2017-12-21 17:02:12','YYYY-MM-DD HH24:MI:SS'),100) ;
the_stack
-- 2021-06-09T11:12:42.049Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy) VALUES (0,540602,0,541663,TO_TIMESTAMP('2021-06-09 14:12:41','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','N','C_','N',TO_TIMESTAMP('2021-06-09 14:12:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-06-09T11:12:42.050Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Index_Table_ID=540602 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2021-06-09T11:13:02.490Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Index_Table_Trl WHERE AD_Index_Table_ID=540602 ; -- 2021-06-09T11:13:02.494Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Index_Table WHERE AD_Index_Table_ID=540602 ; -- 2021-06-09T11:14:17.270Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,Description,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy) VALUES (0,540603,0,541663,TO_TIMESTAMP('2021-06-09 14:14:17','YYYY-MM-DD HH24:MI:SS'),100,'Used to prevent adding the same invoice/invoiceline to the same Verification set','D','Y','N','C_Invoice_Verification_SetLineUniqueInvoice','N',TO_TIMESTAMP('2021-06-09 14:14:17','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-06-09T11:14:17.272Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table_Trl (AD_Language,AD_Index_Table_ID, ErrorMsg, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Index_Table_ID, t.ErrorMsg, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Index_Table t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Index_Table_ID=540603 AND NOT EXISTS (SELECT 1 FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 2021-06-09T11:14:41.191Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,574051,541110,540603,0,TO_TIMESTAMP('2021-06-09 14:14:41','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2021-06-09 14:14:41','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-06-09T11:15:02.709Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,574054,541111,540603,0,TO_TIMESTAMP('2021-06-09 14:15:02','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',20,TO_TIMESTAMP('2021-06-09 14:15:02','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-06-09T11:15:37.213Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator CREATE INDEX C_Invoice_Verification_SetLineUniqueInvoice ON C_Invoice_Verification_SetLine (C_Invoice_Verification_Set_ID,C_InvoiceLine_ID) ; -- 2021-06-09T10:05:33.805Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584839,'Y','de.metas.invoice.process.C_Invoice_AddTo_VerificationSet','N',TO_TIMESTAMP('2021-06-09 13:05:33','YYYY-MM-DD HH24:MI:SS'),100,'Auswahl in Überprüfungssatz aufnehmen','D','Y','N','N','N','N','N','N','Y','Y',0,'Auswahl in Überprüfungssatz aufnehmen','json','N','N','Java',TO_TIMESTAMP('2021-06-09 13:05:33','YYYY-MM-DD HH24:MI:SS'),100,'C_Invoice_AddTo_VerificationSet') ; -- 2021-06-09T10:05:33.812Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584839 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2021-06-09T10:12:10.286Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,579233,0,584839,542025,13,'C_Invoice_Verification_Set_ID',TO_TIMESTAMP('2021-06-09 13:12:10','YYYY-MM-DD HH24:MI:SS'),100,'D',0,'Y','N','Y','N','N','N','Rechnung-Überprüfungssatz',10,TO_TIMESTAMP('2021-06-09 13:12:10','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-06-09T10:12:10.288Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=542025 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2021-06-09T10:58:29.950Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Table_Process_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_DocumentAction,WEBUI_IncludedTabTopAction,WEBUI_ViewAction,WEBUI_ViewQuickAction,WEBUI_ViewQuickAction_Default) VALUES (0,0,584839,318,540940,TO_TIMESTAMP('2021-06-09 13:58:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2021-06-09 13:58:29','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N') ; -- 2021-06-09T11:00:04.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Add selection to verification set', IsTranslated='Y', Name='Add selection to verification set',Updated=TO_TIMESTAMP('2021-06-09 14:00:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584839 ; -- 2021-06-09T14:08:26.375Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584840,'Y','de.metas.invoice.process.C_Invoice_Verification_Run_Execute','N',TO_TIMESTAMP('2021-06-09 17:08:26','YYYY-MM-DD HH24:MI:SS'),100,'Betrachtet alle Rechnungszeilen des ausgewählten Überprüfungssatze und erstellt eine Überprüfungszeile.','D','Y','N','N','N','N','N','N','Y','Y',0,'Ausführen','json','N','N','Java',TO_TIMESTAMP('2021-06-09 17:08:26','YYYY-MM-DD HH24:MI:SS'),100,'C_Invoice_Verification_Run_Execute') ; -- 2021-06-09T14:08:26.379Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584840 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2021-06-09T14:08:48.541Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Iterates the invoice lines of the selected verification set and creates a result line for each.', IsTranslated='Y', Name='Execute',Updated=TO_TIMESTAMP('2021-06-09 17:08:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584840 ; -- 2021-06-09T16:18:27.505Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_ID=17,Updated=TO_TIMESTAMP('2021-06-09 19:18:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=542025 ; -- 2021-06-09T16:19:03.817Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2021-06-09 19:19:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=542025 ; -- 2021-06-09T16:19:29.209Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_TIMESTAMP('2021-06-09 19:19:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=542025 ; -- 2021-06-10T06:44:16.729Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Table_Process_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_DocumentAction,WEBUI_IncludedTabTopAction,WEBUI_ViewAction,WEBUI_ViewQuickAction,WEBUI_ViewQuickAction_Default) VALUES (0,0,584840,541664,540941,TO_TIMESTAMP('2021-06-10 09:44:16','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2021-06-10 09:44:16','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N') ;
the_stack
-- --------------------------------------------------------------------- -- caqlcov -- -- This test aims to cover caql calls that are missed in the rest of -- the installcheck-good schedule. Since this is not a sourcified -- file, add to caql.source if you need sourcify. -- --------------------------------------------------------------------- -- start_ignore drop schema if exists tschema; drop table if exists ttable; drop table if exists ttable1; drop table if exists ttable2; drop table if exists ttable_seq; drop resource queue myqueue; drop function if exists trig(); drop user if exists cm_user; drop view if exists tview; drop database if exists ctestdb; -- end_ignore create user caql_luser; create user caql_luser_beta; -- --------------------------------------------------------------------- -- coverage for comment.c -- --------------------------------------------------------------------- create schema tschema; comment on schema tschema is 'this is to test comment on schema'; create table ttable (a int, b int, constraint testcheck check(b>0)); comment on constraint testcheck on ttable is 'this is to test comment on constraint'; create user cm_user; set session authorization cm_user; comment on operator class pg_catalog.abstime_ops USING btree IS '4 byte integer operators for btree'; reset session authorization; create resource queue myqueue with (active_statements=10); comment on resource queue myqueue is 'only 10 active statements'; -- --------------------------------------------------------------------- -- coverage for trigger.c -- --------------------------------------------------------------------- create function trig() returns trigger as $$ begin raise notice 'testing trigger'; end; $$ language plpgsql; create trigger btrig before insert on ttable for each row execute procedure trig(); alter trigger btrig on ttable rename to btrig_2; alter table ttable disable trigger btrig_2; alter table ttable enable trigger all; -- --------------------------------------------------------------------- -- coverage for ruleutils.c -- --------------------------------------------------------------------- \d+ ttable create view tview as select a,~b from ttable; select pg_get_viewdef('tview'); create table ttable_seq (a int, b serial); select pg_get_serial_sequence('ttable_seq', 'b'); -- --------------------------------------------------------------------- -- coverage for tablecmd.c -- --------------------------------------------------------------------- alter table ttable reset (fillfactor); create index indtest on ttable using btree(b); alter table ttable rename column b to c; begin; set transaction read only; drop table ttable; rollback; -- --------------------------------------------------------------------- -- coverage for parse_func.c -- --------------------------------------------------------------------- create table ttable1 (a int, b int); create table ttable2() inherits (ttable1); select (ttable2.*)::ttable1 from ttable2; -- --------------------------------------------------------------------- -- coverage for aggregatecmds.c -- --------------------------------------------------------------------- create function caql_cube_fn(numeric, numeric) RETURNS numeric AS 'select $1 + $2 * $2 * $2' language sql immutable returns NULL ON NULL INPUT; create aggregate caqlcube(numeric) ( SFUNC = caql_cube_fn, STYPE = numeric, INITCOND = 0 ); create table caql_tab(a int); insert into caql_tab values (1), (2), (3); select caqlcube(a) from caql_tab; alter aggregate caqlcube(numeric) rename to caql_cube; select caql_cube(a) from caql_tab; drop table caql_tab; -- --------------------------------------------------------------------- -- coverage for indexcmds.c -- --------------------------------------------------------------------- create schema caql_schema; create function caql_schema.int4_array_lt(_int4, _int4) returns bool as 'array_lt' language internal; create function caql_schema.int4_array_le(_int4, _int4) returns bool as 'array_le' language internal; create function caql_schema.int4_array_eq(_int4, _int4) returns bool as 'array_eq' language internal; create function caql_schema.int4_array_ge(_int4, _int4) returns bool as 'array_ge' language internal; create function caql_schema.int4_array_gt(_int4, _int4) returns bool as 'array_gt' language internal; create function caql_schema.int4_array_cmp(_int4, _int4) returns int as 'btarraycmp' language internal; create operator caql_schema.< (leftarg = _int4, rightarg = _int4, procedure = caql_schema.int4_array_lt); create operator caql_schema.<= (leftarg = _int4, rightarg = _int4, procedure = caql_schema.int4_array_le); create operator caql_schema.= (leftarg = _int4, rightarg = _int4, procedure = caql_schema.int4_array_eq); create operator caql_schema.>= (leftarg = _int4, rightarg = _int4, procedure = caql_schema.int4_array_ge); create operator caql_schema.> (leftarg = _int4, rightarg = _int4, procedure = caql_schema.int4_array_gt); create operator class caql_schema.caql_opclass default for type _int4 using btree as operator 1 caql_schema.<, operator 2 caql_schema.<=, operator 3 caql_schema.=, operator 4 caql_schema.>=, operator 5 caql_schema.>, function 1 caql_schema.int4_array_cmp(_int4, _int4); create table caql_schema.caql_tab(a int[]); create index caql_index on caql_schema.caql_tab(a caql_schema.caql_opclass); create table caql_rtree(a int, b box); create index caql_rtree_idx on caql_rtree using rtree(b); drop table caql_rtree; reindex table caql_schema.caql_tab; create database caql_db; \c caql_db; set client_min_messages to WARNING; reindex database caql_db; analyze; vacuum freeze; reset client_min_messages; \c regression; reindex table pg_class; drop table caql_schema.caql_tab; -- --------------------------------------------------------------------- -- coverage for opclasscmds.c -- --------------------------------------------------------------------- alter operator class caql_schema.caql_opclass using btree rename to caql_opclass2; alter operator class caql_schema.caql_opclass2 using btree owner to caql_luser; drop operator class caql_schema.caql_opclass2 using btree; -- there is no way to rename to another schema..., so re-create it create operator class caql_opclass default for type _int4 using btree as operator 1 caql_schema.<, operator 2 caql_schema.<=, operator 3 caql_schema.=, operator 4 caql_schema.>=, operator 5 caql_schema.>, function 1 caql_schema.int4_array_cmp(_int4, _int4); alter operator class caql_opclass using btree rename to caql_opclass2; alter operator class caql_opclass2 using btree owner to caql_luser; drop operator class caql_opclass2 using btree; -- --------------------------------------------------------------------- -- coverage for operatorcmds.c -- --------------------------------------------------------------------- alter operator caql_schema.<(_int4, _int4) owner to caql_luser; -- clean up drop operator caql_schema.< (_int4, _int4); drop operator caql_schema.<= (_int4, _int4); drop operator caql_schema.= (_int4, _int4); drop operator caql_schema.>= (_int4, _int4); drop operator caql_schema.> (_int4, _int4); drop function caql_schema.int4_array_cmp(_int4, _int4); drop function caql_schema.int4_array_lt(_int4, _int4); drop function caql_schema.int4_array_le(_int4, _int4); drop function caql_schema.int4_array_eq(_int4, _int4); drop function caql_schema.int4_array_ge(_int4, _int4); drop function caql_schema.int4_array_gt(_int4, _int4); -- --------------------------------------------------------------------- -- coverage for namespace.c -- --------------------------------------------------------------------- create type caql_type as (id int, grade int); -- start_ignore -- for now, we just want have coverage for caql caller and ignore the result \dT; \do; -- end_ignore select * from pg_opclass_is_visible(403); -- --------------------------------------------------------------------- -- coverage for dbcmds.c -- --------------------------------------------------------------------- alter database caql_db rename to caql_database; alter database caql_database with connection limit 200; create role caql_user with login nosuperuser nocreatedb; alter database caql_database owner to caql_user; set role caql_user; alter database caql_database rename to caql_db; drop database caql_database; reset role; -- --------------------------------------------------------------------- -- coverage for functioncmds.c -- --------------------------------------------------------------------- create function caql_fn(int, int) returns int AS 'select $1 + $2' language sql immutable returns NULL ON NULL INPUT; alter function caql_fn(int, int) rename to caql_function; alter function caql_function(int, int) owner to caql_user; alter aggregate caql_cube(numeric) owner to caql_user; create function caql_fn_in(cstring) returns opaque as 'boolin' language internal; create function caql_fn_out(opaque) returns opaque as 'boolin' language internal; create type caql_type2(input=caql_fn_in, output=caql_fn_out); create type caql_type3 as (name int4); create function caql_type3_cast(caql_type3) returns int as ' select $1.name' language sql immutable; create cast (caql_type3 AS int4) WITH FUNCTION caql_type3_cast(caql_type3); drop cast (caql_type3 as int4); -- --------------------------------------------------------------------- -- coverage for acl.c -- --------------------------------------------------------------------- select has_table_privilege(1255, 'SELECT'); select has_table_privilege((select usesysid from pg_user where usename='caql_user'), 1255, 'SELECT'); select has_database_privilege('caql_user', 1, 'CONNECT'); select has_database_privilege(1, 'CONNECT'); select has_database_privilege((select usesysid from pg_user where usename='caql_user'), 1, 'CONNECT'); select has_function_privilege('caql_user', (select oid from pg_proc where proname='boolin'), 'EXECUTE'); select has_function_privilege((select usesysid from pg_user where usename='caql_user'),'EXECUTE'); select has_function_privilege((select usesysid from pg_user where usename='caql_user'), (select oid from pg_proc where proname='boolin'), 'EXECUTE'); select has_language_privilege((select oid from pg_language where lanname='plpgsql'), 'USAGE'); select has_language_privilege((select usesysid from pg_user where usename='caql_user'), (select oid from pg_language where lanname = 'plpgsql'), 'USAGE'); select has_language_privilege((select usesysid from pg_user where usename='caql_user'), 'plpgsql', 'USAGE'); select has_schema_privilege('caql_user', (select oid from pg_namespace where nspname='caql_schema'), 'USAGE'); select has_schema_privilege((select oid from pg_namespace where nspname='caql_schema'), 'USAGE'); select has_schema_privilege((select usesysid from pg_user where usename='caql_user'), (select oid from pg_namespace where nspname='caql_schema'), 'USAGE'); select has_schema_privilege('caql_user', 'caql_schema', 'USAGE'); create role caql_role; select pg_has_role('caql_user', 'caql_role', 'USAGE WITH ADMIN OPTION'); -- --------------------------------------------------------------------- -- coverage for cdbpartition.c -- --------------------------------------------------------------------- create table caql_part_table ( c1 int, c2 int ) with (appendonly=false) partition by list (c1) subpartition by list(c2) ( partition a values(1) (subpartition a1 values (1) with (appendonly=true, orientation=column, compresstype=quicklz) ) ); drop table caql_part_table_1_prt_a_2_prt_a1; drop table caql_part_table_1_prt_a; drop table caql_part_table; -- cleanup drop aggregate caql_cube(numeric); drop function caql_cube_fn(numeric, numeric); drop type caql_type cascade; drop function caql_type3_cast(caql_type3); drop type caql_type3; drop function caql_function(int, int); drop schema caql_schema cascade;; drop user caql_user; drop function caql_fn_out(caql_type2) cascade; drop function caql_fn_in(cstring); drop role caql_role; -- setup -- start_ignore drop schema tschema; drop resource queue myqueue; drop table ttable cascade; drop table ttable1 cascade; drop table ttable2 cascade; drop table ttable_seq cascade; drop function trig(); drop user cm_user; -- end_ignore create schema caql_schema; -- --------------------------------------------------------------------- -- coverage for typecmds.c -- --------------------------------------------------------------------- create domain caql_domain as int; alter domain caql_domain set default 1; alter domain caql_domain set not null; alter domain caql_domain add constraint caql_domain_constraint check (value < 1000); alter domain caql_domain drop constraint caql_domain_constraint; alter domain caql_domain owner to caql_luser; drop domain caql_domain; -- --------------------------------------------------------------------- -- coverage for user.c -- --------------------------------------------------------------------- alter user caql_luser rename to caql_user; alter user caql_user rename to caql_luser; -- --------------------------------------------------------------------- -- coverage for proclang.c -- --------------------------------------------------------------------- create language caql_plpgsql handler plpgsql_call_handler; drop language caql_plpgsql; -- --------------------------------------------------------------------- -- coverage for schemacmds.c -- --------------------------------------------------------------------- alter schema caql_schema owner to caql_luser; reassign owned by caql_luser to caql_luser_beta; -- --------------------------------------------------------------------- -- coverage for sequence.c -- --------------------------------------------------------------------- create external web table cmd(a text) execute E'PGOPTIONS="-c gp_session_role=utility" \\ psql -p $GP_MASTER_PORT $GP_DATABASE $GP_USER -c \\ "create temporary sequence caql_sequence; \\ select nextval(''caql_sequence''); select lastval();"' on master format 'text'; select * from cmd; drop external web table cmd; -- --------------------------------------------------------------------- -- coverage for dbsize.c -- --------------------------------------------------------------------- select pg_total_relation_size('pg_class'::regclass) - pg_total_relation_size('pg_class'::regclass); -- --------------------------------------------------------------------- -- coverage for regproc.c -- --------------------------------------------------------------------- select oid::regoper from pg_operator order by oid limit 1; -- --------------------------------------------------------------------- -- coverage for dependency.c -- --------------------------------------------------------------------- create table caql_depend(a int, b regproc default 'int4pl', c regoperator default '=(bool, bool)', d regclass default 'pg_class', e regtype default 'bool'); -- --------------------------------------------------------------------- -- coverage for aclchk.c -- --------------------------------------------------------------------- grant all on tablespace pg_default to caql_luser; grant all on function random() to caql_luser; set role to caql_luser; select has_database_privilege('postgres', 'create'); select has_tablespace_privilege('pg_default', 'create'); comment on tablespace pg_default is 'pg_default'; comment on filespace pg_system is 'pg_system'; comment on operator class abstime_ops using btree is 'abstime_ops'; reset role; create database ctestdb; grant create on database ctestdb to caql_luser; \c ctestdb set session authorization caql_luser; create schema tschema; drop schema tschema; reset session authorization; \c regression -- --------------------------------------------------------------------- -- coverage for pg_depend.c -- --------------------------------------------------------------------- create sequence caql_sequence; alter sequence caql_sequence set schema caql_schema; revoke all privileges on tablespace pg_default from caql_luser; revoke all privileges on function random() from caql_luser; revoke all privileges on database ctestdb from caql_luser; -- --------------------------------------------------------------------- -- coverage for pg_operator.c -- --------------------------------------------------------------------- create operator @@ (procedure = int4pl, leftarg = int, rightarg = int, negator = !!); create operator !! (procedure = int4pl, leftarg = int, rightarg = int); -- --------------------------------------------------------------------- -- coverage for planagg.c -- --------------------------------------------------------------------- create external web table cmd(a text) execute E'PGOPTIONS="-c gp_session_role=utility" \\ psql -p $GP_MASTER_PORT $GP_DATABASE $GP_USER -c \\ "select min(oid) from pg_class"' on master format 'text'; select * from cmd; drop external web table cmd; -- start_ignore drop database ctestdb; -- end_ignore -- --------------------------------------------------------------------- -- coverage for fmgr.c -- --------------------------------------------------------------------- create function security_definer_test() returns void as $$ begin perform * from pg_class; end; $$ language plpgsql security definer; select security_definer_test(); drop function security_definer_test(); -- clean up drop schema caql_schema cascade; drop role caql_luser; drop role caql_luser_beta;
the_stack
-- 2018-05-24T13:39:40.387 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocumentCopies,EntityType,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCopyDescriptionToDocument,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsIndexed,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsShipConfirm,IsSOTrx,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (0,0,540956,TO_TIMESTAMP('2018-05-24 13:39:40','YYYY-MM-DD HH24:MI:SS'),100,'APC',1,'de.metas.invoice',0,'N','N','Y','Y','Y','N','N','Y','N','N','N','N','N','N','N','N','Rückvergütungsrechnung','Rückvergütungsrechnung',TO_TIMESTAMP('2018-05-24 13:39:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-24T13:39:40.394 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, Description,DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.Description,t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=540956 AND NOT EXISTS (SELECT 1 FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) ; -- 2018-05-24T13:40:18.725 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET IsCreateCounter='N',Updated=TO_TIMESTAMP('2018-05-24 13:40:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540956 ; -- 2018-05-24T14:29:39.013 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocumentCopies,EntityType,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCopyDescriptionToDocument,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsIndexed,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsShipConfirm,IsSOTrx,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (1000000,0,540957,TO_TIMESTAMP('2018-05-24 14:29:38','YYYY-MM-DD HH24:MI:SS'),100,'APC',1,'de.metas.invoice',1000000,'N','N','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','Rückvergütungsrechnung','Rückvergütungsrechnung',TO_TIMESTAMP('2018-05-24 14:29:38','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-24T14:29:39.016 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, Description,DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.Description,t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=540957 AND NOT EXISTS (SELECT 1 FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) ; -- 2018-05-24T14:29:39.021 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 1000000,0,'Y', now(),100, now(),100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=1000000 AND doctype.C_DocType_ID=540957 AND rol.IsManual='N') ; -- 2018-05-24T14:29:40.571 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET IsDocNoControlled='Y',Updated=TO_TIMESTAMP('2018-05-24 14:29:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540957 ; -- 2018-05-24T14:36:27.818 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET DocSubType='RI',Updated=TO_TIMESTAMP('2018-05-24 14:36:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540957 ; -- 2018-05-24T14:37:00.667 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocSubType,DocumentCopies,EntityType,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCopyDescriptionToDocument,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsIndexed,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsShipConfirm,IsSOTrx,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (1000000,0,540958,TO_TIMESTAMP('2018-05-24 14:37:00','YYYY-MM-DD HH24:MI:SS'),100,'APC','RC',1,'de.metas.invoice',1000000,'N','N','Y','Y','N','N','N','Y','N','N','N','N','N','N','N','N','Rückvergütungsgutschrift','Rückvergütungsgutschrift',TO_TIMESTAMP('2018-05-24 14:37:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-24T14:37:00.669 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, Description,DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.Description,t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=540958 AND NOT EXISTS (SELECT 1 FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) ; -- 2018-05-24T14:37:00.674 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 1000000,0,'Y', now(),100, now(),100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=1000000 AND doctype.C_DocType_ID=540958 AND rol.IsManual='N') ; -- 2018-05-24T14:37:17.157 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 14:37:17','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Refund Creditmemo' WHERE C_DocType_ID=540958 AND AD_Language='en_US' ; -- 2018-05-24T14:37:33.734 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 14:37:33','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Refund Invoice',PrintName='Refund Invoice' WHERE C_DocType_ID=540957 AND AD_Language='en_US' ; -- 2018-05-24T14:37:42.276 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 14:37:42','YYYY-MM-DD HH24:MI:SS'),PrintName='Refund Creditmemo' WHERE C_DocType_ID=540958 AND AD_Language='en_US' ; -- 2018-05-24T15:26:18.848 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocumentCopies,EntityType,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCopyDescriptionToDocument,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsIndexed,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsShipConfirm,IsSOTrx,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (1000000,0,540960,TO_TIMESTAMP('2018-05-24 15:26:18','YYYY-MM-DD HH24:MI:SS'),100,'ARC',1,'de.metas.invoice',1000000,'N','N','Y','Y','N','N','N','Y','N','N','N','N','N','N','Y','N','Rückvergütungsrechnung Kunde','Rückvergütungsrechnung Kunde',TO_TIMESTAMP('2018-05-24 15:26:18','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-24T15:26:18.849 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, Description,DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.Description,t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=540960 AND NOT EXISTS (SELECT 1 FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) ; -- 2018-05-24T15:26:18.851 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 1000000,0,'Y', now(),100, now(),100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=1000000 AND doctype.C_DocType_ID=540960 AND rol.IsManual='N') ; -- 2018-05-24T15:26:45.430 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 15:26:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Refund Invoice Customer',PrintName='Refund Invoice Customer' WHERE C_DocType_ID=540960 AND AD_Language='en_US' ; -- 2018-05-24T15:27:24.054 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 15:27:24','YYYY-MM-DD HH24:MI:SS'),PrintName='Refund Invoice' WHERE C_DocType_ID=540960 AND AD_Language='en_US' ; -- 2018-05-24T15:27:29.762 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET PrintName='Rückvergütungsrechnung',Updated=TO_TIMESTAMP('2018-05-24 15:27:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540960 ; -- 2018-05-24T15:30:24.188 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET Name='Rückvergütungsgutschrift Lieferant',Updated=TO_TIMESTAMP('2018-05-24 15:30:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540958 ; -- 2018-05-24T15:30:31.660 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET Name='Rückvergütungsrechnung Lieferant',Updated=TO_TIMESTAMP('2018-05-24 15:30:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540957 ; -- 2018-05-24T15:31:00.962 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocumentCopies,EntityType,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCopyDescriptionToDocument,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsIndexed,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsShipConfirm,IsSOTrx,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (1000000,0,540961,TO_TIMESTAMP('2018-05-24 15:31:00','YYYY-MM-DD HH24:MI:SS'),100,'ARC',1,'de.metas.invoice',1000000,'N','N','Y','Y','N','N','N','Y','N','N','N','N','N','N','N','N','Rückvergütungsgutschrift Kunde','Rückvergütungsgutschrift',TO_TIMESTAMP('2018-05-24 15:31:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-24T15:31:00.963 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, Description,DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.Description,t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=540961 AND NOT EXISTS (SELECT 1 FROM C_DocType_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.C_DocType_ID=t.C_DocType_ID) ; -- 2018-05-24T15:31:00.964 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 1000000,0,'Y', now(),100, now(),100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=1000000 AND doctype.C_DocType_ID=540961 AND rol.IsManual='N') ; -- 2018-05-24T16:00:26.102 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET IsSOTrx='Y',Updated=TO_TIMESTAMP('2018-05-24 16:00:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540961 ; -- 2018-05-24T16:00:38.639 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET DocSubType='RC',Updated=TO_TIMESTAMP('2018-05-24 16:00:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540961 ; -- 2018-05-24T16:00:47.040 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET DocSubType='RC',Updated=TO_TIMESTAMP('2018-05-24 16:00:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540960 ; -- 2018-05-24T16:01:18.924 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 16:01:18','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Refund Creditmemo Customer',PrintName='Refund Creditmemo' WHERE C_DocType_ID=540961 AND AD_Language='en_US' ; -- 2018-05-24T16:01:38.060 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 16:01:38','YYYY-MM-DD HH24:MI:SS'),Name='Refund Invoice Vendor' WHERE C_DocType_ID=540957 AND AD_Language='en_US' ; -- 2018-05-24T16:01:50.356 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-24 16:01:50','YYYY-MM-DD HH24:MI:SS'),Name='Refund Creditmemo Vendor' WHERE C_DocType_ID=540958 AND AD_Language='en_US' ; -- 2018-05-24T16:54:35.873 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET DocSubType='RI',Updated=TO_TIMESTAMP('2018-05-24 16:54:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=540960 ;
the_stack
------------------------------------------------------------ -- USERS ------------------------------------------------------------ DROP TABLE IF EXISTS "users"; CREATE TABLE "users" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "created_at" text NOT NULL, "username" text NOT NULL, "email" text NOT NULL ); INSERT INTO "users" ("id", "created_at", "username", "email") VALUES (1, '2014-04-30 14:40:01', 'foo', 'foo@example.org'); INSERT INTO "users" ("id", "created_at", "username", "email") VALUES (2, '2014-04-30 14:02:43', 'bar', 'bar@example.org'); INSERT INTO "users" ("id", "created_at", "username", "email") VALUES (3, '2014-04-30 14:12:43', 'baz', 'baz@example.org'); ------------------------------------------------------------ -- PROFILES ------------------------------------------------------------ DROP TABLE IF EXISTS "profiles"; CREATE TABLE "profiles" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL, "interests" text NOT NULL ); INSERT INTO "profiles" ("id", "user_id", "interests") VALUES (1, 1, 'music'); INSERT INTO "profiles" ("id", "user_id", "interests") VALUES (2, 2, 'movies'); INSERT INTO "profiles" ("id", "user_id", "interests") VALUES (3, 3, 'hockey'); ------------------------------------------------------------ -- IMAGES ------------------------------------------------------------ DROP TABLE IF EXISTS "images"; CREATE TABLE "images" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "image" text NOT NULL, "imageable_type" text NOT NULL, "imageable_id" text NOT NULL ); INSERT INTO "images" ("id", "image", "imageable_type", "imageable_id") VALUES (1, 'foo.png', "\mako\tests\integration\database\midgard\relations\HasOnePolymorphicProfile", 1); INSERT INTO "images" ("id", "image", "imageable_type", "imageable_id") VALUES (2, 'bar.png', "\mako\tests\integration\database\midgard\relations\HasOnePolymorphicProfile", 2); INSERT INTO "images" ("id", "image", "imageable_type", "imageable_id") VALUES (3, 'baz.png', "\mako\tests\integration\database\midgard\relations\HasOnePolymorphicProfile", 3); ------------------------------------------------------------ -- GROUPS ------------------------------------------------------------ DROP TABLE IF EXISTS "groups"; CREATE TABLE "groups" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "name" text NOT NULL ); INSERT INTO "groups" ("id", "name") VALUES (1, 'admin'); INSERT INTO "groups" ("id", "name") VALUES (2, 'user'); INSERT INTO "groups" ("id", "name") VALUES (3, 'moderator'); INSERT INTO "groups" ("id", "name") VALUES (4, 'manager'); ------------------------------------------------------------ -- GROUPS_USERS ------------------------------------------------------------ DROP TABLE IF EXISTS "groups_users"; CREATE TABLE "groups_users" ( "group_id" integer NOT NULL, "user_id" integer NOT NULL, "extra" NULL ); INSERT INTO "groups_users" ("group_id", "user_id", "extra") VALUES (1, 1, 'foobar'); INSERT INTO "groups_users" ("group_id", "user_id") VALUES (2, 1); INSERT INTO "groups_users" ("group_id", "user_id") VALUES (2, 2); INSERT INTO "groups_users" ("group_id", "user_id") VALUES (2, 3); ------------------------------------------------------------ -- ARTICLES ------------------------------------------------------------ DROP TABLE IF EXISTS "articles"; CREATE TABLE "articles" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL, "created_at" text NOT NULL, "title" text NOT NULL, "body" text NOT NULL ); INSERT INTO "articles" ("id", "user_id", "created_at", "title", "body") VALUES (1, 1, '2014-04-30 15:02:10', 'article 1', 'article body 1'); INSERT INTO "articles" ("id", "user_id", "created_at", "title", "body") VALUES (2, 1, '2014-04-30 15:02:10', 'article 2', 'article body 2'); INSERT INTO "articles" ("id", "user_id", "created_at", "title", "body") VALUES (3, 2, '2014-04-30 15:32:10', 'article 3', 'article body 3'); ------------------------------------------------------------ -- ARTICLE_COMMENTS ------------------------------------------------------------ DROP TABLE IF EXISTS "article_comments"; CREATE TABLE "article_comments" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "article_id" integer NOT NULL, "user_id" integer NOT NULL, "created_at" text NOT NULL, "comment" text NOT NULL ); INSERT INTO "article_comments" ("id", "article_id", "user_id", "created_at", "comment") VALUES (1, 1, 1, '2014-04-30 15:02:10', "article 1 comment 1"); INSERT INTO "article_comments" ("id", "article_id", "user_id", "created_at", "comment") VALUES (2, 1, 2, '2014-04-30 15:02:10', "article 1 comment 2"); INSERT INTO "article_comments" ("id", "article_id", "user_id", "created_at", "comment") VALUES (3, 2, 1, '2014-04-30 15:02:10', "article 2 comment 1"); INSERT INTO "article_comments" ("id", "article_id", "user_id", "created_at", "comment") VALUES (4, 3, 3, '2014-04-30 15:02:10', "article 3 comment 1"); ------------------------------------------------------------ -- ARTICLE_COMMENTS ------------------------------------------------------------ DROP TABLE IF EXISTS "polymorphic_comments"; CREATE TABLE "polymorphic_comments" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "user_id" integer NOT NULL, "created_at" text NOT NULL, "comment" text NOT NULL, "commentable_type" text NOT NULL, "commentable_id" integer NOT NULL ); INSERT INTO "polymorphic_comments" ("id", "user_id", "created_at", "comment", "commentable_type", "commentable_id") VALUES (1, 1, '2014-04-30 15:02:10', "article 1 comment 1", "\mako\tests\integration\database\midgard\relations\HasManyPolymorphicArticle", 1); INSERT INTO "polymorphic_comments" ("id", "user_id", "created_at", "comment", "commentable_type", "commentable_id") VALUES (2, 2, '2014-04-30 15:02:10', "article 1 comment 2", "\mako\tests\integration\database\midgard\relations\HasManyPolymorphicArticle", 1); INSERT INTO "polymorphic_comments" ("id", "user_id", "created_at", "comment", "commentable_type", "commentable_id") VALUES (3, 1, '2014-04-30 15:02:10', "article 2 comment 1", "\mako\tests\integration\database\midgard\relations\HasManyPolymorphicArticle", 2); INSERT INTO "polymorphic_comments" ("id", "user_id", "created_at", "comment", "commentable_type", "commentable_id") VALUES (4, 3, '2014-04-30 15:02:10', "article 2 comment 1", "\mako\tests\integration\database\midgard\relations\HasManyPolymorphicArticle", 3); ------------------------------------------------------------ -- OPTIMISTIC_LOCKS ------------------------------------------------------------ DROP TABLE IF EXISTS "optimistic_locks"; CREATE TABLE "optimistic_locks" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "lock_version" integer NOT NULL DEFAULT 0, "value" text NOT NULL ); INSERT INTO "optimistic_locks" ("id", "lock_version", "value") VALUES (1, 0, "foo"); ------------------------------------------------------------ -- UUID_KEYS ------------------------------------------------------------ DROP TABLE IF EXISTS "uuid_keys"; CREATE TABLE "uuid_keys" ( "id" text NOT NULL PRIMARY KEY, "value" text NOT NULL ); ------------------------------------------------------------ -- CUSTOM_KEYS ------------------------------------------------------------ DROP TABLE IF EXISTS "custom_keys"; CREATE TABLE "custom_keys" ( "id" text NOT NULL PRIMARY KEY, "value" text NOT NULL ); ------------------------------------------------------------ -- NO_KEYS ------------------------------------------------------------ DROP TABLE IF EXISTS "no_keys"; CREATE TABLE "no_keys" ( "value" text NOT NULL ); ------------------------------------------------------------ -- TIMESTAMPED_FOOS ------------------------------------------------------------ DROP TABLE IF EXISTS "timestamped_foos"; CREATE TABLE "timestamped_foos" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "created_at" text NOT NULL, "updated_at" text NOT NULL, "value" text NOT NULL ); INSERT INTO "timestamped_foos" ("id", "created_at", "updated_at", "value") VALUES (1, "2014-05-14 23:00:00", "2014-05-14 23:00:00", "foo"); INSERT INTO "timestamped_foos" ("id", "created_at", "updated_at", "value") VALUES (2, "2014-05-14 23:00:01", "2014-05-14 23:00:01", "bar"); INSERT INTO "timestamped_foos" ("id", "created_at", "updated_at", "value") VALUES (3, "2014-05-14 23:00:02", "2014-05-14 23:00:02", "baz"); ------------------------------------------------------------ -- TIMESTAMPED_BARS ------------------------------------------------------------ DROP TABLE IF EXISTS "timestamped_bars"; CREATE TABLE "timestamped_bars" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "timestamped_foo_id" integer NOT NULL, "created_at" text NOT NULL, "updated_at" text NOT NULL ); INSERT INTO "timestamped_bars" ("id", "timestamped_foo_id", "created_at", "updated_at") VALUES (1, 1, "2014-05-14 23:00:03", "2014-05-14 23:00:03"); INSERT INTO "timestamped_bars" ("id", "timestamped_foo_id", "created_at", "updated_at") VALUES (2, 2, "2014-05-14 23:00:04", "2014-05-14 23:00:04"); ------------------------------------------------------------ -- COUNTERS ------------------------------------------------------------ DROP TABLE IF EXISTS "counters"; CREATE TABLE "counters" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "counter" integer NOT NULL ); INSERT INTO "counters" ("id", "counter") VALUES (1, 0); INSERT INTO "counters" ("id", "counter") VALUES (2, 0); INSERT INTO "counters" ("id", "counter") VALUES (3, 0); ------------------------------------------------------------ -- NULLABLES ------------------------------------------------------------ DROP TABLE IF EXISTS "nullables"; CREATE TABLE "nullables" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "value1" text DEFAULT NULL, "value2" text DEFAULT NULL ); INSERT INTO "nullables" ("id") VALUES (1); ------------------------------------------------------------ -- ENUMS ------------------------------------------------------------ DROP TABLE IF EXISTS "enums"; CREATE TABLE "enums" ( "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "value" integer DEFAULT NULL ); INSERT INTO "enums" ("id", "value") VALUES (1, 1); INSERT INTO "enums" ("id", "value") VALUES (2, 2);
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Records of dp_admin_group -- ---------------------------- INSERT INTO `dp_admin_group` VALUES ('1', '系统管理员', '1', '可以管理系统的大多功能,包括后台的菜单设置,一般开发人员使用。', '1'); INSERT INTO `dp_admin_group` VALUES ('2', '管理员', '1', '一般用于开权限帐号使用', '1'); INSERT INTO `dp_admin_group` VALUES ('3', '内容管理员', '0', '可以进行内容编辑,一般运营人员使用。', '1'); INSERT INTO `dp_admin_group` VALUES ('4', 'demo', '0', '系统演示使用', '1'); -- ---------------------------- -- Records of dp_admin_group_menu_relation -- ---------------------------- INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '1'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '1'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('4', '1'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '2'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '2'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '3'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '4'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '5'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '6'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '7'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '8'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '9'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '9'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('4', '9'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '10'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '10'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '11'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '11'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '11'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('4', '11'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '12'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '12'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '13'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '13'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '13'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '14'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '14'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '15'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '15'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '16'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '17'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '17'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '18'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '19'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '20'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '20'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '20'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('4', '20'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '21'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '21'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('3', '21'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '22'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '29'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '29'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '30'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '30'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '32'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '32'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '149'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '149'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '157'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '157'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '161'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '161'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '162'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '162'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '163'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '163'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '164'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '164'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '165'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '165'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '166'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '166'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '167'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '168'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '168'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '169'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '169'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '170'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '170'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '171'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '171'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '172'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '172'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '173'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '173'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '174'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '175'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '175'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '176'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '176'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '177'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '177'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '178'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '178'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '179'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '179'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '180'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '180'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '181'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '181'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '182'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '183'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '183'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '184'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '184'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '185'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '186'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '187'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '188'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '189'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '190'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '191'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '192'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '192'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '193'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '193'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '194'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '195'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '195'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '196'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '196'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '197'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '197'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '198'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '198'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '199'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '199'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '200'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '200'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '201'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '201'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '202'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '202'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '203'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '203'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '204'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '204'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '205'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '205'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '206'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '206'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '207'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '207'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '208'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '208'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '209'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '209'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '210'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '210'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '211'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '211'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '213'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '213'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '215'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '215'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('1', '217'); INSERT INTO `dp_admin_group_menu_relation` VALUES ('2', '217'); -- ---------------------------- -- Records of dp_admin_menu -- ---------------------------- INSERT INTO `dp_admin_menu` VALUES ('4', '0', '系统管理', '', '', '', null, '1', '1', '0', '0', '0', '0', '0', '3', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('5', '4', '菜单管理', '', '', 'DP.view.system.menu', null, '1', '1', '0', '0', '0', '0', '0', '1', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('6', '0', '管理员和权限管理', '', '', '', null, '1', '1', '0', '0', '0', '0', '0', '2', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('7', '6', '管理员帐号', '', '', 'DP.view.admin.user', null, '1', '1', '0', '0', '0', '0', '0', '1', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('8', '6', '用户组管理', '', '', 'DP.view.admin.group', null, '1', '1', '0', '0', '0', '0', '0', '1', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('16', '4', '系统配置', '', '', 'DP.view.system.config', null, '1', '1', '0', '0', '0', '0', '0', '3', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('22', '4', '菜单所有URL管理', '', '', 'DP.view.system.MenuUrl', null, '1', '1', '0', '0', '0', '0', '0', '4', '', '1'); INSERT INTO `dp_admin_menu` VALUES ('68', '0', 'dp_admin_menu表 自动生成', '', '', 'DP.view.admin.menu', null, '1', '1', '0', '0', '0', '0', '0', '8', '', '2'); INSERT INTO `dp_admin_menu` VALUES ('159', '0', 'dp_admin_user_menu_link表 自动生成', '', '', 'DP.view.admin.user.menu.link', null, '1', '1', '0', '0', '0', '0', '0', '13', '', '2'); -- ---------------------------- -- Records of dp_admin_menu_url -- ---------------------------- INSERT INTO `dp_admin_menu_url` VALUES ('7', '菜单管理树形列表', 'admin.menu.tree', '/admin/menu/tree', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('8', '菜单所有数据', 'admin.menu.all', '/admin/menu/all', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('9', '菜单URL关联列表', 'admin.menu-url-link.list', '/admin/menu-url-link/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('10', '菜单URL关联保存', 'admin.menu-url-link.save', '/admin/menu-url-link/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('11', '菜单URL关联更新状态', 'admin.menu-url-link.update-status', '/admin/menu-url-link/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('12', '菜单更新状态', 'admin.menu.update-status', '/admin/menu/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('13', '菜单更新保存', 'admin.menu.save', '/admin/menu/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('14', '菜单更新删除', 'admin.menu.del', '/admin/menu/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('15', '菜单URL更新状态', 'admin.menu-url.update-status', '/admin/menu-url/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('16', '菜单URL保存', 'admin.menu-url.save', '/admin/menu-url/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('17', '菜单URL删除', 'admin.menu-url.del', '/admin/menu-url/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('18', '菜单URL列表', 'admin.menu-url.list', '/admin/menu-url/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('19', '菜单URL规则列表', 'admin.menu-url-rule.list', '/admin/menu-url-rule/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('20', '菜单URL规则保存', 'admin.menu-url-rule.save', '/admin/menu-url-rule/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('21', '菜单URL规则删除', 'admin.menu-url-rule.del', '/admin/menu-url-rule/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('22', '菜单URL规则更新状态', 'admin.menu-url-rule.update-status', '/admin/menu-url-rule/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('23', '网站配置信息', 'setting.config.options', '/setting/config/options', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('24', '网站配置保存', 'setting.config.save', '/setting/config/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('25', '菜单URL所有数据', 'admin.menu-url.all', '/admin/menu-url/all', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('26', '用户组所有数据', 'admin.group.all', '/admin/group/all', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('27', '用户组列表', 'admin.group.list', '/admin/group/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('28', '用户组保存', 'admin.group.save', '/admin/group/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('29', '用户组删除', 'admin.group.del', '/admin/group/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('30', '用户组更新状态', 'admin.group.update-status', '/admin/group/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('31', '用户组权限列表', 'admin.group.menu', '/admin/group/menu', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('32', '管理员列表', 'admin.user.list', '/admin/user/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('33', '管理员保存', 'admin.user.save', '/admin/user/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('34', '管理员更新状态', 'admin.user.update-status', '/admin/user/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('35', '管理员更新删除', 'admin.user.del', '/admin/user/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('122', 'dp_admin_user_menu_link表 列表', 'admin.user.menu.link.list', '/admin/user/menu/link/list', 'GET', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('123', 'dp_admin_user_menu_link表 保存', 'admin.user.menu.link.save', '/admin/user/menu/link/save', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('124', 'dp_admin_user_menu_link表 删除', 'admin.user.menu.link.del', '/admin/user/menu/link/del', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('125', 'dp_admin_user_menu_link表 更新状态', 'admin.user.menu.link.update-status', '/admin/user/menu/link/update-status', 'POST', '', '0', '', '1'); INSERT INTO `dp_admin_menu_url` VALUES ('126', '用户权限列表', 'admin.user.menu', '/admin/user/menu', 'GET', '', '0', '', '1'); -- ---------------------------- -- Records of dp_admin_menu_url_relation -- ---------------------------- INSERT INTO `dp_admin_menu_url_relation` VALUES ('10', '5', '7', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('11', '5', '8', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('12', '5', '9', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('13', '5', '10', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('14', '5', '11', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('15', '5', '12', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('16', '5', '13', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('17', '5', '14', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('18', '5', '15', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('19', '5', '16', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('20', '5', '17', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('21', '5', '18', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('22', '5', '19', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('23', '5', '20', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('24', '5', '21', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('25', '5', '22', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('26', '16', '23', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('27', '16', '24', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('28', '5', '25', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('31', '8', '26', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('32', '8', '27', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('33', '8', '28', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('34', '8', '29', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('35', '8', '30', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('36', '7', '26', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('37', '8', '31', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('38', '7', '32', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('39', '7', '33', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('40', '7', '34', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('41', '7', '35', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('171', '68', '13', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('172', '68', '14', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('173', '68', '12', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('175', '159', '32', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('176', '159', '122', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('177', '159', '123', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('178', '159', '124', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('179', '159', '125', '1'); INSERT INTO `dp_admin_menu_url_relation` VALUES ('180', '7', '126', '1'); -- ---------------------------- -- Records of dp_admin_user -- ---------------------------- INSERT INTO `dp_admin_user` VALUES ('1', 'drupecms', '超级管理员', '$2y$13$xRFQW1JJXF.fo.edmy0yLeEbxGpVTZHgjI4yIK.v/EKDMbGRfRIei', '', '', '1', '0', '0', '0', '1', '', '1'); INSERT INTO `dp_admin_user` VALUES ('2', 'admin', '管理员', '$2y$04$wboExyUgo7AyTa52WxZTHeq5sQgVb7oruegxrgFfPApHhKuqPaaam', '', '', '1', '1', '1', '1', '0', '开发者', '1'); INSERT INTO `dp_admin_user` VALUES ('3', 'content_mgr', '内容管理员', '$2y$04$RNLkimeGmBEyBDVtw0xGEOm2Q1YHi4PCfAgc5Q4e6p1Fd9ComYGhe', '', '', '3', '0', '0', '0', '0', '运营', '1'); INSERT INTO `dp_admin_user` VALUES ('4', 'demo', 'demo', '$2y$04$a1SSZm4nZglMOW8syV0WXOgNfQJby0.YL4m2Zaf8AFaewzR9pOBoK', '', '', '4', '0', '0', '0', '0', '演示帐号', '1'); -- ---------------------------- -- Records of dp_config -- ---------------------------- INSERT INTO `dp_config` VALUES ('system.limit', '', '1'); INSERT INTO `dp_config` VALUES ('system.limitData', '', '1'); INSERT INTO `dp_config` VALUES ('system.loadingText', '正在努力加载中...请耐心等待。', '1'); INSERT INTO `dp_config` VALUES ('system.menu.minWidth', '100', '1'); INSERT INTO `dp_config` VALUES ('system.menu.region', 'west', '1'); INSERT INTO `dp_config` VALUES ('system.menu.width', '350', '1'); INSERT INTO `dp_config` VALUES ('system.name', 'DrupeCms', '1'); INSERT INTO `dp_config` VALUES ('system.version', '1.0', '1'); INSERT INTO `dp_config` VALUES ('system.window.saveClose', '0', '1'); INSERT INTO `dp_config` VALUES ('system.window.shadow', '1', '1');
the_stack
---- QUERY CASES ---- -- (2) Chart queries and aggregated -- (3) Continous aggregates with different resolutions -- (4) More aggregates for dashboard ---- -- (2) Chart queries and aggregated -- May be used to create continuous aggregation -- (2a) Daily OHLCV summary from minutely data -- Can be used to create continuous aggregation for faster client chart loading time explain (analyze) select time_bucket('1 day', "time") as "bucket", exchange, base_id, quote_id, first(opening_price, "time") as "open", max(highest_price) as "high", min(lowest_price) as "low", last(closing_price, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket"; -- (2b) Moving average based on exchange, base and quote -- Can be used to create continuous aggregation for faster client chart loading time explain (analyze) select ohlcvs."time" as "time", symexch.symbol, avg(ohlcvs.closing_price) over (order by ohlcvs."time" rows between 10079 preceding and current row) as moving_avg from ohlcvs left join symbol_exchange as symexch on ohlcvs.base_id = symexch.base_id and ohlcvs.quote_id = symexch.quote_id and ohlcvs.exchange = symexch.exchange where ohlcvs.exchange = 'bittrex' and ohlcvs.base_id = 'BTC' and ohlcvs.quote_id = 'USD' order by time ASC; -- (3) Continous aggregates with different resolutions -- (3b) Daily OHLCV summary -- Can be used to view chart for a period back 1 year create materialized view ohlcvs_summary_daily with (timescaledb.continuous) as select time_bucket('1 day', "time") as "bucket", exchange, base_id, quote_id, first(opening_price, "time") as "open", max(highest_price) as "high", min(lowest_price) as "low", last(closing_price, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_daily', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_daily', start_offset => INTERVAL '3 days', end_offset => INTERVAL '1 day', schedule_interval => INTERVAL '1 day'); -- (3c) 5-min OHLCV summary -- Can be used to view chart for a period back 6 hours create materialized view ohlcvs_summary_5min with (timescaledb.continuous) as select time_bucket('5 minutes', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_5min', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_5min', start_offset => INTERVAL '15 minutes', end_offset => INTERVAL '5 minutes', schedule_interval => INTERVAL '5 minutes'); -- (3d) 15-min OHLCV summary -- Can be used to view chart for a period back 1 day create materialized view ohlcvs_summary_15min with (timescaledb.continuous) as select time_bucket('15 minutes', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_15min', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_15min', start_offset => INTERVAL '45 minutes', end_offset => INTERVAL '15 minutes', schedule_interval => INTERVAL '15 minutes'); -- (3e) 30-min OHLCV summary -- Can be used to view chart for a period back 3 days create materialized view ohlcvs_summary_30min with (timescaledb.continuous) as select time_bucket('30 minutes', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_30min', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_30min', start_offset => INTERVAL '90 minutes', end_offset => INTERVAL '30 minutes', schedule_interval => INTERVAL '30 minutes'); -- (3f) 1-hour OHLCV summary -- Can be used to view chart for a period back 7 days create materialized view ohlcvs_summary_1hour with (timescaledb.continuous) as select time_bucket('1 hour', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_1hour', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_1hour', start_offset => INTERVAL '3 hours', end_offset => INTERVAL '1 hour', schedule_interval => INTERVAL '1 hour'); -- (3g) 6-hour OHLCV summary -- Can be used to view chart for a period back 1 month create materialized view ohlcvs_summary_6hour with (timescaledb.continuous) as select time_bucket('6 hours', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_6hour', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_6hour', start_offset => INTERVAL '18 hours', end_offset => INTERVAL '6 hours', schedule_interval => INTERVAL '6 hours'); -- (3h) 12-hour OHLCV summary -- Can be used to view chart for a period back 3 months create materialized view ohlcvs_summary_12hour with (timescaledb.continuous) as select time_bucket('12 hours', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_12hour', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_12hour', start_offset => INTERVAL '36 hours', end_offset => INTERVAL '12 hours', schedule_interval => INTERVAL '12 hours'); -- (3i) 7-day OHLCV summary -- Can be used to view chart for a period back 3 years create materialized view ohlcvs_summary_7day with (timescaledb.continuous) as select time_bucket('7 days', "time") as "bucket", exchange, base_id, quote_id, first(open, "time") as "open", max(high) as "high", min(low) as "low", last(close, "time") as "close", sum(volume) as "volume" from ohlcvs group by exchange, base_id, quote_id, "bucket" with no data; CALL refresh_continuous_aggregate('ohlcvs_summary_7day', NULL, '2021-08-01'); SELECT add_continuous_aggregate_policy('ohlcvs_summary_7day', start_offset => INTERVAL '21 days', end_offset => INTERVAL '7 days', schedule_interval => INTERVAL '7 days'); -- (4a) Geometric average daily return since the last 7 days -- Used to create a dashboard ranking daily profitability of a symbol -- Dates with no ohlcv data will be filled with the earliest date before -- that has ohlcv data DROP MATERIALIZED VIEW geo_daily_return; CREATE MATERIALIZED VIEW geo_daily_return AS WITH close_filled AS ( SELECT generate_series( bucket, LEAD(bucket, 1) OVER ( PARTITION BY exchange, base_id, quote_id ORDER BY bucket ) - interval '1 day', interval '1 day' )::date AS bucket, exchange, base_id, quote_id, close FROM ohlcvs_summary_daily WHERE bucket >= (CURRENT_DATE - interval '8 days') AND close <> 0 -- AND exchange='bittrex' AND base_id='GBYTE' AND quote_id='BTC' ), prev_close_view AS ( SELECT *, LAG(close) OVER ( PARTITION BY exchange, base_id, quote_id ORDER BY bucket ASC) AS prev_close FROM close_filled ), daily_factor AS ( SELECT bucket, exchange, base_id, quote_id, LN(close/prev_close) AS ln_daily_factor FROM prev_close_view ) -- SELECT * -- FROM daily_factor; SELECT exchange, base_id, quote_id, CAST( (POWER(EXP(SUM(ln_daily_factor)), (1.0/COUNT(*))) - 1) * 100 AS NUMERIC(10, 4) ) AS daily_return_pct FROM daily_factor WHERE ln_daily_factor IS NOT NULL GROUP BY exchange, base_id, quote_id ORDER BY daily_return_pct DESC; CREATE UNIQUE INDEX geo_dr_idx ON geo_daily_return (exchange, base_id, quote_id); -- (4b) The top XXXX commodities -- with the highest quoted trading volume in the past week -- Can be used for a pie chart DROP MATERIALIZED VIEW top_20_quoted_vol; CREATE MATERIALIZED VIEW top_20_quoted_vol AS WITH ebq_quoted_vol AS ( SELECT exchange, base_id, quote_id, close * volume AS quoted_vol FROM ohlcvs_summary_7day WHERE bucket >= (CURRENT_DATE - interval '8 days') ), bq_quoted_vol AS ( SELECT base_id, quote_id, SUM(quoted_vol) AS ttl_quoted_vol FROM ebq_quoted_vol GROUP BY base_id, quote_id ), bqgrp_qoute_vol AS ( SELECT (CASE WHEN ranking > 20 THEN 'Other' ELSE concat(base_id, '-', quote_id) END) AS bqgrp, ttl_quoted_vol FROM ( SELECT *, ROW_NUMBER() OVER(ORDER BY ttl_quoted_vol DESC) AS ranking FROM bq_quoted_vol ) AS temp ORDER BY ttl_quoted_vol DESC ) SELECT bqgrp, ROUND(SUM(ttl_quoted_vol), 4) AS total_volume FROM bqgrp_qoute_vol GROUP BY bqgrp; CREATE UNIQUE INDEX top_20_qvlm_idx ON top_20_quoted_vol (bqgrp); -- (4c) Weekly gains/returns DROP MATERIALIZED VIEW weekly_return; CREATE MATERIALIZED VIEW weekly_return AS SELECT bucket AS time, exchange, base_id, quote_id, ROUND(((close_price - open_price) / open_price) * 100, 4) AS weekly_return_pct FROM ( SELECT DISTINCT ON (exchange, base_id, quote_id) time_bucket('1 week', time) as bucket, exchange, base_id, quote_id, first(open, time) as open_price, last(close, time) as close_price FROM ohlcvs WHERE time >= (CURRENT_DATE - interval '1 week') GROUP BY exchange, base_id, quote_id, bucket ORDER BY exchange, base_id, quote_id, bucket DESC ) temp WHERE close_price IS NOT NULL AND open_price IS NOT NULL and open_price <> 0 ORDER BY weekly_return_pct DESC; CREATE UNIQUE INDEX wr_idx ON weekly_return (exchange, base_id, quote_id, time);
the_stack
-- 2021-02-18T22:23:02.359Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626840 ; -- 2021-02-18T22:23:02.367Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626840 ; -- 2021-02-18T22:23:02.373Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626840 ; -- 2021-02-18T22:23:02.387Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626843 ; -- 2021-02-18T22:23:02.388Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626843 ; -- 2021-02-18T22:23:02.394Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626843 ; -- 2021-02-18T22:23:02.398Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626835 ; -- 2021-02-18T22:23:02.399Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626835 ; -- 2021-02-18T22:23:02.402Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626835 ; -- 2021-02-18T22:23:02.406Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626836 ; -- 2021-02-18T22:23:02.407Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626836 ; -- 2021-02-18T22:23:02.410Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626836 ; -- 2021-02-18T22:23:02.415Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626831 ; -- 2021-02-18T22:23:02.416Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626831 ; -- 2021-02-18T22:23:02.419Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626831 ; -- 2021-02-18T22:23:02.422Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626832 ; -- 2021-02-18T22:23:02.423Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626832 ; -- 2021-02-18T22:23:02.427Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626832 ; -- 2021-02-18T22:23:02.431Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626833 ; -- 2021-02-18T22:23:02.431Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626833 ; -- 2021-02-18T22:23:02.434Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626833 ; -- 2021-02-18T22:23:02.438Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626838 ; -- 2021-02-18T22:23:02.438Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626838 ; -- 2021-02-18T22:23:02.439Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626838 ; -- 2021-02-18T22:23:02.442Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626837 ; -- 2021-02-18T22:23:02.443Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626837 ; -- 2021-02-18T22:23:02.445Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626837 ; -- 2021-02-18T22:23:02.451Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626842 ; -- 2021-02-18T22:23:02.451Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626842 ; -- 2021-02-18T22:23:02.456Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626842 ; -- 2021-02-18T22:23:02.460Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626841 ; -- 2021-02-18T22:23:02.460Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626841 ; -- 2021-02-18T22:23:02.463Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626841 ; -- 2021-02-18T22:23:02.465Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626839 ; -- 2021-02-18T22:23:02.465Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626839 ; -- 2021-02-18T22:23:02.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626839 ; -- 2021-02-18T22:23:02.470Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626834 ; -- 2021-02-18T22:23:02.470Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626834 ; -- 2021-02-18T22:23:02.472Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626834 ; -- 2021-02-18T22:23:02.475Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=543241 ; -- 2021-02-18T22:23:02.476Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=543241 ; -- 2021-02-18T22:23:03.253Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575605 ; -- 2021-02-18T22:23:03.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626852 ; -- 2021-02-18T22:23:03.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626852 ; -- 2021-02-18T22:23:03.259Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626852 ; -- 2021-02-18T22:23:03.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575604 ; -- 2021-02-18T22:23:03.264Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626856 ; -- 2021-02-18T22:23:03.265Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626856 ; -- 2021-02-18T22:23:03.267Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626856 ; -- 2021-02-18T22:23:03.271Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626848 ; -- 2021-02-18T22:23:03.271Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626848 ; -- 2021-02-18T22:23:03.274Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626848 ; -- 2021-02-18T22:23:03.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626849 ; -- 2021-02-18T22:23:03.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626849 ; -- 2021-02-18T22:23:03.280Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626849 ; -- 2021-02-18T22:23:03.286Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575603 ; -- 2021-02-18T22:23:03.287Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626844 ; -- 2021-02-18T22:23:03.287Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626844 ; -- 2021-02-18T22:23:03.289Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626844 ; -- 2021-02-18T22:23:03.293Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626845 ; -- 2021-02-18T22:23:03.294Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626845 ; -- 2021-02-18T22:23:03.294Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626845 ; -- 2021-02-18T22:23:03.298Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626846 ; -- 2021-02-18T22:23:03.299Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626846 ; -- 2021-02-18T22:23:03.300Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626846 ; -- 2021-02-18T22:23:03.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626851 ; -- 2021-02-18T22:23:03.304Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626851 ; -- 2021-02-18T22:23:03.305Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626851 ; -- 2021-02-18T22:23:03.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626850 ; -- 2021-02-18T22:23:03.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626850 ; -- 2021-02-18T22:23:03.310Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626850 ; -- 2021-02-18T22:23:03.314Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575599 ; -- 2021-02-18T22:23:03.315Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626855 ; -- 2021-02-18T22:23:03.315Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626855 ; -- 2021-02-18T22:23:03.317Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626855 ; -- 2021-02-18T22:23:03.321Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575601 ; -- 2021-02-18T22:23:03.322Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626854 ; -- 2021-02-18T22:23:03.322Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626854 ; -- 2021-02-18T22:23:03.323Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626854 ; -- 2021-02-18T22:23:03.328Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575602 ; -- 2021-02-18T22:23:03.328Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626853 ; -- 2021-02-18T22:23:03.329Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626853 ; -- 2021-02-18T22:23:03.329Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626853 ; -- 2021-02-18T22:23:03.334Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575600 ; -- 2021-02-18T22:23:03.335Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626847 ; -- 2021-02-18T22:23:03.335Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626847 ; -- 2021-02-18T22:23:03.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626847 ; -- 2021-02-18T22:23:03.440Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544673 ; -- 2021-02-18T22:23:03.441Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543126 ; -- 2021-02-18T22:23:03.442Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=542455 ; -- 2021-02-18T22:23:03.446Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=542455 ; -- 2021-02-18T22:23:03.447Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=543242 ; -- 2021-02-18T22:23:03.448Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=543242 ; -- 2021-02-18T22:23:03.559Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575607 ; -- 2021-02-18T22:23:03.560Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626865 ; -- 2021-02-18T22:23:03.562Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626865 ; -- 2021-02-18T22:23:03.566Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626865 ; -- 2021-02-18T22:23:03.572Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575611 ; -- 2021-02-18T22:23:03.573Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626867 ; -- 2021-02-18T22:23:03.574Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626867 ; -- 2021-02-18T22:23:03.579Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626867 ; -- 2021-02-18T22:23:03.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626860 ; -- 2021-02-18T22:23:03.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626860 ; -- 2021-02-18T22:23:03.587Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626860 ; -- 2021-02-18T22:23:03.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626861 ; -- 2021-02-18T22:23:03.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626861 ; -- 2021-02-18T22:23:03.593Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626861 ; -- 2021-02-18T22:23:03.599Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575616 ; -- 2021-02-18T22:23:03.600Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626857 ; -- 2021-02-18T22:23:03.600Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626857 ; -- 2021-02-18T22:23:03.602Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626857 ; -- 2021-02-18T22:23:03.605Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626858 ; -- 2021-02-18T22:23:03.605Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626858 ; -- 2021-02-18T22:23:03.606Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626858 ; -- 2021-02-18T22:23:03.609Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626859 ; -- 2021-02-18T22:23:03.609Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626859 ; -- 2021-02-18T22:23:03.612Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626859 ; -- 2021-02-18T22:23:03.616Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626862 ; -- 2021-02-18T22:23:03.616Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626862 ; -- 2021-02-18T22:23:03.617Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626862 ; -- 2021-02-18T22:23:03.620Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626863 ; -- 2021-02-18T22:23:03.621Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626863 ; -- 2021-02-18T22:23:03.621Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626863 ; -- 2021-02-18T22:23:03.627Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575606 ; -- 2021-02-18T22:23:03.627Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626864 ; -- 2021-02-18T22:23:03.627Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626864 ; -- 2021-02-18T22:23:03.628Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626864 ; -- 2021-02-18T22:23:03.634Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575613 ; -- 2021-02-18T22:23:03.635Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626868 ; -- 2021-02-18T22:23:03.635Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626868 ; -- 2021-02-18T22:23:03.637Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626868 ; -- 2021-02-18T22:23:03.642Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575614 ; -- 2021-02-18T22:23:03.642Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626869 ; -- 2021-02-18T22:23:03.643Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626869 ; -- 2021-02-18T22:23:03.644Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626869 ; -- 2021-02-18T22:23:03.649Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575612 ; -- 2021-02-18T22:23:03.650Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626866 ; -- 2021-02-18T22:23:03.650Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626866 ; -- 2021-02-18T22:23:03.651Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626866 ; -- 2021-02-18T22:23:03.655Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575608 ; -- 2021-02-18T22:23:03.656Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626870 ; -- 2021-02-18T22:23:03.656Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626870 ; -- 2021-02-18T22:23:03.657Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626870 ; -- 2021-02-18T22:23:03.661Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575609 ; -- 2021-02-18T22:23:03.662Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626871 ; -- 2021-02-18T22:23:03.662Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626871 ; -- 2021-02-18T22:23:03.663Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626871 ; -- 2021-02-18T22:23:03.667Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575615 ; -- 2021-02-18T22:23:03.667Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626872 ; -- 2021-02-18T22:23:03.667Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626872 ; -- 2021-02-18T22:23:03.667Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626872 ; -- 2021-02-18T22:23:03.671Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575610 ; -- 2021-02-18T22:23:03.672Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626873 ; -- 2021-02-18T22:23:03.672Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626873 ; -- 2021-02-18T22:23:03.673Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626873 ; -- 2021-02-18T22:23:03.679Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544674 ; -- 2021-02-18T22:23:03.680Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543127 ; -- 2021-02-18T22:23:03.680Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=542456 ; -- 2021-02-18T22:23:03.682Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=542456 ; -- 2021-02-18T22:23:03.683Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=543243 ; -- 2021-02-18T22:23:03.684Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=543243 ; -- 2021-02-18T22:23:03.807Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575625 ; -- 2021-02-18T22:23:03.807Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626874 ; -- 2021-02-18T22:23:03.808Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626874 ; -- 2021-02-18T22:23:03.809Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626874 ; -- 2021-02-18T22:23:03.813Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575624 ; -- 2021-02-18T22:23:03.813Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626875 ; -- 2021-02-18T22:23:03.814Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626875 ; -- 2021-02-18T22:23:03.815Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626875 ; -- 2021-02-18T22:23:03.819Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626876 ; -- 2021-02-18T22:23:03.819Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626876 ; -- 2021-02-18T22:23:03.820Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626876 ; -- 2021-02-18T22:23:03.823Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626877 ; -- 2021-02-18T22:23:03.823Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626877 ; -- 2021-02-18T22:23:03.824Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626877 ; -- 2021-02-18T22:23:03.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575619 ; -- 2021-02-18T22:23:03.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626878 ; -- 2021-02-18T22:23:03.828Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626878 ; -- 2021-02-18T22:23:03.829Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626878 ; -- 2021-02-18T22:23:03.833Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575617 ; -- 2021-02-18T22:23:03.833Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626879 ; -- 2021-02-18T22:23:03.834Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626879 ; -- 2021-02-18T22:23:03.835Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626879 ; -- 2021-02-18T22:23:03.838Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575618 ; -- 2021-02-18T22:23:03.839Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626880 ; -- 2021-02-18T22:23:03.839Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626880 ; -- 2021-02-18T22:23:03.840Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626880 ; -- 2021-02-18T22:23:03.843Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626881 ; -- 2021-02-18T22:23:03.843Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626881 ; -- 2021-02-18T22:23:03.843Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626881 ; -- 2021-02-18T22:23:03.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575623 ; -- 2021-02-18T22:23:03.849Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626882 ; -- 2021-02-18T22:23:03.849Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626882 ; -- 2021-02-18T22:23:03.850Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626882 ; -- 2021-02-18T22:23:03.854Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575620 ; -- 2021-02-18T22:23:03.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626883 ; -- 2021-02-18T22:23:03.855Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626883 ; -- 2021-02-18T22:23:03.856Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626883 ; -- 2021-02-18T22:23:03.859Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575621 ; -- 2021-02-18T22:23:03.860Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626884 ; -- 2021-02-18T22:23:03.860Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626884 ; -- 2021-02-18T22:23:03.861Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626884 ; -- 2021-02-18T22:23:03.865Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575622 ; -- 2021-02-18T22:23:03.866Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626885 ; -- 2021-02-18T22:23:03.866Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626885 ; -- 2021-02-18T22:23:03.866Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626885 ; -- 2021-02-18T22:23:03.870Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544675 ; -- 2021-02-18T22:23:03.870Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543128 ; -- 2021-02-18T22:23:03.871Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=542457 ; -- 2021-02-18T22:23:03.872Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=542457 ; -- 2021-02-18T22:23:03.872Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=543244 ; -- 2021-02-18T22:23:03.873Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=543244 ; -- 2021-02-18T22:23:03.960Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575627 ; -- 2021-02-18T22:23:03.961Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626894 ; -- 2021-02-18T22:23:03.962Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626894 ; -- 2021-02-18T22:23:03.962Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626894 ; -- 2021-02-18T22:23:03.966Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575628 ; -- 2021-02-18T22:23:03.967Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626896 ; -- 2021-02-18T22:23:03.967Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626896 ; -- 2021-02-18T22:23:03.968Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626896 ; -- 2021-02-18T22:23:03.970Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626889 ; -- 2021-02-18T22:23:03.971Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626889 ; -- 2021-02-18T22:23:03.972Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626889 ; -- 2021-02-18T22:23:03.975Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626890 ; -- 2021-02-18T22:23:03.975Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626890 ; -- 2021-02-18T22:23:03.976Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626890 ; -- 2021-02-18T22:23:03.979Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575630 ; -- 2021-02-18T22:23:03.980Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626886 ; -- 2021-02-18T22:23:03.980Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626886 ; -- 2021-02-18T22:23:03.981Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626886 ; -- 2021-02-18T22:23:03.984Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626887 ; -- 2021-02-18T22:23:03.984Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626887 ; -- 2021-02-18T22:23:03.985Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626887 ; -- 2021-02-18T22:23:03.988Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626888 ; -- 2021-02-18T22:23:03.988Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626888 ; -- 2021-02-18T22:23:03.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626888 ; -- 2021-02-18T22:23:03.992Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626892 ; -- 2021-02-18T22:23:03.992Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626892 ; -- 2021-02-18T22:23:03.993Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626892 ; -- 2021-02-18T22:23:03.996Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626891 ; -- 2021-02-18T22:23:03.996Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626891 ; -- 2021-02-18T22:23:03.996Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626891 ; -- 2021-02-18T22:23:04Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575629 ; -- 2021-02-18T22:23:04.001Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626893 ; -- 2021-02-18T22:23:04.001Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626893 ; -- 2021-02-18T22:23:04.002Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626893 ; -- 2021-02-18T22:23:04.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575631 ; -- 2021-02-18T22:23:04.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626895 ; -- 2021-02-18T22:23:04.006Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626895 ; -- 2021-02-18T22:23:04.007Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626895 ; -- 2021-02-18T22:23:04.011Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575626 ; -- 2021-02-18T22:23:04.011Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626897 ; -- 2021-02-18T22:23:04.011Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626897 ; -- 2021-02-18T22:23:04.012Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626897 ; -- 2021-02-18T22:23:04.017Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575632 ; -- 2021-02-18T22:23:04.017Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626898 ; -- 2021-02-18T22:23:04.017Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626898 ; -- 2021-02-18T22:23:04.018Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626898 ; -- 2021-02-18T22:23:04.021Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544676 ; -- 2021-02-18T22:23:04.022Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543129 ; -- 2021-02-18T22:23:04.023Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=542458 ; -- 2021-02-18T22:23:04.023Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=542458 ; -- 2021-02-18T22:23:04.024Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=543245 ; -- 2021-02-18T22:23:04.024Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=543245 ; -- 2021-02-18T22:23:15.556Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575585 ; -- 2021-02-18T22:23:15.558Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575586 ; -- 2021-02-18T22:23:15.639Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementField WHERE AD_UI_ElementField_ID=540822 ; -- 2021-02-18T22:23:15.644Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575587 ; -- 2021-02-18T22:23:15.654Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575588 ; -- 2021-02-18T22:23:15.660Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575589 ; -- 2021-02-18T22:23:15.665Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575590 ; -- 2021-02-18T22:23:15.670Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544668 ; -- 2021-02-18T22:23:15.685Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575591 ; -- 2021-02-18T22:23:15.689Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575592 ; -- 2021-02-18T22:23:15.699Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575633 ; -- 2021-02-18T22:23:15.705Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544669 ; -- 2021-02-18T22:23:15.709Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543124 ; -- 2021-02-18T22:23:15.726Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575593 ; -- 2021-02-18T22:23:15.736Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575594 ; -- 2021-02-18T22:23:15.742Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575595 ; -- 2021-02-18T22:23:15.747Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544670 ; -- 2021-02-18T22:23:15.760Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575596 ; -- 2021-02-18T22:23:15.763Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544671 ; -- 2021-02-18T22:23:15.769Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575597 ; -- 2021-02-18T22:23:15.771Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=575598 ; -- 2021-02-18T22:23:15.773Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=544672 ; -- 2021-02-18T22:23:15.775Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543125 ; -- 2021-02-18T22:23:15.775Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=542454 ; -- 2021-02-18T22:23:15.777Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=542454 ; -- 2021-02-18T22:23:27.452Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626815 ; -- 2021-02-18T22:23:27.454Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626815 ; -- 2021-02-18T22:23:27.455Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626815 ; -- 2021-02-18T22:23:27.587Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626816 ; -- 2021-02-18T22:23:27.590Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626816 ; -- 2021-02-18T22:23:27.595Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626816 ; -- 2021-02-18T22:23:27.678Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626814 ; -- 2021-02-18T22:23:27.678Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626814 ; -- 2021-02-18T22:23:27.680Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626814 ; -- 2021-02-18T22:23:27.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626813 ; -- 2021-02-18T22:23:27.718Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626813 ; -- 2021-02-18T22:23:27.720Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626813 ; -- 2021-02-18T22:23:27.753Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626817 ; -- 2021-02-18T22:23:27.753Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626817 ; -- 2021-02-18T22:23:27.755Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626817 ; -- 2021-02-18T22:23:27.785Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626819 ; -- 2021-02-18T22:23:27.786Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626819 ; -- 2021-02-18T22:23:27.787Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626819 ; -- 2021-02-18T22:23:27.818Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626821 ; -- 2021-02-18T22:23:27.818Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626821 ; -- 2021-02-18T22:23:27.820Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626821 ; -- 2021-02-18T22:23:27.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626823 ; -- 2021-02-18T22:23:27.848Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626823 ; -- 2021-02-18T22:23:27.849Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626823 ; -- 2021-02-18T22:23:27.881Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626824 ; -- 2021-02-18T22:23:27.881Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626824 ; -- 2021-02-18T22:23:27.882Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626824 ; -- 2021-02-18T22:23:27.910Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626820 ; -- 2021-02-18T22:23:27.911Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626820 ; -- 2021-02-18T22:23:27.911Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626820 ; -- 2021-02-18T22:23:27.943Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626822 ; -- 2021-02-18T22:23:27.944Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626822 ; -- 2021-02-18T22:23:27.944Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626822 ; -- 2021-02-18T22:23:27.973Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626825 ; -- 2021-02-18T22:23:27.974Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626825 ; -- 2021-02-18T22:23:27.974Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626825 ; -- 2021-02-18T22:23:28.004Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626826 ; -- 2021-02-18T22:23:28.004Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626826 ; -- 2021-02-18T22:23:28.005Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626826 ; -- 2021-02-18T22:23:28.035Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626899 ; -- 2021-02-18T22:23:28.035Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626899 ; -- 2021-02-18T22:23:28.036Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626899 ; -- 2021-02-18T22:23:28.066Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626808 ; -- 2021-02-18T22:23:28.067Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626808 ; -- 2021-02-18T22:23:28.068Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626808 ; -- 2021-02-18T22:23:28.096Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626809 ; -- 2021-02-18T22:23:28.096Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626809 ; -- 2021-02-18T22:23:28.098Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626809 ; -- 2021-02-18T22:23:28.128Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626810 ; -- 2021-02-18T22:23:28.128Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626810 ; -- 2021-02-18T22:23:28.129Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626810 ; -- 2021-02-18T22:23:28.157Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626811 ; -- 2021-02-18T22:23:28.157Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626811 ; -- 2021-02-18T22:23:28.159Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626811 ; -- 2021-02-18T22:23:28.189Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626812 ; -- 2021-02-18T22:23:28.189Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626812 ; -- 2021-02-18T22:23:28.191Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626812 ; -- 2021-02-18T22:23:28.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626818 ; -- 2021-02-18T22:23:28.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626818 ; -- 2021-02-18T22:23:28.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626818 ; -- 2021-02-18T22:23:28.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626827 ; -- 2021-02-18T22:23:28.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626827 ; -- 2021-02-18T22:23:28.250Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626827 ; -- 2021-02-18T22:23:28.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626828 ; -- 2021-02-18T22:23:28.278Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626828 ; -- 2021-02-18T22:23:28.279Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626828 ; -- 2021-02-18T22:23:28.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626829 ; -- 2021-02-18T22:23:28.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626829 ; -- 2021-02-18T22:23:28.308Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626829 ; -- 2021-02-18T22:23:28.337Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=626830 ; -- 2021-02-18T22:23:28.338Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=626830 ; -- 2021-02-18T22:23:28.339Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=626830 ;
the_stack
-- +migrate Up -- create new tables -- makes migration/testing easier than trying to rename, alter AND recreate CREATE TABLE escalation_policies ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name TEXT NOT NULL UNIQUE, description TEXT NOT NULL DEFAULT '', repeat INT NOT NULL DEFAULT 0 ); CREATE TABLE escalation_policy_steps ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), delay INT NOT NULL DEFAULT 1, step_number INT NOT NULL DEFAULT -1, escalation_policy_id UUID NOT NULL REFERENCES escalation_policies (id) ON DELETE CASCADE, UNIQUE (escalation_policy_id, step_number) ); CREATE TABLE services ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name TEXT NOT NULL UNIQUE, description TEXT NOT NULL DEFAULT '', escalation_policy_id UUID NOT NULL REFERENCES escalation_policies (id) ); -- copy data over INSERT INTO escalation_policies (id, name, description, repeat) SELECT id::UUID, name, description, repeat FROM escalation_policy; INSERT INTO escalation_policy_steps (id, delay, step_number, escalation_policy_id) SELECT id::UUID, delay, step_number, escalation_policy_id::UUID FROM escalation_policy_step; INSERT INTO services (id, name, description, escalation_policy_id) SELECT id::UUID, name, description, escalation_policy_id::UUID FROM service; -- drop views DROP VIEW needs_notification_sent, on_call_alert_users, alert_escalation_levels; ALTER TABLE alerts DROP CONSTRAINT alerts_service_id_fkey, ALTER service_id TYPE UUID USING service_id::UUID, ADD CONSTRAINT alerts_services_id_fkey FOREIGN KEY (service_id) REFERENCES services (id) ON DELETE CASCADE; ALTER TABLE escalation_policy_actions DROP CONSTRAINT escalation_policy_actions_escalation_policy_step_id_fkey, ALTER escalation_policy_step_id TYPE UUID USING escalation_policy_step_id::UUID, ADD CONSTRAINT escalation_policy_actions_escalation_policy_step_id_fkey FOREIGN KEY (escalation_policy_step_id) REFERENCES escalation_policy_steps (id) ON DELETE CASCADE; ALTER TABLE integration_keys DROP CONSTRAINT integration_keys_service_id_fkey, ALTER service_id TYPE UUID USING service_id::UUID, ADD CONSTRAINT integration_keys_services_id_fkey FOREIGN KEY (service_id) REFERENCES services (id) ON DELETE CASCADE; CREATE VIEW alert_escalation_levels AS SELECT alerts.id AS alert_id, count(step.id) AS levels, alerts.escalation_level::bigint % count(step.id) AS relative_level FROM alerts, escalation_policy_steps step, services s WHERE step.escalation_policy_id = s.escalation_policy_id AND s.id = alerts.service_id GROUP BY alerts.id; CREATE VIEW on_call_alert_users AS WITH alert_users AS ( SELECT act.user_id, act.schedule_id, a.id AS alert_id, a.status, a.escalation_level FROM alerts a, services s, alert_escalation_levels lvl, escalation_policy_steps step, escalation_policy_actions act WHERE s.id = a.service_id AND lvl.alert_id = a.id AND step.escalation_policy_id = s.escalation_policy_id AND step.step_number = lvl.relative_level AND a.status <> 'closed'::enum_alert_status AND act.escalation_policy_step_id = step.id GROUP BY act.user_id, act.schedule_id, a.id ) SELECT DISTINCT au.alert_id, au.status, CASE WHEN au.user_id IS NULL THEN oc.user_id ELSE au.user_id END AS user_id, au.escalation_level FROM alert_users au LEFT JOIN on_call oc ON au.schedule_id = oc.schedule_id; CREATE VIEW needs_notification_sent AS SELECT DISTINCT cs.alert_id, nr.contact_method_id, cm.type, cm.value, a.description, s.name AS service_name, nr.id AS notification_rule_id, cs.escalation_level, cs.cycle_id FROM user_notification_cycle_state cs, alerts a, user_contact_methods cm, user_notification_rules nr, services s WHERE a.id = cs.alert_id AND a.status = 'triggered'::enum_alert_status AND cs.escalation_level = a.escalation_level AND cm.id = nr.contact_method_id AND nr.id = cs.notification_rule_id AND s.id = a.service_id AND cs.pending AND NOT cs.future; -- +migrate StatementBegin CREATE OR REPLACE FUNCTION set_escalation_policy_step() RETURNS TRIGGER AS $$ BEGIN SELECT count(step_number) INTO NEW.step_number FROM escalation_policy_steps WHERE escalation_policy_id = NEW.escalation_policy_id; RETURN NEW; END; $$ LANGUAGE 'plpgsql'; -- +migrate StatementEnd -- +migrate StatementBegin CREATE OR REPLACE FUNCTION incr_escalation_policy_steps_on_delete() RETURNS TRIGGER AS $$ BEGIN UPDATE escalation_policy_steps SET step_number = step_number-1 WHERE escalation_policy_id = OLD.escalation_policy_id AND step_number > OLD.step_number; RETURN OLD; END; $$ LANGUAGE 'plpgsql'; -- +migrate StatementEnd -- +migrate StatementBegin CREATE OR REPLACE FUNCTION escalate_alerts() RETURNS VOID AS $$ BEGIN UPDATE alerts a SET escalation_level = escalation_level + 1, last_escalation = now() FROM services s, escalation_policy_steps step, alert_escalation_levels lvl, escalation_policies e WHERE (last_escalation + (step.delay::TEXT||' minutes')::interval) < now() AND a.status = 'triggered'::enum_alert_status AND s.id = a.service_id AND step.escalation_policy_id = s.escalation_policy_id AND lvl.alert_id = a.id AND step.step_number = ((a.escalation_level + 1) % lvl.levels) AND e.id = s.escalation_policy_id AND (e.repeat = -1 OR escalation_level / lvl.levels < e.repeat); END; $$ LANGUAGE 'plpgsql'; -- +migrate StatementEnd CREATE TRIGGER incr_escalation_policy_steps_on_delete AFTER DELETE ON escalation_policy_steps FOR EACH ROW EXECUTE PROCEDURE incr_escalation_policy_steps_on_delete(); CREATE TRIGGER set_escalation_policy_step_on_insert BEFORE INSERT ON escalation_policy_steps FOR EACH ROW EXECUTE PROCEDURE set_escalation_policy_step(); DROP TABLE service, escalation_policy_step, escalation_policy; -- +migrate Down -- start by creating old tables CREATE TABLE escalation_policy ( id text DEFAULT (gen_random_uuid())::text NOT NULL PRIMARY KEY, description text DEFAULT ''::text NOT NULL, name text UNIQUE, repeat integer DEFAULT 0 NOT NULL ); CREATE TABLE service ( id text PRIMARY KEY NOT NULL, description text DEFAULT ''::text NOT NULL, name text NOT NULL UNIQUE, escalation_policy_id text REFERENCES escalation_policy (id) ); CREATE TABLE escalation_policy_step ( id text DEFAULT (gen_random_uuid())::text NOT NULL PRIMARY KEY, delay integer DEFAULT 1 NOT NULL, step_number integer, escalation_policy_id text REFERENCES escalation_policy (id) ON DELETE CASCADE, UNIQUE(step_number, escalation_policy_id) ); -- drop views DROP VIEW needs_notification_sent, on_call_alert_users, alert_escalation_levels; -- copy data over INSERT INTO escalation_policy (id, name, description, repeat) SELECT id::text, name, description, repeat FROM escalation_policies; INSERT INTO escalation_policy_step (id, delay, step_number, escalation_policy_id) SELECT id::text, delay, step_number, escalation_policy_id::text FROM escalation_policy_steps; INSERT INTO service (id, name, description, escalation_policy_id) SELECT id::text, name, description, escalation_policy_id::text FROM services; ALTER TABLE alerts DROP CONSTRAINT alerts_services_id_fkey, ALTER service_id TYPE TEXT USING service_id::TEXT, ADD CONSTRAINT alerts_service_id_fkey FOREIGN KEY (service_id) REFERENCES service (id) ON DELETE CASCADE; ALTER TABLE escalation_policy_actions DROP CONSTRAINT escalation_policy_actions_escalation_policy_step_id_fkey, ALTER escalation_policy_step_id TYPE TEXT USING escalation_policy_step_id::TEXT, ADD CONSTRAINT escalation_policy_actions_escalation_policy_step_id_fkey FOREIGN KEY (escalation_policy_step_id) REFERENCES escalation_policy_step (id) ON DELETE CASCADE; ALTER TABLE integration_keys DROP CONSTRAINT integration_keys_services_id_fkey, ALTER service_id TYPE TEXT USING service_id::TEXT, ADD CONSTRAINT integration_keys_service_id_fkey FOREIGN KEY (service_id) REFERENCES service (id) ON DELETE CASCADE; -- restore old views CREATE VIEW alert_escalation_levels AS SELECT alerts.id AS alert_id, count(step.id) AS levels, ((alerts.escalation_level)::bigint % count(step.id)) AS relative_level FROM alerts, escalation_policy_step step, service WHERE ((step.escalation_policy_id = service.escalation_policy_id) AND (service.id = alerts.service_id)) GROUP BY alerts.id; CREATE VIEW on_call_alert_users AS WITH alert_users AS ( SELECT act.user_id, act.schedule_id, a.id AS alert_id, a.status, a.escalation_level FROM alerts a, service s, alert_escalation_levels lvl, escalation_policy_step step, escalation_policy_actions act WHERE ((s.id = a.service_id) AND (lvl.alert_id = a.id) AND (step.escalation_policy_id = s.escalation_policy_id) AND (step.step_number = lvl.relative_level) AND (a.status <> 'closed'::enum_alert_status) AND (act.escalation_policy_step_id = step.id)) GROUP BY act.user_id, act.schedule_id, a.id ) SELECT DISTINCT au.alert_id, au.status, CASE WHEN (au.user_id IS NULL) THEN oc.user_id ELSE au.user_id END AS user_id, au.escalation_level FROM (alert_users au LEFT JOIN on_call oc ON ((au.schedule_id = oc.schedule_id))); CREATE VIEW needs_notification_sent AS SELECT DISTINCT cs.alert_id, nr.contact_method_id, cm.type, cm.value, a.description, s.name AS service_name, nr.id AS notification_rule_id, cs.escalation_level, cs.cycle_id FROM user_notification_cycle_state cs, alerts a, user_contact_methods cm, user_notification_rules nr, service s WHERE ((a.id = cs.alert_id) AND (a.status = 'triggered'::enum_alert_status) AND (cs.escalation_level = a.escalation_level) AND (cm.id = nr.contact_method_id) AND (nr.id = cs.notification_rule_id) AND (s.id = a.service_id) AND cs.pending AND (NOT cs.future)); -- restore old function code -- +migrate StatementBegin CREATE OR REPLACE FUNCTION set_escalation_policy_step() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN SELECT count(step_number) INTO NEW.step_number FROM escalation_policy_step WHERE escalation_policy_id = NEW.escalation_policy_id; RETURN NEW; END; $$; -- +migrate StatementEnd -- +migrate StatementBegin CREATE OR REPLACE FUNCTION incr_escalation_policy_steps_on_delete() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN UPDATE escalation_policy_step SET step_number = step_number-1 WHERE escalation_policy_id = OLD.escalation_policy_id AND step_number > OLD.step_number; RETURN OLD; END; $$; -- +migrate StatementEnd -- +migrate StatementBegin CREATE OR REPLACE FUNCTION escalate_alerts() RETURNS void LANGUAGE plpgsql AS $$ BEGIN UPDATE alerts a SET escalation_level = escalation_level + 1, last_escalation = now() FROM service s, escalation_policy_step step, alert_escalation_levels lvl, escalation_policy e WHERE (last_escalation + (step.delay::TEXT||' minutes')::interval) < now() AND a.status = 'triggered'::enum_alert_status AND s.id = a.service_id AND step.escalation_policy_id = s.escalation_policy_id AND lvl.alert_id = a.id AND step.step_number = (a.escalation_level % lvl.levels) AND e.id = s.escalation_policy_id AND (e.repeat = -1 OR (escalation_level+1) / lvl.levels <= e.repeat); END; $$; -- +migrate StatementEnd CREATE TRIGGER incr_escalation_policy_steps_on_delete AFTER DELETE ON escalation_policy_step FOR EACH ROW EXECUTE PROCEDURE incr_escalation_policy_steps_on_delete(); CREATE TRIGGER set_escalation_policy_step_on_insert BEFORE INSERT ON escalation_policy_step FOR EACH ROW EXECUTE PROCEDURE set_escalation_policy_step(); DROP TABLE escalation_policy_steps, services, escalation_policies;
the_stack
-- MySQL dump 10.13 Distrib 5.6.39, for osx10.12 (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.6.39 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `ad_campaign` -- DROP TABLE IF EXISTS `ad_campaign`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; # WARNING: Cannot generate character set or collation names without the --server option. # CAUTION: The diagnostic mode is a best-effort parse of the .frm file. As such, it may not identify all of the components of the table correctly. This is especially true for damaged files. It will also not read the default values for the columns and the resulting statement may not be syntactically correct. # Reading .frm file for test2.frm: # The .frm file is a TABLE. # CREATE TABLE Statement: CREATE TABLE `ad_campaign` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` bigint(20) NOT NULL, `name` varchar(128) NOT NULL, `budget` mediumint(9) NOT NULL, `state` smallint(6) NOT NULL, `create_time` datetime NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='ad_campaign'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `date_table` -- DROP TABLE IF EXISTS `date_table`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `date_table` ( `id` int(10) NOT NULL AUTO_INCREMENT, `d1` datetime NOT NULL, `d2` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `d3` datetime NOT NULL, `d4` time NOT NULL, `d5` date NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='date_table'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `emps` -- DROP TABLE IF EXISTS `emps`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emps` ( `empid` bigint(20) NOT NULL, `deptno` int(11) NOT NULL DEFAULT '0', `name` varchar(10) NOT NULL, `salary` decimal(6,2) NOT NULL, `age` mediumint(9) NOT NULL, `join_date` datetime NOT NULL, PRIMARY KEY (`deptno`,`empid`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `keyword` -- DROP TABLE IF EXISTS `keyword`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `keyword` ( `id` bigint(20) NOT NULL, `keyword` varchar(200) NOT NULL, PRIMARY KEY (`id`), KEY `idx_keyword` (`keyword`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='keyword'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `nullable_table` -- DROP TABLE IF EXISTS `nullable_table`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `nullable_table` ( `id` int(10) NOT NULL AUTO_INCREMENT, `int_value` int(11) DEFAULT NULL COMMENT '测试字段', `long_value` bigint(20) DEFAULT NULL COMMENT '测试字段', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='nullable_table'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t` -- DROP TABLE IF EXISTS `t`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t1` -- DROP TABLE IF EXISTS `t1`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t1` ( `id` int(11) NOT NULL, `a` int(11) DEFAULT NULL, `b` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `a` (`a`), KEY `b` (`b`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t2` -- DROP TABLE IF EXISTS `t2`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t2` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t3` -- DROP TABLE IF EXISTS `t3`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t3` ( `id` int(11) NOT NULL, `a` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t4` -- DROP TABLE IF EXISTS `t4`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t4` ( `id` int(11) NOT NULL, `b` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t5` -- DROP TABLE IF EXISTS `t5`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t5` ( `id` int(11) NOT NULL, `b` varchar(32) DEFAULT 'ABC', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t6` -- DROP TABLE IF EXISTS `t6`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t6` ( `id` int(11) NOT NULL, `b` varchar(32) DEFAULT 'ABC', `c` varchar(32) NOT NULL, `d` varchar(32) DEFAULT 'DEF', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t7` -- DROP TABLE IF EXISTS `t7`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t7` ( `id` int(11) NOT NULL, `b` varchar(32) DEFAULT 'ABC', `c` varchar(254) NOT NULL, `d` varchar(1024) DEFAULT 'DEF', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t8` -- DROP TABLE IF EXISTS `t8`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t8` ( `id` int(11) NOT NULL, `a` int(11) NOT NULL, `b` varchar(64) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `t9` -- DROP TABLE IF EXISTS `t9`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t9` ( `id` int(11) NOT NULL, `a` int(11) DEFAULT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) DEFAULT 'DEF', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb01` -- DROP TABLE IF EXISTS `tb01`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb01` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) DEFAULT 'THIS_IS_DEFAULT_VALUE', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb02` -- DROP TABLE IF EXISTS `tb02`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb02` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `c_utinyint` tinyint(11) unsigned NOT NULL, `c_tinyint` tinyint(11) NOT NULL, `c_usmallint` smallint(11) unsigned NOT NULL, `c_smallint` smallint(11) NOT NULL, `c_umediumint` mediumint(11) unsigned NOT NULL, `c_mediumint` mediumint(11) NOT NULL, `c_uint` int(11) unsigned NOT NULL, `c_int` int(11) NOT NULL, `c_ubigint` bigint(20) unsigned NOT NULL, `c_bigint` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb03` -- DROP TABLE IF EXISTS `tb03`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb03` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) NOT NULL, `b` datetime NOT NULL, `c` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `d` time NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb04` -- DROP TABLE IF EXISTS `tb04`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb04` ( `id` int(11) NOT NULL, `a` varchar(32) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(254) NOT NULL, `d` varchar(255) NOT NULL, `e` varchar(256) NOT NULL, `f` varchar(512) NOT NULL, `g` varchar(16384) NOT NULL, `h` varchar(47474) NOT NULL, `i` char(1) NOT NULL, `j` char(32) NOT NULL, `k` char(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb04utf8mb4` -- DROP TABLE IF EXISTS `tb04utf8mb4`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb04utf8mb4` ( `id` int(11) NOT NULL, `a` varchar(32) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(254) NOT NULL, `d` varchar(255) NOT NULL, `e` varchar(256) NOT NULL, `f` varchar(512) NOT NULL, `g` varchar(768) NOT NULL, `h` varchar(13950) NOT NULL, `i` char(1) NOT NULL, `j` char(32) NOT NULL, `k` char(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb05` -- DROP TABLE IF EXISTS `tb05`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb05` ( `id` int(11) NOT NULL, `a` varchar(9) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb06` -- DROP TABLE IF EXISTS `tb06`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb06` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(16380) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb07` -- DROP TABLE IF EXISTS `tb07`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; --CREATE TABLE `tb07` ( -- `id` int(11) NOT NULL, -- `a` varbinary(32) NOT NULL, -- `b` varbinary(255) NOT NULL, -- `c` varbinary(512) NOT NULL, -- `d` binary(32) NOT NULL, -- `e` binary(255) NOT NULL, -- PRIMARY KEY (`id`) --) ENGINE=InnoDB DEFAULT CHARSET=latin1; --/*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb08` -- DROP TABLE IF EXISTS `tb08`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb08` ( `id` int(11) NOT NULL, `a` tinytext NOT NULL, `b` text NOT NULL, `c` mediumtext NOT NULL, `d` longtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb09` -- DROP TABLE IF EXISTS `tb09`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb09` ( `id` int(11) NOT NULL, `a` tinyblob NOT NULL, `b` blob NOT NULL, `c` mediumblob NOT NULL, `d` longblob NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb10` -- DROP TABLE IF EXISTS `tb10`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb10` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb100` -- DROP TABLE IF EXISTS `tb100`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb100` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb101` -- DROP TABLE IF EXISTS `tb101`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb101` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb11` -- DROP TABLE IF EXISTS `tb11`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb11` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb12` -- DROP TABLE IF EXISTS `tb12`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb12` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` bigint(20) DEFAULT '999', `b` varchar(32) NOT NULL, `c` varchar(32) DEFAULT NULL, `d` varchar(32) DEFAULT 'sorry', `e` text NOT NULL, `f` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb13` -- DROP TABLE IF EXISTS `tb13`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb13` ( `id` int(11) NOT NULL, `a` bigint(20) NOT NULL, `b` varchar(64) NOT NULL, `c` varchar(1024) DEFAULT 'THIS_IS_DEFAULT_VALUE', PRIMARY KEY (`id`), UNIQUE KEY `b_a_idx` (`b`,`a`), KEY `a_idx` (`a`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb14` -- DROP TABLE IF EXISTS `tb14`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb14` ( `id` int(11) NOT NULL, `a1` varchar(10) NOT NULL, `a2` varchar(10) DEFAULT NULL, `a3` varchar(10) NOT NULL, `a4` varchar(10) DEFAULT NULL, `a5` varchar(10) NOT NULL, `a6` varchar(10) DEFAULT NULL, `a7` varchar(10) NOT NULL, `a8` varchar(10) DEFAULT NULL, `a9` varchar(10) NOT NULL, `a10` varchar(10) DEFAULT NULL, `a11` varchar(10) NOT NULL, `a12` varchar(10) DEFAULT NULL, `a13` varchar(10) NOT NULL, `a14` varchar(10) DEFAULT NULL, `a15` varchar(10) NOT NULL, `a16` varchar(10) DEFAULT NULL, `a17` varchar(10) NOT NULL, `a18` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb15` -- DROP TABLE IF EXISTS `tb15`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb15` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `c_float` float NOT NULL, `c_double` double NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb16` -- DROP TABLE IF EXISTS `tb16`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb16` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` year(4) NOT NULL, `b` date NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb17` -- DROP TABLE IF EXISTS `tb17`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb17` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) NOT NULL, `b` datetime(3) NOT NULL, `c` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `d` time(5) NOT NULL, `e` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb18` -- DROP TABLE IF EXISTS `tb18`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb18` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` tinyint(1) NOT NULL, `b` tinyint(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb19` -- DROP TABLE IF EXISTS `tb19`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb19` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` decimal(6,0) NOT NULL, `b` decimal(10,5) NOT NULL, `c` decimal(12,0) NOT NULL, `d` decimal(10,0) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb20` -- DROP TABLE IF EXISTS `tb20`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb20` ( `id` int(11) NOT NULL, `a` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `b` varchar(1024) CHARACTER SET utf8 NOT NULL, `c` varchar(256) CHARACTER SET gbk COLLATE gbk_bin DEFAULT '', `d` varchar(1024) CHARACTER SET gbk COLLATE gbk_bin DEFAULT '', `e` varchar(512) CHARACTER SET ujis NOT NULL, `f` varchar(1024) CHARACTER SET ujis DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb21` -- DROP TABLE IF EXISTS `tb21`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb21` ( `c1` varchar(30) NOT NULL, `c2` varchar(30) DEFAULT NULL, `c3` varchar(30) NOT NULL, `c4` varchar(30) DEFAULT NULL, `c5` varchar(30) NOT NULL, `c6` varchar(30) DEFAULT NULL, `c7` varchar(30) NOT NULL, `c8` varchar(30) DEFAULT NULL, `c9` varchar(30) NOT NULL, `c10` varchar(30) DEFAULT NULL, `c11` varchar(30) NOT NULL, `c12` varchar(30) DEFAULT NULL, PRIMARY KEY (`c5`,`c3`,`c9`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb22` -- DROP TABLE IF EXISTS `tb22`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb22` ( `a` int(11) NOT NULL, `b` varchar(30) NOT NULL, `c` varchar(20) NOT NULL, PRIMARY KEY (`b`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb23` -- DROP TABLE IF EXISTS `tb23`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb23` ( `c1` varchar(30) NOT NULL, `c2` varchar(30) DEFAULT NULL, `c3` varchar(30) NOT NULL, `c4` varchar(30) DEFAULT NULL, `c5` varchar(30) NOT NULL, `c6` varchar(30) DEFAULT NULL, `c7` varchar(30) NOT NULL, `c8` varchar(30) DEFAULT NULL, `c9` varchar(30) NOT NULL, `c10` varchar(30) DEFAULT NULL, `c11` varchar(30) NOT NULL, `c12` varchar(30) DEFAULT NULL, PRIMARY KEY (`c5`,`c3`,`c9`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `tb24` -- DROP TABLE IF EXISTS `tb24`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tb24` ( `c1` varchar(100) NOT NULL, `c2` int(10) NOT NULL DEFAULT '0', `c3` varchar(100) NOT NULL, `c4` varchar(100) NOT NULL, `c5` varchar(100) NOT NULL, `c6` varchar(100) NOT NULL, `c7` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `c8` varchar(100) NOT NULL, PRIMARY KEY (`c5`,`c2`,`c6`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `gender` tinyint(4) NOT NULL, `age` int(10) NOT NULL, `phone` varchar(64) NOT NULL, `address` varchar(1024) DEFAULT '', `profile` mediumtext NOT NULL, `birth_day` datetime NOT NULL, PRIMARY KEY (`id`), KEY `idx_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='user'; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2020-05-01 23:24:47
the_stack
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use this file except in compliance with -- the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1211',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1217',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1224',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1229',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1231',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1239',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1241',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1243',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1247',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1252',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1258',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1259',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-17',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-18',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-29',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1265',1,'2004-05-30',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-03-31',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-11',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-12',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-15',5,5,0); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-20',10,0,0); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-23',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-04-24',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-05-03',11,0,0); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-05-05',1,1,1); insert into FLIGHTAVAILABILITY values ('AA1271',1,'2004-05-06',2,2,2); insert into FLIGHTAVAILABILITY values ('AA1290',1,'2004-04-05',3,0,0); insert into FLIGHTAVAILABILITY values ('AA1285',1,'2004-04-11',3,0,0); insert into FLIGHTAVAILABILITY values ('AA1223',2,'2004-04-11',3,0,0); insert into FLIGHTAVAILABILITY values ('US1552',1,'2004-04-19',3,0,0); insert into FLIGHTAVAILABILITY values ('AA1221',1,'2004-04-19',3,0,0); insert into FLIGHTAVAILABILITY values ('US1518',1,'2004-04-12',0,0,3); insert into FLIGHTAVAILABILITY values ('US1518',2,'2004-04-12',0,0,3); insert into FLIGHTAVAILABILITY values ('US1499',1,'2004-04-25',0,0,3); insert into FLIGHTAVAILABILITY values ('US1404',1,'2004-04-30',0,3,0); insert into FLIGHTAVAILABILITY values ('US1519',2,'2004-04-30',0,3,0); insert into FLIGHTAVAILABILITY values ('US1560',1,'2004-04-25',0,3,0); insert into FLIGHTAVAILABILITY values ('US1276',2,'2004-05-05',0,3,0); insert into FLIGHTAVAILABILITY values ('US1439',1,'2004-05-15',0,3,0); insert into FLIGHTAVAILABILITY values ('AA1219',1,'2004-04-02',0,0,3); insert into FLIGHTAVAILABILITY values ('AA1248',1,'2004-04-02',0,0,3); insert into FLIGHTAVAILABILITY values ('AA1245',1,'2004-04-10',0,0,3); insert into FLIGHTAVAILABILITY values ('US1435',1,'2004-04-18',0,0,3); insert into FLIGHTAVAILABILITY values ('US1357',2,'2004-04-18',0,0,3);
the_stack
------- -- Set the C_Queue_PackageProcessors' internal names ------- -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='InvoiceCandWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540000 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='DocOutboundWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540001 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='PasswordResetWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540004 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='GenerateReceiptScheduleWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540006 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='UpdateReceiptScheduleWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540008 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='See http://dewiki908/mediawiki/index.php/04758_Bestellungen_an_Fax_Server_%C3%BCbermitteln_%282013081610000038%29', InternalName='DocOutboundCCWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540009 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='GenerateInOutFromHU',Updated=TO_TIMESTAMP('2015-10-12 15:31:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540010 ; -- 12.10.2015 15:31 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='See http://dewiki908/mediawiki/index.php/07042_Simple_InOut-Creation_from_shipment-schedule_%28109342691288%29', InternalName='GenerateInOutFromShipmentSchedules',Updated=TO_TIMESTAMP('2015-10-12 15:31:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540011 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='http://dewiki908/mediawiki/index.php/08577_ESR_Import_merge_from_%28107890741466%29', InternalName='LoadESRImportFileWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:32:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540013 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='See http://dewiki908/mediawiki/index.php/07373_Email_Versand_an_Urproduzent_mit_Button_Fertigstellen_und_Email_senden_in_Listen%C3%BCbersicht_%28104179228076%29', InternalName='MailWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:32:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540014 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='See http://dewiki908/mediawiki/index.php/08038_EDI_DESADV%2C_INVOIC_halbautomatisch_%28107606012432%29#Development_infrastructure', InternalName='EDIWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:32:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540015 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET Description='Generate planning HUs for submited receipt schedule(s). See http://dewiki908/mediawiki/index.php/08168_Verantwortlichkeit_Server_Betrieb_und_Auslegung_%28103370306103%29', InternalName='M_ReceiptSchedule_GeneratePlanningHUs_WorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:32:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540016 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='CheckProcessedAsynBatchWorkpackageProcessor',Updated=TO_TIMESTAMP('2015-10-12 15:32:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540020 ; -- 12.10.2015 15:32 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='M_Storage_Add',Updated=TO_TIMESTAMP('2015-10-12 15:32:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540022 ; -- 12.10.2015 15:33 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='C_BPartner_UpdateStatsFromInvoice',Updated=TO_TIMESTAMP('2015-10-12 15:33:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540023 ; -- 12.10.2015 15:33 -- URL zum Konzept UPDATE C_Queue_PackageProcessor SET InternalName='C_BPartner_UpdateStatsFromBPartner',Updated=TO_TIMESTAMP('2015-10-12 15:33:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_Queue_PackageProcessor_ID=540024 ; --------- -- create the AD_SysConfig records --------- -- 12.10.2015 15:36 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540893,'S',TO_TIMESTAMP('2015-10-12 15:36:12','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.async','Y','de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.01',TO_TIMESTAMP('2015-10-12 15:36:12','YYYY-MM-DD HH24:MI:SS'),100,'urgent') ; -- 12.10.2015 15:36 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540894,'S',TO_TIMESTAMP('2015-10-12 15:36:48','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.invoicecandidate','Y','de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.05',TO_TIMESTAMP('2015-10-12 15:36:48','YYYY-MM-DD HH24:MI:SS'),100,'high') ; -- 12.10.2015 15:36 -- URL zum Konzept UPDATE AD_SysConfig SET EntityType='de.metas.invoicecandidate',Updated=TO_TIMESTAMP('2015-10-12 15:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540893 ; -- 12.10.2015 15:37 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540895,'S',TO_TIMESTAMP('2015-10-12 15:37:49','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.invoicecandidate','Y','de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.15',TO_TIMESTAMP('2015-10-12 15:37:49','YYYY-MM-DD HH24:MI:SS'),100,'medium') ; -- 12.10.2015 15:38 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540896,'S',TO_TIMESTAMP('2015-10-12 15:38:17','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.invoicecandidate','Y','de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.30',TO_TIMESTAMP('2015-10-12 15:38:17','YYYY-MM-DD HH24:MI:SS'),100,'low') ; -- 12.10.2015 15:38 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540897,'S',TO_TIMESTAMP('2015-10-12 15:38:50','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.invoicecandidate','Y','de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.50',TO_TIMESTAMP('2015-10-12 15:38:50','YYYY-MM-DD HH24:MI:SS'),100,'minor') ; -- 12.10.2015 15:40 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540898,'S',TO_TIMESTAMP('2015-10-12 15:40:02','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inoutcandidate','Y','de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.01',TO_TIMESTAMP('2015-10-12 15:40:02','YYYY-MM-DD HH24:MI:SS'),100,'urgent') ; -- 12.10.2015 15:41 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540899,'S',TO_TIMESTAMP('2015-10-12 15:41:06','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inoutcandidate','Y','de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.05',TO_TIMESTAMP('2015-10-12 15:41:06','YYYY-MM-DD HH24:MI:SS'),100,'high') ; -- 12.10.2015 15:41 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540900,'S',TO_TIMESTAMP('2015-10-12 15:41:36','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inoutcandidate','Y','de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.15',TO_TIMESTAMP('2015-10-12 15:41:36','YYYY-MM-DD HH24:MI:SS'),100,'medium') ; -- 12.10.2015 15:42 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540901,'S',TO_TIMESTAMP('2015-10-12 15:42:09','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inoutcandidate','Y','de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.30',TO_TIMESTAMP('2015-10-12 15:42:09','YYYY-MM-DD HH24:MI:SS'),100,'low') ; -- 12.10.2015 15:42 -- URL zum Konzept INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,540902,'S',TO_TIMESTAMP('2015-10-12 15:42:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inoutcandidate','Y','de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.50',TO_TIMESTAMP('2015-10-12 15:42:40','YYYY-MM-DD HH24:MI:SS'),100,'minor') ; -- 12.10.2015 16:27 -- URL zum Konzept UPDATE AD_SysConfig SET Description='priority for the 1st enqueued workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:27:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540898 ; -- 12.10.2015 16:27 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 1st enqueued workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:27:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540898 ; -- 12.10.2015 16:27 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 1st enqueued invoicing workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:27:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540898 ; -- 12.10.2015 16:27 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 2nd to 5th enqueued invoicing workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:27:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540899 ; -- 12.10.2015 16:28 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 1st enqueued shipping workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540893 ; -- 12.10.2015 16:28 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 2nd to 5th enqueued shipping workpackage',Updated=TO_TIMESTAMP('2015-10-12 16:28:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540894 ; --------------- -- sysconfig fixes after code-fixes --------------- -- 13.10.2015 09:03 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 2nd enqueued invoicing workpackage onwards', Name='de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.02',Updated=TO_TIMESTAMP('2015-10-13 09:03:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540899 ; -- 13.10.2015 09:03 -- URL zum Konzept UPDATE AD_SysConfig SET Name='de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.06',Updated=TO_TIMESTAMP('2015-10-13 09:03:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540900 ; -- 13.10.2015 09:04 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 6th enqueued invoicing workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:04:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540900 ; -- 13.10.2015 09:04 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 16th enqueued invoicing workpackage onwards', Name='de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.16',Updated=TO_TIMESTAMP('2015-10-13 09:04:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540901 ; -- 13.10.2015 09:04 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 31st enqueued invoicing workpackage onwards', Name='de.metas.async.GenerateInOutFromShipmentSchedules.SizeBasedPrio.31',Updated=TO_TIMESTAMP('2015-10-13 09:04:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540902 ; -- 13.10.2015 09:04 -- URL zum Konzept UPDATE AD_SysConfig SET Name='de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.02',Updated=TO_TIMESTAMP('2015-10-13 09:04:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540894 ; -- 13.10.2015 09:04 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 2nd enqueued shipping workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:04:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540894 ; -- 13.10.2015 09:05 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 6th enqueued shipping workpackage onwards', Name='de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.06',Updated=TO_TIMESTAMP('2015-10-13 09:05:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540895 ; -- 13.10.2015 09:05 -- URL zum Konzept UPDATE AD_SysConfig SET Name='de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.16',Updated=TO_TIMESTAMP('2015-10-13 09:05:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540896 ; -- 13.10.2015 09:05 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 16th enqueued shipping workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:05:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540896 ; -- 13.10.2015 09:05 -- URL zum Konzept UPDATE AD_SysConfig SET Name='de.metas.async.InvoiceCandWorkpackageProcessor.SizeBasedPrio.31',Updated=TO_TIMESTAMP('2015-10-13 09:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540897 ; -- 13.10.2015 09:05 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 31st enqueued shipping workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540897 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 31st enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540897 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 16th enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540896 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 6th enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540895 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 2nd enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540894 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 1st enqueued workpackage',Updated=TO_TIMESTAMP('2015-10-13 09:10:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540893 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 31st enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540902 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 16th enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540901 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 6th enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540900 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority from the 2nd enqueued workpackage onwards',Updated=TO_TIMESTAMP('2015-10-13 09:10:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540899 ; -- 13.10.2015 09:10 -- URL zum Konzept UPDATE AD_SysConfig SET Description='Priority for the 1st enqueued workpackage',Updated=TO_TIMESTAMP('2015-10-13 09:10:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_SysConfig_ID=540898 ;
the_stack
USE bkdata_flow; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; drop table if exists dataflow_node_type_config; drop table if exists dataflow_rule_type; drop table if exists dataflow_node_type_rule; drop table if exists dataflow_node_type_group; drop table if exists dataflow_node_type_group_rule; drop table if exists dataflow_node_type_instance_config; drop table if exists dataflow_node_type_instance_rule; SET FOREIGN_KEY_CHECKS = 1; -- 节点类型配置表 CREATE TABLE IF not EXISTS `dataflow_node_type_config` ( `node_type_name` varchar(255) NOT NULL COMMENT '节点类型', `node_type_alias` varchar(255) NOT NULL COMMENT '节点类型名称', `parent_node_type_name` varchar(255) DEFAULT NULL COMMENT '上层节点类型,只允许一个', `available` tinyint(1) DEFAULT '1' COMMENT '是否启用该节点类型', `belongs_to` varchar(128) DEFAULT 'bkdata' COMMENT '这个字段标记是系统的(bkdata)还是用户的(other)', `scope` enum('private','public') NOT NULL DEFAULT 'public' COMMENT '标记节点类型的权限范围,可选有public|private', `order` int(11) NOT NULL COMMENT '同一层级的节点类型排序', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`node_type_name`), UNIQUE KEY `node_type_config_uniq1` (`node_type_name`,`parent_node_type_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow节点类型配置表'; INSERT INTO `dataflow_node_type_config` (`node_type_name`, `node_type_alias`, `parent_node_type_name`, `available`, `belongs_to`, `scope`, `order`, `description`) VALUES ('source', '数据源', NULL, 1, 'bkdata', 'public', 1, '数据源描述'), ('storage', '数据存储', NULL, 1, 'bkdata', 'public', 4, '存储描述'), ('modeling', '机器学习', NULL, 1, 'bkdata', 'public', 3, '机器学习描述'), ('processing', '数据处理', NULL, 1, 'bkdata', 'public', 2, '数据处理描述'), ('model', 'ModelFlow模型', 'modeling', 1, 'bkdata', 'public', 1, 'ModelFlow模型'), ('process_model', '单指标异常检测', 'modeling', 1, 'bkdata', 'public', 2, '单指标异常检测'), ('batch', '离线处理节点', 'processing', 1, 'bkdata', 'public', 2, '离线计算'), ('stream', '实时处理节点', 'processing', 1, 'bkdata', 'public', 1, '实时计算'), ('tdw_batch', '离线处理节点', 'processing', 1, 'bkdata', 'public', 4, 'TDW离线计算'), ('transform', '数据传输节点', 'processing', 1, 'bkdata', 'public', 3, '转换计算'), ('kv_source', '静态关联数据源', 'source', 1, 'bkdata', 'public', 3, '关联数据源'), ('tdw_source', 'TDW数据源', 'source', 1, 'bkdata', 'public', 4, 'TDW数据源'), ('batch_source', '离线数据源', 'source', 1, 'bkdata', 'public', 2, '离线数据源'), ('stream_source', '实时数据源', 'source', 1, 'bkdata', 'public', 1, '实时数据源'), ('mq', '队列存储', 'storage', 1, 'bkdata', 'public', 1, '队列存储'), ('tdw', 'TDW存储', 'storage', 1, 'bkdata', 'public', 8, 'TDW存储'), ('olap', '在线分析处理', 'storage', 1, 'bkdata', 'public', 4, '在线分析处理'), ('oltp', '在线事务处理', 'storage', 1, 'bkdata', 'public', 3, '在线事务处理'), ('tsdb', '时序数据库', 'storage', 1, 'bkdata', 'public', 7, '时序数据库'), ('search', '搜索型存储', 'storage', 1, 'bkdata', 'public', 5, '搜索型存储'), ('key_value', '键值对存储', 'storage', 1, 'bkdata', 'public', 2, '键值对存储'), ('filesystem', '文件系统', 'storage', 1, 'bkdata', 'public', 6, '文件系统'), ('stream_sql', '实时SQL节点', 'stream', 1, 'bkdata', 'public', 1, '实时SQL节点'), ('stream_sdk', '实时SDK节点', 'stream', 1, 'bkdata', 'public', 1, '实时SDK节点'); -- 规则类型命名表 CREATE TABLE IF NOT EXISTS `dataflow_rule_type` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '规则组标识', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow规则类型命名表'; /*!40000 ALTER TABLE `dataflow_rule_type` DISABLE KEYS */; INSERT IGNORE INTO `dataflow_rule_type` (`id`, `description`) VALUES (1,'数据流连线规则'); -- 节点类型连线规则表 CREATE TABLE IF NOT EXISTS `dataflow_node_type_rule` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `upstream_node_type_name` varchar(255) DEFAULT NULL COMMENT '上游节点类型', `downstream_node_type_name` varchar(255) NOT NULL COMMENT '有效下游节点类型', `downstream_support_alone` tinyint(1) NOT NULL COMMENT '下游规则是否支持独立存在,0表示需要结合下游组合规则', `upstream_support_alone` tinyint(1) NOT NULL COMMENT '上游规则是否支持独立存在,0表示需要结合上游组合规则', `channel_type` varchar(255) DEFAULT NULL COMMENT '需要的channel存储,可选NULL|stream|batch,支持多个,用逗号分隔', `max_downstream_instance_num` int(11) NOT NULL COMMENT '当前上游节点类型下,每个rt最大下游节点数量', `min_downstream_instance_num` int(11) NOT NULL COMMENT '当前上游节点类型下,每个rt最小下游节点数量', `max_upstream_instance_num` int(11) NOT NULL COMMENT '当前下游节点类型下,每个rt最大上游节点数量', `min_upstream_instance_num` int(11) NOT NULL COMMENT '当前下游节点类型下,每个rt最小上游节点数量', `rule_type` int(11) NOT NULL COMMENT '定义规则的类型,上下游节点类型、规则类型形成一条连线规则', `available` tinyint(1) DEFAULT '1' COMMENT '是否启用该规则', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`id`), UNIQUE KEY `node_type_rule_uniq1` (`upstream_node_type_name`,`downstream_node_type_name`,`rule_type`), KEY `rule_type_fk_rule_type_id` (`rule_type`), KEY `downstream_node_type_name_fk_node_type_config_node_type_name` (`downstream_node_type_name`), CONSTRAINT `downstream_node_type_name_fk_node_type_config_node_type_name` FOREIGN KEY (`downstream_node_type_name`) REFERENCES `dataflow_node_type_config` (`node_type_name`), CONSTRAINT `rule_type_fk_rule_type_id` FOREIGN KEY (`rule_type`) REFERENCES `dataflow_rule_type` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow节点类型连线规则表'; -- 通过取交集的方式获取该节点类型连线规则下的规则配置,若available 为1,每条规则的实例规则都是正确的(除非在实例中设置) -- 1. -- available 不可有交叉关系,假如 AA 的 父为 A -- 不可设置这样的规则:B 可连 A,B不可连 AA -- 2. -- 首先一般配置 * + 下游节点类型(配置无视下游节点类型的最大/小上游实例数量,不配置默认都为1),再配置具体上游节点类型 INSERT INTO `dataflow_node_type_rule` (`id`, `upstream_node_type_name`, `downstream_node_type_name`, `downstream_support_alone`, `upstream_support_alone`, `channel_type`, `max_downstream_instance_num`, `min_downstream_instance_num`, `max_upstream_instance_num`, `min_upstream_instance_num`, `rule_type`, `available`, `description`) VALUES (1, 'kv_source', 'stream_sql', 1, 0, NULL, 10, 1, 1, 1, 1, 1, 'xxx'), -- 不要求 channel_type,类比于若下游是存储,才需要 kafka (2, 'stream_source', 'stream', 1, 1, NULL, 50, 1, 2, 1, 1, 1, 'xxx'), (3, 'stream_source', 'stream_sql', 1, 1, NULL, 50, 1, 2, 1, 1, 1, 'xxx'), (4, 'stream_source', 'model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (5, 'batch_source', 'batch', 1, 1, NULL, 50, 1, 10, 1, 1, 1, 'xxx'), (6, 'batch_source', 'model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), -- 虽然44已包含,但为了作为组合规则的一部分 (7, 'stream_sql', 'stream_sql', 1, 1, NULL, 50, 1, 2, 1, 1, 1, 'xxx'), (8, 'stream', 'batch', 1, 1, 'stream,batch', 50, 1, 10, 1, 1, 1, 'xxx'), (9, 'transform', 'stream', 1, 1, 'stream', 50, 1, 2, 1, 1, 1, 'xxx'), (10, 'stream', 'transform', 1, 1, 'stream', 50, 1, 1, 1, 1, 1, 'xxx'), (11, 'stream', 'storage', 1, 1, 'stream', 1, 1, 1, 1, 1, 1, 'xxx'), (12, 'batch', 'batch', 1, 1, 'batch', 50, 1, 10, 1, 1, 1, 'xxx'), (13, 'stream_source', 'batch', 1, 1, NULL, 10, 1, 10, 1, 1, 1, '实时数据源之前可以连接离线计算,如今禁止'), (14, 'batch', 'storage', 1, 1, 'stream,batch', 1, 1, 1, 1, 1, 1, 'xxx'), (15, 'batch', 'filesystem', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'), (16, 'transform', 'storage', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'), (17, 'filesystem', 'batch', 1, 1, NULL, 50, 1, 10, 1, 1, 1, 'xxx'), (18, '*', 'source', 1, 1, NULL, -1, -1, 0, 0, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (19, '*', 'stream', 1, 1, NULL, -1, -1, 2, 1, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (20, '*', 'batch', 1, 1, NULL, -1, -1, 10, 1, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (21, '*', 'model', 1, 1, NULL, -1, -1, 1, 1, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (22, '*', 'transform', 1, 1, NULL, -1, -1, 10, 1, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (23, '*', 'storage', 1, 1, NULL, -1, -1, 1, 1, 1, 1, '配置无视下游节点类型的最大/小上游实例数量'), (24, NULL, 'source', 1, 1, NULL, -1, -1, -1, -1, 1, 1, '数据源允许作为初始节点'), (25, 'model', 'model', 1, 1, NULL, 10, 1, 1, 1, 1, 1, 'xxx'), (26, 'stream_source', 'process_model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (27, 'batch_source', 'process_model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (28, 'stream', 'process_model', 1, 1, 'stream', 50, 1, 1, 1, 1, 1, 'xxx'), (29, 'batch', 'process_model', 1, 1, 'batch', 50, 1, 1, 1, 1, 1, 'xxx'), (30, '*', 'process_model', 1, 1, NULL, -1, -1, 1, 1, 1, 1, 'xxx'), (31, 'process_model', 'process_model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (32, 'tdw_batch', 'tdw_batch', 1, 1, 'tdw_batch', 50, 1, 3, 1, 1, 1, 'xxx'), (33, 'tdw_source', 'tdw_batch', 1, 1, NULL, 50, 1, 3, 1, 1, 1, 'xxx'), (34, 'process_model', 'model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (35, 'tdw', 'tdw_batch', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (36, 'stream', 'tdw', 1, 1, 'stream', 50, 1, 1, 1, 1, 1, 'xxx'), (37, 'filesystem', 'process_model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (38, 'oltp', 'model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (39, '*', 'tdw', 1, 1, NULL, -1, -1, 1, 1, 1, 1, 'xxx'), (40, '*', 'tdw_batch', 1, 1, NULL, -1, -1, 10, 1, 1, 1, 'xxx'), (41, 'tdw_batch', 'tdw', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (42, '*', 'stream_sdk', 1, 1, 'stream', -1, -1, 1, 1, 1, 1, 'xxx'), (43, 'stream', 'stream_sdk', 1, 1, 'stream', 50, 1, 2, 1, 1, 1, 'xxx'), (44, 'stream', 'stream_sql', 1, 1, NULL, 50, 1, 2, 1, 1, 1, 'xxx'), (45, 'stream_source', 'storage', 1, 1, 'stream', 1, 1, 1, 1, 1, 1, 'xxx'), (46, 'stream_source', 'transform', 1, 1, 'stream', 50, 1, 1, 1, 1, 1, 'xxx'), (47, 'kv_source', 'batch', 1, 0, NULL, 10, 1, 1, 1, 1, 1, 'xxx'), (48, 'model', 'oltp', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'), (49, 'model', 'mq', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'), (50, 'model', 'process_model', 1, 1, NULL, 50, 1, 1, 1, 1, 1, 'xxx'), (51, 'model', 'filesystem', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'), (52, 'process_model', 'storage', 1, 1, NULL, 1, 1, 1, 1, 1, 1, 'xxx'); -- 规则组命名表 CREATE TABLE IF NOT EXISTS `dataflow_node_type_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一组标识', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow规则组命名表'; /*!40000 ALTER TABLE `dataflow_node_type_group` DISABLE KEYS */; INSERT IGNORE INTO `dataflow_node_type_group` (`id`, `description`) VALUES (1,'kv_source规则组合1'), (2,'kv_source规则组合2'), (3,'batch_kv_source规则组合1'), (4,'batch_kv_source规则组合2'); -- 规则组表 CREATE TABLE IF NOT EXISTS `dataflow_node_type_group_rule` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `rule_id` int(11) NOT NULL COMMENT '规则ID', `group_id` int(11) NOT NULL COMMENT '规则组合ID', `rule_direction` enum('upstream','downstream') NOT NULL COMMENT '规则的组合可以是一种类型的规则组合,也可以是向上和向下的规则组合', `max_instance_num` int(11) NOT NULL COMMENT '指定rule_direction规则下最大节点数量', `min_instance_num` int(11) NOT NULL COMMENT '指定rule_direction规则下最小节点数量', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`id`), UNIQUE KEY `node_type_group_rule_uniq1` (`rule_id`,`group_id`,`rule_direction`), KEY `group_id_fk_node_type_group_id` (`group_id`), CONSTRAINT `group_id_fk_node_type_group_id` FOREIGN KEY (`group_id`) REFERENCES `dataflow_node_type_group` (`id`), CONSTRAINT `rule_id_fk_node_type_rule_id` FOREIGN KEY (`rule_id`) REFERENCES `dataflow_node_type_rule` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow规则组表'; INSERT IGNORE INTO `dataflow_node_type_group_rule` (`rule_id`, `group_id`, `rule_direction`, `max_instance_num`, `min_instance_num`, `description`) VALUES (1,1,'upstream',1,1,'kv, stream'), (7,1,'upstream',1,1,'stream, stream'), (1,2,'upstream',1,1,'kv, stream'), (3,2,'upstream',1,1,'stream_source, stream'), (47,3,'upstream',1,1,'batch_kv, batch'), (12,3,'upstream',10,1,'batch, batch'), (47,4,'upstream',1,1,'batch_kv, batch'), (5,4,'upstream',10,1,'batch_source, batch'); -- 节点实例表 CREATE TABLE IF NOT EXISTS `dataflow_node_type_instance_config` ( `node_type_instance_name` varchar(255) NOT NULL COMMENT '节点类型实例,如:stream', `node_type_instance_alias` varchar(255) NOT NULL COMMENT '节点类型实例名称,如:实时节点', `node_type_name` varchar(255) NOT NULL COMMENT '节点类型', `created_by` varchar(128) DEFAULT NULL COMMENT '创建人', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `updated_by` varchar(50) DEFAULT NULL COMMENT '更新人 ', `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `available` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用该节点类型实例', `belong_to` varchar(128) DEFAULT 'bkdata' COMMENT '这个字段标记是系统的(bkdata)还是用户的(other)', `scope` enum('private','public') NOT NULL DEFAULT 'public' COMMENT '标记节点类型的权限范围,可选有public|private', `order` int(11) NOT NULL COMMENT '节点实例全局排序', `support_debug` tinyint(1) NOT NULL COMMENT '是否支持调试', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`node_type_instance_name`), KEY `node_type_name_fk_node_type_config_node_type_name` (`node_type_name`), CONSTRAINT `node_type_name_fk_node_type_config_node_type_name` FOREIGN KEY (`node_type_name`) REFERENCES `dataflow_node_type_config` (`node_type_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow节点类型实例配置表'; INSERT INTO `dataflow_node_type_instance_config` (`node_type_instance_name`, `node_type_instance_alias`, `node_type_name`, `created_by`, `created_at`, `updated_by`, `updated_at`, `available`, `belong_to`, `scope`, `order`, `support_debug`, `description`) VALUES ('merge', '合流计算', 'transform', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 204, 0, '支持表结构相同的多个数据源节点合并成为一个结果数据表'), ('split', '分流计算', 'transform', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 203, 0, '支持一个数据源根据业务维度切分成若干数据结构相同的结果数据表'), ('stream_source', '实时数据源', 'stream_source', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 101, 1, '清洗、实时计算的结果数据,数据延迟低,可用于分钟级别的实时统计计算'), ('stream', '实时计算', 'stream_sql', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 201, 1, '基于流式处理的实时计算,支持秒级和分钟级的计算'), ('elastic_storage', 'Elasticsearch(全文检索、分析型存储)', 'search', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2019-09-23 16:15:00', 1, 'bkdata', 'public', 403, 0, '<b>建议使用场景:</b><br> 全文检索及数据分析<br> <b>建议日数据量[单表]:</b><br> GB/TB级 <br><b>查询模式:</b><br> 检索查询(支持分词)'), ('process_model', '单指标异常检测', 'process_model', 'dataflow', '2019-09-23 16:21:02', 'dataflow', '2019-09-23 22:03:27', 1, 'bkdata', 'public', 302, 0, '机器学习模型,用于时间序列数据的单指标异常检测'), ('tspider_storage', 'TSpider(关系型数据库)', 'oltp', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2019-09-23 16:15:30', 1, 'bkdata', 'public', 406, 1, '<b>建议使用场景:</b><br> 关系型数据库<br> <b>建议日数据量[单表]:</b><br> GB/千万级以内 <br><b>查询模式:</b><br> 点查询/关联查询/聚合查询'), ('queue_storage', 'Queue(消息队列)', 'mq', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2019-09-23 16:14:46', 1, 'bkdata', 'public', 409, 0, '<b>建议使用场景:</b><br> 数据订阅<br> <b>建议日数据量[单表]:</b><br> GB/TB <br><b>查询模式:</b><br> 客户端连接消费'), ('kv_source', '实时关联数据源', 'kv_source', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 102, 0, '在K-V存储的状态数据,可用作维度表与实时数据join'), ('hdfs_storage', 'HDFS(分布式文件系统)', 'filesystem', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2019-09-23 16:14:49', 1, 'bkdata', 'public', 411, 0, '<b>建议使用场景:</b><br> 海量数据离线分析,对查询时延要求不高<br> <b>建议日数据量[单表]:</b><br> TB/PB <br><b>查询模式:</b><br> 可对接离线分析/即席查询/数据分析等方式'), ('batch_source', '离线数据源', 'batch_source', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 103, 1, '落地到分布式文件系统的数据,可用于小时级以上的离线统计计算'), ('batch', '离线计算', 'batch', 'dataflow', '2018-12-25 19:15:02', 'dataflow', '2018-12-25 19:15:02', 1, 'bkdata', 'public', 202, 1, '基于批处理的离线计算,支持小时级和天级的计算'); -- 节点实例自己的连线规则表,为实例增加其它连线规则 -- 并非每个节点实例都需要配置,目前这个表为空 CREATE TABLE IF NOT EXISTS `dataflow_node_type_instance_rule` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `upstream_node_type_instance_name` varchar(255) DEFAULT NULL COMMENT '节点类型实例,如:stream', `downstream_node_type_instance_name` varchar(255) NOT NULL COMMENT '节点类型实例允许的下游节点类型实例,如:stream', `max_downstream_instance_num` int(11) NOT NULL COMMENT '当前上游节点类型下,每个rt最大下游节点数量', `min_downstream_instance_num` int(11) NOT NULL COMMENT '当前上游节点类型下,每个rt最小下游节点数量', `max_upstream_instance_num` int(11) NOT NULL COMMENT '当前下游节点类型下,每个rt最大上游节点数量', `min_upstream_instance_num` int(11) NOT NULL COMMENT '当前下游节点类型下,每个rt最小上游节点数量', `created_by` varchar(128) DEFAULT NULL COMMENT '创建人', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `updated_by` varchar(50) DEFAULT NULL COMMENT '更新人 ', `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `rule_type` int(11) NOT NULL COMMENT '定义规则的类型,上下游节点类型、规则类型形成一条连线规则', `available` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用该规则', `description` text NOT NULL COMMENT '备注信息', PRIMARY KEY (`id`), UNIQUE KEY `node_type_instance_rule_uniq1` (`upstream_node_type_instance_name`,`downstream_node_type_instance_name`,`rule_type`), KEY `node_type_instance_rule_fk_rule_type_id` (`rule_type`), KEY `downstream_node_instance_fk_instance_config_node_type_instance` (`downstream_node_type_instance_name`), CONSTRAINT `node_type_instance_rule_fk_rule_type_id` FOREIGN KEY (`rule_type`) REFERENCES `dataflow_rule_type` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='dataflow节点实例连线规则表'; -- 最小上游节点数量先基于通配配置的判断(min_upstream_num1),再基于具体规则判断(若有)(min_upstream_num2),且 min_upstream_num1 >= min_upstream_num2,如下述的 merge INSERT INTO `dataflow_node_type_instance_rule` (`id`, `upstream_node_type_instance_name`, `downstream_node_type_instance_name`, `max_downstream_instance_num`, `min_downstream_instance_num`, `max_upstream_instance_num`, `min_upstream_instance_num`, `created_by`, `created_at`, `updated_by`, `updated_at`, `rule_type`, `available`, `description`) VALUES (1, 'stream', 'merge', 50, 1, 10, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2018-12-25 19:36:17', 1, 1, 'xxx'), (2, 'pgsql_storage', 'model', 50, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, 'xxx'), (3, 'tdw_batch', 'tdw_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (4, 'tdw_jar_batch', 'tdw_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (5, 'tpg', 'tdw_batch', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (6, 'tpg', 'tdw_jar_batch', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (7, 'stream', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (8, 'spark_structured_streaming', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (9, 'flink_streaming', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (10, 'batch', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (11, 'batch', 'tdw_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (12, 'merge', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (13, 'split', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (14, 'split', 'elastic_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (16, 'split', 'pgsql_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (17, 'split', 'tsdb_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (18, 'split', 'queue_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (19, 'split', 'tspider_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (20, 'split', 'druid_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (21, 'split', 'tdbank', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (22, 'split', 'tredis_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (23, 'split', 'hdfs_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (24, 'split', 'tdw_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (25, 'split', 'hermes_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (26, 'stream_source', 'tdw_storage', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (27, 'stream_source', 'tpg', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (28, 'split', 'stream', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (29, 'split', 'flink_streaming', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (30, 'split', 'spark_structured_streaming', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (31, 'flink_streaming', 'merge', 50, 1, 10, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2018-12-25 19:36:17', 1, 1, 'xxx'), (32, 'spark_structured_streaming', 'merge', 50, 1, 10, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2018-12-25 19:36:17', 1, 1, 'xxx'), (33, 'stream_source', 'merge', 50, 1, 10, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2018-12-25 19:36:17', 1, 1, 'xxx'), (34, '*', 'merge', -1, -1, 10, 2, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2018-12-25 19:36:17', 1, 1, 'xxx'), (35, 'kv_source', 'batch', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (36, 'model', 'tdbank', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (37, 'batch_kv_source', 'stream', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'), (38, 'split', 'queue_pulsar', 10, 1, 1, 1, 'dataflow', '2018-12-25 19:35:02', 'dataflow', '2019-09-23 17:27:02', 1, 0, '禁止这条规则'); update `dataflow_node_type_rule` set `upstream_support_alone` = 1, `max_upstream_instance_num` = 10 where `upstream_node_type_name`='kv_source' and `downstream_node_type_name`='batch';
the_stack
-- 2018-05-29T13:09:52.315 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,IsUseBPartnerLanguage,JasperReport,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,SQLStatement,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,540973,'Y','org.compiere.report.ReportStarter','N',TO_TIMESTAMP('2018-05-29 13:09:52','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.vertical.pharma','Y','N','N','Y','N','Y','N','Y','@PREFIX@de/metas/reports/customer_revenue_credit_limit/report.xls',0,'Customer Revenue Credit Limit','N','Y','SELECT * FROM de_metas_endcustomer_md100_reports.customer_revenue_credit_limit(@Date@, @C_BPartner_ID/NULL@);','Java',TO_TIMESTAMP('2018-05-29 13:09:52','YYYY-MM-DD HH24:MI:SS'),100,'Customer Revenue Credit Limit') ; -- 2018-05-29T13:09:52.325 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=540973 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2018-05-29T13:12:20.401 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540973,541307,15,'Date',TO_TIMESTAMP('2018-05-29 13:12:20','YYYY-MM-DD HH24:MI:SS'),100,'','de.metas.fresh',0,'','Y','N','Y','N','Y','N','Datum',10,TO_TIMESTAMP('2018-05-29 13:12:20','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-29T13:12:20.407 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=541307 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2018-05-29T13:12:36.459 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,187,0,540973,541308,30,'C_BPartner_ID',TO_TIMESTAMP('2018-05-29 13:12:36','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner','de.metas.vertical.pharma',0,'Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','Y','Y','N','N','N','Geschäftspartner',20,TO_TIMESTAMP('2018-05-29 13:12:36','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-29T13:12:36.463 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=541308 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID) ; -- 2018-05-29T13:13:21.861 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('R',0,541099,0,540973,TO_TIMESTAMP('2018-05-29 13:13:21','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.vertical.pharma','Customer Revenue Credit Limit','Y','N','N','N','N','Customer Revenue Credit Limit',TO_TIMESTAMP('2018-05-29 13:13:21','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-05-29T13:13:21.869 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=541099 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2018-05-29T13:13:21.882 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541099, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541099) ; -- 2018-05-29T13:13:22.480 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540934 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:22.482 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540935 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:22.483 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540958 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:22.484 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=541074 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:22.485 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=541095 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:22.486 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000049, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=541099 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.627 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540614 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.628 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540750 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.629 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540616 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.629 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540681 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.630 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540617 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.631 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540742 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.632 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540618 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.633 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540619 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.633 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540632 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.634 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540635 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.635 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540698 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.635 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541099 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.636 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540637 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.637 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540638 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.637 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540648 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.638 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540674 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.639 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540709 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.639 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540708 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.640 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540679 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.640 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540678 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.641 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540684 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.642 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540686 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.642 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540706 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.643 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540701 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.643 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=540712 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.644 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=540722 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.644 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=540723 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.645 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540725 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.645 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540739 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.646 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540740 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.646 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=540741 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.647 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=540968 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.647 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=541064 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.648 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541075 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.649 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=541094 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:29.649 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=541088 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.697 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540614 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.698 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540750 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.699 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540616 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.699 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540681 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540617 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.701 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540742 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.702 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540618 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.730 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540619 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.730 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540632 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.731 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540635 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.732 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540698 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.733 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540637 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.734 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540638 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.734 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540648 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.735 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540674 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.736 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540709 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.737 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540708 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.737 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540679 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.738 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540678 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.739 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540684 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.739 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540686 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.741 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540706 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.741 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540701 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.742 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540712 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.743 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=540722 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.744 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=540723 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.744 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=540725 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.745 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540739 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.746 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540740 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.746 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540741 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.747 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=540968 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.748 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=541064 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.748 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=541075 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.749 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541094 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.750 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=541088 AND AD_Tree_ID=10 ; -- 2018-05-29T13:13:38.751 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=541099 AND AD_Tree_ID=10 ; -- 2018-05-29T13:26:55.360 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM de_metas_endcustomer_md100_reports.customer_revenue_credit_limit(''@Date@''::date, @C_BPartner_ID/NULL@);',Updated=TO_TIMESTAMP('2018-05-29 13:26:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540973 ; -- 2018-05-29T15:12:56.420 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET EntityType='de.metas.fresh',Updated=TO_TIMESTAMP('2018-05-29 15:12:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540973 ; -- 2018-05-29T15:13:11.130 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='Umsatzbericht Kreditlimit', Value='Umsatzbericht Kreditlimit',Updated=TO_TIMESTAMP('2018-05-29 15:13:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540973 ; -- 2018-05-29T15:13:11.158 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Description=NULL, IsActive='Y', Name='Umsatzbericht Kreditlimit',Updated=TO_TIMESTAMP('2018-05-29 15:13:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541099 ; -- 2018-05-29T15:13:25.031 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-29 15:13:25','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Umsatzbericht Kreditlimit' WHERE AD_Process_ID=540973 AND AD_Language='de_CH' ; -- 2018-05-29T15:13:28.845 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-29 15:13:28','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Process_ID=540973 AND AD_Language='en_US' ; -- 2018-05-29T15:14:29.624 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('R',0,541100,0,540973,TO_TIMESTAMP('2018-05-29 15:14:29','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Umsatzbericht Kreditlimit','Y','N','N','N','N','Umsatzbericht Kreditlimit',TO_TIMESTAMP('2018-05-29 15:14:29','YYYY-MM-DD HH24:MI:SS'),100,'Umsatzbericht Kreditlimit') ; -- 2018-05-29T15:14:29.630 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=541100 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2018-05-29T15:14:29.635 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541100, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541100) ; -- 2018-05-29T15:14:30.237 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540614 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.239 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540750 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.240 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540616 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540681 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540617 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.242 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540742 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.243 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540618 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.243 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540619 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.244 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540632 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.245 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540635 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.245 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540698 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.246 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540637 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.246 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540638 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.247 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540648 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.248 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540674 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.249 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540709 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.249 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540708 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.250 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540679 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.251 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540678 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.252 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540684 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.253 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540686 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.254 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540706 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.254 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540701 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.255 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540712 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.256 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=540722 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.257 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=540723 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.258 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=540725 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.259 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540739 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.260 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540740 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.260 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540741 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.261 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=540968 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.262 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=541064 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.263 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=541075 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.263 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541094 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.264 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=541088 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.265 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=541099 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:30.266 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=540613, SeqNo=36, Updated=now(), UpdatedBy=100 WHERE Node_ID=541100 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:47.699 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=541076, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541100 AND AD_Tree_ID=10 ; -- 2018-05-29T15:14:47.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=541076, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=541077 AND AD_Tree_ID=10 ; -- 2018-05-29T15:15:11.414 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-05-29 15:15:11','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Customer Revenue Credit Limit',WEBUI_NameBrowse='Customer Revenue Credit Limit' WHERE AD_Menu_ID=541100 AND AD_Language='en_US' ; -- 2018-05-29T15:15:30.257 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET EntityType='de.metas.fresh',Updated=TO_TIMESTAMP('2018-05-29 15:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541099 ; -- 2018-05-29T15:23:26.154 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET SQLStatement='SELECT * FROM report.customer_revenue_credit_limit(''@Date@''::date, @C_BPartner_ID/NULL@);',Updated=TO_TIMESTAMP('2018-05-29 15:23:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540973 ;
the_stack
-- Member Profiles INSERT INTO member_profile (avatar_url, bio, latitude, longitude, github_id, github_username, gravatar_email, hidden, lanyrd_username, location, name, speakerdeck_username, twitter_username, username, video_embeds, job_title) VALUES ('/images/icon-spring-boot.svg', 'Spring Boot team member and fixture user for the application.', 37.781929, -122.4041, 123456, 'spring', 'spring@spring.io', FALSE, NULL, 'San Francisco, CA', 'Emily Spring', NULL, 'springcentral', 'springcentral', NULL, 'Spring Team Member'); -- Blog Posts INSERT INTO post (broadcast, category, created_at, draft, format, public_slug, publish_at, raw_content, rendered_content, rendered_summary, title, author_id) VALUES (FALSE,'RELEASES','2020-01-22 08:55:32.503',FALSE,'MARKDOWN','2020/01/22/spring-boot-2-3-0','2020-01-22 08:56:05.769', 'Dear Spring Community, We are happy to announce the 2.3.0 release of Spring Boot. Highlights from this release include: * A great feature * Another great feature * Many bug fixes', '<p>Dear Spring Community,</p> <p>We are happy to announce the 2.3.0 release of Spring Boot.</p> <p>Highlights from this release include:</p> <ul> <li>A great feature</li><li>Another great feature</li><li>Many bug fixes</li> </ul>', '<p>Dear Spring Community,</p><p>We are happy to announce the 2.3.0 release of Spring Boot.</p>' ,'Spring Boot 2.3.0 released',1), (FALSE,'NEWS_AND_EVENTS','2020-01-18 08:55:32.503',FALSE,'MARKDOWN','2020/01/18/this-week-in-spring-2020-01-18','2020-01-18 08:56:05.769', 'Hi, Spring fans! There is a lot to cover this week, so let s get to it. Links this week: * [Spring Blog](https://spring.io/blog) * [Spring Initializr](https://start.spring.io) ', '<p>Hi, Spring fans!</p> <p>There is a lot to cover this week, so let s get to it.</p> <p>Links this week:</p><ul> <li><a href="https://spring.io/blog">Spring Blog</a></li> <li><a href="https://start.spring.io/">Spring Initializr</a></li></ul> ', '<p>Hi Spring fans!</p><p>There is a lot to cover this week, so let s get to it.</p>', 'This Week in Spring - 2020-01-18',1); -- Projects INSERT INTO project (id, name, parent_project_id, repo_url, status, site_url, stack_overflow_tags, tag_line, bootconfig_source, bootconfig_html, overview_source, overview_html, featured, sort_order, image_path) VALUES ('spring-framework', 'Spring Framework', NULL, 'https://github.com/spring-projects/spring-framework', 'ACTIVE', '/projects/spring-framework', 'spring,spring-mvc,spring-jms,spring-test,spring-webflux', 'Provides core support for dependency injection, transaction management, web apps, data access, messaging and more.', '', '', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 2, '/images/projects/spring-framework.svg'), ('spring-boot', 'Spring Boot', NULL, 'https://github.com/spring-projects/spring-boot', 'ACTIVE', '/projects/spring-boot', 'spring-boot', 'Takes an opinionated view of building Spring applications and gets you up and running as quickly as possible.', '', '', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 1, '/images/projects/spring-boot.svg'), ('spring-data', 'Spring Data', NULL, 'https://github.com/spring-projects/spring-data', 'ACTIVE', '/projects/spring-data', 'spring-data,spring-data-jpa,spring-data-mongodb,spring-data-rest,spring-data-elasticsearch,spring-data-redis', 'Spring Data’s mission is to provide a familiar and consistent, Spring-based programming model for data access while still retaining the special traits of the underlying data store.', '', '', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 3, '/images/projects/spring-data.svg'), ('spring-data-jpa', 'Spring Data JPA', 'spring-data', 'https://github.com/spring-projects/spring-data-jpa', 'ACTIVE', '/projects/spring-data-jpa', 'spring-data', 'Provides a familiar and consistent, Spring-based programming model for relational database access.', 'Add `spring-boot-starter-data-jpa` as a dependency.', 'Add <pre><code>spring-boot-starter-data-jpa</code></pre> as a dependency.', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 255, '/images/projects/spring-data.svg'), ('spring-data-elasticsearch', 'Spring Data Elasticsearch', 'spring-data', 'https://github.com/spring-projects/spring-data-elasticsearch', 'ACTIVE', '/projects/spring-data-elasticsearch', 'spring-data-elasticsearch', 'Provides a familiar and consistent, Spring-based programming model for Elasticsearch index access.', 'Add `spring-boot-starter-data-elasticsearch` as a dependency.', 'Add <pre><code>spring-boot-starter-data-elasticsearch</code></pre> as a dependency.', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 255, '/images/projects/spring-data.svg'), ('platform', 'Spring IO Platform', NULL, 'https://github.com/spring-io/platform', 'END_OF_LIFE', 'http://platform.spring.io/platform/', 'spring-io', 'Spring IO is a cohesive, versioned platform for building modern applications.', '', '', 'It is a modular, enterprise-grade distribution that delivers a curated set of dependencies while keeping developers in full control of deploying only the parts they need. Spring IO is 100% open source, lean, and modular.', '<p>It is a modular, enterprise-grade distribution that delivers a curated set of dependencies while keeping developers in full control of deploying only the parts they need. Spring IO is 100% open source, lean, and modular.</p>', FALSE, 255, ''), ('spring-scala', 'Spring Scala', NULL, 'http://hub.darcs.net/psnively/spring-scala', 'COMMUNITY', 'http://hub.darcs.net/psnively/spring-scala', 'spring-scala', 'Brings the power and expressiveness of Scala together with the productivity and deep ecosystem of Spring.', '', '', '## Sample description\nThis is a sample description.', '<h2>Sample description</h2><p>This is a sample description.</p>', FALSE, 255, ''), ('spring-restdocs', 'Spring REST Docs', NULL, 'https://github.com/spring-projects/spring-restdocs', 'ACTIVE', '/projects/spring-restdocs', 'spring-restdocs', 'Document RESTful services by combining hand-written documentation with auto-generated snippets produced with Spring MVC Test or REST Assured.', '', '', 'Spring REST Docs helps you to document RESTful services.', '<p>Spring REST Docs helps you to document RESTful services.</p>', TRUE, 255, '/images/projects/spring-restdocs.png'); -- Project releases INSERT INTO project_release (project_id, repository, api_doc_url, is_current, ref_doc_url, release_status, version) VALUES ('spring-boot', 'RELEASE', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'GENERAL_AVAILABILITY', '2.1.14.RELEASE'), ('spring-boot', 'SNAPSHOT', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'SNAPSHOT', '2.1.15.BUILD-SNAPSHOT'), ('spring-boot', 'RELEASE', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'GENERAL_AVAILABILITY', '2.2.7.RELEASE'), ('spring-boot', 'SNAPSHOT', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'SNAPSHOT', '2.2.8.BUILD-SNAPSHOT'), ('spring-boot', 'RELEASE', 'https://docs.spring.io/spring-boot/docs/{version}/api/', true, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/','GENERAL_AVAILABILITY', '2.3.0.RELEASE'), ('spring-boot', 'SNAPSHOT', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'SNAPSHOT', '2.3.1-SNAPSHOT'), ('spring-boot', 'SNAPSHOT', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/', 'SNAPSHOT', '2.4.0-SNAPSHOT'), ('spring-boot', 'MILESTONE', 'https://docs.spring.io/spring-boot/docs/{version}/api/', false, 'https://docs.spring.io/spring-boot/docs/{version}/reference/html/','PRERELEASE', '2.4.0.M1'), ('platform', 'RELEASE', 'https://spring.io/projects/platform', true, 'https://docs.spring.io/platform/docs/{version}/reference/htmlsingle/', 'SNAPSHOT', 'Cairo-SR7'); -- Project samples INSERT INTO project_sample (title, description, url, sort_order, project_id) VALUES ('Simple', 'Simple command line application', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-simple', 0, 'spring-boot'), ('Embedded Tomcat', 'It is a mountain kitty.', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-tomcat', 1, 'spring-boot'), ('batch', 'Define and run a batch job in a few lines of code', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-batch', 2, 'spring-boot'), ('Data JPA', 'Stores data using Spring Data JPA with Hibernate', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-jpa', 3, 'spring-boot'), ('Integration', 'Integration application built using Spring Integration and its Java DSL', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-integration', 4, 'spring-boot'), ('more...', 'Collection of Spring Boot sample applications.', 'https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples', 5, 'spring-boot'); -- Spring Tools INSERT INTO spring_tools_platform (id) VALUES ('vscode'), ('eclipse'), ('theia'); INSERT INTO spring_tools_platform_downloads (spring_tools_platform_id, variant, label, download_url) VALUES ('eclipse', 'windows', 'Windows 64-bit', 'http://download.springsource.com/release/STS4/4.1.1.RELEASE/dist/e4.10/spring-tool-suite-4-4.1.1.RELEASE-e4.10.0-win32.win32.x86_64.zip'), ('eclipse', 'macos', 'macOS 64-bit', 'http://download.springsource.com/release/STS4/4.1.1.RELEASE/dist/e4.10/spring-tool-suite-4-4.1.1.RELEASE-e4.10.0-macosx.cocoa.x86_64.dmg'), ('eclipse', 'linux', 'Linux 64-bit', 'http://download.springsource.com/release/STS4/4.1.1.RELEASE/dist/e4.10/spring-tool-suite-4-4.1.1.RELEASE-e4.10.0-linux.gtk.x86_64.tar.gz'), ('vscode', 'marketplace', 'VSCode Marketplace', 'https://marketplace.visualstudio.com/items?itemName=Pivotal.vscode-boot-dev-pack'), ('theia', 'package', 'Package for Theia', 'https://registry.npmjs.org/@pivotal-tools/theia-spring-boot/-/theia-spring-boot-1.8.0.tgz'); -- Project groups INSERT INTO project_groups (name, label) VALUES ('microservices', 'Microservices'), ('event-driven', 'Event Driven'), ('cloud', 'Cloud'), ('reactive', 'Reactive'), ('web', 'Web Apps'), ('serverless', 'Serverless'), ('streams', 'Streams'), ('batch', 'Batch'); INSERT INTO project_groups_rel SELECT 'spring-boot', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'event-driven', 'batch'); INSERT INTO project_groups_rel SELECT 'spring-framework', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'batch'); INSERT INTO project_groups_rel SELECT 'spring-data', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'batch'); INSERT INTO project_groups_rel SELECT 'spring-data-jpa', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'batch'); INSERT INTO project_groups_rel SELECT 'spring-data-elasticsearch', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'batch'); INSERT INTO project_groups_rel SELECT 'platform', id FROM PROJECT_GROUPS WHERE name in ('microservices', 'batch'); INSERT INTO project_groups_rel SELECT 'spring-restdocs', id FROM PROJECT_GROUPS WHERE name in ('microservices'); -- Project generations INSERT INTO project_generation (project_id, name, initial_release_date, oss_support_enforced_end_date, oss_support_policy_end_date, commercial_support_enforced_end_date, commercial_support_policy_end_date) VALUES ('spring-boot', '1.5.x', '2017-01-01', '2019-08-01', '2018-01-01', null, '2019-09-01'), ('spring-boot', '2.0.x', '2018-03-01', '2019-04-03', '2019-03-01', null, '2020-04-01'), ('spring-boot', '2.1.x', '2018-10-01', null, '2019-10-01', null, '2021-04-01'), ('spring-boot', '2.2.x', '2019-10-01', null, '2020-10-01', null, '2021-11-15'), ('spring-boot', '2.3.x', '2020-05-15', null, '2021-05-15', null, null), ('spring-boot', '2.4.x', '2020-11-15', null, '2021-11-15', null, null);
the_stack
; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `user` ( `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `discord_id` bigint(20) NOT NULL, `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP(), `control_timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP(), `role` enum ('USER','IMAGE_BLOCKED','ADMIN') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'USER', `private_update` tinyint(1) NOT NULL DEFAULT 0, `notify_image` tinyint(1) NOT NULL DEFAULT 1, `additional_embed` tinyint(1) NOT NULL DEFAULT 0, `whoknows_mode` enum ('IMAGE','LIST','PIE') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'IMAGE', `chart_mode` enum ('IMAGE','IMAGE_INFO','IMAGE_ASIDE','IMAGE_ASIDE_INFO','LIST','PIE') COLLATE utf8mb4_unicode_ci DEFAULT 'IMAGE', `remaining_mode` enum ('IMAGE','IMAGE_INFO','LIST','PIE') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'IMAGE', `botted_account` tinyint(1) DEFAULT 0, `default_x` int(11) DEFAULT 5, `default_y` int(11) DEFAULT 5, `privacy_mode` enum ('STRICT','NORMAL','TAG','LAST_NAME','DISCORD_NAME') COLLATE utf8mb4_unicode_ci DEFAULT 'NORMAL', `notify_rating` tinyint(1) NOT NULL DEFAULT 1, `private_lastfm` tinyint(1) NOT NULL DEFAULT 0, `np_mode` bigint(20) NOT NULL DEFAULT 1, `timezone` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT 'Europe/Brussels', `token` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `sess` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `show_botted` tinyint(1) DEFAULT 1, `scrobbling` tinyint(1) NOT NULL DEFAULT 1, PRIMARY KEY (`discord_id`), UNIQUE KEY `lastfm_id` (`lastfm_id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; CREATE TABLE IF NOT EXISTS `artist` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(400) CHARACTER SET ascii DEFAULT NULL, `url_status` tinyint(1) DEFAULT 1, `correction_status` tinyint(1) DEFAULT 0, `mbid` varchar(36) CHARACTER SET ascii DEFAULT NULL, `spotify_id` varchar(40) CHARACTER SET ascii DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `album` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) DEFAULT NULL, `album_name` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `rym_id` bigint(20) DEFAULT NULL, `spotify_id` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `release_year` smallint(6) DEFAULT NULL, `mbid` varchar(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `rym_id` (`rym_id`), UNIQUE KEY `spotify_id` (`spotify_id`), UNIQUE KEY `artist_id` (`artist_id`, `album_name`), KEY `alb_mbid_idx` (`mbid`), KEY `album_name_alb` (`album_name`), KEY `release_year` (`release_year`), CONSTRAINT `album_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `user_guild` ( `discord_id` bigint(20) NOT NULL, `guild_id` bigint(20) NOT NULL, PRIMARY KEY (`discord_id`, `guild_id`), CONSTRAINT `user_guild_fk_user` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `track` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `mbid` varchar(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `spotify_id` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `release_year` smallint(6) DEFAULT NULL, `duration` int(11) DEFAULT NULL, `album_id` bigint(20) DEFAULT NULL, `popularity` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `track_and_artist` (`artist_id`, `track_name`), KEY `spotify_id_track` (`spotify_id`), KEY `mbid` (`mbid`), KEY `track_fk_album` (`album_id`), CONSTRAINT `track_fk_album` FOREIGN KEY (`album_id`) REFERENCES `album` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `track_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `guild` ( `guild_id` bigint(20) NOT NULL, `logo` blob DEFAULT NULL, `prefix` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '!', `crown_threshold` int(11) NOT NULL DEFAULT 0, `additional_embed` tinyint(1) NOT NULL DEFAULT 0, `whoknows_mode` enum ('IMAGE','LIST','PIE') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `chart_mode` enum ('IMAGE','IMAGE_INFO','IMAGE_ASIDE','IMAGE_ASIDE_INFO','LIST','PIE') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `remaining_mode` enum ('IMAGE','IMAGE_INFO','LIST','PIE') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `np_mode` bigint(20) NOT NULL DEFAULT -1, `disabled_response` tinyint(1) NOT NULL DEFAULT 0, `delete_message` tinyint(1) NOT NULL DEFAULT 0, `disabled_warning` tinyint(1) NOT NULL DEFAULT 0, `allow_reactions` tinyint(1) NOT NULL DEFAULT 1, `override_reactions` enum ('OVERRIDE','ADD','ADD_END','EMPTY') COLLATE utf8mb4_unicode_ci DEFAULT 'EMPTY', PRIMARY KEY (`guild_id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `randomlinks` ( `discord_id` bigint(20) DEFAULT NULL, `guild_id` bigint(20) NOT NULL, `url` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`url`), UNIQUE KEY `unique_url_random` (`url`), KEY `randomlinks_fk_guild` (`guild_id`), KEY `randomlinks_fk_user` (`discord_id`), CONSTRAINT `randomlinks_fk_guild` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE NO ACTION ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `week` ( `id` int(11) NOT NULL AUTO_INCREMENT, `week_start` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; DELIMITER $$ CREATE PROCEDURE insert_weeks() BEGIN SET @t_current = date(curdate() - INTERVAL weekday(curdate()) DAY); SET @t_end = DATE_ADD(date(curdate() - INTERVAL weekday(curdate()) DAY), INTERVAL 5 YEAR); WHILE(@t_current < @t_end) DO INSERT INTO week(week_start) VALUES (@t_current); SET @t_current = DATE_ADD(@t_current, INTERVAL 7 DAY); END WHILE; END; $$ DELIMITER ; CALL insert_weeks(); /* break*/ /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `album_crowns` ( `artist_id` bigint(20) NOT NULL, `discordid` bigint(20) NOT NULL, `album` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, `plays` int(11) NOT NULL, `guildid` bigint(20) NOT NULL, PRIMARY KEY (`artist_id`, `album`, `guildid`), UNIQUE KEY `artist_id_unique` (`artist_id`, `album`, `guildid`), KEY `album_crown_fk_guildid` (`discordid`, `guildid`), CONSTRAINT `album_crown_fk_guildid` FOREIGN KEY (`discordid`, `guildid`) REFERENCES `user_guild` (`discord_id`, `guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `album_crowns_fk_artist_id ` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `album_rating` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) DEFAULT NULL, `album_id` bigint(20) DEFAULT NULL, `discord_id` bigint(20) DEFAULT NULL, `rating` tinyint(10) NOT NULL, `source` tinyint(2) DEFAULT 0, `review` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `review_unique` (`artist_id`, `album_id`, `discord_id`), KEY `album_rating_url_fk_discordid` (`discord_id`), KEY `album_rating_fk_album` (`album_id`), CONSTRAINT `album_rating_fk_album` FOREIGN KEY (`album_id`) REFERENCES `album` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `album_rating_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `album` (`artist_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `album_rating_url_fk_discordid` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `album_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) NOT NULL, `album_id` bigint(20) NOT NULL, `tag` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `artist_id` (`artist_id`, `album_id`, `tag`), KEY `album_tags_fk_album_id` (`album_id`), CONSTRAINT `album_tags_fk_album_id` FOREIGN KEY (`album_id`) REFERENCES `album` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `album_tags_fk_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `album_tracklist` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `album_id` bigint(20) NOT NULL, `track_id` bigint(20) NOT NULL, `position` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `album_id` (`album_id`, `track_id`), KEY `album_tracklist_fk_track` (`track_id`), CONSTRAINT `album_tracklist_fk_album` FOREIGN KEY (`album_id`) REFERENCES `album` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `album_tracklist_fk_track` FOREIGN KEY (`track_id`) REFERENCES `track` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `alt_url` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) NOT NULL, `url` varchar(400) CHARACTER SET ascii NOT NULL, `discord_id` bigint(20) DEFAULT NULL, `added_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), `score` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uc_url` (`artist_id`, `url`), CONSTRAINT `alt_urls_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; /*!50003 CREATE TRIGGER IF NOT EXISTS alt_url_insert AFTER INSERT ON alt_url FOR EACH ROW BEGIN IF ((SELECT url FROM artist WHERE id = new.artist_id) IS NULL) OR (new.score > (SELECT MAX(alt_url.score) FROM alt_url WHERE artist_id = new.artist_id)) THEN UPDATE artist SET url = new.url WHERE id = new.artist_id; END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; /*!50003 CREATE TRIGGER IF NOT EXISTS alt_url_update AFTER UPDATE ON alt_url FOR EACH ROW BEGIN DECLARE current_score int; DECLARE current_url varchar(400); SET current_score = (SELECT MAX(a.score) FROM alt_url a WHERE a.artist_id = new.artist_id); SET current_url = (SELECT a.url FROM alt_url a WHERE a.artist_id = new.artist_id ORDER BY score DESC LIMIT 1); IF ((SELECT url FROM artist b WHERE b.id = new.artist_id) = new.url) AND (new.score < current_score) THEN UPDATE artist SET url = current_url WHERE id = new.artist_id; ELSEIF (new.score >= current_score) THEN UPDATE artist SET url = new.url WHERE id = new.artist_id; END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = '' */; DELIMITER ;; /*!50003 CREATE TRIGGER IF NOT EXISTS alt_url_delete AFTER DELETE ON alt_url FOR EACH ROW BEGIN IF (old.url = (SELECT url FROM artist WHERE id = old.artist_id)) THEN UPDATE artist SET url = (SELECT url FROM alt_url WHERE alt_url.artist_id = old.artist_id ORDER BY alt_url.score DESC LIMIT 1) WHERE id = old.artist_id; END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `artist_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) NOT NULL, `tag` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `artist_id` (`artist_id`, `tag`), KEY `tag` (`tag`), KEY `artist_tags_artist_id` (`artist_id`), CONSTRAINT `artist_tags_fk_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `audio_features` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `spotify_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `acousticness` float DEFAULT NULL, `danceability` float DEFAULT NULL, `energy` float DEFAULT NULL, `instrumentalness` float DEFAULT NULL, `key` int(11) DEFAULT NULL, `liveness` float DEFAULT NULL, `loudness` int(11) DEFAULT NULL, `speechiness` float DEFAULT NULL, `tempo` int(11) DEFAULT NULL, `valence` float DEFAULT NULL, `time_signature` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `spotify_id` (`spotify_id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `backup` ( `id` bigint(20) NOT NULL DEFAULT 0, `discord_id` bigint(20) NOT NULL, `artist_id` bigint(20) NOT NULL, `album_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) DEFAULT NULL, `artist_combo` int(11) DEFAULT NULL, `album_combo` int(11) DEFAULT NULL, `track_combo` int(11) DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `banned_artist_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tag` varchar(100) NOT NULL, `discord_id` bigint(20) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `banned_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tag` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `tag` (`tag`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `command_guild_channel_disabled` ( `guild_id` bigint(20) NOT NULL, `channel_id` bigint(20) NOT NULL, `command_name` varchar(40) NOT NULL, `enabled` tinyint(1) NOT NULL, PRIMARY KEY (`guild_id`, `channel_id`, `command_name`), CONSTRAINT `command_guild_channel_disabled_fk_guild` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `command_guild_disabled` ( `guild_id` bigint(20) NOT NULL, `command_name` varchar(40) NOT NULL, PRIMARY KEY (`guild_id`, `command_name`), CONSTRAINT `command_guild_disabled_fk_guild` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `command_logs` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `discord_id` bigint(20) NOT NULL, `guild_id` bigint(20) DEFAULT NULL, `command` varchar(30) NOT NULL, `nanos` bigint(20) NOT NULL, `moment` datetime NOT NULL DEFAULT UTC_TIMESTAMP(), PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `corrected_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `invalid` varchar(100) NOT NULL, `correction` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `invalid` (`invalid`, `correction`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `corrections` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `alias` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL, `artist_id` bigint(20) NOT NULL, PRIMARY KEY (`id`), KEY `corrections_fk_artist` (`artist_id`), CONSTRAINT `corrections_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `log_reported` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `reported` bigint(20) NOT NULL, `modded` bigint(20) NOT NULL, PRIMARY KEY (`id`), KEY `log_reported_fk_user` (`reported`), KEY `log_mod_fk_user` (`modded`), CONSTRAINT `log_mod_fk_user` FOREIGN KEY (`modded`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `log_tags` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tag` varchar(100) NOT NULL, `discord_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE IF NOT EXISTS `metadata` ( `url` varchar(400) CHARACTER SET ascii NOT NULL, `artist` varchar(400) DEFAULT NULL, `album` varchar(400) DEFAULT NULL, `song` varchar(400) DEFAULT NULL, `image` varchar(400) CHARACTER SET ascii DEFAULT NULL, PRIMARY KEY (`url`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `metrics` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL, `value` bigint(20) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `past_recommendations` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `artist_id` bigint(20) NOT NULL, `receiver_id` bigint(20) NOT NULL, `giver_id` bigint(20) NOT NULL, `rec_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), `rating` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `artist_id` (`artist_id`, `giver_id`, `receiver_id`), KEY `past_recommendations_fk_rec` (`receiver_id`), KEY `past_recommendations_fk_giv` (`giver_id`), CONSTRAINT `past_recommendations_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `past_recommendations_fk_giv` FOREIGN KEY (`giver_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `past_recommendations_fk_rec` FOREIGN KEY (`receiver_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queued_alias` ( `id` int(11) NOT NULL AUTO_INCREMENT, `alias` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `artist_id` bigint(20) NOT NULL, `discord_id` bigint(20) NOT NULL, `added_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), KEY `queuedalias_fk_artsit` (`artist_id`), KEY `queuedalias_fk_discordid` (`discord_id`), CONSTRAINT `queuedalias_fk_artsit` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `queuedalias_fk_discordid` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `queued_url` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(400) NOT NULL, `artist_id` bigint(20) NOT NULL, `discord_id` bigint(20) DEFAULT NULL, `added_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), UNIQUE KEY `artist_id` (`artist_id`, `url`), KEY `queued_url_fk_discordid` (`discord_id`), CONSTRAINT `queued_url_fk_artsit` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `queued_url_fk_discordid` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `random_links_ratings` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `url` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `discord_id` bigint(20) NOT NULL, `rating` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `url` (`url`, `discord_id`), KEY `random_links_ratings_discord` (`discord_id`), CONSTRAINT `random_links_ratings_discord` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `random_links_ratings_url` FOREIGN KEY (`url`) REFERENCES `randomlinks` (`url`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `rate_limited` ( `discord_id` bigint(20) NOT NULL, `queries_second` float NOT NULL, PRIMARY KEY (`discord_id`), CONSTRAINT `rate_limiteddiscord_id` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `reported` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `alt_id` bigint(20) NOT NULL, `discord_id` bigint(20) NOT NULL, `report_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), UNIQUE KEY `alt_id` (`alt_id`, `discord_id`), KEY `reported_fk_user` (`discord_id`), CONSTRAINT `report_fk_alt_url` FOREIGN KEY (`alt_id`) REFERENCES `alt_url` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `reported_fk_user` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `scrobbled_album` ( `artist_id` bigint(20) NOT NULL, `album_id` bigint(20) NOT NULL, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `playnumber` int(11) NOT NULL, PRIMARY KEY (`album_id`, `lastfm_id`), KEY `scrobbled_album_fk_artist` (`artist_id`), KEY `scrobbled_album_fk_user` (`lastfm_id`), CONSTRAINT `scrobbled_album_fk_album` FOREIGN KEY (`album_id`) REFERENCES `album` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `scrobbled_album_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `scrobbled_album_fk_user` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `scrobbled_artist` ( `artist_id` bigint(20) NOT NULL, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `playnumber` int(11) NOT NULL, PRIMARY KEY (`artist_id`, `lastfm_id`), KEY `scrobbled_artist_fk_user` (`lastfm_id`), KEY `scrobbled_artist_plays` (`playnumber`), KEY `artist_id` (`artist_id`), CONSTRAINT `scrobbled_artist_fk_artist` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `scrobbled_artist_fk_user` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `scrobbled_track` ( `artist_id` bigint(20) NOT NULL, `track_id` bigint(20) NOT NULL, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `playnumber` int(11) NOT NULL, `loved` tinyint(1) DEFAULT 0, PRIMARY KEY (`track_id`, `lastfm_id`), KEY `artist_id` (`artist_id`), KEY `track_id` (`track_id`), KEY `scrobbled_track_fk_user` (`lastfm_id`), CONSTRAINT `scrobbled_track_fk_track` FOREIGN KEY (`track_id`) REFERENCES `track` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `scrobbled_track_fk_user` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `server_blocked` ( `discord_id` bigint(20) NOT NULL, `guild_id` bigint(20) NOT NULL, PRIMARY KEY (`discord_id`, `guild_id`), CONSTRAINT `server_blocked_fk_user` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `server_reactions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) NOT NULL, `reaction` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `position` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `temp_combos` ( `id` bigint(20) NOT NULL DEFAULT 0, `discord_id` bigint(20) NOT NULL, `artist_id` bigint(20) NOT NULL, `album_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) DEFAULT NULL, `artist_combo` int(11) DEFAULT NULL, `album_combo` int(11) DEFAULT NULL, `track_combo` int(11) DEFAULT NULL ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `temp_corrections` ( `id` bigint(20) NOT NULL DEFAULT 0, `name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `url` varchar(400) CHARACTER SET ascii DEFAULT NULL, `url_status` tinyint(1) DEFAULT 1, `correction_status` tinyint(1) DEFAULT 0, KEY `id` (`id`, `url`), KEY `url` (`url`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `temp_idss` ( `id` bigint(20) NOT NULL DEFAULT 0 ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `temp_test` ( `id` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `top_combos` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `discord_id` bigint(20) NOT NULL, `artist_id` bigint(20) NOT NULL, `album_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) DEFAULT NULL, `artist_combo` int(11) DEFAULT NULL, `album_combo` int(11) DEFAULT NULL, `track_combo` int(11) DEFAULT NULL, `streak_start` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), UNIQUE KEY `combo_uniqueness` (`discord_id`, `artist_id`, `streak_start`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `user_billboard_data` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) DEFAULT NULL, `scrobble_count` smallint(6) DEFAULT NULL, `album_name` varchar(400) DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_billboard_data_artist_id` (`artist_id`), KEY `user_billboard_data_guild_id` (`lastfm_id`), KEY `track_name` (`track_name`, `artist_id`, `lastfm_id`), KEY `week_id` (`week_id`, `lastfm_id`), CONSTRAINT `user_billboard_data_guild_id` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `user_billboard_data_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `user_billboard_data_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) DEFAULT NULL, `album_name` varchar(400) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), KEY `user_billboard_data_scrobbles_artist_id` (`artist_id`), KEY `user_billboard_data_scrobbles_week_id` (`week_id`), KEY `lookup_user_billboard_scrobble` (`lastfm_id`, `week_id`), CONSTRAINT `user_billboard_data_scrobbles_guild_id` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `user_billboard_data_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `user_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `lastfm_id` varchar(45) CHARACTER SET ascii NOT NULL, `profile_pic` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `login_moment` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP(), PRIMARY KEY (`id`), UNIQUE KEY `lastfm_id` (`lastfm_id`), CONSTRAINT `user_info_fk_user` FOREIGN KEY (`lastfm_id`) REFERENCES `user` (`lastfm_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `user_reactions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `discord_id` bigint(20) NOT NULL, `reaction` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `position` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `user_reactions_user` (`discord_id`), CONSTRAINT `user_reactions_user` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `vote` ( `alt_id` bigint(20) NOT NULL, `discord_id` bigint(20) NOT NULL, `ispositive` tinyint(1) NOT NULL, `added_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP(), PRIMARY KEY (`alt_id`, `discord_id`), KEY `vote_fk_user` (`discord_id`), CONSTRAINT `vote_fk_alt_url` FOREIGN KEY (`alt_id`) REFERENCES `alt_url` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `vote_fk_user` FOREIGN KEY (`discord_id`) REFERENCES `user` (`discord_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; /*!50003 CREATE TRIGGER vote_add AFTER INSERT ON vote FOR EACH ROW BEGIN UPDATE alt_url SET score = score + IF(new.ispositive, 1, -1) WHERE id = new.alt_id; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; /*!50003 CREATE TRIGGER vote_update AFTER UPDATE ON vote FOR EACH ROW BEGIN SET @new_value = 0; IF (old.ispositive AND NOT new.ispositive) THEN SET @new_value = -2; ELSEIF (NOT old.ispositive AND new.ispositive) THEN SET @new_value = 2; END IF; IF (@new_value != 0) THEN UPDATE alt_url SET score = score + @new_value WHERE id = new.alt_id; END IF; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; /*!50003 CREATE TRIGGER vote_delete AFTER DELETE ON vote FOR EACH ROW BEGIN SET @new_value = 0; IF (old.ispositive) THEN SET @new_value = -1; ELSE SET @new_value = 1; END IF; UPDATE alt_url SET score = score + @new_value WHERE id = old.alt_id; END */;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_album_global_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `album_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_album_global_artist_id` (`artist_id`), KEY `week_id` (`week_id`), CONSTRAINT `weekly_billboard_album_global_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_global_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_album_global_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `album_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_album_global_scrobbles_artist_id` (`artist_id`), KEY `week_id` (`week_id`), CONSTRAINT `weekly_billboard_album_global_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_global_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_album_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `album_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_album_artist_id` (`artist_id`), KEY `weekly_billboard_album_guild_id` (`guild_id`), KEY `week_id` (`week_id`, `guild_id`), CONSTRAINT `weekly_billboard_album_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_album_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `album_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_album_scrobbles_artist_id` (`artist_id`), KEY `weekly_billboard_album_scrobbles_guild_id` (`guild_id`), KEY `week_id` (`week_id`, `guild_id`), CONSTRAINT `weekly_billboard_album_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_scrobbles_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_album_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_artist_global_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_artist_global_listeners_artist_id` (`artist_id`), KEY `weekly_billboard_artist_global_listeners_week_id` (`week_id`), CONSTRAINT `weekly_billboard_artist_global_listeners_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artist_global_listeners_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_artist_global_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_artist_global_scrobbles_artist_id` (`artist_id`), KEY `week_id` (`week_id`), CONSTRAINT `weekly_billboard_artist_global_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artist_global_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_artist_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_artists_artist_id` (`artist_id`), KEY `weekly_billboard_artist_guild_id` (`guild_id`), KEY `weekly_billboard_artist_week_id` (`week_id`), CONSTRAINT `weekly_billboard_artist_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artist_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artists_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_artist_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_artist_scrobbles_artist_id` (`artist_id`), KEY `weekly_billboard_artist_scrobbles_guild_id` (`guild_id`), KEY `week_id` (`week_id`, `guild_id`), CONSTRAINT `weekly_billboard_artist_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artist_scrobbles_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_artist_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_global_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_global_artist_id` (`artist_id`), KEY `week_id` (`week_id`), CONSTRAINT `weekly_billboard_global_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_global_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_global_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_global_scrobbles_artist_id` (`artist_id`), KEY `week_id` (`week_id`), CONSTRAINT `weekly_billboard_global_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_global_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_listeners` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `listeners` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_artist_id` (`artist_id`), KEY `weekly_billboard_guild_id` (`guild_id`), KEY `week_id` (`week_id`, `guild_id`), CONSTRAINT `weekly_billboard_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; CREATE TABLE `weekly_billboard_scrobbles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `guild_id` bigint(20) DEFAULT NULL, `week_id` int(11) DEFAULT NULL, `artist_id` bigint(20) DEFAULT NULL, `track_name` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `position` smallint(6) DEFAULT NULL, `scrobble_count` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `weekly_billboard_scrobbles_artist_id` (`artist_id`), KEY `weekly_billboard_scrobbles_guild_id` (`guild_id`), KEY `week_id` (`week_id`, `guild_id`), CONSTRAINT `weekly_billboard_scrobbles_artist_id` FOREIGN KEY (`artist_id`) REFERENCES `artist` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_scrobbles_guild_id` FOREIGN KEY (`guild_id`) REFERENCES `guild` (`guild_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `weekly_billboard_scrobbles_week_id` FOREIGN KEY (`week_id`) REFERENCES `week` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DELIMITER ;; CREATE FUNCTION `streak_billboard_album_listeners`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id, album_name) AS (SELECT week_id, artist_id, guild_id, album_name FROM weekly_billboard_album_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id, b.album_name FROM cte t JOIN weekly_billboard_album_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id AND t.album_name = b.album_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_album_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_album_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id, album_name) AS (SELECT week_id, artist_id, guild_id, album_name FROM weekly_billboard_album_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id, b.album_name FROM cte t JOIN weekly_billboard_album_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id AND t.album_name = b.album_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_artist` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_artist`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id) AS (SELECT week_id, artist_id, guild_id FROM weekly_billboard_artist_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id FROM cte t JOIN weekly_billboard_artist_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_artist_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_artist_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id) AS (SELECT week_id, artist_id, guild_id FROM weekly_billboard_artist_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id FROM cte t JOIN weekly_billboard_artist_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_global_track_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_global_track_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, track_name) AS (SELECT week_id, artist_id, track_name FROM weekly_billboard_global_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.track_name FROM cte t JOIN weekly_billboard_global_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.track_name = b.track_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_track` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_track`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id, track_name) AS (SELECT week_id, artist_id, guild_id, track_name FROM weekly_billboard_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id, b.track_name FROM cte t JOIN weekly_billboard_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id AND t.track_name = b.track_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_billboard_track_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_billboard_track_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, guild_id, track_name) AS (SELECT week_id, artist_id, guild_id, track_name FROM weekly_billboard_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.guild_id, b.track_name FROM cte t JOIN weekly_billboard_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.guild_id = b.guild_id AND t.track_name = b.track_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_global_billboard_album_listeners` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_global_billboard_album_listeners`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, album_name) AS (SELECT week_id, artist_id, album_name FROM weekly_billboard_album_global_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.album_name FROM cte t JOIN weekly_billboard_album_global_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.album_name = b.album_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_global_billboard_album_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_global_billboard_album_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, album_name) AS (SELECT week_id, artist_id, album_name FROM weekly_billboard_album_global_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.album_name FROM cte t JOIN weekly_billboard_album_global_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.album_name = b.album_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_global_billboard_artist` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_global_billboard_artist`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id) AS (SELECT week_id, artist_id FROM weekly_billboard_artist_global_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id FROM cte t JOIN weekly_billboard_artist_global_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_global_billboard_artist_scrobbles` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_global_billboard_artist_scrobbles`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id) AS (SELECT week_id, artist_id FROM weekly_billboard_artist_global_scrobbles WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id FROM cte t JOIN weekly_billboard_artist_global_scrobbles b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id ) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!50003 DROP FUNCTION IF EXISTS `streak_global_billboard_track` */; /*!50003 SET @saved_cs_client = @@character_set_client */; /*!50003 SET @saved_cs_results = @@character_set_results */; /*!50003 SET @saved_col_connection = @@collation_connection */; /*!50003 SET character_set_client = utf8mb4 */; /*!50003 SET character_set_results = utf8mb4 */; /*!50003 SET collation_connection = utf8mb4_unicode_ci */; /*!50003 SET @saved_sql_mode = @@sql_mode */; /*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; DELIMITER ;; CREATE FUNCTION `streak_global_billboard_track`(bill_id bigint(20)) RETURNS int(11) DETERMINISTIC RETURN (WITH RECURSIVE cte (week_id, artist_id, track_name) AS (SELECT week_id, artist_id, track_name FROM weekly_billboard_global_listeners WHERE id = bill_id UNION ALL SELECT b.week_id, b.artist_id, b.track_name FROM cte t JOIN weekly_billboard_global_listeners b ON b.week_id = t.week_id - 1 AND t.artist_id = b.artist_id AND t.track_name = b.track_name) SELECT COUNT(*) FROM cte) ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */; /*!50003 SET character_set_client = @saved_cs_client */; /*!50003 SET character_set_results = @saved_cs_results */; /*!50003 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE = "+00:00" */; -- /*!40101 SET CHARACTER_SET_CLIENT = @OLD_CHARACTER_SET_CLIENT */; -- /*!40101 SET CHARACTER_SET_RESULTS = @OLD_CHARACTER_SET_RESULTS */; -- /*!40101 SET COLLATION_CONNECTION = @OLD_COLLATION_CONNECTION */; -- /*!40111 SET SQL_NOTES = @OLD_SQL_NOTES */; -- Dump completed on 2021-01-25 22:40:27
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.1 -- Dumped by pg_dump version 11.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; -- -- Name: schema-generator$airbnb; Type: SCHEMA; Schema: -; Owner: - -- CREATE SCHEMA "schema-generator$airbnb"; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: Amenities; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Amenities" ( id character varying(25) NOT NULL, elevator boolean NOT NULL, "petsAllowed" boolean NOT NULL, internet boolean NOT NULL, kitchen boolean NOT NULL, "wirelessInternet" boolean NOT NULL, "familyKidFriendly" boolean NOT NULL, "freeParkingOnPremises" boolean NOT NULL, "hotTub" boolean NOT NULL, pool boolean NOT NULL, "smokingAllowed" boolean NOT NULL, "wheelchairAccessible" boolean NOT NULL, breakfast boolean NOT NULL, "cableTv" boolean NOT NULL, "suitableForEvents" boolean NOT NULL, dryer boolean NOT NULL, washer boolean NOT NULL, "indoorFireplace" boolean NOT NULL, tv boolean NOT NULL, heating boolean NOT NULL, hangers boolean NOT NULL, iron boolean NOT NULL, "hairDryer" boolean NOT NULL, doorman boolean NOT NULL, "paidParkingOffPremises" boolean NOT NULL, "freeParkingOnStreet" boolean NOT NULL, gym boolean NOT NULL, "airConditioning" boolean NOT NULL, shampoo boolean NOT NULL, essentials boolean NOT NULL, "laptopFriendlyWorkspace" boolean NOT NULL, "privateEntrance" boolean NOT NULL, "buzzerWirelessIntercom" boolean NOT NULL, "babyBath" boolean NOT NULL, "babyMonitor" boolean NOT NULL, "babysitterRecommendations" boolean NOT NULL, bathtub boolean NOT NULL, "changingTable" boolean NOT NULL, "childrensBooksAndToys" boolean NOT NULL, "childrensDinnerware" boolean NOT NULL, crib boolean NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Booking; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Booking" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "startDate" timestamp(3) without time zone NOT NULL, "endDate" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: City; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."City" ( id character varying(25) NOT NULL, name text NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: CreditCardInformation; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."CreditCardInformation" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "cardNumber" text NOT NULL, "expiresOnMonth" integer NOT NULL, "expiresOnYear" integer NOT NULL, "securityCode" text NOT NULL, "firstName" text NOT NULL, "lastName" text NOT NULL, "postalCode" text NOT NULL, country text NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Experience; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Experience" ( id character varying(25) NOT NULL, title text NOT NULL, "pricePerPerson" integer NOT NULL, popularity integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: ExperienceCategory; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."ExperienceCategory" ( id character varying(25) NOT NULL, "mainColor" text NOT NULL, name text NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: GuestRequirements; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."GuestRequirements" ( id character varying(25) NOT NULL, "govIssuedId" boolean NOT NULL, "recommendationsFromOtherHosts" boolean NOT NULL, "guestTripInformation" boolean NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: HouseRules; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."HouseRules" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "suitableForChildren" boolean, "suitableForInfants" boolean, "petsAllowed" boolean, "smokingAllowed" boolean, "partiesAndEventsAllowed" boolean, "additionalRules" text ); -- -- Name: Location; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Location" ( id character varying(25) NOT NULL, lat numeric(65,30) NOT NULL, lng numeric(65,30) NOT NULL, address text, directions text, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Message; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Message" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "deliveredAt" timestamp(3) without time zone NOT NULL, "readAt" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Neighbourhood; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Neighbourhood" ( id character varying(25) NOT NULL, name text NOT NULL, slug text NOT NULL, featured boolean NOT NULL, popularity integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Notification; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Notification" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, type text, link text NOT NULL, "readDate" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Payment; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Payment" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "serviceFee" numeric(65,30) NOT NULL, "placePrice" numeric(65,30) NOT NULL, "totalPrice" numeric(65,30) NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: PaymentAccount; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."PaymentAccount" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, type text, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: PaypalInformation; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."PaypalInformation" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, email text NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Picture; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Picture" ( id character varying(25) NOT NULL, url text NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Place; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Place" ( id character varying(25) NOT NULL, name text, size text, "shortDescription" text NOT NULL, description text NOT NULL, slug text NOT NULL, "maxGuests" integer NOT NULL, "numBedrooms" integer NOT NULL, "numBeds" integer NOT NULL, "numBaths" integer NOT NULL, popularity integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Policies; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Policies" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "checkInStartTime" numeric(65,30) NOT NULL, "checkInEndTime" numeric(65,30) NOT NULL, "checkoutTime" numeric(65,30) NOT NULL ); -- -- Name: Pricing; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Pricing" ( id character varying(25) NOT NULL, "monthlyDiscount" integer, "weeklyDiscount" integer, "perNight" integer NOT NULL, "smartPricing" boolean NOT NULL, "basePrice" integer NOT NULL, "averageWeekly" integer NOT NULL, "averageMonthly" integer NOT NULL, "cleaningFee" integer, "securityDeposit" integer, "extraGuests" integer, "weekendPricing" integer, currency text, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Restaurant; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Restaurant" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, title text NOT NULL, "avgPricePerPerson" integer NOT NULL, "isCurated" boolean NOT NULL, slug text NOT NULL, popularity integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: Review; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Review" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, text text NOT NULL, stars integer NOT NULL, accuracy integer NOT NULL, location integer NOT NULL, "checkIn" integer NOT NULL, value integer NOT NULL, cleanliness integer NOT NULL, communication integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL ); -- -- Name: User; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."User" ( id character varying(25) NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "firstName" text NOT NULL, "lastName" text NOT NULL, email text NOT NULL, password text NOT NULL, phone text NOT NULL, "responseRate" numeric(65,30), "responseTime" integer, "isSuperHost" boolean NOT NULL ); -- -- Name: Views; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."Views" ( id character varying(25) NOT NULL, "lastWeek" integer NOT NULL, "updatedAt" timestamp(3) without time zone NOT NULL, "createdAt" timestamp(3) without time zone NOT NULL ); -- -- Name: _AmenitiesToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_AmenitiesToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _BookingToPayment; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_BookingToPayment" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _BookingToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_BookingToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _BookingToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_BookingToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _CityToNeighbourhood; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_CityToNeighbourhood" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _CreditCardInformationToPaymentAccount; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ExperienceToExperienceCategory; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ExperienceToExperienceCategory" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ExperienceToLocation; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ExperienceToLocation" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ExperienceToPicture; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ExperienceToPicture" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ExperienceToReview; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ExperienceToReview" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ExperienceToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ExperienceToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _GuestRequirementsToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_GuestRequirementsToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _HouseRulesToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_HouseRulesToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _LocationToNeighbourhood; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_LocationToNeighbourhood" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _LocationToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_LocationToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _LocationToRestaurant; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_LocationToRestaurant" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _LocationToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_LocationToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _NeighbourhoodToPicture; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_NeighbourhoodToPicture" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _NotificationToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_NotificationToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PaymentAccountToPaypalInformation; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PaymentAccountToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PaymentAccountToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PaymentToPaymentAccount; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PaymentToPaymentAccount" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PictureToPlace; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PictureToPlace" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PictureToRestaurant; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PictureToRestaurant" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PictureToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PictureToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PlaceToPolicies; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PlaceToPolicies" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PlaceToPricing; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PlaceToPricing" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PlaceToReview; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PlaceToReview" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PlaceToUser; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PlaceToUser" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _PlaceToViews; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_PlaceToViews" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _ReceivedMessages; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_ReceivedMessages" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: _RelayId; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_RelayId" ( id character varying(36) NOT NULL, "stableModelIdentifier" character varying(25) NOT NULL ); -- -- Name: _SentMessages; Type: TABLE; Schema: schema-generator$airbnb; Owner: - -- CREATE TABLE "schema-generator$airbnb"."_SentMessages" ( "A" character varying(25) NOT NULL, "B" character varying(25) NOT NULL ); -- -- Name: Amenities Amenities_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Amenities" ADD CONSTRAINT "Amenities_pkey" PRIMARY KEY (id); -- -- Name: Booking Booking_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Booking" ADD CONSTRAINT "Booking_pkey" PRIMARY KEY (id); -- -- Name: City City_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."City" ADD CONSTRAINT "City_pkey" PRIMARY KEY (id); -- -- Name: CreditCardInformation CreditCardInformation_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."CreditCardInformation" ADD CONSTRAINT "CreditCardInformation_pkey" PRIMARY KEY (id); -- -- Name: ExperienceCategory ExperienceCategory_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."ExperienceCategory" ADD CONSTRAINT "ExperienceCategory_pkey" PRIMARY KEY (id); -- -- Name: Experience Experience_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Experience" ADD CONSTRAINT "Experience_pkey" PRIMARY KEY (id); -- -- Name: GuestRequirements GuestRequirements_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."GuestRequirements" ADD CONSTRAINT "GuestRequirements_pkey" PRIMARY KEY (id); -- -- Name: HouseRules HouseRules_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."HouseRules" ADD CONSTRAINT "HouseRules_pkey" PRIMARY KEY (id); -- -- Name: Location Location_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Location" ADD CONSTRAINT "Location_pkey" PRIMARY KEY (id); -- -- Name: Message Message_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Message" ADD CONSTRAINT "Message_pkey" PRIMARY KEY (id); -- -- Name: Neighbourhood Neighbourhood_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Neighbourhood" ADD CONSTRAINT "Neighbourhood_pkey" PRIMARY KEY (id); -- -- Name: Notification Notification_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Notification" ADD CONSTRAINT "Notification_pkey" PRIMARY KEY (id); -- -- Name: PaymentAccount PaymentAccount_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."PaymentAccount" ADD CONSTRAINT "PaymentAccount_pkey" PRIMARY KEY (id); -- -- Name: Payment Payment_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Payment" ADD CONSTRAINT "Payment_pkey" PRIMARY KEY (id); -- -- Name: PaypalInformation PaypalInformation_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."PaypalInformation" ADD CONSTRAINT "PaypalInformation_pkey" PRIMARY KEY (id); -- -- Name: Picture Picture_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Picture" ADD CONSTRAINT "Picture_pkey" PRIMARY KEY (id); -- -- Name: Place Place_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Place" ADD CONSTRAINT "Place_pkey" PRIMARY KEY (id); -- -- Name: Policies Policies_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Policies" ADD CONSTRAINT "Policies_pkey" PRIMARY KEY (id); -- -- Name: Pricing Pricing_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Pricing" ADD CONSTRAINT "Pricing_pkey" PRIMARY KEY (id); -- -- Name: Restaurant Restaurant_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Restaurant" ADD CONSTRAINT "Restaurant_pkey" PRIMARY KEY (id); -- -- Name: Review Review_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Review" ADD CONSTRAINT "Review_pkey" PRIMARY KEY (id); -- -- Name: User User_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."User" ADD CONSTRAINT "User_pkey" PRIMARY KEY (id); -- -- Name: Views Views_pkey; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."Views" ADD CONSTRAINT "Views_pkey" PRIMARY KEY (id); -- -- Name: _RelayId pk_RelayId; Type: CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_RelayId" ADD CONSTRAINT "pk_RelayId" PRIMARY KEY (id); -- -- Name: _AmenitiesToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_AmenitiesToPlace_A" ON "schema-generator$airbnb"."_AmenitiesToPlace" USING btree ("A"); -- -- Name: _AmenitiesToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_AmenitiesToPlace_AB_unique" ON "schema-generator$airbnb"."_AmenitiesToPlace" USING btree ("A", "B"); -- -- Name: _AmenitiesToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_AmenitiesToPlace_B" ON "schema-generator$airbnb"."_AmenitiesToPlace" USING btree ("B"); -- -- Name: _BookingToPayment_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToPayment_A" ON "schema-generator$airbnb"."_BookingToPayment" USING btree ("A"); -- -- Name: _BookingToPayment_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_BookingToPayment_AB_unique" ON "schema-generator$airbnb"."_BookingToPayment" USING btree ("A", "B"); -- -- Name: _BookingToPayment_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToPayment_B" ON "schema-generator$airbnb"."_BookingToPayment" USING btree ("B"); -- -- Name: _BookingToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToPlace_A" ON "schema-generator$airbnb"."_BookingToPlace" USING btree ("A"); -- -- Name: _BookingToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_BookingToPlace_AB_unique" ON "schema-generator$airbnb"."_BookingToPlace" USING btree ("A", "B"); -- -- Name: _BookingToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToPlace_B" ON "schema-generator$airbnb"."_BookingToPlace" USING btree ("B"); -- -- Name: _BookingToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToUser_A" ON "schema-generator$airbnb"."_BookingToUser" USING btree ("A"); -- -- Name: _BookingToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_BookingToUser_AB_unique" ON "schema-generator$airbnb"."_BookingToUser" USING btree ("A", "B"); -- -- Name: _BookingToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_BookingToUser_B" ON "schema-generator$airbnb"."_BookingToUser" USING btree ("B"); -- -- Name: _CityToNeighbourhood_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_CityToNeighbourhood_A" ON "schema-generator$airbnb"."_CityToNeighbourhood" USING btree ("A"); -- -- Name: _CityToNeighbourhood_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_CityToNeighbourhood_AB_unique" ON "schema-generator$airbnb"."_CityToNeighbourhood" USING btree ("A", "B"); -- -- Name: _CityToNeighbourhood_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_CityToNeighbourhood_B" ON "schema-generator$airbnb"."_CityToNeighbourhood" USING btree ("B"); -- -- Name: _CreditCardInformationToPaymentAccount_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_CreditCardInformationToPaymentAccount_A" ON "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" USING btree ("A"); -- -- Name: _CreditCardInformationToPaymentAccount_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_CreditCardInformationToPaymentAccount_AB_unique" ON "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" USING btree ("A", "B"); -- -- Name: _CreditCardInformationToPaymentAccount_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_CreditCardInformationToPaymentAccount_B" ON "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" USING btree ("B"); -- -- Name: _ExperienceToExperienceCategory_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToExperienceCategory_A" ON "schema-generator$airbnb"."_ExperienceToExperienceCategory" USING btree ("A"); -- -- Name: _ExperienceToExperienceCategory_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ExperienceToExperienceCategory_AB_unique" ON "schema-generator$airbnb"."_ExperienceToExperienceCategory" USING btree ("A", "B"); -- -- Name: _ExperienceToExperienceCategory_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToExperienceCategory_B" ON "schema-generator$airbnb"."_ExperienceToExperienceCategory" USING btree ("B"); -- -- Name: _ExperienceToLocation_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToLocation_A" ON "schema-generator$airbnb"."_ExperienceToLocation" USING btree ("A"); -- -- Name: _ExperienceToLocation_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ExperienceToLocation_AB_unique" ON "schema-generator$airbnb"."_ExperienceToLocation" USING btree ("A", "B"); -- -- Name: _ExperienceToLocation_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToLocation_B" ON "schema-generator$airbnb"."_ExperienceToLocation" USING btree ("B"); -- -- Name: _ExperienceToPicture_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToPicture_A" ON "schema-generator$airbnb"."_ExperienceToPicture" USING btree ("A"); -- -- Name: _ExperienceToPicture_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ExperienceToPicture_AB_unique" ON "schema-generator$airbnb"."_ExperienceToPicture" USING btree ("A", "B"); -- -- Name: _ExperienceToPicture_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToPicture_B" ON "schema-generator$airbnb"."_ExperienceToPicture" USING btree ("B"); -- -- Name: _ExperienceToReview_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToReview_A" ON "schema-generator$airbnb"."_ExperienceToReview" USING btree ("A"); -- -- Name: _ExperienceToReview_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ExperienceToReview_AB_unique" ON "schema-generator$airbnb"."_ExperienceToReview" USING btree ("A", "B"); -- -- Name: _ExperienceToReview_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToReview_B" ON "schema-generator$airbnb"."_ExperienceToReview" USING btree ("B"); -- -- Name: _ExperienceToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToUser_A" ON "schema-generator$airbnb"."_ExperienceToUser" USING btree ("A"); -- -- Name: _ExperienceToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ExperienceToUser_AB_unique" ON "schema-generator$airbnb"."_ExperienceToUser" USING btree ("A", "B"); -- -- Name: _ExperienceToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ExperienceToUser_B" ON "schema-generator$airbnb"."_ExperienceToUser" USING btree ("B"); -- -- Name: _GuestRequirementsToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_GuestRequirementsToPlace_A" ON "schema-generator$airbnb"."_GuestRequirementsToPlace" USING btree ("A"); -- -- Name: _GuestRequirementsToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_GuestRequirementsToPlace_AB_unique" ON "schema-generator$airbnb"."_GuestRequirementsToPlace" USING btree ("A", "B"); -- -- Name: _GuestRequirementsToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_GuestRequirementsToPlace_B" ON "schema-generator$airbnb"."_GuestRequirementsToPlace" USING btree ("B"); -- -- Name: _HouseRulesToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_HouseRulesToPlace_A" ON "schema-generator$airbnb"."_HouseRulesToPlace" USING btree ("A"); -- -- Name: _HouseRulesToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_HouseRulesToPlace_AB_unique" ON "schema-generator$airbnb"."_HouseRulesToPlace" USING btree ("A", "B"); -- -- Name: _HouseRulesToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_HouseRulesToPlace_B" ON "schema-generator$airbnb"."_HouseRulesToPlace" USING btree ("B"); -- -- Name: _LocationToNeighbourhood_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToNeighbourhood_A" ON "schema-generator$airbnb"."_LocationToNeighbourhood" USING btree ("A"); -- -- Name: _LocationToNeighbourhood_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_LocationToNeighbourhood_AB_unique" ON "schema-generator$airbnb"."_LocationToNeighbourhood" USING btree ("A", "B"); -- -- Name: _LocationToNeighbourhood_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToNeighbourhood_B" ON "schema-generator$airbnb"."_LocationToNeighbourhood" USING btree ("B"); -- -- Name: _LocationToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToPlace_A" ON "schema-generator$airbnb"."_LocationToPlace" USING btree ("A"); -- -- Name: _LocationToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_LocationToPlace_AB_unique" ON "schema-generator$airbnb"."_LocationToPlace" USING btree ("A", "B"); -- -- Name: _LocationToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToPlace_B" ON "schema-generator$airbnb"."_LocationToPlace" USING btree ("B"); -- -- Name: _LocationToRestaurant_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToRestaurant_A" ON "schema-generator$airbnb"."_LocationToRestaurant" USING btree ("A"); -- -- Name: _LocationToRestaurant_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_LocationToRestaurant_AB_unique" ON "schema-generator$airbnb"."_LocationToRestaurant" USING btree ("A", "B"); -- -- Name: _LocationToRestaurant_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToRestaurant_B" ON "schema-generator$airbnb"."_LocationToRestaurant" USING btree ("B"); -- -- Name: _LocationToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToUser_A" ON "schema-generator$airbnb"."_LocationToUser" USING btree ("A"); -- -- Name: _LocationToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_LocationToUser_AB_unique" ON "schema-generator$airbnb"."_LocationToUser" USING btree ("A", "B"); -- -- Name: _LocationToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_LocationToUser_B" ON "schema-generator$airbnb"."_LocationToUser" USING btree ("B"); -- -- Name: _NeighbourhoodToPicture_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_NeighbourhoodToPicture_A" ON "schema-generator$airbnb"."_NeighbourhoodToPicture" USING btree ("A"); -- -- Name: _NeighbourhoodToPicture_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_NeighbourhoodToPicture_AB_unique" ON "schema-generator$airbnb"."_NeighbourhoodToPicture" USING btree ("A", "B"); -- -- Name: _NeighbourhoodToPicture_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_NeighbourhoodToPicture_B" ON "schema-generator$airbnb"."_NeighbourhoodToPicture" USING btree ("B"); -- -- Name: _NotificationToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_NotificationToUser_A" ON "schema-generator$airbnb"."_NotificationToUser" USING btree ("A"); -- -- Name: _NotificationToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_NotificationToUser_AB_unique" ON "schema-generator$airbnb"."_NotificationToUser" USING btree ("A", "B"); -- -- Name: _NotificationToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_NotificationToUser_B" ON "schema-generator$airbnb"."_NotificationToUser" USING btree ("B"); -- -- Name: _PaymentAccountToPaypalInformation_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentAccountToPaypalInformation_A" ON "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" USING btree ("A"); -- -- Name: _PaymentAccountToPaypalInformation_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PaymentAccountToPaypalInformation_AB_unique" ON "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" USING btree ("A", "B"); -- -- Name: _PaymentAccountToPaypalInformation_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentAccountToPaypalInformation_B" ON "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" USING btree ("B"); -- -- Name: _PaymentAccountToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentAccountToUser_A" ON "schema-generator$airbnb"."_PaymentAccountToUser" USING btree ("A"); -- -- Name: _PaymentAccountToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PaymentAccountToUser_AB_unique" ON "schema-generator$airbnb"."_PaymentAccountToUser" USING btree ("A", "B"); -- -- Name: _PaymentAccountToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentAccountToUser_B" ON "schema-generator$airbnb"."_PaymentAccountToUser" USING btree ("B"); -- -- Name: _PaymentToPaymentAccount_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentToPaymentAccount_A" ON "schema-generator$airbnb"."_PaymentToPaymentAccount" USING btree ("A"); -- -- Name: _PaymentToPaymentAccount_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PaymentToPaymentAccount_AB_unique" ON "schema-generator$airbnb"."_PaymentToPaymentAccount" USING btree ("A", "B"); -- -- Name: _PaymentToPaymentAccount_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PaymentToPaymentAccount_B" ON "schema-generator$airbnb"."_PaymentToPaymentAccount" USING btree ("B"); -- -- Name: _PictureToPlace_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToPlace_A" ON "schema-generator$airbnb"."_PictureToPlace" USING btree ("A"); -- -- Name: _PictureToPlace_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PictureToPlace_AB_unique" ON "schema-generator$airbnb"."_PictureToPlace" USING btree ("A", "B"); -- -- Name: _PictureToPlace_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToPlace_B" ON "schema-generator$airbnb"."_PictureToPlace" USING btree ("B"); -- -- Name: _PictureToRestaurant_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToRestaurant_A" ON "schema-generator$airbnb"."_PictureToRestaurant" USING btree ("A"); -- -- Name: _PictureToRestaurant_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PictureToRestaurant_AB_unique" ON "schema-generator$airbnb"."_PictureToRestaurant" USING btree ("A", "B"); -- -- Name: _PictureToRestaurant_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToRestaurant_B" ON "schema-generator$airbnb"."_PictureToRestaurant" USING btree ("B"); -- -- Name: _PictureToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToUser_A" ON "schema-generator$airbnb"."_PictureToUser" USING btree ("A"); -- -- Name: _PictureToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PictureToUser_AB_unique" ON "schema-generator$airbnb"."_PictureToUser" USING btree ("A", "B"); -- -- Name: _PictureToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PictureToUser_B" ON "schema-generator$airbnb"."_PictureToUser" USING btree ("B"); -- -- Name: _PlaceToPolicies_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToPolicies_A" ON "schema-generator$airbnb"."_PlaceToPolicies" USING btree ("A"); -- -- Name: _PlaceToPolicies_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PlaceToPolicies_AB_unique" ON "schema-generator$airbnb"."_PlaceToPolicies" USING btree ("A", "B"); -- -- Name: _PlaceToPolicies_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToPolicies_B" ON "schema-generator$airbnb"."_PlaceToPolicies" USING btree ("B"); -- -- Name: _PlaceToPricing_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToPricing_A" ON "schema-generator$airbnb"."_PlaceToPricing" USING btree ("A"); -- -- Name: _PlaceToPricing_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PlaceToPricing_AB_unique" ON "schema-generator$airbnb"."_PlaceToPricing" USING btree ("A", "B"); -- -- Name: _PlaceToPricing_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToPricing_B" ON "schema-generator$airbnb"."_PlaceToPricing" USING btree ("B"); -- -- Name: _PlaceToReview_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToReview_A" ON "schema-generator$airbnb"."_PlaceToReview" USING btree ("A"); -- -- Name: _PlaceToReview_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PlaceToReview_AB_unique" ON "schema-generator$airbnb"."_PlaceToReview" USING btree ("A", "B"); -- -- Name: _PlaceToReview_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToReview_B" ON "schema-generator$airbnb"."_PlaceToReview" USING btree ("B"); -- -- Name: _PlaceToUser_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToUser_A" ON "schema-generator$airbnb"."_PlaceToUser" USING btree ("A"); -- -- Name: _PlaceToUser_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PlaceToUser_AB_unique" ON "schema-generator$airbnb"."_PlaceToUser" USING btree ("A", "B"); -- -- Name: _PlaceToUser_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToUser_B" ON "schema-generator$airbnb"."_PlaceToUser" USING btree ("B"); -- -- Name: _PlaceToViews_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToViews_A" ON "schema-generator$airbnb"."_PlaceToViews" USING btree ("A"); -- -- Name: _PlaceToViews_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_PlaceToViews_AB_unique" ON "schema-generator$airbnb"."_PlaceToViews" USING btree ("A", "B"); -- -- Name: _PlaceToViews_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_PlaceToViews_B" ON "schema-generator$airbnb"."_PlaceToViews" USING btree ("B"); -- -- Name: _ReceivedMessages_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ReceivedMessages_A" ON "schema-generator$airbnb"."_ReceivedMessages" USING btree ("A"); -- -- Name: _ReceivedMessages_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_ReceivedMessages_AB_unique" ON "schema-generator$airbnb"."_ReceivedMessages" USING btree ("A", "B"); -- -- Name: _ReceivedMessages_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_ReceivedMessages_B" ON "schema-generator$airbnb"."_ReceivedMessages" USING btree ("B"); -- -- Name: _SentMessages_A; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_SentMessages_A" ON "schema-generator$airbnb"."_SentMessages" USING btree ("A"); -- -- Name: _SentMessages_AB_unique; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "_SentMessages_AB_unique" ON "schema-generator$airbnb"."_SentMessages" USING btree ("A", "B"); -- -- Name: _SentMessages_B; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE INDEX "_SentMessages_B" ON "schema-generator$airbnb"."_SentMessages" USING btree ("B"); -- -- Name: schema-generator$airbnb.User.email._UNIQUE; Type: INDEX; Schema: schema-generator$airbnb; Owner: - -- CREATE UNIQUE INDEX "schema-generator$airbnb.User.email._UNIQUE" ON "schema-generator$airbnb"."User" USING btree (email); -- -- Name: _AmenitiesToPlace _AmenitiesToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_AmenitiesToPlace" ADD CONSTRAINT "_AmenitiesToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Amenities"(id) ON DELETE CASCADE; -- -- Name: _AmenitiesToPlace _AmenitiesToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_AmenitiesToPlace" ADD CONSTRAINT "_AmenitiesToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _BookingToPayment _BookingToPayment_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToPayment" ADD CONSTRAINT "_BookingToPayment_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Booking"(id) ON DELETE CASCADE; -- -- Name: _BookingToPayment _BookingToPayment_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToPayment" ADD CONSTRAINT "_BookingToPayment_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Payment"(id) ON DELETE CASCADE; -- -- Name: _BookingToPlace _BookingToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToPlace" ADD CONSTRAINT "_BookingToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Booking"(id) ON DELETE CASCADE; -- -- Name: _BookingToPlace _BookingToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToPlace" ADD CONSTRAINT "_BookingToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _BookingToUser _BookingToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToUser" ADD CONSTRAINT "_BookingToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Booking"(id) ON DELETE CASCADE; -- -- Name: _BookingToUser _BookingToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_BookingToUser" ADD CONSTRAINT "_BookingToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _CityToNeighbourhood _CityToNeighbourhood_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_CityToNeighbourhood" ADD CONSTRAINT "_CityToNeighbourhood_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."City"(id) ON DELETE CASCADE; -- -- Name: _CityToNeighbourhood _CityToNeighbourhood_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_CityToNeighbourhood" ADD CONSTRAINT "_CityToNeighbourhood_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Neighbourhood"(id) ON DELETE CASCADE; -- -- Name: _CreditCardInformationToPaymentAccount _CreditCardInformationToPaymentAccount_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" ADD CONSTRAINT "_CreditCardInformationToPaymentAccount_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."CreditCardInformation"(id) ON DELETE CASCADE; -- -- Name: _CreditCardInformationToPaymentAccount _CreditCardInformationToPaymentAccount_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_CreditCardInformationToPaymentAccount" ADD CONSTRAINT "_CreditCardInformationToPaymentAccount_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."PaymentAccount"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToExperienceCategory _ExperienceToExperienceCategory_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToExperienceCategory" ADD CONSTRAINT "_ExperienceToExperienceCategory_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Experience"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToExperienceCategory _ExperienceToExperienceCategory_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToExperienceCategory" ADD CONSTRAINT "_ExperienceToExperienceCategory_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."ExperienceCategory"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToLocation _ExperienceToLocation_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToLocation" ADD CONSTRAINT "_ExperienceToLocation_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Experience"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToLocation _ExperienceToLocation_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToLocation" ADD CONSTRAINT "_ExperienceToLocation_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Location"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToPicture _ExperienceToPicture_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToPicture" ADD CONSTRAINT "_ExperienceToPicture_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Experience"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToPicture _ExperienceToPicture_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToPicture" ADD CONSTRAINT "_ExperienceToPicture_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Picture"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToReview _ExperienceToReview_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToReview" ADD CONSTRAINT "_ExperienceToReview_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Experience"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToReview _ExperienceToReview_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToReview" ADD CONSTRAINT "_ExperienceToReview_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Review"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToUser _ExperienceToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToUser" ADD CONSTRAINT "_ExperienceToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Experience"(id) ON DELETE CASCADE; -- -- Name: _ExperienceToUser _ExperienceToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ExperienceToUser" ADD CONSTRAINT "_ExperienceToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _GuestRequirementsToPlace _GuestRequirementsToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_GuestRequirementsToPlace" ADD CONSTRAINT "_GuestRequirementsToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."GuestRequirements"(id) ON DELETE CASCADE; -- -- Name: _GuestRequirementsToPlace _GuestRequirementsToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_GuestRequirementsToPlace" ADD CONSTRAINT "_GuestRequirementsToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _HouseRulesToPlace _HouseRulesToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_HouseRulesToPlace" ADD CONSTRAINT "_HouseRulesToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."HouseRules"(id) ON DELETE CASCADE; -- -- Name: _HouseRulesToPlace _HouseRulesToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_HouseRulesToPlace" ADD CONSTRAINT "_HouseRulesToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _LocationToNeighbourhood _LocationToNeighbourhood_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToNeighbourhood" ADD CONSTRAINT "_LocationToNeighbourhood_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Location"(id) ON DELETE CASCADE; -- -- Name: _LocationToNeighbourhood _LocationToNeighbourhood_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToNeighbourhood" ADD CONSTRAINT "_LocationToNeighbourhood_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Neighbourhood"(id) ON DELETE CASCADE; -- -- Name: _LocationToPlace _LocationToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToPlace" ADD CONSTRAINT "_LocationToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Location"(id) ON DELETE CASCADE; -- -- Name: _LocationToPlace _LocationToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToPlace" ADD CONSTRAINT "_LocationToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _LocationToRestaurant _LocationToRestaurant_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToRestaurant" ADD CONSTRAINT "_LocationToRestaurant_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Location"(id) ON DELETE CASCADE; -- -- Name: _LocationToRestaurant _LocationToRestaurant_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToRestaurant" ADD CONSTRAINT "_LocationToRestaurant_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Restaurant"(id) ON DELETE CASCADE; -- -- Name: _LocationToUser _LocationToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToUser" ADD CONSTRAINT "_LocationToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Location"(id) ON DELETE CASCADE; -- -- Name: _LocationToUser _LocationToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_LocationToUser" ADD CONSTRAINT "_LocationToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _NeighbourhoodToPicture _NeighbourhoodToPicture_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_NeighbourhoodToPicture" ADD CONSTRAINT "_NeighbourhoodToPicture_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Neighbourhood"(id) ON DELETE CASCADE; -- -- Name: _NeighbourhoodToPicture _NeighbourhoodToPicture_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_NeighbourhoodToPicture" ADD CONSTRAINT "_NeighbourhoodToPicture_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Picture"(id) ON DELETE CASCADE; -- -- Name: _NotificationToUser _NotificationToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_NotificationToUser" ADD CONSTRAINT "_NotificationToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Notification"(id) ON DELETE CASCADE; -- -- Name: _NotificationToUser _NotificationToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_NotificationToUser" ADD CONSTRAINT "_NotificationToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _PaymentAccountToPaypalInformation _PaymentAccountToPaypalInformation_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" ADD CONSTRAINT "_PaymentAccountToPaypalInformation_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."PaymentAccount"(id) ON DELETE CASCADE; -- -- Name: _PaymentAccountToPaypalInformation _PaymentAccountToPaypalInformation_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentAccountToPaypalInformation" ADD CONSTRAINT "_PaymentAccountToPaypalInformation_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."PaypalInformation"(id) ON DELETE CASCADE; -- -- Name: _PaymentAccountToUser _PaymentAccountToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentAccountToUser" ADD CONSTRAINT "_PaymentAccountToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."PaymentAccount"(id) ON DELETE CASCADE; -- -- Name: _PaymentAccountToUser _PaymentAccountToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentAccountToUser" ADD CONSTRAINT "_PaymentAccountToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _PaymentToPaymentAccount _PaymentToPaymentAccount_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentToPaymentAccount" ADD CONSTRAINT "_PaymentToPaymentAccount_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Payment"(id) ON DELETE CASCADE; -- -- Name: _PaymentToPaymentAccount _PaymentToPaymentAccount_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PaymentToPaymentAccount" ADD CONSTRAINT "_PaymentToPaymentAccount_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."PaymentAccount"(id) ON DELETE CASCADE; -- -- Name: _PictureToPlace _PictureToPlace_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToPlace" ADD CONSTRAINT "_PictureToPlace_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Picture"(id) ON DELETE CASCADE; -- -- Name: _PictureToPlace _PictureToPlace_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToPlace" ADD CONSTRAINT "_PictureToPlace_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PictureToRestaurant _PictureToRestaurant_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToRestaurant" ADD CONSTRAINT "_PictureToRestaurant_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Picture"(id) ON DELETE CASCADE; -- -- Name: _PictureToRestaurant _PictureToRestaurant_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToRestaurant" ADD CONSTRAINT "_PictureToRestaurant_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Restaurant"(id) ON DELETE CASCADE; -- -- Name: _PictureToUser _PictureToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToUser" ADD CONSTRAINT "_PictureToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Picture"(id) ON DELETE CASCADE; -- -- Name: _PictureToUser _PictureToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PictureToUser" ADD CONSTRAINT "_PictureToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _PlaceToPolicies _PlaceToPolicies_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToPolicies" ADD CONSTRAINT "_PlaceToPolicies_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PlaceToPolicies _PlaceToPolicies_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToPolicies" ADD CONSTRAINT "_PlaceToPolicies_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Policies"(id) ON DELETE CASCADE; -- -- Name: _PlaceToPricing _PlaceToPricing_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToPricing" ADD CONSTRAINT "_PlaceToPricing_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PlaceToPricing _PlaceToPricing_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToPricing" ADD CONSTRAINT "_PlaceToPricing_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Pricing"(id) ON DELETE CASCADE; -- -- Name: _PlaceToReview _PlaceToReview_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToReview" ADD CONSTRAINT "_PlaceToReview_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PlaceToReview _PlaceToReview_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToReview" ADD CONSTRAINT "_PlaceToReview_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Review"(id) ON DELETE CASCADE; -- -- Name: _PlaceToUser _PlaceToUser_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToUser" ADD CONSTRAINT "_PlaceToUser_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PlaceToUser _PlaceToUser_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToUser" ADD CONSTRAINT "_PlaceToUser_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _PlaceToViews _PlaceToViews_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToViews" ADD CONSTRAINT "_PlaceToViews_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Place"(id) ON DELETE CASCADE; -- -- Name: _PlaceToViews _PlaceToViews_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_PlaceToViews" ADD CONSTRAINT "_PlaceToViews_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."Views"(id) ON DELETE CASCADE; -- -- Name: _ReceivedMessages _ReceivedMessages_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ReceivedMessages" ADD CONSTRAINT "_ReceivedMessages_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Message"(id) ON DELETE CASCADE; -- -- Name: _ReceivedMessages _ReceivedMessages_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_ReceivedMessages" ADD CONSTRAINT "_ReceivedMessages_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- Name: _SentMessages _SentMessages_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_SentMessages" ADD CONSTRAINT "_SentMessages_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$airbnb"."Message"(id) ON DELETE CASCADE; -- -- Name: _SentMessages _SentMessages_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$airbnb; Owner: - -- ALTER TABLE ONLY "schema-generator$airbnb"."_SentMessages" ADD CONSTRAINT "_SentMessages_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$airbnb"."User"(id) ON DELETE CASCADE; -- -- PostgreSQL database dump complete --
the_stack
* License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // EUCTW frequency table // Converted from big5 work // by Taiwan's Mandarin Promotion Council // <http://www.edu.tw:81/mandr/> /****************************************************************************** * 128 --> 0.42261 * 256 --> 0.57851 * 512 --> 0.74851 * 1024 --> 0.89384 * 2048 --> 0.97583 * * Idea Distribution Ratio = 0.74851/(1-0.74851) =2.98 * Random Distribution Ration = 512/(5401-512)=0.105 * * Typical Distribution Ratio about 25% of Ideal one, still much higher than RDR *****************************************************************************/ #define EUCTW_TYPICAL_DISTRIBUTION_RATIO (float)0.75 // Char to FreqOrder table static const int16_t EUCTWCharToFreqOrder[] = { 1,1800,1506, 255,1431, 198, 9, 82, 6,7310, 177, 202,3615,1256,2808, 110, // 2742 3735, 33,3241, 261, 76, 44,2113, 16,2931,2184,1176, 659,3868, 26,3404,2643, // 2758 1198,3869,3313,4060, 410,2211, 302, 590, 361,1963, 8, 204, 58,4296,7311,1931, // 2774 63,7312,7313, 317,1614, 75, 222, 159,4061,2412,1480,7314,3500,3068, 224,2809, // 2790 3616, 3, 10,3870,1471, 29,2774,1135,2852,1939, 873, 130,3242,1123, 312,7315, // 2806 4297,2051, 507, 252, 682,7316, 142,1914, 124, 206,2932, 34,3501,3173, 64, 604, // 2822 7317,2494,1976,1977, 155,1990, 645, 641,1606,7318,3405, 337, 72, 406,7319, 80, // 2838 630, 238,3174,1509, 263, 939,1092,2644, 756,1440,1094,3406, 449, 69,2969, 591, // 2854 179,2095, 471, 115,2034,1843, 60, 50,2970, 134, 806,1868, 734,2035,3407, 180, // 2870 995,1607, 156, 537,2893, 688,7320, 319,1305, 779,2144, 514,2374, 298,4298, 359, // 2886 2495, 90,2707,1338, 663, 11, 906,1099,2545, 20,2436, 182, 532,1716,7321, 732, // 2902 1376,4062,1311,1420,3175, 25,2312,1056, 113, 399, 382,1949, 242,3408,2467, 529, // 2918 3243, 475,1447,3617,7322, 117, 21, 656, 810,1297,2295,2329,3502,7323, 126,4063, // 2934 706, 456, 150, 613,4299, 71,1118,2036,4064, 145,3069, 85, 835, 486,2114,1246, // 2950 1426, 428, 727,1285,1015, 800, 106, 623, 303,1281,7324,2127,2354, 347,3736, 221, // 2966 3503,3110,7325,1955,1153,4065, 83, 296,1199,3070, 192, 624, 93,7326, 822,1897, // 2982 2810,3111, 795,2064, 991,1554,1542,1592, 27, 43,2853, 859, 139,1456, 860,4300, // 2998 437, 712,3871, 164,2392,3112, 695, 211,3017,2096, 195,3872,1608,3504,3505,3618, // 3014 3873, 234, 811,2971,2097,3874,2229,1441,3506,1615,2375, 668,2076,1638, 305, 228, // 3030 1664,4301, 467, 415,7327, 262,2098,1593, 239, 108, 300, 200,1033, 512,1247,2077, // 3046 7328,7329,2173,3176,3619,2673, 593, 845,1062,3244, 88,1723,2037,3875,1950, 212, // 3062 266, 152, 149, 468,1898,4066,4302, 77, 187,7330,3018, 37, 5,2972,7331,3876, // 3078 7332,7333, 39,2517,4303,2894,3177,2078, 55, 148, 74,4304, 545, 483,1474,1029, // 3094 1665, 217,1869,1531,3113,1104,2645,4067, 24, 172,3507, 900,3877,3508,3509,4305, // 3110 32,1408,2811,1312, 329, 487,2355,2247,2708, 784,2674, 4,3019,3314,1427,1788, // 3126 188, 109, 499,7334,3620,1717,1789, 888,1217,3020,4306,7335,3510,7336,3315,1520, // 3142 3621,3878, 196,1034, 775,7337,7338, 929,1815, 249, 439, 38,7339,1063,7340, 794, // 3158 3879,1435,2296, 46, 178,3245,2065,7341,2376,7342, 214,1709,4307, 804, 35, 707, // 3174 324,3622,1601,2546, 140, 459,4068,7343,7344,1365, 839, 272, 978,2257,2572,3409, // 3190 2128,1363,3623,1423, 697, 100,3071, 48, 70,1231, 495,3114,2193,7345,1294,7346, // 3206 2079, 462, 586,1042,3246, 853, 256, 988, 185,2377,3410,1698, 434,1084,7347,3411, // 3222 314,2615,2775,4308,2330,2331, 569,2280, 637,1816,2518, 757,1162,1878,1616,3412, // 3238 287,1577,2115, 768,4309,1671,2854,3511,2519,1321,3737, 909,2413,7348,4069, 933, // 3254 3738,7349,2052,2356,1222,4310, 765,2414,1322, 786,4311,7350,1919,1462,1677,2895, // 3270 1699,7351,4312,1424,2437,3115,3624,2590,3316,1774,1940,3413,3880,4070, 309,1369, // 3286 1130,2812, 364,2230,1653,1299,3881,3512,3882,3883,2646, 525,1085,3021, 902,2000, // 3302 1475, 964,4313, 421,1844,1415,1057,2281, 940,1364,3116, 376,4314,4315,1381, 7, // 3318 2520, 983,2378, 336,1710,2675,1845, 321,3414, 559,1131,3022,2742,1808,1132,1313, // 3334 265,1481,1857,7352, 352,1203,2813,3247, 167,1089, 420,2814, 776, 792,1724,3513, // 3350 4071,2438,3248,7353,4072,7354, 446, 229, 333,2743, 901,3739,1200,1557,4316,2647, // 3366 1920, 395,2744,2676,3740,4073,1835, 125, 916,3178,2616,4317,7355,7356,3741,7357, // 3382 7358,7359,4318,3117,3625,1133,2547,1757,3415,1510,2313,1409,3514,7360,2145, 438, // 3398 2591,2896,2379,3317,1068, 958,3023, 461, 311,2855,2677,4074,1915,3179,4075,1978, // 3414 383, 750,2745,2617,4076, 274, 539, 385,1278,1442,7361,1154,1964, 384, 561, 210, // 3430 98,1295,2548,3515,7362,1711,2415,1482,3416,3884,2897,1257, 129,7363,3742, 642, // 3446 523,2776,2777,2648,7364, 141,2231,1333, 68, 176, 441, 876, 907,4077, 603,2592, // 3462 710, 171,3417, 404, 549, 18,3118,2393,1410,3626,1666,7365,3516,4319,2898,4320, // 3478 7366,2973, 368,7367, 146, 366, 99, 871,3627,1543, 748, 807,1586,1185, 22,2258, // 3494 379,3743,3180,7368,3181, 505,1941,2618,1991,1382,2314,7369, 380,2357, 218, 702, // 3510 1817,1248,3418,3024,3517,3318,3249,7370,2974,3628, 930,3250,3744,7371, 59,7372, // 3526 585, 601,4078, 497,3419,1112,1314,4321,1801,7373,1223,1472,2174,7374, 749,1836, // 3542 690,1899,3745,1772,3885,1476, 429,1043,1790,2232,2116, 917,4079, 447,1086,1629, // 3558 7375, 556,7376,7377,2020,1654, 844,1090, 105, 550, 966,1758,2815,1008,1782, 686, // 3574 1095,7378,2282, 793,1602,7379,3518,2593,4322,4080,2933,2297,4323,3746, 980,2496, // 3590 544, 353, 527,4324, 908,2678,2899,7380, 381,2619,1942,1348,7381,1341,1252, 560, // 3606 3072,7382,3420,2856,7383,2053, 973, 886,2080, 143,4325,7384,7385, 157,3886, 496, // 3622 4081, 57, 840, 540,2038,4326,4327,3421,2117,1445, 970,2259,1748,1965,2081,4082, // 3638 3119,1234,1775,3251,2816,3629, 773,1206,2129,1066,2039,1326,3887,1738,1725,4083, // 3654 279,3120, 51,1544,2594, 423,1578,2130,2066, 173,4328,1879,7386,7387,1583, 264, // 3670 610,3630,4329,2439, 280, 154,7388,7389,7390,1739, 338,1282,3073, 693,2857,1411, // 3686 1074,3747,2440,7391,4330,7392,7393,1240, 952,2394,7394,2900,1538,2679, 685,1483, // 3702 4084,2468,1436, 953,4085,2054,4331, 671,2395, 79,4086,2441,3252, 608, 567,2680, // 3718 3422,4087,4088,1691, 393,1261,1791,2396,7395,4332,7396,7397,7398,7399,1383,1672, // 3734 3748,3182,1464, 522,1119, 661,1150, 216, 675,4333,3888,1432,3519, 609,4334,2681, // 3750 2397,7400,7401,7402,4089,3025, 0,7403,2469, 315, 231,2442, 301,3319,4335,2380, // 3766 7404, 233,4090,3631,1818,4336,4337,7405, 96,1776,1315,2082,7406, 257,7407,1809, // 3782 3632,2709,1139,1819,4091,2021,1124,2163,2778,1777,2649,7408,3074, 363,1655,3183, // 3798 7409,2975,7410,7411,7412,3889,1567,3890, 718, 103,3184, 849,1443, 341,3320,2934, // 3814 1484,7413,1712, 127, 67, 339,4092,2398, 679,1412, 821,7414,7415, 834, 738, 351, // 3830 2976,2146, 846, 235,1497,1880, 418,1992,3749,2710, 186,1100,2147,2746,3520,1545, // 3846 1355,2935,2858,1377, 583,3891,4093,2573,2977,7416,1298,3633,1078,2549,3634,2358, // 3862 78,3750,3751, 267,1289,2099,2001,1594,4094, 348, 369,1274,2194,2175,1837,4338, // 3878 1820,2817,3635,2747,2283,2002,4339,2936,2748, 144,3321, 882,4340,3892,2749,3423, // 3894 4341,2901,7417,4095,1726, 320,7418,3893,3026, 788,2978,7419,2818,1773,1327,2859, // 3910 3894,2819,7420,1306,4342,2003,1700,3752,3521,2359,2650, 787,2022, 506, 824,3636, // 3926 534, 323,4343,1044,3322,2023,1900, 946,3424,7421,1778,1500,1678,7422,1881,4344, // 3942 165, 243,4345,3637,2521, 123, 683,4096, 764,4346, 36,3895,1792, 589,2902, 816, // 3958 626,1667,3027,2233,1639,1555,1622,3753,3896,7423,3897,2860,1370,1228,1932, 891, // 3974 2083,2903, 304,4097,7424, 292,2979,2711,3522, 691,2100,4098,1115,4347, 118, 662, // 3990 7425, 611,1156, 854,2381,1316,2861, 2, 386, 515,2904,7426,7427,3253, 868,2234, // 4006 1486, 855,2651, 785,2212,3028,7428,1040,3185,3523,7429,3121, 448,7430,1525,7431, // 4022 2164,4348,7432,3754,7433,4099,2820,3524,3122, 503, 818,3898,3123,1568, 814, 676, // 4038 1444, 306,1749,7434,3755,1416,1030, 197,1428, 805,2821,1501,4349,7435,7436,7437, // 4054 1993,7438,4350,7439,7440,2195, 13,2779,3638,2980,3124,1229,1916,7441,3756,2131, // 4070 7442,4100,4351,2399,3525,7443,2213,1511,1727,1120,7444,7445, 646,3757,2443, 307, // 4086 7446,7447,1595,3186,7448,7449,7450,3639,1113,1356,3899,1465,2522,2523,7451, 519, // 4102 7452, 128,2132, 92,2284,1979,7453,3900,1512, 342,3125,2196,7454,2780,2214,1980, // 4118 3323,7455, 290,1656,1317, 789, 827,2360,7456,3758,4352, 562, 581,3901,7457, 401, // 4134 4353,2248, 94,4354,1399,2781,7458,1463,2024,4355,3187,1943,7459, 828,1105,4101, // 4150 1262,1394,7460,4102, 605,4356,7461,1783,2862,7462,2822, 819,2101, 578,2197,2937, // 4166 7463,1502, 436,3254,4103,3255,2823,3902,2905,3425,3426,7464,2712,2315,7465,7466, // 4182 2332,2067, 23,4357, 193, 826,3759,2102, 699,1630,4104,3075, 390,1793,1064,3526, // 4198 7467,1579,3076,3077,1400,7468,4105,1838,1640,2863,7469,4358,4359, 137,4106, 598, // 4214 3078,1966, 780, 104, 974,2938,7470, 278, 899, 253, 402, 572, 504, 493,1339,7471, // 4230 3903,1275,4360,2574,2550,7472,3640,3029,3079,2249, 565,1334,2713, 863, 41,7473, // 4246 7474,4361,7475,1657,2333, 19, 463,2750,4107, 606,7476,2981,3256,1087,2084,1323, // 4262 2652,2982,7477,1631,1623,1750,4108,2682,7478,2864, 791,2714,2653,2334, 232,2416, // 4278 7479,2983,1498,7480,2654,2620, 755,1366,3641,3257,3126,2025,1609, 119,1917,3427, // 4294 862,1026,4109,7481,3904,3760,4362,3905,4363,2260,1951,2470,7482,1125, 817,4110, // 4310 4111,3906,1513,1766,2040,1487,4112,3030,3258,2824,3761,3127,7483,7484,1507,7485, // 4326 2683, 733, 40,1632,1106,2865, 345,4113, 841,2524, 230,4364,2984,1846,3259,3428, // 4342 7486,1263, 986,3429,7487, 735, 879, 254,1137, 857, 622,1300,1180,1388,1562,3907, // 4358 3908,2939, 967,2751,2655,1349, 592,2133,1692,3324,2985,1994,4114,1679,3909,1901, // 4374 2185,7488, 739,3642,2715,1296,1290,7489,4115,2198,2199,1921,1563,2595,2551,1870, // 4390 2752,2986,7490, 435,7491, 343,1108, 596, 17,1751,4365,2235,3430,3643,7492,4366, // 4406 294,3527,2940,1693, 477, 979, 281,2041,3528, 643,2042,3644,2621,2782,2261,1031, // 4422 2335,2134,2298,3529,4367, 367,1249,2552,7493,3530,7494,4368,1283,3325,2004, 240, // 4438 1762,3326,4369,4370, 836,1069,3128, 474,7495,2148,2525, 268,3531,7496,3188,1521, // 4454 1284,7497,1658,1546,4116,7498,3532,3533,7499,4117,3327,2684,1685,4118, 961,1673, // 4470 2622, 190,2005,2200,3762,4371,4372,7500, 570,2497,3645,1490,7501,4373,2623,3260, // 4486 1956,4374, 584,1514, 396,1045,1944,7502,4375,1967,2444,7503,7504,4376,3910, 619, // 4502 7505,3129,3261, 215,2006,2783,2553,3189,4377,3190,4378, 763,4119,3763,4379,7506, // 4518 7507,1957,1767,2941,3328,3646,1174, 452,1477,4380,3329,3130,7508,2825,1253,2382, // 4534 2186,1091,2285,4120, 492,7509, 638,1169,1824,2135,1752,3911, 648, 926,1021,1324, // 4550 4381, 520,4382, 997, 847,1007, 892,4383,3764,2262,1871,3647,7510,2400,1784,4384, // 4566 1952,2942,3080,3191,1728,4121,2043,3648,4385,2007,1701,3131,1551, 30,2263,4122, // 4582 7511,2026,4386,3534,7512, 501,7513,4123, 594,3431,2165,1821,3535,3432,3536,3192, // 4598 829,2826,4124,7514,1680,3132,1225,4125,7515,3262,4387,4126,3133,2336,7516,4388, // 4614 4127,7517,3912,3913,7518,1847,2383,2596,3330,7519,4389, 374,3914, 652,4128,4129, // 4630 375,1140, 798,7520,7521,7522,2361,4390,2264, 546,1659, 138,3031,2445,4391,7523, // 4646 2250, 612,1848, 910, 796,3765,1740,1371, 825,3766,3767,7524,2906,2554,7525, 692, // 4662 444,3032,2624, 801,4392,4130,7526,1491, 244,1053,3033,4131,4132, 340,7527,3915, // 4678 1041,2987, 293,1168, 87,1357,7528,1539, 959,7529,2236, 721, 694,4133,3768, 219, // 4694 1478, 644,1417,3331,2656,1413,1401,1335,1389,3916,7530,7531,2988,2362,3134,1825, // 4710 730,1515, 184,2827, 66,4393,7532,1660,2943, 246,3332, 378,1457, 226,3433, 975, // 4726 3917,2944,1264,3537, 674, 696,7533, 163,7534,1141,2417,2166, 713,3538,3333,4394, // 4742 3918,7535,7536,1186, 15,7537,1079,1070,7538,1522,3193,3539, 276,1050,2716, 758, // 4758 1126, 653,2945,3263,7539,2337, 889,3540,3919,3081,2989, 903,1250,4395,3920,3434, // 4774 3541,1342,1681,1718, 766,3264, 286, 89,2946,3649,7540,1713,7541,2597,3334,2990, // 4790 7542,2947,2215,3194,2866,7543,4396,2498,2526, 181, 387,1075,3921, 731,2187,3335, // 4806 7544,3265, 310, 313,3435,2299, 770,4134, 54,3034, 189,4397,3082,3769,3922,7545, // 4822 1230,1617,1849, 355,3542,4135,4398,3336, 111,4136,3650,1350,3135,3436,3035,4137, // 4838 2149,3266,3543,7546,2784,3923,3924,2991, 722,2008,7547,1071, 247,1207,2338,2471, // 4854 1378,4399,2009, 864,1437,1214,4400, 373,3770,1142,2216, 667,4401, 442,2753,2555, // 4870 3771,3925,1968,4138,3267,1839, 837, 170,1107, 934,1336,1882,7548,7549,2118,4139, // 4886 2828, 743,1569,7550,4402,4140, 582,2384,1418,3437,7551,1802,7552, 357,1395,1729, // 4902 3651,3268,2418,1564,2237,7553,3083,3772,1633,4403,1114,2085,4141,1532,7554, 482, // 4918 2446,4404,7555,7556,1492, 833,1466,7557,2717,3544,1641,2829,7558,1526,1272,3652, // 4934 4142,1686,1794, 416,2556,1902,1953,1803,7559,3773,2785,3774,1159,2316,7560,2867, // 4950 4405,1610,1584,3036,2419,2754, 443,3269,1163,3136,7561,7562,3926,7563,4143,2499, // 4966 3037,4406,3927,3137,2103,1647,3545,2010,1872,4144,7564,4145, 431,3438,7565, 250, // 4982 97, 81,4146,7566,1648,1850,1558, 160, 848,7567, 866, 740,1694,7568,2201,2830, // 4998 3195,4147,4407,3653,1687, 950,2472, 426, 469,3196,3654,3655,3928,7569,7570,1188, // 5014 424,1995, 861,3546,4148,3775,2202,2685, 168,1235,3547,4149,7571,2086,1674,4408, // 5030 3337,3270, 220,2557,1009,7572,3776, 670,2992, 332,1208, 717,7573,7574,3548,2447, // 5046 3929,3338,7575, 513,7576,1209,2868,3339,3138,4409,1080,7577,7578,7579,7580,2527, // 5062 3656,3549, 815,1587,3930,3931,7581,3550,3439,3777,1254,4410,1328,3038,1390,3932, // 5078 1741,3933,3778,3934,7582, 236,3779,2448,3271,7583,7584,3657,3780,1273,3781,4411, // 5094 7585, 308,7586,4412, 245,4413,1851,2473,1307,2575, 430, 715,2136,2449,7587, 270, // 5110 199,2869,3935,7588,3551,2718,1753, 761,1754, 725,1661,1840,4414,3440,3658,7589, // 5126 7590, 587, 14,3272, 227,2598, 326, 480,2265, 943,2755,3552, 291, 650,1883,7591, // 5142 1702,1226, 102,1547, 62,3441, 904,4415,3442,1164,4150,7592,7593,1224,1548,2756, // 5158 391, 498,1493,7594,1386,1419,7595,2055,1177,4416, 813, 880,1081,2363, 566,1145, // 5174 4417,2286,1001,1035,2558,2599,2238, 394,1286,7596,7597,2068,7598, 86,1494,1730, // 5190 3936, 491,1588, 745, 897,2948, 843,3340,3937,2757,2870,3273,1768, 998,2217,2069, // 5206 397,1826,1195,1969,3659,2993,3341, 284,7599,3782,2500,2137,2119,1903,7600,3938, // 5222 2150,3939,4151,1036,3443,1904, 114,2559,4152, 209,1527,7601,7602,2949,2831,2625, // 5238 2385,2719,3139, 812,2560,7603,3274,7604,1559, 737,1884,3660,1210, 885, 28,2686, // 5254 3553,3783,7605,4153,1004,1779,4418,7606, 346,1981,2218,2687,4419,3784,1742, 797, // 5270 1642,3940,1933,1072,1384,2151, 896,3941,3275,3661,3197,2871,3554,7607,2561,1958, // 5286 4420,2450,1785,7608,7609,7610,3942,4154,1005,1308,3662,4155,2720,4421,4422,1528, // 5302 2600, 161,1178,4156,1982, 987,4423,1101,4157, 631,3943,1157,3198,2420,1343,1241, // 5318 1016,2239,2562, 372, 877,2339,2501,1160, 555,1934, 911,3944,7611, 466,1170, 169, // 5334 1051,2907,2688,3663,2474,2994,1182,2011,2563,1251,2626,7612, 992,2340,3444,1540, // 5350 2721,1201,2070,2401,1996,2475,7613,4424, 528,1922,2188,1503,1873,1570,2364,3342, // 5366 3276,7614, 557,1073,7615,1827,3445,2087,2266,3140,3039,3084, 767,3085,2786,4425, // 5382 1006,4158,4426,2341,1267,2176,3664,3199, 778,3945,3200,2722,1597,2657,7616,4427, // 5398 7617,3446,7618,7619,7620,3277,2689,1433,3278, 131, 95,1504,3946, 723,4159,3141, // 5414 1841,3555,2758,2189,3947,2027,2104,3665,7621,2995,3948,1218,7622,3343,3201,3949, // 5430 4160,2576, 248,1634,3785, 912,7623,2832,3666,3040,3786, 654, 53,7624,2996,7625, // 5446 1688,4428, 777,3447,1032,3950,1425,7626, 191, 820,2120,2833, 971,4429, 931,3202, // 5462 135, 664, 783,3787,1997, 772,2908,1935,3951,3788,4430,2909,3203, 282,2723, 640, // 5478 1372,3448,1127, 922, 325,3344,7627,7628, 711,2044,7629,7630,3952,2219,2787,1936, // 5494 3953,3345,2220,2251,3789,2300,7631,4431,3790,1258,3279,3954,3204,2138,2950,3955, // 5510 3956,7632,2221, 258,3205,4432, 101,1227,7633,3280,1755,7634,1391,3281,7635,2910, // 5526 2056, 893,7636,7637,7638,1402,4161,2342,7639,7640,3206,3556,7641,7642, 878,1325, // 5542 1780,2788,4433, 259,1385,2577, 744,1183,2267,4434,7643,3957,2502,7644, 684,1024, // 5558 4162,7645, 472,3557,3449,1165,3282,3958,3959, 322,2152, 881, 455,1695,1152,1340, // 5574 660, 554,2153,4435,1058,4436,4163, 830,1065,3346,3960,4437,1923,7646,1703,1918, // 5590 7647, 932,2268, 122,7648,4438, 947, 677,7649,3791,2627, 297,1905,1924,2269,4439, // 5606 2317,3283,7650,7651,4164,7652,4165, 84,4166, 112, 989,7653, 547,1059,3961, 701, // 5622 3558,1019,7654,4167,7655,3450, 942, 639, 457,2301,2451, 993,2951, 407, 851, 494, // 5638 4440,3347, 927,7656,1237,7657,2421,3348, 573,4168, 680, 921,2911,1279,1874, 285, // 5654 790,1448,1983, 719,2167,7658,7659,4441,3962,3963,1649,7660,1541, 563,7661,1077, // 5670 7662,3349,3041,3451, 511,2997,3964,3965,3667,3966,1268,2564,3350,3207,4442,4443, // 5686 7663, 535,1048,1276,1189,2912,2028,3142,1438,1373,2834,2952,1134,2012,7664,4169, // 5702 1238,2578,3086,1259,7665, 700,7666,2953,3143,3668,4170,7667,4171,1146,1875,1906, // 5718 4444,2601,3967, 781,2422, 132,1589, 203, 147, 273,2789,2402, 898,1786,2154,3968, // 5734 3969,7668,3792,2790,7669,7670,4445,4446,7671,3208,7672,1635,3793, 965,7673,1804, // 5750 2690,1516,3559,1121,1082,1329,3284,3970,1449,3794, 65,1128,2835,2913,2759,1590, // 5766 3795,7674,7675, 12,2658, 45, 976,2579,3144,4447, 517,2528,1013,1037,3209,7676, // 5782 3796,2836,7677,3797,7678,3452,7679,2602, 614,1998,2318,3798,3087,2724,2628,7680, // 5798 2580,4172, 599,1269,7681,1810,3669,7682,2691,3088, 759,1060, 489,1805,3351,3285, // 5814 1358,7683,7684,2386,1387,1215,2629,2252, 490,7685,7686,4173,1759,2387,2343,7687, // 5830 4448,3799,1907,3971,2630,1806,3210,4449,3453,3286,2760,2344, 874,7688,7689,3454, // 5846 3670,1858, 91,2914,3671,3042,3800,4450,7690,3145,3972,2659,7691,3455,1202,1403, // 5862 3801,2954,2529,1517,2503,4451,3456,2504,7692,4452,7693,2692,1885,1495,1731,3973, // 5878 2365,4453,7694,2029,7695,7696,3974,2693,1216, 237,2581,4174,2319,3975,3802,4454, // 5894 4455,2694,3560,3457, 445,4456,7697,7698,7699,7700,2761, 61,3976,3672,1822,3977, // 5910 7701, 687,2045, 935, 925, 405,2660, 703,1096,1859,2725,4457,3978,1876,1367,2695, // 5926 3352, 918,2105,1781,2476, 334,3287,1611,1093,4458, 564,3146,3458,3673,3353, 945, // 5942 2631,2057,4459,7702,1925, 872,4175,7703,3459,2696,3089, 349,4176,3674,3979,4460, // 5958 3803,4177,3675,2155,3980,4461,4462,4178,4463,2403,2046, 782,3981, 400, 251,4179, // 5974 1624,7704,7705, 277,3676, 299,1265, 476,1191,3804,2121,4180,4181,1109, 205,7706, // 5990 2582,1000,2156,3561,1860,7707,7708,7709,4464,7710,4465,2565, 107,2477,2157,3982, // 6006 3460,3147,7711,1533, 541,1301, 158, 753,4182,2872,3562,7712,1696, 370,1088,4183, // 6022 4466,3563, 579, 327, 440, 162,2240, 269,1937,1374,3461, 968,3043, 56,1396,3090, // 6038 2106,3288,3354,7713,1926,2158,4467,2998,7714,3564,7715,7716,3677,4468,2478,7717, // 6054 2791,7718,1650,4469,7719,2603,7720,7721,3983,2661,3355,1149,3356,3984,3805,3985, // 6070 7722,1076, 49,7723, 951,3211,3289,3290, 450,2837, 920,7724,1811,2792,2366,4184, // 6086 1908,1138,2367,3806,3462,7725,3212,4470,1909,1147,1518,2423,4471,3807,7726,4472, // 6102 2388,2604, 260,1795,3213,7727,7728,3808,3291, 708,7729,3565,1704,7730,3566,1351, // 6118 1618,3357,2999,1886, 944,4185,3358,4186,3044,3359,4187,7731,3678, 422, 413,1714, // 6134 3292, 500,2058,2345,4188,2479,7732,1344,1910, 954,7733,1668,7734,7735,3986,2404, // 6150 4189,3567,3809,4190,7736,2302,1318,2505,3091, 133,3092,2873,4473, 629, 31,2838, // 6166 2697,3810,4474, 850, 949,4475,3987,2955,1732,2088,4191,1496,1852,7737,3988, 620, // 6182 3214, 981,1242,3679,3360,1619,3680,1643,3293,2139,2452,1970,1719,3463,2168,7738, // 6198 3215,7739,7740,3361,1828,7741,1277,4476,1565,2047,7742,1636,3568,3093,7743, 869, // 6214 2839, 655,3811,3812,3094,3989,3000,3813,1310,3569,4477,7744,7745,7746,1733, 558, // 6230 4478,3681, 335,1549,3045,1756,4192,3682,1945,3464,1829,1291,1192, 470,2726,2107, // 6246 2793, 913,1054,3990,7747,1027,7748,3046,3991,4479, 982,2662,3362,3148,3465,3216, // 6262 3217,1946,2794,7749, 571,4480,7750,1830,7751,3570,2583,1523,2424,7752,2089, 984, // 6278 4481,3683,1959,7753,3684, 852, 923,2795,3466,3685, 969,1519, 999,2048,2320,1705, // 6294 7754,3095, 615,1662, 151, 597,3992,2405,2321,1049, 275,4482,3686,4193, 568,3687, // 6310 3571,2480,4194,3688,7755,2425,2270, 409,3218,7756,1566,2874,3467,1002, 769,2840, // 6326 194,2090,3149,3689,2222,3294,4195, 628,1505,7757,7758,1763,2177,3001,3993, 521, // 6342 1161,2584,1787,2203,2406,4483,3994,1625,4196,4197, 412, 42,3096, 464,7759,2632, // 6358 4484,3363,1760,1571,2875,3468,2530,1219,2204,3814,2633,2140,2368,4485,4486,3295, // 6374 1651,3364,3572,7760,7761,3573,2481,3469,7762,3690,7763,7764,2271,2091, 460,7765, // 6390 4487,7766,3002, 962, 588,3574, 289,3219,2634,1116, 52,7767,3047,1796,7768,7769, // 6406 7770,1467,7771,1598,1143,3691,4198,1984,1734,1067,4488,1280,3365, 465,4489,1572, // 6422 510,7772,1927,2241,1812,1644,3575,7773,4490,3692,7774,7775,2663,1573,1534,7776, // 6438 7777,4199, 536,1807,1761,3470,3815,3150,2635,7778,7779,7780,4491,3471,2915,1911, // 6454 2796,7781,3296,1122, 377,3220,7782, 360,7783,7784,4200,1529, 551,7785,2059,3693, // 6470 1769,2426,7786,2916,4201,3297,3097,2322,2108,2030,4492,1404, 136,1468,1479, 672, // 6486 1171,3221,2303, 271,3151,7787,2762,7788,2049, 678,2727, 865,1947,4493,7789,2013, // 6502 3995,2956,7790,2728,2223,1397,3048,3694,4494,4495,1735,2917,3366,3576,7791,3816, // 6518 509,2841,2453,2876,3817,7792,7793,3152,3153,4496,4202,2531,4497,2304,1166,1010, // 6534 552, 681,1887,7794,7795,2957,2958,3996,1287,1596,1861,3154, 358, 453, 736, 175, // 6550 478,1117, 905,1167,1097,7796,1853,1530,7797,1706,7798,2178,3472,2287,3695,3473, // 6566 3577,4203,2092,4204,7799,3367,1193,2482,4205,1458,2190,2205,1862,1888,1421,3298, // 6582 2918,3049,2179,3474, 595,2122,7800,3997,7801,7802,4206,1707,2636, 223,3696,1359, // 6598 751,3098, 183,3475,7803,2797,3003, 419,2369, 633, 704,3818,2389, 241,7804,7805, // 6614 7806, 838,3004,3697,2272,2763,2454,3819,1938,2050,3998,1309,3099,2242,1181,7807, // 6630 1136,2206,3820,2370,1446,4207,2305,4498,7808,7809,4208,1055,2605, 484,3698,7810, // 6646 3999, 625,4209,2273,3368,1499,4210,4000,7811,4001,4211,3222,2274,2275,3476,7812, // 6662 7813,2764, 808,2606,3699,3369,4002,4212,3100,2532, 526,3370,3821,4213, 955,7814, // 6678 1620,4214,2637,2427,7815,1429,3700,1669,1831, 994, 928,7816,3578,1260,7817,7818, // 6694 7819,1948,2288, 741,2919,1626,4215,2729,2455, 867,1184, 362,3371,1392,7820,7821, // 6710 4003,4216,1770,1736,3223,2920,4499,4500,1928,2698,1459,1158,7822,3050,3372,2877, // 6726 1292,1929,2506,2842,3701,1985,1187,2071,2014,2607,4217,7823,2566,2507,2169,3702, // 6742 2483,3299,7824,3703,4501,7825,7826, 666,1003,3005,1022,3579,4218,7827,4502,1813, // 6758 2253, 574,3822,1603, 295,1535, 705,3823,4219, 283, 858, 417,7828,7829,3224,4503, // 6774 4504,3051,1220,1889,1046,2276,2456,4004,1393,1599, 689,2567, 388,4220,7830,2484, // 6790 802,7831,2798,3824,2060,1405,2254,7832,4505,3825,2109,1052,1345,3225,1585,7833, // 6806 809,7834,7835,7836, 575,2730,3477, 956,1552,1469,1144,2323,7837,2324,1560,2457, // 6822 3580,3226,4005, 616,2207,3155,2180,2289,7838,1832,7839,3478,4506,7840,1319,3704, // 6838 3705,1211,3581,1023,3227,1293,2799,7841,7842,7843,3826, 607,2306,3827, 762,2878, // 6854 1439,4221,1360,7844,1485,3052,7845,4507,1038,4222,1450,2061,2638,4223,1379,4508, // 6870 2585,7846,7847,4224,1352,1414,2325,2921,1172,7848,7849,3828,3829,7850,1797,1451, // 6886 7851,7852,7853,7854,2922,4006,4007,2485,2346, 411,4008,4009,3582,3300,3101,4509, // 6902 1561,2664,1452,4010,1375,7855,7856, 47,2959, 316,7857,1406,1591,2923,3156,7858, // 6918 1025,2141,3102,3157, 354,2731, 884,2224,4225,2407, 508,3706, 726,3583, 996,2428, // 6934 3584, 729,7859, 392,2191,1453,4011,4510,3707,7860,7861,2458,3585,2608,1675,2800, // 6950 919,2347,2960,2348,1270,4511,4012, 73,7862,7863, 647,7864,3228,2843,2255,1550, // 6966 1346,3006,7865,1332, 883,3479,7866,7867,7868,7869,3301,2765,7870,1212, 831,1347, // 6982 4226,4512,2326,3830,1863,3053, 720,3831,4513,4514,3832,7871,4227,7872,7873,4515, // 6998 7874,7875,1798,4516,3708,2609,4517,3586,1645,2371,7876,7877,2924, 669,2208,2665, // 7014 2429,7878,2879,7879,7880,1028,3229,7881,4228,2408,7882,2256,1353,7883,7884,4518, // 7030 3158, 518,7885,4013,7886,4229,1960,7887,2142,4230,7888,7889,3007,2349,2350,3833, // 7046 516,1833,1454,4014,2699,4231,4519,2225,2610,1971,1129,3587,7890,2766,7891,2961, // 7062 1422, 577,1470,3008,1524,3373,7892,7893, 432,4232,3054,3480,7894,2586,1455,2508, // 7078 2226,1972,1175,7895,1020,2732,4015,3481,4520,7896,2733,7897,1743,1361,3055,3482, // 7094 2639,4016,4233,4521,2290, 895, 924,4234,2170, 331,2243,3056, 166,1627,3057,1098, // 7110 7898,1232,2880,2227,3374,4522, 657, 403,1196,2372, 542,3709,3375,1600,4235,3483, // 7126 7899,4523,2767,3230, 576, 530,1362,7900,4524,2533,2666,3710,4017,7901, 842,3834, // 7142 7902,2801,2031,1014,4018, 213,2700,3376, 665, 621,4236,7903,3711,2925,2430,7904, // 7158 2431,3302,3588,3377,7905,4237,2534,4238,4525,3589,1682,4239,3484,1380,7906, 724, // 7174 2277, 600,1670,7907,1337,1233,4526,3103,2244,7908,1621,4527,7909, 651,4240,7910, // 7190 1612,4241,2611,7911,2844,7912,2734,2307,3058,7913, 716,2459,3059, 174,1255,2701, // 7206 4019,3590, 548,1320,1398, 728,4020,1574,7914,1890,1197,3060,4021,7915,3061,3062, // 7222 3712,3591,3713, 747,7916, 635,4242,4528,7917,7918,7919,4243,7920,7921,4529,7922, // 7238 3378,4530,2432, 451,7923,3714,2535,2072,4244,2735,4245,4022,7924,1764,4531,7925, // 7254 4246, 350,7926,2278,2390,2486,7927,4247,4023,2245,1434,4024, 488,4532, 458,4248, // 7270 4025,3715, 771,1330,2391,3835,2568,3159,2159,2409,1553,2667,3160,4249,7928,2487, // 7286 2881,2612,1720,2702,4250,3379,4533,7929,2536,4251,7930,3231,4252,2768,7931,2015, // 7302 2736,7932,1155,1017,3716,3836,7933,3303,2308, 201,1864,4253,1430,7934,4026,7935, // 7318 7936,7937,7938,7939,4254,1604,7940, 414,1865, 371,2587,4534,4535,3485,2016,3104, // 7334 4536,1708, 960,4255, 887, 389,2171,1536,1663,1721,7941,2228,4027,2351,2926,1580, // 7350 7942,7943,7944,1744,7945,2537,4537,4538,7946,4539,7947,2073,7948,7949,3592,3380, // 7366 2882,4256,7950,4257,2640,3381,2802, 673,2703,2460, 709,3486,4028,3593,4258,7951, // 7382 1148, 502, 634,7952,7953,1204,4540,3594,1575,4541,2613,3717,7954,3718,3105, 948, // 7398 3232, 121,1745,3837,1110,7955,4259,3063,2509,3009,4029,3719,1151,1771,3838,1488, // 7414 4030,1986,7956,2433,3487,7957,7958,2093,7959,4260,3839,1213,1407,2803, 531,2737, // 7430 2538,3233,1011,1537,7960,2769,4261,3106,1061,7961,3720,3721,1866,2883,7962,2017, // 7446 120,4262,4263,2062,3595,3234,2309,3840,2668,3382,1954,4542,7963,7964,3488,1047, // 7462 2704,1266,7965,1368,4543,2845, 649,3383,3841,2539,2738,1102,2846,2669,7966,7967, // 7478 1999,7968,1111,3596,2962,7969,2488,3842,3597,2804,1854,3384,3722,7970,7971,3385, // 7494 2410,2884,3304,3235,3598,7972,2569,7973,3599,2805,4031,1460, 856,7974,3600,7975, // 7510 2885,2963,7976,2886,3843,7977,4264, 632,2510, 875,3844,1697,3845,2291,7978,7979, // 7526 4544,3010,1239, 580,4545,4265,7980, 914, 936,2074,1190,4032,1039,2123,7981,7982, // 7542 7983,3386,1473,7984,1354,4266,3846,7985,2172,3064,4033, 915,3305,4267,4268,3306, // 7558 1605,1834,7986,2739, 398,3601,4269,3847,4034, 328,1912,2847,4035,3848,1331,4270, // 7574 3011, 937,4271,7987,3602,4036,4037,3387,2160,4546,3388, 524, 742, 538,3065,1012, // 7590 7988,7989,3849,2461,7990, 658,1103, 225,3850,7991,7992,4547,7993,4548,7994,3236, // 7606 1243,7995,4038, 963,2246,4549,7996,2705,3603,3161,7997,7998,2588,2327,7999,4550, // 7622 8000,8001,8002,3489,3307, 957,3389,2540,2032,1930,2927,2462, 870,2018,3604,1746, // 7638 2770,2771,2434,2463,8003,3851,8004,3723,3107,3724,3490,3390,3725,8005,1179,3066, // 7654 8006,3162,2373,4272,3726,2541,3163,3108,2740,4039,8007,3391,1556,2542,2292, 977, // 7670 2887,2033,4040,1205,3392,8008,1765,3393,3164,2124,1271,1689, 714,4551,3491,8009, // 7686 2328,3852, 533,4273,3605,2181, 617,8010,2464,3308,3492,2310,8011,8012,3165,8013, // 7702 8014,3853,1987, 618, 427,2641,3493,3394,8015,8016,1244,1690,8017,2806,4274,4552, // 7718 8018,3494,8019,8020,2279,1576, 473,3606,4275,3395, 972,8021,3607,8022,3067,8023, // 7734 8024,4553,4554,8025,3727,4041,4042,8026, 153,4555, 356,8027,1891,2888,4276,2143, // 7750 408, 803,2352,8028,3854,8029,4277,1646,2570,2511,4556,4557,3855,8030,3856,4278, // 7766 8031,2411,3396, 752,8032,8033,1961,2964,8034, 746,3012,2465,8035,4279,3728, 698, // 7782 4558,1892,4280,3608,2543,4559,3609,3857,8036,3166,3397,8037,1823,1302,4043,2706, // 7798 3858,1973,4281,8038,4282,3167, 823,1303,1288,1236,2848,3495,4044,3398, 774,3859, // 7814 8039,1581,4560,1304,2849,3860,4561,8040,2435,2161,1083,3237,4283,4045,4284, 344, // 7830 1173, 288,2311, 454,1683,8041,8042,1461,4562,4046,2589,8043,8044,4563, 985, 894, // 7846 8045,3399,3168,8046,1913,2928,3729,1988,8047,2110,1974,8048,4047,8049,2571,1194, // 7862 425,8050,4564,3169,1245,3730,4285,8051,8052,2850,8053, 636,4565,1855,3861, 760, // 7878 1799,8054,4286,2209,1508,4566,4048,1893,1684,2293,8055,8056,8057,4287,4288,2210, // 7894 479,8058,8059, 832,8060,4049,2489,8061,2965,2490,3731, 990,3109, 627,1814,2642, // 7910 4289,1582,4290,2125,2111,3496,4567,8062, 799,4291,3170,8063,4568,2112,1737,3013, // 7926 1018, 543, 754,4292,3309,1676,4569,4570,4050,8064,1489,8065,3497,8066,2614,2889, // 7942 4051,8067,8068,2966,8069,8070,8071,8072,3171,4571,4572,2182,1722,8073,3238,3239, // 7958 1842,3610,1715, 481, 365,1975,1856,8074,8075,1962,2491,4573,8076,2126,3611,3240, // 7974 433,1894,2063,2075,8077, 602,2741,8078,8079,8080,8081,8082,3014,1628,3400,8083, // 7990 3172,4574,4052,2890,4575,2512,8084,2544,2772,8085,8086,8087,3310,4576,2891,8088, // 8006 4577,8089,2851,4578,4579,1221,2967,4053,2513,8090,8091,8092,1867,1989,8093,8094, // 8022 8095,1895,8096,8097,4580,1896,4054, 318,8098,2094,4055,4293,8099,8100, 485,8101, // 8038 938,3862, 553,2670, 116,8102,3863,3612,8103,3498,2671,2773,3401,3311,2807,8104, // 8054 3613,2929,4056,1747,2930,2968,8105,8106, 207,8107,8108,2672,4581,2514,8109,3015, // 8070 890,3614,3864,8110,1877,3732,3402,8111,2183,2353,3403,1652,8112,8113,8114, 941, // 8086 2294, 208,3499,4057,2019, 330,4294,3865,2892,2492,3733,4295,8115,8116,8117,8118, // 8102 /*************************************************************************************** *Everything below is of no interest for detection purpose * *************************************************************************************** 2515,1613,4582,8119,3312,3866,2516,8120,4058,8121,1637,4059,2466,4583,3867,8122, // 8118 2493,3016,3734,8123,8124,2192,8125,8126,2162,8127,8128,8129,8130,8131,8132,8133, // 8134 8134,8135,8136,8137,8138,8139,8140,8141,8142,8143,8144,8145,8146,8147,8148,8149, // 8150 8150,8151,8152,8153,8154,8155,8156,8157,8158,8159,8160,8161,8162,8163,8164,8165, // 8166 8166,8167,8168,8169,8170,8171,8172,8173,8174,8175,8176,8177,8178,8179,8180,8181, // 8182 8182,8183,8184,8185,8186,8187,8188,8189,8190,8191,8192,8193,8194,8195,8196,8197, // 8198 8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8208,8209,8210,8211,8212,8213, // 8214 8214,8215,8216,8217,8218,8219,8220,8221,8222,8223,8224,8225,8226,8227,8228,8229, // 8230 8230,8231,8232,8233,8234,8235,8236,8237,8238,8239,8240,8241,8242,8243,8244,8245, // 8246 8246,8247,8248,8249,8250,8251,8252,8253,8254,8255,8256,8257,8258,8259,8260,8261, // 8262 8262,8263,8264,8265,8266,8267,8268,8269,8270,8271,8272,8273,8274,8275,8276,8277, // 8278 8278,8279,8280,8281,8282,8283,8284,8285,8286,8287,8288,8289,8290,8291,8292,8293, // 8294 8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,8304,8305,8306,8307,8308,8309, // 8310 8310,8311,8312,8313,8314,8315,8316,8317,8318,8319,8320,8321,8322,8323,8324,8325, // 8326 8326,8327,8328,8329,8330,8331,8332,8333,8334,8335,8336,8337,8338,8339,8340,8341, // 8342 8342,8343,8344,8345,8346,8347,8348,8349,8350,8351,8352,8353,8354,8355,8356,8357, // 8358 8358,8359,8360,8361,8362,8363,8364,8365,8366,8367,8368,8369,8370,8371,8372,8373, // 8374 8374,8375,8376,8377,8378,8379,8380,8381,8382,8383,8384,8385,8386,8387,8388,8389, // 8390 8390,8391,8392,8393,8394,8395,8396,8397,8398,8399,8400,8401,8402,8403,8404,8405, // 8406 8406,8407,8408,8409,8410,8411,8412,8413,8414,8415,8416,8417,8418,8419,8420,8421, // 8422 8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,8433,8434,8435,8436,8437, // 8438 8438,8439,8440,8441,8442,8443,8444,8445,8446,8447,8448,8449,8450,8451,8452,8453, // 8454 8454,8455,8456,8457,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8468,8469, // 8470 8470,8471,8472,8473,8474,8475,8476,8477,8478,8479,8480,8481,8482,8483,8484,8485, // 8486 8486,8487,8488,8489,8490,8491,8492,8493,8494,8495,8496,8497,8498,8499,8500,8501, // 8502 8502,8503,8504,8505,8506,8507,8508,8509,8510,8511,8512,8513,8514,8515,8516,8517, // 8518 8518,8519,8520,8521,8522,8523,8524,8525,8526,8527,8528,8529,8530,8531,8532,8533, // 8534 8534,8535,8536,8537,8538,8539,8540,8541,8542,8543,8544,8545,8546,8547,8548,8549, // 8550 8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565, // 8566 8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581, // 8582 8582,8583,8584,8585,8586,8587,8588,8589,8590,8591,8592,8593,8594,8595,8596,8597, // 8598 8598,8599,8600,8601,8602,8603,8604,8605,8606,8607,8608,8609,8610,8611,8612,8613, // 8614 8614,8615,8616,8617,8618,8619,8620,8621,8622,8623,8624,8625,8626,8627,8628,8629, // 8630 8630,8631,8632,8633,8634,8635,8636,8637,8638,8639,8640,8641,8642,8643,8644,8645, // 8646 8646,8647,8648,8649,8650,8651,8652,8653,8654,8655,8656,8657,8658,8659,8660,8661, // 8662 8662,8663,8664,8665,8666,8667,8668,8669,8670,8671,8672,8673,8674,8675,8676,8677, // 8678 8678,8679,8680,8681,8682,8683,8684,8685,8686,8687,8688,8689,8690,8691,8692,8693, // 8694 8694,8695,8696,8697,8698,8699,8700,8701,8702,8703,8704,8705,8706,8707,8708,8709, // 8710 8710,8711,8712,8713,8714,8715,8716,8717,8718,8719,8720,8721,8722,8723,8724,8725, // 8726 8726,8727,8728,8729,8730,8731,8732,8733,8734,8735,8736,8737,8738,8739,8740,8741, // 8742 //13973 ****************************************************************************************/ };
the_stack
-- Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC") -- Copyright (C) 2015-2018 Deutsche Telekom AG. -- Author: Razvan Becheriu <razvan.becheriu@qualitance.com> -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- http://www.apache.org/licenses/LICENSE-2.0 -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- This is the Kea schema specification for Cassandra CQL. -- The schema is reasonably portable (with the exception of the engine -- specification, which is Cassandra CQL-specific). Minor changes might be needed for -- other databases. -- To create the schema, either type the command: -- cqlsh -u <user> -p <password> -k <database> -f dhcpdb_create.cql -- ... at the command prompt, or log in to the CQL database and at the "cqlsh>" -- prompt, issue the command: -- SOURCE dhcpdb_create.cql -- This script is also called from kea-admin, see kea-admin db-init cql -- Over time, Kea database schema will evolve. Each version is marked with -- major.minor version. This file is organized sequentially, i.e. database -- is initialized to 1.0, then upgraded to 2.0 etc. This may be somewhat -- sub-optimal, but it ensues consistency with upgrade scripts. (It is much -- easier to maintain init and upgrade scripts if they look the same). -- Since initialization is done only once, it's performance is not an issue. -- This line starts database initialization to 1.0. -- Holds the IPv4 leases. -- ----------------------------------------------------- -- Table `lease4` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS lease4 ( address INT, hwaddr BLOB, client_id BLOB, valid_lifetime BIGINT, expire BIGINT, subnet_id INT, fqdn_fwd BOOLEAN, fqdn_rev BOOLEAN, hostname VARCHAR, state INT, PRIMARY KEY ((address)) ); -- Create search indexes for lease4 table CREATE INDEX IF NOT EXISTS lease4index1 ON lease4 (client_id); CREATE INDEX IF NOT EXISTS lease4index2 ON lease4 (subnet_id); CREATE INDEX IF NOT EXISTS lease4index3 ON lease4 (hwaddr); CREATE INDEX IF NOT EXISTS lease4index4 ON lease4 (expire); CREATE INDEX IF NOT EXISTS lease4index5 ON lease4 (state); -- Holds the IPv6 leases. -- N.B. The use of a VARCHAR for the address is temporary for development: -- it will eventually be replaced by BINARY(16). -- ----------------------------------------------------- -- Table `lease6` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS lease6 ( address VARCHAR, valid_lifetime BIGINT, expire BIGINT, subnet_id INT, pref_lifetime BIGINT, duid BLOB, iaid INT, lease_type INT, prefix_len INT, fqdn_fwd BOOLEAN, fqdn_rev BOOLEAN, hostname VARCHAR, hwaddr BLOB, hwtype INT, hwaddr_source INT, state INT, PRIMARY KEY ((address)) ); -- Create search indexes for lease6 table CREATE INDEX IF NOT EXISTS lease6index1 ON lease6 (duid); CREATE INDEX IF NOT EXISTS lease6index2 ON lease6 (iaid); CREATE INDEX IF NOT EXISTS lease6index3 ON lease6 (lease_type); CREATE INDEX IF NOT EXISTS lease6index4 ON lease6 (subnet_id); CREATE INDEX IF NOT EXISTS lease6index5 ON lease6 (expire); CREATE INDEX IF NOT EXISTS lease6index6 ON lease6 (state); -- ... and a definition of lease6 types. This table is a convenience for -- users of the database - if they want to view the lease table and use the -- type names, they can join this table with the lease6 table. -- Make sure those values match Lease6::LeaseType enum (see src/bin/dhcpsrv/ -- lease_mgr.h) -- ----------------------------------------------------- -- Table `lease6_types` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS lease6_types ( lease_type INT, -- Lease type code. name VARCHAR, -- Name of the lease type PRIMARY KEY ((lease_type)) ); INSERT INTO lease6_types (lease_type, name) VALUES (0, 'IA_NA'); -- Non-temporary v6 addresses INSERT INTO lease6_types (lease_type, name) VALUES (1, 'IA_TA'); -- Temporary v6 addresses INSERT INTO lease6_types (lease_type, name) VALUES (2, 'IA_PD'); -- Prefix delegations -- Kea keeps track of the hardware/MAC address source, i.e. how the address -- was obtained. Depending on the technique and your network topology, it may -- be more or less trustworthy. This table is a convenience for -- users of the database - if they want to view the lease table and use the -- type names, they can join this table with the lease6 table. For details, -- see constants defined in src/lib/dhcp/dhcp/pkt.h for detailed explanation. -- ----------------------------------------------------- -- Table `lease_hwaddr_source` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS lease_hwaddr_source ( hwaddr_source INT, name VARCHAR, PRIMARY KEY ((hwaddr_source)) ); INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (0, 'HWADDR_SOURCE_UNKNOWN'); -- Hardware address obtained from raw sockets INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (1, 'HWADDR_SOURCE_RAW'); -- Hardware address converted from IPv6 link-local address with EUI-64 INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (2, 'HWADDR_SOURCE_IPV6_LINK_LOCAL'); -- Hardware address extracted from client-id (duid) INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (4, 'HWADDR_SOURCE_DUID'); -- Hardware address extracted from client address relay option (RFC6939) INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (8, 'HWADDR_SOURCE_CLIENT_ADDR_RELAY_OPTION'); -- Hardware address extracted from remote-id option (RFC4649) INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (16, 'HWADDR_SOURCE_REMOTE_ID'); -- Hardware address extracted from subscriber-id option (RFC4580) INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (32, 'HWADDR_SOURCE_SUBSCRIBER_ID'); -- Hardware address extracted from docsis options INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (64, 'HWADDR_SOURCE_DOCSIS_CMTS'); INSERT INTO lease_hwaddr_source (hwaddr_source, name) VALUES (128, 'HWADDR_SOURCE_DOCSIS_MODEM'); -- Create table holding mapping of the lease states to their names. -- This is not used in queries from the DHCP server but rather in -- direct queries from the lease database management tools. -- ----------------------------------------------------- -- Table `lease_state` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS lease_state ( state INT, name VARCHAR, PRIMARY KEY ((state)) ); -- Insert currently defined state names. INSERT INTO lease_state (state, name) VALUES (0, 'default'); INSERT INTO lease_state (state, name) VALUES (1, 'declined'); INSERT INTO lease_state (state, name) VALUES (2, 'expired-reclaimed'); -- Finally, the version of the schema. We start at 1.0 during development. -- This table is only modified during schema upgrades. For historical reasons -- (related to the names of the columns in the BIND 10 DNS database file), the -- first column is called "version" and not "major". -- ----------------------------------------------------- -- Table `schema_version` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS schema_version ( version INT, minor INT, PRIMARY KEY ((version)) ); INSERT INTO schema_version (version, minor) VALUES (1, 0); -- This line concludes database initialization to version 1.0. -- This line starts database upgrade to version 2.0 -- ----------------------------------------------------- -- Table `host_reservations` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS host_reservations ( id BIGINT, host_identifier BLOB, host_identifier_type INT, host_ipv4_subnet_id INT, host_ipv6_subnet_id INT, host_ipv4_address INT, host_ipv4_next_server INT, host_ipv4_server_hostname VARCHAR, host_ipv4_boot_file_name VARCHAR, hostname VARCHAR, user_context VARCHAR, host_ipv4_client_classes VARCHAR, host_ipv6_client_classes VARCHAR, -- reservation reserved_ipv6_prefix_address VARCHAR, reserved_ipv6_prefix_length INT, reserved_ipv6_prefix_address_type INT, iaid INT, -- option option_universe INT, option_code INT, option_value BLOB, option_formatted_value VARCHAR, option_space VARCHAR, option_is_persistent BOOLEAN, option_client_class VARCHAR, option_subnet_id INT, option_user_context VARCHAR, option_scope_id INT, PRIMARY KEY ((id)) ); CREATE INDEX IF NOT EXISTS host_reservationsindex1 ON host_reservations (host_identifier); CREATE INDEX IF NOT EXISTS host_reservationsindex2 ON host_reservations (host_identifier_type); CREATE INDEX IF NOT EXISTS host_reservationsindex3 ON host_reservations (host_ipv4_subnet_id); CREATE INDEX IF NOT EXISTS host_reservationsindex4 ON host_reservations (host_ipv6_subnet_id); CREATE INDEX IF NOT EXISTS host_reservationsindex5 ON host_reservations (host_ipv4_address); CREATE INDEX IF NOT EXISTS host_reservationsindex6 ON host_reservations (reserved_ipv6_prefix_address); CREATE INDEX IF NOT EXISTS host_reservationsindex7 ON host_reservations (reserved_ipv6_prefix_length); -- ----------------------------------------------------- -- Table `host_identifier_type` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS host_identifier_type ( type INT, name VARCHAR, PRIMARY KEY ((type)) ); -- Insert currently defined type names. INSERT INTO host_identifier_type (type, name) VALUES (0, 'hw-address'); INSERT INTO host_identifier_type (type, name) VALUES (1, 'duid'); INSERT INTO host_identifier_type (type, name) VALUES (2, 'circuit-id'); INSERT INTO host_identifier_type (type, name) VALUES (3, 'client-id'); INSERT INTO host_identifier_type (type, name) VALUES (4, 'flex-id'); -- ----------------------------------------------------- -- Table `dhcp_option_scope` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS dhcp_option_scope ( scope_id INT, scope_name VARCHAR, PRIMARY KEY ((scope_id)) ); INSERT INTO dhcp_option_scope (scope_id, scope_name) VALUES (0, 'global'); INSERT INTO dhcp_option_scope (scope_id, scope_name) VALUES (1, 'subnet'); INSERT INTO dhcp_option_scope (scope_id, scope_name) VALUES (2, 'client-class'); INSERT INTO dhcp_option_scope (scope_id, scope_name) VALUES (3, 'host'); DELETE FROM schema_version WHERE version=1; INSERT INTO schema_version (version, minor) VALUES(2, 0); -- This line concludes database upgrade to version 2.0 -- This line starts database upgrade to version 3.0 -- Add a column holding leases for user context. ALTER TABLE lease4 ADD user_context VARCHAR; ALTER TABLE lease6 ADD user_context VARCHAR; -- ----------------------------------------------------- -- Table `logs` (logs table is used by forensic logging hook library) -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS logs ( timeuuid TIMEUUID, -- creation timeuuid, use dateOf() to get timestamp address VARCHAR, -- address or prefix log VARCHAR, -- the log itself PRIMARY KEY ((timeuuid)) ); -- Create search index for logs table CREATE INDEX IF NOT EXISTS logsindex ON logs (address); -- This line adds auth_key column into host reservation table ALTER TABLE host_reservations ADD auth_key VARCHAR; -- Cql requires primary keys in the WHERE here. DELETE FROM schema_version WHERE version=2; INSERT INTO schema_version (version, minor) VALUES(3, 0); -- This line concludes database upgrade to version 3.0 -- This line starts database upgrade to version 4.0 -- ----------------------------------------------------- -- Table `hosts` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS hosts ( key BIGINT, id BIGINT, host_identifier BLOB, host_identifier_type INT, host_ipv4_subnet_id INT, host_ipv6_subnet_id INT, host_ipv4_address INT, host_ipv4_next_server INT, host_ipv4_server_hostname VARCHAR, host_ipv4_boot_file_name VARCHAR, hostname VARCHAR, auth_key VARCHAR, user_context VARCHAR, host_ipv4_client_classes VARCHAR, host_ipv6_client_classes VARCHAR, -- reservation reserved_ipv6_prefix_address VARCHAR, reserved_ipv6_prefix_length INT, reserved_ipv6_prefix_address_type INT, iaid INT, -- option option_universe INT, option_code INT, option_value BLOB, option_formatted_value VARCHAR, option_space VARCHAR, option_is_persistent BOOLEAN, option_client_class VARCHAR, option_subnet_id INT, option_user_context VARCHAR, option_scope_id INT, PRIMARY KEY ((key), id) ); CREATE INDEX IF NOT EXISTS hostsindex1 ON hosts (host_identifier); CREATE INDEX IF NOT EXISTS hostsindex2 ON hosts (host_identifier_type); CREATE INDEX IF NOT EXISTS hostsindex3 ON hosts (host_ipv4_subnet_id); CREATE INDEX IF NOT EXISTS hostsindex4 ON hosts (host_ipv6_subnet_id); CREATE INDEX IF NOT EXISTS hostsindex5 ON hosts (host_ipv4_address); CREATE INDEX IF NOT EXISTS hostsindex6 ON hosts (reserved_ipv6_prefix_address); CREATE INDEX IF NOT EXISTS hostsindex7 ON hosts (reserved_ipv6_prefix_length); DROP TABLE IF EXISTS host_reservations; DROP INDEX IF EXISTS host_reservationsindex1; DROP INDEX IF EXISTS host_reservationsindex2; DROP INDEX IF EXISTS host_reservationsindex3; DROP INDEX IF EXISTS host_reservationsindex4; DROP INDEX IF EXISTS host_reservationsindex5; DROP INDEX IF EXISTS host_reservationsindex6; DROP INDEX IF EXISTS host_reservationsindex7; -- Cql requires primary keys in the WHERE here. DELETE FROM schema_version WHERE version=3; INSERT INTO schema_version (version, minor) VALUES(4, 0); -- This line concludes database upgrade to version 4.0 -- This line starts database upgrade to version 5.0 -- Add the lower case hostname column to reservations. ALTER TABLE hosts ADD lower_case_hostname VARCHAR; -- Make the lower case hostname an index. CREATE INDEX IF NOT EXISTS hostsindex8 ON hosts (lower_case_hostname); -- Create a new hostname index on lease4. CREATE INDEX IF NOT EXISTS lease4index6 ON lease4 (hostname); -- Create a new hostname index on lease6. CREATE INDEX IF NOT EXISTS lease6index7 ON lease6 (hostname); DELETE FROM schema_version WHERE version=4; INSERT INTO schema_version (version, minor) VALUES(5, 0); -- This line concludes database upgrade to version 5.0
the_stack
-- 2018-06-18T15:27:37.686 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,541109,0,540394,TO_TIMESTAMP('2018-06-18 15:27:37','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.event','_AD_EventLog','Y','N','N','N','N','Ereignis Log',TO_TIMESTAMP('2018-06-18 15:27:37','YYYY-MM-DD HH24:MI:SS'),100,'Ereignis Log') ; -- 2018-06-18T15:27:37.698 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=541109 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2018-06-18T15:27:37.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541109, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541109) ; -- 2018-06-18T15:27:38.323 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=334 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.325 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=498 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.326 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=224 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.327 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=514 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.328 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=336 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.328 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=341 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.329 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=170 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.329 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=465 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.330 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=101 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.330 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=294 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.330 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=395 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.331 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=296 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.331 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=221 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=541069 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=233 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.333 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=290 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.333 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=109 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540375 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=50008 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:38.335 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=541109 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.901 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540969 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.902 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540892 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.903 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540914 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.903 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540915 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.904 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=150 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.905 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=147 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.905 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=145 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.906 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=144 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.907 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540743 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.907 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540784 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.908 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540826 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.908 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540898 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.909 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540895 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.909 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540827 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.910 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540828 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.911 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540849 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.911 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540911 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.912 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540912 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.912 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540913 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.913 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540894 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.913 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=540917 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.914 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=540982 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.915 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=540919 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.915 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=540983 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.916 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=541080 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.917 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=363 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.917 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=541079 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.918 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541108 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.919 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=541053 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.920 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541052 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.920 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=541041 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.921 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=541104 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.921 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=541109 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.922 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000099 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.923 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000100 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.923 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000101 AND AD_Tree_ID=10 ; -- 2018-06-18T15:27:42.924 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=36, Updated=now(), UpdatedBy=100 WHERE Node_ID=540901 AND AD_Tree_ID=10 ; -- 2018-06-18T15:28:08.784 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-06-18 15:28:08','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Event Log',WEBUI_NameBrowse='Event Log' WHERE AD_Menu_ID=541109 AND AD_Language='en_US' ;
the_stack
-- 2021-09-30T13:36:51.793Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,569792,661052,0,186,TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100,360,'D','Y','N','N','N','N','N','N','N','Übergabe adresse',TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-09-30T13:36:51.795Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661052 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-09-30T13:36:51.815Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(577444) ; -- 2021-09-30T13:36:51.822Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661052 ; -- 2021-09-30T13:36:51.823Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661052) ; -- 2021-09-30T13:36:51.885Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,570876,661053,0,186,TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','N','N','N','N','N','N','N','Verbuchungsfehler',TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-09-30T13:36:51.886Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661053 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-09-30T13:36:51.887Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(577755) ; -- 2021-09-30T13:36:51.889Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661053 ; -- 2021-09-30T13:36:51.890Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661053) ; -- 2021-09-30T13:36:51.949Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,572014,661054,0,186,TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100,'Sales Responsible Internal',10,'D','','Y','N','N','N','N','N','N','N','Sales Responsible',TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-09-30T13:36:51.950Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661054 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-09-30T13:36:51.952Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(543385) ; -- 2021-09-30T13:36:51.954Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661054 ; -- 2021-09-30T13:36:51.954Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661054) ; -- 2021-09-30T13:36:52.006Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,574447,661055,0,186,TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100,'Wenn eine Bestellung aus einem externen System synchronisiert wurde, kann dieses Feld die betreffende URL enthalten',1000,'D','Y','N','N','N','N','N','N','N','Bestell-URL im externen system',TO_TIMESTAMP('2021-09-30 15:36:51','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-09-30T13:36:52.008Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661055 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-09-30T13:36:52.010Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579351) ; -- 2021-09-30T13:36:52.015Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661055 ; -- 2021-09-30T13:36:52.015Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661055) ; -- 2021-09-30T13:36:52.091Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,577195,661056,0,186,TO_TIMESTAMP('2021-09-30 15:36:52','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','N','N','N','N','N','N','N','Incoterms',TO_TIMESTAMP('2021-09-30 15:36:52','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-09-30T13:36:52.092Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661056 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-09-30T13:36:52.093Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579927) ; -- 2021-09-30T13:36:52.095Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661056 ; -- 2021-09-30T13:36:52.095Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661056) ; -- 2021-09-30T13:38:32.240Z -- URL zum Konzept UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2021-09-30 15:38:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544770 ; -- 2021-09-30T13:38:59.449Z -- URL zum Konzept INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,661056,0,186,540499,591844,'F',TO_TIMESTAMP('2021-09-30 15:38:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'Incoterms',131,0,0,TO_TIMESTAMP('2021-09-30 15:38:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-10-01T08:19:38.799Z -- URL zum Konzept DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544770 ; -- 2021-10-01T08:20:12.427Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=501620 ; -- 2021-10-01T08:20:12.429Z -- URL zum Konzept DELETE FROM AD_Field_Trl WHERE AD_Field_ID=501620 ; -- 2021-10-01T08:20:12.431Z -- URL zum Konzept DELETE FROM AD_Field WHERE AD_Field_ID=501620 ; -- 2021-10-01T08:23:14.511Z -- URL zum Konzept INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,501613,661298,0,186,0,TO_TIMESTAMP('2021-10-01 10:23:14','YYYY-MM-DD HH24:MI:SS'),100,'Internationale Handelsklauseln (engl. International Commercial Terms)',0,'U','Incoterms (International Commercial Terms, deutsch: Internationale Handelsklauseln) sind eine Reihe internationaler Regeln zur Interpretation spezifizierter Handelsbedingungen im Außenhandelsgeschäft. Die Incoterms wurden von der Internationalen Handelskammer (International Chamber of Commerce, ICC) erstmals 1936 aufgestellt, um eine gemeinsame Basis für den internationalen Handel zu schaffen. Sie regeln vor allem die Art und Weise der Lieferung von Gütern. Die Bestimmungen legen fest, welche Transportkosten der Verkäufer, welche der Käufer zu tragen hat und wer im Falle eines Verlustes der Ware das finanzielle Risiko trägt. Die Incoterms geben jedoch keine Auskunft darüber, wann und wo das Eigentum an der Ware von dem Verkäufer auf den Käufer übergeht. Der Stand der Incoterms wird durch Angabe der Jahreszahl gekennzeichnet. Aktuell gelten die Incoterms 2000 (6. Revision).',0,'Y','Y','Y','N','N','N','N','N','Incoterm',0,740,0,1,1,TO_TIMESTAMP('2021-10-01 10:23:14','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-10-01T08:23:14.512Z -- URL zum Konzept INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=661298 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-10-01T08:23:14.535Z -- URL zum Konzept /* DDL */ select update_FieldTranslation_From_AD_Name_Element(501607) ; -- 2021-10-01T08:23:14.540Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661298 ; -- 2021-10-01T08:23:14.541Z -- URL zum Konzept /* DDL */ select AD_Element_Link_Create_Missing_Field(661298) ; -- 2021-10-01T08:23:44.889Z -- URL zum Konzept UPDATE AD_UI_Element SET AD_Field_ID=661298, Description='Internationale Handelsklauseln (engl. International Commercial Terms)', Help='Incoterms (International Commercial Terms, deutsch: Internationale Handelsklauseln) sind eine Reihe internationaler Regeln zur Interpretation spezifizierter Handelsbedingungen im Außenhandelsgeschäft. Die Incoterms wurden von der Internationalen Handelskammer (International Chamber of Commerce, ICC) erstmals 1936 aufgestellt, um eine gemeinsame Basis für den internationalen Handel zu schaffen. Sie regeln vor allem die Art und Weise der Lieferung von Gütern. Die Bestimmungen legen fest, welche Transportkosten der Verkäufer, welche der Käufer zu tragen hat und wer im Falle eines Verlustes der Ware das finanzielle Risiko trägt. Die Incoterms geben jedoch keine Auskunft darüber, wann und wo das Eigentum an der Ware von dem Verkäufer auf den Käufer übergeht. Der Stand der Incoterms wird durch Angabe der Jahreszahl gekennzeichnet. Aktuell gelten die Incoterms 2000 (6. Revision).', Name='Incoterm', SeqNo=130,Updated=TO_TIMESTAMP('2021-10-01 10:23:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=591844 ; -- 2021-10-01T08:27:08.835Z -- URL zum Konzept DELETE FROM AD_Element_Link WHERE AD_Field_ID=661056 ; -- 2021-10-01T08:27:08.837Z -- URL zum Konzept DELETE FROM AD_Field_Trl WHERE AD_Field_ID=661056 ; -- 2021-10-01T08:27:08.845Z -- URL zum Konzept DELETE FROM AD_Field WHERE AD_Field_ID=661056 ; -- 2021-10-01T08:27:32.235Z -- URL zum Konzept DELETE FROM AD_Column_Trl WHERE AD_Column_ID=577195 ; -- 2021-10-01T08:27:32.236Z -- URL zum Konzept DELETE FROM AD_Column WHERE AD_Column_ID=577195 ; -- 2021-10-01T08:28:09.284Z -- URL zum Konzept UPDATE AD_Column SET AD_Element_ID=579927, AD_Reference_ID=19, AD_Reference_Value_ID=NULL, ColumnName='C_Incoterms_ID', Description=NULL, FieldLength=10, Help=NULL, Name='Incoterms',Updated=TO_TIMESTAMP('2021-10-01 10:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=501613 ; -- 2021-10-01T08:28:09.285Z -- URL zum Konzept UPDATE AD_Field SET Name='Incoterms', Description=NULL, Help=NULL WHERE AD_Column_ID=501613 ; -- 2021-10-01T08:28:09.287Z -- URL zum Konzept /* DDL */ select update_Column_Translation_From_AD_Element(579927) ; -- 2021-10-01T08:28:11.411Z -- URL zum Konzept INSERT INTO t_alter_column values('c_order','C_Incoterms_ID','NUMERIC(10)',null,null) ; -- 2021-10-01T08:31:08.880Z -- URL zum Konzept UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-10-01 10:31:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=591844 ;
the_stack
-- MPP-5928 -- We want to test a whole bunch of different type configurations and whether -- ATSDB can handle them as dropped types -- Here's the script to generate all this: /* #!/usr/bin/env bash align="int2 int4 char double" length="variable 1 3 4 11 17 19 23 32 196" pbv="true false" storage="true false" types=() aa="" # First create all the datatypes and test tables to test with. We do these in one large # transaction, to keep transaction overhead to minimum. echo "BEGIN;" echo "CREATE SCHEMA adp_dropped;" echo "set search_path='adp_dropped';" for a in $align do for l in $length do for p in $pbv do for s in $storage do if [ $p == "true" ] && [ $l != "variable" ] && [ $l -gt 8 ]; then continue fi if [ $p == "true" ] && [ $l == "variable" ]; then continue fi if [ $p == "true" ] && [ $l == 3 ]; then continue fi aa=$a # Not all alignments are valid for all internal lengths if [ $l == "1" ]; then aa="char" fi if [ $l == "4" ] && [ $a == "int2" ]; then aa="int4" fi if [ $l == "variable" ]; then aa="int4"; fi if [ $a == "char" ] && [ $l != "1" ] && [ $l != "3" ]; then aa="int4" fi typesuffix="${a}_${l}_${p}_${s}" types+=("${typesuffix}") cat <<EOF create type break_${typesuffix}; create function breakin_${typesuffix} (cstring) returns break_${typesuffix} as 'textin' language internal strict immutable; create function breakout_${typesuffix} (break_${typesuffix}) returns cstring as 'textout' language internal strict immutable; create type break_${typesuffix} (input = breakin_${typesuffix}, output = breakout_${typesuffix}, internallength = $l, passedbyvalue = $p, alignment = $aa); create table alter_distpol_g_${typesuffix} (i int, j break_${typesuffix}, k text) with (appendonly = $s) distributed by (i); insert into alter_distpol_g_${typesuffix} (i, k) select i, i from generate_series(1, 10) i; EOF done done done done echo "COMMIT;" for t in ${types[@]} do typesuffix="$t" cat <<EOF alter table alter_distpol_g_${typesuffix} drop column j; select * from alter_distpol_g_${typesuffix} order by 1; alter table alter_distpol_g_${typesuffix} set with(reorganize = true) distributed randomly; select * from alter_distpol_g_${typesuffix} order by 1; drop type break_${typesuffix} cascade; alter table alter_distpol_g_${typesuffix} set with(reorganize = true) distributed randomly; select * from alter_distpol_g_${typesuffix} order by 1; EOF done */ -- Generated part begins here BEGIN; CREATE SCHEMA adp_dropped; set search_path='adp_dropped'; create type break_int2_variable_false_true; create function breakin_int2_variable_false_true (cstring) returns break_int2_variable_false_true as 'textin' language internal strict immutable; create function breakout_int2_variable_false_true (break_int2_variable_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_variable_false_true (input = breakin_int2_variable_false_true, output = breakout_int2_variable_false_true, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int2_variable_false_true (i int, j break_int2_variable_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_variable_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_variable_false_false; create function breakin_int2_variable_false_false (cstring) returns break_int2_variable_false_false as 'textin' language internal strict immutable; create function breakout_int2_variable_false_false (break_int2_variable_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_variable_false_false (input = breakin_int2_variable_false_false, output = breakout_int2_variable_false_false, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int2_variable_false_false (i int, j break_int2_variable_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_variable_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_1_true_true; create function breakin_int2_1_true_true (cstring) returns break_int2_1_true_true as 'textin' language internal strict immutable; create function breakout_int2_1_true_true (break_int2_1_true_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_1_true_true (input = breakin_int2_1_true_true, output = breakout_int2_1_true_true, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_int2_1_true_true (i int, j break_int2_1_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_1_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_1_true_false; create function breakin_int2_1_true_false (cstring) returns break_int2_1_true_false as 'textin' language internal strict immutable; create function breakout_int2_1_true_false (break_int2_1_true_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_1_true_false (input = breakin_int2_1_true_false, output = breakout_int2_1_true_false, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_int2_1_true_false (i int, j break_int2_1_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_1_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_1_false_true; create function breakin_int2_1_false_true (cstring) returns break_int2_1_false_true as 'textin' language internal strict immutable; create function breakout_int2_1_false_true (break_int2_1_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_1_false_true (input = breakin_int2_1_false_true, output = breakout_int2_1_false_true, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_int2_1_false_true (i int, j break_int2_1_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_1_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_1_false_false; create function breakin_int2_1_false_false (cstring) returns break_int2_1_false_false as 'textin' language internal strict immutable; create function breakout_int2_1_false_false (break_int2_1_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_1_false_false (input = breakin_int2_1_false_false, output = breakout_int2_1_false_false, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_int2_1_false_false (i int, j break_int2_1_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_1_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_3_false_true; create function breakin_int2_3_false_true (cstring) returns break_int2_3_false_true as 'textin' language internal strict immutable; create function breakout_int2_3_false_true (break_int2_3_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_3_false_true (input = breakin_int2_3_false_true, output = breakout_int2_3_false_true, internallength = 3, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_3_false_true (i int, j break_int2_3_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_3_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_3_false_false; create function breakin_int2_3_false_false (cstring) returns break_int2_3_false_false as 'textin' language internal strict immutable; create function breakout_int2_3_false_false (break_int2_3_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_3_false_false (input = breakin_int2_3_false_false, output = breakout_int2_3_false_false, internallength = 3, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_3_false_false (i int, j break_int2_3_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_3_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_4_true_true; create function breakin_int2_4_true_true (cstring) returns break_int2_4_true_true as 'textin' language internal strict immutable; create function breakout_int2_4_true_true (break_int2_4_true_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_4_true_true (input = breakin_int2_4_true_true, output = breakout_int2_4_true_true, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_int2_4_true_true (i int, j break_int2_4_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_4_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_4_true_false; create function breakin_int2_4_true_false (cstring) returns break_int2_4_true_false as 'textin' language internal strict immutable; create function breakout_int2_4_true_false (break_int2_4_true_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_4_true_false (input = breakin_int2_4_true_false, output = breakout_int2_4_true_false, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_int2_4_true_false (i int, j break_int2_4_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_4_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_4_false_true; create function breakin_int2_4_false_true (cstring) returns break_int2_4_false_true as 'textin' language internal strict immutable; create function breakout_int2_4_false_true (break_int2_4_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_4_false_true (input = breakin_int2_4_false_true, output = breakout_int2_4_false_true, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int2_4_false_true (i int, j break_int2_4_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_4_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_4_false_false; create function breakin_int2_4_false_false (cstring) returns break_int2_4_false_false as 'textin' language internal strict immutable; create function breakout_int2_4_false_false (break_int2_4_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_4_false_false (input = breakin_int2_4_false_false, output = breakout_int2_4_false_false, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int2_4_false_false (i int, j break_int2_4_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_4_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_11_false_true; create function breakin_int2_11_false_true (cstring) returns break_int2_11_false_true as 'textin' language internal strict immutable; create function breakout_int2_11_false_true (break_int2_11_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_11_false_true (input = breakin_int2_11_false_true, output = breakout_int2_11_false_true, internallength = 11, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_11_false_true (i int, j break_int2_11_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_11_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_11_false_false; create function breakin_int2_11_false_false (cstring) returns break_int2_11_false_false as 'textin' language internal strict immutable; create function breakout_int2_11_false_false (break_int2_11_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_11_false_false (input = breakin_int2_11_false_false, output = breakout_int2_11_false_false, internallength = 11, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_11_false_false (i int, j break_int2_11_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_11_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_17_false_true; create function breakin_int2_17_false_true (cstring) returns break_int2_17_false_true as 'textin' language internal strict immutable; create function breakout_int2_17_false_true (break_int2_17_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_17_false_true (input = breakin_int2_17_false_true, output = breakout_int2_17_false_true, internallength = 17, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_17_false_true (i int, j break_int2_17_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_17_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_17_false_false; create function breakin_int2_17_false_false (cstring) returns break_int2_17_false_false as 'textin' language internal strict immutable; create function breakout_int2_17_false_false (break_int2_17_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_17_false_false (input = breakin_int2_17_false_false, output = breakout_int2_17_false_false, internallength = 17, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_17_false_false (i int, j break_int2_17_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_17_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_19_false_true; create function breakin_int2_19_false_true (cstring) returns break_int2_19_false_true as 'textin' language internal strict immutable; create function breakout_int2_19_false_true (break_int2_19_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_19_false_true (input = breakin_int2_19_false_true, output = breakout_int2_19_false_true, internallength = 19, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_19_false_true (i int, j break_int2_19_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_19_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_19_false_false; create function breakin_int2_19_false_false (cstring) returns break_int2_19_false_false as 'textin' language internal strict immutable; create function breakout_int2_19_false_false (break_int2_19_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_19_false_false (input = breakin_int2_19_false_false, output = breakout_int2_19_false_false, internallength = 19, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_19_false_false (i int, j break_int2_19_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_19_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_23_false_true; create function breakin_int2_23_false_true (cstring) returns break_int2_23_false_true as 'textin' language internal strict immutable; create function breakout_int2_23_false_true (break_int2_23_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_23_false_true (input = breakin_int2_23_false_true, output = breakout_int2_23_false_true, internallength = 23, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_23_false_true (i int, j break_int2_23_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_23_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_23_false_false; create function breakin_int2_23_false_false (cstring) returns break_int2_23_false_false as 'textin' language internal strict immutable; create function breakout_int2_23_false_false (break_int2_23_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_23_false_false (input = breakin_int2_23_false_false, output = breakout_int2_23_false_false, internallength = 23, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_23_false_false (i int, j break_int2_23_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_23_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_32_false_true; create function breakin_int2_32_false_true (cstring) returns break_int2_32_false_true as 'textin' language internal strict immutable; create function breakout_int2_32_false_true (break_int2_32_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_32_false_true (input = breakin_int2_32_false_true, output = breakout_int2_32_false_true, internallength = 32, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_32_false_true (i int, j break_int2_32_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_32_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_32_false_false; create function breakin_int2_32_false_false (cstring) returns break_int2_32_false_false as 'textin' language internal strict immutable; create function breakout_int2_32_false_false (break_int2_32_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_32_false_false (input = breakin_int2_32_false_false, output = breakout_int2_32_false_false, internallength = 32, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_32_false_false (i int, j break_int2_32_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_32_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int2_196_false_true; create function breakin_int2_196_false_true (cstring) returns break_int2_196_false_true as 'textin' language internal strict immutable; create function breakout_int2_196_false_true (break_int2_196_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int2_196_false_true (input = breakin_int2_196_false_true, output = breakout_int2_196_false_true, internallength = 196, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_196_false_true (i int, j break_int2_196_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int2_196_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int2_196_false_false; create function breakin_int2_196_false_false (cstring) returns break_int2_196_false_false as 'textin' language internal strict immutable; create function breakout_int2_196_false_false (break_int2_196_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int2_196_false_false (input = breakin_int2_196_false_false, output = breakout_int2_196_false_false, internallength = 196, passedbyvalue = false, alignment = int2); create table alter_distpol_g_int2_196_false_false (i int, j break_int2_196_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int2_196_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_variable_false_true; create function breakin_int4_variable_false_true (cstring) returns break_int4_variable_false_true as 'textin' language internal strict immutable; create function breakout_int4_variable_false_true (break_int4_variable_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_variable_false_true (input = breakin_int4_variable_false_true, output = breakout_int4_variable_false_true, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_variable_false_true (i int, j break_int4_variable_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_variable_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_variable_false_false; create function breakin_int4_variable_false_false (cstring) returns break_int4_variable_false_false as 'textin' language internal strict immutable; create function breakout_int4_variable_false_false (break_int4_variable_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_variable_false_false (input = breakin_int4_variable_false_false, output = breakout_int4_variable_false_false, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_variable_false_false (i int, j break_int4_variable_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_variable_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_1_true_true; create function breakin_int4_1_true_true (cstring) returns break_int4_1_true_true as 'textin' language internal strict immutable; create function breakout_int4_1_true_true (break_int4_1_true_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_1_true_true (input = breakin_int4_1_true_true, output = breakout_int4_1_true_true, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_int4_1_true_true (i int, j break_int4_1_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_1_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_1_true_false; create function breakin_int4_1_true_false (cstring) returns break_int4_1_true_false as 'textin' language internal strict immutable; create function breakout_int4_1_true_false (break_int4_1_true_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_1_true_false (input = breakin_int4_1_true_false, output = breakout_int4_1_true_false, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_int4_1_true_false (i int, j break_int4_1_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_1_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_1_false_true; create function breakin_int4_1_false_true (cstring) returns break_int4_1_false_true as 'textin' language internal strict immutable; create function breakout_int4_1_false_true (break_int4_1_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_1_false_true (input = breakin_int4_1_false_true, output = breakout_int4_1_false_true, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_int4_1_false_true (i int, j break_int4_1_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_1_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_1_false_false; create function breakin_int4_1_false_false (cstring) returns break_int4_1_false_false as 'textin' language internal strict immutable; create function breakout_int4_1_false_false (break_int4_1_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_1_false_false (input = breakin_int4_1_false_false, output = breakout_int4_1_false_false, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_int4_1_false_false (i int, j break_int4_1_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_1_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_3_false_true; create function breakin_int4_3_false_true (cstring) returns break_int4_3_false_true as 'textin' language internal strict immutable; create function breakout_int4_3_false_true (break_int4_3_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_3_false_true (input = breakin_int4_3_false_true, output = breakout_int4_3_false_true, internallength = 3, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_3_false_true (i int, j break_int4_3_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_3_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_3_false_false; create function breakin_int4_3_false_false (cstring) returns break_int4_3_false_false as 'textin' language internal strict immutable; create function breakout_int4_3_false_false (break_int4_3_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_3_false_false (input = breakin_int4_3_false_false, output = breakout_int4_3_false_false, internallength = 3, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_3_false_false (i int, j break_int4_3_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_3_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_4_true_true; create function breakin_int4_4_true_true (cstring) returns break_int4_4_true_true as 'textin' language internal strict immutable; create function breakout_int4_4_true_true (break_int4_4_true_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_4_true_true (input = breakin_int4_4_true_true, output = breakout_int4_4_true_true, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_int4_4_true_true (i int, j break_int4_4_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_4_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_4_true_false; create function breakin_int4_4_true_false (cstring) returns break_int4_4_true_false as 'textin' language internal strict immutable; create function breakout_int4_4_true_false (break_int4_4_true_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_4_true_false (input = breakin_int4_4_true_false, output = breakout_int4_4_true_false, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_int4_4_true_false (i int, j break_int4_4_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_4_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_4_false_true; create function breakin_int4_4_false_true (cstring) returns break_int4_4_false_true as 'textin' language internal strict immutable; create function breakout_int4_4_false_true (break_int4_4_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_4_false_true (input = breakin_int4_4_false_true, output = breakout_int4_4_false_true, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_4_false_true (i int, j break_int4_4_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_4_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_4_false_false; create function breakin_int4_4_false_false (cstring) returns break_int4_4_false_false as 'textin' language internal strict immutable; create function breakout_int4_4_false_false (break_int4_4_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_4_false_false (input = breakin_int4_4_false_false, output = breakout_int4_4_false_false, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_4_false_false (i int, j break_int4_4_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_4_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_11_false_true; create function breakin_int4_11_false_true (cstring) returns break_int4_11_false_true as 'textin' language internal strict immutable; create function breakout_int4_11_false_true (break_int4_11_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_11_false_true (input = breakin_int4_11_false_true, output = breakout_int4_11_false_true, internallength = 11, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_11_false_true (i int, j break_int4_11_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_11_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_11_false_false; create function breakin_int4_11_false_false (cstring) returns break_int4_11_false_false as 'textin' language internal strict immutable; create function breakout_int4_11_false_false (break_int4_11_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_11_false_false (input = breakin_int4_11_false_false, output = breakout_int4_11_false_false, internallength = 11, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_11_false_false (i int, j break_int4_11_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_11_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_17_false_true; create function breakin_int4_17_false_true (cstring) returns break_int4_17_false_true as 'textin' language internal strict immutable; create function breakout_int4_17_false_true (break_int4_17_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_17_false_true (input = breakin_int4_17_false_true, output = breakout_int4_17_false_true, internallength = 17, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_17_false_true (i int, j break_int4_17_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_17_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_17_false_false; create function breakin_int4_17_false_false (cstring) returns break_int4_17_false_false as 'textin' language internal strict immutable; create function breakout_int4_17_false_false (break_int4_17_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_17_false_false (input = breakin_int4_17_false_false, output = breakout_int4_17_false_false, internallength = 17, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_17_false_false (i int, j break_int4_17_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_17_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_19_false_true; create function breakin_int4_19_false_true (cstring) returns break_int4_19_false_true as 'textin' language internal strict immutable; create function breakout_int4_19_false_true (break_int4_19_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_19_false_true (input = breakin_int4_19_false_true, output = breakout_int4_19_false_true, internallength = 19, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_19_false_true (i int, j break_int4_19_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_19_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_19_false_false; create function breakin_int4_19_false_false (cstring) returns break_int4_19_false_false as 'textin' language internal strict immutable; create function breakout_int4_19_false_false (break_int4_19_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_19_false_false (input = breakin_int4_19_false_false, output = breakout_int4_19_false_false, internallength = 19, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_19_false_false (i int, j break_int4_19_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_19_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_23_false_true; create function breakin_int4_23_false_true (cstring) returns break_int4_23_false_true as 'textin' language internal strict immutable; create function breakout_int4_23_false_true (break_int4_23_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_23_false_true (input = breakin_int4_23_false_true, output = breakout_int4_23_false_true, internallength = 23, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_23_false_true (i int, j break_int4_23_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_23_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_23_false_false; create function breakin_int4_23_false_false (cstring) returns break_int4_23_false_false as 'textin' language internal strict immutable; create function breakout_int4_23_false_false (break_int4_23_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_23_false_false (input = breakin_int4_23_false_false, output = breakout_int4_23_false_false, internallength = 23, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_23_false_false (i int, j break_int4_23_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_23_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_32_false_true; create function breakin_int4_32_false_true (cstring) returns break_int4_32_false_true as 'textin' language internal strict immutable; create function breakout_int4_32_false_true (break_int4_32_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_32_false_true (input = breakin_int4_32_false_true, output = breakout_int4_32_false_true, internallength = 32, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_32_false_true (i int, j break_int4_32_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_32_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_32_false_false; create function breakin_int4_32_false_false (cstring) returns break_int4_32_false_false as 'textin' language internal strict immutable; create function breakout_int4_32_false_false (break_int4_32_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_32_false_false (input = breakin_int4_32_false_false, output = breakout_int4_32_false_false, internallength = 32, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_32_false_false (i int, j break_int4_32_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_32_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_int4_196_false_true; create function breakin_int4_196_false_true (cstring) returns break_int4_196_false_true as 'textin' language internal strict immutable; create function breakout_int4_196_false_true (break_int4_196_false_true) returns cstring as 'textout' language internal strict immutable; create type break_int4_196_false_true (input = breakin_int4_196_false_true, output = breakout_int4_196_false_true, internallength = 196, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_196_false_true (i int, j break_int4_196_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_int4_196_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_int4_196_false_false; create function breakin_int4_196_false_false (cstring) returns break_int4_196_false_false as 'textin' language internal strict immutable; create function breakout_int4_196_false_false (break_int4_196_false_false) returns cstring as 'textout' language internal strict immutable; create type break_int4_196_false_false (input = breakin_int4_196_false_false, output = breakout_int4_196_false_false, internallength = 196, passedbyvalue = false, alignment = int4); create table alter_distpol_g_int4_196_false_false (i int, j break_int4_196_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_int4_196_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_variable_false_true; create function breakin_char_variable_false_true (cstring) returns break_char_variable_false_true as 'textin' language internal strict immutable; create function breakout_char_variable_false_true (break_char_variable_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_variable_false_true (input = breakin_char_variable_false_true, output = breakout_char_variable_false_true, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_variable_false_true (i int, j break_char_variable_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_variable_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_variable_false_false; create function breakin_char_variable_false_false (cstring) returns break_char_variable_false_false as 'textin' language internal strict immutable; create function breakout_char_variable_false_false (break_char_variable_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_variable_false_false (input = breakin_char_variable_false_false, output = breakout_char_variable_false_false, internallength = variable, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_variable_false_false (i int, j break_char_variable_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_variable_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_1_true_true; create function breakin_char_1_true_true (cstring) returns break_char_1_true_true as 'textin' language internal strict immutable; create function breakout_char_1_true_true (break_char_1_true_true) returns cstring as 'textout' language internal strict immutable; create type break_char_1_true_true (input = breakin_char_1_true_true, output = breakout_char_1_true_true, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_char_1_true_true (i int, j break_char_1_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_1_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_1_true_false; create function breakin_char_1_true_false (cstring) returns break_char_1_true_false as 'textin' language internal strict immutable; create function breakout_char_1_true_false (break_char_1_true_false) returns cstring as 'textout' language internal strict immutable; create type break_char_1_true_false (input = breakin_char_1_true_false, output = breakout_char_1_true_false, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_char_1_true_false (i int, j break_char_1_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_1_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_1_false_true; create function breakin_char_1_false_true (cstring) returns break_char_1_false_true as 'textin' language internal strict immutable; create function breakout_char_1_false_true (break_char_1_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_1_false_true (input = breakin_char_1_false_true, output = breakout_char_1_false_true, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_char_1_false_true (i int, j break_char_1_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_1_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_1_false_false; create function breakin_char_1_false_false (cstring) returns break_char_1_false_false as 'textin' language internal strict immutable; create function breakout_char_1_false_false (break_char_1_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_1_false_false (input = breakin_char_1_false_false, output = breakout_char_1_false_false, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_char_1_false_false (i int, j break_char_1_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_1_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_3_false_true; create function breakin_char_3_false_true (cstring) returns break_char_3_false_true as 'textin' language internal strict immutable; create function breakout_char_3_false_true (break_char_3_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_3_false_true (input = breakin_char_3_false_true, output = breakout_char_3_false_true, internallength = 3, passedbyvalue = false, alignment = char); create table alter_distpol_g_char_3_false_true (i int, j break_char_3_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_3_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_3_false_false; create function breakin_char_3_false_false (cstring) returns break_char_3_false_false as 'textin' language internal strict immutable; create function breakout_char_3_false_false (break_char_3_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_3_false_false (input = breakin_char_3_false_false, output = breakout_char_3_false_false, internallength = 3, passedbyvalue = false, alignment = char); create table alter_distpol_g_char_3_false_false (i int, j break_char_3_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_3_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_4_true_true; create function breakin_char_4_true_true (cstring) returns break_char_4_true_true as 'textin' language internal strict immutable; create function breakout_char_4_true_true (break_char_4_true_true) returns cstring as 'textout' language internal strict immutable; create type break_char_4_true_true (input = breakin_char_4_true_true, output = breakout_char_4_true_true, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_char_4_true_true (i int, j break_char_4_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_4_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_4_true_false; create function breakin_char_4_true_false (cstring) returns break_char_4_true_false as 'textin' language internal strict immutable; create function breakout_char_4_true_false (break_char_4_true_false) returns cstring as 'textout' language internal strict immutable; create type break_char_4_true_false (input = breakin_char_4_true_false, output = breakout_char_4_true_false, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_char_4_true_false (i int, j break_char_4_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_4_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_4_false_true; create function breakin_char_4_false_true (cstring) returns break_char_4_false_true as 'textin' language internal strict immutable; create function breakout_char_4_false_true (break_char_4_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_4_false_true (input = breakin_char_4_false_true, output = breakout_char_4_false_true, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_4_false_true (i int, j break_char_4_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_4_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_4_false_false; create function breakin_char_4_false_false (cstring) returns break_char_4_false_false as 'textin' language internal strict immutable; create function breakout_char_4_false_false (break_char_4_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_4_false_false (input = breakin_char_4_false_false, output = breakout_char_4_false_false, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_4_false_false (i int, j break_char_4_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_4_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_11_false_true; create function breakin_char_11_false_true (cstring) returns break_char_11_false_true as 'textin' language internal strict immutable; create function breakout_char_11_false_true (break_char_11_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_11_false_true (input = breakin_char_11_false_true, output = breakout_char_11_false_true, internallength = 11, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_11_false_true (i int, j break_char_11_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_11_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_11_false_false; create function breakin_char_11_false_false (cstring) returns break_char_11_false_false as 'textin' language internal strict immutable; create function breakout_char_11_false_false (break_char_11_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_11_false_false (input = breakin_char_11_false_false, output = breakout_char_11_false_false, internallength = 11, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_11_false_false (i int, j break_char_11_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_11_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_17_false_true; create function breakin_char_17_false_true (cstring) returns break_char_17_false_true as 'textin' language internal strict immutable; create function breakout_char_17_false_true (break_char_17_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_17_false_true (input = breakin_char_17_false_true, output = breakout_char_17_false_true, internallength = 17, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_17_false_true (i int, j break_char_17_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_17_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_17_false_false; create function breakin_char_17_false_false (cstring) returns break_char_17_false_false as 'textin' language internal strict immutable; create function breakout_char_17_false_false (break_char_17_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_17_false_false (input = breakin_char_17_false_false, output = breakout_char_17_false_false, internallength = 17, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_17_false_false (i int, j break_char_17_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_17_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_19_false_true; create function breakin_char_19_false_true (cstring) returns break_char_19_false_true as 'textin' language internal strict immutable; create function breakout_char_19_false_true (break_char_19_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_19_false_true (input = breakin_char_19_false_true, output = breakout_char_19_false_true, internallength = 19, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_19_false_true (i int, j break_char_19_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_19_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_19_false_false; create function breakin_char_19_false_false (cstring) returns break_char_19_false_false as 'textin' language internal strict immutable; create function breakout_char_19_false_false (break_char_19_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_19_false_false (input = breakin_char_19_false_false, output = breakout_char_19_false_false, internallength = 19, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_19_false_false (i int, j break_char_19_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_19_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_23_false_true; create function breakin_char_23_false_true (cstring) returns break_char_23_false_true as 'textin' language internal strict immutable; create function breakout_char_23_false_true (break_char_23_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_23_false_true (input = breakin_char_23_false_true, output = breakout_char_23_false_true, internallength = 23, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_23_false_true (i int, j break_char_23_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_23_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_23_false_false; create function breakin_char_23_false_false (cstring) returns break_char_23_false_false as 'textin' language internal strict immutable; create function breakout_char_23_false_false (break_char_23_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_23_false_false (input = breakin_char_23_false_false, output = breakout_char_23_false_false, internallength = 23, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_23_false_false (i int, j break_char_23_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_23_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_32_false_true; create function breakin_char_32_false_true (cstring) returns break_char_32_false_true as 'textin' language internal strict immutable; create function breakout_char_32_false_true (break_char_32_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_32_false_true (input = breakin_char_32_false_true, output = breakout_char_32_false_true, internallength = 32, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_32_false_true (i int, j break_char_32_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_32_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_32_false_false; create function breakin_char_32_false_false (cstring) returns break_char_32_false_false as 'textin' language internal strict immutable; create function breakout_char_32_false_false (break_char_32_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_32_false_false (input = breakin_char_32_false_false, output = breakout_char_32_false_false, internallength = 32, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_32_false_false (i int, j break_char_32_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_32_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_char_196_false_true; create function breakin_char_196_false_true (cstring) returns break_char_196_false_true as 'textin' language internal strict immutable; create function breakout_char_196_false_true (break_char_196_false_true) returns cstring as 'textout' language internal strict immutable; create type break_char_196_false_true (input = breakin_char_196_false_true, output = breakout_char_196_false_true, internallength = 196, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_196_false_true (i int, j break_char_196_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_char_196_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_char_196_false_false; create function breakin_char_196_false_false (cstring) returns break_char_196_false_false as 'textin' language internal strict immutable; create function breakout_char_196_false_false (break_char_196_false_false) returns cstring as 'textout' language internal strict immutable; create type break_char_196_false_false (input = breakin_char_196_false_false, output = breakout_char_196_false_false, internallength = 196, passedbyvalue = false, alignment = int4); create table alter_distpol_g_char_196_false_false (i int, j break_char_196_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_char_196_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_variable_false_true; create function breakin_double_variable_false_true (cstring) returns break_double_variable_false_true as 'textin' language internal strict immutable; create function breakout_double_variable_false_true (break_double_variable_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_variable_false_true (input = breakin_double_variable_false_true, output = breakout_double_variable_false_true, internallength = variable, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_variable_false_true (i int, j break_double_variable_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_variable_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_variable_false_false; create function breakin_double_variable_false_false (cstring) returns break_double_variable_false_false as 'textin' language internal strict immutable; create function breakout_double_variable_false_false (break_double_variable_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_variable_false_false (input = breakin_double_variable_false_false, output = breakout_double_variable_false_false, internallength = variable, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_variable_false_false (i int, j break_double_variable_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_variable_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_1_true_true; create function breakin_double_1_true_true (cstring) returns break_double_1_true_true as 'textin' language internal strict immutable; create function breakout_double_1_true_true (break_double_1_true_true) returns cstring as 'textout' language internal strict immutable; create type break_double_1_true_true (input = breakin_double_1_true_true, output = breakout_double_1_true_true, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_double_1_true_true (i int, j break_double_1_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_1_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_1_true_false; create function breakin_double_1_true_false (cstring) returns break_double_1_true_false as 'textin' language internal strict immutable; create function breakout_double_1_true_false (break_double_1_true_false) returns cstring as 'textout' language internal strict immutable; create type break_double_1_true_false (input = breakin_double_1_true_false, output = breakout_double_1_true_false, internallength = 1, passedbyvalue = true, alignment = char); create table alter_distpol_g_double_1_true_false (i int, j break_double_1_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_1_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_1_false_true; create function breakin_double_1_false_true (cstring) returns break_double_1_false_true as 'textin' language internal strict immutable; create function breakout_double_1_false_true (break_double_1_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_1_false_true (input = breakin_double_1_false_true, output = breakout_double_1_false_true, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_double_1_false_true (i int, j break_double_1_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_1_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_1_false_false; create function breakin_double_1_false_false (cstring) returns break_double_1_false_false as 'textin' language internal strict immutable; create function breakout_double_1_false_false (break_double_1_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_1_false_false (input = breakin_double_1_false_false, output = breakout_double_1_false_false, internallength = 1, passedbyvalue = false, alignment = char); create table alter_distpol_g_double_1_false_false (i int, j break_double_1_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_1_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_3_false_true; create function breakin_double_3_false_true (cstring) returns break_double_3_false_true as 'textin' language internal strict immutable; create function breakout_double_3_false_true (break_double_3_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_3_false_true (input = breakin_double_3_false_true, output = breakout_double_3_false_true, internallength = 3, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_3_false_true (i int, j break_double_3_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_3_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_3_false_false; create function breakin_double_3_false_false (cstring) returns break_double_3_false_false as 'textin' language internal strict immutable; create function breakout_double_3_false_false (break_double_3_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_3_false_false (input = breakin_double_3_false_false, output = breakout_double_3_false_false, internallength = 3, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_3_false_false (i int, j break_double_3_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_3_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_4_true_true; create function breakin_double_4_true_true (cstring) returns break_double_4_true_true as 'textin' language internal strict immutable; create function breakout_double_4_true_true (break_double_4_true_true) returns cstring as 'textout' language internal strict immutable; create type break_double_4_true_true (input = breakin_double_4_true_true, output = breakout_double_4_true_true, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_double_4_true_true (i int, j break_double_4_true_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_4_true_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_4_true_false; create function breakin_double_4_true_false (cstring) returns break_double_4_true_false as 'textin' language internal strict immutable; create function breakout_double_4_true_false (break_double_4_true_false) returns cstring as 'textout' language internal strict immutable; create type break_double_4_true_false (input = breakin_double_4_true_false, output = breakout_double_4_true_false, internallength = 4, passedbyvalue = true, alignment = int4); create table alter_distpol_g_double_4_true_false (i int, j break_double_4_true_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_4_true_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_4_false_true; create function breakin_double_4_false_true (cstring) returns break_double_4_false_true as 'textin' language internal strict immutable; create function breakout_double_4_false_true (break_double_4_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_4_false_true (input = breakin_double_4_false_true, output = breakout_double_4_false_true, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_double_4_false_true (i int, j break_double_4_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_4_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_4_false_false; create function breakin_double_4_false_false (cstring) returns break_double_4_false_false as 'textin' language internal strict immutable; create function breakout_double_4_false_false (break_double_4_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_4_false_false (input = breakin_double_4_false_false, output = breakout_double_4_false_false, internallength = 4, passedbyvalue = false, alignment = int4); create table alter_distpol_g_double_4_false_false (i int, j break_double_4_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_4_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_11_false_true; create function breakin_double_11_false_true (cstring) returns break_double_11_false_true as 'textin' language internal strict immutable; create function breakout_double_11_false_true (break_double_11_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_11_false_true (input = breakin_double_11_false_true, output = breakout_double_11_false_true, internallength = 11, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_11_false_true (i int, j break_double_11_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_11_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_11_false_false; create function breakin_double_11_false_false (cstring) returns break_double_11_false_false as 'textin' language internal strict immutable; create function breakout_double_11_false_false (break_double_11_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_11_false_false (input = breakin_double_11_false_false, output = breakout_double_11_false_false, internallength = 11, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_11_false_false (i int, j break_double_11_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_11_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_17_false_true; create function breakin_double_17_false_true (cstring) returns break_double_17_false_true as 'textin' language internal strict immutable; create function breakout_double_17_false_true (break_double_17_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_17_false_true (input = breakin_double_17_false_true, output = breakout_double_17_false_true, internallength = 17, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_17_false_true (i int, j break_double_17_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_17_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_17_false_false; create function breakin_double_17_false_false (cstring) returns break_double_17_false_false as 'textin' language internal strict immutable; create function breakout_double_17_false_false (break_double_17_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_17_false_false (input = breakin_double_17_false_false, output = breakout_double_17_false_false, internallength = 17, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_17_false_false (i int, j break_double_17_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_17_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_19_false_true; create function breakin_double_19_false_true (cstring) returns break_double_19_false_true as 'textin' language internal strict immutable; create function breakout_double_19_false_true (break_double_19_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_19_false_true (input = breakin_double_19_false_true, output = breakout_double_19_false_true, internallength = 19, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_19_false_true (i int, j break_double_19_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_19_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_19_false_false; create function breakin_double_19_false_false (cstring) returns break_double_19_false_false as 'textin' language internal strict immutable; create function breakout_double_19_false_false (break_double_19_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_19_false_false (input = breakin_double_19_false_false, output = breakout_double_19_false_false, internallength = 19, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_19_false_false (i int, j break_double_19_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_19_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_23_false_true; create function breakin_double_23_false_true (cstring) returns break_double_23_false_true as 'textin' language internal strict immutable; create function breakout_double_23_false_true (break_double_23_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_23_false_true (input = breakin_double_23_false_true, output = breakout_double_23_false_true, internallength = 23, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_23_false_true (i int, j break_double_23_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_23_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_23_false_false; create function breakin_double_23_false_false (cstring) returns break_double_23_false_false as 'textin' language internal strict immutable; create function breakout_double_23_false_false (break_double_23_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_23_false_false (input = breakin_double_23_false_false, output = breakout_double_23_false_false, internallength = 23, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_23_false_false (i int, j break_double_23_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_23_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_32_false_true; create function breakin_double_32_false_true (cstring) returns break_double_32_false_true as 'textin' language internal strict immutable; create function breakout_double_32_false_true (break_double_32_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_32_false_true (input = breakin_double_32_false_true, output = breakout_double_32_false_true, internallength = 32, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_32_false_true (i int, j break_double_32_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_32_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_32_false_false; create function breakin_double_32_false_false (cstring) returns break_double_32_false_false as 'textin' language internal strict immutable; create function breakout_double_32_false_false (break_double_32_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_32_false_false (input = breakin_double_32_false_false, output = breakout_double_32_false_false, internallength = 32, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_32_false_false (i int, j break_double_32_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_32_false_false (i, k) select i, i from generate_series(1, 10) i; create type break_double_196_false_true; create function breakin_double_196_false_true (cstring) returns break_double_196_false_true as 'textin' language internal strict immutable; create function breakout_double_196_false_true (break_double_196_false_true) returns cstring as 'textout' language internal strict immutable; create type break_double_196_false_true (input = breakin_double_196_false_true, output = breakout_double_196_false_true, internallength = 196, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_196_false_true (i int, j break_double_196_false_true, k text) with (appendonly = true) distributed by (i); insert into alter_distpol_g_double_196_false_true (i, k) select i, i from generate_series(1, 10) i; create type break_double_196_false_false; create function breakin_double_196_false_false (cstring) returns break_double_196_false_false as 'textin' language internal strict immutable; create function breakout_double_196_false_false (break_double_196_false_false) returns cstring as 'textout' language internal strict immutable; create type break_double_196_false_false (input = breakin_double_196_false_false, output = breakout_double_196_false_false, internallength = 196, passedbyvalue = false, alignment = double); create table alter_distpol_g_double_196_false_false (i int, j break_double_196_false_false, k text) with (appendonly = false) distributed by (i); insert into alter_distpol_g_double_196_false_false (i, k) select i, i from generate_series(1, 10) i; COMMIT; alter table alter_distpol_g_int2_variable_false_true drop column j; select * from alter_distpol_g_int2_variable_false_true order by 1; alter table alter_distpol_g_int2_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_variable_false_true order by 1; drop type break_int2_variable_false_true cascade; alter table alter_distpol_g_int2_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_variable_false_true order by 1; alter table alter_distpol_g_int2_variable_false_false drop column j; select * from alter_distpol_g_int2_variable_false_false order by 1; alter table alter_distpol_g_int2_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_variable_false_false order by 1; drop type break_int2_variable_false_false cascade; alter table alter_distpol_g_int2_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_variable_false_false order by 1; alter table alter_distpol_g_int2_1_true_true drop column j; select * from alter_distpol_g_int2_1_true_true order by 1; alter table alter_distpol_g_int2_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_true_true order by 1; drop type break_int2_1_true_true cascade; alter table alter_distpol_g_int2_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_true_true order by 1; alter table alter_distpol_g_int2_1_true_false drop column j; select * from alter_distpol_g_int2_1_true_false order by 1; alter table alter_distpol_g_int2_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_true_false order by 1; drop type break_int2_1_true_false cascade; alter table alter_distpol_g_int2_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_true_false order by 1; alter table alter_distpol_g_int2_1_false_true drop column j; select * from alter_distpol_g_int2_1_false_true order by 1; alter table alter_distpol_g_int2_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_false_true order by 1; drop type break_int2_1_false_true cascade; alter table alter_distpol_g_int2_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_false_true order by 1; alter table alter_distpol_g_int2_1_false_false drop column j; select * from alter_distpol_g_int2_1_false_false order by 1; alter table alter_distpol_g_int2_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_false_false order by 1; drop type break_int2_1_false_false cascade; alter table alter_distpol_g_int2_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_1_false_false order by 1; alter table alter_distpol_g_int2_3_false_true drop column j; select * from alter_distpol_g_int2_3_false_true order by 1; alter table alter_distpol_g_int2_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_3_false_true order by 1; drop type break_int2_3_false_true cascade; alter table alter_distpol_g_int2_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_3_false_true order by 1; alter table alter_distpol_g_int2_3_false_false drop column j; select * from alter_distpol_g_int2_3_false_false order by 1; alter table alter_distpol_g_int2_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_3_false_false order by 1; drop type break_int2_3_false_false cascade; alter table alter_distpol_g_int2_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_3_false_false order by 1; alter table alter_distpol_g_int2_4_true_true drop column j; select * from alter_distpol_g_int2_4_true_true order by 1; alter table alter_distpol_g_int2_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_true_true order by 1; drop type break_int2_4_true_true cascade; alter table alter_distpol_g_int2_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_true_true order by 1; alter table alter_distpol_g_int2_4_true_false drop column j; select * from alter_distpol_g_int2_4_true_false order by 1; alter table alter_distpol_g_int2_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_true_false order by 1; drop type break_int2_4_true_false cascade; alter table alter_distpol_g_int2_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_true_false order by 1; alter table alter_distpol_g_int2_4_false_true drop column j; select * from alter_distpol_g_int2_4_false_true order by 1; alter table alter_distpol_g_int2_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_false_true order by 1; drop type break_int2_4_false_true cascade; alter table alter_distpol_g_int2_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_false_true order by 1; alter table alter_distpol_g_int2_4_false_false drop column j; select * from alter_distpol_g_int2_4_false_false order by 1; alter table alter_distpol_g_int2_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_false_false order by 1; drop type break_int2_4_false_false cascade; alter table alter_distpol_g_int2_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_4_false_false order by 1; alter table alter_distpol_g_int2_11_false_true drop column j; select * from alter_distpol_g_int2_11_false_true order by 1; alter table alter_distpol_g_int2_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_11_false_true order by 1; drop type break_int2_11_false_true cascade; alter table alter_distpol_g_int2_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_11_false_true order by 1; alter table alter_distpol_g_int2_11_false_false drop column j; select * from alter_distpol_g_int2_11_false_false order by 1; alter table alter_distpol_g_int2_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_11_false_false order by 1; drop type break_int2_11_false_false cascade; alter table alter_distpol_g_int2_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_11_false_false order by 1; alter table alter_distpol_g_int2_17_false_true drop column j; select * from alter_distpol_g_int2_17_false_true order by 1; alter table alter_distpol_g_int2_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_17_false_true order by 1; drop type break_int2_17_false_true cascade; alter table alter_distpol_g_int2_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_17_false_true order by 1; alter table alter_distpol_g_int2_17_false_false drop column j; select * from alter_distpol_g_int2_17_false_false order by 1; alter table alter_distpol_g_int2_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_17_false_false order by 1; drop type break_int2_17_false_false cascade; alter table alter_distpol_g_int2_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_17_false_false order by 1; alter table alter_distpol_g_int2_19_false_true drop column j; select * from alter_distpol_g_int2_19_false_true order by 1; alter table alter_distpol_g_int2_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_19_false_true order by 1; drop type break_int2_19_false_true cascade; alter table alter_distpol_g_int2_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_19_false_true order by 1; alter table alter_distpol_g_int2_19_false_false drop column j; select * from alter_distpol_g_int2_19_false_false order by 1; alter table alter_distpol_g_int2_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_19_false_false order by 1; drop type break_int2_19_false_false cascade; alter table alter_distpol_g_int2_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_19_false_false order by 1; alter table alter_distpol_g_int2_23_false_true drop column j; select * from alter_distpol_g_int2_23_false_true order by 1; alter table alter_distpol_g_int2_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_23_false_true order by 1; drop type break_int2_23_false_true cascade; alter table alter_distpol_g_int2_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_23_false_true order by 1; alter table alter_distpol_g_int2_23_false_false drop column j; select * from alter_distpol_g_int2_23_false_false order by 1; alter table alter_distpol_g_int2_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_23_false_false order by 1; drop type break_int2_23_false_false cascade; alter table alter_distpol_g_int2_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_23_false_false order by 1; alter table alter_distpol_g_int2_32_false_true drop column j; select * from alter_distpol_g_int2_32_false_true order by 1; alter table alter_distpol_g_int2_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_32_false_true order by 1; drop type break_int2_32_false_true cascade; alter table alter_distpol_g_int2_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_32_false_true order by 1; alter table alter_distpol_g_int2_32_false_false drop column j; select * from alter_distpol_g_int2_32_false_false order by 1; alter table alter_distpol_g_int2_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_32_false_false order by 1; drop type break_int2_32_false_false cascade; alter table alter_distpol_g_int2_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_32_false_false order by 1; alter table alter_distpol_g_int2_196_false_true drop column j; select * from alter_distpol_g_int2_196_false_true order by 1; alter table alter_distpol_g_int2_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_196_false_true order by 1; drop type break_int2_196_false_true cascade; alter table alter_distpol_g_int2_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_196_false_true order by 1; alter table alter_distpol_g_int2_196_false_false drop column j; select * from alter_distpol_g_int2_196_false_false order by 1; alter table alter_distpol_g_int2_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_196_false_false order by 1; drop type break_int2_196_false_false cascade; alter table alter_distpol_g_int2_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int2_196_false_false order by 1; alter table alter_distpol_g_int4_variable_false_true drop column j; select * from alter_distpol_g_int4_variable_false_true order by 1; alter table alter_distpol_g_int4_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_variable_false_true order by 1; drop type break_int4_variable_false_true cascade; alter table alter_distpol_g_int4_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_variable_false_true order by 1; alter table alter_distpol_g_int4_variable_false_false drop column j; select * from alter_distpol_g_int4_variable_false_false order by 1; alter table alter_distpol_g_int4_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_variable_false_false order by 1; drop type break_int4_variable_false_false cascade; alter table alter_distpol_g_int4_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_variable_false_false order by 1; alter table alter_distpol_g_int4_1_true_true drop column j; select * from alter_distpol_g_int4_1_true_true order by 1; alter table alter_distpol_g_int4_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_true_true order by 1; drop type break_int4_1_true_true cascade; alter table alter_distpol_g_int4_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_true_true order by 1; alter table alter_distpol_g_int4_1_true_false drop column j; select * from alter_distpol_g_int4_1_true_false order by 1; alter table alter_distpol_g_int4_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_true_false order by 1; drop type break_int4_1_true_false cascade; alter table alter_distpol_g_int4_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_true_false order by 1; alter table alter_distpol_g_int4_1_false_true drop column j; select * from alter_distpol_g_int4_1_false_true order by 1; alter table alter_distpol_g_int4_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_false_true order by 1; drop type break_int4_1_false_true cascade; alter table alter_distpol_g_int4_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_false_true order by 1; alter table alter_distpol_g_int4_1_false_false drop column j; select * from alter_distpol_g_int4_1_false_false order by 1; alter table alter_distpol_g_int4_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_false_false order by 1; drop type break_int4_1_false_false cascade; alter table alter_distpol_g_int4_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_1_false_false order by 1; alter table alter_distpol_g_int4_3_false_true drop column j; select * from alter_distpol_g_int4_3_false_true order by 1; alter table alter_distpol_g_int4_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_3_false_true order by 1; drop type break_int4_3_false_true cascade; alter table alter_distpol_g_int4_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_3_false_true order by 1; alter table alter_distpol_g_int4_3_false_false drop column j; select * from alter_distpol_g_int4_3_false_false order by 1; alter table alter_distpol_g_int4_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_3_false_false order by 1; drop type break_int4_3_false_false cascade; alter table alter_distpol_g_int4_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_3_false_false order by 1; alter table alter_distpol_g_int4_4_true_true drop column j; select * from alter_distpol_g_int4_4_true_true order by 1; alter table alter_distpol_g_int4_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_true_true order by 1; drop type break_int4_4_true_true cascade; alter table alter_distpol_g_int4_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_true_true order by 1; alter table alter_distpol_g_int4_4_true_false drop column j; select * from alter_distpol_g_int4_4_true_false order by 1; alter table alter_distpol_g_int4_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_true_false order by 1; drop type break_int4_4_true_false cascade; alter table alter_distpol_g_int4_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_true_false order by 1; alter table alter_distpol_g_int4_4_false_true drop column j; select * from alter_distpol_g_int4_4_false_true order by 1; alter table alter_distpol_g_int4_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_false_true order by 1; drop type break_int4_4_false_true cascade; alter table alter_distpol_g_int4_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_false_true order by 1; alter table alter_distpol_g_int4_4_false_false drop column j; select * from alter_distpol_g_int4_4_false_false order by 1; alter table alter_distpol_g_int4_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_false_false order by 1; drop type break_int4_4_false_false cascade; alter table alter_distpol_g_int4_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_4_false_false order by 1; alter table alter_distpol_g_int4_11_false_true drop column j; select * from alter_distpol_g_int4_11_false_true order by 1; alter table alter_distpol_g_int4_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_11_false_true order by 1; drop type break_int4_11_false_true cascade; alter table alter_distpol_g_int4_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_11_false_true order by 1; alter table alter_distpol_g_int4_11_false_false drop column j; select * from alter_distpol_g_int4_11_false_false order by 1; alter table alter_distpol_g_int4_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_11_false_false order by 1; drop type break_int4_11_false_false cascade; alter table alter_distpol_g_int4_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_11_false_false order by 1; alter table alter_distpol_g_int4_17_false_true drop column j; select * from alter_distpol_g_int4_17_false_true order by 1; alter table alter_distpol_g_int4_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_17_false_true order by 1; drop type break_int4_17_false_true cascade; alter table alter_distpol_g_int4_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_17_false_true order by 1; alter table alter_distpol_g_int4_17_false_false drop column j; select * from alter_distpol_g_int4_17_false_false order by 1; alter table alter_distpol_g_int4_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_17_false_false order by 1; drop type break_int4_17_false_false cascade; alter table alter_distpol_g_int4_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_17_false_false order by 1; alter table alter_distpol_g_int4_19_false_true drop column j; select * from alter_distpol_g_int4_19_false_true order by 1; alter table alter_distpol_g_int4_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_19_false_true order by 1; drop type break_int4_19_false_true cascade; alter table alter_distpol_g_int4_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_19_false_true order by 1; alter table alter_distpol_g_int4_19_false_false drop column j; select * from alter_distpol_g_int4_19_false_false order by 1; alter table alter_distpol_g_int4_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_19_false_false order by 1; drop type break_int4_19_false_false cascade; alter table alter_distpol_g_int4_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_19_false_false order by 1; alter table alter_distpol_g_int4_23_false_true drop column j; select * from alter_distpol_g_int4_23_false_true order by 1; alter table alter_distpol_g_int4_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_23_false_true order by 1; drop type break_int4_23_false_true cascade; alter table alter_distpol_g_int4_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_23_false_true order by 1; alter table alter_distpol_g_int4_23_false_false drop column j; select * from alter_distpol_g_int4_23_false_false order by 1; alter table alter_distpol_g_int4_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_23_false_false order by 1; drop type break_int4_23_false_false cascade; alter table alter_distpol_g_int4_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_23_false_false order by 1; alter table alter_distpol_g_int4_32_false_true drop column j; select * from alter_distpol_g_int4_32_false_true order by 1; alter table alter_distpol_g_int4_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_32_false_true order by 1; drop type break_int4_32_false_true cascade; alter table alter_distpol_g_int4_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_32_false_true order by 1; alter table alter_distpol_g_int4_32_false_false drop column j; select * from alter_distpol_g_int4_32_false_false order by 1; alter table alter_distpol_g_int4_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_32_false_false order by 1; drop type break_int4_32_false_false cascade; alter table alter_distpol_g_int4_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_32_false_false order by 1; alter table alter_distpol_g_int4_196_false_true drop column j; select * from alter_distpol_g_int4_196_false_true order by 1; alter table alter_distpol_g_int4_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_196_false_true order by 1; drop type break_int4_196_false_true cascade; alter table alter_distpol_g_int4_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_196_false_true order by 1; alter table alter_distpol_g_int4_196_false_false drop column j; select * from alter_distpol_g_int4_196_false_false order by 1; alter table alter_distpol_g_int4_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_196_false_false order by 1; drop type break_int4_196_false_false cascade; alter table alter_distpol_g_int4_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_int4_196_false_false order by 1; alter table alter_distpol_g_char_variable_false_true drop column j; select * from alter_distpol_g_char_variable_false_true order by 1; alter table alter_distpol_g_char_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_variable_false_true order by 1; drop type break_char_variable_false_true cascade; alter table alter_distpol_g_char_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_variable_false_true order by 1; alter table alter_distpol_g_char_variable_false_false drop column j; select * from alter_distpol_g_char_variable_false_false order by 1; alter table alter_distpol_g_char_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_variable_false_false order by 1; drop type break_char_variable_false_false cascade; alter table alter_distpol_g_char_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_variable_false_false order by 1; alter table alter_distpol_g_char_1_true_true drop column j; select * from alter_distpol_g_char_1_true_true order by 1; alter table alter_distpol_g_char_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_true_true order by 1; drop type break_char_1_true_true cascade; alter table alter_distpol_g_char_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_true_true order by 1; alter table alter_distpol_g_char_1_true_false drop column j; select * from alter_distpol_g_char_1_true_false order by 1; alter table alter_distpol_g_char_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_true_false order by 1; drop type break_char_1_true_false cascade; alter table alter_distpol_g_char_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_true_false order by 1; alter table alter_distpol_g_char_1_false_true drop column j; select * from alter_distpol_g_char_1_false_true order by 1; alter table alter_distpol_g_char_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_false_true order by 1; drop type break_char_1_false_true cascade; alter table alter_distpol_g_char_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_false_true order by 1; alter table alter_distpol_g_char_1_false_false drop column j; select * from alter_distpol_g_char_1_false_false order by 1; alter table alter_distpol_g_char_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_false_false order by 1; drop type break_char_1_false_false cascade; alter table alter_distpol_g_char_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_1_false_false order by 1; alter table alter_distpol_g_char_3_false_true drop column j; select * from alter_distpol_g_char_3_false_true order by 1; alter table alter_distpol_g_char_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_3_false_true order by 1; drop type break_char_3_false_true cascade; alter table alter_distpol_g_char_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_3_false_true order by 1; alter table alter_distpol_g_char_3_false_false drop column j; select * from alter_distpol_g_char_3_false_false order by 1; alter table alter_distpol_g_char_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_3_false_false order by 1; drop type break_char_3_false_false cascade; alter table alter_distpol_g_char_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_3_false_false order by 1; alter table alter_distpol_g_char_4_true_true drop column j; select * from alter_distpol_g_char_4_true_true order by 1; alter table alter_distpol_g_char_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_true_true order by 1; drop type break_char_4_true_true cascade; alter table alter_distpol_g_char_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_true_true order by 1; alter table alter_distpol_g_char_4_true_false drop column j; select * from alter_distpol_g_char_4_true_false order by 1; alter table alter_distpol_g_char_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_true_false order by 1; drop type break_char_4_true_false cascade; alter table alter_distpol_g_char_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_true_false order by 1; alter table alter_distpol_g_char_4_false_true drop column j; select * from alter_distpol_g_char_4_false_true order by 1; alter table alter_distpol_g_char_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_false_true order by 1; drop type break_char_4_false_true cascade; alter table alter_distpol_g_char_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_false_true order by 1; alter table alter_distpol_g_char_4_false_false drop column j; select * from alter_distpol_g_char_4_false_false order by 1; alter table alter_distpol_g_char_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_false_false order by 1; drop type break_char_4_false_false cascade; alter table alter_distpol_g_char_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_4_false_false order by 1; alter table alter_distpol_g_char_11_false_true drop column j; select * from alter_distpol_g_char_11_false_true order by 1; alter table alter_distpol_g_char_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_11_false_true order by 1; drop type break_char_11_false_true cascade; alter table alter_distpol_g_char_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_11_false_true order by 1; alter table alter_distpol_g_char_11_false_false drop column j; select * from alter_distpol_g_char_11_false_false order by 1; alter table alter_distpol_g_char_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_11_false_false order by 1; drop type break_char_11_false_false cascade; alter table alter_distpol_g_char_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_11_false_false order by 1; alter table alter_distpol_g_char_17_false_true drop column j; select * from alter_distpol_g_char_17_false_true order by 1; alter table alter_distpol_g_char_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_17_false_true order by 1; drop type break_char_17_false_true cascade; alter table alter_distpol_g_char_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_17_false_true order by 1; alter table alter_distpol_g_char_17_false_false drop column j; select * from alter_distpol_g_char_17_false_false order by 1; alter table alter_distpol_g_char_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_17_false_false order by 1; drop type break_char_17_false_false cascade; alter table alter_distpol_g_char_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_17_false_false order by 1; alter table alter_distpol_g_char_19_false_true drop column j; select * from alter_distpol_g_char_19_false_true order by 1; alter table alter_distpol_g_char_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_19_false_true order by 1; drop type break_char_19_false_true cascade; alter table alter_distpol_g_char_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_19_false_true order by 1; alter table alter_distpol_g_char_19_false_false drop column j; select * from alter_distpol_g_char_19_false_false order by 1; alter table alter_distpol_g_char_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_19_false_false order by 1; drop type break_char_19_false_false cascade; alter table alter_distpol_g_char_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_19_false_false order by 1; alter table alter_distpol_g_char_23_false_true drop column j; select * from alter_distpol_g_char_23_false_true order by 1; alter table alter_distpol_g_char_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_23_false_true order by 1; drop type break_char_23_false_true cascade; alter table alter_distpol_g_char_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_23_false_true order by 1; alter table alter_distpol_g_char_23_false_false drop column j; select * from alter_distpol_g_char_23_false_false order by 1; alter table alter_distpol_g_char_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_23_false_false order by 1; drop type break_char_23_false_false cascade; alter table alter_distpol_g_char_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_23_false_false order by 1; alter table alter_distpol_g_char_32_false_true drop column j; select * from alter_distpol_g_char_32_false_true order by 1; alter table alter_distpol_g_char_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_32_false_true order by 1; drop type break_char_32_false_true cascade; alter table alter_distpol_g_char_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_32_false_true order by 1; alter table alter_distpol_g_char_32_false_false drop column j; select * from alter_distpol_g_char_32_false_false order by 1; alter table alter_distpol_g_char_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_32_false_false order by 1; drop type break_char_32_false_false cascade; alter table alter_distpol_g_char_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_32_false_false order by 1; alter table alter_distpol_g_char_196_false_true drop column j; select * from alter_distpol_g_char_196_false_true order by 1; alter table alter_distpol_g_char_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_196_false_true order by 1; drop type break_char_196_false_true cascade; alter table alter_distpol_g_char_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_196_false_true order by 1; alter table alter_distpol_g_char_196_false_false drop column j; select * from alter_distpol_g_char_196_false_false order by 1; alter table alter_distpol_g_char_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_196_false_false order by 1; drop type break_char_196_false_false cascade; alter table alter_distpol_g_char_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_char_196_false_false order by 1; alter table alter_distpol_g_double_variable_false_true drop column j; select * from alter_distpol_g_double_variable_false_true order by 1; alter table alter_distpol_g_double_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_variable_false_true order by 1; drop type break_double_variable_false_true cascade; alter table alter_distpol_g_double_variable_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_variable_false_true order by 1; alter table alter_distpol_g_double_variable_false_false drop column j; select * from alter_distpol_g_double_variable_false_false order by 1; alter table alter_distpol_g_double_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_variable_false_false order by 1; drop type break_double_variable_false_false cascade; alter table alter_distpol_g_double_variable_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_variable_false_false order by 1; alter table alter_distpol_g_double_1_true_true drop column j; select * from alter_distpol_g_double_1_true_true order by 1; alter table alter_distpol_g_double_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_true_true order by 1; drop type break_double_1_true_true cascade; alter table alter_distpol_g_double_1_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_true_true order by 1; alter table alter_distpol_g_double_1_true_false drop column j; select * from alter_distpol_g_double_1_true_false order by 1; alter table alter_distpol_g_double_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_true_false order by 1; drop type break_double_1_true_false cascade; alter table alter_distpol_g_double_1_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_true_false order by 1; alter table alter_distpol_g_double_1_false_true drop column j; select * from alter_distpol_g_double_1_false_true order by 1; alter table alter_distpol_g_double_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_false_true order by 1; drop type break_double_1_false_true cascade; alter table alter_distpol_g_double_1_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_false_true order by 1; alter table alter_distpol_g_double_1_false_false drop column j; select * from alter_distpol_g_double_1_false_false order by 1; alter table alter_distpol_g_double_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_false_false order by 1; drop type break_double_1_false_false cascade; alter table alter_distpol_g_double_1_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_1_false_false order by 1; alter table alter_distpol_g_double_3_false_true drop column j; select * from alter_distpol_g_double_3_false_true order by 1; alter table alter_distpol_g_double_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_3_false_true order by 1; drop type break_double_3_false_true cascade; alter table alter_distpol_g_double_3_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_3_false_true order by 1; alter table alter_distpol_g_double_3_false_false drop column j; select * from alter_distpol_g_double_3_false_false order by 1; alter table alter_distpol_g_double_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_3_false_false order by 1; drop type break_double_3_false_false cascade; alter table alter_distpol_g_double_3_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_3_false_false order by 1; alter table alter_distpol_g_double_4_true_true drop column j; select * from alter_distpol_g_double_4_true_true order by 1; alter table alter_distpol_g_double_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_true_true order by 1; drop type break_double_4_true_true cascade; alter table alter_distpol_g_double_4_true_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_true_true order by 1; alter table alter_distpol_g_double_4_true_false drop column j; select * from alter_distpol_g_double_4_true_false order by 1; alter table alter_distpol_g_double_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_true_false order by 1; drop type break_double_4_true_false cascade; alter table alter_distpol_g_double_4_true_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_true_false order by 1; alter table alter_distpol_g_double_4_false_true drop column j; select * from alter_distpol_g_double_4_false_true order by 1; alter table alter_distpol_g_double_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_false_true order by 1; drop type break_double_4_false_true cascade; alter table alter_distpol_g_double_4_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_false_true order by 1; alter table alter_distpol_g_double_4_false_false drop column j; select * from alter_distpol_g_double_4_false_false order by 1; alter table alter_distpol_g_double_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_false_false order by 1; drop type break_double_4_false_false cascade; alter table alter_distpol_g_double_4_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_4_false_false order by 1; alter table alter_distpol_g_double_11_false_true drop column j; select * from alter_distpol_g_double_11_false_true order by 1; alter table alter_distpol_g_double_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_11_false_true order by 1; drop type break_double_11_false_true cascade; alter table alter_distpol_g_double_11_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_11_false_true order by 1; alter table alter_distpol_g_double_11_false_false drop column j; select * from alter_distpol_g_double_11_false_false order by 1; alter table alter_distpol_g_double_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_11_false_false order by 1; drop type break_double_11_false_false cascade; alter table alter_distpol_g_double_11_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_11_false_false order by 1; alter table alter_distpol_g_double_17_false_true drop column j; select * from alter_distpol_g_double_17_false_true order by 1; alter table alter_distpol_g_double_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_17_false_true order by 1; drop type break_double_17_false_true cascade; alter table alter_distpol_g_double_17_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_17_false_true order by 1; alter table alter_distpol_g_double_17_false_false drop column j; select * from alter_distpol_g_double_17_false_false order by 1; alter table alter_distpol_g_double_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_17_false_false order by 1; drop type break_double_17_false_false cascade; alter table alter_distpol_g_double_17_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_17_false_false order by 1; alter table alter_distpol_g_double_19_false_true drop column j; select * from alter_distpol_g_double_19_false_true order by 1; alter table alter_distpol_g_double_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_19_false_true order by 1; drop type break_double_19_false_true cascade; alter table alter_distpol_g_double_19_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_19_false_true order by 1; alter table alter_distpol_g_double_19_false_false drop column j; select * from alter_distpol_g_double_19_false_false order by 1; alter table alter_distpol_g_double_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_19_false_false order by 1; drop type break_double_19_false_false cascade; alter table alter_distpol_g_double_19_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_19_false_false order by 1; alter table alter_distpol_g_double_23_false_true drop column j; select * from alter_distpol_g_double_23_false_true order by 1; alter table alter_distpol_g_double_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_23_false_true order by 1; drop type break_double_23_false_true cascade; alter table alter_distpol_g_double_23_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_23_false_true order by 1; alter table alter_distpol_g_double_23_false_false drop column j; select * from alter_distpol_g_double_23_false_false order by 1; alter table alter_distpol_g_double_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_23_false_false order by 1; drop type break_double_23_false_false cascade; alter table alter_distpol_g_double_23_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_23_false_false order by 1; alter table alter_distpol_g_double_32_false_true drop column j; select * from alter_distpol_g_double_32_false_true order by 1; alter table alter_distpol_g_double_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_32_false_true order by 1; drop type break_double_32_false_true cascade; alter table alter_distpol_g_double_32_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_32_false_true order by 1; alter table alter_distpol_g_double_32_false_false drop column j; select * from alter_distpol_g_double_32_false_false order by 1; alter table alter_distpol_g_double_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_32_false_false order by 1; drop type break_double_32_false_false cascade; alter table alter_distpol_g_double_32_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_32_false_false order by 1; alter table alter_distpol_g_double_196_false_true drop column j; select * from alter_distpol_g_double_196_false_true order by 1; alter table alter_distpol_g_double_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_196_false_true order by 1; drop type break_double_196_false_true cascade; alter table alter_distpol_g_double_196_false_true set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_196_false_true order by 1; alter table alter_distpol_g_double_196_false_false drop column j; select * from alter_distpol_g_double_196_false_false order by 1; alter table alter_distpol_g_double_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_196_false_false order by 1; drop type break_double_196_false_false cascade; alter table alter_distpol_g_double_196_false_false set with(reorganize = true) distributed randomly; select * from alter_distpol_g_double_196_false_false order by 1;
the_stack
-- 2017-09-12T08:39:57.056 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Gebot Start Datum',Updated=TO_TIMESTAMP('2017-09-12 08:39:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557048 ; -- 2017-09-12T08:40:02.860 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Gebot Start',Updated=TO_TIMESTAMP('2017-09-12 08:40:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557048 ; -- 2017-09-12T08:40:11.214 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Gebot Ende',Updated=TO_TIMESTAMP('2017-09-12 08:40:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557049 ; -- 2017-09-12T08:40:32.617 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Gebote erwünscht',Updated=TO_TIMESTAMP('2017-09-12 08:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9346 ; -- 2017-09-12T08:40:46.573 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Angebot Total',Updated=TO_TIMESTAMP('2017-09-12 08:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9350 ; -- 2017-09-12T08:40:57.981 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Angebote Summe Menge',Updated=TO_TIMESTAMP('2017-09-12 08:40:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9328 ; -- 2017-09-12T08:41:10.319 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Angebot Betrag Total',Updated=TO_TIMESTAMP('2017-09-12 08:41:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9350 ; -- 2017-09-12T08:41:19.280 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Angebote Menge Total',Updated=TO_TIMESTAMP('2017-09-12 08:41:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9328 ; -- 2017-09-12T08:41:24.120 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Marge %',Updated=TO_TIMESTAMP('2017-09-12 08:41:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9339 ; -- 2017-09-12T08:41:37.257 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ausschreibung Art',Updated=TO_TIMESTAMP('2017-09-12 08:41:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9345 ; -- 2017-09-12T08:44:58.578 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Beginn',Updated=TO_TIMESTAMP('2017-09-12 08:44:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557048 ; -- 2017-09-12T08:45:02.356 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ende',Updated=TO_TIMESTAMP('2017-09-12 08:45:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557049 ; -- 2017-09-12T08:45:26.797 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ausschreibung Thema',Updated=TO_TIMESTAMP('2017-09-12 08:45:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9330 ; -- 2017-09-12T08:46:04.866 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Beginn Bearbeitung',Updated=TO_TIMESTAMP('2017-09-12 08:46:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9344 ; -- 2017-09-12T08:46:11.784 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ende Bearbeitung',Updated=TO_TIMESTAMP('2017-09-12 08:46:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9323 ; -- 2017-09-12T08:46:31.622 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Bearbeiter',Updated=TO_TIMESTAMP('2017-09-12 08:46:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10045 ; -- 2017-09-12T08:47:53.193 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsAdvancedField='N',Updated=TO_TIMESTAMP('2017-09-12 08:47:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545862 ; -- 2017-09-12T08:51:55.205 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,9345,0,613,540706,548412,TO_TIMESTAMP('2017-09-12 08:51:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Belegart',40,0,0,TO_TIMESTAMP('2017-09-12 08:51:55','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-09-12T08:52:12.846 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Belegart',Updated=TO_TIMESTAMP('2017-09-12 08:52:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9345 ; -- 2017-09-12T08:52:29.409 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=5, WidgetSize='M',Updated=TO_TIMESTAMP('2017-09-12 08:52:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548412 ; -- 2017-09-12T08:52:36.680 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Nr.',Updated=TO_TIMESTAMP('2017-09-12 08:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545878 ; -- 2017-09-12T08:52:43.730 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-09-12 08:52:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548412 ; -- 2017-09-12T08:52:47.220 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-09-12 08:52:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545878 ; -- 2017-09-12T08:52:49.847 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-09-12 08:52:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545879 ; -- 2017-09-12T08:52:55.089 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-09-12 08:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545880 ; -- 2017-09-12T08:53:15.215 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Beginn',Updated=TO_TIMESTAMP('2017-09-12 08:53:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9344 ; -- 2017-09-12T08:53:18.309 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Ende',Updated=TO_TIMESTAMP('2017-09-12 08:53:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9323 ; -- 2017-09-12T08:53:39.430 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Beginn',Updated=TO_TIMESTAMP('2017-09-12 08:53:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545879 ; -- 2017-09-12T08:54:10.924 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_Field_ID=NULL,Updated=TO_TIMESTAMP('2017-09-12 08:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545876 ; -- 2017-09-12T08:54:14.925 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545876 ; -- 2017-09-12T08:54:50.402 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Gebote erwünscht',Updated=TO_TIMESTAMP('2017-09-12 08:54:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545861 ; -- 2017-09-12T08:55:03.222 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545862 ; -- 2017-09-12T08:55:37.547 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,557025,0,613,540706,548413,TO_TIMESTAMP('2017-09-12 08:55:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','N','N','Belegstatus',50,0,0,TO_TIMESTAMP('2017-09-12 08:55:37','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-09-12T08:55:42.275 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-09-12 08:55:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548413 ; -- 2017-09-12T08:56:02.086 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-09-12 08:56:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545877 ; -- 2017-09-12T08:56:02.088 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-09-12 08:56:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545881 ; -- 2017-09-12T08:56:02.089 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-09-12 08:56:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548413 ; -- 2017-09-12T08:56:02.090 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-09-12 08:56:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545882 ; -- 2017-09-12T09:00:21.777 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540706, SeqNo=60,Updated=TO_TIMESTAMP('2017-09-12 09:00:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545881 ; -- 2017-09-12T09:00:29.423 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540706, SeqNo=70,Updated=TO_TIMESTAMP('2017-09-12 09:00:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545886 ; -- 2017-09-12T09:00:33.389 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540707 ; -- 2017-09-12T09:00:37.422 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=20,Updated=TO_TIMESTAMP('2017-09-12 09:00:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540708 ; -- 2017-09-12T09:01:04.668 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nr.',Updated=TO_TIMESTAMP('2017-09-12 09:01:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10317 ; -- 2017-09-12T09:01:42.011 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Gebote angenommen',Updated=TO_TIMESTAMP('2017-09-12 09:01:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9346 ; -- 2017-09-12T09:02:14.909 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Anzahl Gewinner',Updated=TO_TIMESTAMP('2017-09-12 09:02:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557029 ; -- 2017-09-12T09:02:40.289 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Menge Gewinner',Updated=TO_TIMESTAMP('2017-09-12 09:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=557030 ; -- 2017-09-12T09:03:02.925 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Anzahl Gewinner',Updated=TO_TIMESTAMP('2017-09-12 09:03:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545869 ; -- 2017-09-12T09:03:11.743 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET Name='Menge Gewinner',Updated=TO_TIMESTAMP('2017-09-12 09:03:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545870 ; -- 2017-09-12T09:03:22.841 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,9378,0,615,540703,548414,TO_TIMESTAMP('2017-09-12 09:03:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-09-12 09:03:22','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-09-12T09:03:34.301 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,9379,0,615,540703,548415,TO_TIMESTAMP('2017-09-12 09:03:34','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-09-12 09:03:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2017-09-12T09:04:15.737 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-09-12 09:04:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548414 ; -- 2017-09-12T09:08:10.757 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:08:10','YYYY-MM-DD HH24:MI:SS') WHERE AD_Field_ID=556958 AND AD_Language='de_CH' ; -- 2017-09-12T09:08:26.526 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:08:26','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Procurement Product' WHERE AD_Field_ID=556958 AND AD_Language='en_US' ; -- 2017-09-12T09:08:49.246 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:08:49','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Quantity',Description='',Help='' WHERE AD_Field_ID=556949 AND AD_Language='en_US' ; -- 2017-09-12T09:09:10.694 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:09:10','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='UOM',Description='',Help='' WHERE AD_Field_ID=556950 AND AD_Language='en_US' ; -- 2017-09-12T09:09:44.510 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2017-09-12 09:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548415 ; -- 2017-09-12T09:09:48.479 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-09-12 09:09:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545864 ; -- 2017-09-12T09:09:50.655 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-09-12 09:09:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545865 ; -- 2017-09-12T09:09:52.456 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-09-12 09:09:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545867 ; -- 2017-09-12T09:09:54.344 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-09-12 09:09:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545866 ; -- 2017-09-12T09:09:55.961 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-09-12 09:09:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545868 ; -- 2017-09-12T09:09:57.567 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-09-12 09:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545869 ; -- 2017-09-12T09:09:59.136 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-09-12 09:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545870 ; -- 2017-09-12T09:10:03.745 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-09-12 09:10:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548414 ; -- 2017-09-12T09:10:06.871 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2017-09-12 09:10:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548415 ; -- 2017-09-12T09:10:07.431 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545864 ; -- 2017-09-12T09:10:07.918 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545865 ; -- 2017-09-12T09:10:08.447 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545867 ; -- 2017-09-12T09:10:08.823 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545866 ; -- 2017-09-12T09:10:09.287 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545868 ; -- 2017-09-12T09:10:09.920 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545869 ; -- 2017-09-12T09:10:11.057 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-12 09:10:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545870 ; -- 2017-09-12T09:11:13.789 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:11:13','YYYY-MM-DD HH24:MI:SS'),Name='No.' WHERE AD_Field_ID=10317 AND AD_Language='en_US' ; -- 2017-09-12T09:11:33.680 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-09-12 09:11:33','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Status' WHERE AD_Field_ID=557025 AND AD_Language='en_US' ;
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `admin` -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` char(30) DEFAULT NULL COMMENT '用户名', `password` char(32) DEFAULT NULL COMMENT '密码', `mail` varchar(80) DEFAULT NULL COMMENT '邮箱', `salt` varchar(10) DEFAULT NULL COMMENT '干扰码', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `ip` char(15) DEFAULT NULL COMMENT '添加IP', `job_no` varchar(15) DEFAULT NULL COMMENT '工号', `nick_name` varchar(50) DEFAULT NULL COMMENT '昵称', `true_name` varchar(50) DEFAULT NULL COMMENT '真实姓名', `qq` varchar(50) DEFAULT NULL COMMENT 'qq', `phone` varchar(50) DEFAULT NULL COMMENT '电话', `mobile` varchar(20) DEFAULT NULL COMMENT '手机', `name` varchar(255) DEFAULT NULL COMMENT '显示名称', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '删除0否1是', `department_id` int(11) NOT NULL DEFAULT '0' COMMENT '部门id', `team_id` int(11) NOT NULL COMMENT '团队ID', `master_id` int(11) NOT NULL COMMENT '师傅id', `leader_id` int(11) NOT NULL COMMENT '领导id', `post_id` int(11) NOT NULL COMMENT '职务id', `role_id` int(11) NOT NULL COMMENT '角色id(主)', PRIMARY KEY (`id`) USING BTREE, KEY `username` (`username`), KEY `is_del` (`is_del`), KEY `role_id` (`role_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='管理员表'; -- ---------------------------- -- Records of `admin` -- ---------------------------- BEGIN; INSERT INTO `admin` VALUES ('1', 'admin', 'admin', null, null, '2018-05-18 10:04:57', '2018-05-18 10:04:57', null, null, null, null, null, null, null, null, '0', '0', '0', '0', '0', '0', '1'); COMMIT; -- ---------------------------- -- Table structure for `admin_menu` -- ---------------------------- DROP TABLE IF EXISTS `admin_menu`; CREATE TABLE `admin_menu` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` char(100) DEFAULT NULL COMMENT '名称', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '上级菜单', `s` char(60) DEFAULT NULL COMMENT '模块/控制器/动作', `data` char(100) DEFAULT NULL COMMENT '其他参数', `sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `type` char(32) NOT NULL DEFAULT 'url' COMMENT '类别url菜单function独立功能user用户独有', `level` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '级别', `level1_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '1级栏目ID', `md5` char(32) DEFAULT NULL COMMENT 's的md5值', `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '显示隐藏;1显示;0隐藏', `is_unique` tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户独有此功能1是0否', PRIMARY KEY (`id`), KEY `sort` (`sort`), KEY `parent_id` (`parent_id`), KEY `s` (`s`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='菜单'; -- ---------------------------- -- Table structure for `admin_role_access` -- ---------------------------- DROP TABLE IF EXISTS `admin_role_access`; CREATE TABLE `admin_role_access` ( `id` int(11) NOT NULL AUTO_INCREMENT, `aid` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID', `role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID', `is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认', PRIMARY KEY (`id`), UNIQUE KEY `aid_role_id` (`aid`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='管理员与角色的关系、一个管理员可以有多个角色'; -- ---------------------------- -- Table structure for `admin_role_priv` -- ---------------------------- DROP TABLE IF EXISTS `admin_role_priv`; CREATE TABLE `admin_role_priv` ( `id` int(10) NOT NULL AUTO_INCREMENT, `role_id` smallint(3) unsigned NOT NULL DEFAULT '0' COMMENT '角色ID', `s` char(100) DEFAULT NULL COMMENT '模块/控制器/动作', `data` char(50) DEFAULT NULL COMMENT '其他参数', `aid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员ID', `menu_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '菜单ID', `type` char(32) NOT NULL DEFAULT 'url' COMMENT '类别url菜单function独立功能user用户独有', PRIMARY KEY (`id`), KEY `role_id` (`role_id`), KEY `role_id_2` (`role_id`,`s`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='角色权限表'; -- ---------------------------- -- Table structure for `admin_status` -- ---------------------------- DROP TABLE IF EXISTS `admin_status`; CREATE TABLE `admin_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, `login_time` timestamp NULL DEFAULT NULL COMMENT '登录时间', `login_ip` char(20) DEFAULT NULL COMMENT 'IP', `login` int(11) NOT NULL DEFAULT '0' COMMENT '登录次数', `aid_add` int(11) NOT NULL DEFAULT '0' COMMENT '添加人', `aid_update` int(11) NOT NULL DEFAULT '0' COMMENT '更新人', `gmt_modified` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `remark` varchar(255) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='状态'; -- ---------------------------- -- Table structure for `app` -- ---------------------------- DROP TABLE IF EXISTS `app`; CREATE TABLE `app` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type_id` int(11) NOT NULL DEFAULT '0' COMMENT 'app_id,来源type表', `name` varchar(100) DEFAULT NULL COMMENT '名称', `mark` char(32) DEFAULT NULL COMMENT '标志', `setting` varchar(5000) DEFAULT NULL COMMENT '扩展参数', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `is_del` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除0否1是', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `type_id` (`type_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用'; -- ---------------------------- -- Table structure for `area` -- ---------------------------- DROP TABLE IF EXISTS `area`; CREATE TABLE `area` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(50) DEFAULT '' COMMENT '名称', `name_en` varchar(100) DEFAULT '' COMMENT '英文名称', `parent_id` int(11) DEFAULT '0' COMMENT '上级栏目ID', `type` tinyint(4) DEFAULT '0' COMMENT '类别;0默认;', `name_traditional` varchar(50) DEFAULT '' COMMENT '繁体名称', `sort` int(11) DEFAULT '0' COMMENT '排序', PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='地区表'; -- ---------------------------- -- Table structure for `area_ext` -- ---------------------------- DROP TABLE IF EXISTS `area_ext`; CREATE TABLE `area_ext` ( `id` int(11) NOT NULL AUTO_INCREMENT, `area_id` int(11) DEFAULT '0' COMMENT 'ID', `name` char(50) DEFAULT '' COMMENT '名称', `name_en` varchar(100) DEFAULT '' COMMENT '英文名称', `parent_id` int(11) DEFAULT '0' COMMENT '上级栏目ID', `type` tinyint(4) DEFAULT '0' COMMENT '类别;0默认;1又名;2;3属于;11已合并到;12已更名为', `name_traditional` varchar(50) DEFAULT '' COMMENT '繁体名称', `sort` int(11) DEFAULT '0' COMMENT '排序', `type_name` varchar(50) DEFAULT '' COMMENT '类别名称', `other_name` varchar(50) DEFAULT '' COMMENT '根据类别名称填写', PRIMARY KEY (`id`) USING BTREE, KEY `id` (`area_id`,`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='地区扩展表'; -- ---------------------------- -- Table structure for `attachment` -- ---------------------------- DROP TABLE IF EXISTS `attachment`; CREATE TABLE `attachment` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '附件ID', `module` char(32) DEFAULT NULL COMMENT '模块', `mark` char(60) DEFAULT NULL COMMENT '标记标志', `type_id` int(5) unsigned NOT NULL DEFAULT '0' COMMENT '类别ID', `name` char(50) DEFAULT NULL COMMENT '保存的文件名称', `name_original` varchar(255) DEFAULT NULL COMMENT '原文件名', `path` char(200) DEFAULT NULL COMMENT '文件路径', `size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小', `ext` char(10) DEFAULT NULL COMMENT '文件后缀', `is_image` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否图片1是0否', `is_thumb` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否缩略图1是0否', `downloads` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '下载次数', `gmt_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间上传时间', `ip` char(15) DEFAULT NULL COMMENT '上传IP', `status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态99正常;', `md5` char(32) DEFAULT NULL COMMENT 'md5', `sha1` char(40) DEFAULT NULL COMMENT 'sha1', `from_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '所属ID', `aid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '后台管理员ID', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '前台用户ID', `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否显示1是0否', `http` varchar(100) DEFAULT NULL COMMENT '图片http地址', PRIMARY KEY (`id`) USING BTREE, KEY `md5` (`md5`), KEY `module` (`module`), KEY `mark` (`mark`), KEY `id` (`from_id`), KEY `status` (`status`), KEY `aid` (`aid`), KEY `uid` (`uid`), KEY `is_show` (`is_show`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='附件表'; -- ---------------------------- -- Records of `attachment` -- ---------------------------- BEGIN; INSERT INTO `attachment` VALUES ('1', '', '', '1', '302b4f78f934cf4a06c5d8a9257ed97c.jpg', '9358d109b3de9c82bb32fd2d6081800a19d84338.jpg', '/uploads/image/2018-05/', '313768', 'jpg', '0', '0', '0', '2018-05-16 22:15:11', '', '0', '8444e2b2a9f99cae7a855a5f887dd3e2', '', '0', '1', '0', '0', ''); COMMIT; -- ---------------------------- -- Table structure for `cart` -- ---------------------------- DROP TABLE IF EXISTS `cart`; CREATE TABLE `cart` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID', `goods_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品信息id', `num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '数量', `price` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '单价', `amount` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '合计总价', `warehouse_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `sid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '供货商ID', `type_id` int(11) NOT NULL DEFAULT '1' COMMENT '类别:普通', PRIMARY KEY (`id`), KEY `uid` (`uid`), KEY `type_id` (`type_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='购物车'; -- ---------------------------- -- Table structure for `casbin_rule` -- ---------------------------- DROP TABLE IF EXISTS `casbin_rule`; CREATE TABLE `casbin_rule` ( `p_type` varchar(100) DEFAULT NULL, `v0` varchar(100) DEFAULT NULL, `v1` varchar(100) DEFAULT NULL, `v2` varchar(100) DEFAULT NULL, `v3` varchar(100) DEFAULT NULL, `v4` varchar(100) DEFAULT NULL, `v5` varchar(100) DEFAULT NULL, `id` int(1) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), KEY `IDX_casbin_rule_p_type` (`p_type`), KEY `IDX_casbin_rule_v0` (`v0`), KEY `IDX_casbin_rule_v1` (`v1`), KEY `IDX_casbin_rule_v2` (`v2`), KEY `IDX_casbin_rule_v3` (`v3`), KEY `IDX_casbin_rule_v4` (`v4`), KEY `IDX_casbin_rule_v5` (`v5`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of `casbin_rule` -- ---------------------------- BEGIN; INSERT INTO `casbin_rule` VALUES ('p', '1', '/admin/rbac/index', 'GET', '', '', '', '1'), ('p', '1', '/admin/rdbc/*', 'GET', '', '', '', '2'); COMMIT; -- ---------------------------- -- Table structure for `connect` -- ---------------------------- DROP TABLE IF EXISTS `connect`; CREATE TABLE `connect` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '类别id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id', `open_id` char(80) DEFAULT NULL COMMENT '对应唯一开放id', `token` varchar(80) DEFAULT NULL COMMENT '开放密钥', `type` int(11) NOT NULL DEFAULT '1' COMMENT '登录类型1腾讯QQ2新浪微博', `type_login` int(11) NOT NULL DEFAULT '0' COMMENT '登录模块;302前台还是后台301', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `extend` varchar(5000) DEFAULT '' COMMENT '扩展参数', PRIMARY KEY (`id`) USING BTREE, KEY `openid` (`open_id`), KEY `uid` (`uid`) USING BTREE, KEY `type_id` (`type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='快捷登陆/qq'; -- ---------------------------- -- Table structure for `goods` -- ---------------------------- DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品信息ID', `warehouse_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `sid` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态0未审核99已审核', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', `is_open` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否上架1是0否', `aid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员(发布人)ID', `cat_id` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '栏目id', `brand_id` int(10) NOT NULL DEFAULT '0' COMMENT '品牌', `title` varchar(100) DEFAULT NULL COMMENT '标题', `model` varchar(100) DEFAULT NULL COMMENT '规格', `number` char(100) DEFAULT NULL COMMENT '商品编号', `thumb` varchar(255) DEFAULT NULL COMMENT '缩略图', `original_img` varchar(255) DEFAULT NULL COMMENT '原始图', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序', `price_base` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '底价', `price_plantform_cost` int(12) unsigned NOT NULL DEFAULT '0' COMMENT '平台成本', `attr_type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '属性类别ID', `num_unit` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '每个单位内多少个,每盒几罐', `type_stock` int(10) NOT NULL DEFAULT '0' COMMENT '是否仓库库存', `type_id` int(11) NOT NULL DEFAULT '10001' COMMENT '类别类目', `mark` char(32) NOT NULL DEFAULT '' COMMENT '标志:产品-仓库-供应商', `mark_id` int(11) NOT NULL DEFAULT '10001' COMMENT '标志类别', `is_combined` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否商品组合', `description` varchar(255) DEFAULT NULL COMMENT '描述', PRIMARY KEY (`id`) USING BTREE, KEY `aid` (`aid`) USING BTREE, KEY `cat_id` (`cat_id`) USING BTREE, KEY `brand_id` (`brand_id`) USING BTREE, KEY `is_open` (`is_open`), KEY `sort` (`sort`), KEY `status` (`status`), KEY `is_del` (`is_del`), KEY `sid` (`sid`), KEY `mark` (`mark`), KEY `mark_id` (`mark_id`) ) ENGINE=InnoDB AUTO_INCREMENT=1003 DEFAULT CHARSET=utf8mb4 COMMENT='商品发布'; -- ---------------------------- -- Records of `goods` -- ---------------------------- BEGIN; INSERT INTO `goods` VALUES ('1002', '1', '1', '1', '99', '0', '1', '0', '1', '1', '德国Aptamil爱他美婴幼儿配方奶粉1+段(适合1岁以上宝宝)600g', '1+段 600g', 'A000001', '', '', '0', '0', '0', '0', '1', '0', '202001', '201001-1-1-1', '201001', '0', ''); COMMIT; -- ---------------------------- -- Table structure for `goods_brand` -- ---------------------------- DROP TABLE IF EXISTS `goods_brand`; CREATE TABLE `goods_brand` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL COMMENT '名称', `name_en` varchar(255) DEFAULT NULL COMMENT '品牌英文名称或是汉语拼音', `http` varchar(255) DEFAULT NULL COMMENT '品牌网站', `phone` varchar(255) DEFAULT NULL COMMENT '客服电话', `content` text COMMENT '品牌介绍', `letter` varchar(255) DEFAULT NULL COMMENT '品牌首字母', `sort` int(10) NOT NULL DEFAULT '0' COMMENT '品牌排序', `logo` varchar(255) DEFAULT NULL COMMENT '品牌logo', `parent_id` int(10) unsigned NOT NULL DEFAULT '0', `arr_parent_id` varchar(255) DEFAULT NULL COMMENT '所有父栏目ID', `is_child` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有子栏目', `arr_child_id` text COMMENT '所有子栏目ID', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', PRIMARY KEY (`id`), KEY `is_del` (`is_del`), KEY `parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='品牌'; -- ---------------------------- -- Table structure for `goods_category` -- ---------------------------- DROP TABLE IF EXISTS `goods_category`; CREATE TABLE `goods_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL COMMENT '名称', `description` text COMMENT '介绍', `parent_id` int(10) unsigned NOT NULL DEFAULT '0', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `arr_parent_id` varchar(255) DEFAULT NULL COMMENT '所有父栏目ID', `is_child` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有子栏目', `arr_child_id` text COMMENT '所有子栏目ID', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, KEY `parent_id` (`parent_id`) USING BTREE, KEY `sort` (`sort`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='栏目'; -- ---------------------------- -- Table structure for `goods_combined` -- ---------------------------- DROP TABLE IF EXISTS `goods_combined`; CREATE TABLE `goods_combined` ( `id` int(11) NOT NULL AUTO_INCREMENT, `goods_id` int(11) NOT NULL DEFAULT '0', `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '产品ID', `aid` int(11) NOT NULL DEFAULT '0' COMMENT '添加人', `price_shop` bigint(20) NOT NULL DEFAULT '0' COMMENT '组合商品价格', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `num_least` int(11) NOT NULL DEFAULT '1' COMMENT '最少购买数量', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '顶级商品ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组合商品'; -- ---------------------------- -- Table structure for `goods_content` -- ---------------------------- DROP TABLE IF EXISTS `goods_content`; CREATE TABLE `goods_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `seo_title` varchar(50) DEFAULT NULL COMMENT 'seo标题', `seo_description` varchar(200) DEFAULT NULL COMMENT 'seo描述', `seo_keyword` varchar(50) DEFAULT NULL COMMENT 'seo关键字', `content` text COMMENT '内容', `remark` varchar(255) DEFAULT NULL COMMENT '备注紧供自己查看', `title_other` varchar(5000) DEFAULT NULL COMMENT '其他名称', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1003 DEFAULT CHARSET=utf8mb4 COMMENT='商品内容'; -- ---------------------------- -- Records of `goods_content` -- ---------------------------- BEGIN; INSERT INTO `goods_content` VALUES ('1002', '', '', '', '内容', '', ''); COMMIT; -- ---------------------------- -- Table structure for `goods_price` -- ---------------------------- DROP TABLE IF EXISTS `goods_price`; CREATE TABLE `goods_price` ( `id` int(11) NOT NULL AUTO_INCREMENT, `price_market` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '市场价', `price_shop` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '商城价', `is_promote` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否促销1是0否', `promote_price` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '促销价格', `promote_start_date` timestamp NULL DEFAULT NULL COMMENT '促销开始日期', `promote_end_date` timestamp NULL DEFAULT NULL COMMENT '促销结束日期', `is_free_shipping` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包邮1是0否', `start_date` timestamp NULL DEFAULT NULL COMMENT '开始时间', `end_date` timestamp NULL DEFAULT NULL COMMENT '结束时间', `min_free_shipping` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '最小包邮数量', `num_max` int(11) NOT NULL DEFAULT '9999' COMMENT '最大可一次购买数量', `num_least` int(11) NOT NULL DEFAULT '1' COMMENT '最少购买数量', `is_free_tax` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包税使用包税价格', `is_group_price` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否使用用户组价格', `tax_price` bigint(20) NOT NULL DEFAULT '0' COMMENT '包税价格', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1003 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of `goods_price` -- ---------------------------- BEGIN; INSERT INTO `goods_price` VALUES ('1002', '1400000', '1200000', '0', '0', null, null, '0', null, null, '0', '999', '1', '0', '0', '0'); COMMIT; -- ---------------------------- -- Table structure for `goods_statistics` -- ---------------------------- DROP TABLE IF EXISTS `goods_statistics`; CREATE TABLE `goods_statistics` ( `id` int(11) NOT NULL, `saless` bigint(20) NOT NULL DEFAULT '0' COMMENT '销量', `reading` bigint(20) NOT NULL DEFAULT '0' COMMENT '访问数', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='商品销量'; -- ---------------------------- -- Table structure for `log` -- ---------------------------- DROP TABLE IF EXISTS `log`; CREATE TABLE `log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `from_id` int(11) NOT NULL DEFAULT '0' COMMENT 'id', `aid` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `mark` char(32) DEFAULT NULL COMMENT '标志自定义标志', `data` text COMMENT '其他内容', `no` char(50) DEFAULT NULL COMMENT '单号', `type_login` int(11) NOT NULL DEFAULT '0' COMMENT '登录方式;302前台还是后台301', `type_client` int(11) NOT NULL DEFAULT '0' COMMENT '登录客户端类别;321电脑;322安卓;323IOS;324手机网页;325其他', `ip` char(20) DEFAULT NULL COMMENT 'IP', `msg` varchar(255) DEFAULT NULL COMMENT '自定义说明', PRIMARY KEY (`id`) USING BTREE, KEY `type_login` (`type_login`), KEY `type_client` (`type_client`), KEY `uid` (`uid`), KEY `aid` (`aid`), KEY `id` (`from_id`), KEY `no` (`no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='日志表'; -- ---------------------------- -- Table structure for `news` -- ---------------------------- DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `aid` int(11) NOT NULL DEFAULT '0' COMMENT '管理员AID', `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', `is_open` tinyint(1) NOT NULL DEFAULT '1' COMMENT '启用1是0否', `status` int(11) NOT NULL DEFAULT '0' COMMENT '状态', `gmt_system` timestamp NULL DEFAULT NULL COMMENT '创建时间,系统时间不可修改', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间,可修改', `title` varchar(255) DEFAULT NULL COMMENT '标题', `author` varchar(255) DEFAULT NULL COMMENT '作者', `url` varchar(255) DEFAULT NULL COMMENT '网址', `url_source` varchar(255) DEFAULT NULL COMMENT '来源地址(转载)', `url_rewrite` char(150) DEFAULT NULL COMMENT '自定义伪静态Url', `description` varchar(255) DEFAULT NULL COMMENT '摘要', `content` text COMMENT '内容', `type` int(11) NOT NULL DEFAULT '0' COMMENT '类型0文章10001博客栏目', `module_id` int(10) NOT NULL DEFAULT '0' COMMENT '模块10019技术10018生活', `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '来源:后台,接口,其他', `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '类别ID,原创,转载,翻译', `cat_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID,栏目', `tag` varchar(255) DEFAULT NULL COMMENT '标签', `thumb` varchar(255) DEFAULT NULL COMMENT '缩略图', `is_relevant` tinyint(1) NOT NULL DEFAULT '0' COMMENT '相关文章1是0否', `is_jump` tinyint(1) NOT NULL DEFAULT '0' COMMENT '跳转1是0否', `is_comment` tinyint(1) NOT NULL DEFAULT '1' COMMENT '允许评论1是0否', `is_read` int(11) NOT NULL DEFAULT '10014' COMMENT '是否阅读10014未看10015在看10016已看', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `remark` varchar(255) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`) USING BTREE, KEY `is_del` (`is_del`,`is_open`,`status`,`type_id`,`cat_id`,`sort`), KEY `url_rewrite` (`url_rewrite`), KEY `type` (`type`), KEY `module_id` (`module_id`) USING BTREE, KEY `source_id` (`source_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='博客内容'; -- ---------------------------- -- Table structure for `news_statistics` -- ---------------------------- DROP TABLE IF EXISTS `news_statistics`; CREATE TABLE `news_statistics` ( `id` int(11) NOT NULL AUTO_INCREMENT, `news_id` int(11) NOT NULL DEFAULT '0' COMMENT '文章ID', `comment` int(11) NOT NULL DEFAULT '0' COMMENT '评论人数', `read` int(11) NOT NULL DEFAULT '0' COMMENT '阅读人数', `seo_title` varchar(255) DEFAULT NULL COMMENT 'SEO标题', `seo_description` varchar(255) DEFAULT NULL COMMENT 'SEO摘要', `seo_keyword` varchar(255) DEFAULT NULL COMMENT 'SEO关键词', PRIMARY KEY (`id`) USING BTREE, KEY `blog_id` (`news_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='博客统计'; -- ---------------------------- -- Table structure for `news_sync_mapping` -- ---------------------------- DROP TABLE IF EXISTS `news_sync_mapping`; CREATE TABLE `news_sync_mapping` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `news_id` int(11) NOT NULL DEFAULT '0' COMMENT '本站blog的id', `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '类别id', `to_id` varchar(64) DEFAULT NULL COMMENT 'csdn的id', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后一次更新时间', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间', `mark` char(32) DEFAULT NULL COMMENT '标志', `is_sync` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否同步过', `extend` varchar(5000) DEFAULT NULL COMMENT '扩展参数', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='本站blog_id 与其他同步站点的id关系'; -- ---------------------------- -- Table structure for `news_sync_queue` -- ---------------------------- DROP TABLE IF EXISTS `news_sync_queue`; CREATE TABLE `news_sync_queue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `news_id` int(11) NOT NULL DEFAULT '0' COMMENT '本站博客id', `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '类型', `status` tinyint(3) NOT NULL DEFAULT '0' COMMENT '状态:0:待运行 10:失败 99:成功', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后一次更新时间', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '插入时间', `msg` varchar(255) DEFAULT NULL COMMENT '内容', `map_id` int(11) NOT NULL DEFAULT '0' COMMENT '同步ID', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='博客同步队列'; -- ---------------------------- -- Table structure for `news_tag` -- ---------------------------- DROP TABLE IF EXISTS `news_tag`; CREATE TABLE `news_tag` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(100) DEFAULT NULL COMMENT '名称', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', `aid` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID', `news_id` int(11) NOT NULL DEFAULT '0' COMMENT '文章ID', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='博客标签'; -- ---------------------------- -- Table structure for `order` -- ---------------------------- DROP TABLE IF EXISTS `order`; CREATE TABLE `order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_no` char(32) DEFAULT NULL COMMENT '销售订单号', `order_sn` char(32) DEFAULT NULL COMMENT '单号淘宝苏宁等等', `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID', `order_status` int(11) NOT NULL DEFAULT '0' COMMENT '订单状态(DEFAULT用户未点发货,WAIT_CHECK等待审核,NO_CHECK审核不通过,WAIT_SEND等等发货,SEND卖家已发货,RECEIPT已收货,DROP交易关闭,SUCCESS订单交易成功,CANCEL交易取消,WAIT_CUSTOMS_CHECK等待海关审核 REFUND退款 DELETE删除 DRAFT 草稿)', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态0未审核99已审核', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', `type_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '类别,1普通订单;', `type_id_admin` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '类别,1普通订单;后台设置', `type_id_sub` int(11) NOT NULL DEFAULT '0' COMMENT '其他类别', `vat_fee` bigint(20) NOT NULL DEFAULT '0' COMMENT '增值税费', `sales_fee` bigint(20) NOT NULL DEFAULT '0' COMMENT '消费税', `amount_freight` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '物流费用', `amount_discount` bigint(20) NOT NULL DEFAULT '0' COMMENT '折扣金额', `amount_goods` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '商品总金额', `amount_other` bigint(20) NOT NULL COMMENT '其他价格费用', `amount_tax` bigint(20) NOT NULL DEFAULT '0' COMMENT '税费', `amount_order` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '订单总额', `amount_payment` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '支付总额,已付款金额(实际付款金额)', `total` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '总数量', `total_no_receipt` int(10) NOT NULL DEFAULT '0' COMMENT '未收货数量', `sid` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID', `warehouse_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `store_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '店铺ID', `express_no` char(50) NOT NULL DEFAULT '' COMMENT '物流单号,运送单号', `express_id` int(10) NOT NULL DEFAULT '0' COMMENT '快递公司id', `remark` varchar(255) DEFAULT NULL COMMENT '备注用户自己看', `remark_admin` varchar(255) DEFAULT NULL COMMENT '备注客服自己看', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', `time_success` timestamp NULL DEFAULT NULL COMMENT '订单完成时间(整个订单完成,交易完成)', `time_check_admin` timestamp NULL DEFAULT NULL COMMENT '客服审核时间', `time_check` timestamp NULL DEFAULT NULL COMMENT '审核时间,海关审核时间', `time_receipt` timestamp NULL DEFAULT NULL COMMENT '收货时间', `declare` int(11) NOT NULL DEFAULT '0' COMMENT 'DEFAULT未申报 NOT_ALLOW禁止申报 PORT_ACCEPT申报中 SUCCESS申报成功 FAIL申报失败 WARING申报异常;总订单时SUCCESS表示本订单已全部添加完成', `declare_msg` varchar(200) DEFAULT NULL COMMENT '申报信息', `declare_time` timestamp NULL DEFAULT NULL COMMENT '申报时间', `is_send_time` timestamp NULL DEFAULT NULL COMMENT '发货动作时间', `is_send` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否发货1是0否', `is_refund` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否退款', `is_return` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '退货1是0否', `is_exchange` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '换货1是0否', `order_id_from` int(10) NOT NULL DEFAULT '0' COMMENT '來自哪个ID,修改价格前ID', `order_id_from_api` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '接口订单id', `order_id_master` int(10) NOT NULL DEFAULT '0' COMMENT '总订单号ID', `order_no_master` char(32) DEFAULT NULL COMMENT '总订单号', `sid_from` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '货源商家id', `pay_time` timestamp NULL DEFAULT NULL COMMENT '客户购买时间', `pay_id` int(11) NOT NULL DEFAULT '0' COMMENT '支付ID', `pay_no` char(50) DEFAULT NULL COMMENT '支付单号', `is_paid` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已支付', `is_paid_system` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已支付(系统自动)', `time_paid_system` datetime DEFAULT NULL COMMENT '系统支付时间', `exchange_rate` bigint(20) NOT NULL DEFAULT '0' COMMENT '汇率', `currency_mark` char(3) DEFAULT NULL COMMENT '币制', `get_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券', `use_wallet` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '使用钱包', `use_credit` bigint(20) NOT NULL DEFAULT '0' COMMENT '使用积分', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`), KEY `is_send` (`is_send`), KEY `order_status` (`order_status`), KEY `status` (`status`), KEY `is_del` (`is_del`), KEY `type` (`type_id`) USING BTREE, KEY `is_refund` (`is_refund`) USING BTREE, KEY `add_time` (`gmt_create`), KEY `sales_no` (`order_no`), KEY `type_admin` (`type_id_admin`), KEY `sid` (`sid`), KEY `order_no_parent` (`order_no_master`) ) ENGINE=InnoDB AUTO_INCREMENT=1011 DEFAULT CHARSET=utf8mb4 COMMENT='订单'; -- ---------------------------- -- Table structure for `order_consignee` -- ---------------------------- DROP TABLE IF EXISTS `order_consignee`; CREATE TABLE `order_consignee` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单id', `consignee_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '收货人ID', `consignee` varchar(50) DEFAULT NULL COMMENT '收货人', `mobile` char(11) DEFAULT NULL COMMENT '手机号', `country` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '国家', `province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '省', `city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '市', `district` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '区', `address` varchar(255) DEFAULT NULL COMMENT '地址', `address_en` varchar(255) DEFAULT NULL COMMENT '地址(英文)', `id_card` char(19) DEFAULT NULL COMMENT '身份证号', `id_card_front` varchar(255) DEFAULT NULL COMMENT '身份证正面', `id_card_back` varchar(255) DEFAULT NULL COMMENT '身份证反面', `province_name` char(30) DEFAULT NULL COMMENT '省', `city_name` char(50) DEFAULT NULL COMMENT '市', `district_name` char(50) DEFAULT NULL COMMENT '区', `address_all` varchar(255) DEFAULT NULL COMMENT '地址', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1011 DEFAULT CHARSET=utf8mb4 COMMENT='订单收货人'; -- ---------------------------- -- Table structure for `order_ext` -- ---------------------------- DROP TABLE IF EXISTS `order_ext`; CREATE TABLE `order_ext` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `cost_amount_payment` bigint(20) NOT NULL DEFAULT '0' COMMENT '支付金额成本', `cost_amount_goods` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品金额成本', `declare_tax` int(11) NOT NULL DEFAULT '0' COMMENT '申报税', `declare_vat_fee` int(11) NOT NULL DEFAULT '0' COMMENT '申报增值税', `declare_sales_fee` int(11) NOT NULL DEFAULT '0' COMMENT '申报消费税', `declare_amount_freight` int(11) NOT NULL DEFAULT '0' COMMENT '申报运费', `declare_amount_payment` int(11) NOT NULL DEFAULT '0' COMMENT '申报运费', `is_wms_sales` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否向WMS通信生成销售单 0未通信 1已通信', `is_wms_send_out` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否向WMS发送并生成出货单 0未完成 1已完成', `order_amount_declare` bigint(20) NOT NULL DEFAULT '0' COMMENT '订单总金额', `payment_amount_declare` bigint(20) NOT NULL DEFAULT '0' COMMENT '支付总金额', `goods_amount_declare` bigint(20) NOT NULL DEFAULT '0' COMMENT '商品小计', `billing_country` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '账单国家', `billing_province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '账单省', `billing_city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '账单市', `billing_district` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '账单区', `billing_address` varchar(255) NOT NULL DEFAULT '' COMMENT '账单地址', `billing_mobile` char(11) NOT NULL DEFAULT '' COMMENT '手机号', `billing_consignee` varchar(255) NOT NULL DEFAULT '' COMMENT '账单收货人', `billing_mail` varchar(255) NOT NULL DEFAULT '' COMMENT '账单邮箱', `billing_address_en` varchar(255) DEFAULT NULL COMMENT '账单地址(英文)', `billing_zip_code` varchar(10) DEFAULT NULL COMMENT '账单邮编', `billing_tax_no` varchar(255) DEFAULT NULL COMMENT '税号', `packing_id` int(10) DEFAULT '0' COMMENT '包装ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1011 DEFAULT CHARSET=utf8mb4 COMMENT='扩展订单信息'; -- ---------------------------- -- Table structure for `order_goods` -- ---------------------------- DROP TABLE IF EXISTS `order_goods`; CREATE TABLE `order_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '订单ID', `goods_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品信息id', `title` varchar(200) DEFAULT NULL COMMENT '商品名称', `num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '数量', `number` char(100) DEFAULT NULL COMMENT '商品编号', `price` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '单价', `num_unit` int(11) NOT NULL DEFAULT '1' COMMENT '每个单位内多少个,每盒几罐', `num_total` int(11) NOT NULL DEFAULT '0' COMMENT '总数量 = 罐数x页面数量', `amount` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '合计总价', `freight` int(11) NOT NULL DEFAULT '0' COMMENT '运费', `warehouse_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `sid` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '商家ID', `sales_fee` bigint(20) NOT NULL DEFAULT '0' COMMENT '消费税费', `vat_fee` bigint(20) NOT NULL DEFAULT '0' COMMENT '增值税费', `price_tax` bigint(20) NOT NULL DEFAULT '0' COMMENT '总税费', `remark` text COMMENT '备注', `price_shop` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '商城价', `cost_price` bigint(20) NOT NULL DEFAULT '0' COMMENT '成本单价', `cost_amount` bigint(20) NOT NULL DEFAULT '0' COMMENT '成本金额', `mark_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品标志ID', PRIMARY KEY (`id`), KEY `sales_id` (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='订单商品'; -- ---------------------------- -- Table structure for `order_goods_structure` -- ---------------------------- DROP TABLE IF EXISTS `order_goods_structure`; CREATE TABLE `order_goods_structure` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '订单ID', `goods_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品信息id', `title` varchar(200) DEFAULT NULL COMMENT '商品名称', `num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '数量', `number` char(100) DEFAULT NULL COMMENT '商品编号', `price` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '单价', `num_unit` int(11) NOT NULL DEFAULT '1' COMMENT '每个单位内多少个,每盒几罐', `num_total` int(11) NOT NULL DEFAULT '0' COMMENT '总数量 = 罐数x页面数量', `amount` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '合计总价', `freight` bigint(20) NOT NULL DEFAULT '0' COMMENT '运费', `warehouse_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `sid` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '商家ID', `sales_fee` bigint(11) NOT NULL DEFAULT '0' COMMENT '消费税费', `vat_fee` bigint(10) NOT NULL DEFAULT '0' COMMENT '增值税费', `price_tax` bigint(10) NOT NULL DEFAULT '0' COMMENT '总税费', `remark` text COMMENT '备注', `price_shop` bigint(12) unsigned DEFAULT '0' COMMENT '商城价', `cost_price` bigint(11) NOT NULL DEFAULT '0' COMMENT '成本单价', `cost_amount` bigint(20) NOT NULL DEFAULT '0' COMMENT '成本金额', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组合商品ID', PRIMARY KEY (`id`), KEY `sales_id` (`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='订单商品'; -- ---------------------------- -- Table structure for `session` -- ---------------------------- DROP TABLE IF EXISTS `session`; CREATE TABLE `session` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户UID', `ip` char(15) DEFAULT NULL COMMENT 'IP', `error_count` tinyint(1) NOT NULL DEFAULT '0' COMMENT '密码输入错误次数', `app_id` int(11) NOT NULL DEFAULT '0' COMMENT '登录应用', `md5` char(32) DEFAULT NULL COMMENT 'md5', `type_login` int(11) NOT NULL DEFAULT '0' COMMENT '登录方式;302前台还是后台301', `type_client` int(11) NOT NULL DEFAULT '0' COMMENT '登录客户端类别;321电脑;322安卓;323IOS;324手机网页;325其他', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, KEY `uid` (`uid`,`type_login`,`type_client`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='SESSION'; -- ---------------------------- -- Table structure for `stock` -- ---------------------------- DROP TABLE IF EXISTS `stock`; CREATE TABLE `stock` ( `id` int(10) NOT NULL AUTO_INCREMENT, `warehouse_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '仓库ID', `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', `sid` int(11) NOT NULL DEFAULT '0' COMMENT '供应商ID', `number` char(100) DEFAULT NULL COMMENT '商品编号', `barcode` char(32) DEFAULT NULL COMMENT '条形码', `title` varchar(200) DEFAULT NULL COMMENT '商品标题', `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量(展示库存)', `is_user_lock` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有用户锁定库存', `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '类别', `num_available` int(11) NOT NULL DEFAULT '0' COMMENT '可用数量', `num_locking` int(10) NOT NULL DEFAULT '0' COMMENT '锁定库存', `num_user_lock` int(11) NOT NULL DEFAULT '0' COMMENT '用户锁定数量', `num_wms` int(10) NOT NULL DEFAULT '0' COMMENT 'wms库存=可用数量+用户锁定数量-锁定库存', `mark` char(32) DEFAULT NULL COMMENT '标志', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `mark` (`mark`) USING BTREE, KEY `is_user_lock` (`is_user_lock`), KEY `warehouse_product_wms_uid` (`warehouse_id`,`product_id`,`sid`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='库存'; -- ---------------------------- -- Table structure for `tag` -- ---------------------------- DROP TABLE IF EXISTS `tag`; CREATE TABLE `tag` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(50) DEFAULT NULL COMMENT '名称', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='标签'; -- ---------------------------- -- Table structure for `template` -- ---------------------------- DROP TABLE IF EXISTS `template`; CREATE TABLE `template` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板ID', `name` varchar(80) DEFAULT NULL COMMENT '模板名称(中文)', `mark` varchar(80) DEFAULT NULL COMMENT '模板名称标志(英文)(调用时使用)', `title` varchar(255) DEFAULT NULL COMMENT '邮件标题', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '模板类型1短信模板2邮箱模板', `use` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '用途', `content` text, `remark` varchar(1024) DEFAULT NULL COMMENT '备注', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `code_num` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '验证码位数', `aid` int(11) NOT NULL DEFAULT '0' COMMENT '添加人', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='会员表'; -- ---------------------------- -- Table structure for `type` -- ---------------------------- DROP TABLE IF EXISTS `type`; CREATE TABLE `type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(100) DEFAULT NULL COMMENT '名称', `name_en` char(100) DEFAULT NULL COMMENT '名称', `code` char(32) DEFAULT NULL COMMENT '代码', `mark` char(32) DEFAULT NULL COMMENT '标志', `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属类别ID', `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '上级ID、属于/上级ID', `value` int(10) NOT NULL DEFAULT '0' COMMENT '值', `content` varchar(255) DEFAULT NULL COMMENT '内容', `is_del` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除0否1是', `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', `aid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加人', `module` char(50) DEFAULT NULL COMMENT '模块', `setting` varchar(255) DEFAULT NULL COMMENT '扩展参数', `is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认', `is_child` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有子类1是0否', `is_system` tinyint(1) NOT NULL DEFAULT '0' COMMENT '系统参数禁止修改', `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示在配置页面上', PRIMARY KEY (`id`) USING BTREE, KEY `is_del` (`is_del`), KEY `parent_id` (`parent_id`), KEY `sort` (`sort`), KEY `mark` (`mark`), KEY `type_id` (`type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='类别'; -- ---------------------------- -- Table structure for `user` -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `mobile` char(11) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `username` char(30) DEFAULT NULL COMMENT '用户名', `mail` char(32) DEFAULT NULL COMMENT '邮箱', `password` char(32) DEFAULT NULL COMMENT '密码', `salt` char(6) DEFAULT NULL COMMENT '干扰码', `reg_ip` char(15) DEFAULT NULL COMMENT '注册IP', `reg_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态0正常1删除', `group_id` int(11) unsigned NOT NULL DEFAULT '410' COMMENT '用户组ID', `true_name` varchar(32) DEFAULT NULL COMMENT '真实姓名', `name` varchar(100) DEFAULT NULL COMMENT '店铺名称', `gmt_create` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间', `gmt_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE, KEY `mobile` (`mobile`), KEY `is_del` (`is_del`), KEY `username` (`username`), KEY `email` (`mail`), KEY `group_id` (`group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='用户表'; -- ---------------------------- -- Records of `user` -- ---------------------------- BEGIN; INSERT INTO `user` VALUES ('1', '', 'admin', '', 'admin', '', '', '2018-05-15 21:20:46', '0', '0', '', '', null, null); COMMIT; -- ---------------------------- -- Table structure for `user_group` -- ---------------------------- DROP TABLE IF EXISTS `user_group`; CREATE TABLE `user_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '会员用户组ID', `name` char(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '名称', `discount` int(11) NOT NULL DEFAULT '0' COMMENT '折扣率', `is_show_price` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否显示价格1是0否', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `sort` int(5) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除1是0否', `mark` char(15) DEFAULT NULL COMMENT '标志', `qq` varchar(15) DEFAULT NULL COMMENT '客服', PRIMARY KEY (`id`), KEY `is_del` (`is_del`), KEY `sort` (`sort`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会员用户组'; -- ---------------------------- -- Table structure for `user_profile` -- ---------------------------- DROP TABLE IF EXISTS `user_profile`; CREATE TABLE `user_profile` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `sex` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '性别1男2女3中性0保密', `job` varchar(50) DEFAULT NULL COMMENT '担任职务', `qq` varchar(20) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL COMMENT '电话', `county` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '国家', `province` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '省', `city` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '市', `district` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '区', `address` varchar(255) DEFAULT NULL COMMENT '地址', `wechat` varchar(20) DEFAULT NULL COMMENT '微信', `remark_admin` text COMMENT '客服备注', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='用户其他介绍'; -- ---------------------------- -- Table structure for `user_status` -- ---------------------------- DROP TABLE IF EXISTS `user_status`; CREATE TABLE `user_status` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `reg_ip` char(15) DEFAULT NULL COMMENT '注册IP', `reg_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间', `reg_type` int(11) NOT NULL DEFAULT '0' COMMENT '注册方式', `reg_app_id` int(11) NOT NULL DEFAULT '1' COMMENT '注册来源', `last_login_ip` char(15) DEFAULT NULL COMMENT '最后登录IP', `last_login_time` timestamp NULL DEFAULT NULL COMMENT '最后登录时间', `last_login_app_id` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录app_id', `login` smallint(5) NOT NULL DEFAULT '0' COMMENT '登录次数', `is_mobile` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '手机号是否已验证1已验证0未验证', `is_email` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '邮箱是否已验证1已验证0未验证', `aid_add` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '客服AID', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='用户状态'; SET FOREIGN_KEY_CHECKS = 1;
the_stack
-- 2019-05-24T17:02:27.646 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat (AD_Client_ID,AD_ImpFormat_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,FormatType,IsActive,IsManualImport,IsMultiLine,Name,Processing,Updated,UpdatedBy) VALUES (0,540036,0,541362,TO_TIMESTAMP('2019-05-24 17:02:27','YYYY-MM-DD HH24:MI:SS'),100,'S','Y','N','N','Import Replenishment','N',TO_TIMESTAMP('2019-05-24 17:02:27','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:32.899 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568036,540036,541263,0,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100,'D','.','N','Y','Erstellt',1,1,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:32.996 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568039,540036,541264,0,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100,'C','.','N','Y','Import Replenishment',2,2,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.093 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568040,540036,541265,0,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Import-Fehlermeldung',3,3,TO_TIMESTAMP('2019-05-24 17:02:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.185 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568041,540036,541266,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'C','.','N','Y','Importiert',4,4,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.275 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568042,540036,541267,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'C','.','N','Y','Aktiv',5,5,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.351 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568043,540036,541268,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'C','.','N','Y','Verarbeitet',6,6,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.453 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568044,540036,541269,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'C','.','N','Y','Process Now',7,7,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.536 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568045,540036,541270,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'D','.','N','Y','Aktualisiert',8,8,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.626 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568050,540036,541271,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'N','.','N','Y','Maximalmenge',9,9,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.724 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568051,540036,541272,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'N','.','N','Y','Mindestmenge',10,10,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.822 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568057,540036,541273,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'N','.','N','Y','Markteinführungszeit',11,11,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:33.918 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568058,540036,541274,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Lagerort-Schlüssel',12,12,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:34.012 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568059,540036,541275,0,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Lager-Schlüssel',13,13,TO_TIMESTAMP('2019-05-24 17:02:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:34.109 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568060,540036,541276,0,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Produktschlüssel',14,14,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:34.203 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568062,540036,541277,0,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Datum',15,15,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:34.296 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568063,540036,541278,0,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N','Y','Source Warehouse Value',16,16,TO_TIMESTAMP('2019-05-24 17:02:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:02:40.200 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541263 ; -- 2019-05-24T17:02:59.822 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541264 ; -- 2019-05-24T17:02:59.845 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541265 ; -- 2019-05-24T17:02:59.944 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541267 ; -- 2019-05-24T17:02:59.970 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541268 ; -- 2019-05-24T17:02:59.990 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541269 ; -- 2019-05-24T17:03:00.010 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541270 ; -- 2019-05-24T17:03:10 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541266 ; -- 2019-05-24T17:03:50.700 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=1, StartNo=1,Updated=TO_TIMESTAMP('2019-05-24 17:03:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541276 ; -- 2019-05-24T17:04:58.980 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=4, StartNo=4,Updated=TO_TIMESTAMP('2019-05-24 17:04:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541275 ; -- 2019-05-24T17:05:37.025 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=6, StartNo=6,Updated=TO_TIMESTAMP('2019-05-24 17:05:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541274 ; -- 2019-05-24T17:05:46.621 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=7, StartNo=7,Updated=TO_TIMESTAMP('2019-05-24 17:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541278 ; -- 2019-05-24T17:06:00.899 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=8, StartNo=8,Updated=TO_TIMESTAMP('2019-05-24 17:06:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541272 ; -- 2019-05-24T17:06:35.081 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=12, StartNo=12,Updated=TO_TIMESTAMP('2019-05-24 17:06:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541277 ; -- 2019-05-24T17:07:01.919 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET AD_Column_ID=568056, Name='ReplenishType',Updated=TO_TIMESTAMP('2019-05-24 17:07:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541277 ; -- 2019-05-24T17:13:57.410 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat_Row (AD_Client_ID,AD_Column_ID,AD_ImpFormat_ID,AD_ImpFormat_Row_ID,AD_Org_ID,Created,CreatedBy,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,568105,540036,541279,0,TO_TIMESTAMP('2019-05-24 17:13:57','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N',0,'Y','Organisation Key',13,13,TO_TIMESTAMP('2019-05-24 17:13:57','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2019-05-24T17:59:21.410 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ImpFormat_Row WHERE AD_ImpFormat_Row_ID=541273 ; -- 2019-05-24T17:59:30.264 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=10, StartNo=10,Updated=TO_TIMESTAMP('2019-05-24 17:59:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541277 ; -- 2019-05-24T17:59:37.377 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET SeqNo=11, StartNo=11,Updated=TO_TIMESTAMP('2019-05-24 17:59:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541279 ;
the_stack
-- for performance purposes, disable default indexes on edge and node tables. ALTER INDEX ALL ON Graph.Customers disable; ALTER INDEX ALL ON Graph.Suppliers disable; ALTER INDEX ALL ON Graph.StockItems disable; ALTER INDEX ALL ON Graph.InvoiceLines_CustomersToStockItems disable; ALTER INDEX ALL ON Graph.InvoiceLines_StockItemsToCustomers disable; ALTER INDEX ALL ON Graph.OrderLines_CustomersToStockItems disable; ALTER INDEX ALL ON Graph.OrderLines_StockItemsToCustomers disable; ALTER INDEX ALL ON Graph.PurchaseOrderLines_StockItemsToSuppliers disable; ALTER INDEX ALL ON Graph.PurchaseOrderLines_SuppliersToStockItems disable; GO -- populate node table Graph.Customers from Sales.Customers INSERT INTO Graph.Customers ( CustomerID, CustomerName, BillToCustomerID, CustomerCategoryID, BuyingGroupID, PrimaryContactPersonID, AlternateContactPersonID, DeliveryMethodID, DeliveryCityID, PostalCityID, CreditLimit, AccountOpenedDate, StandardDiscountPercentage, IsStatementSent, IsOnCreditHold, PaymentDays, PhoneNumber, WebsiteURL, DeliveryAddressLine1, DeliveryAddressLine2, DeliveryPostalCode, DeliveryLocation, PostalAddressLine1, PostalAddressLine2, PostalPostalCode, LastEditedBy, ValidFrom, ValidTo ) SELECT CustomerID, CustomerName, BillToCustomerID, CustomerCategoryID, BuyingGroupID, PrimaryContactPersonID, AlternateContactPersonID, DeliveryMethodID, DeliveryCityID, PostalCityID, CreditLimit, AccountOpenedDate, StandardDiscountPercentage, IsStatementSent, IsOnCreditHold, PaymentDays, PhoneNumber, WebsiteURL, DeliveryAddressLine1, DeliveryAddressLine2, DeliveryPostalCode, DeliveryLocation, PostalAddressLine1, PostalAddressLine2, PostalPostalCode, LastEditedBy, ValidFrom, ValidTo FROM Sales.Customers; -- populate node table Graph.StockItems from Warehouse.StockItems INSERT INTO Graph.StockItems ( StockItemID, StockItemName, SupplierID, ColorID, UnitPackageID, OuterPackageID, Size, LeadTimeDays, QuantityPerOuter, IsChillerStock, Barcode, TaxRate, UnitPrice, RecommendedRetailPrice, TypicalWeightPerUnit, MarketingComments, InternalComments, Photo, CustomFields, Tags, SearchDetails, LastEditedBy, ValidFrom, ValidTo ) SELECT StockItemID, StockItemName, SupplierID, ColorID, UnitPackageID, OuterPackageID, Size, LeadTimeDays, QuantityPerOuter, IsChillerStock, Barcode, TaxRate, UnitPrice, RecommendedRetailPrice, TypicalWeightPerUnit, MarketingComments, InternalComments, Photo, CustomFields, Tags, SearchDetails, LastEditedBy, ValidFrom, ValidTo FROM Warehouse.StockItems; -- populate node table Graph.Suppliers from Purchasing.Suppliers INSERT INTO Graph.Suppliers ( SupplierID, SupplierName, SupplierCategoryID, PrimaryContactPersonID, AlternateContactPersonID, DeliveryMethodID, DeliveryCityID, PostalCityID, SupplierReference, BankAccountName, BankAccountBranch, BankAccountCode, BankAccountNumber, BankInternationalCode, PaymentDays, InternalComments, PhoneNumber, FaxNumber, WebsiteURL, DeliveryAddressLine1, DeliveryAddressLine2, DeliveryPostalCode, DeliveryLocation, PostalAddressLine1, PostalAddressLine2, PostalPostalCode, LastEditedBy, ValidFrom, ValidTo ) SELECT SupplierID, SupplierName, SupplierCategoryID, PrimaryContactPersonID, AlternateContactPersonID, DeliveryMethodID, DeliveryCityID, PostalCityID, SupplierReference, BankAccountName, BankAccountBranch, BankAccountCode, BankAccountNumber, BankInternationalCode, PaymentDays, InternalComments, PhoneNumber, FaxNumber, WebsiteURL, DeliveryAddressLine1, DeliveryAddressLine2, DeliveryPostalCode, DeliveryLocation, PostalAddressLine1, PostalAddressLine2, PostalPostalCode, LastEditedBy, ValidFrom, ValidTo FROM Purchasing.Suppliers; go /* POPULATE EDGE TABLES */ -- populate edge table Graph.OrderLines_CustomersToStockItems from Sales.Orders and Sales.Orders INSERT INTO Graph.OrderLines_CustomersToStockItems ( $from_id, $to_id, -- from Sales.Orders OrderID, CustomerID, SalespersonPersonID, PickedByPersonID, ContactPersonID, BackorderOrderID, OrderDate, ExpectedDeliveryDate, CustomerPurchaseOrderNumber, IsUndersupplyBackordered, Comments, DeliveryInstructions, InternalComments, -- from Sales.OrderLines StockItemID, Description, PackageTypeID, Quantity, UnitPrice, TaxRate, PickedQuantity, PickingCompletedWhen, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Sales.Orders Sales.Orders.OrderID, Sales.Orders.CustomerID, Sales.Orders.SalespersonPersonID, Sales.Orders.PickedByPersonID, Sales.Orders.ContactPersonID, Sales.Orders.BackorderOrderID, Sales.Orders.OrderDate, Sales.Orders.ExpectedDeliveryDate, Sales.Orders.CustomerPurchaseOrderNumber, Sales.Orders.IsUndersupplyBackordered, Sales.Orders.Comments, Sales.Orders.DeliveryInstructions, Sales.Orders.InternalComments, -- from Sales.OrderLines Sales.OrderLines.StockItemID, Sales.OrderLines.Description, Sales.OrderLines.PackageTypeID, Sales.OrderLines.Quantity, Sales.OrderLines.UnitPrice, Sales.OrderLines.TaxRate, Sales.OrderLines.PickedQuantity, Sales.OrderLines.PickingCompletedWhen, Sales.OrderLines.LastEditedBy, Sales.OrderLines.LastEditedWhen FROM Sales.Orders join Sales.OrderLines ON Sales.Orders.OrderID = Sales.OrderLines.OrderID join (SELECT $node_id AS n1, CustomerID FROM Graph.Customers) AS a1 ON a1.CustomerID = Sales.Orders.CustomerID join (SELECT $node_id AS n2, StockItemID FROM Graph.StockItems) AS a2 ON a2.StockItemID = Sales.OrderLines.StockItemID; -- populate edge table Graph.OrderLines_StockItemsToCustomers from Sales.Orders and Sales.Orders INSERT INTO Graph.OrderLines_StockItemsToCustomers ( $from_id, $to_id, -- from Sales.Orders OrderID, CustomerID, SalespersonPersonID, PickedByPersonID, ContactPersonID, BackorderOrderID, OrderDate, ExpectedDeliveryDate, CustomerPurchaseOrderNumber, IsUndersupplyBackordered, Comments, DeliveryInstructions, InternalComments, -- from Sales.OrderLines StockItemID, Description, PackageTypeID, Quantity, UnitPrice, TaxRate, PickedQuantity, PickingCompletedWhen, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Sales.Orders Sales.Orders.OrderID, Sales.Orders.CustomerID, Sales.Orders.SalespersonPersonID, Sales.Orders.PickedByPersonID, Sales.Orders.ContactPersonID, Sales.Orders.BackorderOrderID, Sales.Orders.OrderDate, Sales.Orders.ExpectedDeliveryDate, Sales.Orders.CustomerPurchaseOrderNumber, Sales.Orders.IsUndersupplyBackordered, Sales.Orders.Comments, Sales.Orders.DeliveryInstructions, Sales.Orders.InternalComments, -- from Sales.OrderLines Sales.OrderLines.StockItemID, Sales.OrderLines.Description, Sales.OrderLines.PackageTypeID, Sales.OrderLines.Quantity, Sales.OrderLines.UnitPrice, Sales.OrderLines.TaxRate, Sales.OrderLines.PickedQuantity, Sales.OrderLines.PickingCompletedWhen, Sales.OrderLines.LastEditedBy, Sales.OrderLines.LastEditedWhen FROM Sales.Orders join Sales.OrderLines ON Sales.Orders.OrderID = Sales.OrderLines.OrderID join (SELECT $node_id AS n1, StockItemID FROM Graph.StockItems) AS a1 ON a1.StockItemID = Sales.OrderLines.StockItemID join (SELECT $node_id AS n2, CustomerID FROM Graph.Customers) AS a2 ON a2.CustomerID = Sales.Orders.CustomerID; -- populate edge table Graph.InvoiceLines_CustomersToStockItems from Sales.InvoiceLines and Sales.InvoiceLines INSERT INTO Graph.InvoiceLines_CustomersToStockItems ( $from_id, $to_id, -- from Sales.Invoices InvoiceID, CustomerID, BillToCustomerID, OrderID, DeliveryMethodID, ContactPersonID, AccountsPersonID, SalespersonPersonID, PackedByPersonID, InvoiceDate, CustomerPurchaseOrderNumber, IsCreditNote, CreditNoteReason, Comments, DeliveryInstructions, InternalComments, TotalDryItems, TotalChillerItems, DeliveryRun, RunPosition, ReturnedDeliveryData, ConfirmedDeliveryTime, ConfirmedReceivedBy, -- from Sales.InvoiceLines InvoiceLineID, StockItemID, Description, PackageTypeID, Quantity, UnitPrice, TaxRate, TaxAmount, LineProfit, ExtendedPrice, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Sales.Invoices Sales.Invoices.InvoiceID, Sales.Invoices.CustomerID, Sales.Invoices.BillToCustomerID, Sales.Invoices.OrderID, Sales.Invoices.DeliveryMethodID, Sales.Invoices.ContactPersonID, Sales.Invoices.AccountsPersonID, Sales.Invoices.SalespersonPersonID, Sales.Invoices.PackedByPersonID, Sales.Invoices.InvoiceDate, Sales.Invoices.CustomerPurchaseOrderNumber, Sales.Invoices.IsCreditNote, Sales.Invoices.CreditNoteReason, Sales.Invoices.Comments, Sales.Invoices.DeliveryInstructions, Sales.Invoices.InternalComments, Sales.Invoices.TotalDryItems, Sales.Invoices.TotalChillerItems, Sales.Invoices.DeliveryRun, Sales.Invoices.RunPosition, Sales.Invoices.ReturnedDeliveryData, Sales.Invoices.ConfirmedDeliveryTime, Sales.Invoices.ConfirmedReceivedBy, -- from Sales.InvoiceLines Sales.InvoiceLines.InvoiceLineID, Sales.InvoiceLines.StockItemID, Sales.InvoiceLines.Description, Sales.InvoiceLines.PackageTypeID, Sales.InvoiceLines.Quantity, Sales.InvoiceLines.UnitPrice, Sales.InvoiceLines.TaxRate, Sales.InvoiceLines.TaxAmount, Sales.InvoiceLines.LineProfit, Sales.InvoiceLines.ExtendedPrice, Sales.InvoiceLines.LastEditedBy, Sales.InvoiceLines.LastEditedWhen FROM Sales.Invoices join Sales.InvoiceLines ON Sales.Invoices.InvoiceID = Sales.InvoiceLines.InvoiceID join (SELECT $node_id AS n1, CustomerID FROM Graph.Customers) AS a1 ON a1.CustomerID = Sales.Invoices.CustomerID join (SELECT $node_id AS n2, StockItemID FROM Graph.StockItems) AS a2 ON a2.StockItemID = Sales.InvoiceLines.StockItemID; -- populate edge table Graph.InvoiceLines_StockItemsToCustomers from Sales.InvoiceLines and Sales.InvoiceLines INSERT INTO Graph.InvoiceLines_StockItemsToCustomers ( $from_id, $to_id, -- from Sales.Invoices InvoiceID, CustomerID, BillToCustomerID, OrderID, DeliveryMethodID, ContactPersonID, AccountsPersonID, SalespersonPersonID, PackedByPersonID, InvoiceDate, CustomerPurchaseOrderNumber, IsCreditNote, CreditNoteReason, Comments, DeliveryInstructions, InternalComments, TotalDryItems, TotalChillerItems, DeliveryRun, RunPosition, ReturnedDeliveryData, ConfirmedDeliveryTime, ConfirmedReceivedBy, -- from Sales.InvoiceLines InvoiceLineID, StockItemID, Description, PackageTypeID, Quantity, UnitPrice, TaxRate, TaxAmount, LineProfit, ExtendedPrice, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Sales.Invoices Sales.Invoices.InvoiceID, Sales.Invoices.CustomerID, Sales.Invoices.BillToCustomerID, Sales.Invoices.OrderID, Sales.Invoices.DeliveryMethodID, Sales.Invoices.ContactPersonID, Sales.Invoices.AccountsPersonID, Sales.Invoices.SalespersonPersonID, Sales.Invoices.PackedByPersonID, Sales.Invoices.InvoiceDate, Sales.Invoices.CustomerPurchaseOrderNumber, Sales.Invoices.IsCreditNote, Sales.Invoices.CreditNoteReason, Sales.Invoices.Comments, Sales.Invoices.DeliveryInstructions, Sales.Invoices.InternalComments, Sales.Invoices.TotalDryItems, Sales.Invoices.TotalChillerItems, Sales.Invoices.DeliveryRun, Sales.Invoices.RunPosition, Sales.Invoices.ReturnedDeliveryData, Sales.Invoices.ConfirmedDeliveryTime, Sales.Invoices.ConfirmedReceivedBy, -- from Sales.InvoiceLines Sales.InvoiceLines.InvoiceLineID, Sales.InvoiceLines.StockItemID, Sales.InvoiceLines.Description, Sales.InvoiceLines.PackageTypeID, Sales.InvoiceLines.Quantity, Sales.InvoiceLines.UnitPrice, Sales.InvoiceLines.TaxRate, Sales.InvoiceLines.TaxAmount, Sales.InvoiceLines.LineProfit, Sales.InvoiceLines.ExtendedPrice, Sales.InvoiceLines.LastEditedBy, Sales.InvoiceLines.LastEditedWhen FROM Sales.Invoices join Sales.InvoiceLines ON Sales.Invoices.InvoiceID = Sales.InvoiceLines.InvoiceID join (SELECT $node_id AS n1, StockItemID FROM Graph.StockItems) AS a1 ON a1.StockItemID = Sales.InvoiceLines.StockItemID join (SELECT $node_id AS n2, CustomerID FROM Graph.Customers) AS a2 ON a2.CustomerID = Sales.Invoices.CustomerID; -- populate edge table Graph.PurchaseOrderLines_StockItemsToSuppliers from Purchasing.PurchaseOrders and Purchasing.PurchaseOrderLines INSERT INTO Graph.PurchaseOrderLines_StockItemsToSuppliers ( $from_id, $to_id, -- from Purchasing.PurchaseOrders PurchaseOrderID, SupplierID, OrderDate, DeliveryMethodID, ContactPersonID, ExpectedDeliveryDate, SupplierReference, IsOrderFinalized, Comments, InternalComments, -- from Purchasing.PurchaseOrderLines PurchaseOrderLineID, StockItemID, OrderedOuters, Description, ReceivedOuters, PackageTypeID, ExpectedUnitPricePerOuter, LastReceiptDate, IsOrderLineFinalized, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Purchasing.PurchaseOrders. Purchasing.PurchaseOrders.PurchaseOrderID, Purchasing.PurchaseOrders.SupplierID, Purchasing.PurchaseOrders.OrderDate, Purchasing.PurchaseOrders.DeliveryMethodID, Purchasing.PurchaseOrders.ContactPersonID, Purchasing.PurchaseOrders.ExpectedDeliveryDate, Purchasing.PurchaseOrders.SupplierReference, Purchasing.PurchaseOrders.IsOrderFinalized, Purchasing.PurchaseOrders.Comments, Purchasing.PurchaseOrders.InternalComments, -- from Purchasing.PurchaseOrderLines Purchasing.PurchaseOrderLines.PurchaseOrderLineID, Purchasing.PurchaseOrderLines.StockItemID, Purchasing.PurchaseOrderLines.OrderedOuters, Purchasing.PurchaseOrderLines.Description, Purchasing.PurchaseOrderLines.ReceivedOuters, Purchasing.PurchaseOrderLines.PackageTypeID, Purchasing.PurchaseOrderLines.ExpectedUnitPricePerOuter, Purchasing.PurchaseOrderLines.LastReceiptDate, Purchasing.PurchaseOrderLines.IsOrderLineFinalized, Purchasing.PurchaseOrderLines.LastEditedBy, Purchasing.PurchaseOrderLines.LastEditedWhen FROM Purchasing.PurchaseOrders join Purchasing.PurchaseOrderLines ON Purchasing.PurchaseOrders.PurchaseOrderID = Purchasing.PurchaseOrderLines.PurchaseOrderID join (SELECT $node_id AS n1, StockItemID FROM Graph.StockItems) AS a1 ON a1.StockItemID = Purchasing.PurchaseOrderLines.StockItemID join (SELECT $node_id AS n2, SupplierID FROM Graph.Suppliers) AS a2 ON a2.SupplierID = Purchasing.PurchaseOrders.SupplierID; -- populate edge table Graph.PurchaseOrderLines_SuppliersToStockItems from Purchasing.PurchaseOrders and Purchasing.PurchaseOrderLines INSERT INTO Graph.PurchaseOrderLines_SuppliersToStockItems ( $from_id, $to_id, -- from Purchasing.PurchaseOrders PurchaseOrderID, SupplierID, OrderDate, DeliveryMethodID, ContactPersonID, ExpectedDeliveryDate, SupplierReference, IsOrderFinalized, Comments, InternalComments, -- from Purchasing.PurchaseOrderLines PurchaseOrderLineID, StockItemID, OrderedOuters, Description, ReceivedOuters, PackageTypeID, ExpectedUnitPricePerOuter, LastReceiptDate, IsOrderLineFinalized, LastEditedBy, LastEditedWhen ) SELECT a1.n1, a2.n2, -- from Purchasing.PurchaseOrders. Purchasing.PurchaseOrders.PurchaseOrderID, Purchasing.PurchaseOrders.SupplierID, Purchasing.PurchaseOrders.OrderDate, Purchasing.PurchaseOrders.DeliveryMethodID, Purchasing.PurchaseOrders.ContactPersonID, Purchasing.PurchaseOrders.ExpectedDeliveryDate, Purchasing.PurchaseOrders.SupplierReference, Purchasing.PurchaseOrders.IsOrderFinalized, Purchasing.PurchaseOrders.Comments, Purchasing.PurchaseOrders.InternalComments, -- from Purchasing.PurchaseOrderLines Purchasing.PurchaseOrderLines.PurchaseOrderLineID, Purchasing.PurchaseOrderLines.StockItemID, Purchasing.PurchaseOrderLines.OrderedOuters, Purchasing.PurchaseOrderLines.Description, Purchasing.PurchaseOrderLines.ReceivedOuters, Purchasing.PurchaseOrderLines.PackageTypeID, Purchasing.PurchaseOrderLines.ExpectedUnitPricePerOuter, Purchasing.PurchaseOrderLines.LastReceiptDate, Purchasing.PurchaseOrderLines.IsOrderLineFinalized, Purchasing.PurchaseOrderLines.LastEditedBy, Purchasing.PurchaseOrderLines.LastEditedWhen FROM Purchasing.PurchaseOrders join Purchasing.PurchaseOrderLines ON Purchasing.PurchaseOrders.PurchaseOrderID = Purchasing.PurchaseOrderLines.PurchaseOrderID join (SELECT $node_id AS n1, SupplierID FROM Graph.Suppliers) AS a1 ON a1.SupplierID = Purchasing.PurchaseOrders.SupplierID join (SELECT $node_id AS n2, StockItemID FROM Graph.StockItems) AS a2 ON a2.StockItemID = Purchasing.PurchaseOrderLines.StockItemID; GO /* Rebuild default indexes on node table. We advise against rebuilding default indexes on edge tables unless you eant to create a global view of all edge tables. Add nonclustered indexes */ ALTER INDEX ALL ON Graph.Customers rebuild; ALTER INDEX ALL ON Graph.Suppliers rebuild; ALTER INDEX ALL ON Graph.StockItems rebuild; GO CREATE INDEX IX_InvoiceLines_CustomersToStockItems ON Graph.InvoiceLines_CustomersToStockItems ($from_id, $to_id); CREATE INDEX IX_InvoiceLines_StockItemsToCustomers ON Graph.InvoiceLines_StockItemsToCustomers ($from_id, $to_id); CREATE INDEX IX_OrderLines_CustomersToStockItems ON Graph.OrderLines_CustomersToStockItems ($from_id, $to_id); CREATE INDEX IX_OrderLines_StockItemsToCustomers ON Graph.OrderLines_StockItemsToCustomers ($from_id, $to_id); CREATE INDEX IX_PurchaseOrderLines_StockItemsToSuppliers ON Graph.PurchaseOrderLines_StockItemsToSuppliers ($from_id, $to_id); CREATE INDEX IX_PurchaseOrderLines_SuppliersToStockItems ON Graph.PurchaseOrderLines_SuppliersToStockItems ($from_id, $to_id); GO
the_stack
-- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: xiaoego -- ------------------------------------------------------ -- Server version 5.6.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `t_address` -- DROP TABLE IF EXISTS `t_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_address` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `consignee` varchar(60) NOT NULL COMMENT '收货人', `cellphone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机', `gender` enum('male','woman') NOT NULL DEFAULT 'male', `school_id` int(10) unsigned NOT NULL COMMENT '学校id', `building_id` int(10) unsigned NOT NULL COMMENT '建筑id', `room` varchar(60) NOT NULL COMMENT '门牌号', `user_id` int(10) unsigned NOT NULL COMMENT '用户id', `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `school_id` (`school_id`), KEY `building_id` (`building_id`), KEY `user_id` (`user_id`), KEY `created_at` (`created_at`,`updated_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='收货地址'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_address` -- LOCK TABLES `t_address` WRITE; /*!40000 ALTER TABLE `t_address` DISABLE KEYS */; /*!40000 ALTER TABLE `t_address` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_admin` -- DROP TABLE IF EXISTS `t_admin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_admin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL COMMENT '用户名', `real_name` varchar(20) NOT NULL COMMENT '真实姓名', `auth_key` varchar(32) NOT NULL, `password_hash` varchar(255) NOT NULL COMMENT '密码', `access_token` varchar(255) DEFAULT NULL, `gender` enum('male','woman','other') NOT NULL DEFAULT 'male' COMMENT '性别', `email` varchar(255) NOT NULL DEFAULT '' COMMENT '邮箱', `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机', `status` enum('active','blocked') NOT NULL DEFAULT 'active' COMMENT '状态', `created_at` int(10) unsigned NOT NULL COMMENT '创建时间', `updated_at` int(10) unsigned NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='管理员'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_admin` -- LOCK TABLES `t_admin` WRITE; /*!40000 ALTER TABLE `t_admin` DISABLE KEYS */; INSERT INTO `t_admin` VALUES (1,'admin','管理员','djzEmNQp6b82ZjedCfQZyF2NZNRKcfgz','$2y$13$t8ei8oClEZiZwxdEvcaNKu.DeOJcX1xsYekv1rHcWoocVCfUhkZm2',NULL,'male','admin@xiaoego.com','18851510363','active',1433420037,1433652786); /*!40000 ALTER TABLE `t_admin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_apply` -- DROP TABLE IF EXISTS `t_apply`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_apply` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `apply_sn` char(12) NOT NULL COMMENT '申请单号', `store_id` int(10) unsigned NOT NULL COMMENT '店铺id', `fee` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '总价', `status` enum('pending','rejected','passed','cancelled','completed') NOT NULL COMMENT '状态', `remark` varchar(255) DEFAULT NULL, `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `apply_sn_UNIQUE` (`apply_sn`), KEY `store_id` (`store_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='采购申请表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_apply` -- LOCK TABLES `t_apply` WRITE; /*!40000 ALTER TABLE `t_apply` DISABLE KEYS */; /*!40000 ALTER TABLE `t_apply` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_apply_goods` -- DROP TABLE IF EXISTS `t_apply_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_apply_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `apply_id` int(10) unsigned NOT NULL COMMENT '采购申请id', `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', `name` varchar(60) NOT NULL COMMENT '商品名称', `category` varchar(60) NOT NULL COMMENT '商品分类', `count` int(10) unsigned NOT NULL COMMENT '数量', `price` decimal(8,2) unsigned NOT NULL COMMENT '单价', `cover` varchar(20) NOT NULL COMMENT '封面', `unit` varchar(20) NOT NULL DEFAULT '' COMMENT '单位', PRIMARY KEY (`id`), KEY `apply_id` (`apply_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺采购商品表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_apply_goods` -- LOCK TABLES `t_apply_goods` WRITE; /*!40000 ALTER TABLE `t_apply_goods` DISABLE KEYS */; /*!40000 ALTER TABLE `t_apply_goods` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_apply_log` -- DROP TABLE IF EXISTS `t_apply_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_apply_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `apply_id` int(10) unsigned NOT NULL COMMENT '采购申请id', `remark` varchar(255) NOT NULL COMMENT '备注', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `apply_id` (`apply_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺采购申请记录'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_apply_log` -- LOCK TABLES `t_apply_log` WRITE; /*!40000 ALTER TABLE `t_apply_log` DISABLE KEYS */; /*!40000 ALTER TABLE `t_apply_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_building` -- DROP TABLE IF EXISTS `t_building`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_building` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL, `school_id` int(10) unsigned NOT NULL, `status` enum('enabled','disabled') NOT NULL DEFAULT 'enabled', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `school_id` (`school_id`), KEY `status` (`status`), KEY `created_at` (`created_at`,`updated_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学校建筑'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_building` -- LOCK TABLES `t_building` WRITE; /*!40000 ALTER TABLE `t_building` DISABLE KEYS */; /*!40000 ALTER TABLE `t_building` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_cart_goods` -- DROP TABLE IF EXISTS `t_cart_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_cart_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL COMMENT '用户id', `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', `store_id` int(10) unsigned NOT NULL COMMENT '营业点id', `price` decimal(8,2) unsigned NOT NULL COMMENT '加入购物车时的商品价格', `count` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '商品数量', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`,`goods_id`), KEY `created_at` (`created_at`,`updated_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='购物车商品'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_cart_goods` -- LOCK TABLES `t_cart_goods` WRITE; /*!40000 ALTER TABLE `t_cart_goods` DISABLE KEYS */; /*!40000 ALTER TABLE `t_cart_goods` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_category` -- DROP TABLE IF EXISTS `t_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL COMMENT '名称', `slug` varchar(60) NOT NULL COMMENT '唯一字符串', `sort` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `slug` (`slug`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品分类'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_category` -- LOCK TABLES `t_category` WRITE; /*!40000 ALTER TABLE `t_category` DISABLE KEYS */; INSERT INTO `t_category` VALUES (1,'充饥','hunger',1),(2,'解馋','glutton',2),(3,'水饮','thirst',3),(4,'用品','articles',4); /*!40000 ALTER TABLE `t_category` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_feedback` -- DROP TABLE IF EXISTS `t_feedback`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_feedback` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `content` varchar(255) NOT NULL COMMENT '内容', `mobile` char(11) NOT NULL COMMENT '手机号', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户反馈'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_feedback` -- LOCK TABLES `t_feedback` WRITE; /*!40000 ALTER TABLE `t_feedback` DISABLE KEYS */; /*!40000 ALTER TABLE `t_feedback` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_goods` -- DROP TABLE IF EXISTS `t_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL COMMENT '商品名称', `store_id` int(10) unsigned NOT NULL COMMENT '营业点id', `category_id` int(10) unsigned NOT NULL COMMENT '分类id', `cover` varchar(20) NOT NULL COMMENT '封面图片', `price` decimal(8,2) unsigned NOT NULL COMMENT '现价', `price_original` decimal(8,2) unsigned DEFAULT NULL COMMENT '原价', `cost` decimal(10,4) unsigned NOT NULL DEFAULT '0.0000' COMMENT '成本价', `description` varchar(255) NOT NULL DEFAULT '' COMMENT '描述', `status` enum('normal','off_shelves','deleted') NOT NULL DEFAULT 'normal' COMMENT '商品状态', `surplus` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '库存', `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '月销量', `unit` varchar(10) NOT NULL DEFAULT '' COMMENT '数量单位', `is_new` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否最新商品', `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否热门商品', `is_promotion` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否促销品', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `category_id` (`category_id`), KEY `store_id` (`store_id`), KEY `status` (`status`), KEY `created_at` (`created_at`,`updated_at`), KEY `is_new` (`is_new`,`is_hot`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_goods` -- LOCK TABLES `t_goods` WRITE; /*!40000 ALTER TABLE `t_goods` DISABLE KEYS */; /*!40000 ALTER TABLE `t_goods` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_goods_img` -- DROP TABLE IF EXISTS `t_goods_img`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_goods_img` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL COMMENT '图片名', `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', PRIMARY KEY (`id`), KEY `name` (`name`,`goods_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品图片'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_goods_img` -- LOCK TABLES `t_goods_img` WRITE; /*!40000 ALTER TABLE `t_goods_img` DISABLE KEYS */; /*!40000 ALTER TABLE `t_goods_img` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_goods_surplus` -- DROP TABLE IF EXISTS `t_goods_surplus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_goods_surplus` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', `surplus_before` int(10) unsigned NOT NULL COMMENT '之前库存', `amount` int(10) NOT NULL COMMENT '变化库存', `surplus_after` int(10) unsigned NOT NULL COMMENT '之后库存', `remark` varchar(255) NOT NULL COMMENT '备注', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `goods_id` (`goods_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品库存变化记录'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_goods_surplus` -- LOCK TABLES `t_goods_surplus` WRITE; /*!40000 ALTER TABLE `t_goods_surplus` DISABLE KEYS */; /*!40000 ALTER TABLE `t_goods_surplus` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_member` -- DROP TABLE IF EXISTS `t_member`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_member` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(10) unsigned NOT NULL COMMENT '营业点id', `username` varchar(20) NOT NULL COMMENT '用户名', `real_name` varchar(20) NOT NULL COMMENT '真实姓名', `auth_key` varchar(32) NOT NULL, `password_hash` varchar(255) NOT NULL COMMENT '密码', `access_token` varchar(255) DEFAULT NULL, `gender` enum('male','woman','other') NOT NULL DEFAULT 'male' COMMENT '性别', `email` varchar(255) NOT NULL DEFAULT '' COMMENT '邮箱', `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机', `status` enum('active','blocked') NOT NULL DEFAULT 'active' COMMENT '状态', `created_at` int(10) unsigned NOT NULL COMMENT '创建时间', `updated_at` int(10) unsigned NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `username_UNIQUE` (`username`), KEY `status` (`status`), KEY `store_id` (`store_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺人员'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_member` -- LOCK TABLES `t_member` WRITE; /*!40000 ALTER TABLE `t_member` DISABLE KEYS */; /*!40000 ALTER TABLE `t_member` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_migration` -- DROP TABLE IF EXISTS `t_migration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_migration` ( `version` varchar(180) NOT NULL, `apply_time` int(11) DEFAULT NULL, PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_migration` -- LOCK TABLES `t_migration` WRITE; /*!40000 ALTER TABLE `t_migration` DISABLE KEYS */; /*!40000 ALTER TABLE `t_migration` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_order` -- DROP TABLE IF EXISTS `t_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_sn` char(14) NOT NULL COMMENT '订单编号', `user_id` int(10) unsigned NOT NULL COMMENT '用户id', `store_id` int(10) unsigned NOT NULL COMMENT '营业点id', `school_id` int(10) unsigned NOT NULL COMMENT '学校id', `status` enum('unshipped','shipped','unpaid','completed','cancelled','deleted') NOT NULL COMMENT '订单状态', `payment` enum('online','offline') NOT NULL COMMENT '支付方式', `fee` decimal(8,2) unsigned NOT NULL COMMENT '总价', `real_fee` decimal(8,2) unsigned NOT NULL COMMENT '实付款', `preferential` enum('down','gift','none') NOT NULL COMMENT '优惠类别', `down_val` decimal(4,2) unsigned DEFAULT NULL COMMENT '满减优惠金额', `gift_val` varchar(60) DEFAULT NULL COMMENT '满送优惠礼品', `new_down_val` decimal(4,2) unsigned DEFAULT NULL COMMENT '新用户立减优惠金额', `book_time` int(10) unsigned DEFAULT NULL COMMENT '预定时间', `remark` varchar(255) DEFAULT NULL COMMENT '备注', `cancelled_msg` varchar(60) DEFAULT NULL COMMENT '取消说明', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `order_sn` (`order_sn`), KEY `user_id` (`user_id`,`store_id`,`status`,`created_at`,`updated_at`), KEY `payment` (`payment`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_order` -- LOCK TABLES `t_order` WRITE; /*!40000 ALTER TABLE `t_order` DISABLE KEYS */; /*!40000 ALTER TABLE `t_order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_order_address` -- DROP TABLE IF EXISTS `t_order_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_order_address` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_id` int(10) unsigned NOT NULL COMMENT '订单id', `consignee` varchar(60) NOT NULL COMMENT '收货人', `cellphone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机', `gender` enum('male','woman') NOT NULL, `school` varchar(60) NOT NULL COMMENT '学校', `building` varchar(60) NOT NULL COMMENT '建筑', `room` varchar(60) NOT NULL COMMENT '门牌号', PRIMARY KEY (`id`), KEY `order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单收货地址表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_order_address` -- LOCK TABLES `t_order_address` WRITE; /*!40000 ALTER TABLE `t_order_address` DISABLE KEYS */; /*!40000 ALTER TABLE `t_order_address` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_order_goods` -- DROP TABLE IF EXISTS `t_order_goods`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_order_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_id` int(10) unsigned NOT NULL COMMENT '订单id', `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', `name` varchar(60) NOT NULL COMMENT '商品名称', `category` varchar(60) NOT NULL COMMENT '分类', `price` decimal(8,2) unsigned NOT NULL COMMENT '单价', `cost` decimal(10,4) unsigned NOT NULL COMMENT '成本价', `count` int(10) unsigned NOT NULL COMMENT '数量', `cover` varchar(20) NOT NULL COMMENT '封面图片', `unit` varchar(10) NOT NULL DEFAULT '' COMMENT '数量单位', PRIMARY KEY (`id`), KEY `order_id` (`order_id`,`goods_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单商品表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_order_goods` -- LOCK TABLES `t_order_goods` WRITE; /*!40000 ALTER TABLE `t_order_goods` DISABLE KEYS */; /*!40000 ALTER TABLE `t_order_goods` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_order_volume` -- DROP TABLE IF EXISTS `t_order_volume`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_order_volume` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `volume` decimal(8,2) unsigned NOT NULL COMMENT '交易额', `cost` decimal(10,4) unsigned NOT NULL COMMENT '成本', `profit` decimal(10,4) NOT NULL COMMENT '利润', `order_id` int(10) unsigned NOT NULL COMMENT '订单id', `payment` enum('online','offline') NOT NULL COMMENT '支付方式', `user_id` int(10) unsigned NOT NULL COMMENT '买家id', `store_id` int(10) unsigned NOT NULL COMMENT '店铺id', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `payment` (`payment`), KEY `created_at` (`created_at`), KEY `updated_at` (`updated_at`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易记录'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_order_volume` -- LOCK TABLES `t_order_volume` WRITE; /*!40000 ALTER TABLE `t_order_volume` DISABLE KEYS */; /*!40000 ALTER TABLE `t_order_volume` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_purchase` -- DROP TABLE IF EXISTS `t_purchase`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_purchase` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `goods_id` int(10) unsigned NOT NULL COMMENT '商品id', `store_id` int(10) unsigned NOT NULL COMMENT '店铺id', `count` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '采购数量', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `store_id` (`store_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺采购表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_purchase` -- LOCK TABLES `t_purchase` WRITE; /*!40000 ALTER TABLE `t_purchase` DISABLE KEYS */; /*!40000 ALTER TABLE `t_purchase` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_school` -- DROP TABLE IF EXISTS `t_school`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_school` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL COMMENT '学校名称', `created_at` int(10) unsigned NOT NULL, `updated_at` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='学校表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_school` -- LOCK TABLES `t_school` WRITE; /*!40000 ALTER TABLE `t_school` DISABLE KEYS */; /*!40000 ALTER TABLE `t_school` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_store` -- DROP TABLE IF EXISTS `t_store`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_store` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(20) NOT NULL COMMENT '商店名称', `school_id` int(10) unsigned NOT NULL COMMENT '学校id', `address` varchar(255) NOT NULL DEFAULT '' COMMENT '地址', `cellphone` varchar(20) NOT NULL DEFAULT '' COMMENT '手机', `telephone` varchar(20) NOT NULL DEFAULT '' COMMENT '电话', `notice` varchar(255) NOT NULL DEFAULT '' COMMENT '公告', `status` enum('active','rest','disabled') NOT NULL DEFAULT 'active' COMMENT '状态', `hours` varchar(60) NOT NULL DEFAULT '' COMMENT '营业时间', `has_book` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持预定', `has_down` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持满减优惠', `has_gift` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否支持满送优惠', `has_least` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有最低购买价', `down_upper` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '满减优惠价', `down_val` decimal(4,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '满减优惠金额', `gift_upper` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '满送优惠价', `gift_val` varchar(60) NOT NULL DEFAULT '' COMMENT '满送优惠礼品', `least_val` decimal(4,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低购买金额', `layout` enum('merger','open') NOT NULL DEFAULT 'merger' COMMENT '布局', `enable_sms` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否启用短信提醒', `auto_toggle` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否自动切换休息营业状态', `toggle_type` enum('active','rest','both') DEFAULT 'active' COMMENT '切换类型', `created_at` int(10) unsigned NOT NULL COMMENT '创建时间', `updated_at` int(10) unsigned NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `status` (`status`), KEY `auto_toggle` (`auto_toggle`), KEY `toggle_type` (`toggle_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='营业点'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_store` -- LOCK TABLES `t_store` WRITE; /*!40000 ALTER TABLE `t_store` DISABLE KEYS */; /*!40000 ALTER TABLE `t_store` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_tag` -- DROP TABLE IF EXISTS `t_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_tag` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `store_id` int(10) unsigned NOT NULL COMMENT '营业点id', `name` varchar(8) NOT NULL COMMENT 'tag名称', `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', `created_at` int(10) unsigned NOT NULL COMMENT '创建时间', `updated_at` int(10) unsigned NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='营业点tag'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_tag` -- LOCK TABLES `t_tag` WRITE; /*!40000 ALTER TABLE `t_tag` DISABLE KEYS */; /*!40000 ALTER TABLE `t_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_user` -- DROP TABLE IF EXISTS `t_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mobile` char(11) NOT NULL COMMENT '手机号', `nickname` varchar(60) DEFAULT NULL COMMENT '昵称', `auth_key` varchar(32) NOT NULL, `password_hash` varchar(255) NOT NULL, `password_reset_token` varchar(255) DEFAULT NULL, `access_token` varchar(255) DEFAULT NULL, `gender` enum('male','woman','other') NOT NULL DEFAULT 'male' COMMENT '性别', `email` varchar(60) DEFAULT NULL COMMENT '邮箱', `status` enum('active','blocked') NOT NULL DEFAULT 'active' COMMENT '状态', `has_new_down` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否还有新用户立减优惠资格', `created_at` int(10) unsigned NOT NULL COMMENT '创建时间', `updated_at` int(10) unsigned NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `username` (`mobile`), UNIQUE KEY `email` (`email`), KEY `created_at` (`created_at`,`updated_at`), KEY `gender` (`gender`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_user` -- LOCK TABLES `t_user` WRITE; /*!40000 ALTER TABLE `t_user` DISABLE KEYS */; /*!40000 ALTER TABLE `t_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `t_user_account` -- DROP TABLE IF EXISTS `t_user_account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_user_account` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '余额', `password_hash` varchar(255) DEFAULT NULL COMMENT '支付密码', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户账户'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `t_user_account` -- LOCK TABLES `t_user_account` WRITE; /*!40000 ALTER TABLE `t_user_account` DISABLE KEYS */; /*!40000 ALTER TABLE `t_user_account` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-01-02 22:50:01
the_stack
-- 2021-02-18T17:44:21.082Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='RfQ für Auswahl erstellen',Updated=TO_TIMESTAMP('2021-02-18 19:44:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584795 ; -- 2021-02-18T17:45:27.187Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Anfrage erstellt', PrintName='Anfrage erstellt',Updated=TO_TIMESTAMP('2021-02-18 19:45:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578760 AND AD_Language='de_CH' ; -- 2021-02-18T17:45:27.195Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578760,'de_CH') ; -- 2021-02-18T17:45:30.444Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Anfrage erstellt', PrintName='Anfrage erstellt',Updated=TO_TIMESTAMP('2021-02-18 19:45:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578760 AND AD_Language='de_DE' ; -- 2021-02-18T17:45:30.447Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578760,'de_DE') ; -- 2021-02-18T17:45:30.457Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_ad_element_on_ad_element_trl_update(578760,'de_DE') ; -- 2021-02-18T17:45:30.460Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='IsRequisitionCreated', Name='Anfrage erstellt', Description=NULL, Help=NULL WHERE AD_Element_ID=578760 ; -- 2021-02-18T17:45:30.462Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsRequisitionCreated', Name='Anfrage erstellt', Description=NULL, Help=NULL, AD_Element_ID=578760 WHERE UPPER(ColumnName)='ISREQUISITIONCREATED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2021-02-18T17:45:30.465Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='IsRequisitionCreated', Name='Anfrage erstellt', Description=NULL, Help=NULL WHERE AD_Element_ID=578760 AND IsCentrallyMaintained='Y' ; -- 2021-02-18T17:45:30.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Anfrage erstellt', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578760) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578760) ; -- 2021-02-18T17:45:30.484Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Anfrage erstellt', Name='Anfrage erstellt' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578760) ; -- 2021-02-18T17:45:30.487Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET Name='Anfrage erstellt', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578760 ; -- 2021-02-18T17:45:30.490Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_WINDOW SET Name='Anfrage erstellt', Description=NULL, Help=NULL WHERE AD_Element_ID = 578760 ; -- 2021-02-18T17:45:30.492Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET Name = 'Anfrage erstellt', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578760 ; -- 2021-02-18T17:45:40.138Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='RfQ Created', PrintName='RfQ Created',Updated=TO_TIMESTAMP('2021-02-18 19:45:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578760 AND AD_Language='en_US' ; -- 2021-02-18T17:45:40.143Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578760,'en_US') ; -- 2021-02-18T17:45:45.146Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Anfrage erstellt', PrintName='Anfrage erstellt',Updated=TO_TIMESTAMP('2021-02-18 19:45:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578760 AND AD_Language='nl_NL' ; -- 2021-02-18T17:45:45.149Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578760,'nl_NL') ; -- 2021-02-18T17:47:46.217Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET Name='Anfrage',Updated=TO_TIMESTAMP('2021-02-18 19:47:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=541008 ; -- 2021-02-18T17:47:46.247Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl trl SET Description=NULL, DocumentNote=NULL, Name='Anfrage', PrintName='Bedarfsmeldung' WHERE C_DocType_ID=541008 AND ( trl.isTranslated = 'N' OR exists(select 1 from ad_language lang where lang.ad_language = trl.ad_language and lang.isBaseLanguage = 'Y') ) ; -- 2021-02-18T17:47:48.628Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET PrintName='Anfrage',Updated=TO_TIMESTAMP('2021-02-18 19:47:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=541008 ; -- 2021-02-18T17:47:48.631Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl trl SET Description=NULL, DocumentNote=NULL, Name='Anfrage', PrintName='Anfrage' WHERE C_DocType_ID=541008 AND ( trl.isTranslated = 'N' OR exists(select 1 from ad_language lang where lang.ad_language = trl.ad_language and lang.isBaseLanguage = 'Y') ) ; -- 2021-02-18T17:52:54.933Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET Name='RfQ',Updated=TO_TIMESTAMP('2021-02-18 19:52:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=2188223 WHERE AD_Language='en_US' AND C_DocType_ID=541008 ; -- 2021-02-18T17:52:58.592Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType_Trl SET PrintName='RfQ',Updated=TO_TIMESTAMP('2021-02-18 19:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=2188223 WHERE AD_Language='en_US' AND C_DocType_ID=541008 ; -- 2021-02-18T17:55:26.978Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Name='Anfrage für Auswahl erstellen',Updated=TO_TIMESTAMP('2021-02-18 19:55:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584795 ; -- 2021-02-18T17:55:36.546Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y', Name='Anfrage für Auswahl erstellen',Updated=TO_TIMESTAMP('2021-02-18 19:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584795 ; -- 2021-02-18T17:55:41.653Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y', Name='Anfrage für Auswahl erstellen',Updated=TO_TIMESTAMP('2021-02-18 19:55:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584795 ; -- 2021-02-18T17:55:50.382Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Create RfQ for selection',Updated=TO_TIMESTAMP('2021-02-18 19:55:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584795 ; -- 2021-02-18T17:55:55.340Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET IsTranslated='Y', Name='Anfrage für Auswahl erstellen',Updated=TO_TIMESTAMP('2021-02-18 19:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584795 ; -- 2021-02-18T18:00:17.819Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Description='Erzeugt einen Bestellung aus einem bestehenden Anfrage', Name='Bestellung aus Anfrage',Updated=TO_TIMESTAMP('2021-02-18 20:00:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584794 ; /* * #%L * de.metas.adempiere.adempiere.migration-sql * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ -- 2021-02-18T18:00:24.639Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET EntityType='D',Updated=TO_TIMESTAMP('2021-02-18 20:00:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584794 ; -- 2021-02-18T18:00:31.670Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Erzeugt einen Bestellung aus einem bestehenden Anfrage', IsTranslated='Y', Name='Bestellung aus Anfrage',Updated=TO_TIMESTAMP('2021-02-18 20:00:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584794 ; -- 2021-02-18T18:00:41.523Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Creates a Purchase Order from this RfQ', Name='Create Purchase Order from this RfQ',Updated=TO_TIMESTAMP('2021-02-18 20:00:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584794 ; -- 2021-02-18T18:00:50.104Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Erzeugt einen Bestellung aus einem bestehenden Anfrage', IsTranslated='Y', Name='Bestellung aus Anfrage',Updated=TO_TIMESTAMP('2021-02-18 20:00:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584794 ; -- 2021-02-18T18:00:54.869Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Erzeugt einen Bestellung aus einem bestehenden Anfrage', IsTranslated='Y', Name='Bestellung aus Anfrage',Updated=TO_TIMESTAMP('2021-02-18 20:00:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584794 ;
the_stack
-- 2021-05-10T17:08:33.444Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,573830,645456,0,543435,TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn ein Shopware-Kunde noch nicht als Geschäftspartner in metasfresh angelegt ist.',255,'de.metas.externalsystem','Y','N','N','N','N','N','N','N','Wenn Gesch.-Partner nicht ex.',TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-10T17:08:33.447Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=645456 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-05-10T17:08:33.455Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579146) ; -- 2021-05-10T17:08:33.467Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=645456 ; -- 2021-05-10T17:08:33.473Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select AD_Element_Link_Create_Missing_Field(645456) ; -- 2021-05-10T17:08:33.583Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,573832,645457,0,543435,TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn die Adresse eines Shopware-Kunden noch nicht in metasfresh angelegt ist.',255,'de.metas.externalsystem','Y','N','N','N','N','N','N','N','Wenn Adr. nicht ex.',TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-10T17:08:33.587Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=645457 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-05-10T17:08:33.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579148) ; -- 2021-05-10T17:08:33.601Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=645457 ; -- 2021-05-10T17:08:33.603Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select AD_Element_Link_Create_Missing_Field(645457) ; -- 2021-05-10T17:08:33.705Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,573837,645458,0,543435,TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn ein Shopware-Kunde schon als Geschäftspartner in metasfresh angelegt ist.',255,'de.metas.externalsystem','Y','N','N','N','N','N','N','N','Wenn Gesch.-Partner ex.',TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-10T17:08:33.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=645458 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-05-10T17:08:33.708Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579145) ; -- 2021-05-10T17:08:33.712Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=645458 ; -- 2021-05-10T17:08:33.713Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select AD_Element_Link_Create_Missing_Field(645458) ; -- 2021-05-10T17:08:33.818Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,573838,645459,0,543435,TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn die Adresse eines Shopware-Kunden schon in metasfresh angelegt ist.',255,'de.metas.externalsystem','Y','N','N','N','N','N','N','N','Wenn Adresse ex.',TO_TIMESTAMP('2021-05-10 20:08:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-10T17:08:33.820Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=645459 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2021-05-10T17:08:33.822Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_FieldTranslation_From_AD_Name_Element(579147) ; -- 2021-05-10T17:08:33.825Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=645459 ; -- 2021-05-10T17:08:33.825Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select AD_Element_Link_Create_Missing_Field(645459) ; -- 2021-05-10T17:10:25.188Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy,WidgetSize) VALUES (0,645458,0,543435,584726,544975,'F',TO_TIMESTAMP('2021-05-10 20:10:25','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn ein Shopware-Kunde schon als Geschäftspartner in metasfresh angelegt ist.','Y','N','N','Y','N','N','N',0,'Wenn Gesch.-Partner ex.',110,0,0,TO_TIMESTAMP('2021-05-10 20:10:25','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2021-05-10T17:10:43.261Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy,WidgetSize) VALUES (0,645456,0,543435,584727,544975,'F',TO_TIMESTAMP('2021-05-10 20:10:43','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn ein Shopware-Kunde noch nicht als Geschäftspartner in metasfresh angelegt ist.','Y','N','N','Y','N','N','N',0,'Wenn Gesch.-Partner nicht ex.',120,0,0,TO_TIMESTAMP('2021-05-10 20:10:43','YYYY-MM-DD HH24:MI:SS'),100,'L') ; -- 2021-05-10T17:10:55.422Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy,WidgetSize) VALUES (0,645459,0,543435,584728,544975,'F',TO_TIMESTAMP('2021-05-10 20:10:55','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn die Adresse eines Shopware-Kunden schon in metasfresh angelegt ist.','Y','N','N','Y','N','N','N',0,'Wenn Adresse ex.',130,0,0,TO_TIMESTAMP('2021-05-10 20:10:55','YYYY-MM-DD HH24:MI:SS'),100,'M') ; -- 2021-05-10T17:11:06.686Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy,WidgetSize) VALUES (0,645457,0,543435,584729,544975,'F',TO_TIMESTAMP('2021-05-10 20:11:06','YYYY-MM-DD HH24:MI:SS'),100,'Legt fest, was passieren soll, wenn die Adresse eines Shopware-Kunden noch nicht in metasfresh angelegt ist.','Y','N','N','Y','N','N','N',0,'Wenn Adr. nicht ex.',140,0,0,TO_TIMESTAMP('2021-05-10 20:11:06','YYYY-MM-DD HH24:MI:SS'),100,'M') ;
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for message_01 -- ---------------------------- DROP TABLE IF EXISTS `message_01`; CREATE TABLE `message_01` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_02 -- ---------------------------- DROP TABLE IF EXISTS `message_02`; CREATE TABLE `message_02` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_03 -- ---------------------------- DROP TABLE IF EXISTS `message_03`; CREATE TABLE `message_03` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_04 -- ---------------------------- DROP TABLE IF EXISTS `message_04`; CREATE TABLE `message_04` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_05 -- ---------------------------- DROP TABLE IF EXISTS `message_05`; CREATE TABLE `message_05` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_06 -- ---------------------------- DROP TABLE IF EXISTS `message_06`; CREATE TABLE `message_06` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_07 -- ---------------------------- DROP TABLE IF EXISTS `message_07`; CREATE TABLE `message_07` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_08 -- ---------------------------- DROP TABLE IF EXISTS `message_08`; CREATE TABLE `message_08` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_09 -- ---------------------------- DROP TABLE IF EXISTS `message_09`; CREATE TABLE `message_09` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_10 -- ---------------------------- DROP TABLE IF EXISTS `message_10`; CREATE TABLE `message_10` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_11 -- ---------------------------- DROP TABLE IF EXISTS `message_11`; CREATE TABLE `message_11` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_12 -- ---------------------------- DROP TABLE IF EXISTS `message_12`; CREATE TABLE `message_12` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_13 -- ---------------------------- DROP TABLE IF EXISTS `message_13`; CREATE TABLE `message_13` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_14 -- ---------------------------- DROP TABLE IF EXISTS `message_14`; CREATE TABLE `message_14` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_15 -- ---------------------------- DROP TABLE IF EXISTS `message_15`; CREATE TABLE `message_15` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_16 -- ---------------------------- DROP TABLE IF EXISTS `message_16`; CREATE TABLE `message_16` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_17 -- ---------------------------- DROP TABLE IF EXISTS `message_17`; CREATE TABLE `message_17` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_18 -- ---------------------------- DROP TABLE IF EXISTS `message_18`; CREATE TABLE `message_18` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_19 -- ---------------------------- DROP TABLE IF EXISTS `message_19`; CREATE TABLE `message_19` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_20 -- ---------------------------- DROP TABLE IF EXISTS `message_20`; CREATE TABLE `message_20` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_21 -- ---------------------------- DROP TABLE IF EXISTS `message_21`; CREATE TABLE `message_21` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_22 -- ---------------------------- DROP TABLE IF EXISTS `message_22`; CREATE TABLE `message_22` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_23 -- ---------------------------- DROP TABLE IF EXISTS `message_23`; CREATE TABLE `message_23` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_24 -- ---------------------------- DROP TABLE IF EXISTS `message_24`; CREATE TABLE `message_24` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_25 -- ---------------------------- DROP TABLE IF EXISTS `message_25`; CREATE TABLE `message_25` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_26 -- ---------------------------- DROP TABLE IF EXISTS `message_26`; CREATE TABLE `message_26` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_27 -- ---------------------------- DROP TABLE IF EXISTS `message_27`; CREATE TABLE `message_27` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_28 -- ---------------------------- DROP TABLE IF EXISTS `message_28`; CREATE TABLE `message_28` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_29 -- ---------------------------- DROP TABLE IF EXISTS `message_29`; CREATE TABLE `message_29` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_30 -- ---------------------------- DROP TABLE IF EXISTS `message_30`; CREATE TABLE `message_30` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_31 -- ---------------------------- DROP TABLE IF EXISTS `message_31`; CREATE TABLE `message_31` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_32 -- ---------------------------- DROP TABLE IF EXISTS `message_32`; CREATE TABLE `message_32` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_33 -- ---------------------------- DROP TABLE IF EXISTS `message_33`; CREATE TABLE `message_33` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_34 -- ---------------------------- DROP TABLE IF EXISTS `message_34`; CREATE TABLE `message_34` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_35 -- ---------------------------- DROP TABLE IF EXISTS `message_35`; CREATE TABLE `message_35` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_36 -- ---------------------------- DROP TABLE IF EXISTS `message_36`; CREATE TABLE `message_36` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_37 -- ---------------------------- DROP TABLE IF EXISTS `message_37`; CREATE TABLE `message_37` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_38 -- ---------------------------- DROP TABLE IF EXISTS `message_38`; CREATE TABLE `message_38` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_39 -- ---------------------------- DROP TABLE IF EXISTS `message_39`; CREATE TABLE `message_39` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_40 -- ---------------------------- DROP TABLE IF EXISTS `message_40`; CREATE TABLE `message_40` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_41 -- ---------------------------- DROP TABLE IF EXISTS `message_41`; CREATE TABLE `message_41` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_42 -- ---------------------------- DROP TABLE IF EXISTS `message_42`; CREATE TABLE `message_42` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_43 -- ---------------------------- DROP TABLE IF EXISTS `message_43`; CREATE TABLE `message_43` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_44 -- ---------------------------- DROP TABLE IF EXISTS `message_44`; CREATE TABLE `message_44` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_45 -- ---------------------------- DROP TABLE IF EXISTS `message_45`; CREATE TABLE `message_45` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_46 -- ---------------------------- DROP TABLE IF EXISTS `message_46`; CREATE TABLE `message_46` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_47 -- ---------------------------- DROP TABLE IF EXISTS `message_47`; CREATE TABLE `message_47` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_48 -- ---------------------------- DROP TABLE IF EXISTS `message_48`; CREATE TABLE `message_48` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_49 -- ---------------------------- DROP TABLE IF EXISTS `message_49`; CREATE TABLE `message_49` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_50 -- ---------------------------- DROP TABLE IF EXISTS `message_50`; CREATE TABLE `message_50` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_51 -- ---------------------------- DROP TABLE IF EXISTS `message_51`; CREATE TABLE `message_51` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_52 -- ---------------------------- DROP TABLE IF EXISTS `message_52`; CREATE TABLE `message_52` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_53 -- ---------------------------- DROP TABLE IF EXISTS `message_53`; CREATE TABLE `message_53` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_54 -- ---------------------------- DROP TABLE IF EXISTS `message_54`; CREATE TABLE `message_54` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_55 -- ---------------------------- DROP TABLE IF EXISTS `message_55`; CREATE TABLE `message_55` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_56 -- ---------------------------- DROP TABLE IF EXISTS `message_56`; CREATE TABLE `message_56` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_57 -- ---------------------------- DROP TABLE IF EXISTS `message_57`; CREATE TABLE `message_57` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_58 -- ---------------------------- DROP TABLE IF EXISTS `message_58`; CREATE TABLE `message_58` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_59 -- ---------------------------- DROP TABLE IF EXISTS `message_59`; CREATE TABLE `message_59` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_60 -- ---------------------------- DROP TABLE IF EXISTS `message_60`; CREATE TABLE `message_60` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_61 -- ---------------------------- DROP TABLE IF EXISTS `message_61`; CREATE TABLE `message_61` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_62 -- ---------------------------- DROP TABLE IF EXISTS `message_62`; CREATE TABLE `message_62` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_63 -- ---------------------------- DROP TABLE IF EXISTS `message_63`; CREATE TABLE `message_63` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_64 -- ---------------------------- DROP TABLE IF EXISTS `message_64`; CREATE TABLE `message_64` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_65 -- ---------------------------- DROP TABLE IF EXISTS `message_65`; CREATE TABLE `message_65` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_66 -- ---------------------------- DROP TABLE IF EXISTS `message_66`; CREATE TABLE `message_66` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_67 -- ---------------------------- DROP TABLE IF EXISTS `message_67`; CREATE TABLE `message_67` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_68 -- ---------------------------- DROP TABLE IF EXISTS `message_68`; CREATE TABLE `message_68` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_69 -- ---------------------------- DROP TABLE IF EXISTS `message_69`; CREATE TABLE `message_69` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_70 -- ---------------------------- DROP TABLE IF EXISTS `message_70`; CREATE TABLE `message_70` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_71 -- ---------------------------- DROP TABLE IF EXISTS `message_71`; CREATE TABLE `message_71` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_72 -- ---------------------------- DROP TABLE IF EXISTS `message_72`; CREATE TABLE `message_72` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_73 -- ---------------------------- DROP TABLE IF EXISTS `message_73`; CREATE TABLE `message_73` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_74 -- ---------------------------- DROP TABLE IF EXISTS `message_74`; CREATE TABLE `message_74` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_75 -- ---------------------------- DROP TABLE IF EXISTS `message_75`; CREATE TABLE `message_75` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_76 -- ---------------------------- DROP TABLE IF EXISTS `message_76`; CREATE TABLE `message_76` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_77 -- ---------------------------- DROP TABLE IF EXISTS `message_77`; CREATE TABLE `message_77` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_78 -- ---------------------------- DROP TABLE IF EXISTS `message_78`; CREATE TABLE `message_78` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_79 -- ---------------------------- DROP TABLE IF EXISTS `message_79`; CREATE TABLE `message_79` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_80 -- ---------------------------- DROP TABLE IF EXISTS `message_80`; CREATE TABLE `message_80` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_81 -- ---------------------------- DROP TABLE IF EXISTS `message_81`; CREATE TABLE `message_81` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_82 -- ---------------------------- DROP TABLE IF EXISTS `message_82`; CREATE TABLE `message_82` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_83 -- ---------------------------- DROP TABLE IF EXISTS `message_83`; CREATE TABLE `message_83` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_84 -- ---------------------------- DROP TABLE IF EXISTS `message_84`; CREATE TABLE `message_84` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_85 -- ---------------------------- DROP TABLE IF EXISTS `message_85`; CREATE TABLE `message_85` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_86 -- ---------------------------- DROP TABLE IF EXISTS `message_86`; CREATE TABLE `message_86` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_87 -- ---------------------------- DROP TABLE IF EXISTS `message_87`; CREATE TABLE `message_87` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_88 -- ---------------------------- DROP TABLE IF EXISTS `message_88`; CREATE TABLE `message_88` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_89 -- ---------------------------- DROP TABLE IF EXISTS `message_89`; CREATE TABLE `message_89` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_90 -- ---------------------------- DROP TABLE IF EXISTS `message_90`; CREATE TABLE `message_90` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_91 -- ---------------------------- DROP TABLE IF EXISTS `message_91`; CREATE TABLE `message_91` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_92 -- ---------------------------- DROP TABLE IF EXISTS `message_92`; CREATE TABLE `message_92` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_93 -- ---------------------------- DROP TABLE IF EXISTS `message_93`; CREATE TABLE `message_93` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_94 -- ---------------------------- DROP TABLE IF EXISTS `message_94`; CREATE TABLE `message_94` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_95 -- ---------------------------- DROP TABLE IF EXISTS `message_95`; CREATE TABLE `message_95` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_96 -- ---------------------------- DROP TABLE IF EXISTS `message_96`; CREATE TABLE `message_96` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_97 -- ---------------------------- DROP TABLE IF EXISTS `message_97`; CREATE TABLE `message_97` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_98 -- ---------------------------- DROP TABLE IF EXISTS `message_98`; CREATE TABLE `message_98` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息'; -- ---------------------------- -- Table structure for message_99 -- ---------------------------- DROP TABLE IF EXISTS `message_99`; CREATE TABLE `message_99` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `biz_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '业务id', `head` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '消息头', `body` text COLLATE utf8mb4_unicode_ci COMMENT '消息体', `send_ip` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '发送的ip', `send_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `retry_count` int(11) DEFAULT '0', `trace_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tag` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='消息';
the_stack
-- Testing inserting into the table create table datetimeoffset_testing (df datetimeoffset); go INSERT INTO datetimeoffset_testing VALUES('23:40:29.998'); go INSERT INTO datetimeoffset_testing VALUES('1900-01-01 00:00+0:00'); go INSERT INTO datetimeoffset_testing VALUES('0001-01-01 00:00:00 +0:00'); go INSERT INTO datetimeoffset_testing VALUES('2020-03-15 09:00:00 +8:00'); go INSERT INTO datetimeoffset_testing VALUES('2020-03-15 09:00:00 +9:00'); go INSERT INTO datetimeoffset_testing VALUES('1800-03-15 09:00:00 +12:00'); go INSERT INTO datetimeoffset_testing VALUES('2020-03-15 09:00:00 -8:20'); go INSERT INTO datetimeoffset_testing VALUES('1992-03-15 09:00:00'); go -- out of range INSERT INTO datetimeoffset_testing VALUES('10000-01-01 00:00:00 +0:00'); go select * from datetimeoffset_testing; go CREATE INDEX df_hash ON datetimeoffset_testing (df); go -- Test comparision with datetime/smalldatetime/date select * from datetimeoffset_testing where df >= '2020-03-15 00:00:00'; go select * from datetimeoffset_testing where df >= '2020-03-15 09:00:00 +7'; go select * from datetimeoffset_testing where df >= '2020-03-15 09:00:00 +8' and df < '2020-03-15 09:00:00'; go select * from datetimeoffset_testing where df < '1992-05-24'; go -- Test datetimeoffset default value create table t1 (a datetimeoffset, b int); go insert into t1 (b) values (1); go select a from t1 where b = 1; go -- Testing rounding for different typmod select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(0)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(1)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(2)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(3)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(4)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(5)); go select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(6)); go -- Testing edge cases select CAST('1900-06-06 20:00:00.499 +0:00' AS datetimeoffset(0)); go select CAST('1900-06-06 20:00:00.500 +0:00' AS datetimeoffset(0)); go select CAST('1900-06-06 20:00:00.501 +0:00' AS datetimeoffset(0)); go select CAST('2079-06-06 20:00:00.499 +0:00' AS datetimeoffset(0)); go select CAST('2079-06-06 20:00:00.500 +0:00' AS datetimeoffset(0)); go select CAST('2079-06-06 20:00:00.501 +0:00' AS datetimeoffset(0)); go select CAST('1979-06-06 20:00:00.000499 +0:00' AS datetimeoffset(3)); go select CAST('1979-06-06 20:00:00.000500 +0:00' AS datetimeoffset(3)); go select CAST('1979-06-06 20:00:00.000501 +0:00' AS datetimeoffset(3)); go select CAST('2079-06-06 20:00:00.000499 +0:00' AS datetimeoffset(3)); go select CAST('2079-06-06 20:00:00.000500 +0:00' AS datetimeoffset(3)); go select CAST('2079-06-06 20:00:00.000501 +0:00' AS datetimeoffset(3)); go select CAST('1979-06-06 20:00:00.000049 +0:00' AS datetimeoffset(4)); go select CAST('1979-06-06 20:00:00.000050 +0:00' AS datetimeoffset(4)); go select CAST('1979-06-06 20:00:00.000051 +0:00' AS datetimeoffset(4)); go select CAST('2079-06-06 20:00:00.000049 +0:00' AS datetimeoffset(4)); go select CAST('2079-06-06 20:00:00.000050 +0:00' AS datetimeoffset(4)); go select CAST('2079-06-06 20:00:00.000051 +0:00' AS datetimeoffset(4)); go select CAST('1979-06-06 20:00:00.000004 +0:00' AS datetimeoffset(5)); go select CAST('1979-06-06 20:00:00.000005 +0:00' AS datetimeoffset(5)); go select CAST('2079-06-06 20:00:00.000004 +0:00' AS datetimeoffset(5)); go select CAST('2079-06-06 20:00:00.000005 +0:00' AS datetimeoffset(5)); go -- out of range select CAST('2079-06-06 23:59:29.123456 -9:30' AS datetimeoffset(7)); go -- Test type cast to/from other time formats -- Test datetime/dateime2 select CAST(CAST('2020-03-15 23:59:29.99' AS datetime) AS datetimeoffset); go select CAST(CAST('2079-06-06 23:59:29.998 +8:00' AS datetimeoffset) AS datetime); go select CAST(CAST('2079-06-06 23:59:29.998 -9:30' AS datetimeoffset) AS datetime); go select CAST(CAST('1920-05-25 00:59:29.99' AS datetime2) AS datetimeoffset); go select CAST(CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) AS datetime2); go -- Test date select CAST(CAST('1999-12-31' AS date) AS datetimeoffset); go select CAST(CAST('0001-12-31' AS date) AS datetimeoffset); go select CAST(CAST('2000-01-01 23:59:59.999' AS datetimeoffset) AS date); go select CAST(CAST('2000-01-01 23:59:59.999+8' AS datetimeoffset) AS date); go select CAST(CAST('1900-05-06 23:59:29.998+8:20' AS datetimeoffset) AS date); go -- out of range select CAST(CAST('12000-01-01' AS date) AS datetimeoffset); go -- Test time select CAST(CAST('23:59:59.999' AS time) AS datetimeoffset); go select CAST(CAST('00:30:31' AS time) AS datetimeoffset); go select CAST(CAST('1900-05-06 23:59:29.998+8:00' AS datetimeoffset) AS time); go select CAST(CAST('1920-05-25 00:59:29.99 +0' AS datetimeoffset) AS time); go select CAST(CAST('2050-05-06 00:00:00 +0' AS datetimeoffset) AS time); go select CAST(CAST('2050-05-06 12:00:00 +0' AS datetimeoffset) AS time); go select CAST(CAST('2050-05-06 15:31:22 +0' AS datetimeoffset) AS time); go select CAST(CAST('2050-05-06 23:59:29.998+8:00' AS datetimeoffset) AS time); go -- Test smalldatetime select CAST(CAST('2000-06-06 23:59:29.998 -9:30' AS datetimeoffset) AS smalldatetime); go select CAST(CAST('2079-06-06 23:59:29.998 +8:00' AS datetimeoffset) AS smalldatetime); go select CAST(CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) AS smalldatetime); go select CAST(CAST('2020-03-15 23:59:29.99' AS smalldatetime) AS datetimeoffset); go select CAST(CAST('1920-05-25 00:59:29.99' AS smalldatetime) AS datetimeoffset); go -- out of range select CAST(CAST('8000-05-25 00:59:29.99' AS smalldatetime) AS datetimeoffset); go -- Test datetimeoffset value ranges select cast('0001-01-01 +0' as datetimeoffset); go select cast('0001-01-01 -1' as datetimeoffset); go select cast('2079-06-06 23:59:29.998 +0' as datetimeoffset); go select cast('9999-12-31 23:59:29.998 +0' as datetimeoffset); go -- out of range select cast('0001-01-01 +0 BC' as datetimeoffset); go -- out of range select cast('0001-01-01 +1' as datetimeoffset); go -- out of range select cast('0001-01-01 +0:20' as datetimeoffset); go -- out of range select cast('9999-12-31 23:59:29.998 -1' as datetimeoffset); go -- out of range select cast('10000-01-01 00:00' as datetimeoffset); go -- Testing arithmetic operators -- Testing datetimeoffset adding interval select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(1); go select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0,1); go select CAST('1900-01-30 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0,1); go select CAST('1900-12-31 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0,1); go select CAST('2000-02-29 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(1,0); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0,1,3); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0,0,1); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(1,0,3); go select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(1, 2, 3, 4, 5, 6, 7); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(1, 2, 3, 4, 5, 6, 7); go -- SQL Server does not support named parameters in functions, only in prodecures select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0, 0, 0, 0, 0, 70); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) + make_interval(0, 0, 0, 0, 0, -70); go -- Testing interval adding datetimeoffset select make_interval(1) + CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset); go select make_interval(1, 2, 3, 4, 5, 6, 7) + CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) ; go select make_interval(0, 0, 0, 0, 0, 70) + CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset); go -- Testing datetimeoffset subtracting interval select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1); go select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0,1); go select CAST('1900-01-31 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0,1); go select CAST('2000-02-29 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1,0); go select CAST('2000-03-31 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1,0); go select CAST('2050-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0,1,3); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0,0,1); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1,0,3); go select CAST('1900-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1, 2, 3, 4, 5, 6, 7); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(1, 2, 3, 4, 5, 6, 7); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0, 0, 0, 0, 0, 70); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - make_interval(0, 0, 0, 0, 0, -70); go -- Testing datetimeoffset subtracting datetimeoffset select CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) - CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - CAST('2030-05-06 13:59:29.998 +8:20' AS datetimeoffset); go select CAST('2030-05-06 13:59:29.998 -8:00' AS datetimeoffset) - CAST('1992-05-06 13:20:29.998 +0:00' AS datetimeoffset); go select CAST('0001-05-06 13:59:29.998 -8:00' AS datetimeoffset) - CAST('9950-05-06 13:20:29.998 +0:00' AS datetimeoffset); go -- Test date functions select ISDATE('2030-05-06 13:59:29.998 -8:00'); go -- TODO Fix [BABEL-883] missing TDS support for type regtype (was pg_typeof produces error in sqlcmd) select pg_typeof(sysdatetimeoffset()); go -- TODO:[BABEL-739] DATETIMEOFFSETFROMPARTS() -- TOOD:[BABEL-740] TODATETIMEOFFSET() -- TODO:[BABEL-744] SWITCHOFFSET() -- Test data type precedence select pg_typeof(c1) FROM (SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1 UNION SELECT CAST('2016-12-26 23:30:05' AS datetime) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1 UNION SELECT CAST('2016-12-26 23:30:05' AS datetime2) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1 UNION SELECT CAST('2016-12-26 23:30:05' AS smalldatetime) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1 UNION SELECT CAST('23:30:05' AS time) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1 UNION SELECT CAST('2016-12-26' AS date) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2016-12-26 23:30:05' AS datetime) as C1 UNION SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset)as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2016-12-26 23:30:05' AS datetime2) as C1 UNION SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2016-12-26 23:30:05' AS smalldatetime) as C1 UNION SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('23:30:05' AS time) as C1 UNION SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1) T; go select pg_typeof(c1) FROM (SELECT CAST('2016-12-26' AS date) as C1 UNION SELECT CAST('2030-05-06 13:59:29.998 +0:00' AS datetimeoffset) as C1) T; go -- test casting datetimeoffset inside procedure -- NOTE: This is not supported behavior in tsql and will fail CREATE PROCEDURE cast_datetimeoffset (@val datetimeoffset) AS BEGIN DECLARE @DF datetimeoffset = @val PRINT @DF PRINT cast(@DF as datetimeoffset(5)) END; go DECLARE @dto datetimeoffset = CAST('2030-05-06 13:39:29.123456 +0:00' AS datetimeoffset); exec cast_datetimeoffset @dto; go DECLARE @dto datetimeoffset = CAST('1920-05-06 13:39:29.123456 +0:00' AS datetimeoffset); exec cast_datetimeoffset @dto; go -- expect error DECLARE @dto datetimeoffset = CAST('19200-05-06 13:39:29.123456 +0:00' AS datetimeoffset); exec cast_datetimeoffset @dto; go -- test comparing datetimeoffset inside procedure CREATE PROCEDURE cmp_datetimeoffset (@val datetimeoffset) AS BEGIN IF @val > CAST('2000-01-01 13:39:29.123456 +0:00' AS datetimeoffset) PRINT @val - make_interval(1) ELSE PRINT @val + make_interval(1) END; go DECLARE @dto datetimeoffset = CAST('2030-05-06 13:39:29.123456 +0:00' AS datetimeoffset); exec cmp_datetimeoffset @dto; go DECLARE @dto datetimeoffset = CAST('1930-05-06 13:39:29.123456 +0:00' AS datetimeoffset); exec cmp_datetimeoffset @dto; go -- Clean up drop table datetimeoffset_testing; go drop table t1; go drop procedure cast_datetimeoffset; go drop procedure cmp_datetimeoffset; go
the_stack
-- 2021-05-31T14:58:17.191Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsTranslateExcelHeaders,IsUseBPartnerLanguage,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584837,'Y','de.metas.util.web.audit.process.API_Audit_DeleteOldRecords','N',TO_TIMESTAMP('2021-05-31 17:58:17','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','N','N','N','Y','Y',0,'Delete old API audit records','json','Y','N','Java',TO_TIMESTAMP('2021-05-31 17:58:17','YYYY-MM-DD HH24:MI:SS'),100,'API_Audit_DeleteOldRecords') ; -- 2021-05-31T14:58:17.194Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584837 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2021-05-31T14:58:20.796Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET IsNotifyUserAfterExecution='Y',Updated=TO_TIMESTAMP('2021-05-31 17:58:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584837 ; -- 2021-05-31T14:58:55.954Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Removes records that were not updated after the number of days specified in their respective config. Records with an error are ignored, unless "Error Acknowledged" was set to "yes".', Help='Removes records that were not updated after the number of days specified in their respective config. Records with an error are ignored, unless "Error Acknowledged" was set to "yes".',Updated=TO_TIMESTAMP('2021-05-31 17:58:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584837 ; -- 2021-05-31T14:59:09.129Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Alte API Revisionsdatensätze löschen',Updated=TO_TIMESTAMP('2021-05-31 17:59:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584837 ; -- 2021-05-31T14:59:12.417Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Description=NULL, Help=NULL, Name='Alte API Revisionsdatensätze löschen',Updated=TO_TIMESTAMP('2021-05-31 17:59:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584837 ; -- 2021-05-31T14:59:12.414Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Alte API Revisionsdatensätze löschen',Updated=TO_TIMESTAMP('2021-05-31 17:59:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584837 ; -- 2021-05-31T14:59:49.269Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt',Updated=TO_TIMESTAMP('2021-05-31 17:59:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584837 ; -- 2021-05-31T14:59:54.313Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET Description='Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt', Help=NULL, Name='Alte API Revisionsdatensätze löschen',Updated=TO_TIMESTAMP('2021-05-31 17:59:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584837 ; -- 2021-05-31T14:59:54.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt',Updated=TO_TIMESTAMP('2021-05-31 17:59:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584837 ; -- 2021-05-31T15:00:32.274Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Name='Alte API Revisionsdatensätze löschen',Updated=TO_TIMESTAMP('2021-05-31 18:00:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584837 ; -- 2021-05-31T15:00:47.834Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Trl SET Description='Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt', Help='Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt',Updated=TO_TIMESTAMP('2021-05-31 18:00:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Process_ID=584837 ; -- 2021-05-31T15:01:20.348Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579270,0,TO_TIMESTAMP('2021-05-31 18:01:20','YYYY-MM-DD HH24:MI:SS'),100,'Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt','D','Y','Alte API Revisionsdatensätze löschen','Alte API Revisionsdatensätze löschen',TO_TIMESTAMP('2021-05-31 18:01:20','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-31T15:01:20.356Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=579270 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2021-05-31T15:02:05.802Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Description='Removes records that were not updated after the number of days specified in their respective config. Records with an error are ignored, unless "Error Acknowledged" was set to "yes".', Name='Delete old API audit records', PrintName='Delete old API audit records',Updated=TO_TIMESTAMP('2021-05-31 18:02:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579270 AND AD_Language='en_US' ; -- 2021-05-31T15:02:05.804Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579270,'en_US') ; -- 2021-05-31T15:04:19.984Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('P',0,579270,541721,0,584837,TO_TIMESTAMP('2021-05-31 18:04:19','YYYY-MM-DD HH24:MI:SS'),100,'Löscht Datensätze die älter sind als die in ihrer jeweiligen Konfiguration angegebene Zahl von Tagen. Datensätze, mit Status "Fehler" werden ignoriert, es sei den "Zur Kenntnis genommen" ist angehakt','D','API_Audit_DeleteOldRecords','Y','N','N','N','N','Alte API Revisionsdatensätze löschen',TO_TIMESTAMP('2021-05-31 18:04:19','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2021-05-31T15:04:19.990Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Menu_ID, t.Description,t.Name,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Menu_ID=541721 AND NOT EXISTS (SELECT 1 FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID) ; -- 2021-05-31T15:04:19.994Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', now(), 100, now(), 100,t.AD_Tree_ID, 541721, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.AD_Table_ID=116 AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=541721) ; -- 2021-05-31T15:04:20.003Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_menu_translation_from_ad_element(579270) ; -- 2021-05-31T15:04:29.198Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541721 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.203Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=541720 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.204Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=541708 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.204Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=541707 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.205Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=541706 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.206Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=541702 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.207Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=541585 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.208Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=541600 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.208Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=541481 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.209Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=541134 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.210Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=541474 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.211Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541111 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.212Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=541416 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.213Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=541142 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.213Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540892 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.214Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540969 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.215Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540914 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.216Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=150 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.217Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=540915 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.218Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=147 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.218Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541539 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.219Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=541216 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.220Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=541263 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.221Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=145 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.222Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=144 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.223Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=540743 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.224Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=540784 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.225Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540826 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.227Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540898 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=541476 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=541563 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.229Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=540895 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.230Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=540827 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.231Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=541599 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.232Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=540828 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.233Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=540849 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.234Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=36, Updated=now(), UpdatedBy=100 WHERE Node_ID=540911 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.234Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=37, Updated=now(), UpdatedBy=100 WHERE Node_ID=540427 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.235Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=38, Updated=now(), UpdatedBy=100 WHERE Node_ID=540438 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.236Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=39, Updated=now(), UpdatedBy=100 WHERE Node_ID=540912 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.236Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=40, Updated=now(), UpdatedBy=100 WHERE Node_ID=540913 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.237Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=41, Updated=now(), UpdatedBy=100 WHERE Node_ID=541478 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.238Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=42, Updated=now(), UpdatedBy=100 WHERE Node_ID=541540 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.239Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=43, Updated=now(), UpdatedBy=100 WHERE Node_ID=540894 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.239Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=44, Updated=now(), UpdatedBy=100 WHERE Node_ID=540917 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.240Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=45, Updated=now(), UpdatedBy=100 WHERE Node_ID=540982 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.240Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=46, Updated=now(), UpdatedBy=100 WHERE Node_ID=541414 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=47, Updated=now(), UpdatedBy=100 WHERE Node_ID=540919 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=48, Updated=now(), UpdatedBy=100 WHERE Node_ID=540983 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.241Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=49, Updated=now(), UpdatedBy=100 WHERE Node_ID=53101 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.242Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=50, Updated=now(), UpdatedBy=100 WHERE Node_ID=541080 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.242Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=51, Updated=now(), UpdatedBy=100 WHERE Node_ID=541273 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.242Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=52, Updated=now(), UpdatedBy=100 WHERE Node_ID=363 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.243Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=53, Updated=now(), UpdatedBy=100 WHERE Node_ID=541079 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.243Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=54, Updated=now(), UpdatedBy=100 WHERE Node_ID=541108 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=55, Updated=now(), UpdatedBy=100 WHERE Node_ID=541053 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.244Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=56, Updated=now(), UpdatedBy=100 WHERE Node_ID=541052 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.245Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=57, Updated=now(), UpdatedBy=100 WHERE Node_ID=541513 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.245Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=58, Updated=now(), UpdatedBy=100 WHERE Node_ID=541233 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.245Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=59, Updated=now(), UpdatedBy=100 WHERE Node_ID=53103 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.246Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=60, Updated=now(), UpdatedBy=100 WHERE Node_ID=541389 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.246Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=61, Updated=now(), UpdatedBy=100 WHERE Node_ID=540243 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.247Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=62, Updated=now(), UpdatedBy=100 WHERE Node_ID=541041 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.247Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=63, Updated=now(), UpdatedBy=100 WHERE Node_ID=541104 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.248Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=64, Updated=now(), UpdatedBy=100 WHERE Node_ID=541109 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.248Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=65, Updated=now(), UpdatedBy=100 WHERE Node_ID=541162 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=66, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000099 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=67, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000100 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.249Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=68, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000101 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.250Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=69, Updated=now(), UpdatedBy=100 WHERE Node_ID=540901 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.250Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=70, Updated=now(), UpdatedBy=100 WHERE Node_ID=541282 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.250Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=71, Updated=now(), UpdatedBy=100 WHERE Node_ID=541339 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.251Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=72, Updated=now(), UpdatedBy=100 WHERE Node_ID=541326 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.251Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=73, Updated=now(), UpdatedBy=100 WHERE Node_ID=541417 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.251Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=74, Updated=now(), UpdatedBy=100 WHERE Node_ID=540631 AND AD_Tree_ID=10 ; -- 2021-05-31T15:04:29.252Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=75, Updated=now(), UpdatedBy=100 WHERE Node_ID=541374 AND AD_Tree_ID=10 ;
the_stack
-- 2015 - Baden Württemberg insert into holiday (id, day, name, federalstate) values (199, '2015-01-01', 'Neujahr', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (200, '2015-01-06', 'Heilige Drei Könige', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (201, '2015-04-03', 'Karfreitag', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (202, '2015-04-06', 'Ostermontag', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (203, '2015-05-01', 'Tag der Arbeit', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (204, '2015-05-14', 'Christi Himmelfahrt', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (205, '2015-05-25', 'Pfingstmontag', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (206, '2015-06-04', 'Fronleichnam', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (207, '2015-10-03', 'Tag der Deutschen Einheit', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (208, '2015-11-01', 'Allerheiligen', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (209, '2015-12-24', 'Weihnachten', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (210, '2015-12-25', '1. Weihnachtstag', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (211, '2015-12-26', '2. Weihnachtstag', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (212, '2015-12-31', 'Silvester', 'BADEN_WUERTTEMBERG'); -- 2015 - Bayern insert into holiday (id, day, name, federalstate) values (213, '2015-01-01', 'Neujahr', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (214, '2015-01-06', 'Heilige Drei Könige', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (215, '2015-04-03', 'Karfreitag', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (216, '2015-04-06', 'Ostermontag', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (217, '2015-05-01', 'Tag der Arbeit', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (218, '2015-05-14', 'Christi Himmelfahrt', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (219, '2015-05-25', 'Pfingstmontag', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (220, '2015-06-04', 'Fronleichnam', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (221, '2015-08-15', 'Mariä Himmelfahrt', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (222, '2015-10-03', 'Tag der Deutschen Einheit', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (223, '2015-11-01', 'Allerheiligen', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (224, '2015-12-24', 'Weihnachten', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (225, '2015-12-25', '1. Weihnachtstag', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (226, '2015-12-26', '2. Weihnachtstag', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (227, '2015-12-31', 'Silvester', 'BAYERN'); -- 2015 - Berlin insert into holiday (id, day, name, federalstate) values (228, '2015-01-01', 'Neujahr', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (229, '2015-04-03', 'Karfreitag', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (230, '2015-04-06', 'Ostermontag', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (231, '2015-05-01', 'Tag der Arbeit', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (232, '2015-05-14', 'Christi Himmelfahrt', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (233, '2015-05-25', 'Pfingstmontag', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (234, '2015-10-03', 'Tag der Deutschen Einheit', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (235, '2015-12-24', 'Weihnachten', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (236, '2015-12-25', '1. Weihnachtstag', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (237, '2015-12-26', '2. Weihnachtstag', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (238, '2015-12-31', 'Silvester', 'BERLIN'); -- 2015 - Brandenburg insert into holiday (id, day, name, federalstate) values (239, '2015-01-01', 'Neujahr', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (240, '2015-04-03', 'Karfreitag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (241, '2015-04-06', 'Ostermontag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (242, '2015-05-01', 'Tag der Arbeit', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (243, '2015-05-14', 'Christi Himmelfahrt', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (244, '2015-05-25', 'Pfingstmontag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (245, '2015-10-03', 'Tag der Deutschen Einheit', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (246, '2015-10-31', 'Reformationstag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (247, '2015-12-24', 'Weihnachten', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (248, '2015-12-25', '1. Weihnachtstag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (249, '2015-12-26', '2. Weihnachtstag', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (250, '2015-12-31', 'Silvester', 'BRANDENBURG'); -- 2015 - Bremen insert into holiday (id, day, name, federalstate) values (251, '2015-01-01', 'Neujahr', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (252, '2015-04-03', 'Karfreitag', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (253, '2015-04-06', 'Ostermontag', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (254, '2015-05-01', 'Tag der Arbeit', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (255, '2015-05-14', 'Christi Himmelfahrt', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (256, '2015-05-25', 'Pfingstmontag', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (257, '2015-10-03', 'Tag der Deutschen Einheit', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (258, '2015-12-24', 'Weihnachten', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (259, '2015-12-25', '1. Weihnachtstag', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (260, '2015-12-26', '2. Weihnachtstag', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (261, '2015-12-31', 'Silvester', 'BREMEN'); -- 2015 - Hamburg insert into holiday (id, day, name, federalstate) values (262, '2015-01-01', 'Neujahr', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (263, '2015-04-03', 'Karfreitag', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (264, '2015-04-06', 'Ostermontag', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (265, '2015-05-01', 'Tag der Arbeit', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (266, '2015-05-14', 'Christi Himmelfahrt', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (267, '2015-05-25', 'Pfingstmontag', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (268, '2015-10-03', 'Tag der Deutschen Einheit', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (269, '2015-12-24', 'Weihnachten', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (270, '2015-12-25', '1. Weihnachtstag', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (271, '2015-12-26', '2. Weihnachtstag', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (272, '2015-12-31', 'Silvester', 'HAMBURG'); -- 2015 - Hessen insert into holiday (id, day, name, federalstate) values (273, '2015-01-01', 'Neujahr', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (274, '2015-04-03', 'Karfreitag', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (275, '2015-04-06', 'Ostermontag', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (276, '2015-05-01', 'Tag der Arbeit', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (277, '2015-05-14', 'Christi Himmelfahrt', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (278, '2015-05-25', 'Pfingstmontag', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (279, '2015-06-04', 'Fronleichnam', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (280, '2015-10-03', 'Tag der Deutschen Einheit', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (281, '2015-12-24', 'Weihnachten', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (282, '2015-12-25', '1. Weihnachtstag', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (283, '2015-12-26', '2. Weihnachtstag', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (284, '2015-12-31', 'Silvester', 'HESSEN'); -- 2015 - Mecklenburg-Vorpommern insert into holiday (id, day, name, federalstate) values (285, '2015-01-01', 'Neujahr', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (286, '2015-04-03', 'Karfreitag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (287, '2015-04-06', 'Ostermontag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (288, '2015-05-01', 'Tag der Arbeit', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (289, '2015-05-14', 'Christi Himmelfahrt', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (290, '2015-05-25', 'Pfingstmontag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (291, '2015-10-03', 'Tag der Deutschen Einheit', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (292, '2015-10-31', 'Reformationstag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (293, '2015-12-24', 'Weihnachten', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (294, '2015-12-25', '1. Weihnachtstag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (295, '2015-12-26', '2. Weihnachtstag', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (296, '2015-12-31', 'Silvester', 'MECKLENBURG_VORPOMMERN'); -- 2015 - Niedersachsen insert into holiday (id, day, name, federalstate) values (297, '2015-01-01', 'Neujahr', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (298, '2015-04-03', 'Karfreitag', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (299, '2015-04-06', 'Ostermontag', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (300, '2015-05-01', 'Tag der Arbeit', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (301, '2015-05-14', 'Christi Himmelfahrt', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (302, '2015-05-25', 'Pfingstmontag', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (303, '2015-10-03', 'Tag der Deutschen Einheit', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (304, '2015-12-24', 'Weihnachten', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (305, '2015-12-25', '1. Weihnachtstag', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (306, '2015-12-26', '2. Weihnachtstag', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (307, '2015-12-31', 'Silvester', 'NIEDERSACHSEN'); -- 2015 - Nordrhein-Westfalen insert into holiday (id, day, name, federalstate) values (308, '2015-01-01', 'Neujahr', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (309, '2015-04-03', 'Karfreitag', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (310, '2015-04-06', 'Ostermontag', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (311, '2015-05-01', 'Tag der Arbeit', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (312, '2015-05-14', 'Christi Himmelfahrt', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (313, '2015-05-25', 'Pfingstmontag', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (314, '2015-06-04', 'Fronleichnam', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (315, '2015-10-03', 'Tag der Deutschen Einheit', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (316, '2015-11-01', 'Allerheiligen', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (317, '2015-12-24', 'Weihnachten', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (318, '2015-12-25', '1. Weihnachtstag', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (319, '2015-12-26', '2. Weihnachtstag', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (320, '2015-12-31', 'Silvester', 'NORDRHEIN_WESTFALEN'); -- 2015 - Rheinland-Pfalz insert into holiday (id, day, name, federalstate) values (321, '2015-01-01', 'Neujahr', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (322, '2015-04-03', 'Karfreitag', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (323, '2015-04-06', 'Ostermontag', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (324, '2015-05-01', 'Tag der Arbeit', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (325, '2015-05-14', 'Christi Himmelfahrt', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (326, '2015-05-25', 'Pfingstmontag', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (327, '2015-06-04', 'Fronleichnam', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (328, '2015-10-03', 'Tag der Deutschen Einheit', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (329, '2015-11-01', 'Allerheiligen', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (330, '2015-12-24', 'Weihnachten', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (331, '2015-12-25', '1. Weihnachtstag', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (332, '2015-12-26', '2. Weihnachtstag', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (333, '2015-12-31', 'Silvester', 'RHEINLAND_PFALZ'); -- 2015 - Saarland insert into holiday (id, day, name, federalstate) values (334, '2015-01-01', 'Neujahr', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (335, '2015-04-03', 'Karfreitag', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (336, '2015-04-06', 'Ostermontag', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (337, '2015-05-01', 'Tag der Arbeit', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (338, '2015-05-14', 'Christi Himmelfahrt', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (339, '2015-05-25', 'Pfingstmontag', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (340, '2015-06-04', 'Fronleichnam', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (341, '2015-08-15', 'Mariä Himmelfahrt', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (342, '2015-10-03', 'Tag der Deutschen Einheit', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (343, '2015-11-01', 'Allerheiligen', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (344, '2015-12-24', 'Weihnachten', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (345, '2015-12-25', '1. Weihnachtstag', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (346, '2015-12-26', '2. Weihnachtstag', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (347, '2015-12-31', 'Silvester', 'SAARLAND'); -- 2015 - Sachsen insert into holiday (id, day, name, federalstate) values (348, '2015-01-01', 'Neujahr', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (349, '2015-04-03', 'Karfreitag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (350, '2015-04-06', 'Ostermontag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (351, '2015-05-01', 'Tag der Arbeit', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (352, '2015-05-14', 'Christi Himmelfahrt', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (353, '2015-05-25', 'Pfingstmontag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (354, '2015-10-03', 'Tag der Deutschen Einheit', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (355, '2015-10-31', 'Reformationstag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (356, '2015-11-18', 'Buß- und Bettag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (357, '2015-12-24', 'Weihnachten', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (358, '2015-12-25', '1. Weihnachtstag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (359, '2015-12-26', '2. Weihnachtstag', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (360, '2015-12-31', 'Silvester', 'SACHSEN'); -- 2015 - Sachsen-Anhalt insert into holiday (id, day, name, federalstate) values (361, '2015-01-01', 'Neujahr', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (362, '2015-01-06', 'Heilige Drei Könige', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (363, '2015-04-03', 'Karfreitag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (364, '2015-04-06', 'Ostermontag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (365, '2015-05-01', 'Tag der Arbeit', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (366, '2015-05-14', 'Christi Himmelfahrt', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (367, '2015-05-25', 'Pfingstmontag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (368, '2015-10-03', 'Tag der Deutschen Einheit', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (369, '2015-10-31', 'Reformationstag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (370, '2015-12-24', 'Weihnachten', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (371, '2015-12-25', '1. Weihnachtstag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (372, '2015-12-26', '2. Weihnachtstag', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (373, '2015-12-31', 'Silvester', 'SACHSEN_ANHALT'); -- 2015 - Schleswig-Holstein insert into holiday (id, day, name, federalstate) values (374, '2015-01-01', 'Neujahr', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (375, '2015-04-03', 'Karfreitag', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (376, '2015-04-06', 'Ostermontag', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (377, '2015-05-01', 'Tag der Arbeit', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (378, '2015-05-14', 'Christi Himmelfahrt', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (379, '2015-05-25', 'Pfingstmontag', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (380, '2015-10-03', 'Tag der Deutschen Einheit', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (381, '2015-12-24', 'Weihnachten', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (382, '2015-12-25', '1. Weihnachtstag', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (383, '2015-12-26', '2. Weihnachtstag', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (384, '2015-12-31', 'Silvester', 'SCHLESWIG_HOLSTEIN'); -- 2015 - Thüringen insert into holiday (id, day, name, federalstate) values (385, '2015-01-01', 'Neujahr', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (386, '2015-04-03', 'Karfreitag', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (387, '2015-04-06', 'Ostermontag', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (388, '2015-05-01', 'Tag der Arbeit', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (389, '2015-05-14', 'Christi Himmelfahrt', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (390, '2015-05-25', 'Pfingstmontag', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (391, '2015-10-03', 'Tag der Deutschen Einheit', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (392, '2015-10-31', 'Tag der Deutschen Einheit', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (393, '2015-12-24', 'Weihnachten', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (394, '2015-12-25', 'Reformationstag', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (395, '2015-12-26', '2. Weihnachtstag', 'THUERINGEN'); insert into holiday (id, day, name, federalstate) values (396, '2015-12-31', 'Silvester', 'THUERINGEN'); -- 2016 - new years eve insert into holiday (id, day, name, federalstate) values (397, '2016-01-01', 'Neujahr', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (398, '2016-01-01', 'Neujahr', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (399, '2016-01-01', 'Neujahr', 'BERLIN'); insert into holiday (id, day, name, federalstate) values (400, '2016-01-01', 'Neujahr', 'BRANDENBURG'); insert into holiday (id, day, name, federalstate) values (401, '2016-01-01', 'Neujahr', 'BREMEN'); insert into holiday (id, day, name, federalstate) values (402, '2016-01-01', 'Neujahr', 'HAMBURG'); insert into holiday (id, day, name, federalstate) values (403, '2016-01-01', 'Neujahr', 'HESSEN'); insert into holiday (id, day, name, federalstate) values (404, '2016-01-01', 'Neujahr', 'MECKLENBURG_VORPOMMERN'); insert into holiday (id, day, name, federalstate) values (405, '2016-01-01', 'Neujahr', 'NIEDERSACHSEN'); insert into holiday (id, day, name, federalstate) values (406, '2016-01-01', 'Neujahr', 'NORDRHEIN_WESTFALEN'); insert into holiday (id, day, name, federalstate) values (407, '2016-01-01', 'Neujahr', 'RHEINLAND_PFALZ'); insert into holiday (id, day, name, federalstate) values (408, '2016-01-01', 'Neujahr', 'SAARLAND'); insert into holiday (id, day, name, federalstate) values (409, '2016-01-01', 'Neujahr', 'SACHSEN'); insert into holiday (id, day, name, federalstate) values (410, '2016-01-01', 'Neujahr', 'SACHSEN_ANHALT'); insert into holiday (id, day, name, federalstate) values (411, '2016-01-01', 'Neujahr', 'SCHLESWIG_HOLSTEIN'); insert into holiday (id, day, name, federalstate) values (412, '2016-01-01', 'Neujahr', 'THUERINGEN'); -- 2016 - three kings insert into holiday (id, day, name, federalstate) values (413, '2016-01-06', 'Heilige Drei Könige', 'BAYERN'); insert into holiday (id, day, name, federalstate) values (414, '2016-01-06', 'Heilige Drei Könige', 'BADEN_WUERTTEMBERG'); insert into holiday (id, day, name, federalstate) values (415, '2016-01-06', 'Heilige Drei Könige', 'SACHSEN_ANHALT');
the_stack