text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
-- organisation
create table o_org_organisation_type (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
o_identifier varchar(64),
o_displayname varchar(255) not null,
o_description mediumtext,
o_external_id varchar(64),
o_managed_flags varchar(255),
o_css_class varchar(64),
primary key (id)
);
alter table o_org_organisation_type ENGINE = InnoDB;
create table o_org_organisation (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
o_identifier varchar(64),
o_displayname varchar(255) not null,
o_description mediumtext,
o_m_path_keys varchar(255),
o_external_id varchar(64),
o_managed_flags varchar(255),
o_status varchar(32),
o_css_class varchar(64),
fk_group bigint not null,
fk_root bigint,
fk_parent bigint,
fk_type bigint,
primary key (id)
);
alter table o_org_organisation ENGINE = InnoDB;
alter table o_org_organisation add constraint org_to_group_idx foreign key (fk_group) references o_bs_group (id);
alter table o_org_organisation add constraint org_to_root_org_idx foreign key (fk_root) references o_org_organisation (id);
alter table o_org_organisation add constraint org_to_parent_org_idx foreign key (fk_parent) references o_org_organisation (id);
alter table o_org_organisation add constraint org_to_org_type_idx foreign key (fk_type) references o_org_organisation_type (id);
create table o_org_type_to_type (
id bigint not null auto_increment,
fk_type bigint not null,
fk_allowed_sub_type bigint not null,
primary key (id)
);
alter table o_org_type_to_type ENGINE = InnoDB;
alter table o_org_type_to_type add constraint org_type_to_type_idx foreign key (fk_type) references o_org_organisation_type (id);
alter table o_org_type_to_type add constraint org_type_to_sub_type_idx foreign key (fk_allowed_sub_type) references o_org_organisation_type (id);
create table o_re_to_organisation (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
r_master bit default 0,
fk_entry bigint not null,
fk_organisation bigint not null,
primary key (id)
);
alter table o_re_to_organisation ENGINE = InnoDB;
alter table o_re_to_organisation add constraint rel_org_to_re_idx foreign key (fk_entry) references o_repositoryentry (repositoryentry_id);
alter table o_re_to_organisation add constraint rel_org_to_org_idx foreign key (fk_organisation) references o_org_organisation (id);
-- invitation
alter table o_bs_invitation add column fk_identity_id bigint;
alter table o_bs_invitation add constraint invit_to_id_idx foreign key (fk_identity_id) references o_bs_identity (id);
-- curriculum
create table o_cur_element_type (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
c_identifier varchar(64),
c_displayname varchar(255) not null,
c_description mediumtext,
c_external_id varchar(64),
c_managed_flags varchar(255),
c_css_class varchar(64),
primary key (id)
);
alter table o_cur_element_type ENGINE = InnoDB;
create table o_cur_curriculum (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
c_identifier varchar(64),
c_displayname varchar(255) not null,
c_description mediumtext,
c_external_id varchar(64),
c_managed_flags varchar(255),
c_status varchar(32),
c_degree varchar(255),
fk_group bigint not null,
fk_organisation bigint,
primary key (id)
);
alter table o_cur_curriculum ENGINE = InnoDB;
alter table o_cur_curriculum add constraint cur_to_group_idx foreign key (fk_group) references o_bs_group (id);
alter table o_cur_curriculum add constraint cur_to_org_idx foreign key (fk_organisation) references o_org_organisation (id);
create table o_cur_curriculum_element (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
pos bigint,
c_identifier varchar(64),
c_displayname varchar(255) not null,
c_description mediumtext,
c_status varchar(32),
c_begin datetime,
c_end datetime,
c_external_id varchar(64),
c_m_path_keys varchar(255),
c_managed_flags varchar(255),
fk_group bigint not null,
fk_parent bigint,
fk_curriculum bigint not null,
fk_type bigint,
primary key (id)
);
alter table o_cur_curriculum_element ENGINE = InnoDB;
alter table o_cur_curriculum_element add constraint cur_el_to_group_idx foreign key (fk_group) references o_bs_group (id);
alter table o_cur_curriculum_element add constraint cur_el_to_cur_el_idx foreign key (fk_parent) references o_cur_curriculum_element (id);
alter table o_cur_curriculum_element add constraint cur_el_to_cur_idx foreign key (fk_curriculum) references o_cur_curriculum (id);
alter table o_cur_curriculum_element add constraint cur_el_type_to_el_type_idx foreign key (fk_type) references o_cur_element_type (id);
create table o_cur_element_type_to_type (
id bigint not null auto_increment,
fk_type bigint not null,
fk_allowed_sub_type bigint not null,
primary key (id)
);
alter table o_cur_element_type_to_type ENGINE = InnoDB;
alter table o_cur_element_type_to_type add constraint cur_type_to_type_idx foreign key (fk_type) references o_cur_element_type (id);
alter table o_cur_element_type_to_type add constraint cur_type_to_sub_type_idx foreign key (fk_allowed_sub_type) references o_cur_element_type (id);
create table o_cur_element_to_tax_level (
id bigint not null auto_increment,
creationdate datetime not null,
fk_cur_element bigint not null,
fk_taxonomy_level bigint not null,
primary key (id)
);
alter table o_cur_element_to_tax_level ENGINE = InnoDB;
alter table o_cur_element_to_tax_level add constraint cur_el_rel_to_cur_el_idx foreign key (fk_cur_element) references o_cur_curriculum_element (id);
alter table o_cur_element_to_tax_level add constraint cur_el_to_tax_level_idx foreign key (fk_taxonomy_level) references o_tax_taxonomy_level (id);
-- lectures
create table o_lecture_block_to_tax_level (
id bigint not null auto_increment,
creationdate datetime not null,
fk_lecture_block bigint not null,
fk_taxonomy_level bigint not null,
primary key (id)
);
alter table o_lecture_block_to_tax_level ENGINE = InnoDB;
alter table o_lecture_block_to_tax_level add constraint lblock_rel_to_lblock_idx foreign key (fk_lecture_block) references o_lecture_block (id);
alter table o_lecture_block_to_tax_level add constraint lblock_rel_to_tax_lev_idx foreign key (fk_taxonomy_level) references o_tax_taxonomy_level (id);
-- repository
create table o_re_to_tax_level (
id bigint not null auto_increment,
creationdate datetime not null,
fk_entry bigint not null,
fk_taxonomy_level bigint not null,
primary key (id)
);
alter table o_re_to_tax_level ENGINE = InnoDB;
alter table o_re_to_tax_level add constraint re_to_lev_re_idx foreign key (fk_entry) references o_repositoryentry (repositoryentry_id);
alter table o_re_to_tax_level add constraint re_to_lev_tax_lev_idx foreign key (fk_taxonomy_level) references o_tax_taxonomy_level (id);
alter table o_repositoryentry add column status varchar(16) default 'preparation' not null;
alter table o_repositoryentry add column allusers bit default 0 not null;
alter table o_repositoryentry add column guests bit default 0 not null;
alter table o_repositoryentry modify column canlaunch bit default 0 not null;
alter table o_repositoryentry modify column accesscode integer default 0 not null;
alter table o_repositoryentry modify column statuscode integer default 0 not null;
create index re_status_idx on o_repositoryentry (status);
-- drop policy
alter table o_bs_policy drop foreign key FK9A1C5101E2E76DB;
-- evaluation forms
create table o_eva_form_survey (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
e_resname varchar(50) not null,
e_resid bigint not null,
e_sub_ident varchar(2048),
fk_form_entry bigint not null,
primary key (id)
);
create table o_eva_form_participation (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
e_identifier_type varchar(50) not null,
e_identifier_key varchar(50) not null,
e_status varchar(20) not null,
e_anonymous bit not null,
fk_executor bigint,
fk_survey bigint not null,
primary key (id)
);
alter table o_eva_form_response add column e_no_response bit default 0;
alter table o_eva_form_session modify column fk_form_entry bigint;
alter table o_eva_form_session modify column fk_identity bigint;
alter table o_eva_form_session add column e_email varchar(1024);
alter table o_eva_form_session add column e_firstname varchar(1024);
alter table o_eva_form_session add column e_lastname varchar(1024);
alter table o_eva_form_session add column e_age varchar(1024);
alter table o_eva_form_session add column e_gender varchar(1024);
alter table o_eva_form_session add column e_org_unit varchar(1024);
alter table o_eva_form_session add column e_study_subject varchar(1024);
alter table o_eva_form_session add column fk_survey bigint;
alter table o_eva_form_session add column fk_participation bigint unique;
alter table o_eva_form_survey ENGINE = InnoDB;
alter table o_eva_form_participation ENGINE = InnoDB;
create unique index idx_eva_surv_ores_idx on o_eva_form_survey (e_resid, e_resname, e_sub_ident(255));
alter table o_eva_form_participation add constraint eva_part_to_surv_idx foreign key (fk_survey) references o_eva_form_survey (id);
create unique index idx_eva_part_ident_idx on o_eva_form_participation (e_identifier_key, e_identifier_type, fk_survey);
create unique index idx_eva_part_executor_idx on o_eva_form_participation (fk_executor, fk_survey);
alter table o_eva_form_session add constraint eva_sess_to_surv_idx foreign key (fk_survey) references o_eva_form_survey (id);
alter table o_eva_form_session add constraint eva_sess_to_part_idx foreign key (fk_participation) references o_eva_form_participation (id);
create index idx_eva_resp_report_idx on o_eva_form_response (fk_session, e_responseidentifier, e_no_response);
-- quality management
create table o_qual_data_collection (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
q_status varchar(50),
q_title varchar(200),
q_start datetime,
q_deadline datetime,
q_topic_type varchar(50),
q_topic_custom varchar(200),
q_topic_fk_identity bigint,
q_topic_fk_organisation bigint,
q_topic_fk_curriculum bigint,
q_topic_fk_curriculum_element bigint,
q_topic_fk_repository bigint,
primary key (id)
);
create table o_qual_context (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
q_role varchar(20),
fk_data_collection bigint not null,
fk_eva_participation bigint,
fk_eva_session bigint,
fk_audience_repository bigint,
fk_audience_cur_element bigint,
primary key (id)
);
create table o_qual_context_to_organisation (
id bigint not null auto_increment,
creationdate datetime not null,
fk_context bigint not null,
fk_organisation bigint not null,
primary key (id)
);
create table o_qual_context_to_curriculum (
id bigint not null auto_increment,
creationdate datetime not null,
fk_context bigint not null,
fk_curriculum bigint not null,
primary key (id)
);
create table o_qual_context_to_cur_element (
id bigint not null auto_increment,
creationdate datetime not null,
fk_context bigint not null,
fk_cur_element bigint not null,
primary key (id)
);
create table o_qual_context_to_tax_level (
id bigint not null auto_increment,
creationdate datetime not null,
fk_context bigint not null,
fk_tax_leveL bigint not null,
primary key (id)
);
create table o_qual_reminder (
id bigint not null auto_increment,
creationdate datetime not null,
lastmodified datetime not null,
q_type varchar(20) not null,
q_send_planed datetime,
q_send_done datetime,
fk_data_collection bigint not null,
primary key (id)
);
alter table o_qual_data_collection ENGINE = InnoDB;
alter table o_qual_context ENGINE = InnoDB;
alter table o_qual_context_to_organisation ENGINE = InnoDB;
alter table o_qual_context_to_curriculum ENGINE = InnoDB;
alter table o_qual_context_to_cur_element ENGINE = InnoDB;
alter table o_qual_context_to_tax_level ENGINE = InnoDB;
alter table o_qual_reminder ENGINE = InnoDB;
create index idx_dc_status_idx on o_qual_data_collection (q_status);
alter table o_qual_context add constraint qual_con_to_data_collection_idx foreign key (fk_data_collection) references o_qual_data_collection (id);
alter table o_qual_context add constraint qual_con_to_participation_idx foreign key (fk_eva_participation) references o_eva_form_participation (id);
alter table o_qual_context add constraint qual_con_to_session_idx foreign key (fk_eva_session) references o_eva_form_session (id);
alter table o_qual_context_to_organisation add constraint qual_con_to_org_con_idx foreign key (fk_context) references o_qual_context (id);
create unique index idx_con_to_org_org_idx on o_qual_context_to_organisation (fk_organisation, fk_context);
alter table o_qual_context_to_curriculum add constraint qual_con_to_cur_con_idx foreign key (fk_context) references o_qual_context (id);
create unique index idx_con_to_cur_cur_idx on o_qual_context_to_curriculum (fk_curriculum, fk_context);
alter table o_qual_context_to_cur_element add constraint qual_con_to_cur_ele_con_idx foreign key (fk_context) references o_qual_context (id);
create unique index idx_con_to_cur_ele_ele_idx on o_qual_context_to_cur_element (fk_cur_element, fk_context);
alter table o_qual_context_to_tax_level add constraint qual_con_to_tax_level_con_idx foreign key (fk_context) references o_qual_context (id);
create unique index idx_con_to_tax_level_tax_idx on o_qual_context_to_tax_level (fk_tax_leveL, fk_context);
alter table o_qual_reminder add constraint qual_rem_to_data_collection_idx foreign key (fk_data_collection) references o_qual_data_collection (id);
-- membership
alter table o_bs_group_member add column g_inheritance_mode varchar(16) default 'none' not null;
-- lectures
alter table o_lecture_block_roll_call add column l_appeal_reason mediumtext;
alter table o_lecture_block_roll_call add column l_appeal_status mediumtext;
alter table o_lecture_block_roll_call add column l_appeal_status_reason mediumtext; | the_stack |
--------------------------------------------------------------------------------
-- Name: Sample Trees
-- Copyright (c) 2012, 2021 Oracle and/or its affiliates.
-- Licensed under the Universal Permissive License v 1.0
-- as shown at https://oss.oracle.com/licenses/upl/
--------------------------------------------------------------------------------
prompt --application/set_environment
set define off verify off feedback off
--------------------------------------------------------------------------------
--
-- ORACLE Application Express (APEX) export file
--
-- You should run the script connected to SQL*Plus as the Oracle user
-- APEX_210100 or as the owner (parsing schema) of the application.
--
-- NOTE: Calls to apex_application_install override the defaults below.
--
--------------------------------------------------------------------------------
begin
wwv_flow_api.import_begin (
p_version_yyyy_mm_dd=>'2021.04.15'
,p_release=>'21.1.0-14'
,p_default_workspace_id=>20
,p_default_application_id=>7910
,p_default_id_offset=>0
,p_default_owner=>'ORACLE'
);
end;
/
prompt APPLICATION 7910 - Sample Trees
--
-- Application Export:
-- Application: 7910
-- Name: Sample Trees
-- Date and Time: 15:50 Thursday May 6, 2021
-- Exported By: ALLAN
-- Flashback: 0
-- Export Type: Application Export
-- Pages: 11
-- Items: 38
-- Computations: 1
-- Validations: 2
-- Processes: 19
-- Regions: 35
-- Buttons: 24
-- Dynamic Actions: 5
-- Shared Components:
-- Logic:
-- Items: 1
-- Processes: 1
-- Navigation:
-- Lists: 5
-- Breadcrumbs: 1
-- Entries: 10
-- NavBar Entries: 3
-- Security:
-- Authentication: 1
-- User Interface:
-- Themes: 1
-- Templates:
-- Page: 9
-- Region: 18
-- Label: 7
-- List: 13
-- Popup LOV: 1
-- Calendar: 1
-- Breadcrumb: 1
-- Button: 3
-- Report: 12
-- LOVs: 4
-- Shortcuts: 2
-- Plug-ins: 3
-- Globalization:
-- Messages: 20
-- Reports:
-- E-Mail:
-- Supporting Objects: Included
-- Install scripts: 6
-- Version: 21.1.0-14
-- Instance ID: 203745984637177
--
prompt --application/delete_application
begin
wwv_flow_api.remove_flow(wwv_flow.g_flow_id);
end;
/
prompt --application/create_application
begin
wwv_flow_api.create_flow(
p_id=>wwv_flow.g_flow_id
,p_owner=>nvl(wwv_flow_application_install.get_schema,'ORACLE')
,p_name=>nvl(wwv_flow_application_install.get_application_name,'Sample Trees')
,p_alias=>nvl(wwv_flow_application_install.get_application_alias,'7910')
,p_application_group=>wwv_flow_api.id(1268170835711543)
,p_application_group_name=>'21.1 Sample Apps'
,p_page_view_logging=>'YES'
,p_page_protection_enabled_y_n=>'Y'
,p_checksum_salt=>'930CA30580ADE1957CB00F0D28569BDF4D20092B402116CD0DA5DBE9827537DD'
,p_checksum_salt_last_reset=>'20150102075811'
,p_bookmark_checksum_function=>'SH1'
,p_compatibility_mode=>'19.2'
,p_flow_language=>'en'
,p_flow_language_derived_from=>'FLOW_PRIMARY_LANGUAGE'
,p_date_format=>'DS'
,p_direction_right_to_left=>'N'
,p_flow_image_prefix => nvl(wwv_flow_application_install.get_image_prefix,'')
,p_documentation_banner=>wwv_flow_string.join(wwv_flow_t_varchar2(
'1.0.4 -> 1.0.5: Added "SQL Source" show/hide region to "Project Tracking" and "Project Documentation" pages.',
'1.0.5 -> 1.0.6: Changed Authentication scheme to use new "ORA_WWV_PACKAGED_APPLICATIONS" cookie'))
,p_authentication=>'PLUGIN'
,p_authentication_id=>wwv_flow_api.id(7263490156395758696)
,p_application_tab_set=>1
,p_logo_type=>'T'
,p_logo_text=>'Sample Trees'
,p_favicons=>'<link rel="shortcut icon" href="#IMAGE_PREFIX#apex_ui/img/favicons/app-sample-trees.ico"><link rel="icon" sizes="16x16" href="#IMAGE_PREFIX#apex_ui/img/favicons/app-sample-trees-16x16.png"><link rel="icon" sizes="32x32" href="#IMAGE_PREFIX#apex_ui/im'
||'g/favicons/app-sample-trees-32x32.png"><link rel="apple-touch-icon" sizes="180x180" href="#IMAGE_PREFIX#apex_ui/img/favicons/app-sample-trees.png">'
,p_public_user=>'APEX_PUBLIC_USER'
,p_proxy_server=>nvl(wwv_flow_application_install.get_proxy,'')
,p_no_proxy_domains=>nvl(wwv_flow_application_install.get_no_proxy_domains,'')
,p_flow_version=>'1.1.1'
,p_flow_status=>'AVAILABLE_W_EDIT_LINK'
,p_flow_unavailable_text=>'This application is currently unavailable at this time.'
,p_exact_substitutions_only=>'Y'
,p_browser_cache=>'N'
,p_browser_frame=>'D'
,p_deep_linking=>'Y'
,p_runtime_api_usage=>'T'
,p_authorize_public_pages_yn=>'Y'
,p_rejoin_existing_sessions=>'P'
,p_csv_encoding=>'Y'
,p_auto_time_zone=>'N'
,p_substitution_string_01=>'APP_NAME'
,p_substitution_value_01=>'Sample Trees'
,p_substitution_string_02=>'GETTING_STARTED_URL'
,p_substitution_value_02=>'http://www.oracle.com/technetwork/developer-tools/apex/index.html'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210506122051'
,p_file_prefix => nvl(wwv_flow_application_install.get_static_app_file_prefix,'')
,p_files_version=>3
,p_ui_type_name => null
,p_print_server_type=>'INSTANCE'
);
end;
/
prompt --application/shared_components/navigation/lists/navigation_menu
begin
wwv_flow_api.create_list(
p_id=>wwv_flow_api.id(1585479003630319997)
,p_name=>'Navigation Menu'
,p_list_status=>'PUBLIC'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585479119725319998)
,p_list_item_display_sequence=>1
,p_list_item_link_text=>'Home'
,p_list_item_link_target=>'f?p=&APP_ID.:1:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-home'
,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST'
,p_list_item_current_for_pages=>'1,4'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585479202327319999)
,p_list_item_display_sequence=>2
,p_list_item_link_text=>'Project Tracking'
,p_list_item_link_target=>'f?p=&APP_ID.:3:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-toggle-right'
,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST'
,p_list_item_current_for_pages=>'3,6,7,9,10'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585590195020537999)
,p_list_item_display_sequence=>12
,p_list_item_link_text=>'Administration'
,p_list_item_link_target=>'f?p=&APP_ID.:5:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-gear'
,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST'
,p_list_item_current_for_pages=>'2,5,8'
);
end;
/
prompt --application/shared_components/navigation/lists/navigation_bar
begin
wwv_flow_api.create_list(
p_id=>wwv_flow_api.id(1585506649675359475)
,p_name=>'Navigation Bar'
,p_list_status=>'PUBLIC'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585506801231359475)
,p_list_item_display_sequence=>20
,p_list_item_link_text=>'Help'
,p_list_item_link_target=>'f?p=&APP_ID.:HELP:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-question-circle-o'
,p_list_item_current_type=>'TARGET_PAGE'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585507081510359481)
,p_list_item_display_sequence=>30
,p_list_item_link_text=>'&APP_USER.'
,p_list_item_link_target=>'#'
,p_list_item_icon=>'fa-user'
,p_list_text_02=>'has-username'
,p_list_item_current_type=>'TARGET_PAGE'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(1585507456487359481)
,p_list_item_display_sequence=>50
,p_list_item_link_text=>'Sign Out'
,p_list_item_link_target=>'&LOGOUT_URL.'
,p_parent_list_item_id=>wwv_flow_api.id(1585507081510359481)
,p_list_item_current_type=>'TARGET_PAGE'
);
end;
/
prompt --application/shared_components/navigation/lists/administration
begin
wwv_flow_api.create_list(
p_id=>wwv_flow_api.id(2127124625948194941)
,p_name=>'Administration'
,p_list_status=>'PUBLIC'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(2127124924596194941)
,p_list_item_display_sequence=>10
,p_list_item_link_text=>'Manage Sample Data'
,p_list_item_link_target=>'f?p=&APP_ID.:2:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-edit'
,p_list_text_01=>'This application ships with sample data. You can remove or recreate sample data using this administrative page.'
,p_list_item_current_type=>'TARGET_PAGE'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(2127125309444194941)
,p_list_item_display_sequence=>20
,p_list_item_link_text=>'Theme Style'
,p_list_item_link_target=>'f?p=&APP_ID.:8:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'fa-desktop'
,p_list_text_01=>'Change user interface theme style for all users.'
,p_translate_list_text_y_n=>'Y'
,p_list_item_current_type=>'TARGET_PAGE'
);
end;
/
prompt --application/shared_components/navigation/lists/task_tracking_tabs
begin
wwv_flow_api.create_list(
p_id=>wwv_flow_api.id(3171026188574106764)
,p_name=>'Task_Tracking_Tabs'
,p_list_status=>'PUBLIC'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(3171026390357106773)
,p_list_item_display_sequence=>10
,p_list_item_link_text=>'Task Tree'
,p_list_item_link_target=>'f?p=&APP_ID.:3:&SESSION.::&DEBUG.::::'
,p_list_item_current_type=>'COLON_DELIMITED_PAGE_LIST'
,p_list_item_current_for_pages=>'3'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(3171026692905106780)
,p_list_item_display_sequence=>20
,p_list_item_link_text=>'Project Dashboard'
,p_list_item_link_target=>'f?p=&APP_ID.:6:&SESSION.:'
,p_list_item_current_for_pages=>'6'
);
end;
/
prompt --application/shared_components/navigation/lists/trees
begin
wwv_flow_api.create_list(
p_id=>wwv_flow_api.id(3223519185632036419)
,p_name=>'Trees'
,p_list_status=>'PUBLIC'
);
wwv_flow_api.create_list_item(
p_id=>wwv_flow_api.id(3223519391999036420)
,p_list_item_display_sequence=>10
,p_list_item_link_text=>'Project Tracking'
,p_list_item_link_target=>'f?p=&APP_ID.:3:&SESSION.::&DEBUG.::::'
,p_list_item_icon=>'#APP_IMAGES#trees_project_tracking.jpg'
,p_list_item_current_type=>'TARGET_PAGE'
);
end;
/
prompt --application/shared_components/files/trees_project_doc_jpg
begin
wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table;
wwv_flow_api.g_varchar2_table(1) := 'FFD8FFE1001845786966000049492A00080000000000000000000000FFEC00114475636B79000100040000003C0000FFE10358687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F003C3F787061636B657420626567696E3D22EFBBBF';
wwv_flow_api.g_varchar2_table(2) := '222069643D2257354D304D7043656869487A7265537A4E54637A6B633964223F3E203C783A786D706D65746120786D6C6E733A783D2261646F62653A6E733A6D6574612F2220783A786D70746B3D2241646F626520584D5020436F726520352E332D6330';
wwv_flow_api.g_varchar2_table(3) := '31312036362E3134353636312C20323031322F30322F30362D31343A35363A32372020202020202020223E203C7264663A52444620786D6C6E733A7264663D22687474703A2F2F7777772E77332E6F72672F313939392F30322F32322D7264662D73796E';
wwv_flow_api.g_varchar2_table(4) := '7461782D6E7323223E203C7264663A4465736372697074696F6E207264663A61626F75743D222220786D6C6E733A786D703D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F2220786D6C6E733A786D704D4D3D22687474703A2F';
wwv_flow_api.g_varchar2_table(5) := '2F6E732E61646F62652E636F6D2F7861702F312E302F6D6D2F2220786D6C6E733A73745265663D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F73547970652F5265736F75726365526566232220786D703A43726561746F7254';
wwv_flow_api.g_varchar2_table(6) := '6F6F6C3D2241646F62652050686F746F73686F7020435336202831332E302032303132303330352E6D2E34313520323031322F30332F30353A32313A30303A3030292020284D6163696E746F7368292220786D704D4D3A496E7374616E636549443D2278';
wwv_flow_api.g_varchar2_table(7) := '6D702E6969643A31393137314330453832343931314531384335303830393641463732304430322220786D704D4D3A446F63756D656E7449443D22786D702E6469643A313931373143304638323439313145313843353038303936414637323044303222';
wwv_flow_api.g_varchar2_table(8) := '3E203C786D704D4D3A4465726976656446726F6D2073745265663A696E7374616E636549443D22786D702E6969643A3139313731433043383234393131453138433530383039364146373230443032222073745265663A646F63756D656E7449443D2278';
wwv_flow_api.g_varchar2_table(9) := '6D702E6469643A3139313731433044383234393131453138433530383039364146373230443032222F3E203C2F7264663A4465736372697074696F6E3E203C2F7264663A5244463E203C2F783A786D706D6574613E203C3F787061636B657420656E643D';
wwv_flow_api.g_varchar2_table(10) := '2272223F3EFFEE000E41646F62650064C000000001FFDB0084000604040405040605050609060506090B080606080B0C0A0A0B0A0A0C100C0C0C0C0C0C100C0E0F100F0E0C1313141413131C1B1B1B1C1F1F1F1F1F1F1F1F1F1F010707070D0C0D181010';
wwv_flow_api.g_varchar2_table(11) := '181A1511151A1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1FFFC000110800A0011803011100021101031101FFC4009F00010002030101000000000000000000000003040205';
wwv_flow_api.g_varchar2_table(12) := '060107010101010101010000000000000000000000010204030510000201030203040708000406030100000203010004051112211306312215074191D1326393145161B2235373345471814252C162A23343257282241611010001020306050304010500';
wwv_flow_api.g_varchar2_table(13) := '0000000000011102F0210331415161711281A1D1E10491B1C1F1223213054252C2D223FFDA000C03010002110311003F00FBEDF65F0F8AC65BDEE4A0016CE4AA0E112E61B9A3DD18158199114EBE8A0CEDB31D3974853EDEE6C4D4F4CDD28B548CCA0674';
wwv_flow_api.g_varchar2_table(14) := '26ED2DA50033C0A66384F6D27212FD7E0E550EE758F26460E1BBADF648CC6E82DDD9A48F1D7ECA0F1791C0B020D6FB0601305224276E512D38D4571313C4CA38C0F6CD28223CDF4CADC093BBC78B9846001BEDF5DEA1DEC19FB2403BD313E8A0F3C77A66';
wwv_flow_api.g_varchar2_table(15) := '6EA2D46E6C8EE24459B03945A2CC08C585231222042B298299D38504EABFC238D6096D9398D5F392B5CA0C8D5A6BBC0475921FBE385051C6F5474B64B99F4CD40CA9A56E51709FA6996844C9AC61E0B932088EF6DD74F4D37546C157787712852766D27A';
wwv_flow_api.g_varchar2_table(16) := 'E5C815CA0E58A8E12C081D6483FE68E14136DB6FD057CB0F65036DB7E82BE587B281B6DBF415F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B281B6DBF415F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B281B6';
wwv_flow_api.g_varchar2_table(17) := 'DBF415F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B281B6DBF415F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B281B6DBF415F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B281B6DBF41';
wwv_flow_api.g_varchar2_table(18) := '5F2C3D940DB6DFA0AF961ECA06DB6FD057CB0F65036DB7E82BE587B2834594C64E57196481BC6D83AD996D796F74905B0C5A81EEF71B041313BB8EB14261CFBFCADE9F70804DDDD4002C6349849993C20B6DC1308374F1614927FED94F6C5232D98D9E84';
wwv_flow_api.g_varchar2_table(19) := 'CD76A6B8F2EB1972E165C642E183B57CD4F26D816C62864619220B180D4674D831B6AC4D271CBD126DAE31C51B7CAEE9A6126798D184B56E80805404C86ED6246062352DFEFF006C69C2B36C5298E1E8D4CD718E290BCB8C344C15BDDBAD9B02604D055B';
wwv_flow_api.g_varchar2_table(20) := '9114339BBE67704F7A79F3DEEDE1571F6F466231F5F5421E56E042CD76717971C85AE17102B40CC904B644E4B64CE91F513DC9EECE91AFA6AD718E8B39AF61BA130D89C8AF229731B7A0E9B8369824373096C59E90023CB02E71172C34189D34A44E31D1';
wwv_flow_api.g_varchar2_table(21) := '26DACD525FF44E1AFF009FF54C6B39F3902E301A84E4F67365653132321CB8D931F6CEB537531B6A533AE36515B0DE5DE0B1395B1CA21AC3B9B1592C6241622445CCFCC8818FCBFF00BC5A80F09AB55A3ABE6D40E6D039B40E6D039B40E6D039B40E6D03';
wwv_flow_api.g_varchar2_table(22) := '9B40E6D039B40E6D039B40E6D039B40E6D039B40E6D039B40E6D039B40E6D039B40E6D039B40E6D05EB2C2589D95B914B752504CFE69FF00B63EFA09230B8C964AE099CC188291E69EB11333113DBF74D044EB0C12592B6DC103223590979C4E93F76EA0';
wwv_flow_api.g_varchar2_table(23) := '95586C5B420D466605C6085C7313EA9ACDB7C4D622760CBC06C3E2FCD3F6D683C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2F';
wwv_flow_api.g_varchar2_table(24) := 'CD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03';
wwv_flow_api.g_varchar2_table(25) := 'C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D03C06C3E2FCD3F6D05AC7FF02DBF683F0C5073D6B6BD5C7E61DD5D5D5D5B2FA6D3602BB4B1';
wwv_flow_api.g_varchar2_table(26) := '4C9CB98D6335873E4860751D8623033D9341632C8C84DEB26DDB736F126B66FB6E44C322076C81F37598ECF45726B7CFD1D3BBB6E9A4F496A2D996BB3F8ACCDDF42DD58D82CC722C24CC2947027B62E00DA30526A89FCB82E1BE35ECD6B97FC6EA5B7EA6';
wwv_flow_api.g_varchar2_table(27) := 'A5D1FC66FAADF134F07376F3E68E1B0256C6A77D3A44DC379AA1AD5DB0F3BF2A57B9C7CEEF2F608EF01D3DE98D6BEC562915C6CF779E79D1B1462331D4FD2BD39739055D1DD2F212C7FD4366D6E3C3F9EC81E70DBCA80C8922B92888E3F656694989E5F8';
wwv_flow_api.g_varchar2_table(28) := 'F56AB149A63355FA7F3813702BE635E99B299B97EFB382E7B23798A476840984EA0BDDAC76494E956695E5FA7BA674E7FAFB2B36C7CE74AEF0ACCCF9372E06D98B8ED8EE94B10DA42FE22A93338597E5E8103071EF4EB299D988C71E54A0EFFA62DB3C9B';
wwv_flow_api.g_varchar2_table(29) := '379E72E25F7AEB8618868B85AD513B560BD911DDDB1BBBD325ACF6D26948A24577B7159528140A05028140A05028140A05028140A05028140A05028140A0502820C7FF0002DBF683F0C5044B9FFDBBC7ECB74CEBFE26DA0F334D35639AC09282190D367B';
wwv_flow_api.g_varchar2_table(30) := 'D3DF1D6234F4CD4A08EF32E9462DB7CD06A017C39643A30A75888811F4C94F08AE5F9965F3A731A795D97DDAB695CDCBE2F3592C96756217670C22823B2089E4DBA02635E69FFA9AC92D223D1A4FD95989FE8B6DB6EBA6FBAEBA231CA0DAACFF0031BA81';
wwv_flow_api.g_varchar2_table(31) := '394C95927109BD5D95D3530E97CDBE80006611B641BBE76A4F59D638C8F0EDAEC89CABD7CBD92633A74F3532F3AD64ABC6231CA95DACC9F35D750A5928459323BA573A38A532201A719F4D6AD8AFD7D3D5276D19879CD247A9E1596E8FAE1B42639B0322';
wwv_flow_api.g_varchar2_table(32) := 'B2335EE95889339904BD64207B0A275EDA5B15988277BE975028140A05028140A05028140A05028140A05028140A05028140A05028141063FF00816DFB41F8628225CFFEDDE3F65BA675FF00EEDA0C7367018D614F6412F5D7F70683CCA231F7D8E60BE4';
wwv_flow_api.g_varchar2_table(33) := '4EDE260A5827B76104EB070713DD91EDD6B9BE66BCE969CDF11598A7DDAB62B2E6B0B7D69697809C663C46C6E9FC2E88C89F72DED6B622752911F49970AE78D08BE63575A3B6FAC5339CB8475C4AD7742D5F798586C6647236D984371D6D8E9543320E95';
wwv_flow_api.g_varchar2_table(34) := '9298571AF24542A2634A48408BDCE1113AD7D0896662505D673CBBEA1BFB5C418AB2AD2BBD1620936246E0112FDC6C81E5E9CB1ED99989ECAD444B32EBA50999D6563AEEDFD91EFC469BBFC7EFA8ACE8140A05028140A05028140A05028140A05028140A';
wwv_flow_api.g_varchar2_table(35) := '05028140A05028140A0831FF00C0B6FDA0FC31411AE63C5DF1E9FA74FE36D079717C996B6DA6D9971B2239B021043DE8D622774C6BC28359954D8643A6DF16ED5585AE90D69346169DA13B8C5BD9A04EDD0ABC2CD7B6F9BAD8DB64D25692A7D21D3F8F5E';
wwv_flow_api.g_varchar2_table(36) := 'B9755FAB26D71142AE51304952F5D2529D24B488DBA4EB3AF0FBABC3E47C6D4D4D4B67BA22CB66269C562E8885DCC74774E665975F56B92B879218E603084C4EDE0C5443A4F7676B0E3B38C4D774463C92AC6CFA0FA72CF2D196B65315780432050D66D1';
wwv_flow_api.g_varchar2_table(37) := '10025C2E075D366873C27FE11489A4511BBBBBCB4B3B73B8BB705BDB87BED6940046BC389169141E2AFAC9D681789B85B2D18306BB80312590976109C4ED989A0F1B7F62A04B1B70B585C982EDC88C62186CF7042667BD25E888A0958C5A824D850003DA';
wwv_flow_api.g_varchar2_table(38) := '4531111FE7341E81818098141014448944EB1313C6262682B3F2B8BB7BC4D95C5E2537973FC7B6630058CEDF7026771767A2902D5028140A05028140A05028140A05028140A05028140A0502820C7FF02DBF683F0C50556DBCBB2CCDAE624812999E5C8C';
wwv_flow_api.g_varchar2_table(39) := '6E8DECE05BA0B8506B33D8845DDEEEB80B6708903922F23120388DBAC6C21D7DD8AE4D5F91A96DD4B74EEBE38C4C35111C4C874E3F25D2ADC543D62F395396E35C3532C5345E306BD7BCB220D0A35ECAF0F8117F7DF7DD6F6D6EAD256FA529C9A6B9E87E';
wwv_flow_api.g_varchar2_table(40) := 'AABA78B5992B3B71B9223C82AD52E4444C4B497099068F12E768D61778B4D634F47D3AE530CC4E7569ED3C9FCB5B95B98DFDAF3061026E85BC5AAE4194831462C1DCC504ED0238FF00516B1E8A4EDE18C47448CBCF1E1B562EFC9B99B225D95FFD3DCB24';
wwv_flow_api.g_varchar2_table(41) := '4AE8E09FA5C0C72C8D4D9961E80D62E48B48F4D66E8ACE5B314FA66B6CD31D6BF56C57E5AB93D3D7961F56BBDC85DBED5ECBBBCE79C98D982C5612C168B5643CB99062CA0867BDC675D7574D68CDB14699FE50E7AE659F5794B6BA83B18B5D1896684C13';
wwv_flow_api.g_varchar2_table(42) := '5B43982263050B62F512F7A75FB759944D239B5BFEBF94977E50652E2E6EEE0F2486B0856768770A6B8A2E02D8ADE5B324CD43BA5A408F0F4FDD566633EBE44236F93F966D80DABEFAD2E4968004B2E1770C95129B2C5A83468C72A3582D74DDBA3869C3';
wwv_flow_api.g_varchar2_table(43) := '49DD4A7863D3AA46F5E2F2A2EEE1F7237D7E0EB6740EF9FCF865C18ACA00EE7F376CCA0E6397B74EEC71A44E733D7F5EA4E78F2E8B99AF2F72D90C859DC06494990B3559DDDEC2D9F545C983D667F3394D1323D47983B973AC896A54BA7F74CC71AFB1BA';
wwv_flow_api.g_varchar2_table(44) := '215A7CB6CFDCACAF6E72CA4E7C0246C6F100F25DB4918C1EC5B1BDEE6247696EF4CEB5ABAE89DDBFCB3AC79A63ED9F9289F9599BB37386C72570D0BDBE4C13B9E704BB09267D4F320CB42615B9FD3810F18D04BD1C3115AC6315C96636BEA4310230311A';
wwv_flow_api.g_varchar2_table(45) := '44469114220A05028140A05028140A05028140A05028140A0502820C7FF02DBF683F0C5073D687D60DF30AEF9E8B7B6E98458882485B0CB8B8793350330DB12B108E64446EE3DB3F640659B55DF881CA0C91324B3360DA85CF302074D9A9C8EDD2626B9F';
wwv_flow_api.g_varchar2_table(46) := '53E668E9CF6DD745B2B16CCAA66959A1E83BB0C5039592D172A5DBEBCE18970C9C0C01017FDBD780944FD9C6B8BFC7DF6DDA9AB75B3589BDE931B2BC1A8B767993CA59639AD55ADB80C422EAD48D8F388635932772E270C49C02E374CE913C3D1A7D5BB2';
wwv_flow_api.g_varchar2_table(47) := '8AC6788FBE7F478DB9CD31BFD9163325E67642F57F5967736D6C19209D6416928B496248C0B6948988C41C6ED2787A67B6BD6C8B69992CEF4BCD11BACCC5A9B82CFEA2E02CA39496B794D5B641CA232FFC32B5EC098E325C7EEF3B623B73E78F16A7F972';
wwv_flow_api.g_varchar2_table(48) := '69AF3AE3CCFC75813B2CA9B336DCECB505D9435A47A4EC46CDF032A38DB26C199219D6235F42339C7265B2BEC9F9B437116A2B7FE7DBDC359709B4448A48A5C4A05C919411AA16B1EFFBFBBB3EC97444579479E5EF1E0B6EEAA6B5C879AAD722D454CB51';
wwv_flow_api.g_varchar2_table(49) := '7AD62D7BADC190859B023EA37933BEEEF1EE4CF0188D7FF96EE88EE9A6CF64DCEEBA79D957612C99965F2B244A8FAA08881EFC7099D224A235EDD35A97C444E5B086C6B2A5028140A05028140A05028140A05028140A05028140A05028141063FF00816D';
wwv_flow_api.g_varchar2_table(50) := 'FB41F8628225C7FEDDE5F6DBA63FEB6D032D2C1B161AB74306427700EE2D20E37691A4EBC35AC4E9DB33598899E8B5637394B34635B7D244B42B89112CC4B84E9C00860A75F470AE5F956DD6E9CFF5452ECB64735B76E6E66C3A8B2590CDA01572230D9D';
wwv_flow_api.g_varchar2_table(51) := '57603113B103A49B5E7A4C6E3DD10023EBE135AB2674AC88D4BBBAEBA623C7D0DBB149BE62750A7357E91C2CDE636DAF0AC16D54F2A79D269527F39A50A39336CC108C7774F4D764463EBF884BA2889BE72D885BF3E71CD8D76429306B649FD44AE2DA65';
wwv_flow_api.g_varchar2_table(52) := '8B2215EE864F304B885223299298C735BB0F351591BFC7A2CB18516F7D72AB5975C5C212C09354B4E791B8993B3BB11C342D784F66B62DCD9AE4AB73E66DFE15F7719D55A3541929C75B8D999033602D6C634E1D3DEDA2E1EE8FAFB2B164D691BFDE9F76';
wwv_flow_api.g_varchar2_table(53) := 'EFB6959C71471E75584663C3CF1CD19DF74A95C1AE582CB7D083985BA14BE72F5E5891F7CB481D78D6A9FB6B8C7BA533A2EBFCDAC6060F15910B5DCECB93ADD16FCF4E89B94C14CADE5251B07F28B53D384E83DA514A67466BF76D3A43AE6DFA86F2F2C6';
wwv_flow_api.g_varchar2_table(54) := '51F4D7762AB7698C9897305E1AF3006264A037C48C4CFD9C749E156EB76F5982B49A3A8ACA940A05028140A05028140A05028140A05028140A05028140A0831FFC0B6FDA0FC31411AC67C5DE5E8FA74C7FD6DA0A394EA24D85CF29EEB7B602215A8AE0C8';
wwv_flow_api.g_varchar2_table(55) := '65865105A0C40CFDB141065EF71D75D3D37194834239A90DC9D48C5A4E152E4787EA1476C7676D73FC7D79D4BEEB294EDBA9D56E8A4555AC9DD15D3D757967E20A5E4171F597F0D6413E60A78114471FF57018FB63871AC6AFC3B6FBE352667F6F3CA162';
wwv_flow_api.g_varchar2_table(56) := 'E98C9693D55D22FC88E32DAE517374C4CE4A5681E6442C369738A4226359DC331E9AECA6533FED67873697199AF2CF2509C972916A1784CB5B60BA084AAE26E396E610AA6794727B03714C6E898812D2785236538FE094DD3BD67E59E75277F8F6DA2C94';
wwv_flow_api.g_varchar2_table(57) := 'D0414DC246D9D0491234E90D102D216B235E9E88E1537578AD372F5DF50F97AED3EB2EF1CCDB75203CEE54FF00FA4572C998DD1EF72C35DD1E88EDA423638EB5E9ABEC7F3EC2DED1D637732C925AD720C292D4A4A223896F8E3AF1D638F1A4EC216070B8';
wwv_flow_api.g_varchar2_table(58) := '615F2C6C2DC57B395B214103CBD60B669A7BBAC6BA504B6F61636CD6B6DEDD496BE625EC580891C8C69127311125A47DB413D028140A05028140A05028140A05028140A05028140A05028141063FF816DFB41F86282A36CEDEE72EC9B858B2168492F77A';
wwv_flow_api.g_varchar2_table(59) := '0B98C9D63D51415EF96B2BE772DD70273012E048498C4C47778EC2E3A7DF5C7AD1F27BBFF39B3B79B514DE85D85C664FA6CB1C574D55A1CA886E56500E13534580504633105CC08ED1AF1FF1F6DD17EA4DD3137F7674DD25F4A7250BFF002DF097EC636E';
wwv_flow_api.g_varchar2_table(60) := 'B217C6DE04C3872C661DB1604E9DAB88DE6B488944F776FF00A78D7D1A4244A5C1797982C4310DB3B9BB34A6D8EDD293744AFF00341606E891113E6182463582D3EC88ADCDD39F366228A89F2AFA6C187ADDDE35ED909BD226AE09EA1D930B7402C62608';
wwv_flow_api.g_varchar2_table(61) := '931247A430A7B4E6B3CD585DF95BD157590B68BC6BDD776F30FB541DC684302692298188829129B7882D7D0471D85356266B52ECF6A55F94FD31019006B6EEE07242E1B8E73A0A605E2425033B62786EE1AEB489A4531953D209CE6B8C66E8F0182B2C1E';
wwv_flow_api.g_varchar2_table(62) := '2D58DB3932428987BD9B64C8DA64C322DB031AC914CF08A8910B8FB9B744093DA0A832800932818922EC18D7B667ECA2A4A05028140A05028140A05028140A05028140A05028140A05028141063FF816DFB41F86282A35574CCBB392F9440A5325A089EE';
wwv_flow_api.g_varchar2_table(63) := '8E633877BB3FCA82966312FBABB23D8441B81AB95DC36DE7708ED98285C77E387A6B8F5BE67F5DDDBD97DDCE2326A2DAA8F50F4733A83A22EFA72EA4066F2550E39DD03100F069484C46BBA207BBF7E95E3FE3E6E9BEFBE6D9B6B7562AB7ECA3980F2EBA';
wwv_flow_api.g_varchar2_table(64) := 'FD372372ACADAC5C5E5C0DF65DCB37AE0EE65694B244342190252642067DB5F4E29978F9D7F32CDD358E7E9B16EF7CB9EA92B5834E441D7C0C5B970EB9BA040B11A0A64057FF006E00377018D26678FDB1ABAE8DD8FE55FBC24533AE3630B5F2F3ADCAC8';
wwv_flow_api.g_varchar2_table(65) := '15779A816AC1DC994DC5C0C8B3F38AD37306008C526D09DB3C3BBE9AD45D6D232E1F8FC559A2DF53742751DFF53BF2D8A75AD99B561037846C96EAB49AE0797205B0F71F75AA60E83AC1017A7CEC9ED9AD1A9CDABC9F4BF99B70EC8DCC5C105C1248D1F4';
wwv_flow_api.g_varchar2_table(66) := 'F7CED9F9C5713366919801D3BEAD5C50243B7BB15AAC658E1EE4AD1F4075CB3700E626DC18040B20BCBA22B7B73DF13661AC4733DF098B82D191B74A96CC573D98C7349AEEC63C99663CB7CAB70F6B6160BB4DD6777906DB32E1EF6C805E3089445CE078';
wwv_flow_api.g_varchar2_table(67) := 'B3482DAC598F1FF498FA731BB942CEF405D19D7791D64B24C4DBA6F1E8B74DCB9C3138F81D8246A5116F33936ED9938980D9F7C548E7C3F4F2DA6CD9CBDD8E37CB5EB55DBBAD6EB364BB5985C2156F77723B794A315441C0818F28A571EF77A078C7DBAA';
wwv_flow_api.g_varchar2_table(68) := 'CEFDBF937B7583E8EEA8C6755A6F6725CEC2AD6E595BBAE2E1C7B0E6480444F86B0731324445C3870A91BFCB1D09D91C7DB3F377140A05028140A05028140A05028140A05028140A05028141063FF816DFB41F86282A39D74BCBB2116FCF894A60FBF01B';
wwv_flow_api.g_varchar2_table(69) := '6398CE3C7B6835999878E4592AE409492E4CAE6D9B7104A81D345C84C6D9D75AF2BBE469DB349BA227AAD255F2259B5F453BC205A3922950DB88F06409BC60BDE066DD1733C764EDEDD2B8BE05D176AEACC4D63BDB9D91D1A0C8E7FCC2C4E3EEF106A3BA';
wwv_flow_api.g_varchar2_table(70) := 'CA80CBED3209B76DCC0DB6D69F7CC160B69AA45613DD123D780FA6BEADBDB957C7EB1EFF004795268F63AABAFA39972566C9B739115DCCDA3B92B4EB03377F4D1F9E5043F99CA92DD1D94CBB6BBF18F1E4A97A9337E615BB6DAEB156D717088C78E55F6E';
wwv_flow_api.g_varchar2_table(71) := 'AB688E636D3BADB0186411ACEEB9C043053B8600BD3589CA797AE5E5B56338C6ECFCE326B8FAB3CCEB7875ADC5B728B1EE05CDEC5A3EE65FB56D8DA6B4C0C48BC84260D731B3746BC2AC4F266718C6C4F71D61E633FEB20316CB46DACF3164BB66B57031';
wwv_flow_api.g_varchar2_table(72) := 'CB994944E92C64C6E8D47846BAC6EAB14A4CE2736A99D1D5741673A97318C7DC67F1E38EB9076C52C60E3519589144C1C4715B0897AC709DBAD4DCCD7374D514A05028140A05028140A05028140A05028140A05028140A05028141063FF816DFB41F8628';
wwv_flow_api.g_varchar2_table(73) := '2A36FADADB2EC87B2170C4A617AEBC6658C8D387F95053CA5FDDA6F4C41373701BC170368A4B24351829364B24674E3E8AF1BFE3695F35BAD899E70B132C2E33B7963D2EFC9AAD7EBEED5110BB65C8AE5A52C85C446BDB3C75DB11ACF60C4CCC45727C39';
wwv_flow_api.g_varchar2_table(74) := '88BF52D88888B6EA6518AB53B9A16F9B56ABC635818E6DD645504995227447D6C49ECB5263A12C5B085727306A8DBD93DED227E8E7B988A4CD19E37CE1E9E7C5BDB5F5BDC58E65AA36331A422643CB99DDB4E0B610C80CB22758EE46E9D2B531B69BB18E';
wwv_flow_api.g_varchar2_table(75) := 'B075C63D4779C9D34AB30BB9B2C8128BBA5B102522DE6343933A1F13FF00F330BBBAC6D8EDD6622A4C536A44D56331E634D9656DD16D60779607688BE73821D0D8B77CB3564072A5630A056E28630267B238D4DF46A9944F1793E6AE160546FB4BBB1067';
wwv_flow_api.g_varchar2_table(76) := '1DD76B81E00224F188513677AA183BA2748E3C2678D6A6DA56BBABE5EF925B35D98C4222F37310CC536FEC31790BB9406EB8472D6A25111F2D40C963063F367DC91DD1F6E95299D08CD7B2DD6791C5679F65718D17D8A936CE59DB325976C2BC7FD2A970';
wwv_flow_api.g_varchar2_table(77) := '82000D79BEF4CB7481E3488AE3AFA139631C5597E6B616E5172565637970FB5E6CB9302B1805A562C9711EF91E54F306351D678FBB53873115979B984BAB3B4BD5DA5D32DAF542F4CA4371427464B5C7072BDAB0E497FCF3FEDECAF4FEB9AE3953EB5847';
wwv_flow_api.g_varchar2_table(78) := '41D3DD59639D7DDA6DADEE1336B0B609DC0080B92E9385B952245A81728BDED27ED8AF3DD5C71FCAB7540A05028140A05028140A05028140A05028140A05028141063FF816DFB41F86282B45DDB067CED09A0372EB506293251BCC16C383281ED981931D';
wwv_flow_api.g_varchar2_table(79) := '67EF8A0D7661B8B8BF2FAA5A44BB8B163DC09DE531AC08C17BD31135C7ADF126FBBBBBEFB7946C6A2EE45DB7A7BFFE56E5995B489C28AE7EB2D8D337030B09E3AAD6273303A6BAC0F0EDAF0F816DB65DA911374CC5D9CCF1E3935359A29E343CB36FD25C';
wwv_flow_api.g_varchar2_table(80) := '5B2F1EA6B1409B50708A5F2B74CCAE394E8066ACE323B8752FF3AFA9498979D532ECFCBB649005AE3CDAC1D58AE5AE5D0175B93326131BC40E1A413331A6933E8A9DB4CB18C8AE7CC563BCB9658A6C1238D3B4BF64C21406A9E7B525325B26275331239D';
wwv_flow_api.g_varchar2_table(81) := '749D78CEBDB57346FE71D6050D89B75CC3D508746D8D0D43050205F68C6F2E1F7D456AEEBA2FA72E2F1779F4829B816A9CD34C4073B9232000DD23BC11AC777D3A46BD95626626678FE47A5D11D224A4A8F116A6BB7062D224B82DA0ED77C71D7B75A836';
wwv_flow_api.g_varchar2_table(82) := '478BC731B0D3B659B605610C21892DA93E62E359E3DC3EF0FD9356A3581D0DD1C0A150E1AD2142CE7407242637EDD9AE931D9B7869D9A52249CD6C7A6FA7C58D60E36DA0DF252E28506A7263B0B770E3B8784D22E98C78FDC55E9CE8EC2F4F3F23718F06';
wwv_flow_api.g_varchar2_table(83) := '73F28EE7DDB1A7273331AED18D7B04774E94AE541BBA8140A05028140A05028140A05028140A05028140A0502820C7FF0002DBF683F0C5068ECBA5B0F6FD737DD4230F665AE2CD682635EC358249853B14A29D811AAA27BB1FF1A0B397C589B8EE98D582';
wwv_flow_api.g_varchar2_table(84) := '7509FCE52DB027EE448EF89D35E15C7AD7FC88BA965B6CDBCE5A888DE9BC1C2707718B734A17709341BA34DFA346448A3869AF7AB9FE3DB769FF0065FAD4B7BA6BB5AAE714DCE4731E5F74D5E5DDB5AF8ACDBDE7350F30814931B16E94A17BA647770FA7';
wwv_flow_api.g_varchar2_table(85) := '891F46A45C3B34FA367C9B353F75B3131EF8F079F6D228B85E54E0E40622E1C2C833327442A0CB78A876916CD6607911A7F8D747F6CE796D14AE7CAC3566B15718AB945BE3AD5D6AEBE531204C28B2954A851A0C42B71235321D2675F4C5666FACD679FF';
wwv_flow_api.g_varchar2_table(86) := '00CBFEC9114C74F47D0EB0A5028140A05028140A05028140A05028140A05028140A05028140A05028141063FF816DFB41F8628235E9E2EFF00F77D3A75FF000DECA092FED7EAAD4D1BB6496930531BB4912828E1AC6BD941AECEDDE42C306F76E175CC4C';
wwv_flow_api.g_varchar2_table(87) := '08B457300104511BC83714CC076CF1AF0F93A11AB6764CD2269F7589A398E95B2BDBEBFF00AA75BF2ED05B24EBA64143AEDC1A4016B3A4C297C748D2227870E15C9AFF002234AEB34B4E29FBA2B4DD1EFBDA88AE72899E5DE70F3190CBAF22CB4B8BABF9';
wwv_flow_api.g_varchar2_table(88) := '958DA90A8FE8DAC4C377BB6919CF2953B02780CCF0FB6BEA4658EB4FC337E6D43B0DE6ACC9598DCDC0DD101326E09A2DEE43111710AB9D8B154DC685295F68444F18D6A47F19E397E7EA3698FE9EF317C531EFCADDBEE46DAE6D9B70C5DE0A52C48AA408';
wwv_flow_api.g_varchar2_table(89) := '7E98171A90194933BDA1FA3D1A589CD9A64D35D7975D7337277B662A4DC85EC65714B9BC772ECE530E90C79F028625CC6430E62384910E9A0854B27B6298E9E0B7673CB19F8BA2E83E9CEA8E9CCA5D5ADDA4AF31F7B0273912BAE6101C1BD87B9671BBBC';
wwv_flow_api.g_varchar2_table(90) := '4D8D36CF08E1FE9AB34A5387A413359AB9C5797DE62E3314C562EF0C1FDEDCC1BB92B96435E2D67E6B06237C946BB8BFD31B6B575D1DB111BBDE8B34ACBEB38E0BB5E3ED82F590DBC0500DCB6222209B0310651111111A96B3589DACC6C58A8A5028140A';
wwv_flow_api.g_varchar2_table(91) := '05028140A05028140A05028140A05028140A0502820C7FF02DBF683F0C5040D9727246E1B76381AA5AF72F670913399D7710FF00BE834B9D73832270BFA792DCBDF176C78442A47FF142A0A2675D7B6B3DD6C6F8FA8F2F32F798EE8E664ADE4C8EDE5465';
wwv_flow_api.g_varchar2_table(92) := '2406E2147386185B23529DA9929AE1F857D75752B3FB7BDB98CA3A3992F34B309C812D76E9BFB769DCBAD1510D55C36D05AC5AD8A8D841CB5C264986731A8FBB13C35FA13B31CD88DB8E592B179BDD413837E5516565716F6A4482B94CDD314E7F39803C';
wwv_flow_api.g_varchar2_table(93) := 'A8E58C886D496E9398D0A63B786BA98A631E0B4CF1C9EE4FCD7EA5B675F5C271E92B64291216642F865B934BDFBB64808C73063F2E035F7A24AA6EE75F5F44C7DBC9B5CCF5967ADBA9AD151AA2D0F1C8BDF0DFCB86B5E7CE9240C9ACC98532B00EE4C69A';
wwv_flow_api.g_varchar2_table(94) := 'FDF599DB3C97FD313C7D956D3CD6BC7D90AC90875F3C9AAB56D973D8A61AB74B3970C544C4A8749283D38FF957A45B13BF19E7E4918F2F5468F343AAAEA2E57618AB6B9620D9A9C9DC40AE2DE1D2697C8AA7479FD3EA303AC46EE3F7C98DB28C8FCCEEAD';
wwv_flow_api.g_varchar2_table(95) := '5E4DD8C3C0AE6E5282DA706E85B1DCC208684CAF74A066204BBBBB59A964774C4631C16ECA318EAE9BA47A873794C8E4ADB289423E9576F295A45D052452D5B8B732060808D3A8691AC47BD4CA98E1124C531CDD4540A05028140A05028140A05028140A';
wwv_flow_api.g_varchar2_table(96) := '05028140A05028140A0506B6CF298F55A254C788316B11309E1305031131341378C633FB21EBA0C0B278729D49E133F6EB35C9ADF074752EEEBADACB5174C3D0CAE2435DB7011AF6F1AF4D0F8DA7A55EC8A5526665832FB04C964B0D272D0E5364A2277A';
wwv_flow_api.g_varchar2_table(97) := 'F8F70B58E23DE9E13F6D7BA3CB3BBC0595B85B59922DEDC3DC52A200635E33A40C44504DE318CFEC87AE81E318CFEC87AE8305E4B0AA9395B5412C2DEC91888DC53111B8B48E33A476D07ABC9E1D43B14E52C7522DA3C23714C914E911DB25333341978C';
wwv_flow_api.g_varchar2_table(98) := '633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633F';
wwv_flow_api.g_varchar2_table(99) := 'B21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA078C633FB21EBA0FFFD9';
wwv_flow_api.create_app_static_file(
p_id=>wwv_flow_api.id(858280148943844904)
,p_file_name=>'trees_project_doc.jpg'
,p_mime_type=>'image/jpeg'
,p_file_content => wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table)
);
end;
/
prompt --application/shared_components/files/trees_project_tracking_jpg
begin
wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table;
wwv_flow_api.g_varchar2_table(1) := 'FFD8FFE1001845786966000049492A00080000000000000000000000FFEC00114475636B79000100040000003C0000FFE10358687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F003C3F787061636B657420626567696E3D22EFBBBF';
wwv_flow_api.g_varchar2_table(2) := '222069643D2257354D304D7043656869487A7265537A4E54637A6B633964223F3E203C783A786D706D65746120786D6C6E733A783D2261646F62653A6E733A6D6574612F2220783A786D70746B3D2241646F626520584D5020436F726520352E332D6330';
wwv_flow_api.g_varchar2_table(3) := '31312036362E3134353636312C20323031322F30322F30362D31343A35363A32372020202020202020223E203C7264663A52444620786D6C6E733A7264663D22687474703A2F2F7777772E77332E6F72672F313939392F30322F32322D7264662D73796E';
wwv_flow_api.g_varchar2_table(4) := '7461782D6E7323223E203C7264663A4465736372697074696F6E207264663A61626F75743D222220786D6C6E733A786D703D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F2220786D6C6E733A786D704D4D3D22687474703A2F';
wwv_flow_api.g_varchar2_table(5) := '2F6E732E61646F62652E636F6D2F7861702F312E302F6D6D2F2220786D6C6E733A73745265663D22687474703A2F2F6E732E61646F62652E636F6D2F7861702F312E302F73547970652F5265736F75726365526566232220786D703A43726561746F7254';
wwv_flow_api.g_varchar2_table(6) := '6F6F6C3D2241646F62652050686F746F73686F7020435336202831332E302032303132303330352E6D2E34313520323031322F30332F30353A32313A30303A3030292020284D6163696E746F7368292220786D704D4D3A496E7374616E636549443D2278';
wwv_flow_api.g_varchar2_table(7) := '6D702E6969643A31393137314330413832343931314531384335303830393641463732304430322220786D704D4D3A446F63756D656E7449443D22786D702E6469643A313931373143304238323439313145313843353038303936414637323044303222';
wwv_flow_api.g_varchar2_table(8) := '3E203C786D704D4D3A4465726976656446726F6D2073745265663A696E7374616E636549443D22786D702E6969643A4530453232394646383234383131453138433530383039364146373230443032222073745265663A646F63756D656E7449443D2278';
wwv_flow_api.g_varchar2_table(9) := '6D702E6469643A4530453232413030383234383131453138433530383039364146373230443032222F3E203C2F7264663A4465736372697074696F6E3E203C2F7264663A5244463E203C2F783A786D706D6574613E203C3F787061636B657420656E643D';
wwv_flow_api.g_varchar2_table(10) := '2272223F3EFFEE000E41646F62650064C000000001FFDB0084000604040405040605050609060506090B080606080B0C0A0A0B0A0A0C100C0C0C0C0C0C100C0E0F100F0E0C1313141413131C1B1B1B1C1F1F1F1F1F1F1F1F1F1F010707070D0C0D181010';
wwv_flow_api.g_varchar2_table(11) := '181A1511151A1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1FFFC000110800A0011803011100021101031101FFC400A800010003010101010100000000000000000003040502';
wwv_flow_api.g_varchar2_table(12) := '010607080101010101010100000000000000000000000102040305100002010302040205060C050205050000010203001104120521130607312241D132145451919223341661C14272B233537393D3741571815244176235A143A3B325B182A224641101';
wwv_flow_api.g_varchar2_table(13) := '0100010204060103030403000000000001112102F0314103516171A112048191B1C1D12242E1F11305326214FFDA000C03010002110311003F00FE8C816138F09314658C68598A292495049248A0EF441FB18BF869EAA06883F6317F0D3D540D107EC62F';
wwv_flow_api.g_varchar2_table(14) := 'E1A7AA81A20FD8C5FC34F5503441FB18BF869EAA06883F6317F0D3D540D107EC62FE1A7AA81A20FD8C5FC34F5503441FB18BF869EAA06883F6317F0D3D540D107EC62FE1A7AA838C89316082499E08CAC62E408D2FF27C94119694120E1635C703E65FE5';
wwv_flow_api.g_varchar2_table(15) := '5035C9F058DF3AFF002A81AE4F82C6F9D7F9540D727C1637CEBFCAA06B93E0B1BE75FE55035C9F058DF3AFF2A83BC778A579236C789258CA870151879C6A520E91E8FC1410C593CE8D658B0E0313F142DA0311F8408CDBE7A0EF5C9F058DF3AFF2A81AE4';
wwv_flow_api.g_varchar2_table(16) := 'F82C6F9D7F9540D727C1637CEBFCAA06B93E0B1BE75FE55035C9F058DF3AFF002A801A52401858D73C07997F9540F7AC4F7219631E328C0155E5A037660805EDFEA3E340D72FC1637CEBFCAA06B93E0B1BE75FE55035C9F058DF3AFF002A81AE4F82C6F9';
wwv_flow_api.g_varchar2_table(17) := 'D7F9540D727C1637CEBFCAA06B93E0B1BE75FE55070F32343903911C33C1A6E5029B6AB329560AA7C2833779CEDDB17076C6DB4C3AE7C8C5C59F9F1C92811CC0297511B211A3C78F0A752F27CCFF00CAD34F09F75D8F244CE330405F5B297C55D6834845';
wwv_flow_api.g_varchar2_table(18) := '6B4A3C2F6E3C2F45B1A993D57BBB6DBB36EB8988B1E3E6C7932E7E04D1C8F931FBAC2F31883294549098B97E652351E17F4DB315997451C9EE76462BCF14FD3B97CEC7931A29046E1D2F92BAAE1F40B81E0A6D663F2531AE3CF0747DC335988F92A2BCD7';
wwv_flow_api.g_varchar2_table(19) := '40D740D740D740D740D740D741577693FF008BCA3F247F8C5054CCDCCC50654E082D1472CAA0F81288585EDFE152AC99AFCFF6CEEC6EE8B0C7BB6D9CCC8C99315628E1B63C8A9918EB3BC8559A55743AED0D9817B35EC456B1AE38E3F84BA71C7FBAF45D';
wwv_flow_api.g_varchar2_table(20) := 'DA8DE68A11B44C667CE7C178D664F2AAE9B3EB2BA199C3DC203E17E37E152156E3EAFDF737A6B67DD318E262E5E7E5C789951157C98D39B3986EA4344C1934DC83FE14BA59E785B39F9209BBA4F06E430E4D9E67889CA0B3C52A333AE1BBC4EEB1151C59';
wwv_flow_api.g_varchar2_table(21) := 'E23E50C48520F1A74C9662E1B9D31D5477DD9A2DC8E33619919D392CEB28F21F695D6C194DFE4156C6656DED336BCACB6FFAE11FFA62A2A8E0665B0E15BF82DBFF001341F292F71B231B3372F789311861CF363AED16922C98D639A38A2CAC8C96D51470';
wwv_flow_api.g_varchar2_table(22) := '3F375B332D82FB3AB8D271E45407BA995CF137B9A260342251148C564D471CB85E680574B4BECBE9E2841AB669C797F56BE3A678EAEA1EEF4532068F6A90B3620CA107BC46260C613369642382702BCD26DAAC2DC69673E3C3FAA617F60EE447BD6F389B';
wwv_flow_api.g_varchar2_table(23) := '6C381244B958A324E5B48342310CDA74B2A3328D054B8FCAE16F4D31CD9CB1CF75F737F7E316224719C8D7B2BCB1CAA3230024EAD2DDB486713400DD386871E9A9359C7E1BDBB7371C79BEF7037469B171277B079A28A5703C03488AC40FC17356CC565E';
wwv_flow_api.g_varchar2_table(24) := 'F36DD351B7FD119FFD615057DE779970B68DC336101E6C5C69A7891AE54B451B3A836E362454AD6D99B87C960F749D63DBE3CB487327DC2396532E24D172E010C5CCD1208DE71AA4F662F35D9BCB6156F3664C90F77B1A48F01CEDE4FBE4DC96316424AA';
wwv_flow_api.g_varchar2_table(25) := '8AC91B2C88E102C963305900B6960471AB81167F76B262DB9648F6B5C7CD974346B9190AD168912095349555324AD1E47EA8588B1E3C2ACDBAC9C73C26EB8CF9343AA3B8595B47524BB763E38976EC6C69065E6BA48563CF962925C388C8BF5615845670';
wwv_flow_api.g_varchar2_table(26) := '4DEEEB6ACCD5AC6B1ADD2FD4995BAED92656522472A64C90058C1034A2A1078DF8F9CD5DD305986BE3CDCC5DC1BE56847FF80A88B1048441158DBEA901FF000D2282539531F1918FFF0071F45079CF7B93A8DCDAE6E6FC3C283D19328B59D85AF6E27D3E';
wwv_flow_api.g_varchar2_table(27) := '341C6BA06BA06BA06BA06BA06BA06BA06BA0AFB8ACB36DF93144354AF1908BF29F928308BE69627DDA6F1FD9BFAA81AF3BE1A6E1E1F54DC3D3C385035E75ADEED35AFABF54DED7FABC3C7F0F8D035E6DEFEED37F09FD540D79C2C463CC08F03CA7B8FF00';
wwv_flow_api.g_varchar2_table(28) := '0E1C283CD59BE8C6980F4011381F30141AFB109E313493A34625910A07041215429363C7C6831E34DC215E53E34BA909074A330F12781008341DF333ED6F779B88B1FAA7E207A0F0E238F8507864CE3E38D31BF037898F0F9A83848E68E59A68F0A449B2';
wwv_flow_api.g_varchar2_table(29) := '74FBCC8B0B069342E94D66DC74AF0141D97CD3FEDA6E02C3EA9B80F9070F0FC141EF3338F8E3CC7E4FAA7F550781F34303EED378FECDFD541A7263E57DDD18A109C9589018878EA570C47CC283335E6DEFEED37F0DFD541CBAE4BC5242F8723433294963';
wwv_flow_api.g_varchar2_table(30) := 'E4B697561621801C41068118CA8A28E28B1244862509146B0B05455160AA2DC05A83AE6677C34DF2FEA9BC7E6A007CE02DEED35BE4E53DBFFA503566FC34DFC27F550686DAB90B8994F32347CE78CA070412140526C78F8D07D062EC4EF8B0B7BDB0BC68';
wwv_flow_api.g_varchar2_table(31) := '6DA13FD228241B0937B6631B1B1B2278D047FDA212FA3FB88D77B69B477BFC96ABF1B8CA6624FBBEFF0016DF413D5514FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413';
wwv_flow_api.g_varchar2_table(32) := 'D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D';
wwv_flow_api.g_varchar2_table(33) := '540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540FBBEFF0016DF413D540FBBEFF16DF413D540';
wwv_flow_api.g_varchar2_table(34) := 'FBBEFF0016DF413D540FBBEFF16DF413D5410E66C6D1E2C921CA66083569D09C6C6F6A0D7C0FB0E3FEE93F445062749637524736F536F5958D309F399B071F115C2410AA2AE866902B33B302EC7C2E7870A9790C268F2DB2B1D042FC2550C9CB7B822404';
wwv_flow_api.g_varchar2_table(35) := 'F1D36E038DEF5D3DFEF76EFD6DD3333F0FE1C7B76EEF9CD3AAEEEBD3BD6536FD99B96DFBC3E2446489313147D62188A44B2B3AC85E21A48765023D57FCAF45784765D58D7EF0364C70C051654313E4CB90B195D0CEC0AAB461626B3292428D6232B73AA9';
wwv_flow_api.g_varchar2_table(36) := 'FE3E791A9B6E1F709B2F2DB3E69B44B873450012E308532433E970B1C6240A752F2CDCB003CFC6A5E5A2CF363ED58FDDADA767E548AD9258731A69648E79E2E5A032A842652E6423EAACC78F1603D9AD5B30CC68C3B7F5A6EDB0EC9B848F9389BC42B98F';
wwv_flow_api.g_varchar2_table(37) := '3C734BC86B9497DCFDE21874C32307E5161A6DE3C2DC2A63FBBCB1C7F2D66610498FDDD326640D207C5D6D1E24E8F8A9338E5B2A48E7960226A0ACE146BB9F2D263DD975B761F78CE6636367E663261A263A6665C2226666471CF7883A92BAC5EDAC1B2F';
wwv_flow_api.g_varchar2_table(38) := 'FD5C6ACB33A97C9FA1D654A05028140A05028140A05028140A05028140A05028140A050282B6E7F609FF0030D07581F61C7FDD27E88A0876BFF77FD4C9F8A832E3C8EA87EBB92138D043D351605FDE39A1F226CA69068B456FAB445D609FCA36F9283377';
wwv_flow_api.g_varchar2_table(39) := 'EC5DEDB7556C46B638998E546622CCE863B2859758B79AD6E034DAF5C9DDFBBD9D99DBBB7497C3F0D4DB57BA8E1DFB56D995B5CB94560333E562C062D130481E4891F982FE799113CAC3C7FCEBCFFEB6DFF8365E7FDAD6E933F97CAAF51F78265C6E56C8';
wwv_flow_api.g_varchar2_table(40) := '049A639245911615D293309048CD23F99E2E2A89F95C0900DEBE8CC7B3C9B7B9E6F701B3308ED318F7797119F21F2B1C055984970A6212ABAB3270F6C8A98D6F1C78AEEBA328F51F746519A31B6D12CF8123218F93C98E428A42957791B9A240DCC2140D';
wwv_flow_api.g_varchar2_table(41) := '2C02EA3734DB8C6BE0B66AB2BBC7760E22E626DD8CEE2252301E364777D22E4C866F25F55F4E9E1A74DF8DEA5E38F748EF1375EE6CC3025C9C48E08249719729520BCA220E866908797CBCC562A540BA589B9AD4931C71E688E0EA3EE3624592B3ED2D98';
wwv_flow_api.g_varchar2_table(42) := '44F2C78D33C4B105224B8121490DE158BC260B763C34DFC64C75E3C7DD708B6FEA5EBEDDB6EDA7376E8BEAE7CDC8C7C9925C23106C74B72E678A4983C7C43016621B8780AB89A7A1D3F4E3F084F51F76F276BD78DB2887713ACE2E3CF1AC6B215954813C';
wwv_flow_api.g_varchar2_table(43) := 'BCD610009E5E0ADAF8DB4DAF536E3333C8A9F70EA6EBFDBF032771C8C5106DF1820B3E3197210379B9DCA8E6F39D44462107F0EBAB64C1D52E6F52F7109C07C5DA8FBB656DB064E5CA98E646C7C8700CABCB79A369181F2AC60DC7124F0ACDD2D3A45387';
wwv_flow_api.g_varchar2_table(44) := '74EF1E0E764B36DE9BB47953C72262C8B1431E24245A448A647065B1B5B58BF026FC6D566391524BD45DD86C6DC248B68446C5959625786ED2A1744D51289B8F2C1771FEB161C29D32757E81B749992EDF8B266C6B0E63C48D93129BAA4A5417504FA035';
wwv_flow_api.g_varchar2_table(45) := 'C54A91628A5028140A05028140A05028140A050281415B73FB04FF0098683AC0FB0E3FEE93F445041B5FFBCFEA64FC541EAFFDE9FF00A64FFDC6A0F77196589F14C68D21694868D4805872DCDBCC40FC359BB6780CDDF32736296230694668C1E5CCF32C';
wwv_flow_api.g_varchar2_table(46) := '63CDE7E38E1AEC387E0ACEEEEECD9A5B27B2E2A86F1BB6F587D27EF784EDEF8658D7992C524C563693CC4855665F2F8332903C5B8571FD4EEDDFBFB98B9DB37E9E98E8D59A7E190FDC2EA5B61C716CF22E423AAEE093C190A5B583CB8D0C68EAB24B6BA9';
wwv_flow_api.g_varchar2_table(47) := 'BB2AF83115F4AC8F3E8820EE5756813C736C4649B19E1499E3872D002D398E5088D1B173A6C5349B1E3C6D59F46AC6961F5675364F4C64656762B6CFB9412C514D1B412CF24719C811B4FA00D0E1A1FAC0119B4DEC7C0D6B7C9391B5487703AB20448E6D';
wwv_flow_api.g_varchar2_table(48) := 'A7984C609CB787263B47A8E8CB96258E42B1C8B61CB526456F10178D666BE5C71FCA2D8EB9EABCC8D06DBB1689A3B0CC199EF31AC721F18D4886EC5752927C2DF86B564E94458DD79D67946729D32D088653A925694C9CB0AA345963B73599830E3A74FA';
wwv_flow_api.g_varchar2_table(49) := '6F536CCF971FC752F3C71C783B7EE0EF18993B7439BB7A30C8C38F2320C49921CBE90D90F0C6636BC70F10509E67FD36A4C5C8ADFF0020756E56564438BB14B12C2B0BAEA8662E798BE643A9117C4AB023F26FE9ADEDD933CC4B177137F3D3DBA6636D4B';
wwv_flow_api.g_varchar2_table(50) := '267ED6D0E3B1844EF04B3CC039D2A10CA8A88EA1F50BAB5C1F0BD79674CC5C6B872FDC7EA75CAE58E9B94C7CFD1A42CE5F96D8E2551FAA0BAC3DF5FA157E535A98CEB52BBCCEE27514662CAC7D89E5DBA69D2183C99227950EA2F2053100834E92BABC78';
wwv_flow_api.g_varchar2_table(51) := 'D5F8EB3CCAF33BAFBAC30F19B99B02B65246CFA13DE591CB14B3A308B82408F79B5589FC8BD4B3148B19BD75D44993878989B32C99993B74397262B34C5A29721993CEC9114114453CF73A8DF82F03564CD4974529FB8FD570F340E9F33BC45C058D727E';
wwv_flow_api.g_varchar2_table(52) := 'B1D41BC085A116921F6A466F215F609358CE8D4E38F37B0F717A9566826CED98C387EEC25CA8E38F26570588093AB2C56E539E0A8017FF005016ADEDC59728F72BB83D6D03CA3EED0D27125CA86EF3020A960AB25A23ECE8F381C7CCB6F4D6776948FBBD';
wwv_flow_api.g_varchar2_table(53) := 'AF2E4CCDB7132E489A0932218E5785D4A3233A862ACADC4117F0356CC54973166A2940A05028140A05028140A0ADB9FD827FCC341D607D871FF749FA22821DB07DAFFA993F1507ABFF00787FE9D3F4DA83CDCA5113E24851DC2CC7CB1A9663F54E380141';
wwv_flow_api.g_varchar2_table(54) := '9DBEEE19314911810B968D5840D2C58E6CCDE662D286F678796BCBB9D9EDEEFF00CA4BEAB2D51DDFA97376BE94FEE78E209721A58E24392C22421E4D37D5E452DA7D9BB2863F942F5C9F52E37F736C9249BFA7A7BB579321BBB98DA7084387CE99D80CE8';
wwv_flow_api.g_varchar2_table(55) := 'DA41032021B4E84906AD7269BC51B58B8F0AFA564E6F3E8860EF463949967DA9C4D8ED124FCA9D1D10B4C61975310AD78B81234DCF80F0ACB5655FC7EE1EE59DD2791BAE16D853728658B18604E6D2F35F2571C9686EAEAAC1B991EA6F3291C456B76DC5';
wwv_flow_api.g_varchar2_table(56) := '495565EEF262644D879BB4E40C8C5C98B12592E91A48CDC2568D5999868372149F32F106A4D790921EED44F84586D524DB8C1CF6CEC1C6992431263B38670C4296D6B19283482DE1571A6655B1DCDDC8CB7C6D872E2C34C383745C87CA4CB642F18C6952';
wwv_flow_api.g_varchar2_table(57) := '32A84491AB6AD44A904922DE5ACF54E99F3472774B2611EF199B1BC18B1C41A576990B453C819A14360415923B5D87B0781AD5DB8499AEA0EEC24D8B0648DA248A0CA58C4134F3C31C6256D3CD595CF08D63D60073C1CF014F89945B77755B3A367DB3A6';
wwv_flow_api.g_varchar2_table(58) := 'F26E6473289A4871FCA480B21B93E66BF9D4F15F4D4B34CF1E2B9D70EB13BB9EFD0CB3626C397CB8DDC133B47111180A11CAF99B5348E014B5C0F3536CB79179E0C7EE94BB86CB265E3E3E3EDD91165E3E2CB266CDCCC645C88F99CD3245A469B82A388F';
wwv_flow_api.g_varchar2_table(59) := 'C36F0A74CFAAE35B1EEDFDDC59F98B91B166C4D08C6476401834D9455235443A64D0F248811D945C1B9B58D4BA24458DDDC139131D9668226041133A239D325B83F142C53D98FDA2FE4FC3574C67CC4F8FDD49F338606C72E490497232605458C9B26A7E';
wwv_flow_api.g_varchar2_table(60) := '2399FB48FC53D34B313292B8C5EEEFBEC12CF89B0E5F2E2770C6768E23CB50A11CADD9B5348E014B5C0F3536CCF25BCF0E773EE76EF88F008F681373B1713282C4EF37FDC17958CAA5134B7FFB4AC8E78792CDE9A9D78F5FDB271C7B3CC8EEE4B1C50644';
wwv_flow_api.g_varchar2_table(61) := '5B2C936273A3873322399248E313B158DC325EE8806A99FC22B303C456B6CCF1C69E696F1C757E8A0DC5EB2A5028140A05028140A050282B6E7F609FF30D07581F61C7FDD27E88A08B6DFF0075FD449F8A83D5FF00BBBFF4EBFA6D41E6E53450362CB2B6';
wwv_flow_api.g_varchar2_table(62) := '98D65E26C4F8C6E3D17A0A1BD67BA3C6D14524E86357090C6B2496736D443B476516AF0EF7D4EDF76CBBF6FCB0B3758A9B875236DBD37FDC7DD0673BC8B08C78D9535EB7D17B1D44D8712A8198FA01AE5FA5B76ECDFDCD9B76C936EFC7B756AEB32CF3DD';
wwv_flow_api.g_varchar2_table(63) := '2E9C31E1C890BE41C925B2390637E52C40EA9092575AAB2FA3891C40F457D3BB71AF4610C1DDEE9374769E09E19D0C5EF119589F41925E52967572A02358B12785EB385B1617B9DB6CDD2327536160CD930C52C78F245748D8B1C918D358B906D112CDE6';
wwv_flow_api.g_varchar2_table(64) := '51A80E1E22B5BB6E2E2B3E8A98DDE1E92964C959A1963784CF2A32A2BAC9142ECB0CA1EEAA0CE8BAE307D0471B902B37455CC3EEC746E44B2AA3CB13242B91AA48C26B8D915C32F1BB7B76FF001E15BF85D7C89A98DDCFE93C85DC16487260FECF8A73B2';
wwv_flow_api.g_varchar2_table(65) := '52682DA6250ADE5D2586AD322301F237F8DB17424CB2E4EF4ED2BB90866DAF293689218DD3703A4B3492FF00E57BB8BBF96CD724DB870BF0BD917A657DFBADD382758E4C69D36F303E51CD9163E5882362A64D019A4D202B39D4A2CA093493AA4750F767';
wwv_flow_api.g_varchar2_table(66) := 'A524C89B1E0872DA4864D338582C02D899262491E4402EDE9F901AB36DA9945FF327462A1911728AB19C82B05B5B4001216E46A675E28071F96D598AB1BC772766C3C18E5C3C297707CBC7872B1A38F9491B9C927948D23358332A335EC400BE37B0364B';
wwv_flow_api.g_varchar2_table(67) := '9C1358EF2BB97B1E266E5C12E265BFB948F166E5C31078A3E5137D6DA95B801AB829A6E9F1E7D4F247FF0028F4F5AC70B3069F34CBCA8ED11B194EB3CCD3A846A65F293C3FEAE14C0863EEAF43E2491606324CAAC1C22458FA5048AE51E23EC857E6828D';
wwv_flow_api.g_varchar2_table(68) := '7F06F1229CD2E8EA6EE76243878D97EE02113C1265E4A64E44301448F206314463A9259B57E406FC1AB88BACC5FD3DD78FD1B1D1DD65B7753E3664B86862F73C8780C4C7CC63F1866D24290B2A799698D133AB7C2A8160001F20FC3515ED028140A05028';
wwv_flow_api.g_varchar2_table(69) := '140A050281415B73FB04FF0098683AC0FB0E3FEE93F445045B6FFBAFEA24FC5405FF00BBBFF4E9FA6D40DC268A29311E5758D04C6ECC428FD53FA4D050DF32B15248DE589258B402B208A4C86F3B58596256217878F857377FEAEDEED9775DD31E16C59B';
wwv_flow_api.g_varchar2_table(70) := 'B0A7B9EE9B562F4BBE56E3B68CBC20E88F8691ACC97D76562AE34AA291A893ECF8D73FD2DBB766EEE6D92E9BF1ADCE746EEAA72F5076F57DD3264C2859F3595CBA622CAD19C653692568D5ECB05B4EB0485F96DC6BE9DDB66AF2E88B1FA9FB6522991B12';
wwv_flow_api.g_varchar2_table(71) := '1C796768DA48E5C1292179A52AA5C72CDCF33893FE7E9ACE31A356AD2756F47CBD373F5061E32CF80EC8933AC288AF209863E9691AD1372A5F2B1D442DAAEE984915F07AC7B6F9F1E389531A097231D245872205E10C9E650582B269655571E6B152A7C0';
wwv_flow_api.g_varchar2_table(72) := '8A94CA35EAEED43461E618308558F27EB3196CBA413135C2101D56C40F696E3E5AB663F034E5EA7E8480E34AD26385DD622B0CE2125668A3BAE92C138AF03A41F1F4526DB6E3A99EAAD2F54F6FE3C9C8DBE781235C3D09233E1B7202ADF459C2150A2452';
wwv_flow_api.g_varchar2_table(73) := '8B7FCB1A471A60A8A3EABEDB147C98B1E3E6CAD22B27B8BC733BCA84B82AF1231E669286FED1F2D4F21EE3F5CF6FF207BC61C6B91919124314A91629328E6E9895E6BA8D31A17D0CEC7483E5BDF856B6CB6E225D1C64756F6CD3273317320822CAC179D7';
wwv_flow_api.g_varchar2_table(74) := '221970CEB055ED2301A0DC496D408F6871ACE1A4B1758F6FDF2409628E0931F562452CB8A574C286FED683CB858DB416B0636B55C5E7E28972FAAFA28C30F371A4923DD5B2622AB853190CB0584D14B188F9AB210DC015B9B1A597A914FEF4F6C30F0A0C';
wwv_flow_api.g_varchar2_table(75) := '38A080EDB128931F4629687443C5258EEBF58BAD880E971AAFC6F575BAF87F261F59FDB366C94498E1E3CAAE1D91DA243713F9A43C47FE65EEDF2FA6B3612A3C9E9CE9ECAC4870F276BC49F131BECF8F2C113C71FE6232955FF2A0BB1E363C4C5A289236';
wwv_flow_api.g_varchar2_table(76) := '2AA8595403A12FA1787A1751B0F4504940A05028140A05028140A050282B6E7F609FF30D07581F61C7FDD27E88A0876BFF0077FD4C9F8A80A7FF009971FF00F327FEE350666EBD5DB5E1672606508CCF2C86382166F33B05D5ECE9206AB10B73C4D4B713';
wwv_flow_api.g_varchar2_table(77) := '21BEEE3B3E3E5EDF1E64391AF34B43049046ED1AE91AD84AE9E540AAA5BCDE806B836DDDF6366DDFB77EEEDE672986F18E9950C8DE7B7793B7C381367634F88ED0CB122C8418CB391149AD0868CEB52035C1BD7BFD5FA97B7F2BF2BBAEED6DBE8CDDD953';
wwv_flow_api.g_varchar2_table(78) := 'CCDBFB5B8595096DBE32D388A72F0472B471C71B7252493479638CB92AD7E0DC4B5EC4D754E784B107F6FECF0C5933CE2632E2EE1B8FF6D9E5292E87CD59DAC8FE80AD32F063E43C38D88ACCE538F15CDB96BED99DDB989254C29F0B1558C39536397587';
wwv_flow_api.g_varchar2_table(79) := '4BDD648DDA262BA1B5692785F578F1AD5B522B65EDFDADC4CD38F938D86926E18534EF752617C3C795669198FEA828760C2FF270E0BC24FDB05BEEE323FE2996791DA3C1CA9F3520E6C71812175924E6C2CC82E38C8B7D447C97AB25A3CCF1DA32B8D2E5';
wwv_flow_api.g_varchar2_table(80) := '1DBC8DAA0971312C6FCA871D2CF122A7A114F003FCAA5ABE4E131FB45088E66F7184E2C70C76964B1092EA10AB866F31BB12355C83C7C6B58B3779A5E4FA0CAE8AE93CCC9832F236C8659F1CEA82520DD6E6FE83F29BD6791945076FFA36058961DAA18D';
wwv_flow_api.g_varchar2_table(81) := '619932630BA85A58EDA4F8F80D20E9F0BF1B5E934E45D5EE4741747E464E5E4CDB5C2F919E1D7324F303209082FAAC7D36A988B9AED3A27A5A28B223836E8601920094C6B63E5B69B7881A740D3E816AD7CAE308AB89DB9E938367C5DAA4C56CAC7C3796';
wwv_flow_api.g_varchar2_table(82) := '4825C896479849904995F9B70DA9AF52DCE3C8589BA13A3E68E78E4DAA031E402B2A8040D246928B6234291E2AB614E985970DB820871E08E0810470C4A1228D459555459540F900AB6E51DD40A05028140A05028140A05028140A0ADB9FD827FCC341D6';
wwv_flow_api.g_varchar2_table(83) := '07D871FF00749FA2282B6D524664CF8C3A9923C97E646082CBA8065D43C45D4DC5FD1414E6DEB6792789E6835C9A82C6CC10B8BB581B5F57B55E9BFB576F6EEFBCA4CFF2F29DD99C2AEE12F4C4BBC3E0E4EE0B166A132721D8A2AB32296D2CD65D451C12';
wwv_flow_api.g_varchar2_table(84) := '01BD8D7CFEE76BBFBADF8EF936F87C5EF9939AE67C1D3BBA470C393929272F98913C7294F34EB262B057423CC753A817B83F86BD3EAFD7FF008BB7B76E738985BBB57CE45DBDEDA4932E1C92AE5CB8A8CCD8B2E61720A4ACE66740C0EA4941218FB2C385';
wwv_flow_api.g_varchar2_table(85) := '88AE9F975631D1667D8BA33ABF094C5B9E4CC20518D364E365CB0CB2C6184A89332953225D832DF81BFC86A63A89F13A6FB77CA9B6FC438AD8D9051A7C08E7063665C568F518C35B5363B5D8FA6C1BD17A5D663A2CB8B99CD462EDAF6CB2711F19523CAC';
wwv_flow_api.g_varchar2_table(86) := '4CA31C623F796705A18BF25C3EA2CC9E77F371B6AAB6DB73524C1BD74E76EF709A2C2932C41B9363639C0CB866265831F1D5C426293CCA884733C783F1F1B533ADBD4C698E8EB1FA4FA08E64FCCDC3DEDD1A3C8E54995A961926451CE241FD664FB4CCC6';
wwv_flow_api.g_varchar2_table(87) := 'EF7E1C2ACB8E3F38116174B76DF3A2C7DDB137269B131EE98B20CE7E4C6AE5D624405ACA14B372FF001F0ACDBA7ACE3D9668B583D2DDBEE4F3A0CA5971C412BC6CD965A358A4063C999096B5A52DF58E38136AD5DD739F16647D1BEFBB1E2E6636D6F971';
wwv_flow_api.g_varchar2_table(88) := 'A654D187C786F7263E215891C003A48524F1B70A96E6D3A2DFBEE1735A1F788F9C8A1DE3D6BA8293A43117BDAFC2F515EC5958D32A3C33248B20BC6C8C183022FC083C78504B40A05028140A05028140A05028140A05028140A0ADB9FD827FCC341D607D';
wwv_flow_api.g_varchar2_table(89) := '871FF749FA22831FA4FA736AD99B777C15979DB86749919B34F3493BC92E955BEA90B1002A8007801528CFFBB5B836E11467221BC4CB2B001EE63E65C7A2D7F2DBC6BDFB9F62EEECDEDFC75BB719CF963C1CF3B17E59CF57BBBF4DF48666E197939F8EF3';
wwv_flow_api.g_varchar2_table(90) := '6464CB1B4B2B26B51EEEA9748C302B6D30F9EC2FE3C7E4F1CE23A2EAC1C9ED7F49AE662C1B8EE68B0BB467031A468A19259158A37D58088C746855289AB55DAFA8D63B5DEDBDDEDCBB759755B30FA0DBFA0366DB66776C82F1E4C2F832452478E9AE290B';
wwv_flow_api.g_varchar2_table(91) := '695D691A49AECED76D5A9FC5AE6B7AD984970A999D11B446D8506E9BFE43F84104392F8CBCD863D052050635BD8C6ACC57CCC7C781B55F95FD49A20C5ECF74E471C4132A678393144CBA71ECD1C40F2F4388F5463CDF9278AF94F9699B94C71EAF72BB51';
wwv_flow_api.g_varchar2_table(92) := 'D112E443306F77113B442388C31A6B7BF055550164B91623CD6F2F854E38FE56F2E38F44B9FD1BD2FBB4982989BBF2162C538B83061BE30F2400C6C23D2A4941AAD247EC1E1702ADB9B6F8F1FA134C79221D9CE9E104708CAC8511A63A232AC00A9C672E';
wwv_flow_api.g_varchar2_table(93) := '1D7EAFDAF3581FC91E14CDE3D30B9D1D2F683605CB9F2532A70D369508571D9563504140AD1153E5621588BAFA29933AE52C1DA5E9E8E58DA5964C889583B41224055994F941FABFD5E9F298BD83ED11AB8D3E574F298F6C258B3B8F6DF6BCD1811B6664';
wwv_flow_api.g_varchar2_table(94) := 'C506DF8EB8D1469CB04AA0217CFA35D8EAF3ADF4B585C70AB775CE7A885FB53D393C36CC927C8C8776932B2EF1C72CFAE278D92431A2DE3D52730278075523C38CDD727549D2DDBAC0E9EDD572F1A5D50438BC88610A14195E467967702CBAF4E98D7481';
wwv_flow_api.g_varchar2_table(95) := '65E14CF3E38FF64C3EBEA2940A05028140A05028140A05028140A050281415B73FB04FF98683AC0FB0E3FEE93F445045B6FF00BAFEA24FC5415A6CBDA65CC8E519AD1CBC23F2310AD66E0A6E2C78F0ADDEDD9B7E579632C7CE670CEDDFA3B1B71DD1339C';
wwv_flow_api.g_varchar2_table(96) := '21C8824E6C1210DA9495D3C40600DAE6DC2BE7F77BBDF96CDBB25DBE3F2C3D649E2B5BE74D47BBAE1B34AB0646173DA190C6B21569B1E48030BDADA799AB878DAAFD2ECEED9DADBB7773930D5DDABE3D7B2F2148124EA1CA0B0222868C10DF55319A300B';
wwv_flow_api.g_varchar2_table(97) := '48FA5433693A402CBE526BBBE4F2C3E833BA21F2E7C79E0CC82074C6F73C90315254D026E76A816477E53EAE06FABD1C2E054CAB1DFB3F12342987BCE4E2E363C2F0C18885F94A1D5438D3CC17595813203E3E8B52DCE530BDB2F6CB1B6E9A59A4CCF786';
wwv_flow_api.g_varchar2_table(98) := '972A1CE8A3317D5634B09F6719599CC71B27022E4DEE6FC69BAE7F0BC7BE5E6D1DB8970B2F6BCB9F708A6C8C0C8973279A2C510BCD2CA8D1FA1D9634E5BE9D014801574D8DC94D3F44BABEDEA2940A05028140A05028140A05028140A05028140A050281';
wwv_flow_api.g_varchar2_table(99) := '40A05056DCFEC13FE61A0EB03EC38FFBA4FD1141576E498CF94E25FAAE748393A478F0E3ABC6A5E43E58E0EE4F9702E83E495432978F4D84809FCBF907C95D3DEEF6DBF5F76D92E7E1E17C3D1C9365F9CF559DD7B7F2676FB97BCC7B8CD89973491721B1';
wwv_flow_api.g_varchar2_table(100) := 'DB9452109124CACC8048C58466C356917BDAF5E12BAEEAC5FB97DC67C98E34DF5B1522313C9922469799E76D681A4BCBC08E6E96F279B40F28A67FB7CF235B69E8FEA3C7CFC8C8CDCF190323125C52E72329C872CE565E539E5F9B9972A3D8B594DAA5E5';
wwv_flow_api.g_varchar2_table(101) := '85DB716286D5DBAEA2C5C0C4C6FEECF8431235509853C88B2483DA925D09006BE9516653C0789BD3772D39A4E6B5B0F46F5941B9C599BDEF31E6A4392D3A449CD3656520A82E6E05CF87857A6DDF24E5E29867B76DFACA3DA931F13A89E3CB898B42E659';
wwv_flow_api.g_varchar2_table(102) := 'C471F1654E5A86E1685CA11E06FABC40AC6748D78985D25DC66DC64832F769462C30215CF1952DB22702E89C942BA1236F69858C83DABD272A9E063F4075EC519965DF566CC789639584F951EB08EC5535A92D180AC0EA5F331166E15733F61F59D2FB16';
wwv_flow_api.g_varchar2_table(103) := 'F3B5B64B6E5BA49B9B6408CEA90B10B2A97D6C8A4E98D594A791785C7E1A5B31A261BD59528140A05028140A05028140A05028140A05028140A050282B6E7F609FF30D07581F61C7FDD27E88A0ABB67BC19F2C829C8E7C9E5B1D7AB87A6F6B7F954BC87C';
wwv_flow_api.g_varchar2_table(104) := '9B62E7B64E3A8C696CB2A865E5BF0B48093E1A7C05EF7AE9EF77FB77EB6EDB2FF77C31ECE3DBB377CE69D56F75E95EA9C8DFB2F75C0DE24C30F24498D021D4BC92912CA5C49CC8FCA55D954477BF1D5C6BC23B2EAC5F75EEE364C70C3388E44313E44D37';
wwv_flow_api.g_varchar2_table(105) := '2DC14676BAABAAA46C15C162810372CAAEAD54FF001D39E7F81A9B7ED5D7A72F2DB3F2A62B3E1CD04446443C94C8D4E56458D2147556D6BCBF36A502CD7A99D1620C8C6EE93E2639C50B8D2C78221931DF2227066552AEC64E533195CE968DEFA400C185';
wwv_flow_api.g_varchar2_table(106) := 'CD2F3A91C61ECBDC89A1CF3B9E4BB644DB6182110E524518C962A418B44378E40030691B5026D6005EAEEC597D61B74C654DFA63B9595B736D72E6C98B86D1301241942390207D489AC2492A4DAB8B32C85397E40284E38FD920DBFBD51EDF347EFB8D3B';
wwv_flow_api.g_varchar2_table(107) := '22E3A6179E359FC9C2479E4316862DA55982817B9B5252F1C71C9B1B160F7161EA3824DD33639F67681DF21072FCB3BBB111A85446B2F974B7C9706E69719D38E35F64D5F65514A05028140A05028140A05028140A05028140A05028140A05056DCFEC13';
wwv_flow_api.g_varchar2_table(108) := 'FE61A0EB03EC38FF00BA4FD114189D22DD4D24DBD4BBDC38F8D0B673FF006CC6C6939C56054505A57D29E777BB5BD1E152F218073243958F1A96BF39410079AFCD17BFE5576F7F76DFFE5DDACCFC3C7FF5716DB7E73D57F75C0EBF3BF6666ED798916087';
wwv_flow_api.g_varchar2_table(109) := '8A2C6C6940955E3748848DCB2502846D6DAB56A3E16B5AB923B6B17FBFF751F263C7830A36C95689B279D1680B1BC8C0028B23258BAB26B572C1007D3C69FE399E3FC0D5DB72BB81365E57BF2CD144F8930C78931F1D1172959F82CBCE91AC2E82366167';
wwv_flow_api.g_varchar2_table(110) := '1C485A9D163171F2BBCD858D8A27C739B90462E34DC31CAB7BBA32CF39D0E850E516D7E9D1A40B0BD6A633AF1C734BCB8E3C97771CCEEAE34225862E6A79AD0C30C3248BE468D039795758B812B32D8FE4DA9BB1C71F8275696C193DC397371E4DCF1D20';
wwv_flow_api.g_varchar2_table(111) := 'C37D43271EC8CD7689983AB890E90B222AE9D27DAF1E1577CDBD3C127463EDDBB772F6EC4C9191813E5DF53479190226656450D26B8E393CAA002179658337B3615998C79B5D4837FEE7CAF24430DED1C08CD2B61A23F2DC13CE0A67D2724116F77074DB';
wwv_flow_api.g_varchar2_table(112) := '897BF969BA71C7BA45C91FB9B2E36E12651681E7C37F74C5C18A06304C922286592496EEEF1966D26C3D00DC02571FB7FAC22941BDF73562F72C5C412C987EE8F33CABAE6759E460612CCD122B2C718767F3583807CC09A83BDBB37BC52F3F1E78A18794';
wwv_flow_api.g_varchar2_table(113) := '5445972C1196755D5C74A4CA84C961AADECFF9D598BC71EBEC96E3971C726FF4A66F5B49BAE6E3EFF8CAB871451FBAE4C6891AB386656E02491897501CFA17C2A4E4D6E9AE8FA9A2140A05028140A05028140A05028140A05028140A0ADB9FD827FCC341';
wwv_flow_api.g_varchar2_table(114) := 'D607D871FF00749FA22821DB07DAFF00A993F150535DC3A81FAACE02ED7CBE9F8B15A493777923265CA664D10C512B170AA9A8B330F1B0159F8CF018DBE4DD409BB28C3D07179ADEF3AB9FCE09A0E9E5E8FABF6ADA7FF1F4D78F73ECF6B6E65DDB65F559';
wwv_flow_api.g_varchar2_table(115) := '2AEF5264751C0FB6646D734A71D0CCFB863478EB39952281E545D5ED21778C462DE3ABE5B578FF00D7EFDDBBB1B6DB9BF16F76D99FCBE57FE40EE3CA98BCAE986691963796344986A0266594DE55508BCA01D3C598F97C6D5F4649ECF26E6F3BEF5AC7CA';
wwv_flow_api.g_varchar2_table(116) := '936AC24CA81F1E39259395329576CA546D113AEB63C9249462B6F1BD49356AF266C1BE77123D87746CD8DA0DC61970CE248711E51C99915A66BC2A45836A5FD5B345E2E185AB17942F3A7FC83D531C3898EFB2CB1E73B2C72FBCC33AEB620B222F295D39';
wwv_flow_api.g_varchar2_table(117) := '92A213C1B4A7E5DAB764E88E713B87D639289341B12CF13B398B96993F58788E42B18F4ABC36BC923791C708EE6A59AE38F525E3F8499FD45DC18B1700BC28337DFA6832E1C3C49D9248D1904411E5D41430724B3690C2F66522C5E9C6A74E3C15E4EE2F';
wwv_flow_api.g_varchar2_table(118) := '5B4E126DBF6059715D1DE2911669F9871E6E5480346022ACBA1B94D76E05588B54CCFDBDD70B385D63DC6C9C58F2DBA7A18E344D53C24E4192522E7EA7EAF8022C2CC2E0FCB4DDA24D6BEA7A4377DD376D860CDDD30FDC739D9D66C7D2EAA0A395053980';
wwv_flow_api.g_varchar2_table(119) := '315205C1205EAD8366A05028140A05028140A05028140A05028140A050281415B73FB04FF98683AC0FB0E3FEE93F445045B6FF00BAFEA24FC54172829EE12F24E3B8467064B3A46A199868636B7F88BD796EEC76EDCDDB2DF45CD66EF79F9504917BB83E';
wwv_flow_api.g_varchar2_table(120) := '68D5840D32E378B79896657B95E1E5ADED9B76CC4C4451DE3A9771DB3A4FFB9C1CA9B239B1C6A728944D2F269B961A56FA7C3532A93E2C2B93EB77776EEE77267336EFC4F4C37668C76EECF0C348B6F324E580CF8E42F032EA53A046ACA4EB96DAA246F6';
wwv_flow_api.g_varchar2_table(121) := '87A7D35DF6479F4418FDE53A664C8D9DFDE319E24C8E548CC8A5E730C9ED46AD78F81B006FFE5596AC6963770B71CAE92CBDD23DA5E3DDE13EED8FB649AB9CF96D218A2D715B524721B480EA3E4E3577CC7249AA9CBDD9CA876E9370FEC329C38633AE46';
wwv_flow_api.g_varchar2_table(122) := '90C4FCE43147245C931B32959A529C4FE4935776DC6BC71A26DCDD12E6F763DCD1669F6878B1E66438D24932A192266D1C015FD716F622FCA1E914F81351BB91B8BEC58FB9E0ECDEEF0A6E0D85970E63F2F4409117E6828A420074872C3C966F1B5673C9';
wwv_flow_api.g_varchar2_table(123) := '7A5F25EC6EE1CF2ECEDBB36C992B8E7322C1823421E57799542C9A348D31999D5037FA4EBE02AEE98C798CB4EF1C0D8F24DFDA9D562328F3CA4730A1555108E5DE4BEB05B80D238D4B3424D7063776E79583BECEE90CAB0C90A99087092A8255AE96E731';
wwv_flow_api.g_varchar2_table(124) := 'B88A31EDDBDA156C927E71ED9FE48D46EE16447B4FBF646D2F8F21CB4C710C9300BCB922E7A4864086CCC9E5096F6ECB7F4D376DF8F3E3092E5424EED14C29271B1654AEA924B1AC2C1E32B16832869348D0F189935A91C0EA02FA4D458F1BBB6637C333';
wwv_flow_api.g_varchar2_table(125) := '6C5931C59CCCB05DC192D1C4AEECC8174850EFA6FABC3CD56CC139656FA57B9B1F506F516D91ED9246AF0C929CF8E559B14989D90F2E401398975B6BB78F0B52C2BEDEA05028140A05028140A05028140A050282B6E7F609FF0030D07581F61C7FDD27E8';
wwv_flow_api.g_varchar2_table(126) := '8A08B6C20FBDD8DED9120E1FE541728296E53C50362492B694131B90093FAB7F40B9A0A7BBE74E9246D0452CE8635611C091993CED6D479CD18007CF5E1DEFABDAEE5977ED9BB0B3759C94F3BA8F2B6DE9D1B8458A33725E548638118465CBBE9BAAF12C';
wwv_flow_api.g_varchar2_table(127) := 'C071D080B1F40AE5FA526DDFDCDBB64926FC69E9D5ADDCB359E7BA5B418B0A4871A5C8E7EB6C910B2110A440F31C6B29AC2B2F858311E02FC2BE9DDB899E8C2183BBDB1B44C7230F261962E5F3D018A458F5CBCA62CEAFA6D19B16F92F59AB8686DBDC1C';
wwv_flow_api.g_varchar2_table(128) := '4DC3A73FBEE360643C2264C668001CD321C818D22A47FAC3A58DD752AEA1623C6B5BB6E2A4D5536AEE44BB86FB85B78DA66C783359A359A62CAC8E89248CAF74E5870B1718F5EBE3702C0D4934FC67F6FEA6ED14774EE6F4F666DEF9116CD2EE39585211';
wwv_flow_api.g_varchar2_table(129) := '0E3642C29CBCBBB2C08C5D98A190233070A428F1F11793C971AE2A787BC7D3E63963C8C4CA8373C6884B9783647D0780D2250C11F8BA5883C752FF0095BE5C91A3B7F72766CEDEB1B6A8B172D64CCB9C6C878D794CA1490D75662158A38171E23F08A589';
wwv_flow_api.g_varchar2_table(130) := '9452F74BA7D0A15832658992377991632A8670BCA461AF56A6670A6C0E9FCAB0E35776DB1513F767628911F230F3218CC82191CAC2C164B90EA3448FAF9640D452EBC4589A936974443BB7B546D2C593B6E647911895D608D526628835477646281A55B9';
wwv_flow_api.g_varchar2_table(131) := '0A18DBC0F1E14A3EC76BDC71B73DB71B70C53AB1F2E359A23C0F95C5C78122966125CAC491C72C6D1C8A1E37055D1802A548B1041F106A2B8C4C4C5C3C78F1B1214831E2168E18D42228F1E0A38504B40A05028140A05028140A05028140A05056DCFEC1';
wwv_flow_api.g_varchar2_table(132) := '3FE61A0FFFD9';
wwv_flow_api.create_app_static_file(
p_id=>wwv_flow_api.id(858280283948844914)
,p_file_name=>'trees_project_tracking.jpg'
,p_mime_type=>'image/jpeg'
,p_file_content => wwv_flow_api.varchar2_to_blob(wwv_flow_api.g_varchar2_table)
);
end;
/
prompt --application/plugin_settings
begin
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(1565332506526321)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_STAR_RATING'
,p_attribute_01=>'fa-star'
,p_attribute_04=>'#VALUE#'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(8289164578297017)
,p_plugin_type=>'REGION TYPE'
,p_plugin=>'NATIVE_CSS_CALENDAR'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(94506830653251751)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_RICH_TEXT_EDITOR'
,p_attribute_01=>'N'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(176131523402506821)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_SINGLE_CHECKBOX'
,p_attribute_01=>'Y'
,p_attribute_02=>'N'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(592238287405709447)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_DATE_PICKER_JET'
,p_attribute_01=>'MONTH-PICKER:YEAR-PICKER'
,p_attribute_02=>'VISIBLE'
,p_attribute_03=>'15'
,p_attribute_04=>'Y'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(1121353596478510372)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_YES_NO'
,p_attribute_01=>'Y'
,p_attribute_03=>'N'
,p_attribute_05=>'SWITCH'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(1767594797161391410)
,p_plugin_type=>'REGION TYPE'
,p_plugin=>'NATIVE_DISPLAY_SELECTOR'
,p_attribute_01=>'N'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(1834294948542673514)
,p_plugin_type=>'REGION TYPE'
,p_plugin=>'NATIVE_IR'
,p_attribute_01=>'IG'
);
wwv_flow_api.create_plugin_setting(
p_id=>wwv_flow_api.id(1920190041283619461)
,p_plugin_type=>'ITEM TYPE'
,p_plugin=>'NATIVE_COLOR_PICKER'
,p_attribute_01=>'FULL'
,p_attribute_02=>'POPUP'
);
end;
/
prompt --application/shared_components/navigation/navigation_bar
begin
wwv_flow_api.create_icon_bar_item(
p_id=>wwv_flow_api.id(3273069401490066548)
,p_icon_sequence=>10
,p_icon_subtext=>'Administration'
,p_icon_target=>'f?p=&APP_ID.:settings:&SESSION.::&DEBUG.::::'
,p_icon_image_alt=>'Administration'
,p_nav_entry_is_feedback_yn=>'N'
,p_begins_on_new_line=>'NO'
,p_cell_colspan=>1
);
wwv_flow_api.create_icon_bar_item(
p_id=>wwv_flow_api.id(3199569987678285768)
,p_icon_sequence=>20
,p_icon_subtext=>'Help'
,p_icon_target=>'f?p=&APP_ID.:help:&SESSION.::&DEBUG.:::'
,p_nav_entry_is_feedback_yn=>'N'
,p_begins_on_new_line=>'NO'
,p_cell_colspan=>1
);
wwv_flow_api.create_icon_bar_item(
p_id=>wwv_flow_api.id(7263489667713758694)
,p_icon_sequence=>30
,p_icon_subtext=>'Logout'
,p_icon_target=>'&LOGOUT_URL.'
,p_icon_image_alt=>'Logout'
,p_icon_height=>32
,p_icon_width=>32
,p_icon_height2=>24
,p_icon_width2=>24
,p_nav_entry_is_feedback_yn=>'N'
,p_begins_on_new_line=>'NO'
,p_cell_colspan=>1
);
end;
/
prompt --application/shared_components/logic/application_processes/trim_all_page_items
begin
wwv_flow_api.create_flow_process(
p_id=>wwv_flow_api.id(1555469611796639143)
,p_process_sequence=>1
,p_process_point=>'ON_SUBMIT_BEFORE_COMPUTATION'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Trim All Page Items'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'begin',
' for c1 in (select item_name',
' from apex_application_page_items',
' where application_id = :APP_ID',
' and page_id = :APP_PAGE_ID',
' and display_as_code in (''NATIVE_TEXT_FIELD'',',
' ''NATIVE_TEXTAREA'',',
' ''NATIVE_NUMBER_FIELD'') ) loop',
' apex_util.set_session_state( c1.item_name,',
' regexp_replace(apex_util.get_session_state( c1.item_name ),',
' ''^[[:space:]]*(.*?)[[:space:]]*$'', ''\1''',
' )',
' );',
' end loop;',
'end;'))
,p_process_clob_language=>'PLSQL'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
end;
/
prompt --application/shared_components/logic/application_items/last_view
begin
wwv_flow_api.create_flow_item(
p_id=>wwv_flow_api.id(3171036889482447701)
,p_name=>'LAST_VIEW'
,p_protection_level=>'N'
,p_escape_on_http_output=>'N'
);
end;
/
prompt --application/shared_components/logic/application_settings
begin
null;
end;
/
prompt --application/shared_components/navigation/tabs/standard
begin
null;
end;
/
prompt --application/shared_components/navigation/tabs/parent
begin
null;
end;
/
prompt --application/shared_components/user_interface/lovs/priority
begin
wwv_flow_api.create_list_of_values(
p_id=>wwv_flow_api.id(3170812599369995249)
,p_lov_name=>'PRIORITY'
,p_lov_query=>'.'||wwv_flow_api.id(3170812599369995249)||'.'
,p_location=>'STATIC'
);
wwv_flow_api.create_static_lov_data(
p_id=>wwv_flow_api.id(3170812896068995256)
,p_lov_disp_sequence=>1
,p_lov_disp_value=>'1'
,p_lov_return_value=>'1'
);
wwv_flow_api.create_static_lov_data(
p_id=>wwv_flow_api.id(3170813100469995264)
,p_lov_disp_sequence=>2
,p_lov_disp_value=>'2'
,p_lov_return_value=>'2'
);
wwv_flow_api.create_static_lov_data(
p_id=>wwv_flow_api.id(3170813302866995264)
,p_lov_disp_sequence=>3
,p_lov_disp_value=>'3'
,p_lov_return_value=>'3'
);
wwv_flow_api.create_static_lov_data(
p_id=>wwv_flow_api.id(3170813487500995264)
,p_lov_disp_sequence=>4
,p_lov_disp_value=>'4'
,p_lov_return_value=>'4'
);
wwv_flow_api.create_static_lov_data(
p_id=>wwv_flow_api.id(3170813713767995264)
,p_lov_disp_sequence=>5
,p_lov_disp_value=>'5'
,p_lov_return_value=>'5'
);
end;
/
prompt --application/shared_components/user_interface/lovs/projects
begin
wwv_flow_api.create_list_of_values(
p_id=>wwv_flow_api.id(3170858994754836120)
,p_lov_name=>'PROJECTS'
,p_lov_query=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select project_name d, proj_id r',
'from eba_demo_tree_projects',
'order by 1'))
,p_source_type=>'LEGACY_SQL'
,p_location=>'LOCAL'
);
end;
/
prompt --application/shared_components/user_interface/lovs/status
begin
wwv_flow_api.create_list_of_values(
p_id=>wwv_flow_api.id(3171029703905167971)
,p_lov_name=>'STATUS'
,p_lov_query=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select status_name ||'' - ''||pct_complete||''%'' d, pct_complete r',
'from eba_demo_tree_def_st_codes',
'order by pct_complete'))
,p_source_type=>'LEGACY_SQL'
,p_location=>'LOCAL'
);
end;
/
prompt --application/shared_components/user_interface/lovs/tasks
begin
wwv_flow_api.create_list_of_values(
p_id=>wwv_flow_api.id(3170902086162363493)
,p_lov_name=>'TASKS'
,p_lov_query=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select TASK_NAME d, task_id r',
'from eba_demo_tree_task',
'order by 1'))
,p_source_type=>'LEGACY_SQL'
,p_location=>'LOCAL'
);
end;
/
prompt --application/pages/page_groups
begin
null;
end;
/
prompt --application/comments
begin
null;
end;
/
prompt --application/shared_components/navigation/breadcrumbs/breadcrumb
begin
wwv_flow_api.create_menu(
p_id=>wwv_flow_api.id(7263491457246758706)
,p_name=>' Breadcrumb'
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(2127124378579194940)
,p_short_name=>'Administration'
,p_link=>'f?p=&APP_ID.:5:&SESSION.'
,p_page_id=>5
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(2127137622651220098)
,p_parent_id=>wwv_flow_api.id(2127124378579194940)
,p_short_name=>'Application Theme Style'
,p_link=>'f?p=&APP_ID.:8:&SESSION.'
,p_page_id=>8
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3165907003388856412)
,p_parent_id=>wwv_flow_api.id(7263491869094758709)
,p_short_name=>'Help'
,p_link=>'f?p=&FLOW_ID.:4:&SESSION.'
,p_page_id=>4
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3167901684857608561)
,p_parent_id=>0
,p_short_name=>'Project Tracking'
,p_link=>'f?p=&APP_ID.:3:&SESSION.::&DEBUG.:::'
,p_page_id=>3
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3170812510542958183)
,p_parent_id=>wwv_flow_api.id(3170814597973040030)
,p_short_name=>'Create/Edit Project'
,p_link=>'f?p=&APP_ID.:7:&SESSION.::&DEBUG.:::'
,p_page_id=>7
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3170814597973040030)
,p_parent_id=>wwv_flow_api.id(3167901684857608561)
,p_short_name=>'Project Dashboard'
,p_link=>'f?p=&APP_ID.:6:&SESSION.::&DEBUG.:::'
,p_page_id=>6
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3170823104079657875)
,p_short_name=>'Create/Edit Tasks'
,p_link=>'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::'
,p_page_id=>9
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3170823186291657875)
,p_parent_id=>wwv_flow_api.id(3170823104079657875)
,p_short_name=>'Modify Subtask Information'
,p_link=>'f?p=&APP_ID.:10:&SESSION.::&DEBUG.:::'
,p_page_id=>10
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(3273068409001063803)
,p_parent_id=>wwv_flow_api.id(2127124378579194940)
,p_short_name=>'Manage Sample Data'
,p_link=>'f?p=&APP_ID.:2:&SESSION.::&DEBUG.:::'
,p_page_id=>2
);
wwv_flow_api.create_menu_option(
p_id=>wwv_flow_api.id(7263491869094758709)
,p_parent_id=>0
,p_short_name=>'Home'
,p_link=>'f?p=&APP_ID.:1:&SESSION.::&DEBUG.:::'
,p_page_id=>1
);
end;
/
prompt --application/shared_components/navigation/breadcrumbentry
begin
null;
end;
/
prompt --application/shared_components/user_interface/templates/page/left_side_column
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585396013907301385)
,p_theme_id=>42
,p_name=>'Left Side Column'
,p_internal_name=>'LEFT_SIDE_COLUMN'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.leftSideCol();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody t-PageBody--showLeft t-PageBody--hideActions no-anim t-PageTemplate--leftCol #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Header-controlsIcon" aria-hidden="t'
||'rue"></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
' <div class="t-Header-nav">#TOP_GLOBAL_NAVIGATION_LIST##REGION_POSITION_06#</div>',
'</header>',
''))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' #SIDE_GLOBAL_NAVIGATION_LIST#',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-side" id="t_Body_side">#REGION_POSITION_02#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main class="t-Body-mainContent" id="main">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-contentInner">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>17
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2525196570560608698
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803516732395793769)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803517232168793769)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803517798451793770)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Left Column'
,p_placeholder=>'REGION_POSITION_02'
,p_has_grid_support=>false
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>4
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803518283729793770)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803518723712793770)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803519219755793771)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803519737466793771)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803520289779793771)
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>false
,p_max_fixed_grid_columns=>8
);
end;
/
prompt --application/shared_components/user_interface/templates/page/left_and_right_side_columns
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585398988854301399)
,p_theme_id=>42
,p_name=>'Left and Right Side Columns'
,p_internal_name=>'LEFT_AND_RIGHT_SIDE_COLUMNS'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.bothSideCols();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8"> ',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0"/>',
'</head>',
'<body class="t-PageBody t-PageBody--showLeft no-anim t-PageTemplate--leftRightCol #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Header-controlsIcon" aria-hidden="t'
||'rue"></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
' <div class="t-Header-nav">#TOP_GLOBAL_NAVIGATION_LIST##REGION_POSITION_06#</div>',
'</header>',
''))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' #SIDE_GLOBAL_NAVIGATION_LIST#',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-side" id="t_Body_side">#REGION_POSITION_02#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main id="main" class="t-Body-mainContent">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-contentInner">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
' <div class="t-Body-actions" id="t_Body_actions">',
' <button class="t-Body-actionsToggle" title="#EXPAND_COLLAPSE_SIDE_COL_LABEL#" id="t_Button_rightControlButton" type="button"><span class="t-Body-actionsControlsIcon" aria-hidden="true"></span></button>',
' <div class="t-Body-actionsContent" role="complementary">#REGION_POSITION_03#</div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_sidebar_def_reg_pos=>'REGION_POSITION_03'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>17
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2525203692562657055
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803524962052793778)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>6
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803525420164793778)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803525972495793779)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Left Column'
,p_placeholder=>'REGION_POSITION_02'
,p_has_grid_support=>false
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>3
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803526448253793779)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Right Column'
,p_placeholder=>'REGION_POSITION_03'
,p_has_grid_support=>false
,p_glv_new_row=>false
,p_max_fixed_grid_columns=>3
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803526916028793779)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803527423311793780)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>6
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803527951146793780)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803528448968793780)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803528938062793781)
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>false
,p_max_fixed_grid_columns=>6
);
end;
/
prompt --application/shared_components/user_interface/templates/page/login
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585402501526301404)
,p_theme_id=>42
,p_name=>'Login'
,p_internal_name=>'LOGIN'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.appLogin();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody--login t-PageTemplate--login no-anim #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD#>',
'#FORM_OPEN#'))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Login-container">',
' <header class="t-Login-containerHeader">#REGION_POSITION_01#</header>',
' <main class="t-Login-containerBody" id="main">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION##BODY#</main>',
' <footer class="t-Login-containerFooter">#REGION_POSITION_02#</footer>',
'</div>',
''))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT#',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>6
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2099711150063350616
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803531237361793783)
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803531786696793783)
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_name=>'Body Header'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803532208225793784)
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_name=>'Body Footer'
,p_placeholder=>'REGION_POSITION_02'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/page/master_detail
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585405975288301409)
,p_theme_id=>42
,p_name=>'Marquee'
,p_internal_name=>'MASTER_DETAIL'
,p_is_popup=>false
,p_javascript_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.stickyTableHeader#MIN#.js?v=#APEX_VERSION#',
'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.apexTabs#MIN#.js?v=#APEX_VERSION#'))
,p_javascript_code_onload=>'apex.theme42.initializePage.masterDetail();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody t-PageBody--masterDetail t-PageBody--hideLeft no-anim t-PageTemplate--marquee #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Header-controlsIcon" aria-hidden="t'
||'rue"></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
' <div class="t-Header-nav">#TOP_GLOBAL_NAVIGATION_LIST##REGION_POSITION_06#</div>',
'</header>'))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' #SIDE_GLOBAL_NAVIGATION_LIST#',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main id="main" class="t-Body-mainContent">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-info" id="t_Body_info">#REGION_POSITION_02#</div>',
' <div class="t-Body-contentInner" role="main">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
' <div class="t-Body-actions" id="t_Body_actions">',
' <button class="t-Body-actionsToggle" title="#EXPAND_COLLAPSE_SIDE_COL_LABEL#" id="t_Button_rightControlButton" type="button"><span class="t-Body-actionsControlsIcon" aria-hidden="true"></span></button>',
' <div class="t-Body-actionsContent" role="complementary">#REGION_POSITION_03#</div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_sidebar_def_reg_pos=>'REGION_POSITION_03'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>17
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>1996914646461572319
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803539070605793791)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803539538977793795)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803540010936793795)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Master Detail'
,p_placeholder=>'REGION_POSITION_02'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803540507321793796)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Right Side Column'
,p_placeholder=>'REGION_POSITION_03'
,p_has_grid_support=>false
,p_glv_new_row=>false
,p_max_fixed_grid_columns=>4
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803541021370793796)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803541532559793796)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803542024701793797)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803542564844793797)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803543050590793797)
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
end;
/
prompt --application/shared_components/user_interface/templates/page/minimal_no_navigation
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585409957961301416)
,p_theme_id=>42
,p_name=>'Minimal (No Navigation)'
,p_internal_name=>'MINIMAL_NO_NAVIGATION'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.noSideCol();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS# ',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody t-PageBody--hideLeft t-PageBody--hideActions no-anim #PAGE_CSS_CLASSES# t-PageBody--noNav t-PageTemplate--minimal" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Icon fa fa-bars" aria-hidden="true"'
||'></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
'</header>',
' '))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main id="main" class="t-Body-mainContent">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-contentInner">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>',
''))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar t-NavigationBar--classic" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>4
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2977628563533209425
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803546955505793802)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803547471160793803)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803547943520793803)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803548476089793803)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803548928547793804)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803549414590793806)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803549979769793806)
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/page/modal_dialog
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585412598544301427)
,p_theme_id=>42
,p_name=>'Modal Dialog'
,p_internal_name=>'MODAL_DIALOG'
,p_is_popup=>true
,p_javascript_code_onload=>'apex.theme42.initializePage.modalDialog();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-Dialog-page t-Dialog-page--standard t-PageTemplate--dialog #DIALOG_CSS_CLASSES# #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD#>',
'#FORM_OPEN#'))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Dialog" role="dialog" aria-label="#TITLE#">',
' <div class="t-Dialog-header">#REGION_POSITION_01#</div>',
' <div class="t-Dialog-bodyWrapperOut">',
' <div class="t-Dialog-bodyWrapperIn">',
' <div class="t-Dialog-body" role="main">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION##BODY#</div>',
' </div>',
' </div>',
' <div class="t-Dialog-footer">#REGION_POSITION_03#</div>',
'</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>3
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},''t-Dialog-page--standard ''+#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_height=>'auto'
,p_dialog_width=>'720'
,p_dialog_max_width=>'960'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2098960803539086924
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803552259336793808)
,p_page_template_id=>wwv_flow_api.id(1585412598544301427)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803552762749793808)
,p_page_template_id=>wwv_flow_api.id(1585412598544301427)
,p_name=>'Dialog Header'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803553278456793809)
,p_page_template_id=>wwv_flow_api.id(1585412598544301427)
,p_name=>'Dialog Footer'
,p_placeholder=>'REGION_POSITION_03'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/page/right_side_column
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585419502571301435)
,p_theme_id=>42
,p_name=>'Right Side Column'
,p_internal_name=>'RIGHT_SIDE_COLUMN'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.rightSideCol();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8"> ',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody t-PageBody--hideLeft no-anim t-PageTemplate--rightSideCol #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Header-controlsIcon" aria-hidden="t'
||'rue"></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
' <div class="t-Header-nav">#TOP_GLOBAL_NAVIGATION_LIST##REGION_POSITION_06#</div>',
'</header>'))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' #SIDE_GLOBAL_NAVIGATION_LIST#',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main id="main" class="t-Body-mainContent">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-contentInner">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
' <div class="t-Body-actions" id="t_Body_actions">',
' <button class="t-Body-actionsToggle" aria-label="#EXPAND_COLLAPSE_SIDE_COL_LABEL#" title="#EXPAND_COLLAPSE_SIDE_COL_LABEL#" id="t_Button_rightControlButton" type="button"><span class="t-Body-actionsControlsIcon" aria-hidden="true"></span></button'
||'>',
' <div class="t-Body-actionsContent" role="complementary">#REGION_POSITION_03#</div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_sidebar_def_reg_pos=>'REGION_POSITION_03'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>17
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2525200116240651575
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803558470221793813)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803558975667793814)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803559414444793814)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Right Column'
,p_placeholder=>'REGION_POSITION_03'
,p_has_grid_support=>false
,p_glv_new_row=>false
,p_max_fixed_grid_columns=>4
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803559940323793815)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803560445577793815)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803560988136793815)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803561450503793816)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803561927289793816)
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>8
);
end;
/
prompt --application/shared_components/user_interface/templates/page/standard
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585422579688301441)
,p_theme_id=>42
,p_name=>'Standard'
,p_internal_name=>'STANDARD'
,p_is_popup=>false
,p_javascript_code_onload=>'apex.theme42.initializePage.noSideCol();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-PageBody t-PageBody--hideLeft t-PageBody--hideActions no-anim t-PageTemplate--standard #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD# id="t_PageBody">',
'<a href="#main" id="t_Body_skipToContent">&APP_TEXT$UI_PAGE_SKIP_TO_CONTENT.</a>',
'#FORM_OPEN#',
'<header class="t-Header" id="t_Header" role="banner">',
' #REGION_POSITION_07#',
' <div class="t-Header-branding">',
' <div class="t-Header-controls">',
' <button class="t-Button t-Button--icon t-Button--header t-Button--headerTree" aria-label="#EXPAND_COLLAPSE_NAV_LABEL#" title="#EXPAND_COLLAPSE_NAV_LABEL#" id="t_Button_navControl" type="button"><span class="t-Header-controlsIcon" aria-hidden="t'
||'rue"></span></button>',
' </div>',
' <div class="t-Header-logo">',
' <a href="#HOME_LINK#" class="t-Header-logo-link">#LOGO#</a>',
' </div>',
' <div class="t-Header-navBar">#NAVIGATION_BAR#</div>',
' </div>',
' <div class="t-Header-nav">#TOP_GLOBAL_NAVIGATION_LIST##REGION_POSITION_06#</div>',
'</header>',
''))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body">',
' #SIDE_GLOBAL_NAVIGATION_LIST#',
' <div class="t-Body-main">',
' <div class="t-Body-title" id="t_Body_title">#REGION_POSITION_01#</div>',
' <div class="t-Body-content" id="t_Body_content">',
' <main id="main" class="t-Body-mainContent">',
' #SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#',
' <div class="t-Body-fullContent">#REGION_POSITION_08#</div>',
' <div class="t-Body-contentInner">#BODY#</div>',
' </main>',
' <footer class="t-Footer" id="t_Footer" role="contentinfo">',
' <div class="t-Footer-body">',
' <div class="t-Footer-content">#REGION_POSITION_05#</div>',
' <div class="t-Footer-apex">',
' <div class="t-Footer-version">#APP_VERSION#</div>',
' <div class="t-Footer-customize">#CUSTOMIZE#</div>',
' #BUILT_WITH_LOVE_USING_APEX#',
' </div>',
' </div>',
' <div class="t-Footer-top">',
' <a href="#top" class="t-Footer-topButton" id="t_Footer_topButton"><span class="a-Icon icon-up-chevron"></span></a>',
' </div>',
' </footer>',
' </div>',
' </div>',
'</div>',
'<div class="t-Body-inlineDialogs" id="t_Body_inlineDialogs">#REGION_POSITION_04#</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>',
''))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_navigation_bar=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-NavigationBar t-NavigationBar--classic" data-mode="classic">',
' <li class="t-NavigationBar-item">',
' <span class="t-Button t-Button--icon t-Button--noUI t-Button--header t-Button--navBar t-Button--headerUser">',
' <span class="t-Icon a-Icon icon-user"></span>',
' <span class="t-Button-label">&APP_USER.</span>',
' </span>',
' </li>#BAR_BODY#',
'</ul>'))
,p_navbar_entry=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item">',
' <a class="t-Button t-Button--icon t-Button--header" href="#LINK#">',
' <span class="t-Icon #IMAGE#"></span>',
' <span class="t-Button-label">#TEXT#</span>',
' </a>',
'</li>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_breadcrumb_def_reg_pos=>'REGION_POSITION_01'
,p_theme_class_id=>1
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>4070909157481059304
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803565818826793819)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803566331519793820)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Breadcrumb Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803566871450793820)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Inline Dialogs'
,p_placeholder=>'REGION_POSITION_04'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803567385316793820)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Footer'
,p_placeholder=>'REGION_POSITION_05'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803567805950793821)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Page Navigation'
,p_placeholder=>'REGION_POSITION_06'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803568394647793821)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Page Header'
,p_placeholder=>'REGION_POSITION_07'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803568806619793821)
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_name=>'Before Content Body'
,p_placeholder=>'REGION_POSITION_08'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/page/wizard_modal_dialog
begin
wwv_flow_api.create_template(
p_id=>wwv_flow_api.id(1585425334760301448)
,p_theme_id=>42
,p_name=>'Wizard Modal Dialog'
,p_internal_name=>'WIZARD_MODAL_DIALOG'
,p_is_popup=>true
,p_javascript_code_onload=>'apex.theme42.initializePage.wizardModal();'
,p_header_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html class="no-js #RTL_CLASS# page-&APP_PAGE_ID. app-&APP_ALIAS." lang="&BROWSER_LANGUAGE." #TEXT_DIRECTION#>',
'<head>',
' <meta http-equiv="x-ua-compatible" content="IE=edge" />',
' <meta charset="utf-8">',
' <title>#TITLE#</title>',
' #APEX_CSS#',
' #THEME_CSS#',
' #TEMPLATE_CSS#',
' #THEME_STYLE_CSS#',
' #APPLICATION_CSS#',
' #PAGE_CSS#',
' #FAVICONS#',
' #HEAD#',
' <meta name="viewport" content="width=device-width, initial-scale=1.0" />',
'</head>',
'<body class="t-Dialog-page t-Dialog-page--wizard t-PageTemplate--wizard #DIALOG_CSS_CLASSES# #PAGE_CSS_CLASSES#" #TEXT_DIRECTION# #ONLOAD#>',
'#FORM_OPEN#'))
,p_box=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Dialog" role="dialog" aria-label="#TITLE#">',
' <div class="t-Dialog-header">#REGION_POSITION_01#</div>',
' <div class="t-Dialog-bodyWrapperOut">',
' <div class="t-Dialog-bodyWrapperIn">',
' <div class="t-Dialog-body" role="main">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION##BODY#</div>',
' </div>',
' </div>',
' <div class="t-Dialog-footer">#REGION_POSITION_03#</div>',
'</div>'))
,p_footer_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#FORM_CLOSE#',
'#DEVELOPER_TOOLBAR#',
'#APEX_JAVASCRIPT#',
'#GENERATED_CSS#',
'#THEME_JAVASCRIPT#',
'#TEMPLATE_JAVASCRIPT#',
'#APPLICATION_JAVASCRIPT#',
'#PAGE_JAVASCRIPT# ',
'#GENERATED_JAVASCRIPT#',
'</body>',
'</html>'))
,p_success_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--success t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Success" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#SUCCESS_MESSAGE#</h2>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Success'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_notification_message=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-alert">',
' <div class="t-Alert t-Alert--defaultIcons t-Alert--warning t-Alert--horizontal t-Alert--page t-Alert--colorBG" id="t_Alert_Notification" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">#MESSAGE#</div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button class="t-Button t-Button--noUI t-Button--icon t-Button--closeAlert" onclick="apex.jQuery(''#t_Alert_Notification'').remove();" type="button" title="#CLOSE_NOTIFICATION#"><span class="t-Icon icon-close"></span></button>',
' </div>',
' </div>',
' </div>',
'</div>'))
,p_region_table_cattributes=>' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"'
,p_theme_class_id=>3
,p_error_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--danger t-Alert--wizard t-Alert--defaultIcons">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-body">',
' <h3>#MESSAGE#</h3>',
' <p>#ADDITIONAL_INFO#</p>',
' <div class="t-Alert-inset">#TECHNICAL_INFO#</div>',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' <button onclick="#BACK_LINK#" class="t-Button t-Button--hot w50p t-Button--large" type="button">#OK#</button>',
' </div>',
' </div>',
'</div>'))
,p_grid_type=>'FIXED'
,p_grid_max_columns=>12
,p_grid_always_use_max_columns=>true
,p_grid_has_column_span=>true
,p_grid_always_emit=>false
,p_grid_emit_empty_leading_cols=>true
,p_grid_emit_empty_trail_cols=>false
,p_grid_default_label_col_span=>2
,p_grid_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="container">',
'#ROWS#',
'</div>'))
,p_grid_row_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="row #CSS_CLASSES#">',
'#COLUMNS#',
'</div>'))
,p_grid_column_template=>'<div class="col col-#COLUMN_SPAN_NUMBER# #CSS_CLASSES#" #ATTRIBUTES#>#CONTENT#</div>'
,p_grid_first_column_attributes=>'alpha'
,p_grid_last_column_attributes=>'omega'
,p_dialog_js_init_code=>'apex.navigation.dialog(#PAGE_URL#,{title:#TITLE#,height:#DIALOG_HEIGHT#,width:#DIALOG_WIDTH#,maxWidth:#DIALOG_MAX_WIDTH#,modal:#IS_MODAL#,dialog:#DIALOG#,#DIALOG_ATTRIBUTES#},''t-Dialog-page--wizard ''+#DIALOG_CSS_CLASSES#,#TRIGGERING_ELEMENT#);'
,p_dialog_js_close_code=>'apex.navigation.dialog.close(#IS_MODAL#,#TARGET#);'
,p_dialog_js_cancel_code=>'apex.navigation.dialog.cancel(#IS_MODAL#);'
,p_dialog_height=>'auto'
,p_dialog_width=>'720'
,p_dialog_max_width=>'960'
,p_dialog_browser_frame=>'MODAL'
,p_reference_id=>2120348229686426515
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803571048918793824)
,p_page_template_id=>wwv_flow_api.id(1585425334760301448)
,p_name=>'Wizard Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803571597437793825)
,p_page_template_id=>wwv_flow_api.id(1585425334760301448)
,p_name=>'Wizard Progress Bar'
,p_placeholder=>'REGION_POSITION_01'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_page_tmpl_display_point(
p_id=>wwv_flow_api.id(803572021673793825)
,p_page_template_id=>wwv_flow_api.id(1585425334760301448)
,p_name=>'Wizard Buttons'
,p_placeholder=>'REGION_POSITION_03'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/button/icon
begin
wwv_flow_api.create_button_templates(
p_id=>wwv_flow_api.id(1585461886208301542)
,p_template_name=>'Icon'
,p_internal_name=>'ICON'
,p_template=>'<button class="t-Button t-Button--noLabel t-Button--icon #BUTTON_CSS_CLASSES#" #BUTTON_ATTRIBUTES# onclick="#JAVASCRIPT#" type="button" id="#BUTTON_ID#" title="#LABEL!ATTR#" aria-label="#LABEL!ATTR#"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidde'
||'n="true"></span></button>'
,p_hot_template=>'<button class="t-Button t-Button--noLabel t-Button--icon #BUTTON_CSS_CLASSES# t-Button--hot" #BUTTON_ATTRIBUTES# onclick="#JAVASCRIPT#" type="button" id="#BUTTON_ID#" title="#LABEL!ATTR#" aria-label="#LABEL!ATTR#"><span class="t-Icon #ICON_CSS_CLASSE'
||'S#" aria-hidden="true"></span></button>'
,p_reference_id=>2347660919680321258
,p_translate_this_template=>'N'
,p_theme_class_id=>5
,p_theme_id=>42
);
end;
/
prompt --application/shared_components/user_interface/templates/button/text_with_icon
begin
wwv_flow_api.create_button_templates(
p_id=>wwv_flow_api.id(1585462019447301543)
,p_template_name=>'Text with Icon'
,p_internal_name=>'TEXT_WITH_ICON'
,p_template=>'<button class="t-Button t-Button--icon #BUTTON_CSS_CLASSES#" #BUTTON_ATTRIBUTES# onclick="#JAVASCRIPT#" type="button" id="#BUTTON_ID#"><span class="t-Icon t-Icon--left #ICON_CSS_CLASSES#" aria-hidden="true"></span><span class="t-Button-label">#LABEL#'
||'</span><span class="t-Icon t-Icon--right #ICON_CSS_CLASSES#" aria-hidden="true"></span></button>'
,p_hot_template=>'<button class="t-Button t-Button--icon #BUTTON_CSS_CLASSES# t-Button--hot" #BUTTON_ATTRIBUTES# onclick="#JAVASCRIPT#" type="button" id="#BUTTON_ID#"><span class="t-Icon t-Icon--left #ICON_CSS_CLASSES#" aria-hidden="true"></span><span class="t-Button-'
||'label">#LABEL#</span><span class="t-Icon t-Icon--right #ICON_CSS_CLASSES#" aria-hidden="true"></span></button>'
,p_reference_id=>2081382742158699622
,p_translate_this_template=>'N'
,p_theme_class_id=>4
,p_preset_template_options=>'t-Button--iconRight'
,p_theme_id=>42
);
end;
/
prompt --application/shared_components/user_interface/templates/button/text
begin
wwv_flow_api.create_button_templates(
p_id=>wwv_flow_api.id(1585462573223301545)
,p_template_name=>'Text'
,p_internal_name=>'TEXT'
,p_template=>'<button onclick="#JAVASCRIPT#" class="t-Button #BUTTON_CSS_CLASSES#" type="button" #BUTTON_ATTRIBUTES# id="#BUTTON_ID#"><span class="t-Button-label">#LABEL#</span></button>'
,p_hot_template=>'<button onclick="#JAVASCRIPT#" class="t-Button t-Button--hot #BUTTON_CSS_CLASSES#" type="button" #BUTTON_ATTRIBUTES# id="#BUTTON_ID#"><span class="t-Button-label">#LABEL#</span></button>'
,p_reference_id=>4070916158035059322
,p_translate_this_template=>'N'
,p_theme_class_id=>1
,p_theme_id=>42
);
end;
/
prompt --application/shared_components/user_interface/templates/region/inline_popup
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(135476605210050698)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div id="#REGION_STATIC_ID#_parent">',
'<div id="#REGION_STATIC_ID#" class="t-DialogRegion #REGION_CSS_CLASSES# js-regionPopup" #REGION_ATTRIBUTES# style="display:none" title="#TITLE!ATTR#">',
' <div class="t-DialogRegion-wrap">',
' <div class="t-DialogRegion-bodyWrapperOut"><div class="t-DialogRegion-bodyWrapperIn"><div class="t-DialogRegion-body">#BODY#</div></div></div>',
' <div class="t-DialogRegion-buttons">',
' <div class="t-ButtonRegion t-ButtonRegion--dialogRegion">',
' <div class="t-ButtonRegion-wrap">',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--left"><div class="t-ButtonRegion-buttons">#PREVIOUS##DELETE##CLOSE#</div></div>',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--right"><div class="t-ButtonRegion-buttons">#EDIT##CREATE##NEXT#</div></div>',
' </div>',
' </div>',
' </div>',
' </div>',
'</div>',
'</div>'))
,p_page_plug_template_name=>'Inline Popup'
,p_internal_name=>'INLINE_POPUP'
,p_theme_id=>42
,p_theme_class_id=>24
,p_preset_template_options=>'js-dialog-size600x400'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>1483922538999385230
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803649516426793914)
,p_plug_template_id=>wwv_flow_api.id(135476605210050698)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/region/cards_container
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(702385725868550535)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-CardsRegion #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <h2 class="u-VisuallyHidden" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
' #BODY##SUB_REGIONS#',
'</div>'))
,p_page_plug_template_name=>'Cards Container'
,p_internal_name=>'CARDS_CONTAINER'
,p_theme_id=>42
,p_theme_class_id=>21
,p_default_template_options=>'u-colors'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2071277712695139743
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/region/content_block
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1123954975610459938)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-ContentBlock #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-ContentBlock-header">',
' <div class="t-ContentBlock-headerItems t-ContentBlock-headerItems--title">',
' <span class="t-ContentBlock-headerIcon"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidden="true"></span></span>',
' <h1 class="t-ContentBlock-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h1>',
' #EDIT#',
' </div>',
' <div class="t-ContentBlock-headerItems t-ContentBlock-headerItems--buttons">#CHANGE#</div>',
' </div>',
' <div class="t-ContentBlock-body">#BODY#</div>',
' <div class="t-ContentBlock-buttons">#PREVIOUS##NEXT#</div>',
'</div>',
''))
,p_page_plug_template_name=>'Content Block'
,p_internal_name=>'CONTENT_BLOCK'
,p_theme_id=>42
,p_theme_class_id=>21
,p_preset_template_options=>'t-ContentBlock--h1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2320668864738842174
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/region/alert
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585426810387301451)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-Alert #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
' </div>',
' <div class="t-Alert-body">#BODY#</div>',
' </div>',
' <div class="t-Alert-buttons">#PREVIOUS##CLOSE##CREATE##NEXT#</div>',
' </div>',
'</div>'))
,p_page_plug_template_name=>'Alert'
,p_internal_name=>'ALERT'
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>42
,p_theme_class_id=>21
,p_preset_template_options=>'t-Alert--horizontal:t-Alert--defaultIcons:t-Alert--warning'
,p_plug_heading_bgcolor=>'#ffffff'
,p_plug_font_size=>'-1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2039236646100190748
,p_translate_this_template=>'N'
,p_template_comment=>'Red Theme'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803574484888793828)
,p_plug_template_id=>wwv_flow_api.id(1585426810387301451)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/region/blank_with_attributes
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585428609316301453)
,p_layout=>'TABLE'
,p_template=>'<div id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# class="#REGION_CSS_CLASSES#">#PREVIOUS##BODY##SUB_REGIONS##NEXT#</div>'
,p_page_plug_template_name=>'Blank with Attributes'
,p_internal_name=>'BLANK_WITH_ATTRIBUTES'
,p_theme_id=>42
,p_theme_class_id=>7
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>4499993862448380551
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/region/buttons_container
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585428806883301455)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ButtonRegion t-Form--floatLeft #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-ButtonRegion-wrap">',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--left"><div class="t-ButtonRegion-buttons">#PREVIOUS##CLOSE##DELETE#</div></div>',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--content">',
' <h2 class="t-ButtonRegion-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
' #BODY#',
' <div class="t-ButtonRegion-buttons">#CHANGE#</div>',
' </div>',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--right"><div class="t-ButtonRegion-buttons">#EDIT##CREATE##NEXT#</div></div>',
' </div>',
'</div>'))
,p_page_plug_template_name=>'Buttons Container'
,p_internal_name=>'BUTTONS_CONTAINER'
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>42
,p_theme_class_id=>17
,p_plug_heading_bgcolor=>'#ffffff'
,p_plug_font_size=>'-1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2124982336649579661
,p_translate_this_template=>'N'
,p_template_comment=>'Red Theme'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803585364289793842)
,p_plug_template_id=>wwv_flow_api.id(1585428806883301455)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803585871520793843)
,p_plug_template_id=>wwv_flow_api.id(1585428806883301455)
,p_name=>'Sub Regions'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/region/carousel_container
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585430620647301457)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-Region t-Region--carousel #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Region-header">',
' <div class="t-Region-headerItems t-Region-headerItems--title">',
' <span class="t-Region-headerIcon"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidden="true"></span></span>',
' <h2 class="t-Region-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
' </div>',
' <div class="t-Region-headerItems t-Region-headerItems--buttons">#COPY##EDIT#<span class="js-maximizeButtonContainer"></span></div>',
' </div>',
' <div role="region" aria-label="#TITLE#" class="t-Region-bodyWrap">',
' <div class="t-Region-buttons t-Region-buttons--top">',
' <div class="t-Region-buttons-left">#PREVIOUS#</div>',
' <div class="t-Region-buttons-right">#NEXT#</div>',
' </div>',
' <div class="t-Region-body">',
' #BODY#',
' <div class="t-Region-carouselRegions">#SUB_REGIONS#</div>',
' </div>',
' <div class="t-Region-buttons t-Region-buttons--bottom">',
' <div class="t-Region-buttons-left">#CLOSE##HELP#</div>',
' <div class="t-Region-buttons-right">#DELETE##CHANGE##CREATE#</div>',
' </div>',
' </div>',
'</div>'))
,p_sub_plug_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div data-label="#SUB_REGION_TITLE#" id="SR_#SUB_REGION_ID#">',
' #SUB_REGION#',
'</div>'))
,p_page_plug_template_name=>'Carousel Container'
,p_internal_name=>'CAROUSEL_CONTAINER'
,p_javascript_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.apexTabs#MIN#.js?v=#APEX_VERSION#',
'#IMAGE_PREFIX#plugins/com.oracle.apex.carousel/1.1/com.oracle.apex.carousel#MIN#.js?v=#APEX_VERSION#'))
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>42
,p_theme_class_id=>5
,p_default_template_options=>'t-Region--showCarouselControls'
,p_preset_template_options=>'t-Region--hiddenOverflow'
,p_plug_heading_bgcolor=>'#ffffff'
,p_plug_font_size=>'-1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2865840475322558786
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803592525571793849)
,p_plug_template_id=>wwv_flow_api.id(1585430620647301457)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803593043215793850)
,p_plug_template_id=>wwv_flow_api.id(1585430620647301457)
,p_name=>'Slides'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/region/hero
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585434753825301461)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-HeroRegion #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-HeroRegion-wrap">',
' <div class="t-HeroRegion-col t-HeroRegion-col--left"><span class="t-HeroRegion-icon t-Icon #ICON_CSS_CLASSES#"></span></div>',
' <div class="t-HeroRegion-col t-HeroRegion-col--content">',
' <h1 class="t-HeroRegion-title" data-apex-heading>#TITLE#</h1>',
' #BODY#',
' </div>',
' <div class="t-HeroRegion-col t-HeroRegion-col--right"><div class="t-HeroRegion-form">#SUB_REGIONS#</div><div class="t-HeroRegion-buttons">#NEXT#</div></div>',
' </div>',
'</div>'))
,p_page_plug_template_name=>'Hero'
,p_internal_name=>'HERO'
,p_theme_id=>42
,p_theme_class_id=>22
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2672571031438297268
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803639312688793902)
,p_plug_template_id=>wwv_flow_api.id(1585434753825301461)
,p_name=>'Region Body'
,p_placeholder=>'#BODY#'
,p_has_grid_support=>false
,p_glv_new_row=>false
);
end;
/
prompt --application/shared_components/user_interface/templates/region/collapsible
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585435226411301463)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!HTML#" class="t-Region t-Region--hideShow #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Region-header">',
' <div class="t-Region-headerItems t-Region-headerItems--controls"><button class="t-Button t-Button--icon t-Button--hideShow" type="button"></button></div>',
' <div class="t-Region-headerItems t-Region-headerItems--title">',
' <h2 class="t-Region-title" data-apex-heading>#TITLE#</h2>',
' </div>',
' <div class="t-Region-headerItems t-Region-headerItems--buttons">#EDIT#</div>',
' </div>',
' <div class="t-Region-bodyWrap">',
' <div class="t-Region-buttons t-Region-buttons--top">',
' <div class="t-Region-buttons-left">#CLOSE#</div>',
' <div class="t-Region-buttons-right">#CREATE#</div>',
' </div>',
' <div class="t-Region-body">',
' #COPY#',
' #BODY#',
' #SUB_REGIONS#',
' #CHANGE#',
' </div>',
' <div class="t-Region-buttons t-Region-buttons--bottom">',
' <div class="t-Region-buttons-left">#PREVIOUS#</div>',
' <div class="t-Region-buttons-right">#NEXT#</div>',
' </div>',
' </div>',
'</div>'))
,p_page_plug_template_name=>'Collapsible'
,p_internal_name=>'COLLAPSIBLE'
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>42
,p_theme_class_id=>1
,p_preset_template_options=>'is-expanded:t-Region--scrollBody'
,p_plug_heading_bgcolor=>'#ffffff'
,p_plug_font_size=>'-1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2662888092628347716
,p_translate_this_template=>'N'
,p_template_comment=>'Red Theme'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803608739620793867)
,p_plug_template_id=>wwv_flow_api.id(1585435226411301463)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803609210087793867)
,p_plug_template_id=>wwv_flow_api.id(1585435226411301463)
,p_name=>'Sub Regions'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/region/interactive_report
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585437916338301471)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# class="t-IRR-region #REGION_CSS_CLASSES#">',
' <h2 class="u-VisuallyHidden" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
'#PREVIOUS##BODY##SUB_REGIONS##NEXT#',
'</div>'))
,p_page_plug_template_name=>'Interactive Report'
,p_internal_name=>'INTERACTIVE_REPORT'
,p_theme_id=>42
,p_theme_class_id=>9
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2099079838218790610
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/region/login
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585438175786301473)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-Login-region t-Form--stretchInputs t-Form--labelsAbove #REGION_CSS_CLASSES#" id="#REGION_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Login-header">',
' <span class="t-Login-logo #ICON_CSS_CLASSES#"></span>',
' <h1 class="t-Login-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h1>',
' </div>',
' <div class="t-Login-body">#BODY#</div>',
' <div class="t-Login-buttons">#NEXT#</div>',
' <div class="t-Login-links">#EDIT##CREATE#</div>',
' <div class="t-Login-subRegions">#SUB_REGIONS#</div>',
'</div>'))
,p_page_plug_template_name=>'Login'
,p_internal_name=>'LOGIN'
,p_theme_id=>42
,p_theme_class_id=>23
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2672711194551076376
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803658182115793922)
,p_plug_template_id=>wwv_flow_api.id(1585438175786301473)
,p_name=>'Content Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/region/inline_dialog
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585438408870301474)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div id="#REGION_STATIC_ID#_parent">',
'<div id="#REGION_STATIC_ID#" class="t-DialogRegion #REGION_CSS_CLASSES# js-regionDialog" #REGION_ATTRIBUTES# style="display:none" title="#TITLE!ATTR#">',
' <div class="t-DialogRegion-wrap">',
' <div class="t-DialogRegion-bodyWrapperOut"><div class="t-DialogRegion-bodyWrapperIn"><div class="t-DialogRegion-body">#BODY#</div></div></div>',
' <div class="t-DialogRegion-buttons">',
' <div class="t-ButtonRegion t-ButtonRegion--dialogRegion">',
' <div class="t-ButtonRegion-wrap">',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--left"><div class="t-ButtonRegion-buttons">#PREVIOUS##DELETE##CLOSE#</div></div>',
' <div class="t-ButtonRegion-col t-ButtonRegion-col--right"><div class="t-ButtonRegion-buttons">#EDIT##CREATE##NEXT#</div></div>',
' </div>',
' </div>',
' </div>',
' </div>',
'</div>',
'</div>'))
,p_page_plug_template_name=>'Inline Dialog'
,p_internal_name=>'INLINE_DIALOG'
,p_theme_id=>42
,p_theme_class_id=>24
,p_default_template_options=>'js-modal:js-draggable:js-resizable'
,p_preset_template_options=>'js-dialog-size600x400'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2671226943886536762
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803644441940793908)
,p_plug_template_id=>wwv_flow_api.id(1585438408870301474)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/region/standard
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585439443339301476)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-Region #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Region-header">',
' <div class="t-Region-headerItems t-Region-headerItems--title">',
' <span class="t-Region-headerIcon"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidden="true"></span></span>',
' <h2 class="t-Region-title" id="#REGION_STATIC_ID#_heading" data-apex-heading>#TITLE#</h2>',
' </div>',
' <div class="t-Region-headerItems t-Region-headerItems--buttons">#COPY##EDIT#<span class="js-maximizeButtonContainer"></span></div>',
' </div>',
' <div class="t-Region-bodyWrap">',
' <div class="t-Region-buttons t-Region-buttons--top">',
' <div class="t-Region-buttons-left">#PREVIOUS#</div>',
' <div class="t-Region-buttons-right">#NEXT#</div>',
' </div>',
' <div class="t-Region-body">',
' #BODY#',
' #SUB_REGIONS#',
' </div>',
' <div class="t-Region-buttons t-Region-buttons--bottom">',
' <div class="t-Region-buttons-left">#CLOSE##HELP#</div>',
' <div class="t-Region-buttons-right">#DELETE##CHANGE##CREATE#</div>',
' </div>',
' </div>',
'</div>',
''))
,p_page_plug_template_name=>'Standard'
,p_internal_name=>'STANDARD'
,p_plug_table_bgcolor=>'#ffffff'
,p_theme_id=>42
,p_theme_class_id=>8
,p_preset_template_options=>'t-Region--scrollBody'
,p_plug_heading_bgcolor=>'#ffffff'
,p_plug_font_size=>'-1'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>4070912133526059312
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803661502966793926)
,p_plug_template_id=>wwv_flow_api.id(1585439443339301476)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803662015863793926)
,p_plug_template_id=>wwv_flow_api.id(1585439443339301476)
,p_name=>'Sub Regions'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>true
,p_glv_new_row=>true
,p_max_fixed_grid_columns=>12
);
end;
/
prompt --application/shared_components/user_interface/templates/region/title_bar
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585442034806301480)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# class="t-BreadcrumbRegion #REGION_CSS_CLASSES#"> ',
' <div class="t-BreadcrumbRegion-body">',
' <div class="t-BreadcrumbRegion-breadcrumb">#BODY#</div>',
' <div class="t-BreadcrumbRegion-title">',
' <h1 class="t-BreadcrumbRegion-titleText" data-apex-heading>#TITLE#</h1>',
' </div>',
' </div>',
' <div class="t-BreadcrumbRegion-buttons">#PREVIOUS##CLOSE##DELETE##HELP##CHANGE##EDIT##COPY##CREATE##NEXT#</div>',
'</div>'))
,p_page_plug_template_name=>'Title Bar'
,p_internal_name=>'TITLE_BAR'
,p_theme_id=>42
,p_theme_class_id=>6
,p_default_template_options=>'t-BreadcrumbRegion--showBreadcrumb'
,p_preset_template_options=>'t-BreadcrumbRegion--useBreadcrumbTitle'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2530016523834132090
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/region/wizard_container
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1585442755734301482)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div role="region" aria-label="#TITLE!ATTR#" class="t-Wizard #REGION_CSS_CLASSES#" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>',
' <div class="t-Wizard-header">',
' <h1 class="t-Wizard-title" data-apex-heading>#TITLE#</h1>',
' <div class="u-Table t-Wizard-controls">',
' <div class="u-Table-fit t-Wizard-buttons">#PREVIOUS##CLOSE#</div>',
' <div class="u-Table-fill t-Wizard-steps">#BODY#</div>',
' <div class="u-Table-fit t-Wizard-buttons">#NEXT#</div>',
' </div>',
' </div>',
' <div class="t-Wizard-body">#SUB_REGIONS#</div>',
'</div>'))
,p_page_plug_template_name=>'Wizard Container'
,p_internal_name=>'WIZARD_CONTAINER'
,p_theme_id=>42
,p_theme_class_id=>8
,p_preset_template_options=>'t-Wizard--hideStepsXSmall'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>2117602213152591491
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803688494682793952)
,p_plug_template_id=>wwv_flow_api.id(1585442755734301482)
,p_name=>'Wizard Sub Regions'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>true
,p_glv_new_row=>false
);
end;
/
prompt --application/shared_components/user_interface/templates/region/tabs_container
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1859014416279132744)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-TabsRegion #REGION_CSS_CLASSES# apex-tabs-region" #REGION_ATTRIBUTES# id="#REGION_STATIC_ID#">',
' #BODY#',
' <div class="t-TabsRegion-items">#SUB_REGIONS#</div>',
'</div>'))
,p_sub_plug_template=>'<div data-label="#SUB_REGION_TITLE#" id="SR_#SUB_REGION_ID#">#SUB_REGION#</div>'
,p_page_plug_template_name=>'Tabs Container'
,p_internal_name=>'TABS_CONTAINER'
,p_javascript_file_urls=>'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.apexTabs#MIN#.js?v=#APEX_VERSION#'
,p_theme_id=>42
,p_theme_class_id=>5
,p_preset_template_options=>'t-TabsRegion-mod--simple'
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>3221725015618492759
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803680794508793945)
,p_plug_template_id=>wwv_flow_api.id(1859014416279132744)
,p_name=>'Region Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>true
,p_glv_new_row=>true
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803681201143793945)
,p_plug_template_id=>wwv_flow_api.id(1859014416279132744)
,p_name=>'Tabs'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/region/blank_with_attributes_no_grid
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(1938840320926597754)
,p_layout=>'TABLE'
,p_template=>'<div id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# class="#REGION_CSS_CLASSES#">#PREVIOUS##BODY##SUB_REGIONS##NEXT#</div>'
,p_page_plug_template_name=>'Blank with Attributes (No Grid)'
,p_internal_name=>'BLANK_WITH_ATTRIBUTES_NO_GRID'
,p_theme_id=>42
,p_theme_class_id=>7
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_reference_id=>3369790999010910123
,p_translate_this_template=>'N'
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803583202665793840)
,p_plug_template_id=>wwv_flow_api.id(1938840320926597754)
,p_name=>'Body'
,p_placeholder=>'BODY'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
wwv_flow_api.create_plug_tmpl_display_point(
p_id=>wwv_flow_api.id(803583783958793841)
,p_plug_template_id=>wwv_flow_api.id(1938840320926597754)
,p_name=>'Sub Regions'
,p_placeholder=>'SUB_REGIONS'
,p_has_grid_support=>false
,p_glv_new_row=>true
);
end;
/
prompt --application/shared_components/user_interface/templates/region/div_region_with_id
begin
wwv_flow_api.create_plug_template(
p_id=>wwv_flow_api.id(3313947594340786756)
,p_layout=>'TABLE'
,p_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# class="#REGION_CSS_CLASSES#"> ',
'#BODY#',
'#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#',
'</div>'))
,p_page_plug_template_name=>'DIV Region with ID'
,p_internal_name=>'DIV_REGION_WITH_ID'
,p_theme_id=>101
,p_theme_class_id=>22
,p_default_label_alignment=>'RIGHT'
,p_default_field_alignment=>'LEFT'
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/list/top_navigation_tabs
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(30500763884665981)
,p_list_template_current=>'<li class="t-NavTabs-item #A03# is-active" id="#A01#"><a href="#LINK#" class="t-NavTabs-link #A04# " title="#TEXT_ESC_SC#"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidden="true"></span><span class="t-NavTabs-label">#TEXT_ESC_SC#</span><span class'
||'="t-NavTabs-badge #A05#">#A02#</span></a></li>'
,p_list_template_noncurrent=>'<li class="t-NavTabs-item #A03#" id="#A01#"><a href="#LINK#" class="t-NavTabs-link #A04# " title="#TEXT_ESC_SC#"><span class="t-Icon #ICON_CSS_CLASSES#" aria-hidden="true"></span><span class="t-NavTabs-label">#TEXT_ESC_SC#</span><span class="t-NavTab'
||'s-badge #A05#">#A02#</span></a></li>'
,p_list_template_name=>'Top Navigation Tabs'
,p_internal_name=>'TOP_NAVIGATION_TABS'
,p_theme_id=>42
,p_theme_class_id=>7
,p_preset_template_options=>'t-NavTabs--inlineLabels-lg:t-NavTabs--displayLabels-sm'
,p_list_template_before_rows=>'<ul class="t-NavTabs #COMPONENT_CSS_CLASSES#" id="#PARENT_STATIC_ID#_navtabs">'
,p_list_template_after_rows=>'</ul>'
,p_a01_label=>'List Item ID'
,p_a02_label=>'Badge Value'
,p_a03_label=>'List Item Class'
,p_a04_label=>'Link Class'
,p_a05_label=>'Badge Class'
,p_reference_id=>1453011561172885578
);
end;
/
prompt --application/shared_components/user_interface/templates/list/top_navigation_mega_menu
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(573279157754649621)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item t-MegaMenu-item--top t-MegaMenu-item--noSub is-active #A04#" data-current="true" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>',
'</li>'))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item t-MegaMenu-item--top t-MegaMenu-item--noSub #A04#" data-current="false" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>',
'</li>'))
,p_list_template_name=>'Top Navigation Mega Menu'
,p_internal_name=>'TOP_NAVIGATION_MEGA_MENU'
,p_theme_id=>42
,p_theme_class_id=>20
,p_list_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-MegaMenu #COMPONENT_CSS_CLASSES#" id="t_MenuNav" style="display:none;">',
' <div class="a-Menu-content t-MegaMenu-container">',
' <div class="t-MegaMenu-body">',
' <ul class="t-MegaMenu-list t-MegaMenu-list--top">'))
,p_list_template_after_rows=>' </ul></div></div></div>'
,p_before_sub_list=>'<ul class="t-MegaMenu-list t-MegaMenu-list--sub">'
,p_after_sub_list=>'</ul></li>'
,p_sub_list_item_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item is-active #A04#" data-current="true" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>',
'</li>'))
,p_sub_list_item_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item #A04#" data-current="false" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>',
'</li>'))
,p_item_templ_curr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item t-MegaMenu-item--top t-MegaMenu-item--hasSub is-active #A04#" data-current="true" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>'))
,p_item_templ_noncurr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item t-MegaMenu-item--top t-MegaMenu-item--hasSub #A04#" data-current="false" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>',
'</li>'))
,p_sub_templ_curr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item is-active #A04#" data-current="true" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>'))
,p_sub_templ_noncurr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MegaMenu-item #A04#" data-current="false" data-id="#A01#" data-shortcut="#A05#">',
' <span class="a-Menu-item t-MegaMenu-itemBody #A08#">',
' <span class="t-Icon #ICON_CSS_CLASSES#"></span>',
' <a class="a-Menu-label t-MegaMenu-labelWrap" href="#LINK#" target="#A06#">',
' <span class="t-MegaMenu-label">#TEXT_ESC_SC#</span>',
' <span class="t-MegaMenu-desc">#A03#</span>',
' </a>',
' <span class="t-MegaMenu-badge #A07#">#A02#</span>',
' </span>'))
,p_a01_label=>'ID Attribute'
,p_a02_label=>'Badge Value'
,p_a03_label=>'Description'
,p_a04_label=>'List Item Class'
,p_a05_label=>'Shortcut Key'
,p_a06_label=>'Link Target'
,p_a07_label=>'Badge Class'
,p_a08_label=>'Menu Item Class'
,p_reference_id=>1665447133514362075
);
end;
/
prompt --application/shared_components/user_interface/templates/list/badge_list
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585452209611301508)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-BadgeList-item #A02#">',
' <a class="t-BadgeList-wrap u-color #A04#" href="#LINK#" #A03#>',
' <span class="t-BadgeList-label">#TEXT#</span>',
' <span class="t-BadgeList-value">#A01#</span>',
' </a>',
'</li>'))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-BadgeList-item #A02#">',
' <a class="t-BadgeList-wrap u-color #A04#" href="#LINK#" #A03#>',
' <span class="t-BadgeList-label">#TEXT#</span>',
' <span class="t-BadgeList-value">#A01#</span>',
' </a>',
'</li>'))
,p_list_template_name=>'Badge List'
,p_internal_name=>'BADGE_LIST'
,p_theme_id=>42
,p_theme_class_id=>3
,p_preset_template_options=>'t-BadgeList--large:t-BadgeList--cols t-BadgeList--3cols:t-BadgeList--circular'
,p_list_template_before_rows=>'<ul class="t-BadgeList #COMPONENT_CSS_CLASSES#">'
,p_list_template_after_rows=>'</ul>'
,p_a01_label=>'Value'
,p_a02_label=>'List item CSS Classes'
,p_a03_label=>'Link Attributes'
,p_a04_label=>'Link Classes'
,p_reference_id=>2062482847268086664
,p_list_template_comment=>wwv_flow_string.join(wwv_flow_t_varchar2(
'A01: Large Number',
'A02: List Item Classes',
'A03: Link Attributes'))
);
end;
/
prompt --application/shared_components/user_interface/templates/list/cards
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585454233264301512)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Cards-item is-active #A04#">',
' <div class="t-Card">',
' <a href="#LINK#" class="t-Card-wrap" #A05#>',
' <div class="t-Card-icon u-color #A06#"><span class="t-Icon #ICON_CSS_CLASSES#"><span class="t-Card-initials" role="presentation">#A03#</span></span></div>',
' <div class="t-Card-titleWrap"><h3 class="t-Card-title">#TEXT#</h3><h4 class="t-Card-subtitle">#A07#</h4></div>',
' <div class="t-Card-body">',
' <div class="t-Card-desc">#A01#</div>',
' <div class="t-Card-info">#A02#</div>',
' </div>',
' <span class="t-Card-colorFill u-color #A06#"></span>',
' </a>',
' </div>',
'</li>'))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Cards-item #A04#">',
' <div class="t-Card">',
' <a href="#LINK#" class="t-Card-wrap" #A05#>',
' <div class="t-Card-icon u-color #A06#"><span class="t-Icon #ICON_CSS_CLASSES#"><span class="t-Card-initials" role="presentation">#A03#</span></span></div>',
' <div class="t-Card-titleWrap"><h3 class="t-Card-title">#TEXT#</h3><h4 class="t-Card-subtitle">#A07#</h4></div>',
' <div class="t-Card-body">',
' <div class="t-Card-desc">#A01#</div>',
' <div class="t-Card-info">#A02#</div>',
' </div>',
' <span class="t-Card-colorFill u-color #A06#"></span>',
' </a>',
' </div>',
'</li>'))
,p_list_template_name=>'Cards'
,p_internal_name=>'CARDS'
,p_theme_id=>42
,p_theme_class_id=>4
,p_preset_template_options=>'t-Cards--animColorFill:t-Cards--3cols:t-Cards--basic'
,p_list_template_before_rows=>'<ul class="t-Cards #COMPONENT_CSS_CLASSES#">'
,p_list_template_after_rows=>'</ul>'
,p_a01_label=>'Description'
,p_a02_label=>'Secondary Information'
,p_a03_label=>'Initials'
,p_a04_label=>'List Item CSS Classes'
,p_a05_label=>'Link Attributes'
,p_a06_label=>'Card Color Class'
,p_a07_label=>'Subtitle'
,p_reference_id=>2885322685880632508
);
end;
/
prompt --application/shared_components/user_interface/templates/list/links_list
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585456650815301517)
,p_list_template_current=>'<li class="t-LinksList-item is-current #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t-LinksList-b'
||'adge">#A01#</span></a></li>'
,p_list_template_noncurrent=>'<li class="t-LinksList-item #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t-LinksList-badge">#A01#'
||'</span></a></li>'
,p_list_template_name=>'Links List'
,p_internal_name=>'LINKS_LIST'
,p_theme_id=>42
,p_theme_class_id=>18
,p_list_template_before_rows=>'<ul class="t-LinksList #COMPONENT_CSS_CLASSES#" id="#LIST_ID#">'
,p_list_template_after_rows=>'</ul>'
,p_before_sub_list=>'<ul class="t-LinksList-list">'
,p_after_sub_list=>'</ul>'
,p_sub_list_item_current=>'<li class="t-LinksList-item is-current #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t-LinksList-b'
||'adge">#A01#</span></a></li>'
,p_sub_list_item_noncurrent=>'<li class="t-LinksList-item #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t-LinksList-badge">#A01#'
||'</span></a></li>'
,p_item_templ_curr_w_child=>'<li class="t-LinksList-item is-current is-expanded #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t'
||'-LinksList-badge">#A01#</span></a>#SUB_LISTS#</li>'
,p_item_templ_noncurr_w_child=>'<li class="t-LinksList-item #A03#"><a href="#LINK#" class="t-LinksList-link" #A02#><span class="t-LinksList-icon"><span class="t-Icon #ICON_CSS_CLASSES#"></span></span><span class="t-LinksList-label">#TEXT#</span><span class="t-LinksList-badge">#A01#'
||'</span></a></li>'
,p_a01_label=>'Badge Value'
,p_a02_label=>'Link Attributes'
,p_a03_label=>'List Item CSS Classes'
,p_reference_id=>4070914341144059318
);
end;
/
prompt --application/shared_components/user_interface/templates/list/media_list
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585457829790301522)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MediaList-item is-active #A04#">',
' <a href="#LINK#" class="t-MediaList-itemWrap #A05#" #A03#>',
' <div class="t-MediaList-iconWrap">',
' <span class="t-MediaList-icon u-color #A06#"><span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span></span>',
' </div>',
' <div class="t-MediaList-body">',
' <h3 class="t-MediaList-title">#TEXT#</h3>',
' <p class="t-MediaList-desc">#A01#</p>',
' </div>',
' <div class="t-MediaList-badgeWrap">',
' <span class="t-MediaList-badge">#A02#</span>',
' </div>',
' </a>',
'</li>'))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MediaList-item #A04#">',
' <a href="#LINK#" class="t-MediaList-itemWrap #A05#" #A03#>',
' <div class="t-MediaList-iconWrap">',
' <span class="t-MediaList-icon u-color #A06#"><span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span></span>',
' </div>',
' <div class="t-MediaList-body">',
' <h3 class="t-MediaList-title">#TEXT#</h3>',
' <p class="t-MediaList-desc">#A01#</p>',
' </div>',
' <div class="t-MediaList-badgeWrap">',
' <span class="t-MediaList-badge">#A02#</span>',
' </div>',
' </a>',
'</li>'))
,p_list_template_name=>'Media List'
,p_internal_name=>'MEDIA_LIST'
,p_theme_id=>42
,p_theme_class_id=>5
,p_default_template_options=>'t-MediaList--showIcons:t-MediaList--showDesc'
,p_list_template_before_rows=>'<ul class="t-MediaList #COMPONENT_CSS_CLASSES#">'
,p_list_template_after_rows=>'</ul>'
,p_a01_label=>'Description'
,p_a02_label=>'Badge Value'
,p_a03_label=>'Link Attributes'
,p_a04_label=>'List Item CSS Classes'
,p_a05_label=>'Link Class'
,p_a06_label=>'Icon Color Class'
,p_reference_id=>2066548068783481421
);
end;
/
prompt --application/shared_components/user_interface/templates/list/menu_bar
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585459511629301525)
,p_list_template_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_name=>'Menu Bar'
,p_internal_name=>'MENU_BAR'
,p_javascript_code_onload=>wwv_flow_string.join(wwv_flow_t_varchar2(
'var e = apex.jQuery("##PARENT_STATIC_ID#_menubar", apex.gPageContext$);',
'if (e.hasClass("js-addActions")) {',
' apex.actions.addFromMarkup( e );',
'}',
'e.menu({',
' behaveLikeTabs: e.hasClass("js-tabLike"),',
' menubarShowSubMenuIcon: e.hasClass("js-showSubMenuIcons") || null,',
' iconType: ''fa'',',
' menubar: true,',
' menubarOverflow: true,',
' callout: e.hasClass("js-menu-callout")',
'});'))
,p_theme_id=>42
,p_theme_class_id=>20
,p_default_template_options=>'js-showSubMenuIcons'
,p_list_template_before_rows=>'<div class="t-MenuBar #COMPONENT_CSS_CLASSES#" id="#PARENT_STATIC_ID#_menubar"><ul style="display:none">'
,p_list_template_after_rows=>'</ul></div>'
,p_before_sub_list=>'<ul>'
,p_after_sub_list=>'</ul></li>'
,p_sub_list_item_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_sub_list_item_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_item_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_item_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_a01_label=>'Menu Item ID / Action Name'
,p_a02_label=>'Disabled (True/False)'
,p_a03_label=>'Hidden (True/False)'
,p_a04_label=>'Title Attribute (Used By Actions Only)'
,p_a05_label=>'Shortcut'
,p_a06_label=>'Link Target'
,p_reference_id=>2008709236185638887
);
end;
/
prompt --application/shared_components/user_interface/templates/list/top_navigation_menu
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585459740338301526)
,p_list_template_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_name=>'Top Navigation Menu'
,p_internal_name=>'TOP_NAVIGATION_MENU'
,p_javascript_code_onload=>wwv_flow_string.join(wwv_flow_t_varchar2(
'var e = apex.jQuery("#t_MenuNav", apex.gPageContext$);',
'if (e.hasClass("js-addActions")) {',
' apex.actions.addFromMarkup( e );',
'}',
'e.menu({',
' behaveLikeTabs: e.hasClass("js-tabLike"),',
' menubarShowSubMenuIcon: e.hasClass("js-showSubMenuIcons") || null,',
' menubar: true,',
' menubarOverflow: true,',
' callout: e.hasClass("js-menu-callout")',
'});',
''))
,p_theme_id=>42
,p_theme_class_id=>20
,p_default_template_options=>'js-tabLike'
,p_list_template_before_rows=>'<div class="t-Header-nav-list #COMPONENT_CSS_CLASSES#" id="t_MenuNav"><ul style="display:none">'
,p_list_template_after_rows=>'</ul></div>'
,p_before_sub_list=>'<ul>'
,p_after_sub_list=>'</ul></li>'
,p_sub_list_item_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_sub_list_item_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_item_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_item_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_a01_label=>'Menu Item ID / Action Name'
,p_a02_label=>'Disabled (True/False)'
,p_a03_label=>'Hidden (True/False)'
,p_a04_label=>'Title Attribute (Used By Actions Only)'
,p_a05_label=>'Shortcut Key'
,p_a06_label=>'Link Target'
,p_reference_id=>2525307901300239072
);
end;
/
prompt --application/shared_components/user_interface/templates/list/navigation_bar
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585460352336301527)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item is-active #A02#">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#" title="#A04#">',
' <span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span><span class="t-Button-label">#TEXT_ESC_SC#</span><span class="t-Button-badge">#A01#</span>',
' </a>',
'</li>'))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item #A02#">',
' <a class="t-Button t-Button--icon t-Button--header t-Button--navBar" href="#LINK#" title="#A04#">',
' <span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span><span class="t-Button-label">#TEXT_ESC_SC#</span><span class="t-Button-badge">#A01#</span>',
' </a>',
'</li>'))
,p_list_template_name=>'Navigation Bar'
,p_internal_name=>'NAVIGATION_BAR'
,p_theme_id=>42
,p_theme_class_id=>20
,p_list_template_before_rows=>'<ul class="t-NavigationBar #COMPONENT_CSS_CLASSES#" id="#LIST_ID#">'
,p_list_template_after_rows=>'</ul>'
,p_before_sub_list=>'<div class="t-NavigationBar-menu" style="display: none" id="menu_#PARENT_LIST_ITEM_ID#"><ul>'
,p_after_sub_list=>'</ul></div></li>'
,p_sub_list_item_current=>'<li data-current="true" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#">#TEXT_ESC_SC#</a></li>'
,p_sub_list_item_noncurrent=>'<li data-current="false" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#">#TEXT_ESC_SC#</a></li>'
,p_item_templ_curr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item is-active #A02#">',
' <button class="t-Button t-Button--icon t-Button t-Button--header t-Button--navBar js-menuButton" type="button" id="#LIST_ITEM_ID#" data-menu="menu_#LIST_ITEM_ID#" title="#A04#">',
' <span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span><span class="t-Button-label">#TEXT_ESC_SC#</span><span class="t-Button-badge">#A01#</span><span class="a-Icon icon-down-arrow"></span>',
' </button>'))
,p_item_templ_noncurr_w_child=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-NavigationBar-item #A02#">',
' <button class="t-Button t-Button--icon t-Button t-Button--header t-Button--navBar js-menuButton" type="button" id="#LIST_ITEM_ID#" data-menu="menu_#LIST_ITEM_ID#" title="#A04#">',
' <span class="t-Icon #ICON_CSS_CLASSES#" #IMAGE_ATTR#></span><span class="t-Button-label">#TEXT_ESC_SC#</span><span class="t-Button-badge">#A01#</span><span class="a-Icon icon-down-arrow"></span>',
' </button>'))
,p_sub_templ_curr_w_child=>'<li data-current="true" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#">#TEXT_ESC_SC#</a></li>'
,p_sub_templ_noncurr_w_child=>'<li data-current="false" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#">#TEXT_ESC_SC#</a></li>'
,p_a01_label=>'Badge Value'
,p_a02_label=>'List Item CSS Classes'
,p_a04_label=>'Title Attribute'
,p_reference_id=>2846096252961119197
);
end;
/
prompt --application/shared_components/user_interface/templates/list/side_navigation_menu
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585460520240301529)
,p_list_template_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_list_template_name=>'Side Navigation Menu'
,p_internal_name=>'SIDE_NAVIGATION_MENU'
,p_javascript_file_urls=>'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.treeView#MIN#.js?v=#APEX_VERSION#'
,p_javascript_code_onload=>'apex.jQuery(''body'').addClass(''t-PageBody--leftNav'');'
,p_theme_id=>42
,p_theme_class_id=>19
,p_default_template_options=>'js-defaultCollapsed'
,p_preset_template_options=>'js-navCollapsed--hidden:t-TreeNav--styleA'
,p_list_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Body-nav" id="t_Body_nav" role="navigation" aria-label="&APP_TITLE!ATTR.">',
'<div class="t-TreeNav #COMPONENT_CSS_CLASSES#" id="t_TreeNav" data-id="#PARENT_STATIC_ID#_tree" aria-label="&APP_TITLE!ATTR."><ul style="display:none">'))
,p_list_template_after_rows=>'</ul></div></div>'
,p_before_sub_list=>'<ul>'
,p_after_sub_list=>'</ul></li>'
,p_sub_list_item_current=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_sub_list_item_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_item_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_item_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_curr_w_child=>'<li data-current="true" data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-icon="#ICON_CSS_CLASSES#" data-shortcut="#A05#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_a01_label=>'ID Attribute'
,p_a02_label=>'Disabled (True/False)'
,p_a04_label=>'Title Attribute (Used By Actions Only)'
,p_a05_label=>'Shortcut Key'
,p_a06_label=>'Link Target'
,p_reference_id=>2466292414354694776
);
end;
/
prompt --application/shared_components/user_interface/templates/list/wizard_progress
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1585460733020301531)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-WizardSteps-step is-active" id="#LIST_ITEM_ID#"><div class="t-WizardSteps-wrap" data-link="#LINK#"><span class="t-WizardSteps-marker"></span><span class="t-WizardSteps-label">#TEXT# <span class="t-WizardSteps-labelState"></span></span></'
||'div></li>',
''))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-WizardSteps-step" id="#LIST_ITEM_ID#"><div class="t-WizardSteps-wrap" data-link="#LINK#"><span class="t-WizardSteps-marker"></span><span class="t-WizardSteps-label">#TEXT# <span class="t-WizardSteps-labelState"></span></span></div></li>',
''))
,p_list_template_name=>'Wizard Progress'
,p_internal_name=>'WIZARD_PROGRESS'
,p_javascript_code_onload=>'apex.theme.initWizardProgressBar();'
,p_theme_id=>42
,p_theme_class_id=>17
,p_preset_template_options=>'t-WizardSteps--displayLabels'
,p_list_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<h2 class="u-VisuallyHidden">#CURRENT_PROGRESS#</h2>',
'<ul class="t-WizardSteps #COMPONENT_CSS_CLASSES#" id="#LIST_ID#">'))
,p_list_template_after_rows=>'</ul>'
,p_reference_id=>2008702338707394488
);
end;
/
prompt --application/shared_components/user_interface/templates/list/tabs
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(1859045514986132845)
,p_list_template_current=>'<li class="t-Tabs-item is-active #A03#" id="#A01#"><a href="#LINK#" class="t-Tabs-link #A04#"><span class="t-Icon #ICON_CSS_CLASSES#"></span><span class="t-Tabs-label">#TEXT#</span></a></li>'
,p_list_template_noncurrent=>'<li class="t-Tabs-item #A03#" id="#A01#"><a href="#LINK#" class="t-Tabs-link #A04#"><span class="t-Icon #ICON_CSS_CLASSES#"></span><span class="t-Tabs-label">#TEXT#</span></a></li>'
,p_list_template_name=>'Tabs'
,p_internal_name=>'TABS'
,p_javascript_file_urls=>'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.apexTabs#MIN#.js?v=#APEX_VERSION#'
,p_theme_id=>42
,p_theme_class_id=>7
,p_preset_template_options=>'t-Tabs--simple'
,p_list_template_before_rows=>'<ul class="t-Tabs #COMPONENT_CSS_CLASSES#">'
,p_list_template_after_rows=>'</ul>'
,p_a01_label=>'List Item ID'
,p_a03_label=>'List Item Class'
,p_a04_label=>'Link Class'
,p_reference_id=>3288206686691809997
);
end;
/
prompt --application/shared_components/user_interface/templates/list/menu_popup
begin
wwv_flow_api.create_list_template(
p_id=>wwv_flow_api.id(2145218821934365172)
,p_list_template_current=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>',
''))
,p_list_template_noncurrent=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>',
''))
,p_list_template_name=>'Menu Popup'
,p_internal_name=>'MENU_POPUP'
,p_javascript_code_onload=>wwv_flow_string.join(wwv_flow_t_varchar2(
'var e = apex.jQuery("##PARENT_STATIC_ID#_menu", apex.gPageContext$);',
'if (e.hasClass("js-addActions")) {',
' apex.actions.addFromMarkup( e );',
'}',
'e.menu({ iconType: ''fa'', callout: e.hasClass("js-menu-callout")});'))
,p_theme_id=>42
,p_theme_class_id=>20
,p_list_template_before_rows=>'<div id="#PARENT_STATIC_ID#_menu" class="#COMPONENT_CSS_CLASSES#" style="display:none;"><ul>'
,p_list_template_after_rows=>'</ul></div>'
,p_before_sub_list=>'<ul>'
,p_after_sub_list=>'</ul></li>'
,p_sub_list_item_current=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_sub_list_item_noncurrent=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a></li>'
,p_item_templ_curr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_item_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_curr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_sub_templ_noncurr_w_child=>'<li data-id="#A01#" data-disabled="#A02#" data-hide="#A03#" data-shortcut="#A05#" data-icon="#ICON_CSS_CLASSES#"><a href="#LINK#" title="#A04#" target="#A06#">#TEXT_ESC_SC#</a>'
,p_a01_label=>'Menu Item ID / Action Name'
,p_a02_label=>'Disabled (True/False)'
,p_a03_label=>'Hidden (True/False)'
,p_a04_label=>'Title Attribute (Used By Actions Only)'
,p_a05_label=>'Shortcut'
,p_a06_label=>'Link Target'
,p_reference_id=>3492264004432431646
);
end;
/
prompt --application/shared_components/user_interface/templates/report/media_list
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(30540929466666010)
,p_row_template_name=>'Media List'
,p_internal_name=>'MEDIA_LIST'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MediaList-item #LIST_CLASS#">',
' <a href="#LINK#" class="t-MediaList-itemWrap #LINK_CLASS#" #LINK_ATTR#>',
' <div class="t-MediaList-iconWrap">',
' <span class="t-MediaList-icon u-color #ICON_COLOR_CLASS#"><span class="t-Icon #ICON_CLASS#"></span></span>',
' </div>',
' <div class="t-MediaList-body">',
' <h3 class="t-MediaList-title">#LIST_TITLE#</h3>',
' <p class="t-MediaList-desc">#LIST_TEXT#</p>',
' </div>',
' <div class="t-MediaList-badgeWrap">',
' <span class="t-MediaList-badge">#LIST_BADGE#</span>',
' </div>',
' </a>',
'</li>'))
,p_row_template_condition1=>':LINK is not null'
,p_row_template2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-MediaList-item #LIST_CLASS#">',
' <div class="t-MediaList-itemWrap #LINK_CLASS#" #LINK_ATTR#>',
' <div class="t-MediaList-iconWrap">',
' <span class="t-MediaList-icon u-color #ICON_COLOR_CLASS#"><span class="t-Icon #ICON_CLASS#"></span></span>',
' </div>',
' <div class="t-MediaList-body">',
' <h3 class="t-MediaList-title">#LIST_TITLE#</h3>',
' <p class="t-MediaList-desc">#LIST_TEXT#</p>',
' </div>',
' <div class="t-MediaList-badgeWrap">',
' <span class="t-MediaList-badge">#LIST_BADGE#</span>',
' </div>',
' </div>',
'</li>'))
,p_row_template_before_rows=>'<ul class="t-MediaList #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_report" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'NOT_CONDITIONAL'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'NOT_CONDITIONAL'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>1
,p_default_template_options=>'t-MediaList--showDesc:t-MediaList--showIcons'
,p_preset_template_options=>'t-MediaList--stack'
,p_reference_id=>2092157460408299055
,p_translate_this_template=>'N'
,p_row_template_comment=>' (SELECT link_text, link_target, detail1, detail2, last_modified)'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/timeline
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(182460546567151557)
,p_row_template_name=>'Timeline'
,p_internal_name=>'TIMELINE'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Timeline-item #EVENT_MODIFIERS#" #EVENT_ATTRIBUTES#>',
' <div class="t-Timeline-wrap">',
' <div class="t-Timeline-user">',
' <div class="t-Timeline-avatar #USER_COLOR#">',
' #USER_AVATAR#',
' </div>',
' <div class="t-Timeline-userinfo">',
' <span class="t-Timeline-username">#USER_NAME#</span>',
' <span class="t-Timeline-date">#EVENT_DATE#</span>',
' </div>',
' </div>',
' <div class="t-Timeline-content">',
' <div class="t-Timeline-typeWrap">',
' <div class="t-Timeline-type #EVENT_STATUS#">',
' <span class="t-Icon #EVENT_ICON#"></span>',
' <span class="t-Timeline-typename">#EVENT_TYPE#</span>',
' </div>',
' </div>',
' <div class="t-Timeline-body">',
' <h3 class="t-Timeline-title">#EVENT_TITLE#</h3>',
' <p class="t-Timeline-desc">#EVENT_DESC#</p>',
' </div>',
' </div>',
' </div>',
'</li>'))
,p_row_template_condition1=>':EVENT_LINK is null'
,p_row_template2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Timeline-item #EVENT_MODIFIERS#" #EVENT_ATTRIBUTES#>',
' <a href="#EVENT_LINK#" class="t-Timeline-wrap">',
' <div class="t-Timeline-user">',
' <div class="t-Timeline-avatar #USER_COLOR#">',
' #USER_AVATAR#',
' </div>',
' <div class="t-Timeline-userinfo">',
' <span class="t-Timeline-username">#USER_NAME#</span>',
' <span class="t-Timeline-date">#EVENT_DATE#</span>',
' </div>',
' </div>',
' <div class="t-Timeline-content">',
' <div class="t-Timeline-typeWrap">',
' <div class="t-Timeline-type #EVENT_STATUS#">',
' <span class="t-Icon #EVENT_ICON#"></span>',
' <span class="t-Timeline-typename">#EVENT_TYPE#</span>',
' </div>',
' </div>',
' <div class="t-Timeline-body">',
' <h3 class="t-Timeline-title">#EVENT_TITLE#</h3>',
' <p class="t-Timeline-desc">#EVENT_DESC#</p>',
' </div>',
' </div>',
' </a>',
'</li>'))
,p_row_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<ul class="t-Timeline #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_timeline" data-region-id="#REGION_STATIC_ID#">',
''))
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'NOT_CONDITIONAL'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'NOT_CONDITIONAL'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>7
,p_reference_id=>1513373588340069864
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/content_row
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(619286465090565354)
,p_row_template_name=>'Content Row'
,p_internal_name=>'CONTENT_ROW'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-ContentRow-item #ITEM_CLASSES#">',
' <div class="t-ContentRow-wrap">',
' <div class="t-ContentRow-selection">#SELECTION#</div>',
' <div class="t-ContentRow-iconWrap">',
' <span class="t-ContentRow-icon #ICON_CLASS#">#ICON_HTML#</span>',
' </div>',
' <div class="t-ContentRow-body">',
' <div class="t-ContentRow-content">',
' <h3 class="t-ContentRow-title">#TITLE#</h3>',
' <div class="t-ContentRow-description">#DESCRIPTION#</div>',
' </div>',
' <div class="t-ContentRow-misc">#MISC#</div>',
' <div class="t-ContentRow-actions">#ACTIONS#</div>',
' </div>',
' </div>',
'</li>'))
,p_row_template_before_rows=>'<ul class="t-ContentRow #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_report" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>4
,p_reference_id=>1797843454948280151
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/contextual_info
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(803800641838794051)
,p_row_template_name=>'Contextual Info'
,p_internal_name=>'CONTEXTUAL_INFO'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ContextualInfo-item">',
' <span class="t-ContextualInfo-label">#COLUMN_HEADER#</span>',
' <span class="t-ContextualInfo-value">#COLUMN_VALUE#</span>',
'</div>'))
,p_row_template_before_rows=>' <div class="t-ContextualInfo #COMPONENT_CSS_CLASSES#" id="report_#REGION_STATIC_ID#" #REPORT_ATTRIBUTES# data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</div>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'GENERIC_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>6
,p_reference_id=>2114325881116323585
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/alerts
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585443560848301484)
,p_row_template_name=>'Alerts'
,p_internal_name=>'ALERTS'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Alert t-Alert--horizontal t-Alert--colorBG t-Alert--defaultIcons t-Alert--#ALERT_TYPE#" role="alert">',
' <div class="t-Alert-wrap">',
' <div class="t-Alert-icon">',
' <span class="t-Icon"></span>',
' </div>',
' <div class="t-Alert-content">',
' <div class="t-Alert-header">',
' <h2 class="t-Alert-title">#ALERT_TITLE#</h2>',
' </div>',
' <div class="t-Alert-body">',
' #ALERT_DESC#',
' </div>',
' </div>',
' <div class="t-Alert-buttons">',
' #ALERT_ACTION#',
' </div>',
' </div>',
'</div>'))
,p_row_template_before_rows=>'<div class="t-Alerts #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_alerts" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</div>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>14
,p_reference_id=>2881456138952347027
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/badge_list
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585443687402301486)
,p_row_template_name=>'Badge List'
,p_internal_name=>'BADGE_LIST'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-BadgeList-item">',
' <span class="t-BadgeList-wrap u-color">',
' <span class="t-BadgeList-label">#COLUMN_HEADER#</span>',
' <span class="t-BadgeList-value">#COLUMN_VALUE#</span>',
' </span>',
'</li>'))
,p_row_template_before_rows=>'<ul class="t-BadgeList #COMPONENT_CSS_CLASSES#" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'GENERIC_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>6
,p_preset_template_options=>'t-BadgeList--large:t-BadgeList--fixed:t-BadgeList--circular'
,p_reference_id=>2103197159775914759
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/cards
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585445965928301492)
,p_row_template_name=>'Cards'
,p_internal_name=>'CARDS'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Cards-item #CARD_MODIFIERS#">',
' <div class="t-Card">',
' <a href="#CARD_LINK#" class="t-Card-wrap">',
' <div class="t-Card-icon u-color #CARD_COLOR#"><span class="t-Icon fa #CARD_ICON#"><span class="t-Card-initials" role="presentation">#CARD_INITIALS#</span></span></div>',
' <div class="t-Card-titleWrap"><h3 class="t-Card-title">#CARD_TITLE#</h3><h4 class="t-Card-subtitle">#CARD_SUBTITLE#</h4></div>',
' <div class="t-Card-body">',
' <div class="t-Card-desc">#CARD_TEXT#</div>',
' <div class="t-Card-info">#CARD_SUBTEXT#</div>',
' </div>',
' <span class="t-Card-colorFill u-color #CARD_COLOR#"></span>',
' </a>',
' </div>',
'</li>'))
,p_row_template_condition1=>':CARD_LINK is not null'
,p_row_template2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Cards-item #CARD_MODIFIERS#">',
' <div class="t-Card">',
' <div class="t-Card-wrap">',
' <div class="t-Card-icon u-color #CARD_COLOR#"><span class="t-Icon fa #CARD_ICON#"><span class="t-Card-initials" role="presentation">#CARD_INITIALS#</span></span></div>',
' <div class="t-Card-titleWrap"><h3 class="t-Card-title">#CARD_TITLE#</h3><h4 class="t-Card-subtitle">#CARD_SUBTITLE#</h4></div>',
' <div class="t-Card-body">',
' <div class="t-Card-desc">#CARD_TEXT#</div>',
' <div class="t-Card-info">#CARD_SUBTEXT#</div>',
' </div>',
' <span class="t-Card-colorFill u-color #CARD_COLOR#"></span>',
' </div>',
' </div>',
'</li>'))
,p_row_template_before_rows=>'<ul class="t-Cards #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_cards" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'NOT_CONDITIONAL'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'NOT_CONDITIONAL'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>7
,p_preset_template_options=>'t-Cards--animColorFill:t-Cards--3cols:t-Cards--basic'
,p_reference_id=>2973535649510699732
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/comments
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585448283114301496)
,p_row_template_name=>'Comments'
,p_internal_name=>'COMMENTS'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<li class="t-Comments-item #COMMENT_MODIFIERS#">',
' <div class="t-Comments-icon">',
' <div class="t-Comments-userIcon #ICON_MODIFIER#" aria-hidden="true">#USER_ICON#</div>',
' </div>',
' <div class="t-Comments-body">',
' <div class="t-Comments-info">',
' #USER_NAME# <span class="t-Comments-date">#COMMENT_DATE#</span> <span class="t-Comments-actions">#ACTIONS#</span>',
' </div>',
' <div class="t-Comments-comment">',
' #COMMENT_TEXT##ATTRIBUTE_1##ATTRIBUTE_2##ATTRIBUTE_3##ATTRIBUTE_4#',
' </div>',
' </div>',
'</li>'))
,p_row_template_before_rows=>'<ul class="t-Comments #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_report" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'NOT_CONDITIONAL'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>',
''))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>7
,p_preset_template_options=>'t-Comments--chat'
,p_reference_id=>2611722012730764232
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/search_results
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585448896989301499)
,p_row_template_name=>'Search Results'
,p_internal_name=>'SEARCH_RESULTS'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-SearchResults-item">',
' <h3 class="t-SearchResults-title"><a href="#SEARCH_LINK#">#SEARCH_TITLE#</a></h3>',
' <div class="t-SearchResults-info">',
' <p class="t-SearchResults-desc">#SEARCH_DESC#</p>',
' <span class="t-SearchResults-misc">#LABEL_01#: #VALUE_01#</span>',
' </div>',
' </li>'))
,p_row_template_condition1=>':LABEL_02 is null'
,p_row_template2=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-SearchResults-item">',
' <h3 class="t-SearchResults-title"><a href="#SEARCH_LINK#">#SEARCH_TITLE#</a></h3>',
' <div class="t-SearchResults-info">',
' <p class="t-SearchResults-desc">#SEARCH_DESC#</p>',
' <span class="t-SearchResults-misc">#LABEL_01#: #VALUE_01#</span>',
' <span class="t-SearchResults-misc">#LABEL_02#: #VALUE_02#</span>',
' </div>',
' </li>'))
,p_row_template_condition2=>':LABEL_03 is null'
,p_row_template3=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-SearchResults-item">',
' <h3 class="t-SearchResults-title"><a href="#SEARCH_LINK#">#SEARCH_TITLE#</a></h3>',
' <div class="t-SearchResults-info">',
' <p class="t-SearchResults-desc">#SEARCH_DESC#</p>',
' <span class="t-SearchResults-misc">#LABEL_01#: #VALUE_01#</span>',
' <span class="t-SearchResults-misc">#LABEL_02#: #VALUE_02#</span>',
' <span class="t-SearchResults-misc">#LABEL_03#: #VALUE_03#</span>',
' </div>',
' </li>'))
,p_row_template_condition3=>':LABEL_04 is null'
,p_row_template4=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-SearchResults-item">',
' <h3 class="t-SearchResults-title"><a href="#SEARCH_LINK#">#SEARCH_TITLE#</a></h3>',
' <div class="t-SearchResults-info">',
' <p class="t-SearchResults-desc">#SEARCH_DESC#</p>',
' <span class="t-SearchResults-misc">#LABEL_01#: #VALUE_01#</span>',
' <span class="t-SearchResults-misc">#LABEL_02#: #VALUE_02#</span>',
' <span class="t-SearchResults-misc">#LABEL_03#: #VALUE_03#</span>',
' <span class="t-SearchResults-misc">#LABEL_04#: #VALUE_04#</span>',
' </div>',
' </li>'))
,p_row_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-SearchResults #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="#REGION_STATIC_ID#_report" data-region-id="#REGION_STATIC_ID#">',
'<ul class="t-SearchResults-list">'))
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</ul>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>',
'</div>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'NOT_CONDITIONAL'
,p_row_template_display_cond2=>'NOT_CONDITIONAL'
,p_row_template_display_cond3=>'NOT_CONDITIONAL'
,p_row_template_display_cond4=>'NOT_CONDITIONAL'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>1
,p_reference_id=>4070913431524059316
,p_translate_this_template=>'N'
,p_row_template_comment=>' (SELECT link_text, link_target, detail1, detail2, last_modified)'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/standard
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585449137516301501)
,p_row_template_name=>'Standard'
,p_internal_name=>'STANDARD'
,p_row_template1=>'<td class="t-Report-cell" #ALIGNMENT# headers="#COLUMN_HEADER_NAME#">#COLUMN_VALUE#</td>'
,p_row_template_before_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Report #COMPONENT_CSS_CLASSES#" id="report_#REGION_STATIC_ID#" #REPORT_ATTRIBUTES# data-region-id="#REGION_STATIC_ID#">',
' <div class="t-Report-wrap">',
' <table class="t-Report-pagination" role="presentation">#TOP_PAGINATION#</table>',
' <div class="t-Report-tableWrap">',
' <table class="t-Report-report" id="report_table_#REGION_STATIC_ID#" aria-label="#REGION_TITLE#">'))
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
' </tbody>',
' </table>',
' </div>',
' <div class="t-Report-links">#EXTERNAL_LINK##CSV_LINK#</div>',
' <table class="t-Report-pagination t-Report-pagination--bottom" role="presentation">#PAGINATION#</table>',
' </div>',
'</div>'))
,p_row_template_type=>'GENERIC_COLUMNS'
,p_before_column_heading=>'<thead>'
,p_column_heading_template=>'<th class="t-Report-colHead" #ALIGNMENT# id="#COLUMN_HEADER_NAME#" #COLUMN_WIDTH#>#COLUMN_HEADER#</th>'
,p_after_column_heading=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</thead>',
'<tbody>'))
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>4
,p_preset_template_options=>'t-Report--altRowsDefault:t-Report--rowHighlight'
,p_reference_id=>2537207537838287671
,p_translate_this_template=>'N'
);
begin
wwv_flow_api.create_row_template_patch(
p_id=>wwv_flow_api.id(1585449137516301501)
,p_row_template_before_first=>'<tr>'
,p_row_template_after_last=>'</tr>'
);
exception when others then null;
end;
end;
/
prompt --application/shared_components/user_interface/templates/report/value_attribute_pairs_row
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585450825825301503)
,p_row_template_name=>'Value Attribute Pairs - Row'
,p_internal_name=>'VALUE_ATTRIBUTE_PAIRS_ROW'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<dt class="t-AVPList-label">',
' #1#',
'</dt>',
'<dd class="t-AVPList-value">',
' #2#',
'</dd>'))
,p_row_template_before_rows=>'<dl class="t-AVPList #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#" data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</dl>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'NAMED_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>7
,p_preset_template_options=>'t-AVPList--leftAligned'
,p_reference_id=>2099068321678681753
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/report/value_attribute_pairs_column
begin
wwv_flow_api.create_row_template(
p_id=>wwv_flow_api.id(1585451067248301505)
,p_row_template_name=>'Value Attribute Pairs - Column'
,p_internal_name=>'VALUE_ATTRIBUTE_PAIRS_COLUMN'
,p_row_template1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<dt class="t-AVPList-label">',
' #COLUMN_HEADER#',
'</dt>',
'<dd class="t-AVPList-value">',
' #COLUMN_VALUE#',
'</dd>'))
,p_row_template_before_rows=>'<dl class="t-AVPList #COMPONENT_CSS_CLASSES#" #REPORT_ATTRIBUTES# data-region-id="#REGION_STATIC_ID#">'
,p_row_template_after_rows=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</dl>',
'<table class="t-Report-pagination" role="presentation">#PAGINATION#</table>'))
,p_row_template_type=>'GENERIC_COLUMNS'
,p_row_template_display_cond1=>'0'
,p_row_template_display_cond2=>'0'
,p_row_template_display_cond3=>'0'
,p_row_template_display_cond4=>'0'
,p_pagination_template=>'<span class="t-Report-paginationText">#TEXT#</span>'
,p_next_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_page_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS#',
'</a>'))
,p_next_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--next">',
' #PAGINATION_NEXT_SET#<span class="a-Icon icon-right-arrow"></span>',
'</a>'))
,p_previous_set_template=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<a href="#LINK#" class="t-Button t-Button--small t-Button--noUI t-Report-paginationLink t-Report-paginationLink--prev">',
' <span class="a-Icon icon-left-arrow"></span>#PAGINATION_PREVIOUS_SET#',
'</a>'))
,p_theme_id=>42
,p_theme_class_id=>6
,p_preset_template_options=>'t-AVPList--leftAligned'
,p_reference_id=>2099068636272681754
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/required_floating
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(273970255918342221)
,p_template_name=>'Required - Floating'
,p_internal_name=>'REQUIRED_FLOATING'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer">',
' <label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <span class="u-VisuallyHidden">(#VALUE_REQUIRED#)</span></label>',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer t-Form-fieldContainer--floatingLabel is-required #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-inputContainer">',
' <div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'))
,p_after_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#ITEM_POST_TEXT##HELP_TEMPLATE#',
' </div>',
' <div class="t-Form-itemAssistance">',
' #ERROR_TEMPLATE#',
' <div class="t-Form-itemRequired" aria-hidden="true">#REQUIRED#</div>',
' </div>',
' #INLINE_HELP_TEMPLATE#',
'</div>'))
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<div class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</div>'
,p_error_template=>'<div class="t-Form-error">#ERROR_MESSAGE#</div>'
,p_theme_id=>42
,p_theme_class_id=>4
,p_reference_id=>1607675344320152883
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/optional_floating
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(273970386838342221)
,p_template_name=>'Optional - Floating'
,p_internal_name=>'OPTIONAL_FLOATING'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer">',
'<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</label>',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer t-Form-fieldContainer--floatingLabel #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>'<div class="t-Form-inputContainer"><div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'
,p_after_element=>'#ITEM_POST_TEXT##HELP_TEMPLATE#</div>#INLINE_HELP_TEMPLATE##ERROR_TEMPLATE#</div>'
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<span class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</span>'
,p_error_template=>'<span class="t-Form-error">#ERROR_MESSAGE#</span>'
,p_theme_id=>42
,p_theme_class_id=>3
,p_reference_id=>1607675164727151865
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/hidden
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1585461400095301535)
,p_template_name=>'Hidden'
,p_internal_name=>'HIDDEN'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer t-Form-labelContainer--hiddenLabel col col-#LABEL_COLUMN_SPAN_NUMBER#">',
'<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label u-VisuallyHidden">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</label>',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer t-Form-fieldContainer--hiddenLabel rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>'<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#"><div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'
,p_after_element=>'#ITEM_POST_TEXT##HELP_TEMPLATE#</div>#INLINE_HELP_TEMPLATE##ERROR_TEMPLATE#</div>'
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<span class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</span>'
,p_error_template=>'<span class="t-Form-error">#ERROR_MESSAGE#</span>'
,p_theme_id=>42
,p_theme_class_id=>13
,p_reference_id=>2039339104148359505
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/optional
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1585461482410301536)
,p_template_name=>'Optional'
,p_internal_name=>'OPTIONAL'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">',
'<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</label>',
'</div>',
''))
,p_before_item=>'<div class="t-Form-fieldContainer rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>'<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#"><div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'
,p_after_element=>'#ITEM_POST_TEXT##HELP_TEMPLATE#</div>#INLINE_HELP_TEMPLATE##ERROR_TEMPLATE#</div>'
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<span class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</span>'
,p_error_template=>'<span class="t-Form-error">#ERROR_MESSAGE#</span>'
,p_theme_id=>42
,p_theme_class_id=>3
,p_reference_id=>2317154212072806530
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/optional_above
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1585461603220301537)
,p_template_name=>'Optional - Above'
,p_internal_name=>'OPTIONAL_ABOVE'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer">',
'<label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</label>#HELP_TEMPLATE#',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer t-Form-fieldContainer--stacked #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>'<div class="t-Form-inputContainer"><div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'
,p_after_element=>'#ITEM_POST_TEXT#</div>#INLINE_HELP_TEMPLATE##ERROR_TEMPLATE#</div>'
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<span class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</span>'
,p_error_template=>'<span class="t-Form-error">#ERROR_MESSAGE#</span>'
,p_theme_id=>42
,p_theme_class_id=>3
,p_reference_id=>3030114864004968404
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/required
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1585461703939301539)
,p_template_name=>'Required'
,p_internal_name=>'REQUIRED'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer col col-#LABEL_COLUMN_SPAN_NUMBER#">',
' <label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <span class="u-VisuallyHidden">(#VALUE_REQUIRED#)</span></label>',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer is-required rel-col #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-inputContainer col col-#ITEM_COLUMN_SPAN_NUMBER#">',
' <div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'))
,p_after_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#ITEM_POST_TEXT##HELP_TEMPLATE#',
' </div>',
' <div class="t-Form-itemAssistance">',
' #ERROR_TEMPLATE#',
' <div class="t-Form-itemRequired" aria-hidden="true">#REQUIRED#</div>',
' </div>',
' #INLINE_HELP_TEMPLATE#',
'</div>'))
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<div class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</div>'
,p_error_template=>'<div class="t-Form-error">#ERROR_MESSAGE#</div>'
,p_theme_id=>42
,p_theme_class_id=>4
,p_reference_id=>2525313812251712801
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/label/required_above
begin
wwv_flow_api.create_field_template(
p_id=>wwv_flow_api.id(1585461831025301540)
,p_template_name=>'Required - Above'
,p_internal_name=>'REQUIRED_ABOVE'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-labelContainer">',
' <label for="#CURRENT_ITEM_NAME#" id="#LABEL_ID#" class="t-Form-label">'))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <span class="u-VisuallyHidden">(#VALUE_REQUIRED#)</span></label> #HELP_TEMPLATE#',
'</div>'))
,p_before_item=>'<div class="t-Form-fieldContainer t-Form-fieldContainer--stacked is-required #ITEM_CSS_CLASSES#" id="#CURRENT_ITEM_CONTAINER_ID#">'
,p_after_item=>'</div>'
,p_item_pre_text=>'<span class="t-Form-itemText t-Form-itemText--pre">#CURRENT_ITEM_PRE_TEXT#</span>'
,p_item_post_text=>'<span class="t-Form-itemText t-Form-itemText--post">#CURRENT_ITEM_POST_TEXT#</span>'
,p_before_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-Form-inputContainer">',
' <div class="t-Form-itemWrapper">#ITEM_PRE_TEXT#'))
,p_after_element=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#ITEM_POST_TEXT##HELP_TEMPLATE#',
' </div>',
' <div class="t-Form-itemAssistance">',
' #ERROR_TEMPLATE#',
' <div class="t-Form-itemRequired" aria-hidden="true">#REQUIRED#</div>',
' </div>',
' #INLINE_HELP_TEMPLATE#',
'</div>'))
,p_help_link=>'<button class="t-Form-helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"><span class="a-Icon icon-help" aria-hidden="true"></span></button>'
,p_inline_help_text=>'<div class="t-Form-inlineHelp">#CURRENT_ITEM_INLINE_HELP_TEXT#</div>'
,p_error_template=>'<div class="t-Form-error">#ERROR_MESSAGE#</div>'
,p_theme_id=>42
,p_theme_class_id=>4
,p_reference_id=>3030115129444970113
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/breadcrumb/breadcrumb
begin
wwv_flow_api.create_menu_template(
p_id=>wwv_flow_api.id(1585462806460301546)
,p_name=>'Breadcrumb'
,p_internal_name=>'BREADCRUMB'
,p_before_first=>'<ul class="t-Breadcrumb #COMPONENT_CSS_CLASSES#">'
,p_current_page_option=>'<li class="t-Breadcrumb-item is-active"><h1 class="t-Breadcrumb-label">#NAME#</h1></li>'
,p_non_current_page_option=>'<li class="t-Breadcrumb-item"><a href="#LINK#" class="t-Breadcrumb-label">#NAME#</a></li>'
,p_after_last=>'</ul>'
,p_max_levels=>6
,p_start_with_node=>'PARENT_TO_LEAF'
,p_theme_id=>42
,p_theme_class_id=>1
,p_reference_id=>4070916542570059325
,p_translate_this_template=>'N'
);
end;
/
prompt --application/shared_components/user_interface/templates/popuplov
begin
wwv_flow_api.create_popup_lov_template(
p_id=>wwv_flow_api.id(1585463021541301550)
,p_page_name=>'winlov'
,p_page_title=>'Search Dialog'
,p_page_html_head=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<!DOCTYPE html>',
'<html lang="&BROWSER_LANGUAGE.">',
'<head>',
'<title>#TITLE#</title>',
'#APEX_CSS#',
'#THEME_CSS#',
'#THEME_STYLE_CSS#',
'#FAVICONS#',
'#APEX_JAVASCRIPT#',
'#THEME_JAVASCRIPT#',
'<meta name="viewport" content="width=device-width,initial-scale=1.0" />',
'</head>'))
,p_page_body_attr=>'onload="first_field()" class="t-Page t-Page--popupLOV"'
,p_before_field_text=>'<div class="t-PopupLOV-actions t-Form--large">'
,p_filter_width=>'20'
,p_filter_max_width=>'100'
,p_filter_text_attr=>'class="apex-item-text"'
,p_find_button_text=>'Search'
,p_find_button_attr=>'class="t-Button t-Button--hot t-Button--padLeft"'
,p_close_button_text=>'Close'
,p_close_button_attr=>'class="t-Button u-pullRight"'
,p_next_button_text=>'Next >'
,p_next_button_attr=>'class="t-Button t-PopupLOV-button"'
,p_prev_button_text=>'< Previous'
,p_prev_button_attr=>'class="t-Button t-PopupLOV-button"'
,p_after_field_text=>'</div>'
,p_scrollbars=>'1'
,p_resizable=>'1'
,p_width=>'380'
,p_result_row_x_of_y=>'<div class="t-PopupLOV-pagination">Row(s) #FIRST_ROW# - #LAST_ROW#</div>'
,p_result_rows_per_pg=>100
,p_before_result_set=>'<div class="t-PopupLOV-links">'
,p_theme_id=>42
,p_theme_class_id=>1
,p_reference_id=>2885398517835871876
,p_translate_this_template=>'N'
,p_after_result_set=>'</div>'
);
end;
/
prompt --application/shared_components/user_interface/templates/calendar/calendar
begin
wwv_flow_api.create_calendar_template(
p_id=>wwv_flow_api.id(1585462874979301548)
,p_cal_template_name=>'Calendar'
,p_internal_name=>'CALENDAR'
,p_day_of_week_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<th id="#DY#" scope="col" class="t-ClassicCalendar-dayColumn">',
' <span class="visible-md visible-lg">#IDAY#</span>',
' <span class="hidden-md hidden-lg">#IDY#</span>',
'</th>'))
,p_month_title_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar">',
'<h1 class="t-ClassicCalendar-title">#IMONTH# #YYYY#</h1>'))
,p_month_open_format=>'<table class="t-ClassicCalendar-calendar" cellpadding="0" cellspacing="0" border="0" aria-label="#IMONTH# #YYYY#">'
,p_month_close_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</table>',
'</div>',
''))
,p_day_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_day_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#">#TITLE_FORMAT#<div class="t-ClassicCalendar-dayEvents">#DATA#</div>'
,p_day_close_format=>'</td>'
,p_today_open_format=>'<td class="t-ClassicCalendar-day is-today" headers="#DY#">#TITLE_FORMAT#<div class="t-ClassicCalendar-dayEvents">#DATA#</div>'
,p_weekend_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_weekend_open_format=>'<td class="t-ClassicCalendar-day is-weekend" headers="#DY#">#TITLE_FORMAT#<div class="t-ClassicCalendar-dayEvents">#DATA#</div>'
,p_weekend_close_format=>'</td>'
,p_nonday_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_nonday_open_format=>'<td class="t-ClassicCalendar-day is-inactive" headers="#DY#">'
,p_nonday_close_format=>'</td>'
,p_week_open_format=>'<tr>'
,p_week_close_format=>'</tr> '
,p_daily_title_format=>'<table cellspacing="0" cellpadding="0" border="0" summary="" class="t1DayCalendarHolder"> <tr> <td class="t1MonthTitle">#IMONTH# #DD#, #YYYY#</td> </tr> <tr> <td>'
,p_daily_open_format=>'<tr>'
,p_daily_close_format=>'</tr>'
,p_weekly_title_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar t-ClassicCalendar--weekly">',
'<h1 class="t-ClassicCalendar-title">#WTITLE#</h1>'))
,p_weekly_day_of_week_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<th scope="col" class="t-ClassicCalendar-dayColumn" id="#DY#">',
' <span class="visible-md visible-lg">#DD# #IDAY#</span>',
' <span class="hidden-md hidden-lg">#DD# #IDY#</span>',
'</th>'))
,p_weekly_month_open_format=>'<table border="0" cellpadding="0" cellspacing="0" aria-label="#CALENDAR_TITLE# #START_DL# - #END_DL#" class="t-ClassicCalendar-calendar">'
,p_weekly_month_close_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</table>',
'</div>'))
,p_weekly_day_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_weekly_day_close_format=>'</div></td>'
,p_weekly_today_open_format=>'<td class="t-ClassicCalendar-day is-today" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_weekly_weekend_open_format=>'<td class="t-ClassicCalendar-day is-weekend" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_weekly_weekend_close_format=>'</div></td>'
,p_weekly_time_open_format=>'<th scope="row" class="t-ClassicCalendar-day t-ClassicCalendar-timeCol">'
,p_weekly_time_close_format=>'</th>'
,p_weekly_time_title_format=>'#TIME#'
,p_weekly_hour_open_format=>'<tr>'
,p_weekly_hour_close_format=>'</tr>'
,p_daily_day_of_week_format=>'<th scope="col" id="#DY#" class="t-ClassicCalendar-dayColumn">#IDAY#</th>'
,p_daily_month_title_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar t-ClassicCalendar--daily">',
'<h1 class="t-ClassicCalendar-title">#IMONTH# #DD#, #YYYY#</h1>'))
,p_daily_month_open_format=>'<table border="0" cellpadding="0" cellspacing="0" aria-label="#CALENDAR_TITLE# #START_DL#" class="t-ClassicCalendar-calendar">'
,p_daily_month_close_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</table>',
'</div>'))
,p_daily_day_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_daily_day_close_format=>'</div></td>'
,p_daily_today_open_format=>'<td class="t-ClassicCalendar-day is-today" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_daily_time_open_format=>'<th scope="row" class="t-ClassicCalendar-day t-ClassicCalendar-timeCol" id="#TIME#">'
,p_daily_time_close_format=>'</th>'
,p_daily_time_title_format=>'#TIME#'
,p_daily_hour_open_format=>'<tr>'
,p_daily_hour_close_format=>'</tr>'
,p_cust_month_title_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar">',
'<h1 class="t-ClassicCalendar-title">#IMONTH# #YYYY#</h1>'))
,p_cust_day_of_week_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<th id="#DY#" scope="col" class="t-ClassicCalendar-dayColumn">',
' <span class="visible-md visible-lg">#IDAY#</span>',
' <span class="hidden-md hidden-lg">#IDY#</span>',
'</th>'))
,p_cust_month_open_format=>'<table class="t-ClassicCalendar-calendar" cellpadding="0" cellspacing="0" border="0" aria-label="#IMONTH# #YYYY#">'
,p_cust_month_close_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</table>',
'</div>'))
,p_cust_week_open_format=>'<tr>'
,p_cust_week_close_format=>'</tr> '
,p_cust_day_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_cust_day_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#">'
,p_cust_day_close_format=>'</td>'
,p_cust_today_open_format=>'<td class="t-ClassicCalendar-day is-today" headers="#DY#">'
,p_cust_nonday_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_cust_nonday_open_format=>'<td class="t-ClassicCalendar-day is-inactive" headers="#DY#">'
,p_cust_nonday_close_format=>'</td>'
,p_cust_weekend_title_format=>'<span class="t-ClassicCalendar-date">#DD#</span>'
,p_cust_weekend_open_format=>'<td class="t-ClassicCalendar-day is-weekend" headers="#DY#">'
,p_cust_weekend_close_format=>'</td>'
,p_cust_hour_open_format=>'<tr>'
,p_cust_hour_close_format=>'</tr>'
,p_cust_time_title_format=>'#TIME#'
,p_cust_time_open_format=>'<th scope="row" class="t-ClassicCalendar-day t-ClassicCalendar-timeCol">'
,p_cust_time_close_format=>'</th>'
,p_cust_wk_month_title_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar">',
'<h1 class="t-ClassicCalendar-title">#WTITLE#</h1>'))
,p_cust_wk_day_of_week_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<th scope="col" class="t-ClassicCalendar-dayColumn" id="#DY#">',
' <span class="visible-md visible-lg">#DD# #IDAY#</span>',
' <span class="hidden-md hidden-lg">#DD# #IDY#</span>',
'</th>'))
,p_cust_wk_month_open_format=>'<table border="0" cellpadding="0" cellspacing="0" summary="#CALENDAR_TITLE# #START_DL# - #END_DL#" class="t-ClassicCalendar-calendar">'
,p_cust_wk_month_close_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'</table>',
'</div>'))
,p_cust_wk_week_open_format=>'<tr>'
,p_cust_wk_week_close_format=>'</tr> '
,p_cust_wk_day_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_cust_wk_day_close_format=>'</div></td>'
,p_cust_wk_today_open_format=>'<td class="t-ClassicCalendar-day is-today" headers="#DY#"><div class="t-ClassicCalendar-dayEvents">'
,p_cust_wk_weekend_open_format=>'<td class="t-ClassicCalendar-day" headers="#DY#">'
,p_cust_wk_weekend_close_format=>'</td>'
,p_agenda_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<div class="t-ClassicCalendar t-ClassicCalendar--list">',
' <div class="t-ClassicCalendar-title">#IMONTH# #YYYY#</div>',
' <ul class="t-ClassicCalendar-list">',
' #DAYS#',
' </ul>',
'</div>'))
,p_agenda_past_day_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-ClassicCalendar-listTitle is-past">',
' <span class="t-ClassicCalendar-listDayTitle">#IDAY#</span><span class="t-ClassicCalendar-listDayDate">#IMONTH# #DD#</span>',
' </li>'))
,p_agenda_today_day_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-ClassicCalendar-listTitle is-today">',
' <span class="t-ClassicCalendar-listDayTitle">#IDAY#</span><span class="t-ClassicCalendar-listDayDate">#IMONTH# #DD#</span>',
' </li>'))
,p_agenda_future_day_format=>wwv_flow_string.join(wwv_flow_t_varchar2(
' <li class="t-ClassicCalendar-listTitle is-future">',
' <span class="t-ClassicCalendar-listDayTitle">#IDAY#</span><span class="t-ClassicCalendar-listDayDate">#IMONTH# #DD#</span>',
' </li>'))
,p_agenda_past_entry_format=>' <li class="t-ClassicCalendar-listEvent is-past">#DATA#</li>'
,p_agenda_today_entry_format=>' <li class="t-ClassicCalendar-listEvent is-today">#DATA#</li>'
,p_agenda_future_entry_format=>' <li class="t-ClassicCalendar-listEvent is-future">#DATA#</li>'
,p_month_data_format=>'#DAYS#'
,p_month_data_entry_format=>'<span class="t-ClassicCalendar-event">#DATA#</span>'
,p_theme_id=>42
,p_theme_class_id=>1
,p_reference_id=>4070916747979059326
);
end;
/
prompt --application/shared_components/user_interface/themes
begin
wwv_flow_api.create_theme(
p_id=>wwv_flow_api.id(1585463801766301562)
,p_theme_id=>42
,p_theme_name=>'Universal Theme'
,p_theme_internal_name=>'UNIVERSAL_THEME'
,p_ui_type_name=>'DESKTOP'
,p_navigation_type=>'L'
,p_nav_bar_type=>'LIST'
,p_reference_id=>4070917134413059350
,p_is_locked=>false
,p_default_page_template=>wwv_flow_api.id(1585422579688301441)
,p_default_dialog_template=>wwv_flow_api.id(1585412598544301427)
,p_error_template=>wwv_flow_api.id(1585402501526301404)
,p_printer_friendly_template=>wwv_flow_api.id(1585422579688301441)
,p_breadcrumb_display_point=>'REGION_POSITION_01'
,p_sidebar_display_point=>'REGION_POSITION_02'
,p_login_template=>wwv_flow_api.id(1585402501526301404)
,p_default_button_template=>wwv_flow_api.id(1585462573223301545)
,p_default_region_template=>wwv_flow_api.id(1585439443339301476)
,p_default_chart_template=>wwv_flow_api.id(1585439443339301476)
,p_default_form_template=>wwv_flow_api.id(1585439443339301476)
,p_default_reportr_template=>wwv_flow_api.id(1585439443339301476)
,p_default_tabform_template=>wwv_flow_api.id(1585439443339301476)
,p_default_wizard_template=>wwv_flow_api.id(1585439443339301476)
,p_default_menur_template=>wwv_flow_api.id(1585442034806301480)
,p_default_listr_template=>wwv_flow_api.id(1585439443339301476)
,p_default_irr_template=>wwv_flow_api.id(1585437916338301471)
,p_default_report_template=>wwv_flow_api.id(1585449137516301501)
,p_default_label_template=>wwv_flow_api.id(1585461482410301536)
,p_default_menu_template=>wwv_flow_api.id(1585462806460301546)
,p_default_calendar_template=>wwv_flow_api.id(1585462874979301548)
,p_default_list_template=>wwv_flow_api.id(1585456650815301517)
,p_default_nav_list_template=>wwv_flow_api.id(1585459740338301526)
,p_default_top_nav_list_temp=>wwv_flow_api.id(1585459740338301526)
,p_default_side_nav_list_temp=>wwv_flow_api.id(1585460520240301529)
,p_default_nav_list_position=>'SIDE'
,p_default_dialogbtnr_template=>wwv_flow_api.id(1585428806883301455)
,p_default_dialogr_template=>wwv_flow_api.id(1585428609316301453)
,p_default_option_label=>wwv_flow_api.id(1585461482410301536)
,p_default_header_template=>wwv_flow_api.id(1585428609316301453)
,p_default_footer_template=>wwv_flow_api.id(1585428609316301453)
,p_default_required_label=>wwv_flow_api.id(1585461703939301539)
,p_default_page_transition=>'NONE'
,p_default_popup_transition=>'NONE'
,p_default_navbar_list_template=>wwv_flow_api.id(1585460352336301527)
,p_file_prefix => nvl(wwv_flow_application_install.get_static_theme_file_prefix(42),'#IMAGE_PREFIX#themes/theme_42/21.1/')
,p_files_version=>64
,p_icon_library=>'FONTAPEX'
,p_javascript_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.stickyWidget#MIN#.js?v=#APEX_VERSION#',
'#THEME_IMAGES#js/theme42#MIN#.js?v=#APEX_VERSION#'))
,p_css_file_urls=>'#THEME_IMAGES#css/Core#MIN#.css?v=#APEX_VERSION#'
);
end;
/
prompt --application/shared_components/user_interface/theme_style
begin
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(803253390480793533)
,p_theme_id=>42
,p_name=>'Redwood Light'
,p_css_file_urls=>wwv_flow_string.join(wwv_flow_t_varchar2(
'#IMAGE_PREFIX#libraries/oracle-fonts/oraclesans-apex#MIN#.css?v=#APEX_VERSION#',
'#THEME_IMAGES#css/Redwood#MIN#.css?v=#APEX_VERSION#'))
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Redwood-Theme.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Redwood-Theme#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>2596426436825065489
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(803253756051793534)
,p_theme_id=>42
,p_name=>'Vita'
,p_is_current=>true
,p_is_public=>true
,p_is_accessible=>true
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>2719875314571594493
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(803254125782793534)
,p_theme_id=>42
,p_name=>'Vita - Dark'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Dark.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Dark#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>3543348412015319650
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(803254558798793534)
,p_theme_id=>42
,p_name=>'Vita - Red'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Red.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Red#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>1938457712423918173
);
wwv_flow_api.create_theme_style(
p_id=>wwv_flow_api.id(803254937296793535)
,p_theme_id=>42
,p_name=>'Vita - Slate'
,p_is_current=>false
,p_is_public=>true
,p_is_accessible=>false
,p_theme_roller_input_file_urls=>'#THEME_IMAGES#less/theme/Vita-Slate.less'
,p_theme_roller_output_file_url=>'#THEME_IMAGES#css/Vita-Slate#MIN#.css?v=#APEX_VERSION#'
,p_theme_roller_read_only=>true
,p_reference_id=>3291983347983194966
);
end;
/
prompt --application/shared_components/user_interface/theme_files
begin
null;
end;
/
prompt --application/shared_components/user_interface/theme_display_points
begin
null;
end;
/
prompt --application/shared_components/user_interface/template_opt_groups
begin
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803396803092793662)
,p_theme_id=>42
,p_name=>'BUTTON_SET'
,p_display_name=>'Button Set'
,p_display_sequence=>40
,p_template_types=>'BUTTON'
,p_help_text=>'Enables you to group many buttons together into a pill. You can use this option to specify where the button is within this set. Set the option to Default if this button is not part of a button set.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803397298550793662)
,p_theme_id=>42
,p_name=>'ICON_HOVER_ANIMATION'
,p_display_name=>'Icon Hover Animation'
,p_display_sequence=>55
,p_template_types=>'BUTTON'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803397637885793662)
,p_theme_id=>42
,p_name=>'ICON_POSITION'
,p_display_name=>'Icon Position'
,p_display_sequence=>50
,p_template_types=>'BUTTON'
,p_help_text=>'Sets the position of the icon relative to the label.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803398013924793663)
,p_theme_id=>42
,p_name=>'SIZE'
,p_display_name=>'Size'
,p_display_sequence=>10
,p_template_types=>'BUTTON'
,p_help_text=>'Sets the size of the button.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803398451826793663)
,p_theme_id=>42
,p_name=>'SPACING_BOTTOM'
,p_display_name=>'Spacing Bottom'
,p_display_sequence=>100
,p_template_types=>'BUTTON'
,p_help_text=>'Controls the spacing to the bottom of the button.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803398844213793663)
,p_theme_id=>42
,p_name=>'SPACING_LEFT'
,p_display_name=>'Spacing Left'
,p_display_sequence=>70
,p_template_types=>'BUTTON'
,p_help_text=>'Controls the spacing to the left of the button.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803399256855793664)
,p_theme_id=>42
,p_name=>'SPACING_RIGHT'
,p_display_name=>'Spacing Right'
,p_display_sequence=>80
,p_template_types=>'BUTTON'
,p_help_text=>'Controls the spacing to the right of the button.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803399608778793664)
,p_theme_id=>42
,p_name=>'SPACING_TOP'
,p_display_name=>'Spacing Top'
,p_display_sequence=>90
,p_template_types=>'BUTTON'
,p_help_text=>'Controls the spacing to the top of the button.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803400075536793664)
,p_theme_id=>42
,p_name=>'STYLE'
,p_display_name=>'Style'
,p_display_sequence=>30
,p_template_types=>'BUTTON'
,p_help_text=>'Sets the style of the button. Use the "Simple" option for secondary actions or sets of buttons. Use the "Remove UI Decoration" option to make the button appear as text.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803400428676793664)
,p_theme_id=>42
,p_name=>'TYPE'
,p_display_name=>'Type'
,p_display_sequence=>20
,p_template_types=>'BUTTON'
,p_null_text=>'Normal'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803400889650793665)
,p_theme_id=>42
,p_name=>'WIDTH'
,p_display_name=>'Width'
,p_display_sequence=>60
,p_template_types=>'BUTTON'
,p_help_text=>'Sets the width of the button.'
,p_null_text=>'Auto - Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803401279648793665)
,p_theme_id=>42
,p_name=>'BOTTOM_MARGIN'
,p_display_name=>'Bottom Margin'
,p_display_sequence=>220
,p_template_types=>'FIELD'
,p_help_text=>'Set the bottom margin for this field.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803401666789793665)
,p_theme_id=>42
,p_name=>'ITEM_POST_TEXT'
,p_display_name=>'Item Post Text'
,p_display_sequence=>30
,p_template_types=>'FIELD'
,p_help_text=>'Adjust the display of the Item Post Text'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803402065252793665)
,p_theme_id=>42
,p_name=>'ITEM_PRE_TEXT'
,p_display_name=>'Item Pre Text'
,p_display_sequence=>20
,p_template_types=>'FIELD'
,p_help_text=>'Adjust the display of the Item Pre Text'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803402432358793666)
,p_theme_id=>42
,p_name=>'LEFT_MARGIN'
,p_display_name=>'Left Margin'
,p_display_sequence=>220
,p_template_types=>'FIELD'
,p_help_text=>'Set the left margin for this field.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803402856547793666)
,p_theme_id=>42
,p_name=>'PRESERVE_LABEL_SPACING'
,p_display_name=>'Preserve Label Spacing'
,p_display_sequence=>1
,p_template_types=>'FIELD'
,p_help_text=>'Preserves the label space and enables use of the Label Column Span property.'
,p_null_text=>'Yes'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803403275394793666)
,p_theme_id=>42
,p_name=>'RADIO_GROUP_DISPLAY'
,p_display_name=>'Item Group Display'
,p_display_sequence=>300
,p_template_types=>'FIELD'
,p_help_text=>'Determines the display style for radio and check box items.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803403625112793666)
,p_theme_id=>42
,p_name=>'REQUIRED_INDICATOR'
,p_display_name=>'Required Indicator'
,p_display_sequence=>1
,p_template_types=>'FIELD'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803404076422793667)
,p_theme_id=>42
,p_name=>'RIGHT_MARGIN'
,p_display_name=>'Right Margin'
,p_display_sequence=>230
,p_template_types=>'FIELD'
,p_help_text=>'Set the right margin for this field.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803404480584793667)
,p_theme_id=>42
,p_name=>'SIZE'
,p_display_name=>'Size'
,p_display_sequence=>10
,p_template_types=>'FIELD'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803404867201793667)
,p_theme_id=>42
,p_name=>'TOP_MARGIN'
,p_display_name=>'Top Margin'
,p_display_sequence=>200
,p_template_types=>'FIELD'
,p_help_text=>'Set the top margin for this field.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803405242463793667)
,p_theme_id=>42
,p_name=>'ANIMATION'
,p_display_name=>'Animation'
,p_display_sequence=>80
,p_template_types=>'LIST'
,p_help_text=>'Sets the hover and focus animation.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803405667907793668)
,p_theme_id=>42
,p_name=>'BADGE_SIZE'
,p_display_name=>'Badge Size'
,p_display_sequence=>70
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803406038999793668)
,p_theme_id=>42
,p_name=>'BODY_TEXT'
,p_display_name=>'Body Text'
,p_display_sequence=>40
,p_template_types=>'LIST'
,p_help_text=>'Determines the height of the card body.'
,p_null_text=>'Auto'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803406452991793668)
,p_theme_id=>42
,p_name=>'COLLAPSE_STYLE'
,p_display_name=>'Collapse Mode'
,p_display_sequence=>30
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803406808177793669)
,p_theme_id=>42
,p_name=>'COLOR_ACCENTS'
,p_display_name=>'Color Accents'
,p_display_sequence=>50
,p_template_types=>'LIST'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803407260902793669)
,p_theme_id=>42
,p_name=>'DESKTOP'
,p_display_name=>'Desktop'
,p_display_sequence=>90
,p_template_types=>'LIST'
,p_help_text=>'Determines the display for a desktop-sized screen'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803407682389793669)
,p_theme_id=>42
,p_name=>'DISPLAY_ICONS'
,p_display_name=>'Display Icons'
,p_display_sequence=>30
,p_template_types=>'LIST'
,p_null_text=>'No Icons'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803408090568793669)
,p_theme_id=>42
,p_name=>'ICONS'
,p_display_name=>'Icons'
,p_display_sequence=>20
,p_template_types=>'LIST'
,p_null_text=>'No Icons'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803408442894793670)
,p_theme_id=>42
,p_name=>'ICON_SHAPE'
,p_display_name=>'Icon Shape'
,p_display_sequence=>60
,p_template_types=>'LIST'
,p_help_text=>'Determines the shape of the icon.'
,p_null_text=>'Circle'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803408825598793670)
,p_theme_id=>42
,p_name=>'ICON_STYLE'
,p_display_name=>'Icon Style'
,p_display_sequence=>35
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803409273417793670)
,p_theme_id=>42
,p_name=>'LABEL_DISPLAY'
,p_display_name=>'Label Display'
,p_display_sequence=>50
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803409694789793670)
,p_theme_id=>42
,p_name=>'LAYOUT'
,p_display_name=>'Layout'
,p_display_sequence=>30
,p_template_types=>'LIST'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803410041235793671)
,p_theme_id=>42
,p_name=>'MOBILE'
,p_display_name=>'Mobile'
,p_display_sequence=>100
,p_template_types=>'LIST'
,p_help_text=>'Determines the display for a mobile-sized screen'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803410402664793671)
,p_theme_id=>42
,p_name=>'SIZE'
,p_display_name=>'Size'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803410833715793671)
,p_theme_id=>42
,p_name=>'STYLE'
,p_display_name=>'Style'
,p_display_sequence=>10
,p_template_types=>'LIST'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803411283336793671)
,p_theme_id=>42
,p_name=>'CONTENT_PADDING'
,p_display_name=>'Content Padding'
,p_display_sequence=>1
,p_template_types=>'PAGE'
,p_help_text=>'Sets the Content Body padding for the page.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803411614569793672)
,p_theme_id=>42
,p_name=>'DISPLAY_MODE'
,p_display_name=>'Display Mode'
,p_display_sequence=>30
,p_template_types=>'PAGE'
,p_help_text=>'Determines the default display appearance and positioning of the dialog. The default opens a floating dialog position at the center of the screen.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803412038921793672)
,p_theme_id=>42
,p_name=>'PAGE_BACKGROUND'
,p_display_name=>'Page Background'
,p_display_sequence=>20
,p_template_types=>'PAGE'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803412430947793672)
,p_theme_id=>42
,p_name=>'PAGE_LAYOUT'
,p_display_name=>'Page Layout'
,p_display_sequence=>10
,p_template_types=>'PAGE'
,p_null_text=>'Floating (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803412877470793673)
,p_theme_id=>42
,p_name=>'ACCENT'
,p_display_name=>'Accent'
,p_display_sequence=>30
,p_template_types=>'REGION'
,p_help_text=>'Set the Region''s accent. This accent corresponds to a Theme-Rollable color and sets the background of the Region''s Header.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803413297413793677)
,p_theme_id=>42
,p_name=>'ALERT_DISPLAY'
,p_display_name=>'Alert Display'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Sets the layout of the Alert Region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803413678029793677)
,p_theme_id=>42
,p_name=>'ALERT_ICONS'
,p_display_name=>'Alert Icons'
,p_display_sequence=>2
,p_template_types=>'REGION'
,p_help_text=>'Sets how icons are handled for the Alert Region.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803414064665793678)
,p_theme_id=>42
,p_name=>'ALERT_TITLE'
,p_display_name=>'Alert Title'
,p_display_sequence=>40
,p_template_types=>'REGION'
,p_help_text=>'Determines how the title of the alert is displayed.'
,p_null_text=>'Visible - Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803414437953793678)
,p_theme_id=>42
,p_name=>'ALERT_TYPE'
,p_display_name=>'Alert Type'
,p_display_sequence=>3
,p_template_types=>'REGION'
,p_help_text=>'Sets the type of alert which can be used to determine the icon, icon color, and the background color.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803414879114793678)
,p_theme_id=>42
,p_name=>'ANIMATION'
,p_display_name=>'Animation'
,p_display_sequence=>10
,p_template_types=>'REGION'
,p_help_text=>'Sets the animation when navigating within the Carousel Region.'
,p_null_text=>'Fade'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803415212443793679)
,p_theme_id=>42
,p_name=>'BODY_HEIGHT'
,p_display_name=>'Body Height'
,p_display_sequence=>10
,p_template_types=>'REGION'
,p_help_text=>'Sets the Region Body height. You can also specify a custom height by modifying the Region''s CSS Classes and using the height helper classes "i-hXXX" where XXX is any increment of 10 from 100 to 800.'
,p_null_text=>'Auto - Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803415691036793679)
,p_theme_id=>42
,p_name=>'BODY_OVERFLOW'
,p_display_name=>'Body Overflow'
,p_display_sequence=>2
,p_template_types=>'REGION'
,p_help_text=>'Determines the scroll behavior when the region contents are larger than their container.'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803416006111793679)
,p_theme_id=>42
,p_name=>'BODY_PADDING'
,p_display_name=>'Body Padding'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Sets the Region Body padding for the region.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803416419682793679)
,p_theme_id=>42
,p_name=>'BODY_STYLE'
,p_display_name=>'Body Style'
,p_display_sequence=>20
,p_template_types=>'REGION'
,p_help_text=>'Controls the display of the region''s body container.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803416875868793680)
,p_theme_id=>42
,p_name=>'CALLOUT_POSITION'
,p_display_name=>'Callout Position'
,p_display_sequence=>10
,p_template_types=>'REGION'
,p_help_text=>'Determines where the callout for the popup will be positioned relative to its parent.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803417245053793680)
,p_theme_id=>42
,p_name=>'COLLAPSIBLE_BUTTON_ICONS'
,p_display_name=>'Collapsible Button Icons'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Determines which arrows to use to represent the icons for the collapse and expand button.'
,p_null_text=>'Arrows'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803417655783793680)
,p_theme_id=>42
,p_name=>'COLLAPSIBLE_ICON_POSITION'
,p_display_name=>'Collapsible Icon Position'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Determines the position of the expand and collapse toggle for the region.'
,p_null_text=>'Start'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803418044394793680)
,p_theme_id=>42
,p_name=>'DEFAULT_STATE'
,p_display_name=>'Default State'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Sets the default state of the region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803418422967793681)
,p_theme_id=>42
,p_name=>'DIALOG_SIZE'
,p_display_name=>'Dialog Size'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803418890634793681)
,p_theme_id=>42
,p_name=>'DISPLAY_ICON'
,p_display_name=>'Display Icon'
,p_display_sequence=>50
,p_template_types=>'REGION'
,p_help_text=>'Display the Hero Region icon.'
,p_null_text=>'Yes (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803419295371793681)
,p_theme_id=>42
,p_name=>'DISPLAY_MODE'
,p_display_name=>'Display Mode'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Determines the default display appearance and positioning of the dialog. The default opens a floating dialog position at the center of the screen.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803419617446793681)
,p_theme_id=>42
,p_name=>'HEADER'
,p_display_name=>'Header'
,p_display_sequence=>20
,p_template_types=>'REGION'
,p_help_text=>'Determines the display of the Region Header which also contains the Region Title.'
,p_null_text=>'Visible - Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803420037004793682)
,p_theme_id=>42
,p_name=>'HEADING_FONT'
,p_display_name=>'Heading Font'
,p_display_sequence=>100
,p_template_types=>'REGION'
,p_help_text=>'Sets the font-family of the heading for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803420408010793682)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL'
,p_display_name=>'Heading Level'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803420830867793682)
,p_theme_id=>42
,p_name=>'HIDE_STEPS_FOR'
,p_display_name=>'Hide Steps For'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803421288957793682)
,p_theme_id=>42
,p_name=>'ICON_SHAPE'
,p_display_name=>'Icon Shape'
,p_display_sequence=>60
,p_template_types=>'REGION'
,p_help_text=>'Determines the shape of the icon.'
,p_null_text=>'Rounded Corners'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803421605292793683)
,p_theme_id=>42
,p_name=>'ITEM_PADDING'
,p_display_name=>'Item Spacing'
,p_display_sequence=>100
,p_template_types=>'REGION'
,p_help_text=>'Sets the padding around items within this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803422033178793683)
,p_theme_id=>42
,p_name=>'ITEM_SIZE'
,p_display_name=>'Item Size'
,p_display_sequence=>110
,p_template_types=>'REGION'
,p_help_text=>'Sets the size of the form items within this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803422450875793683)
,p_theme_id=>42
,p_name=>'ITEM_WIDTH'
,p_display_name=>'Item Width'
,p_display_sequence=>120
,p_template_types=>'REGION'
,p_help_text=>'Sets the width of the form items within this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803422883332793684)
,p_theme_id=>42
,p_name=>'LABEL_ALIGNMENT'
,p_display_name=>'Label Alignment'
,p_display_sequence=>130
,p_template_types=>'REGION'
,p_help_text=>'Set the label text alignment for items within this region.'
,p_null_text=>'Right'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803423247079793684)
,p_theme_id=>42
,p_name=>'LABEL_POSITION'
,p_display_name=>'Label Position'
,p_display_sequence=>140
,p_template_types=>'REGION'
,p_help_text=>'Sets the position of the label relative to the form item.'
,p_null_text=>'Inline - Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803423670307793684)
,p_theme_id=>42
,p_name=>'LAYOUT'
,p_display_name=>'Layout'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803424033431793684)
,p_theme_id=>42
,p_name=>'LOGIN_HEADER'
,p_display_name=>'Login Header'
,p_display_sequence=>10
,p_template_types=>'REGION'
,p_help_text=>'Controls the display of the Login region header.'
,p_null_text=>'Icon and Title (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803424460258793685)
,p_theme_id=>42
,p_name=>'REGION_BOTTOM_MARGIN'
,p_display_name=>'Bottom Margin'
,p_display_sequence=>210
,p_template_types=>'REGION'
,p_help_text=>'Set the bottom margin for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803424832086793685)
,p_theme_id=>42
,p_name=>'REGION_LEFT_MARGIN'
,p_display_name=>'Left Margin'
,p_display_sequence=>220
,p_template_types=>'REGION'
,p_help_text=>'Set the left margin for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803425221894793685)
,p_theme_id=>42
,p_name=>'REGION_RIGHT_MARGIN'
,p_display_name=>'Right Margin'
,p_display_sequence=>230
,p_template_types=>'REGION'
,p_help_text=>'Set the right margin for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803425613540793685)
,p_theme_id=>42
,p_name=>'REGION_TITLE'
,p_display_name=>'Region Title'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Sets the source of the Title Bar region''s title.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803426000632793686)
,p_theme_id=>42
,p_name=>'REGION_TOP_MARGIN'
,p_display_name=>'Top Margin'
,p_display_sequence=>200
,p_template_types=>'REGION'
,p_help_text=>'Set the top margin for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803426448301793686)
,p_theme_id=>42
,p_name=>'STYLE'
,p_display_name=>'Style'
,p_display_sequence=>40
,p_template_types=>'REGION'
,p_help_text=>'Determines how the region is styled. Use the "Remove Borders" template option to remove the region''s borders and shadows.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803426856983793686)
,p_theme_id=>42
,p_name=>'TABS_SIZE'
,p_display_name=>'Tabs Size'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803427269420793686)
,p_theme_id=>42
,p_name=>'TAB_STYLE'
,p_display_name=>'Tab Style'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803427650090793687)
,p_theme_id=>42
,p_name=>'TIMER'
,p_display_name=>'Timer'
,p_display_sequence=>2
,p_template_types=>'REGION'
,p_help_text=>'Sets the timer for when to automatically navigate to the next region within the Carousel Region.'
,p_null_text=>'No Timer'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803428057168793687)
,p_theme_id=>42
,p_name=>'ALTERNATING_ROWS'
,p_display_name=>'Alternating Rows'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_help_text=>'Shades alternate rows in the report with slightly different background colors.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803428496015793687)
,p_theme_id=>42
,p_name=>'ANIMATION'
,p_display_name=>'Animation'
,p_display_sequence=>70
,p_template_types=>'REPORT'
,p_help_text=>'Sets the hover and focus animation.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803428821295793688)
,p_theme_id=>42
,p_name=>'BADGE_SIZE'
,p_display_name=>'Badge Size'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803429221159793688)
,p_theme_id=>42
,p_name=>'BODY_TEXT'
,p_display_name=>'Body Text'
,p_display_sequence=>40
,p_template_types=>'REPORT'
,p_help_text=>'Determines the height of the card body.'
,p_null_text=>'Auto'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803429695381793688)
,p_theme_id=>42
,p_name=>'COLOR_ACCENTS'
,p_display_name=>'Color Accents'
,p_display_sequence=>50
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803430003518793688)
,p_theme_id=>42
,p_name=>'COL_ACTIONS'
,p_display_name=>'Actions'
,p_display_sequence=>150
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803430459408793689)
,p_theme_id=>42
,p_name=>'COL_CONTENT_DESCRIPTION'
,p_display_name=>'Description'
,p_display_sequence=>130
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803430882163793689)
,p_theme_id=>42
,p_name=>'COL_CONTENT_TITLE'
,p_display_name=>'Title'
,p_display_sequence=>120
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803431262630793689)
,p_theme_id=>42
,p_name=>'COL_ICON'
,p_display_name=>'Icon'
,p_display_sequence=>110
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803431692093793689)
,p_theme_id=>42
,p_name=>'COL_MISC'
,p_display_name=>'Misc'
,p_display_sequence=>140
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803432038141793690)
,p_theme_id=>42
,p_name=>'COL_SELECTION'
,p_display_name=>'Selection'
,p_display_sequence=>100
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803432432273793690)
,p_theme_id=>42
,p_name=>'COMMENTS_STYLE'
,p_display_name=>'Comments Style'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_help_text=>'Determines the style in which comments are displayed.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803432828928793690)
,p_theme_id=>42
,p_name=>'CONTENT_ALIGNMENT'
,p_display_name=>'Content Alignment'
,p_display_sequence=>90
,p_template_types=>'REPORT'
,p_null_text=>'Center (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803433220817793690)
,p_theme_id=>42
,p_name=>'DISPLAY_ITEMS'
,p_display_name=>'Display Items'
,p_display_sequence=>20
,p_template_types=>'REPORT'
,p_null_text=>'Inline (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803433657757793691)
,p_theme_id=>42
,p_name=>'DISPLAY_LABELS'
,p_display_name=>'Display Labels'
,p_display_sequence=>30
,p_template_types=>'REPORT'
,p_null_text=>'Inline (Default)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803434019282793691)
,p_theme_id=>42
,p_name=>'ICONS'
,p_display_name=>'Icons'
,p_display_sequence=>20
,p_template_types=>'REPORT'
,p_help_text=>'Controls how to handle icons in the report.'
,p_null_text=>'No Icons'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803434465920793691)
,p_theme_id=>42
,p_name=>'ICON_SHAPE'
,p_display_name=>'Icon Shape'
,p_display_sequence=>60
,p_template_types=>'REPORT'
,p_help_text=>'Determines the shape of the icon.'
,p_null_text=>'Circle'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803434898769793692)
,p_theme_id=>42
,p_name=>'LABEL_WIDTH'
,p_display_name=>'Label Width'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803435228419793692)
,p_theme_id=>42
,p_name=>'LAYOUT'
,p_display_name=>'Layout'
,p_display_sequence=>30
,p_template_types=>'REPORT'
,p_help_text=>'Determines the layout of Cards in the report.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803435677538793692)
,p_theme_id=>42
,p_name=>'PAGINATION_DISPLAY'
,p_display_name=>'Pagination Display'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_help_text=>'Controls the display of pagination for this region.'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803436016196793692)
,p_theme_id=>42
,p_name=>'REPORT_BORDER'
,p_display_name=>'Report Border'
,p_display_sequence=>30
,p_template_types=>'REPORT'
,p_help_text=>'Controls the display of the Report''s borders.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803436462327793693)
,p_theme_id=>42
,p_name=>'ROW_HIGHLIGHTING'
,p_display_name=>'Row Highlighting'
,p_display_sequence=>20
,p_template_types=>'REPORT'
,p_help_text=>'Determines whether you want the row to be highlighted on hover.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803436806003793693)
,p_theme_id=>42
,p_name=>'SIZE'
,p_display_name=>'Size'
,p_display_sequence=>35
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(803437277867793693)
,p_theme_id=>42
,p_name=>'STYLE'
,p_display_name=>'Style'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_help_text=>'Determines the overall style for the component.'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970924275850694149)
,p_theme_id=>142
,p_name=>'ALERT_TYPE'
,p_display_name=>'Alert Type'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970924627464694149)
,p_theme_id=>142
,p_name=>'DISPLAY_TYPE'
,p_display_name=>'Display Type'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970926483842694153)
,p_theme_id=>142
,p_name=>'REGION_STYLE'
,p_display_name=>'Region Style'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970926961239694154)
,p_theme_id=>142
,p_name=>'REGION_PADDING'
,p_display_name=>'Region Padding'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970928572263694157)
,p_theme_id=>142
,p_name=>'BODY_HEIGHT'
,p_display_name=>'Body Height'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Extend to Fit Contents'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970929147274694157)
,p_theme_id=>142
,p_name=>'REGION_HEADER'
,p_display_name=>'Region Header'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Visible - Default'
,p_is_advanced=>'Y'
);
end;
/
begin
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970929392429694157)
,p_theme_id=>142
,p_name=>'BODY_OVERFLOW'
,p_display_name=>'Body Overflow'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970930541432694157)
,p_theme_id=>142
,p_name=>'REGION_TYPE'
,p_display_name=>'Region Type'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Normal - Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970931553304694159)
,p_theme_id=>142
,p_name=>'HIDE_STEPS_FOR'
,p_display_name=>'Hide Steps For'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970932262123694160)
,p_theme_id=>142
,p_name=>'BADGE_SIZE'
,p_display_name=>'Badge Size'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970932510632694160)
,p_theme_id=>142
,p_name=>'LAYOUT'
,p_display_name=>'Layout'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970934584844694164)
,p_theme_id=>142
,p_name=>'ALTERNATING_ROWS'
,p_display_name=>'Alternating Rows'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970935023474694165)
,p_theme_id=>142
,p_name=>'ROW_HIGHLIGHTING'
,p_display_name=>'Row Highlighting'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970935271000694165)
,p_theme_id=>142
,p_name=>'REPORT_BORDER'
,p_display_name=>'Report Border'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970936768912694168)
,p_theme_id=>142
,p_name=>'LAYOUT'
,p_display_name=>'Layout'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970937608899694169)
,p_theme_id=>142
,p_name=>'BADGE_SIZE'
,p_display_name=>'Badge Size'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970939074454694171)
,p_theme_id=>142
,p_name=>'DISPLAY_ICONS'
,p_display_name=>'Display Icons'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970940248267694172)
,p_theme_id=>142
,p_name=>'ICON_STYLE'
,p_display_name=>'Icon Style'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970942140236694176)
,p_theme_id=>142
,p_name=>'LABEL_DISPLAY'
,p_display_name=>'Label Display'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970943333360694179)
,p_theme_id=>142
,p_name=>'ICON_POSITION'
,p_display_name=>'Icon Position'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970943974425694180)
,p_theme_id=>142
,p_name=>'BREADCRUMB_DIVIDER'
,p_display_name=>'Breadcrumb Divider'
,p_display_sequence=>1
,p_template_types=>'BREADCRUMB'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970945228419694183)
,p_theme_id=>142
,p_name=>'BUTTON_TYPE'
,p_display_name=>'Button Type'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_null_text=>'Normal'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970945505488694183)
,p_theme_id=>142
,p_name=>'SPACING_LEFT'
,p_display_name=>'Spacing Left'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970945852388694183)
,p_theme_id=>142
,p_name=>'SPACING_RIGHT'
,p_display_name=>'Spacing Right'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970946224788694183)
,p_theme_id=>142
,p_name=>'BUTTON_SIZE'
,p_display_name=>'Button Size'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_null_text=>'Default Size'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970946560653694183)
,p_theme_id=>142
,p_name=>'BUTTON_STYLE'
,p_display_name=>'Button Style'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_null_text=>'Default Style'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970946989091694183)
,p_theme_id=>142
,p_name=>'BUTTON_SET'
,p_display_name=>'Button Set'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970947777466694184)
,p_theme_id=>142
,p_name=>'BUTTON_WIDTH'
,p_display_name=>'Button Width'
,p_display_sequence=>1
,p_template_types=>'BUTTON'
,p_null_text=>'Default Width'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970948341843694184)
,p_theme_id=>142
,p_name=>'FORM_LABEL_WIDTH'
,p_display_name=>'Form Label Width'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Help text for Form Label Width'
,p_null_text=>'Default Width'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970948854299694184)
,p_theme_id=>142
,p_name=>'FORM_LABEL_POSITION'
,p_display_name=>'Form Label Position'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Inline - Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970949162266694184)
,p_theme_id=>142
,p_name=>'FORM_ITEMS_SIZE'
,p_display_name=>'Form Items Size'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default Size'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970949459070694184)
,p_theme_id=>142
,p_name=>'LABEL_ALIGNMENT'
,p_display_name=>'Label Alignment'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_help_text=>'Set the label text alignment for items within this region.'
,p_null_text=>'Right'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(970949726413694185)
,p_theme_id=>142
,p_name=>'FORM_ITEM_PADDING'
,p_display_name=>'Form Item Padding'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default Padding'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1035242644063039826)
,p_theme_id=>142
,p_name=>'NAVIGATION_COLOR_SCHEME'
,p_display_name=>'Navigation Color Scheme'
,p_display_sequence=>1
,p_template_types=>'PAGE'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1057999028831122466)
,p_theme_id=>142
,p_name=>'CURRENT_PAGE'
,p_display_name=>'Current Page'
,p_display_sequence=>1
,p_template_types=>'BREADCRUMB'
,p_null_text=>'Visible - Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1217192914382694403)
,p_theme_id=>142
,p_name=>'REGION_ACCENT'
,p_display_name=>'Region Accent'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1217198857066694415)
,p_theme_id=>142
,p_name=>'LIST_STYLE'
,p_display_name=>'List Style'
,p_display_sequence=>1
,p_template_types=>'LIST'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1254089169695972273)
,p_theme_id=>142
,p_name=>'DIALOG_SIZE'
,p_display_name=>'Dialog Size'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1254091597215972277)
,p_theme_id=>142
,p_name=>'DISPLAY'
,p_display_name=>'Display'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1254110667828972305)
,p_theme_id=>142
,p_name=>'FORM_ITEM_WIDTH'
,p_display_name=>'Form Item Width'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_null_text=>'Default'
,p_is_advanced=>'Y'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1340326656364943448)
,p_theme_id=>142
,p_name=>'LABEL_WIDTH'
,p_display_name=>'Label Width'
,p_display_sequence=>10
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1343884688059300930)
,p_theme_id=>142
,p_name=>'REGION_TITLE'
,p_display_name=>'Region Title'
,p_display_sequence=>1
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_opt_group(
p_id=>wwv_flow_api.id(1520118807405390135)
,p_theme_id=>142
,p_name=>'COMMENTS_STYLE'
,p_display_name=>'Comments Style'
,p_display_sequence=>1
,p_template_types=>'REPORT'
,p_null_text=>'Default'
,p_is_advanced=>'N'
);
end;
/
prompt --application/shared_components/user_interface/template_options
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30357216984665878)
,p_theme_id=>42
,p_name=>'REMOVE_BODY_PADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>20
,p_page_template_id=>wwv_flow_api.id(1585412598544301427)
,p_css_classes=>'t-Dialog--noPadding'
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30375337313665888)
,p_theme_id=>42
,p_name=>'REMOVE_BODY_PADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>20
,p_page_template_id=>wwv_flow_api.id(1585425334760301448)
,p_css_classes=>'t-Dialog--noPadding'
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30491697836665975)
,p_theme_id=>42
,p_name=>'COLLAPSED_DEFAULT'
,p_display_name=>'Collapsed by Default'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'js-defaultCollapsed'
,p_template_types=>'LIST'
,p_help_text=>'This option will load the side navigation menu in a collapsed state by default.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30541380747666010)
,p_theme_id=>42
,p_name=>'2_COLUMN_GRID'
,p_display_name=>'2 Column Grid'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--cols t-MediaList--2cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30541814568666011)
,p_theme_id=>42
,p_name=>'3_COLUMN_GRID'
,p_display_name=>'3 Column Grid'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--cols t-MediaList--3cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30542190601666011)
,p_theme_id=>42
,p_name=>'4_COLUMN_GRID'
,p_display_name=>'4 Column Grid'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--cols t-MediaList--4cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30542582253666011)
,p_theme_id=>42
,p_name=>'5_COLUMN_GRID'
,p_display_name=>'5 Column Grid'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--cols t-MediaList--5cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30543018232666011)
,p_theme_id=>42
,p_name=>'APPLY_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'u-colors'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30543431552666011)
,p_theme_id=>42
,p_name=>'SHOW_BADGES'
,p_display_name=>'Show Badges'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--showBadges'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30543813810666012)
,p_theme_id=>42
,p_name=>'SHOW_DESCRIPTION'
,p_display_name=>'Show Description'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--showDesc'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30544188566666012)
,p_theme_id=>42
,p_name=>'SHOW_ICONS'
,p_display_name=>'Show Icons'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--showIcons'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30544653339666012)
,p_theme_id=>42
,p_name=>'SPAN_HORIZONTAL'
,p_display_name=>'Span Horizontal'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--horizontal'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(30545032229666012)
,p_theme_id=>42
,p_name=>'STACK'
,p_display_name=>'Stack'
,p_display_sequence=>5
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--stack'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(135477609465050699)
,p_theme_id=>42
,p_name=>'AUTO_HEIGHT_INLINE_DIALOG'
,p_display_name=>'Auto Height'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-dialog-autoheight'
,p_template_types=>'REGION'
,p_help_text=>'This option will set the height of the dialog to fit its contents.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(135478057797050699)
,p_theme_id=>42
,p_name=>'LARGE_720X480'
,p_display_name=>'Large (720x480)'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-dialog-size720x480'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(135478417963050699)
,p_theme_id=>42
,p_name=>'MEDIUM_600X400'
,p_display_name=>'Medium (600x400)'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-dialog-size600x400'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(135478879363050699)
,p_theme_id=>42
,p_name=>'NONE'
,p_display_name=>'None'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-dialog-nosize'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(135479269959050700)
,p_theme_id=>42
,p_name=>'SMALL_480X320'
,p_display_name=>'Small (480x320)'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-dialog-size480x320'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(162285705828999181)
,p_theme_id=>42
,p_name=>'ADD_ACTIONS'
,p_display_name=>'Add Actions'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(2145218821934365172)
,p_css_classes=>'js-addActions'
,p_template_types=>'LIST'
,p_help_text=>'Enables you to define a keyboard shortcut to activate the menu item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(185198480095477605)
,p_theme_id=>42
,p_name=>'COMPACT'
,p_display_name=>'Compact'
,p_display_sequence=>1
,p_report_template_id=>wwv_flow_api.id(182460546567151557)
,p_css_classes=>'t-Timeline--compact'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
,p_help_text=>'Displays a compact version of timeline with smaller text and fewer columns.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232108558469088956)
,p_theme_id=>42
,p_name=>'SHOW_REGION_ICON'
,p_display_name=>'Show Region Icon'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--showIcon'
,p_template_types=>'REGION'
,p_help_text=>'Displays the region icon in the region header beside the region title'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232117049427088962)
,p_theme_id=>42
,p_name=>'REMOVE_BODY_PADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>5
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'t-DialogRegion--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes the padding around the region body.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232121974687088966)
,p_theme_id=>42
,p_name=>'REMOVE_BODY_PADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'t-DialogRegion--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes the padding around the region body.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232189877311089021)
,p_theme_id=>42
,p_name=>'STYLE_B'
,p_display_name=>'Style B'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'t-TreeNav--styleB'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Style Variation B'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232190555725089021)
,p_theme_id=>42
,p_name=>'STYLE_A'
,p_display_name=>'Style A'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'t-TreeNav--styleA'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Style Variation A'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232191207937089022)
,p_theme_id=>42
,p_name=>'STYLE_C'
,p_display_name=>'Classic'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'t-TreeNav--classic'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Classic Style'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232203221944089031)
,p_theme_id=>42
,p_name=>'WIZARD_PROGRESS_LINKS'
,p_display_name=>'Make Wizard Steps Clickable'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585460733020301531)
,p_css_classes=>'js-wizardProgressLinks'
,p_template_types=>'LIST'
,p_help_text=>'This option will make the wizard steps clickable links.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232253935021089071)
,p_theme_id=>42
,p_name=>'PUSH'
,p_display_name=>'Push'
,p_display_sequence=>20
,p_button_template_id=>wwv_flow_api.id(1585461886208301542)
,p_css_classes=>'t-Button--hoverIconPush'
,p_group_id=>wwv_flow_api.id(803397298550793662)
,p_template_types=>'BUTTON'
,p_help_text=>'The icon will animate to the right or left on button hover or focus.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232254699574089071)
,p_theme_id=>42
,p_name=>'SPIN'
,p_display_name=>'Spin'
,p_display_sequence=>10
,p_button_template_id=>wwv_flow_api.id(1585461886208301542)
,p_css_classes=>'t-Button--hoverIconSpin'
,p_group_id=>wwv_flow_api.id(803397298550793662)
,p_template_types=>'BUTTON'
,p_help_text=>'The icon will spin on button hover or focus.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232256920313089073)
,p_theme_id=>42
,p_name=>'PUSH'
,p_display_name=>'Push'
,p_display_sequence=>20
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_css_classes=>'t-Button--hoverIconPush'
,p_group_id=>wwv_flow_api.id(803397298550793662)
,p_template_types=>'BUTTON'
,p_help_text=>'The icon will animate to the right or left on button hover or focus.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232257600194089073)
,p_theme_id=>42
,p_name=>'SPIN'
,p_display_name=>'Spin'
,p_display_sequence=>10
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_css_classes=>'t-Button--hoverIconSpin'
,p_group_id=>wwv_flow_api.id(803397298550793662)
,p_template_types=>'BUTTON'
,p_help_text=>'The icon will spin on button hover or focus.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(232258046965089074)
,p_theme_id=>42
,p_name=>'HIDE_LABEL_ON_MOBILE'
,p_display_name=>'Hide Label on Mobile'
,p_display_sequence=>10
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_css_classes=>'t-Button--mobileHideLabel'
,p_template_types=>'BUTTON'
,p_help_text=>'This template options hides the button label on small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271400719769849122)
,p_theme_id=>42
,p_name=>'ICONS_PLUS_OR_MINUS'
,p_display_name=>'Plus or Minus'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--hideShowIconsMath'
,p_group_id=>wwv_flow_api.id(803417245053793680)
,p_template_types=>'REGION'
,p_help_text=>'Use the plus and minus icons for the expand and collapse button.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271401423367849122)
,p_theme_id=>42
,p_name=>'CONRTOLS_POSITION_END'
,p_display_name=>'End'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--controlsPosEnd'
,p_group_id=>wwv_flow_api.id(803417655783793680)
,p_template_types=>'REGION'
,p_help_text=>'Position the expand / collapse button to the end of the region header.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271418567942849135)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--iconsSquare'
,p_group_id=>wwv_flow_api.id(803421288957793682)
,p_template_types=>'REGION'
,p_help_text=>'The icons are displayed within a square.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271419228407849136)
,p_theme_id=>42
,p_name=>'ICONS_CIRCULAR'
,p_display_name=>'Circle'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--iconsCircle'
,p_group_id=>wwv_flow_api.id(803421288957793682)
,p_template_types=>'REGION'
,p_help_text=>'The icons are displayed within a circle.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271428686296849145)
,p_theme_id=>42
,p_name=>'REMOVE_PAGE_OVERLAY'
,p_display_name=>'Remove Page Overlay'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-noOverlay'
,p_template_types=>'REGION'
,p_help_text=>'This option will display the inline dialog without an overlay on the background.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271474052317849178)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--iconsSquare'
,p_group_id=>wwv_flow_api.id(803408442894793670)
,p_template_types=>'LIST'
,p_help_text=>'The icons are displayed within a square shape.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271474710178849178)
,p_theme_id=>42
,p_name=>'ICONS_ROUNDED'
,p_display_name=>'Rounded Corners'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--iconsRounded'
,p_group_id=>wwv_flow_api.id(803408442894793670)
,p_template_types=>'LIST'
,p_help_text=>'The icons are displayed within a square with rounded corners.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271491923833849190)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--iconsSquare'
,p_group_id=>wwv_flow_api.id(803408442894793670)
,p_template_types=>'LIST'
,p_help_text=>'The icons are displayed within a square shape.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271492646456849191)
,p_theme_id=>42
,p_name=>'ICONS_ROUNDED'
,p_display_name=>'Rounded Corners'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--iconsRounded'
,p_group_id=>wwv_flow_api.id(803408442894793670)
,p_template_types=>'LIST'
,p_help_text=>'The icons are displayed within a square with rounded corners.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271526303762849216)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--iconsSquare'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square shape.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271527099285849216)
,p_theme_id=>42
,p_name=>'ICONS_ROUNDED'
,p_display_name=>'Rounded Corners'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--iconsRounded'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square with rounded corners.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271540529378849226)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585448283114301496)
,p_css_classes=>'t-Comments--iconsSquare'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square shape.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271541247017849226)
,p_theme_id=>42
,p_name=>'ICONS_ROUNDED'
,p_display_name=>'Rounded Corners'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585448283114301496)
,p_css_classes=>'t-Comments--iconsRounded'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square with rounded corners.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271544688539849229)
,p_theme_id=>42
,p_name=>'ICONS_SQUARE'
,p_display_name=>'Square'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--iconsSquare'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square shape.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(271545303683849229)
,p_theme_id=>42
,p_name=>'ICONS_ROUNDED'
,p_display_name=>'Rounded Corners'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--iconsRounded'
,p_group_id=>wwv_flow_api.id(803434465920793691)
,p_template_types=>'REPORT'
,p_help_text=>'The icons are displayed within a square with rounded corners.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427867483750298640)
,p_theme_id=>42
,p_name=>'SHOW_REGION_ICON'
,p_display_name=>'Show Region Icon'
,p_display_sequence=>50
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--showIcon'
,p_template_types=>'REGION'
,p_help_text=>'Displays the region icon in the region header beside the region title'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427909578355298688)
,p_theme_id=>42
,p_name=>'SHOW_REGION_ICON'
,p_display_name=>'Show Region Icon'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--showIcon'
,p_template_types=>'REGION'
,p_help_text=>'Displays the region icon in the region header beside the region title'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427937574699298711)
,p_theme_id=>42
,p_name=>'APPLY_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'u-colors'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427938345440298712)
,p_theme_id=>42
,p_name=>'CIRCULAR'
,p_display_name=>'Circular'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--circular'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427939013481298712)
,p_theme_id=>42
,p_name=>'GRID'
,p_display_name=>'Grid'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--dash'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427949064038298721)
,p_theme_id=>42
,p_name=>'DISPLAY_SUBTITLE'
,p_display_name=>'Display Subtitle'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--displaySubtitle'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427949759331298721)
,p_theme_id=>42
,p_name=>'BLOCK'
,p_display_name=>'Block'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--featured t-Cards--block force-fa-lg'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427982255351298749)
,p_theme_id=>42
,p_name=>'NO_LABEL_LG'
,p_display_name=>'Do not display labels'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(30500763884665981)
,p_css_classes=>'t-NavTabs--hiddenLabels-lg'
,p_group_id=>wwv_flow_api.id(803407260902793669)
,p_template_types=>'LIST'
,p_help_text=>'Hides the label for the list item'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427982945787298750)
,p_theme_id=>42
,p_name=>'LABEL_INLINE_LG'
,p_display_name=>'Display labels inline'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(30500763884665981)
,p_css_classes=>'t-NavTabs--inlineLabels-lg'
,p_group_id=>wwv_flow_api.id(803407260902793669)
,p_template_types=>'LIST'
,p_help_text=>'Display the label inline with the icon and badge'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427983598538298750)
,p_theme_id=>42
,p_name=>'LABEL_ABOVE_LG'
,p_display_name=>'Display labels above'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(30500763884665981)
,p_css_classes=>'t-NavTabs--stacked'
,p_group_id=>wwv_flow_api.id(803407260902793669)
,p_template_types=>'LIST'
,p_help_text=>'Display the label stacked above the icon and badge'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427984314045298751)
,p_theme_id=>42
,p_name=>'DISPLAY_LABELS_SM'
,p_display_name=>'Display labels'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(30500763884665981)
,p_css_classes=>'t-NavTabs--displayLabels-sm'
,p_group_id=>wwv_flow_api.id(803410041235793671)
,p_template_types=>'LIST'
,p_help_text=>'Displays the label for the list items below the icon'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427985057789298751)
,p_theme_id=>42
,p_name=>'HIDE_LABELS_SM'
,p_display_name=>'Do not display labels'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(30500763884665981)
,p_css_classes=>'t-NavTabs--hiddenLabels-sm'
,p_group_id=>wwv_flow_api.id(803410041235793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427991734545298758)
,p_theme_id=>42
,p_name=>'APPLY_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'u-colors'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427992374568298758)
,p_theme_id=>42
,p_name=>'CIRCULAR'
,p_display_name=>'Circular'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--circular'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(427993076131298759)
,p_theme_id=>42
,p_name=>'GRID'
,p_display_name=>'Grid'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--dash'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(428003424638298767)
,p_theme_id=>42
,p_name=>'BLOCK'
,p_display_name=>'Block'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--featured t-Cards--block force-fa-lg'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(428003788336298767)
,p_theme_id=>42
,p_name=>'DISPLAY_SUBTITLE'
,p_display_name=>'Display Subtitle'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--displaySubtitle'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(476708482584977100)
,p_theme_id=>42
,p_name=>'USE_COMPACT_STYLE'
,p_display_name=>'Use Compact Style'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585442034806301480)
,p_css_classes=>'t-BreadcrumbRegion--compactTitle'
,p_template_types=>'REGION'
,p_help_text=>'Uses a compact style for the breadcrumbs.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(476781404395977156)
,p_theme_id=>42
,p_name=>'LARGE'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(30540929466666010)
,p_css_classes=>'t-MediaList--large force-fa-lg'
,p_group_id=>wwv_flow_api.id(803436806003793693)
,p_template_types=>'REPORT'
,p_help_text=>'Increases the size of the text and icons in the list.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(551057253897962271)
,p_theme_id=>42
,p_name=>'STRETCH_TO_FIT_WINDOW'
,p_display_name=>'Stretch to Fit Window'
,p_display_sequence=>1
,p_page_template_id=>wwv_flow_api.id(1585412598544301427)
,p_css_classes=>'ui-dialog--stretch'
,p_template_types=>'PAGE'
,p_help_text=>'Stretch the dialog to fit the browser window.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(551075014423962286)
,p_theme_id=>42
,p_name=>'STRETCH_TO_FIT_WINDOW'
,p_display_name=>'Stretch to Fit Window'
,p_display_sequence=>10
,p_page_template_id=>wwv_flow_api.id(1585425334760301448)
,p_css_classes=>'ui-dialog--stretch'
,p_template_types=>'PAGE'
,p_help_text=>'Stretch the dialog to fit the browser window.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(551124888385962344)
,p_theme_id=>42
,p_name=>'TEXT_CONTENT'
,p_display_name=>'Text Content'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--textContent'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Useful for displaying primarily text-based content, such as FAQs and more.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573279612717649622)
,p_theme_id=>42
,p_name=>'DISPLAY_MENU_CALLOUT'
,p_display_name=>'Display Menu Callout'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'js-menu-callout'
,p_template_types=>'LIST'
,p_help_text=>'Displays a callout arrow that points to where the menu was activated from.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573280041265649623)
,p_theme_id=>42
,p_name=>'FULL_WIDTH'
,p_display_name=>'Full Width'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--fullWidth'
,p_template_types=>'LIST'
,p_help_text=>'Stretches the menu to fill the width of the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573280428336649623)
,p_theme_id=>42
,p_name=>'2_COLUMNS'
,p_display_name=>'2 Columns'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layout2Cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573280890970649623)
,p_theme_id=>42
,p_name=>'3_COLUMNS'
,p_display_name=>'3 Columns'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layout3Cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573281243482649623)
,p_theme_id=>42
,p_name=>'4_COLUMNS'
,p_display_name=>'4 Columns'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layout4Cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573281628595649623)
,p_theme_id=>42
,p_name=>'5_COLUMNS'
,p_display_name=>'5 Columns'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layout5Cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573282092763649624)
,p_theme_id=>42
,p_name=>'CUSTOM'
,p_display_name=>'Custom'
,p_display_sequence=>60
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layoutCustom'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(573282456859649624)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>60
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'t-MegaMenu--layoutStacked'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(578264899497279605)
,p_theme_id=>42
,p_name=>'AUTO_HEIGHT_INLINE_DIALOG'
,p_display_name=>'Auto Height'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-dialog-autoheight'
,p_template_types=>'REGION'
,p_help_text=>'This option will set the height of the dialog to fit its contents.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619035586208565164)
,p_theme_id=>42
,p_name=>'PAGE_BACKGROUND_3'
,p_display_name=>'Background 3'
,p_display_sequence=>30
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_css_classes=>'t-LoginPage--bg3'
,p_group_id=>wwv_flow_api.id(803412038921793672)
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619036227316565164)
,p_theme_id=>42
,p_name=>'PAGE_LAYOUT_SPLIT'
,p_display_name=>'Split'
,p_display_sequence=>1
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_css_classes=>'t-LoginPage--split'
,p_group_id=>wwv_flow_api.id(803412430947793672)
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619036971926565165)
,p_theme_id=>42
,p_name=>'PAGE_BACKGROUND_1'
,p_display_name=>'Background 1'
,p_display_sequence=>10
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_css_classes=>'t-LoginPage--bg1'
,p_group_id=>wwv_flow_api.id(803412038921793672)
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619037601182565165)
,p_theme_id=>42
,p_name=>'PAGE_BACKGROUND_2'
,p_display_name=>'Background 2'
,p_display_sequence=>20
,p_page_template_id=>wwv_flow_api.id(1585402501526301404)
,p_css_classes=>'t-LoginPage--bg2'
,p_group_id=>wwv_flow_api.id(803412038921793672)
,p_template_types=>'PAGE'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619136939748565238)
,p_theme_id=>42
,p_name=>'DISPLAY_POPUP_CALLOUT'
,p_display_name=>'Display Popup Callout'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-callout'
,p_template_types=>'REGION'
,p_help_text=>'Use this option to add display a callout for the popup. Note that callout will only be displayed if the data-parent-element custom attribute is defined.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619137670221565238)
,p_theme_id=>42
,p_name=>'BEFORE'
,p_display_name=>'Before'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-pos-before'
,p_group_id=>wwv_flow_api.id(803416875868793680)
,p_template_types=>'REGION'
,p_help_text=>'Positions the callout before or typically to the left of the parent.'
);
end;
/
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619138349429565239)
,p_theme_id=>42
,p_name=>'AFTER'
,p_display_name=>'After'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-pos-after'
,p_group_id=>wwv_flow_api.id(803416875868793680)
,p_template_types=>'REGION'
,p_help_text=>'Positions the callout after or typically to the right of the parent.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619139008667565239)
,p_theme_id=>42
,p_name=>'ABOVE'
,p_display_name=>'Above'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-pos-above'
,p_group_id=>wwv_flow_api.id(803416875868793680)
,p_template_types=>'REGION'
,p_help_text=>'Positions the callout above or typically on top of the parent.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619139786376565239)
,p_theme_id=>42
,p_name=>'BELOW'
,p_display_name=>'Below'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-pos-below'
,p_group_id=>wwv_flow_api.id(803416875868793680)
,p_template_types=>'REGION'
,p_help_text=>'Positions the callout below or typically to the bottom of the parent.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619140434268565240)
,p_theme_id=>42
,p_name=>'INSIDE'
,p_display_name=>'Inside'
,p_display_sequence=>50
,p_region_template_id=>wwv_flow_api.id(135476605210050698)
,p_css_classes=>'js-popup-pos-inside'
,p_group_id=>wwv_flow_api.id(803416875868793680)
,p_template_types=>'REGION'
,p_help_text=>'Positions the callout inside of the parent. This is useful when the parent is sufficiently large, such as a report or large region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619149854627565247)
,p_theme_id=>42
,p_name=>'LOGIN_HEADER_ICON'
,p_display_name=>'Icon'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585438175786301473)
,p_css_classes=>'t-Login-region--headerIcon'
,p_group_id=>wwv_flow_api.id(803424033431793684)
,p_template_types=>'REGION'
,p_help_text=>'Displays only the Region Icon in the Login region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619150579887565247)
,p_theme_id=>42
,p_name=>'LOGIN_HEADER_TITLE'
,p_display_name=>'Title'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585438175786301473)
,p_css_classes=>'t-Login-region--headerTitle js-removeLandmark'
,p_group_id=>wwv_flow_api.id(803424033431793684)
,p_template_types=>'REGION'
,p_help_text=>'Displays only the Region Title in the Login region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619151298896565248)
,p_theme_id=>42
,p_name=>'LOGO_HEADER_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585438175786301473)
,p_css_classes=>'t-Login-region--headerHidden js-removeLandmark'
,p_group_id=>wwv_flow_api.id(803424033431793684)
,p_template_types=>'REGION'
,p_help_text=>'Hides both the Region Icon and Title from the Login region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619215453806565297)
,p_theme_id=>42
,p_name=>'DISPLAY_MENU_CALLOUT'
,p_display_name=>'Display Menu Callout'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585459511629301525)
,p_css_classes=>'js-menu-callout'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add display a callout for the menu.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619217641608565299)
,p_theme_id=>42
,p_name=>'DISPLAY_MENU_CALLOUT'
,p_display_name=>'Display Menu Callout'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(2145218821934365172)
,p_css_classes=>'js-menu-callout'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add display a callout for the menu. Note that callout will only be displayed if the data-parent-element custom attribute is defined.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619218993803565300)
,p_theme_id=>42
,p_name=>'DISPLAY_MENU_CALLOUT'
,p_display_name=>'Display Menu Callout'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460352336301527)
,p_css_classes=>'js-menu-callout'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add display a callout for the menu.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619220246582565301)
,p_theme_id=>42
,p_name=>'ICON_DEFAULT'
,p_display_name=>'Icon (Default)'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'js-navCollapsed--default'
,p_group_id=>wwv_flow_api.id(803406452991793668)
,p_template_types=>'LIST'
,p_help_text=>'Display icons when the navigation menu is collapsed for large screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619220958939565302)
,p_theme_id=>42
,p_name=>'COLLAPSE_STYLE_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'js-navCollapsed--hidden'
,p_group_id=>wwv_flow_api.id(803406452991793668)
,p_template_types=>'LIST'
,p_help_text=>'Completely hide the navigation menu when it is collapsed.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619229498846565308)
,p_theme_id=>42
,p_name=>'DISPLAY_MENU_CALLOUT'
,p_display_name=>'Display Menu Callout'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585459740338301526)
,p_css_classes=>'js-menu-callout'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add display a callout for the menu.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619286922636565355)
,p_theme_id=>42
,p_name=>'ACTIONS_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>60
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideActions'
,p_group_id=>wwv_flow_api.id(803430003518793688)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Actions column from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619287380466565355)
,p_theme_id=>42
,p_name=>'ALIGNMENT_TOP'
,p_display_name=>'Top'
,p_display_sequence=>100
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--alignTop'
,p_group_id=>wwv_flow_api.id(803432828928793690)
,p_template_types=>'REPORT'
,p_help_text=>'Aligns the content to the top of the row. This is useful when you expect that yours rows will vary in height (e.g. some rows will have longer descriptions than others).'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619287744903565355)
,p_theme_id=>42
,p_name=>'DESCRIPTION_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideDescription'
,p_group_id=>wwv_flow_api.id(803430459408793689)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Description from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619288191632565355)
,p_theme_id=>42
,p_name=>'ICON_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideIcon'
,p_group_id=>wwv_flow_api.id(803431262630793689)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Icon from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619288577985565356)
,p_theme_id=>42
,p_name=>'MISC_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideMisc'
,p_group_id=>wwv_flow_api.id(803431692093793689)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Misc column from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619288983667565356)
,p_theme_id=>42
,p_name=>'SELECTION_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideSelection'
,p_group_id=>wwv_flow_api.id(803432038141793690)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Selection column from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619289332828565356)
,p_theme_id=>42
,p_name=>'STYLE_COMPACT'
,p_display_name=>'Compact'
,p_display_sequence=>1
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--styleCompact'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
,p_help_text=>'This option reduces the padding and font sizes to present a compact display of the same information.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(619289717649565356)
,p_theme_id=>42
,p_name=>'TITLE_HIDDEN'
,p_display_name=>'Hidden'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(619286465090565354)
,p_css_classes=>'t-ContentRow--hideTitle'
,p_group_id=>wwv_flow_api.id(803430882163793689)
,p_template_types=>'REPORT'
,p_help_text=>'Hides the Title from being rendered on the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646101069927262565)
,p_theme_id=>42
,p_name=>'HEADING_FONT_ALTERNATIVE'
,p_display_name=>'Alternative'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--headingFontAlt'
,p_group_id=>wwv_flow_api.id(803420037004793682)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646107125502262569)
,p_theme_id=>42
,p_name=>'HEADING_FONT_ALTERNATIVE'
,p_display_name=>'Alternative'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--headingFontAlt'
,p_group_id=>wwv_flow_api.id(803420037004793682)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646159394355262613)
,p_theme_id=>42
,p_name=>'HEADING_FONT_ALTERNATIVE'
,p_display_name=>'Alternative'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585442034806301480)
,p_css_classes=>'t-BreadcrumbRegion--headingFontAlt'
,p_group_id=>wwv_flow_api.id(803420037004793682)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646276549768262706)
,p_theme_id=>42
,p_name=>'INDICATOR_ASTERISK'
,p_display_name=>'Asterisk'
,p_display_sequence=>10
,p_field_template_id=>wwv_flow_api.id(1585461703939301539)
,p_css_classes=>'t-Form-fieldContainer--indicatorAsterisk'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays an asterisk * on required items.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646277226449262707)
,p_theme_id=>42
,p_name=>'INDICATOR_LABEL'
,p_display_name=>'Inline Label'
,p_display_sequence=>20
,p_field_template_id=>wwv_flow_api.id(1585461703939301539)
,p_css_classes=>'t-Form-fieldContainer--indicatorLabel'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays "Required" inline.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646279386652262708)
,p_theme_id=>42
,p_name=>'INDICATOR_ASTERISK'
,p_display_name=>'Asterisk'
,p_display_sequence=>10
,p_field_template_id=>wwv_flow_api.id(1585461831025301540)
,p_css_classes=>'t-Form-fieldContainer--indicatorAsterisk'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays an asterisk * on required items.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646280096025262709)
,p_theme_id=>42
,p_name=>'INDICATOR_LABEL'
,p_display_name=>'Inline Label'
,p_display_sequence=>20
,p_field_template_id=>wwv_flow_api.id(1585461831025301540)
,p_css_classes=>'t-Form-fieldContainer--indicatorLabel'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays "Required" inline.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646282133723262710)
,p_theme_id=>42
,p_name=>'INDICATOR_ASTERISK'
,p_display_name=>'Asterisk'
,p_display_sequence=>10
,p_field_template_id=>wwv_flow_api.id(273970255918342221)
,p_css_classes=>'t-Form-fieldContainer--indicatorAsterisk'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays an asterisk * on required items.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(646282868670262711)
,p_theme_id=>42
,p_name=>'INDICATOR_LABEL'
,p_display_name=>'Inline Label'
,p_display_sequence=>20
,p_field_template_id=>wwv_flow_api.id(273970255918342221)
,p_css_classes=>'t-Form-fieldContainer--indicatorLabel'
,p_group_id=>wwv_flow_api.id(803403625112793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays "Required" inline.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702386271127550536)
,p_theme_id=>42
,p_name=>'APPLY_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(702385725868550535)
,p_css_classes=>'u-colors'
,p_template_types=>'REGION'
,p_help_text=>'Applies the colors from the theme''s color palette to the icons or initials within cards.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702386630601550536)
,p_theme_id=>42
,p_name=>'STYLE_A'
,p_display_name=>'Style A'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(702385725868550535)
,p_css_classes=>'t-CardsRegion--styleA'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702387007017550536)
,p_theme_id=>42
,p_name=>'STYLE_B'
,p_display_name=>'Style B'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(702385725868550535)
,p_css_classes=>'t-CardsRegion--styleB'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702387491524550536)
,p_theme_id=>42
,p_name=>'STYLE_C'
,p_display_name=>'Style C'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(702385725868550535)
,p_css_classes=>'t-CardsRegion--styleC'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702423483972550565)
,p_theme_id=>42
,p_name=>'ADD_ACTIONS'
,p_display_name=>'Add Actions'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_css_classes=>'js-addActions'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add shortcuts for menu items. Note that actions.js must be included on your page to support this functionality.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(702432225348550573)
,p_theme_id=>42
,p_name=>'ADD_ACTIONS'
,p_display_name=>'Add Actions'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(573279157754649621)
,p_css_classes=>'js-addActions'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add shortcuts for menu items. Note that actions.js must be included on your page to support this functionality.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(751406272231146459)
,p_theme_id=>42
,p_name=>'FEATURED'
,p_display_name=>'Featured'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--featured'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(751406981445146459)
,p_theme_id=>42
,p_name=>'DISPLAY_ICON_NO'
,p_display_name=>'No'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--hideIcon'
,p_group_id=>wwv_flow_api.id(803418890634793681)
,p_template_types=>'REGION'
,p_help_text=>'Hide the Hero Region icon.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(751407693583146460)
,p_theme_id=>42
,p_name=>'STACKED_FEATURED'
,p_display_name=>'Stacked Featured'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--featured t-HeroRegion--centered'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784693858604631288)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585396013907301385)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784702967782631297)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585398988854301399)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784714090371631304)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585405975288301409)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784721451372631308)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585409957961301416)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784733217111631316)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585419502571301435)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784740497092631323)
,p_theme_id=>42
,p_name=>'STICKY_HEADER_ON_MOBILE'
,p_display_name=>'Sticky Header on Mobile'
,p_display_sequence=>100
,p_page_template_id=>wwv_flow_api.id(1585422579688301441)
,p_css_classes=>'js-pageStickyMobileHeader'
,p_template_types=>'PAGE'
,p_help_text=>'This will position the contents of the Breadcrumb Bar region position so it sticks to the top of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(784757371841631335)
,p_theme_id=>42
,p_name=>'STICK_TO_BOTTOM'
,p_display_name=>'Stick to Bottom for Mobile'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585428806883301455)
,p_css_classes=>'t-ButtonRegion--stickToBottom'
,p_template_types=>'REGION'
,p_help_text=>'This will position the button container region to the bottom of the screen for small screens.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803460712846793712)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL_H1'
,p_display_name=>'H1'
,p_display_sequence=>10
,p_css_classes=>'js-headingLevel-1'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H1'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803461455663793713)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL_H2'
,p_display_name=>'H2'
,p_display_sequence=>20
,p_css_classes=>'js-headingLevel-2'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H2'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803462149167793713)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL_H3'
,p_display_name=>'H3'
,p_display_sequence=>30
,p_css_classes=>'js-headingLevel-3'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H3'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803462853995793714)
,p_theme_id=>42
,p_name=>'H4'
,p_display_name=>'H4'
,p_display_sequence=>40
,p_css_classes=>'js-headingLevel-4'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H4'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803463589952793715)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL_H5'
,p_display_name=>'H5'
,p_display_sequence=>50
,p_css_classes=>'js-headingLevel-5'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H5'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803464213872793715)
,p_theme_id=>42
,p_name=>'HEADING_LEVEL_H6'
,p_display_name=>'H6'
,p_display_sequence=>60
,p_css_classes=>'js-headingLevel-6'
,p_group_id=>wwv_flow_api.id(803420408010793682)
,p_template_types=>'REGION'
,p_help_text=>'H6'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803464947693793716)
,p_theme_id=>42
,p_name=>'FBM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-bottom-lg'
,p_group_id=>wwv_flow_api.id(803401279648793665)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a large bottom margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803465627067793716)
,p_theme_id=>42
,p_name=>'RBM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-bottom-lg'
,p_group_id=>wwv_flow_api.id(803424460258793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a large bottom margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803466355544793717)
,p_theme_id=>42
,p_name=>'FBM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-bottom-md'
,p_group_id=>wwv_flow_api.id(803401279648793665)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a medium bottom margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803467094458793717)
,p_theme_id=>42
,p_name=>'RBM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-bottom-md'
,p_group_id=>wwv_flow_api.id(803424460258793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a medium bottom margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803467733514793718)
,p_theme_id=>42
,p_name=>'FBM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-bottom-none'
,p_group_id=>wwv_flow_api.id(803401279648793665)
,p_template_types=>'FIELD'
,p_help_text=>'Removes the bottom margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803468492292793719)
,p_theme_id=>42
,p_name=>'RBM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-bottom-none'
,p_group_id=>wwv_flow_api.id(803424460258793685)
,p_template_types=>'REGION'
,p_help_text=>'Removes the bottom margin for this region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803469152002793719)
,p_theme_id=>42
,p_name=>'FBM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-bottom-sm'
,p_group_id=>wwv_flow_api.id(803401279648793665)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a small bottom margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803469821323793720)
,p_theme_id=>42
,p_name=>'RBM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-bottom-sm'
,p_group_id=>wwv_flow_api.id(803424460258793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a small bottom margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803470549695793720)
,p_theme_id=>42
,p_name=>'FLM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-left-lg'
,p_group_id=>wwv_flow_api.id(803402432358793666)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a large left margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803471227007793721)
,p_theme_id=>42
,p_name=>'RLM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-left-lg'
,p_group_id=>wwv_flow_api.id(803424832086793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a large right margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803471998857793721)
,p_theme_id=>42
,p_name=>'FLM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-left-md'
,p_group_id=>wwv_flow_api.id(803402432358793666)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a medium left margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803472587902793722)
,p_theme_id=>42
,p_name=>'RLM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-left-md'
,p_group_id=>wwv_flow_api.id(803424832086793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a medium right margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803473215502793722)
,p_theme_id=>42
,p_name=>'FLM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-left-none'
,p_group_id=>wwv_flow_api.id(803402432358793666)
,p_template_types=>'FIELD'
,p_help_text=>'Removes the left margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803473992724793723)
,p_theme_id=>42
,p_name=>'RLM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-left-none'
,p_group_id=>wwv_flow_api.id(803424832086793685)
,p_template_types=>'REGION'
,p_help_text=>'Removes the left margin from the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803474667983793724)
,p_theme_id=>42
,p_name=>'FLM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-left-sm'
,p_group_id=>wwv_flow_api.id(803402432358793666)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a small left margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803475337815793724)
,p_theme_id=>42
,p_name=>'RLM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-left-sm'
,p_group_id=>wwv_flow_api.id(803424832086793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a small left margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803476042141793725)
,p_theme_id=>42
,p_name=>'FRM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-right-lg'
,p_group_id=>wwv_flow_api.id(803404076422793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a large right margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803476765347793726)
,p_theme_id=>42
,p_name=>'RRM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-right-lg'
,p_group_id=>wwv_flow_api.id(803425221894793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a large right margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803477401367793726)
,p_theme_id=>42
,p_name=>'FRM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-right-md'
,p_group_id=>wwv_flow_api.id(803404076422793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a medium right margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803478120711793727)
,p_theme_id=>42
,p_name=>'RRM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-right-md'
,p_group_id=>wwv_flow_api.id(803425221894793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a medium right margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803478865561793728)
,p_theme_id=>42
,p_name=>'FRM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-right-none'
,p_group_id=>wwv_flow_api.id(803404076422793667)
,p_template_types=>'FIELD'
,p_help_text=>'Removes the right margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803479532054793728)
,p_theme_id=>42
,p_name=>'RRM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-right-none'
,p_group_id=>wwv_flow_api.id(803425221894793685)
,p_template_types=>'REGION'
,p_help_text=>'Removes the right margin from the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803480231105793729)
,p_theme_id=>42
,p_name=>'FRM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-right-sm'
,p_group_id=>wwv_flow_api.id(803404076422793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a small right margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803480970810793729)
,p_theme_id=>42
,p_name=>'RRM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-right-sm'
,p_group_id=>wwv_flow_api.id(803425221894793685)
,p_template_types=>'REGION'
,p_help_text=>'Adds a small right margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803481622130793730)
,p_theme_id=>42
,p_name=>'FTM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-top-lg'
,p_group_id=>wwv_flow_api.id(803404867201793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a large top margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803482387030793730)
,p_theme_id=>42
,p_name=>'RTM_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>40
,p_css_classes=>'margin-top-lg'
,p_group_id=>wwv_flow_api.id(803426000632793686)
,p_template_types=>'REGION'
,p_help_text=>'Adds a large top margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803483032253793731)
,p_theme_id=>42
,p_name=>'FTM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-top-md'
,p_group_id=>wwv_flow_api.id(803404867201793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a medium top margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803483766239793731)
,p_theme_id=>42
,p_name=>'RTM_MEDIUM'
,p_display_name=>'Medium'
,p_display_sequence=>30
,p_css_classes=>'margin-top-md'
,p_group_id=>wwv_flow_api.id(803426000632793686)
,p_template_types=>'REGION'
,p_help_text=>'Adds a medium top margin to the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803484485590793732)
,p_theme_id=>42
,p_name=>'FTM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-top-none'
,p_group_id=>wwv_flow_api.id(803404867201793667)
,p_template_types=>'FIELD'
,p_help_text=>'Removes the top margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803485114087793733)
,p_theme_id=>42
,p_name=>'RTM_NONE'
,p_display_name=>'None'
,p_display_sequence=>10
,p_css_classes=>'margin-top-none'
,p_group_id=>wwv_flow_api.id(803426000632793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes the top margin for this region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803485871834793733)
,p_theme_id=>42
,p_name=>'FTM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-top-sm'
,p_group_id=>wwv_flow_api.id(803404867201793667)
,p_template_types=>'FIELD'
,p_help_text=>'Adds a small top margin for this field.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803486572677793737)
,p_theme_id=>42
,p_name=>'RTM_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'margin-top-sm'
,p_group_id=>wwv_flow_api.id(803426000632793686)
,p_template_types=>'REGION'
,p_help_text=>'Adds a small top margin to the region.'
);
end;
/
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803487292436793737)
,p_theme_id=>42
,p_name=>'DANGER'
,p_display_name=>'Danger'
,p_display_sequence=>30
,p_css_classes=>'t-Button--danger'
,p_group_id=>wwv_flow_api.id(803400428676793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803487968581793738)
,p_theme_id=>42
,p_name=>'LARGEBOTTOMMARGIN'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_css_classes=>'t-Button--gapBottom'
,p_group_id=>wwv_flow_api.id(803398451826793663)
,p_template_types=>'BUTTON'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803488629779793738)
,p_theme_id=>42
,p_name=>'LARGELEFTMARGIN'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_css_classes=>'t-Button--gapLeft'
,p_group_id=>wwv_flow_api.id(803398844213793663)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803489302414793739)
,p_theme_id=>42
,p_name=>'LARGERIGHTMARGIN'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_css_classes=>'t-Button--gapRight'
,p_group_id=>wwv_flow_api.id(803399256855793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803490075253793739)
,p_theme_id=>42
,p_name=>'LARGETOPMARGIN'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_css_classes=>'t-Button--gapTop'
,p_group_id=>wwv_flow_api.id(803399608778793664)
,p_template_types=>'BUTTON'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803490708438793740)
,p_theme_id=>42
,p_name=>'LARGE'
,p_display_name=>'Large'
,p_display_sequence=>30
,p_css_classes=>'t-Button--large'
,p_group_id=>wwv_flow_api.id(803398013924793663)
,p_template_types=>'BUTTON'
,p_help_text=>'A large button.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803491431886793740)
,p_theme_id=>42
,p_name=>'DISPLAY_AS_LINK'
,p_display_name=>'Display as Link'
,p_display_sequence=>30
,p_css_classes=>'t-Button--link'
,p_group_id=>wwv_flow_api.id(803400075536793664)
,p_template_types=>'BUTTON'
,p_help_text=>'This option makes the button appear as a text link.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803492121424793741)
,p_theme_id=>42
,p_name=>'NOUI'
,p_display_name=>'Remove UI Decoration'
,p_display_sequence=>20
,p_css_classes=>'t-Button--noUI'
,p_group_id=>wwv_flow_api.id(803400075536793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803492806468793742)
,p_theme_id=>42
,p_name=>'SMALLBOTTOMMARGIN'
,p_display_name=>'Small'
,p_display_sequence=>10
,p_css_classes=>'t-Button--padBottom'
,p_group_id=>wwv_flow_api.id(803398451826793663)
,p_template_types=>'BUTTON'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803493596210793742)
,p_theme_id=>42
,p_name=>'SMALLLEFTMARGIN'
,p_display_name=>'Small'
,p_display_sequence=>10
,p_css_classes=>'t-Button--padLeft'
,p_group_id=>wwv_flow_api.id(803398844213793663)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803494269972793743)
,p_theme_id=>42
,p_name=>'SMALLRIGHTMARGIN'
,p_display_name=>'Small'
,p_display_sequence=>10
,p_css_classes=>'t-Button--padRight'
,p_group_id=>wwv_flow_api.id(803399256855793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803494953033793743)
,p_theme_id=>42
,p_name=>'SMALLTOPMARGIN'
,p_display_name=>'Small'
,p_display_sequence=>10
,p_css_classes=>'t-Button--padTop'
,p_group_id=>wwv_flow_api.id(803399608778793664)
,p_template_types=>'BUTTON'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803495663653793744)
,p_theme_id=>42
,p_name=>'PILL'
,p_display_name=>'Inner Button'
,p_display_sequence=>20
,p_css_classes=>'t-Button--pill'
,p_group_id=>wwv_flow_api.id(803396803092793662)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803496365076793744)
,p_theme_id=>42
,p_name=>'PILLEND'
,p_display_name=>'Last Button'
,p_display_sequence=>30
,p_css_classes=>'t-Button--pillEnd'
,p_group_id=>wwv_flow_api.id(803396803092793662)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803497022069793745)
,p_theme_id=>42
,p_name=>'PILLSTART'
,p_display_name=>'First Button'
,p_display_sequence=>10
,p_css_classes=>'t-Button--pillStart'
,p_group_id=>wwv_flow_api.id(803396803092793662)
,p_template_types=>'BUTTON'
,p_help_text=>'Use this for the start of a pill button.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803497734236793745)
,p_theme_id=>42
,p_name=>'PRIMARY'
,p_display_name=>'Primary'
,p_display_sequence=>10
,p_css_classes=>'t-Button--primary'
,p_group_id=>wwv_flow_api.id(803400428676793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803498435447793746)
,p_theme_id=>42
,p_name=>'SIMPLE'
,p_display_name=>'Simple'
,p_display_sequence=>10
,p_css_classes=>'t-Button--simple'
,p_group_id=>wwv_flow_api.id(803400075536793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803499101717793747)
,p_theme_id=>42
,p_name=>'SMALL'
,p_display_name=>'Small'
,p_display_sequence=>20
,p_css_classes=>'t-Button--small'
,p_group_id=>wwv_flow_api.id(803398013924793663)
,p_template_types=>'BUTTON'
,p_help_text=>'A small button.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803499864540793747)
,p_theme_id=>42
,p_name=>'STRETCH'
,p_display_name=>'Stretch'
,p_display_sequence=>10
,p_css_classes=>'t-Button--stretch'
,p_group_id=>wwv_flow_api.id(803400889650793665)
,p_template_types=>'BUTTON'
,p_help_text=>'Stretches button to fill container'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803500514227793748)
,p_theme_id=>42
,p_name=>'SUCCESS'
,p_display_name=>'Success'
,p_display_sequence=>40
,p_css_classes=>'t-Button--success'
,p_group_id=>wwv_flow_api.id(803400428676793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803501218497793748)
,p_theme_id=>42
,p_name=>'TINY'
,p_display_name=>'Tiny'
,p_display_sequence=>10
,p_css_classes=>'t-Button--tiny'
,p_group_id=>wwv_flow_api.id(803398013924793663)
,p_template_types=>'BUTTON'
,p_help_text=>'A very small button.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803501981884793749)
,p_theme_id=>42
,p_name=>'WARNING'
,p_display_name=>'Warning'
,p_display_sequence=>20
,p_css_classes=>'t-Button--warning'
,p_group_id=>wwv_flow_api.id(803400428676793664)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803502650528793750)
,p_theme_id=>42
,p_name=>'SHOWFORMLABELSABOVE'
,p_display_name=>'Show Form Labels Above'
,p_display_sequence=>10
,p_css_classes=>'t-Form--labelsAbove'
,p_group_id=>wwv_flow_api.id(803423247079793684)
,p_template_types=>'REGION'
,p_help_text=>'Show form labels above input fields.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803503388743793750)
,p_theme_id=>42
,p_name=>'FORMSIZELARGE'
,p_display_name=>'Large'
,p_display_sequence=>10
,p_css_classes=>'t-Form--large'
,p_group_id=>wwv_flow_api.id(803422033178793683)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803504027929793751)
,p_theme_id=>42
,p_name=>'FORMLEFTLABELS'
,p_display_name=>'Left'
,p_display_sequence=>20
,p_css_classes=>'t-Form--leftLabels'
,p_group_id=>wwv_flow_api.id(803422883332793684)
,p_template_types=>'REGION'
,p_help_text=>'Align form labels to left.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803504782456793755)
,p_theme_id=>42
,p_name=>'FORMREMOVEPADDING'
,p_display_name=>'None'
,p_display_sequence=>20
,p_css_classes=>'t-Form--noPadding'
,p_group_id=>wwv_flow_api.id(803421605292793683)
,p_template_types=>'REGION'
,p_help_text=>'Removes spacing between items.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803505498020793755)
,p_theme_id=>42
,p_name=>'FORMSLIMPADDING'
,p_display_name=>'Slim'
,p_display_sequence=>10
,p_css_classes=>'t-Form--slimPadding'
,p_group_id=>wwv_flow_api.id(803421605292793683)
,p_template_types=>'REGION'
,p_help_text=>'Reduces form item spacing.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803506153693793756)
,p_theme_id=>42
,p_name=>'FORMSTANDARDPADDING'
,p_display_name=>'Standard'
,p_display_sequence=>5
,p_css_classes=>'t-Form--standardPadding'
,p_group_id=>wwv_flow_api.id(803421605292793683)
,p_template_types=>'REGION'
,p_help_text=>'Uses the standard spacing between items.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803506837439793756)
,p_theme_id=>42
,p_name=>'STRETCH_FORM_FIELDS'
,p_display_name=>'Stretch Form Fields'
,p_display_sequence=>10
,p_css_classes=>'t-Form--stretchInputs'
,p_group_id=>wwv_flow_api.id(803422450875793683)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803507584641793757)
,p_theme_id=>42
,p_name=>'FORMSIZEXLARGE'
,p_display_name=>'X Large'
,p_display_sequence=>20
,p_css_classes=>'t-Form--xlarge'
,p_group_id=>wwv_flow_api.id(803422033178793683)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803508231064793757)
,p_theme_id=>42
,p_name=>'LARGE_FIELD'
,p_display_name=>'Large'
,p_display_sequence=>10
,p_css_classes=>'t-Form-fieldContainer--large'
,p_group_id=>wwv_flow_api.id(803404480584793667)
,p_template_types=>'FIELD'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803508997723793758)
,p_theme_id=>42
,p_name=>'POST_TEXT_BLOCK'
,p_display_name=>'Display as Block'
,p_display_sequence=>10
,p_css_classes=>'t-Form-fieldContainer--postTextBlock'
,p_group_id=>wwv_flow_api.id(803401666789793665)
,p_template_types=>'FIELD'
,p_help_text=>'Displays the Item Post Text in a block style immediately after the item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803509691576793759)
,p_theme_id=>42
,p_name=>'PRE_TEXT_BLOCK'
,p_display_name=>'Display as Block'
,p_display_sequence=>10
,p_css_classes=>'t-Form-fieldContainer--preTextBlock'
,p_group_id=>wwv_flow_api.id(803402065252793665)
,p_template_types=>'FIELD'
,p_help_text=>'Displays the Item Pre Text in a block style immediately before the item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803510323672793759)
,p_theme_id=>42
,p_name=>'DISPLAY_AS_PILL_BUTTON'
,p_display_name=>'Display as Pill Button'
,p_display_sequence=>10
,p_css_classes=>'t-Form-fieldContainer--radioButtonGroup'
,p_group_id=>wwv_flow_api.id(803403275394793666)
,p_template_types=>'FIELD'
,p_help_text=>'Displays the radio buttons to look like a button set / pill button. Note that the the radio buttons must all be in the same row for this option to work.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803510759327793759)
,p_theme_id=>42
,p_name=>'STRETCH_FORM_ITEM'
,p_display_name=>'Stretch Form Item'
,p_display_sequence=>10
,p_css_classes=>'t-Form-fieldContainer--stretchInputs'
,p_template_types=>'FIELD'
,p_help_text=>'Stretches the form item to fill its container.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803511444113793760)
,p_theme_id=>42
,p_name=>'X_LARGE_SIZE'
,p_display_name=>'X Large'
,p_display_sequence=>20
,p_css_classes=>'t-Form-fieldContainer--xlarge'
,p_group_id=>wwv_flow_api.id(803404480584793667)
,p_template_types=>'FIELD'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803512111374793761)
,p_theme_id=>42
,p_name=>'REMOVE_PADDING'
,p_display_name=>'Remove Padding'
,p_display_sequence=>1
,p_css_classes=>'t-PageBody--noContentPadding'
,p_group_id=>wwv_flow_api.id(803411283336793671)
,p_template_types=>'PAGE'
,p_help_text=>'Removes padding from the content region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803512817392793761)
,p_theme_id=>42
,p_name=>'HIDE_WHEN_ALL_ROWS_DISPLAYED'
,p_display_name=>'Hide when all rows displayed'
,p_display_sequence=>10
,p_css_classes=>'t-Report--hideNoPagination'
,p_group_id=>wwv_flow_api.id(803435677538793692)
,p_template_types=>'REPORT'
,p_help_text=>'This option will hide the pagination when all rows are displayed.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803610071929793873)
,p_theme_id=>42
,p_name=>'ACCENT_6'
,p_display_name=>'Accent 6'
,p_display_sequence=>60
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent6'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803610747270793873)
,p_theme_id=>42
,p_name=>'ACCENT_7'
,p_display_name=>'Accent 7'
,p_display_sequence=>70
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent7'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803611428506793874)
,p_theme_id=>42
,p_name=>'ACCENT_8'
,p_display_name=>'Accent 8'
,p_display_sequence=>80
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent8'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803612168244793875)
,p_theme_id=>42
,p_name=>'ACCENT_9'
,p_display_name=>'Accent 9'
,p_display_sequence=>90
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent9'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803612869508793875)
,p_theme_id=>42
,p_name=>'ACCENT_10'
,p_display_name=>'Accent 10'
,p_display_sequence=>100
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent10'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803613552082793876)
,p_theme_id=>42
,p_name=>'ACCENT_11'
,p_display_name=>'Accent 11'
,p_display_sequence=>110
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent11'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803614296632793876)
,p_theme_id=>42
,p_name=>'ACCENT_12'
,p_display_name=>'Accent 12'
,p_display_sequence=>120
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent12'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803614984974793877)
,p_theme_id=>42
,p_name=>'ACCENT_13'
,p_display_name=>'Accent 13'
,p_display_sequence=>130
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent13'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803615647227793878)
,p_theme_id=>42
,p_name=>'ACCENT_14'
,p_display_name=>'Accent 14'
,p_display_sequence=>140
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent14'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803616372147793878)
,p_theme_id=>42
,p_name=>'ACCENT_15'
,p_display_name=>'Accent 15'
,p_display_sequence=>150
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent15'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803801185559794054)
,p_theme_id=>42
,p_name=>'DISPLAY_ITEMS_STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>1
,p_report_template_id=>wwv_flow_api.id(803800641838794051)
,p_css_classes=>'t-ContextualInfo-item--stacked'
,p_group_id=>wwv_flow_api.id(803433220817793690)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(803801524426794054)
,p_theme_id=>42
,p_name=>'DISPLAY_LABELS_STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>1
,p_report_template_id=>wwv_flow_api.id(803800641838794051)
,p_css_classes=>'t-ContextualInfo-label--stacked'
,p_group_id=>wwv_flow_api.id(803433657757793691)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123881711371459827)
,p_theme_id=>42
,p_name=>'HIDDENHEADERNOAT'
,p_display_name=>'Hidden'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--removeHeading js-removeLandmark'
,p_group_id=>wwv_flow_api.id(803414064665793678)
,p_template_types=>'REGION'
,p_help_text=>'Hides the Alert Title from being displayed.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123882468064459827)
,p_theme_id=>42
,p_name=>'HIDDENHEADER'
,p_display_name=>'Hidden but Accessible'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--accessibleHeading'
,p_group_id=>wwv_flow_api.id(803414064665793678)
,p_template_types=>'REGION'
,p_help_text=>'Visually hides the alert title, but assistive technologies can still read it.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123923579983459885)
,p_theme_id=>42
,p_name=>'REMOVE_BODY_PADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585434753825301461)
,p_css_classes=>'t-HeroRegion--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes the padding around the hero region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123955488202459938)
,p_theme_id=>42
,p_name=>'CONTENT_TITLE_H1'
,p_display_name=>'Large'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--h1'
,p_group_id=>wwv_flow_api.id(803425613540793685)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123955885728459939)
,p_theme_id=>42
,p_name=>'CONTENT_TITLE_H2'
,p_display_name=>'Medium'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--h2'
,p_group_id=>wwv_flow_api.id(803425613540793685)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123956367305459939)
,p_theme_id=>42
,p_name=>'CONTENT_TITLE_H3'
,p_display_name=>'Small'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--h3'
,p_group_id=>wwv_flow_api.id(803425613540793685)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123965715411459955)
,p_theme_id=>42
,p_name=>'CARDS_STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>5
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--stacked'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Stacks the cards on top of each other.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123966403354459956)
,p_theme_id=>42
,p_name=>'RAISE_CARD'
,p_display_name=>'Raise Card'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--animRaiseCard'
,p_group_id=>wwv_flow_api.id(803405242463793667)
,p_template_types=>'LIST'
,p_help_text=>'Raises the card so it pops up.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1123967077172459956)
,p_theme_id=>42
,p_name=>'COLOR_FILL'
,p_display_name=>'Color Fill'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--animColorFill'
,p_group_id=>wwv_flow_api.id(803405242463793667)
,p_template_types=>'LIST'
,p_help_text=>'Fills the card background with the color of the icon or default link style.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1124006265499460030)
,p_theme_id=>42
,p_name=>'CARD_RAISE_CARD'
,p_display_name=>'Raise Card'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--animRaiseCard'
,p_group_id=>wwv_flow_api.id(803428496015793687)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1124006940216460031)
,p_theme_id=>42
,p_name=>'CARDS_COLOR_FILL'
,p_display_name=>'Color Fill'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--animColorFill'
,p_group_id=>wwv_flow_api.id(803428496015793687)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1342718493290377315)
,p_theme_id=>42
,p_name=>'REMEMBER_COLLAPSIBLE_STATE'
,p_display_name=>'Remember Collapsible State'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'js-useLocalStorage'
,p_template_types=>'REGION'
,p_help_text=>'This option saves the current state of the collapsible region for the duration of the session.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1478459069986231805)
,p_theme_id=>42
,p_name=>'APPLY_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'u-colors'
,p_template_types=>'LIST'
,p_help_text=>'Applies colors from the Theme''s color palette to icons in the list.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1483649485203621545)
,p_theme_id=>42
,p_name=>'LIST_SIZE_LARGE'
,p_display_name=>'Large'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--large force-fa-lg'
,p_group_id=>wwv_flow_api.id(803410402664793671)
,p_template_types=>'LIST'
,p_help_text=>'Increases the size of the text and icons in the list.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488121187467999443)
,p_theme_id=>42
,p_name=>'ACCENT_10'
,p_display_name=>'Accent 10'
,p_display_sequence=>100
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent10'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488121877430999445)
,p_theme_id=>42
,p_name=>'ACCENT_11'
,p_display_name=>'Accent 11'
,p_display_sequence=>110
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent11'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488122598083999448)
,p_theme_id=>42
,p_name=>'ACCENT_15'
,p_display_name=>'Accent 15'
,p_display_sequence=>150
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent15'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488123296350999448)
,p_theme_id=>42
,p_name=>'ACCENT_7'
,p_display_name=>'Accent 7'
,p_display_sequence=>70
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent7'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488124039235999449)
,p_theme_id=>42
,p_name=>'ACCENT_6'
,p_display_name=>'Accent 6'
,p_display_sequence=>60
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent6'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488124755376999449)
,p_theme_id=>42
,p_name=>'ACCENT_13'
,p_display_name=>'Accent 13'
,p_display_sequence=>130
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent13'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488125446572999450)
,p_theme_id=>42
,p_name=>'ACCENT_8'
,p_display_name=>'Accent 8'
,p_display_sequence=>80
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent8'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488126159959999450)
,p_theme_id=>42
,p_name=>'ACCENT_9'
,p_display_name=>'Accent 9'
,p_display_sequence=>90
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent9'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488126771867999451)
,p_theme_id=>42
,p_name=>'ACCENT_14'
,p_display_name=>'Accent 14'
,p_display_sequence=>140
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent14'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1488127507566999451)
,p_theme_id=>42
,p_name=>'ACCENT_12'
,p_display_name=>'Accent 12'
,p_display_sequence=>120
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent12'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585427300105301452)
,p_theme_id=>42
,p_name=>'COLOREDBACKGROUND'
,p_display_name=>'Highlight Background'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--colorBG'
,p_template_types=>'REGION'
,p_help_text=>'Set alert background color to that of the alert type (warning, success, etc.)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585427638904301453)
,p_theme_id=>42
,p_name=>'DANGER'
,p_display_name=>'Danger'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--danger'
,p_group_id=>wwv_flow_api.id(803414437953793678)
,p_template_types=>'REGION'
,p_help_text=>'Show an error or danger alert.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585427962830301453)
,p_theme_id=>42
,p_name=>'HORIZONTAL'
,p_display_name=>'Horizontal'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--horizontal'
,p_group_id=>wwv_flow_api.id(803413297413793677)
,p_template_types=>'REGION'
,p_help_text=>'Show horizontal alert with buttons to the right.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585428052771301453)
,p_theme_id=>42
,p_name=>'INFORMATION'
,p_display_name=>'Information'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--info'
,p_group_id=>wwv_flow_api.id(803414437953793678)
,p_template_types=>'REGION'
,p_help_text=>'Show informational alert.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585428197864301453)
,p_theme_id=>42
,p_name=>'SUCCESS'
,p_display_name=>'Success'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--success'
,p_group_id=>wwv_flow_api.id(803414437953793678)
,p_template_types=>'REGION'
,p_help_text=>'Show success alert.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585428337108301453)
,p_theme_id=>42
,p_name=>'USEDEFAULTICONS'
,p_display_name=>'Show Default Icons'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--defaultIcons'
,p_group_id=>wwv_flow_api.id(803413678029793677)
,p_template_types=>'REGION'
,p_help_text=>'Uses default icons for alert types.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585428401892301453)
,p_theme_id=>42
,p_name=>'WARNING'
,p_display_name=>'Warning'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--warning'
,p_group_id=>wwv_flow_api.id(803414437953793678)
,p_template_types=>'REGION'
,p_help_text=>'Show a warning alert.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585428508348301453)
,p_theme_id=>42
,p_name=>'WIZARD'
,p_display_name=>'Wizard'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--wizard'
,p_group_id=>wwv_flow_api.id(803413297413793677)
,p_template_types=>'REGION'
,p_help_text=>'Show the alert in a wizard style region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585438074665301473)
,p_theme_id=>42
,p_name=>'REMOVEBORDERS'
,p_display_name=>'Remove Borders'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585437916338301471)
,p_css_classes=>'t-IRR-region--noBorders'
,p_template_types=>'REGION'
,p_help_text=>'Removes borders around the Interactive Report'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585442467005301482)
,p_theme_id=>42
,p_name=>'GET_TITLE_FROM_BREADCRUMB'
,p_display_name=>'Use Current Breadcrumb Entry'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585442034806301480)
,p_css_classes=>'t-BreadcrumbRegion--useBreadcrumbTitle'
,p_group_id=>wwv_flow_api.id(803425613540793685)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585442474141301482)
,p_theme_id=>42
,p_name=>'HIDE_BREADCRUMB'
,p_display_name=>'Show Breadcrumbs'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585442034806301480)
,p_css_classes=>'t-BreadcrumbRegion--showBreadcrumb'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585442616973301482)
,p_theme_id=>42
,p_name=>'REGION_HEADER_VISIBLE'
,p_display_name=>'Use Region Title'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585442034806301480)
,p_css_classes=>'t-BreadcrumbRegion--useRegionTitle'
,p_group_id=>wwv_flow_api.id(803425613540793685)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585443230569301483)
,p_theme_id=>42
,p_name=>'HIDESMALLSCREENS'
,p_display_name=>'Small Screens (Tablet)'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585442755734301482)
,p_css_classes=>'t-Wizard--hideStepsSmall'
,p_group_id=>wwv_flow_api.id(803420830867793682)
,p_template_types=>'REGION'
,p_help_text=>'Hides the wizard progress steps for screens that are smaller than 768px wide.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585443376790301483)
,p_theme_id=>42
,p_name=>'HIDEXSMALLSCREENS'
,p_display_name=>'X Small Screens (Mobile)'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585442755734301482)
,p_css_classes=>'t-Wizard--hideStepsXSmall'
,p_group_id=>wwv_flow_api.id(803420830867793682)
,p_template_types=>'REGION'
,p_help_text=>'Hides the wizard progress steps for screens that are smaller than 768px wide.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444149094301488)
,p_theme_id=>42
,p_name=>'128PX'
,p_display_name=>'128px'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--xxlarge'
,p_group_id=>wwv_flow_api.id(803428821295793688)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
end;
/
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444377678301488)
,p_theme_id=>42
,p_name=>'2COLUMNGRID'
,p_display_name=>'2 Column Grid'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_help_text=>'Arrange badges in a two column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444532149301488)
,p_theme_id=>42
,p_name=>'32PX'
,p_display_name=>'32px'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--small'
,p_group_id=>wwv_flow_api.id(803428821295793688)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444593590301488)
,p_theme_id=>42
,p_name=>'3COLUMNGRID'
,p_display_name=>'3 Column Grid'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--3cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_help_text=>'Arrange badges in a 3 column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444741105301488)
,p_theme_id=>42
,p_name=>'48PX'
,p_display_name=>'48px'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--medium'
,p_group_id=>wwv_flow_api.id(803428821295793688)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444823916301488)
,p_theme_id=>42
,p_name=>'4COLUMNGRID'
,p_display_name=>'4 Column Grid'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--4cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444949901301488)
,p_theme_id=>42
,p_name=>'5COLUMNGRID'
,p_display_name=>'5 Column Grid'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--5cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585444997875301488)
,p_theme_id=>42
,p_name=>'64PX'
,p_display_name=>'64px'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--large'
,p_group_id=>wwv_flow_api.id(803428821295793688)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585445167664301488)
,p_theme_id=>42
,p_name=>'96PX'
,p_display_name=>'96px'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--xlarge'
,p_group_id=>wwv_flow_api.id(803428821295793688)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585445256306301489)
,p_theme_id=>42
,p_name=>'FIXED'
,p_display_name=>'Span Horizontally'
,p_display_sequence=>60
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--fixed'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585445294275301489)
,p_theme_id=>42
,p_name=>'FLEXIBLEBOX'
,p_display_name=>'Flexible Box'
,p_display_sequence=>80
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--flex'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585445370627301489)
,p_theme_id=>42
,p_name=>'FLOATITEMS'
,p_display_name=>'Float Items'
,p_display_sequence=>70
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--float'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585445625459301489)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585443687402301486)
,p_css_classes=>'t-BadgeList--stacked'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446161119301494)
,p_theme_id=>42
,p_name=>'2_COLUMNS'
,p_display_name=>'2 Columns'
,p_display_sequence=>15
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446400471301495)
,p_theme_id=>42
,p_name=>'2_LINES'
,p_display_name=>'2 Lines'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--desc-2ln'
,p_group_id=>wwv_flow_api.id(803429221159793688)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446492116301495)
,p_theme_id=>42
,p_name=>'3_COLUMNS'
,p_display_name=>'3 Columns'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--3cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446611679301495)
,p_theme_id=>42
,p_name=>'3_LINES'
,p_display_name=>'3 Lines'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--desc-3ln'
,p_group_id=>wwv_flow_api.id(803429221159793688)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446686132301495)
,p_theme_id=>42
,p_name=>'4_COLUMNS'
,p_display_name=>'4 Columns'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--4cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446846917301495)
,p_theme_id=>42
,p_name=>'4_LINES'
,p_display_name=>'4 Lines'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--desc-4ln'
,p_group_id=>wwv_flow_api.id(803429221159793688)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585446925964301495)
,p_theme_id=>42
,p_name=>'5_COLUMNS'
,p_display_name=>'5 Columns'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--5cols'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447210926301495)
,p_theme_id=>42
,p_name=>'BASIC'
,p_display_name=>'Basic'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--basic'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447481805301496)
,p_theme_id=>42
,p_name=>'DISPLAY_ICONS'
,p_display_name=>'Display Icons'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--displayIcons'
,p_group_id=>wwv_flow_api.id(803434019282793691)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447615301301496)
,p_theme_id=>42
,p_name=>'DISPLAY_INITIALS'
,p_display_name=>'Display Initials'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--displayInitials'
,p_group_id=>wwv_flow_api.id(803434019282793691)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447673604301496)
,p_theme_id=>42
,p_name=>'FEATURED'
,p_display_name=>'Featured'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--featured force-fa-lg'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447806523301496)
,p_theme_id=>42
,p_name=>'FLOAT'
,p_display_name=>'Float'
,p_display_sequence=>60
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--float'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585447943785301496)
,p_theme_id=>42
,p_name=>'SPAN_HORIZONTALLY'
,p_display_name=>'Span Horizontally'
,p_display_sequence=>70
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--spanHorizontally'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585448231629301496)
,p_theme_id=>42
,p_name=>'USE_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'u-colors'
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585448714965301499)
,p_theme_id=>42
,p_name=>'BASIC'
,p_display_name=>'Basic'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585448283114301496)
,p_css_classes=>'t-Comments--basic'
,p_group_id=>wwv_flow_api.id(803432432273793690)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585448845619301499)
,p_theme_id=>42
,p_name=>'SPEECH_BUBBLES'
,p_display_name=>'Speech Bubbles'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585448283114301496)
,p_css_classes=>'t-Comments--chat'
,p_group_id=>wwv_flow_api.id(803432432273793690)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585449474476301503)
,p_theme_id=>42
,p_name=>'ALTROWCOLORSDISABLE'
,p_display_name=>'Disable'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--staticRowColors'
,p_group_id=>wwv_flow_api.id(803428057168793687)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585449614181301503)
,p_theme_id=>42
,p_name=>'ALTROWCOLORSENABLE'
,p_display_name=>'Enable'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--altRowsDefault'
,p_group_id=>wwv_flow_api.id(803428057168793687)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585449962108301503)
,p_theme_id=>42
,p_name=>'ENABLE'
,p_display_name=>'Enable'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--rowHighlight'
,p_group_id=>wwv_flow_api.id(803436462327793693)
,p_template_types=>'REPORT'
,p_help_text=>'Enable row highlighting on mouse over'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450190136301503)
,p_theme_id=>42
,p_name=>'HORIZONTALBORDERS'
,p_display_name=>'Horizontal Only'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--horizontalBorders'
,p_group_id=>wwv_flow_api.id(803436016196793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450304402301503)
,p_theme_id=>42
,p_name=>'REMOVEALLBORDERS'
,p_display_name=>'No Borders'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--noBorders'
,p_group_id=>wwv_flow_api.id(803436016196793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450425661301503)
,p_theme_id=>42
,p_name=>'REMOVEOUTERBORDERS'
,p_display_name=>'No Outer Borders'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--inline'
,p_group_id=>wwv_flow_api.id(803436016196793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450515279301503)
,p_theme_id=>42
,p_name=>'ROWHIGHLIGHTDISABLE'
,p_display_name=>'Disable'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--rowHighlightOff'
,p_group_id=>wwv_flow_api.id(803436462327793693)
,p_template_types=>'REPORT'
,p_help_text=>'Disable row highlighting on mouse over'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450634442301503)
,p_theme_id=>42
,p_name=>'STRETCHREPORT'
,p_display_name=>'Stretch Report'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--stretch'
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585450695395301503)
,p_theme_id=>42
,p_name=>'VERTICALBORDERS'
,p_display_name=>'Vertical Only'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585449137516301501)
,p_css_classes=>'t-Report--verticalBorders'
,p_group_id=>wwv_flow_api.id(803436016196793692)
,p_template_types=>'REPORT'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585452601117301509)
,p_theme_id=>42
,p_name=>'2COLUMNGRID'
,p_display_name=>'2 Column Grid'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Arrange badges in a two column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585452729356301509)
,p_theme_id=>42
,p_name=>'3COLUMNGRID'
,p_display_name=>'3 Column Grid'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--3cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Arrange badges in a 3 column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585452866280301509)
,p_theme_id=>42
,p_name=>'4COLUMNGRID'
,p_display_name=>'4 Column Grid'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--4cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Arrange badges in 4 column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585452892892301509)
,p_theme_id=>42
,p_name=>'5COLUMNGRID'
,p_display_name=>'5 Column Grid'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--cols t-BadgeList--5cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Arrange badges in a 5 column grid'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453033669301509)
,p_theme_id=>42
,p_name=>'FIXED'
,p_display_name=>'Span Horizontally'
,p_display_sequence=>60
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--fixed'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Span badges horizontally'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453131791301512)
,p_theme_id=>42
,p_name=>'FLEXIBLEBOX'
,p_display_name=>'Flexible Box'
,p_display_sequence=>80
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--flex'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Use flexbox to arrange items'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453194790301512)
,p_theme_id=>42
,p_name=>'FLOATITEMS'
,p_display_name=>'Float Items'
,p_display_sequence=>70
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--float'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Float badges to left'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453542569301512)
,p_theme_id=>42
,p_name=>'LARGE'
,p_display_name=>'64px'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--large'
,p_group_id=>wwv_flow_api.id(803405667907793668)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453617313301512)
,p_theme_id=>42
,p_name=>'MEDIUM'
,p_display_name=>'48px'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--medium'
,p_group_id=>wwv_flow_api.id(803405667907793668)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453862618301512)
,p_theme_id=>42
,p_name=>'SMALL'
,p_display_name=>'32px'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--small'
,p_group_id=>wwv_flow_api.id(803405667907793668)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585453890520301512)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stacked'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--stacked'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Stack badges on top of each other'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585454061920301512)
,p_theme_id=>42
,p_name=>'XLARGE'
,p_display_name=>'96px'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--xlarge'
,p_group_id=>wwv_flow_api.id(803405667907793668)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585454159762301512)
,p_theme_id=>42
,p_name=>'XXLARGE'
,p_display_name=>'128px'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585452209611301508)
,p_css_classes=>'t-BadgeList--xxlarge'
,p_group_id=>wwv_flow_api.id(803405667907793668)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585456777436301520)
,p_theme_id=>42
,p_name=>'ACTIONS'
,p_display_name=>'Actions'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--actions'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Render as actions to be placed on the right side column.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585456910681301520)
,p_theme_id=>42
,p_name=>'DISABLETEXTWRAPPING'
,p_display_name=>'Disable Text Wrapping'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--nowrap'
,p_template_types=>'LIST'
,p_help_text=>'Do not allow link text to wrap to new lines. Truncate with ellipsis.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585457087588301520)
,p_theme_id=>42
,p_name=>'SHOWBADGES'
,p_display_name=>'Show Badges'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--showBadge'
,p_template_types=>'LIST'
,p_help_text=>'Show badge to right of link (requires Attribute 1 to be populated)'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585457245324301521)
,p_theme_id=>42
,p_name=>'SHOWGOTOARROW'
,p_display_name=>'Show Right Arrow'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--showArrow'
,p_template_types=>'LIST'
,p_help_text=>'Show arrow to the right of link'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585457523999301522)
,p_theme_id=>42
,p_name=>'SHOWICONS'
,p_display_name=>'For All Items'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--showIcons'
,p_group_id=>wwv_flow_api.id(803407682389793669)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585457581229301522)
,p_theme_id=>42
,p_name=>'SHOWTOPICONS'
,p_display_name=>'For Top Level Items Only'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585456650815301517)
,p_css_classes=>'t-LinksList--showTopIcons'
,p_group_id=>wwv_flow_api.id(803407682389793669)
,p_template_types=>'LIST'
,p_help_text=>'This will show icons for top level items of the list only. It will not show icons for sub lists.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585458016359301523)
,p_theme_id=>42
,p_name=>'2COLUMNGRID'
,p_display_name=>'2 Column Grid'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--cols t-MediaList--2cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585458153168301523)
,p_theme_id=>42
,p_name=>'3COLUMNGRID'
,p_display_name=>'3 Column Grid'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--cols t-MediaList--3cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585458180700301523)
,p_theme_id=>42
,p_name=>'4COLUMNGRID'
,p_display_name=>'4 Column Grid'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--cols t-MediaList--4cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585458279979301523)
,p_theme_id=>42
,p_name=>'5COLUMNGRID'
,p_display_name=>'5 Column Grid'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--cols t-MediaList--5cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585459359140301525)
,p_theme_id=>42
,p_name=>'SPANHORIZONTAL'
,p_display_name=>'Span Horizontal'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--horizontal'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Show all list items in one horizontal row.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585461119584301534)
,p_theme_id=>42
,p_name=>'ALLSTEPS'
,p_display_name=>'All Steps'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460733020301531)
,p_css_classes=>'t-WizardSteps--displayLabels'
,p_group_id=>wwv_flow_api.id(803409273417793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585461203130301535)
,p_theme_id=>42
,p_name=>'CURRENTSTEPONLY'
,p_display_name=>'Current Step Only'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585460733020301531)
,p_css_classes=>'t-WizardSteps--displayCurrentLabelOnly'
,p_group_id=>wwv_flow_api.id(803409273417793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585461349842301535)
,p_theme_id=>42
,p_name=>'HIDELABELS'
,p_display_name=>'Hide Labels'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585460733020301531)
,p_css_classes=>'t-WizardSteps--hideLabels'
,p_group_id=>wwv_flow_api.id(803409273417793670)
,p_template_types=>'LIST'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585462455844301545)
,p_theme_id=>42
,p_name=>'LEFTICON'
,p_display_name=>'Left'
,p_display_sequence=>10
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_css_classes=>'t-Button--iconLeft'
,p_group_id=>wwv_flow_api.id(803397637885793662)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1585462532390301545)
,p_theme_id=>42
,p_name=>'RIGHTICON'
,p_display_name=>'Right'
,p_display_sequence=>20
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_css_classes=>'t-Button--iconRight'
,p_group_id=>wwv_flow_api.id(803397637885793662)
,p_template_types=>'BUTTON'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690358184401428066)
,p_theme_id=>42
,p_name=>'240PX'
,p_display_name=>'240px'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'i-h240'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 240px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690358851242428066)
,p_theme_id=>42
,p_name=>'320PX'
,p_display_name=>'320px'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'i-h320'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 320px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690359448705428067)
,p_theme_id=>42
,p_name=>'ACCENT_1'
,p_display_name=>'Accent 1'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent1'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690360032459428067)
,p_theme_id=>42
,p_name=>'ACCENT_2'
,p_display_name=>'Accent 2'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent2'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690360650343428068)
,p_theme_id=>42
,p_name=>'ACCENT_3'
,p_display_name=>'Accent 3'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent3'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690361247048428068)
,p_theme_id=>42
,p_name=>'ACCENT_4'
,p_display_name=>'Accent 4'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent4'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690361858891428068)
,p_theme_id=>42
,p_name=>'ACCENT_5'
,p_display_name=>'Accent 5'
,p_display_sequence=>50
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--accent5'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690362372713428069)
,p_theme_id=>42
,p_name=>'HIDEOVERFLOW'
,p_display_name=>'Hide'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--hiddenOverflow'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690362727539428069)
,p_theme_id=>42
,p_name=>'NOBODYPADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes padding from region body.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690363353324428069)
,p_theme_id=>42
,p_name=>'NOBORDER'
,p_display_name=>'Remove Borders'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--noBorder'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes borders from the region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690363919291428070)
,p_theme_id=>42
,p_name=>'SCROLLBODY'
,p_display_name=>'Scroll - Default'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--scrollBody'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690365116556428071)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stack Region'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--stacked'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes side borders and shadows, and can be useful for accordions and regions that need to be grouped together vertically.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690365741254428071)
,p_theme_id=>42
,p_name=>'EXPANDED'
,p_display_name=>'Expanded'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'is-expanded'
,p_group_id=>wwv_flow_api.id(803418044394793680)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1690366358823428072)
,p_theme_id=>42
,p_name=>'COLLAPSED'
,p_display_name=>'Collapsed'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'is-collapsed'
,p_group_id=>wwv_flow_api.id(803418044394793680)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1697321187310105168)
,p_theme_id=>42
,p_name=>'ADD_ACTIONS'
,p_display_name=>'Add Actions'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(1585459740338301526)
,p_css_classes=>'js-addActions'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add shortcuts for menu items. Note that actions.js must be included on your page to support this functionality.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1697321561085105169)
,p_theme_id=>42
,p_name=>'BEHAVE_LIKE_TABS'
,p_display_name=>'Behave Like Tabs'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(1585459740338301526)
,p_css_classes=>'js-tabLike'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1697322084918105170)
,p_theme_id=>42
,p_name=>'SHOW_SUB_MENU_ICONS'
,p_display_name=>'Show Sub Menu Icons'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(1585459740338301526)
,p_css_classes=>'js-showSubMenuIcons'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712793507621063788)
,p_theme_id=>42
,p_name=>'DRAGGABLE'
,p_display_name=>'Draggable'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-draggable'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712793822936063788)
,p_theme_id=>42
,p_name=>'MODAL'
,p_display_name=>'Modal'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-modal'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712794108945063788)
,p_theme_id=>42
,p_name=>'RESIZABLE'
,p_display_name=>'Resizable'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-resizable'
,p_template_types=>'REGION'
);
end;
/
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712794676451063789)
,p_theme_id=>42
,p_name=>'SMALL_480X320'
,p_display_name=>'Small (480x320)'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-dialog-size480x320'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712795353815063791)
,p_theme_id=>42
,p_name=>'LARGE_720X480'
,p_display_name=>'Large (720x480)'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-dialog-size720x480'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1712795928760063791)
,p_theme_id=>42
,p_name=>'MEDIUM_600X400'
,p_display_name=>'Medium (600x400)'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585438408870301474)
,p_css_classes=>'js-dialog-size600x400'
,p_group_id=>wwv_flow_api.id(803418422967793681)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1718311660438580070)
,p_theme_id=>42
,p_name=>'REMOVEUIDECORATION'
,p_display_name=>'Remove UI Decoration'
,p_display_sequence=>4
,p_region_template_id=>wwv_flow_api.id(1585428806883301455)
,p_css_classes=>'t-ButtonRegion--noUI'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1718312249985580070)
,p_theme_id=>42
,p_name=>'BORDERLESS'
,p_display_name=>'Borderless'
,p_display_sequence=>1
,p_region_template_id=>wwv_flow_api.id(1585428806883301455)
,p_css_classes=>'t-ButtonRegion--noBorder'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1718313158260580071)
,p_theme_id=>42
,p_name=>'SLIMPADDING'
,p_display_name=>'Slim Padding'
,p_display_sequence=>5
,p_region_template_id=>wwv_flow_api.id(1585428806883301455)
,p_css_classes=>'t-ButtonRegion--slimPadding'
,p_group_id=>wwv_flow_api.id(803416006111793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1718313689586580071)
,p_theme_id=>42
,p_name=>'NOPADDING'
,p_display_name=>'No Padding'
,p_display_sequence=>3
,p_region_template_id=>wwv_flow_api.id(1585428806883301455)
,p_css_classes=>'t-ButtonRegion--noPadding'
,p_group_id=>wwv_flow_api.id(803416006111793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722743766395566377)
,p_theme_id=>42
,p_name=>'FLOAT'
,p_display_name=>'Float'
,p_display_sequence=>60
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--float'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722744348546566377)
,p_theme_id=>42
,p_name=>'2_COLUMNS'
,p_display_name=>'2 Columns'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722744955243566377)
,p_theme_id=>42
,p_name=>'SPAN_HORIZONTALLY'
,p_display_name=>'Span Horizontally'
,p_display_sequence=>70
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--spanHorizontally'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722745537655566378)
,p_theme_id=>42
,p_name=>'5_COLUMNS'
,p_display_name=>'5 Columns'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--5cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722746168319566378)
,p_theme_id=>42
,p_name=>'FEATURED'
,p_display_name=>'Featured'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--featured force-fa-lg'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722746715366566379)
,p_theme_id=>42
,p_name=>'BASIC'
,p_display_name=>'Basic'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--basic'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722747344375566379)
,p_theme_id=>42
,p_name=>'USE_THEME_COLORS'
,p_display_name=>'Apply Theme Colors'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'u-colors'
,p_template_types=>'LIST'
,p_help_text=>'Applies the colors from the theme''s color palette to the icons or initials within cards.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722747875756566380)
,p_theme_id=>42
,p_name=>'4_LINES'
,p_display_name=>'4 Lines'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--desc-4ln'
,p_group_id=>wwv_flow_api.id(803406038999793668)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722748537276566381)
,p_theme_id=>42
,p_name=>'DISPLAY_ICONS'
,p_display_name=>'Display Icons'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--displayIcons'
,p_group_id=>wwv_flow_api.id(803408090568793669)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722749125934566381)
,p_theme_id=>42
,p_name=>'DISPLAY_INITIALS'
,p_display_name=>'Display Initials'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--displayInitials'
,p_group_id=>wwv_flow_api.id(803408090568793669)
,p_template_types=>'LIST'
,p_help_text=>'Initials come from List Attribute 3'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722749720687566381)
,p_theme_id=>42
,p_name=>'2_LINES'
,p_display_name=>'2 Lines'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--desc-2ln'
,p_group_id=>wwv_flow_api.id(803406038999793668)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722750360422566382)
,p_theme_id=>42
,p_name=>'3_LINES'
,p_display_name=>'3 Lines'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--desc-3ln'
,p_group_id=>wwv_flow_api.id(803406038999793668)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722750922544566382)
,p_theme_id=>42
,p_name=>'3_COLUMNS'
,p_display_name=>'3 Columns'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--3cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1722751515746566383)
,p_theme_id=>42
,p_name=>'4_COLUMNS'
,p_display_name=>'4 Columns'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--4cols'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723031258522587193)
,p_theme_id=>42
,p_name=>'240PX'
,p_display_name=>'240px'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'i-h240'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 240px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723031848592587193)
,p_theme_id=>42
,p_name=>'320PX'
,p_display_name=>'320px'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'i-h320'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 320px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723032410011587193)
,p_theme_id=>42
,p_name=>'480PX'
,p_display_name=>'480px'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'i-h480'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723033065783587194)
,p_theme_id=>42
,p_name=>'5_SECONDS'
,p_display_name=>'5 Seconds'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-cycle5s'
,p_group_id=>wwv_flow_api.id(803427650090793687)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723033651084587194)
,p_theme_id=>42
,p_name=>'640PX'
,p_display_name=>'640px'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'i-h640'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723034241514587195)
,p_theme_id=>42
,p_name=>'ACCENT_1'
,p_display_name=>'Accent 1'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--accent1'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723034805353587195)
,p_theme_id=>42
,p_name=>'ACCENT_2'
,p_display_name=>'Accent 2'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--accent2'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723035378256587196)
,p_theme_id=>42
,p_name=>'ACCENT_3'
,p_display_name=>'Accent 3'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--accent3'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723036047627587196)
,p_theme_id=>42
,p_name=>'ACCENT_4'
,p_display_name=>'Accent 4'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--accent4'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723036588412587197)
,p_theme_id=>42
,p_name=>'ACCENT_5'
,p_display_name=>'Accent 5'
,p_display_sequence=>50
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--accent5'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723037175998587197)
,p_theme_id=>42
,p_name=>'HIDDENHEADERNOAT'
,p_display_name=>'Hidden'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--removeHeader'
,p_group_id=>wwv_flow_api.id(803419617446793681)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723037797194587197)
,p_theme_id=>42
,p_name=>'HIDEOVERFLOW'
,p_display_name=>'Hide'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--hiddenOverflow'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723038373967587198)
,p_theme_id=>42
,p_name=>'HIDEREGIONHEADER'
,p_display_name=>'Hidden but accessible'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--hideHeader'
,p_group_id=>wwv_flow_api.id(803419617446793681)
,p_template_types=>'REGION'
,p_help_text=>'This option will hide the region header. Note that the region title will still be audible for Screen Readers. Buttons placed in the region header will be hidden and inaccessible.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723038746580587198)
,p_theme_id=>42
,p_name=>'NOBODYPADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes padding from region body.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723039277679587198)
,p_theme_id=>42
,p_name=>'NOBORDER'
,p_display_name=>'Remove Borders'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--noBorder'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes borders from the region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723039586624587198)
,p_theme_id=>42
,p_name=>'REMEMBER_CAROUSEL_SLIDE'
,p_display_name=>'Remember Carousel Slide'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-useLocalStorage'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723040193970587199)
,p_theme_id=>42
,p_name=>'SCROLLBODY'
,p_display_name=>'Scroll'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--scrollBody'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723041392755587199)
,p_theme_id=>42
,p_name=>'SLIDE'
,p_display_name=>'Slide'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--carouselSlide'
,p_group_id=>wwv_flow_api.id(803414879114793678)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723042002273587200)
,p_theme_id=>42
,p_name=>'SPIN'
,p_display_name=>'Spin'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--carouselSpin'
,p_group_id=>wwv_flow_api.id(803414879114793678)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1723042669155587200)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stack Region'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--stacked'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes side borders and shadows, and can be useful for accordions and regions that need to be grouped together vertically.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725908022448777537)
,p_theme_id=>42
,p_name=>'LEFT_ALIGNED_DETAILS'
,p_display_name=>'Left Aligned Details'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--leftAligned'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725908569639777538)
,p_theme_id=>42
,p_name=>'RIGHT_ALIGNED_DETAILS'
,p_display_name=>'Right Aligned Details'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--rightAligned'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725909258681777538)
,p_theme_id=>42
,p_name=>'FIXED_SMALL'
,p_display_name=>'Fixed - Small'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--fixedLabelSmall'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725909834408777538)
,p_theme_id=>42
,p_name=>'FIXED_MEDIUM'
,p_display_name=>'Fixed - Medium'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--fixedLabelMedium'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725910424418777539)
,p_theme_id=>42
,p_name=>'FIXED_LARGE'
,p_display_name=>'Fixed - Large'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--fixedLabelLarge'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725911060863777539)
,p_theme_id=>42
,p_name=>'VARIABLE_SMALL'
,p_display_name=>'Variable - Small'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--variableLabelSmall'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725911605718777539)
,p_theme_id=>42
,p_name=>'VARIABLE_MEDIUM'
,p_display_name=>'Variable - Medium'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--variableLabelMedium'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1725912178955777540)
,p_theme_id=>42
,p_name=>'VARIABLE_LARGE'
,p_display_name=>'Variable - Large'
,p_display_sequence=>60
,p_report_template_id=>wwv_flow_api.id(1585451067248301505)
,p_css_classes=>'t-AVPList--variableLabelLarge'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730471669599132875)
,p_theme_id=>42
,p_name=>'HIDEOVERFLOW'
,p_display_name=>'Hide'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--hiddenOverflow'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730472272058132876)
,p_theme_id=>42
,p_name=>'HIDDENHEADERNOAT'
,p_display_name=>'Hidden'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--removeHeader js-removeLandmark'
,p_group_id=>wwv_flow_api.id(803419617446793681)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730473475204132877)
,p_theme_id=>42
,p_name=>'ACCENT_1'
,p_display_name=>'Accent 1'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent1'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730474075676132878)
,p_theme_id=>42
,p_name=>'ACCENT_2'
,p_display_name=>'Accent 2'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent2'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730474694876132878)
,p_theme_id=>42
,p_name=>'ACCENT_3'
,p_display_name=>'Accent 3'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent3'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730475361424132878)
,p_theme_id=>42
,p_name=>'ACCENT_4'
,p_display_name=>'Accent 4'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent4'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730475959554132879)
,p_theme_id=>42
,p_name=>'ACCENT_5'
,p_display_name=>'Accent 5'
,p_display_sequence=>50
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--accent5'
,p_group_id=>wwv_flow_api.id(803412877470793673)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730476511070132880)
,p_theme_id=>42
,p_name=>'480PX'
,p_display_name=>'480px'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'i-h480'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730477163980132880)
,p_theme_id=>42
,p_name=>'640PX'
,p_display_name=>'640px'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'i-h640'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730477727394132881)
,p_theme_id=>42
,p_name=>'NOBORDER'
,p_display_name=>'Remove Borders'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--noBorder'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes borders from the region.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730477988165132881)
,p_theme_id=>42
,p_name=>'NOBODYPADDING'
,p_display_name=>'Remove Body Padding'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--noPadding'
,p_template_types=>'REGION'
,p_help_text=>'Removes padding from region body.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730478639472132881)
,p_theme_id=>42
,p_name=>'STACKED'
,p_display_name=>'Stack Region'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--stacked'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes side borders and shadows, and can be useful for accordions and regions that need to be grouped together vertically.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730479810453132882)
,p_theme_id=>42
,p_name=>'240PX'
,p_display_name=>'240px'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'i-h240'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 240px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730480389447132882)
,p_theme_id=>42
,p_name=>'320PX'
,p_display_name=>'320px'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'i-h320'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets region body height to 320px.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730481040332132883)
,p_theme_id=>42
,p_name=>'SCROLLBODY'
,p_display_name=>'Scroll - Default'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--scrollBody'
,p_group_id=>wwv_flow_api.id(803415691036793679)
,p_template_types=>'REGION'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1730481653441132883)
,p_theme_id=>42
,p_name=>'HIDEREGIONHEADER'
,p_display_name=>'Hidden but accessible'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--hideHeader'
,p_group_id=>wwv_flow_api.id(803419617446793681)
,p_template_types=>'REGION'
,p_help_text=>'This option will hide the region header. Note that the region title will still be audible for Screen Readers. Buttons placed in the region header will be hidden and inaccessible.'
,p_is_advanced=>'N'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1826138303604937915)
,p_theme_id=>42
,p_name=>'COMPACT'
,p_display_name=>'Compact'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--compact'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Use this option when you want to show smaller cards.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1826139055283937917)
,p_theme_id=>42
,p_name=>'HIDDEN_BODY_TEXT'
,p_display_name=>'Hidden'
,p_display_sequence=>50
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
,p_css_classes=>'t-Cards--hideBody'
,p_group_id=>wwv_flow_api.id(803406038999793668)
,p_template_types=>'LIST'
,p_help_text=>'This option hides the card body which contains description and subtext.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1826223644376939415)
,p_theme_id=>42
,p_name=>'COMPACT'
,p_display_name=>'Compact'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--compact'
,p_group_id=>wwv_flow_api.id(803437277867793693)
,p_template_types=>'REPORT'
,p_help_text=>'Use this option when you want to show smaller cards.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1826224297336939417)
,p_theme_id=>42
,p_name=>'HIDDEN_BODY_TEXT'
,p_display_name=>'Hidden'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585445965928301492)
,p_css_classes=>'t-Cards--hideBody'
,p_group_id=>wwv_flow_api.id(803429221159793688)
,p_template_types=>'REPORT'
,p_help_text=>'This option hides the card body which contains description and subtext.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1858964103212132620)
,p_theme_id=>42
,p_name=>'HIDE_ICONS'
,p_display_name=>'Hide Icons'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--noIcon'
,p_group_id=>wwv_flow_api.id(803413678029793677)
,p_template_types=>'REGION'
,p_help_text=>'Hides alert icons'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1858964701254132620)
,p_theme_id=>42
,p_name=>'SHOW_CUSTOM_ICONS'
,p_display_name=>'Show Custom Icons'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585426810387301451)
,p_css_classes=>'t-Alert--customIcons'
,p_group_id=>wwv_flow_api.id(803413678029793677)
,p_template_types=>'REGION'
,p_help_text=>'Set custom icons by modifying the Alert Region''s Icon CSS Classes property.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1858976461463132651)
,p_theme_id=>42
,p_name=>'SHOW_NEXT_AND_PREVIOUS_BUTTONS'
,p_display_name=>'Show Next and Previous Buttons'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'t-Region--showCarouselControls'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859015819299132746)
,p_theme_id=>42
,p_name=>'REMEMBER_ACTIVE_TAB'
,p_display_name=>'Remember Active Tab'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'js-useLocalStorage'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859040287115132810)
,p_theme_id=>42
,p_name=>'BEHAVE_LIKE_TABS'
,p_display_name=>'Behave Like Tabs'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585459511629301525)
,p_css_classes=>'js-tabLike'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859040668086132810)
,p_theme_id=>42
,p_name=>'ADD_ACTIONS'
,p_display_name=>'Add Actions'
,p_display_sequence=>40
,p_list_template_id=>wwv_flow_api.id(1585459511629301525)
,p_css_classes=>'js-addActions'
,p_template_types=>'LIST'
,p_help_text=>'Use this option to add shortcuts for menu items. Note that actions.js must be included on your page to support this functionality.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859040944677132811)
,p_theme_id=>42
,p_name=>'SHOW_SUB_MENU_ICONS'
,p_display_name=>'Show Sub Menu Icons'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585459511629301525)
,p_css_classes=>'js-showSubMenuIcons'
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859045965807132847)
,p_theme_id=>42
,p_name=>'ABOVE_LABEL'
,p_display_name=>'Above Label'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--iconsAbove'
,p_group_id=>wwv_flow_api.id(803408090568793669)
,p_template_types=>'LIST'
,p_help_text=>'Places icons above tab label.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859046209556132847)
,p_theme_id=>42
,p_name=>'FILL_LABELS'
,p_display_name=>'Fill Labels'
,p_display_sequence=>1
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--fillLabels'
,p_group_id=>wwv_flow_api.id(803409694789793670)
,p_template_types=>'LIST'
,p_help_text=>'Stretch tabs to fill to the width of the tabs container.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859046544958132847)
,p_theme_id=>42
,p_name=>'INLINE_WITH_LABEL'
,p_display_name=>'Inline with Label'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--inlineIcons'
,p_group_id=>wwv_flow_api.id(803408090568793669)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859046821063132848)
,p_theme_id=>42
,p_name=>'LARGE'
,p_display_name=>'Large'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--large'
,p_group_id=>wwv_flow_api.id(803410402664793671)
,p_template_types=>'LIST'
,p_help_text=>'Increases font size and white space around tab items.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859047125717132848)
,p_theme_id=>42
,p_name=>'PILL'
,p_display_name=>'Pill'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--pill'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'Displays tabs in a pill container.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859047415208132848)
,p_theme_id=>42
,p_name=>'SIMPLE'
,p_display_name=>'Simple'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--simple'
,p_group_id=>wwv_flow_api.id(803410833715793671)
,p_template_types=>'LIST'
,p_help_text=>'A very simplistic tab UI.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859047692569132848)
,p_theme_id=>42
,p_name=>'SMALL'
,p_display_name=>'Small'
,p_display_sequence=>5
,p_list_template_id=>wwv_flow_api.id(1859045514986132845)
,p_css_classes=>'t-Tabs--small'
,p_group_id=>wwv_flow_api.id(803410402664793671)
,p_template_types=>'LIST'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859070568600132921)
,p_theme_id=>42
,p_name=>'RIGHT_ALIGNED_DETAILS'
,p_display_name=>'Right Aligned Details'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--rightAligned'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859071123761132922)
,p_theme_id=>42
,p_name=>'VARIABLE_SMALL'
,p_display_name=>'Variable - Small'
,p_display_sequence=>40
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--variableLabelSmall'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859071676342132922)
,p_theme_id=>42
,p_name=>'FIXED_MEDIUM'
,p_display_name=>'Fixed - Medium'
,p_display_sequence=>20
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--fixedLabelMedium'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
end;
/
begin
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859072335385132922)
,p_theme_id=>42
,p_name=>'LEFT_ALIGNED_DETAILS'
,p_display_name=>'Left Aligned Details'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--leftAligned'
,p_group_id=>wwv_flow_api.id(803435228419793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859072877513132923)
,p_theme_id=>42
,p_name=>'VARIABLE_LARGE'
,p_display_name=>'Variable - Large'
,p_display_sequence=>60
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--variableLabelLarge'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859073504648132923)
,p_theme_id=>42
,p_name=>'FIXED_SMALL'
,p_display_name=>'Fixed - Small'
,p_display_sequence=>10
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--fixedLabelSmall'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859074080736132924)
,p_theme_id=>42
,p_name=>'FIXED_LARGE'
,p_display_name=>'Fixed - Large'
,p_display_sequence=>30
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--fixedLabelLarge'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1859074684309132924)
,p_theme_id=>42
,p_name=>'VARIABLE_MEDIUM'
,p_display_name=>'Variable - Medium'
,p_display_sequence=>50
,p_report_template_id=>wwv_flow_api.id(1585450825825301503)
,p_css_classes=>'t-AVPList--variableLabelMedium'
,p_group_id=>wwv_flow_api.id(803434898769793692)
,p_template_types=>'REPORT'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1929891008736603056)
,p_theme_id=>42
,p_name=>'TABSLARGE'
,p_display_name=>'Large'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'t-TabsRegion-mod--large'
,p_group_id=>wwv_flow_api.id(803426856983793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1929891617695603056)
,p_theme_id=>42
,p_name=>'TABS_SMALL'
,p_display_name=>'Small'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'t-TabsRegion-mod--small'
,p_group_id=>wwv_flow_api.id(803426856983793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1929892205566603056)
,p_theme_id=>42
,p_name=>'FILL_TAB_LABELS'
,p_display_name=>'Fill Tab Labels'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'t-TabsRegion-mod--fillLabels'
,p_group_id=>wwv_flow_api.id(803423670307793684)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1929892794335603056)
,p_theme_id=>42
,p_name=>'PILL'
,p_display_name=>'Pill'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'t-TabsRegion-mod--pill'
,p_group_id=>wwv_flow_api.id(803427269420793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1929893447791603058)
,p_theme_id=>42
,p_name=>'SIMPLE'
,p_display_name=>'Simple'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1859014416279132744)
,p_css_classes=>'t-TabsRegion-mod--simple'
,p_group_id=>wwv_flow_api.id(803427269420793686)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1953393966286090159)
,p_theme_id=>42
,p_name=>'SHOW_ICONS'
,p_display_name=>'Show Icons'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--showIcons'
,p_template_types=>'LIST'
,p_help_text=>'Display an icon next to the list item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1953394231290090159)
,p_theme_id=>42
,p_name=>'SHOW_DESCRIPTION'
,p_display_name=>'Show Description'
,p_display_sequence=>20
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--showDesc'
,p_template_types=>'LIST'
,p_help_text=>'Shows the description (Attribute 1) for each list item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(1953394522157090159)
,p_theme_id=>42
,p_name=>'SHOW_BADGES'
,p_display_name=>'Show Badges'
,p_display_sequence=>30
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_css_classes=>'t-MediaList--showBadges'
,p_template_types=>'LIST'
,p_help_text=>'Show a badge (Attribute 2) to the right of the list item.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2198926951338041368)
,p_theme_id=>42
,p_name=>'LIGHT_BACKGROUND'
,p_display_name=>'Light Background'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--lightBG'
,p_group_id=>wwv_flow_api.id(803416419682793679)
,p_template_types=>'REGION'
,p_help_text=>'Gives the region body a slightly lighter background.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2198927315441041368)
,p_theme_id=>42
,p_name=>'ADD_BODY_PADDING'
,p_display_name=>'Add Body Padding'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--padded'
,p_template_types=>'REGION'
,p_help_text=>'Adds padding to the region''s body container.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2198928056171041369)
,p_theme_id=>42
,p_name=>'SHADOW_BACKGROUND'
,p_display_name=>'Shadow Background'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1123954975610459938)
,p_css_classes=>'t-ContentBlock--shadowBG'
,p_group_id=>wwv_flow_api.id(803416419682793679)
,p_template_types=>'REGION'
,p_help_text=>'Gives the region body a slightly darker background.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2278857651407675393)
,p_theme_id=>42
,p_name=>'SHOW_MAXIMIZE_BUTTON'
,p_display_name=>'Show Maximize Button'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-showMaximizeButton'
,p_template_types=>'REGION'
,p_help_text=>'Displays a button in the Region Header to maximize the region. Clicking this button will toggle the maximize state and stretch the region to fill the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2278881832301675481)
,p_theme_id=>42
,p_name=>'SHOW_MAXIMIZE_BUTTON'
,p_display_name=>'Show Maximize Button'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585437916338301471)
,p_css_classes=>'js-showMaximizeButton'
,p_template_types=>'REGION'
,p_help_text=>'Displays a button in the Interactive Reports toolbar to maximize the report. Clicking this button will toggle the maximize state and stretch the report to fill the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2278886024034675517)
,p_theme_id=>42
,p_name=>'SHOW_MAXIMIZE_BUTTON'
,p_display_name=>'Show Maximize Button'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'js-showMaximizeButton'
,p_template_types=>'REGION'
,p_help_text=>'Displays a button in the Region Header to maximize the region. Clicking this button will toggle the maximize state and stretch the region to fill the screen.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2302510724527287854)
,p_theme_id=>42
,p_name=>'VERTICAL_LIST'
,p_display_name=>'Vertical Orientation'
,p_display_sequence=>10
,p_list_template_id=>wwv_flow_api.id(1585460733020301531)
,p_css_classes=>'t-WizardSteps--vertical'
,p_template_types=>'LIST'
,p_help_text=>'Displays the wizard progress list in a vertical orientation and is suitable for displaying within a side column of a page.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2386147111549180025)
,p_theme_id=>42
,p_name=>'SHOW_TITLE'
,p_display_name=>'Show Title'
,p_display_sequence=>10
,p_region_template_id=>wwv_flow_api.id(1585442755734301482)
,p_css_classes=>'t-Wizard--showTitle'
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2400397648935304821)
,p_theme_id=>42
,p_name=>'10_SECONDS'
,p_display_name=>'10 Seconds'
,p_display_sequence=>20
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-cycle10s'
,p_group_id=>wwv_flow_api.id(803427650090793687)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2400398221180304823)
,p_theme_id=>42
,p_name=>'15_SECONDS'
,p_display_name=>'15 Seconds'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-cycle15s'
,p_group_id=>wwv_flow_api.id(803427650090793687)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2400398859822304824)
,p_theme_id=>42
,p_name=>'20_SECONDS'
,p_display_name=>'20 Seconds'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585430620647301457)
,p_css_classes=>'js-cycle20s'
,p_group_id=>wwv_flow_api.id(803427650090793687)
,p_template_types=>'REGION'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2400412989490304863)
,p_theme_id=>42
,p_name=>'480PX'
,p_display_name=>'480px'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'i-h480'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets body height to 480px.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2400413647019304863)
,p_theme_id=>42
,p_name=>'640PX'
,p_display_name=>'640px'
,p_display_sequence=>40
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'i-h640'
,p_group_id=>wwv_flow_api.id(803415212443793679)
,p_template_types=>'REGION'
,p_help_text=>'Sets body height to 640px.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2473466082550236743)
,p_theme_id=>42
,p_name=>'REMOVE_UI_DECORATION'
,p_display_name=>'Remove UI Decoration'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585435226411301463)
,p_css_classes=>'t-Region--noUI'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes UI decoration (borders, backgrounds, shadows, etc) from the region.'
);
wwv_flow_api.create_template_option(
p_id=>wwv_flow_api.id(2473974457843328060)
,p_theme_id=>42
,p_name=>'REMOVE_UI_DECORATION'
,p_display_name=>'Remove UI Decoration'
,p_display_sequence=>30
,p_region_template_id=>wwv_flow_api.id(1585439443339301476)
,p_css_classes=>'t-Region--noUI'
,p_group_id=>wwv_flow_api.id(803426448301793686)
,p_template_types=>'REGION'
,p_help_text=>'Removes UI decoration (borders, backgrounds, shadows, etc) from the region.'
);
end;
/
prompt --application/shared_components/globalization/language
begin
null;
end;
/
prompt --application/shared_components/globalization/translations
begin
null;
end;
/
prompt --application/shared_components/logic/build_options
begin
null;
end;
/
prompt --application/shared_components/globalization/messages
begin
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(7524868361043720229)
,p_name=>'AC_CONFIGURATION_INFO'
,p_message_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p><b>Enabling Access Control</b> means that access to the application and its features are controlled by the current <b>Access Control List</b>, as defined by the application administrator. There are 3 access levels available that can be granted to '
||'a user; Administrator, Contributor and Reader. Please see the Manager User pages for further details on what each level provides.</p>',
'<p>In addition, if you don''t want to have to define every ''Reader'' of your application, you can select <b>Any Authenticated User</b> from the <b>Reader Access</b> configuration option. This opens read-only access to any user who can authenticate into'
||' your application.</p>',
'<br />',
'<p><b>Disabling Access Control</b> means that access to the application and all of its features including Administration are open to any user who can authenticate to the application.</p>',
'<br />',
'<p>Note: Irrespective of whether Access Control is enabled or disabled, a user still has to authenticate successfully into the application.</p>'))
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(7478794937727016219)
,p_name=>'ADMINISTRATION'
,p_message_text=>'Administration'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171022194498711143)
,p_name=>'APPROVED'
,p_message_text=>'Approved'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171022396923711809)
,p_name=>'ASSIGNED'
,p_message_text=>'Assigned'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171023799478721993)
,p_name=>'COMPLETE'
,p_message_text=>'Complete'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171023187357718529)
,p_name=>'DEMONSTRABLE'
,p_message_text=>'Demonstrable'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171023391859719784)
,p_name=>'FUNCTIONALLY_COMPLETE'
,p_message_text=>'Functionally Complete'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(7478810343615017864)
,p_name=>'HELP'
,p_message_text=>'Help'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171023597054721259)
,p_name=>'INTEGRATION_COMPLETE'
,p_message_text=>'Integration Complete'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3165907812103868151)
,p_name=>'LOGOUT'
,p_message_text=>'Logout'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(7478833958506022235)
,p_name=>'MOBILE'
,p_message_text=>'Mobile'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171021787226709022)
,p_name=>'NOT_STARTED'
,p_message_text=>'Not Started'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171029988499201413)
,p_name=>'PROJECT'
,p_message_text=>'Project'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171022983894717509)
,p_name=>'SIGNIFICANT_PROGRESS'
,p_message_text=>'Significant Progress'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171030394040203013)
,p_name=>'SUBTASK'
,p_message_text=>'Subtask'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171030190923202077)
,p_name=>'TASK'
,p_message_text=>'Task'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171021992074710432)
,p_name=>'UNDER_CONSIDERATION'
,p_message_text=>'Under Consideration'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(7478786965647014780)
,p_name=>'USER'
,p_message_text=>'User'
);
null;
end;
/
begin
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171022606273714540)
,p_name=>'WORK_INITIATED'
,p_message_text=>'Work Initiated'
);
wwv_flow_api.create_message(
p_id=>wwv_flow_api.id(3171022811121715854)
,p_name=>'WORK_PROGRESSING'
,p_message_text=>'Work Progressing'
);
end;
/
prompt --application/shared_components/globalization/dyntranslations
begin
null;
end;
/
prompt --application/shared_components/user_interface/shortcuts/ok_to_get_next_prev_pk_value
begin
wwv_flow_api.create_shortcut(
p_id=>wwv_flow_api.id(3170836382374658363)
,p_shortcut_name=>'OK_TO_GET_NEXT_PREV_PK_VALUE'
,p_shortcut_type=>'TEXT_ESCAPE_JS'
,p_shortcut=>'Are you sure you want to leave this page without saving?'
);
end;
/
prompt --application/shared_components/user_interface/shortcuts/delete_confirm_msg
begin
wwv_flow_api.create_shortcut(
p_id=>wwv_flow_api.id(7524338541183607440)
,p_shortcut_name=>'DELETE_CONFIRM_MSG'
,p_shortcut_type=>'TEXT_ESCAPE_JS'
,p_shortcut=>'Would you like to perform this delete action?'
);
end;
/
prompt --application/shared_components/security/authentications/apex_auth
begin
wwv_flow_api.create_authentication(
p_id=>wwv_flow_api.id(7263490156395758696)
,p_name=>'APEX Auth'
,p_scheme_type=>'NATIVE_APEX_ACCOUNTS'
,p_invalid_session_type=>'LOGIN'
,p_logout_url=>'f?p=&APP_ID.:1'
,p_cookie_name=>'ORA_WWV_PACKAGED_APPLICATIONS'
,p_use_secure_cookie_yn=>'N'
,p_ras_mode=>0
);
end;
/
prompt --application/shared_components/plugins/region_type/com_oracle_apex_display_source
begin
wwv_flow_api.create_plugin(
p_id=>wwv_flow_api.id(1320215699425217504)
,p_plugin_type=>'REGION TYPE'
,p_name=>'COM.ORACLE.APEX.DISPLAY_SOURCE'
,p_display_name=>'Source Display'
,p_supported_ui_types=>'DESKTOP'
,p_image_prefix => nvl(wwv_flow_application_install.get_static_plugin_file_prefix('REGION TYPE','COM.ORACLE.APEX.DISPLAY_SOURCE'),'')
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
'function render (',
' p_region in apex_plugin.t_region,',
' p_plugin in apex_plugin.t_plugin,',
' p_is_printer_friendly in boolean )',
' return apex_plugin.t_region_render_result',
'is',
' -- It''s better to have named variables instead of using the generic ones,',
' -- makes the code more readable. We are using the same defaults for the',
' -- required attributes as in the plug-in attribute configuration, because',
' -- they can still be null. Keep them in sync!',
' c_region_static_id constant varchar2(255) := p_region.attribute_01;',
' c_highlight_page_item constant varchar2(255) := p_region.attribute_02;',
'',
' l_highlight_term varchar2(4000) := '''';',
'',
' cursor sql_csr( d_region_static_id in varchar2 ) is',
' select source_type, 10 seq, null series_name, region_source source',
' from apex_application_page_regions',
' where application_id = :APP_ID',
' and page_id = :APP_PAGE_ID',
' and static_id = d_region_static_id',
' and ( source_type_code like ''PLUGIN%''',
' or source_type_code like ''STATIC_TEXT%''',
' or source_type in (',
' ''Calendar'',',
' ''Easy Calendar'',',
' ''Interactive Report'',',
' ''Interactive Grid'',',
' ''List View'',',
' ''Report'',',
' ''PL/SQL'',',
' ''Tabular Form''',
' )',
' )',
' union all',
' select reg.source_type, 10 seq, null series_name, to_clob(tr.tree_query) source',
' from apex_application_page_regions reg,',
' apex_application_page_trees tr',
' where reg.application_id = :APP_ID',
' and reg.page_id = :APP_PAGE_ID',
' and reg.static_id = d_region_static_id',
' and tr.application_id = reg.application_id',
' and tr.page_id = reg.page_id',
' and tr.region_id = reg.region_id',
' and reg.source_type in (''JavaScript Tree'')',
' union all',
' select reg.source_type, 10 seq, null series_name, to_clob(list_query) source',
' from apex_application_page_regions reg,',
' apex_application_lists li',
' where reg.application_id = :APP_ID',
' and reg.page_id = :APP_PAGE_ID',
' and reg.static_id = d_region_static_id',
' and li.application_id = reg.application_id',
' and li.list_id = reg.list_id',
' and reg.source_type in ( ''List'' )',
' order by 1, 2;',
' sql_rec sql_csr%ROWTYPE;',
'begin',
' if c_highlight_page_item is not null then',
' l_highlight_term := apex_escape.html(trim(lower(v(c_highlight_page_item))));',
' end if;',
'',
' for sql_rec in sql_csr( c_region_static_id ) loop',
' if sql_rec.series_name is not null then',
' sys.htp.p(''<p><strong>''||apex_escape.html(sql_rec.series_name)||'':</strong></p>'');',
' end if;',
' sys.htp.p(''<pre>'');',
' if l_highlight_term is not null then',
' sys.htp.p(replace(apex_escape.html(sql_rec.source),',
' l_highlight_term,''<span class="highlight">''||l_highlight_term||''</span>''));',
' else',
' sys.htp.p(apex_escape.html(sql_rec.source));',
' end if;',
' sys.htp.p(''</pre>'');',
' end loop;',
'',
' return null;',
'end render;'))
,p_api_version=>1
,p_render_function=>'render'
,p_substitute_attributes=>true
,p_reference_id=>1305119942933551255
,p_subscribe_plugin_settings=>true
,p_help_text=>'This region plug-in is used to display the SQL Source region of an accompanying region.'
,p_version_identifier=>'5.0.1'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(608874057196319224)
,p_plugin_id=>wwv_flow_api.id(1320215699425217504)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>1
,p_display_sequence=>10
,p_prompt=>'Region Static ID'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_help_text=>'Enter the static ID as defined in the target region''s attributes section.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(608874358333319224)
,p_plugin_id=>wwv_flow_api.id(1320215699425217504)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>2
,p_display_sequence=>20
,p_prompt=>'Highlight Term Page Item'
,p_attribute_type=>'PAGE ITEM'
,p_is_required=>false
,p_is_translatable=>false
,p_help_text=>'If you wish to have a term in your region source highlighted, create a page item and select it here.'
);
end;
/
prompt --application/shared_components/plugins/region_type/com_oracle_apex_sampleappfooter
begin
wwv_flow_api.create_plugin(
p_id=>wwv_flow_api.id(1660993138560871205)
,p_plugin_type=>'REGION TYPE'
,p_name=>'COM.ORACLE.APEX.SAMPLEAPPFOOTER'
,p_display_name=>'Sample Apps Footer'
,p_supported_ui_types=>'DESKTOP'
,p_image_prefix => nvl(wwv_flow_application_install.get_static_plugin_file_prefix('REGION TYPE','COM.ORACLE.APEX.SAMPLEAPPFOOTER'),'')
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
'function render ( p_region in apex_plugin.t_region,',
' p_plugin in apex_plugin.t_plugin,',
' p_is_printer_friendly in boolean )',
' return apex_plugin.t_region_render_result is',
'begin',
' sys.htp.p(''<ul class="t-Cards t-Cards--sampleAppsFooter t-Cards--featured force-fa-lg t-Cards--displayIcons t-Cards--hideBody t-Cards--animColorFill">'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/twitter" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-twitter" style="color: #1da1f2"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">Twitter</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/linkedin" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-linkedin" style="color: #0077b5"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">LinkedIn</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/facebook" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-facebook" style="color: #3b5998"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">Facebook</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/youtube" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-youtube" style="color: red"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">YouTube</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-apex" style="color: #707070"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">apex.oracle.com</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/community" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-users" style="color: #707070"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">Oracle APEX Community</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://community.oracle.com/tech/developers/categories/1application_express" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-comments-o" style="color: #707070"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">Discussion Forums</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''<li class="t-Cards-item">'');',
' sys.htp.p('' <div class="t-Card">'');',
' sys.htp.p('' <a href="https://apex.oracle.com/autonomous" target="_blank" class="t-Card-wrap">'');',
' sys.htp.p('' <div class="t-Card-icon"><span class="t-Icon fa fa-cloud" style="color: #707070"></span></div>'');',
' sys.htp.p('' <div class="t-Card-titleWrap"><h3 class="t-Card-title">Autonomous Database + APEX</h3></div>'');',
' sys.htp.p('' </a>'');',
' sys.htp.p('' </div>'');',
' sys.htp.p(''</li>'');',
' sys.htp.p(''</ul>'');',
' return null;',
'end render;'))
,p_api_version=>1
,p_render_function=>'render'
,p_substitute_attributes=>true
,p_reference_id=>1660759070362076804
,p_subscribe_plugin_settings=>true
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>This region plug-in is used to display a custom footer at the bottom of pages with large icons for navigating to other sites such as twitter and linkedin.</p>',
'<p>Note: This plug-in should be customized to meet your specific requirements, rather than used as is.</p>'))
,p_version_identifier=>'5.0.1'
);
end;
/
prompt --application/shared_components/plugins/region_type/com_oracle_apex_html5_bar_chart
begin
wwv_flow_api.create_plugin(
p_id=>wwv_flow_api.id(1661134734745282163)
,p_plugin_type=>'REGION TYPE'
,p_name=>'COM.ORACLE.APEX.HTML5_BAR_CHART'
,p_display_name=>'HTML 5 Bar Chart'
,p_supported_ui_types=>'DESKTOP'
,p_image_prefix => nvl(wwv_flow_application_install.get_static_plugin_file_prefix('REGION TYPE','COM.ORACLE.APEX.HTML5_BAR_CHART'),'#IMAGE_PREFIX#plugins/com.oracle.apex.html5_bar_chart/1.1/')
,p_javascript_file_urls=>'#PLUGIN_FILES#com_oracle_apex_html5_bar_chart#MIN#.js'
,p_css_file_urls=>'#PLUGIN_FILES#com_oracle_apex_html5_bar_chart#MIN#.css'
,p_plsql_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
'function render (',
' p_region in apex_plugin.t_region,',
' p_plugin in apex_plugin.t_plugin,',
' p_is_printer_friendly in boolean',
') return apex_plugin.t_region_render_result is',
'begin',
' sys.htp.prn(''<div id="''||apex_escape.html_attribute(p_region.static_id)||''_chart" class="hbc">'');',
' sys.htp.prn(''</div>'');',
' ',
' apex_javascript.add_onload_code (',
' p_code => ''com_oracle_apex_html5_bar_chart(''||',
' apex_javascript.add_value(p_region.static_id)||',
' ''{''||',
' -- Why is this attribute needed if is not used?',
' apex_javascript.add_attribute(',
' ''pageItems'', ',
' apex_plugin_util.page_item_names_to_jquery(p_region.ajax_items_to_submit)',
' )||',
' apex_javascript.add_attribute(',
' ''ajaxIdentifier'', ',
' apex_plugin.get_ajax_identifier, ',
' FALSE, ',
' FALSE',
' )||',
' ''}''||',
' '');''',
' );',
' ',
' return null;',
'end render;',
'',
'function ajax (',
' p_region in apex_plugin.t_region,',
' p_plugin in apex_plugin.t_plugin',
') return apex_plugin.t_region_ajax_result is',
' -- Map region attributes to function constants',
' -- MODERN, CLASSIC',
' c_chart_type constant varchar2(7) := p_region.attribute_15;',
' -- MODERN, MODERN_2, SOLAR, METRO, CUSTOM, COLUMN',
' c_color_scheme constant varchar2(8) := p_region.attribute_17;',
' c_custom_chart_colors constant varchar2(4000) := p_region.attribute_10;',
' c_color_column constant varchar2(255) := p_region.attribute_19;',
' -- NONE, IMAGE, ICON, INITIALS',
' c_icon_type constant varchar2(8) := case when c_chart_type = ''ICON'' then p_region.attribute_01 end;',
' c_label_column constant varchar2(255) := p_region.attribute_02;',
' c_label_link constant varchar2(255) := p_region.attribute_03;',
' c_value_column constant varchar2(255) := p_region.attribute_04;',
' c_value_link constant varchar2(255) := p_region.attribute_05;',
' c_value_format_mask constant varchar2(4000) := p_region.attribute_21;',
'',
' -- ABOVE, AROUND',
' c_text_position varchar2(6) := p_region.attribute_18;',
' c_chart_css_classes constant varchar2(32767) := p_region.attribute_06;',
' c_image_url constant varchar2(4000) := p_region.attribute_07;',
' c_css_icon_class_name constant varchar2(255) := p_region.attribute_08;',
' c_initials_column constant varchar2(255) := p_region.attribute_09;',
' -- ABSOLUTE, RELATIVE',
' c_bar_width_calculation constant varchar2(8) := p_region.attribute_16;',
' c_display constant varchar2(19) := p_region.attribute_11;',
' c_prefix_for_value constant varchar2(4000) := p_region.attribute_12;',
' c_postfix_for_value constant varchar2(4000) := p_region.attribute_13;',
' c_maximum_rows constant number := p_region.attribute_14;',
' c_message_when_no_data_found constant varchar2(4000) := p_region.attribute_20;',
' ',
' l_color_column_number pls_integer;',
' l_label_column_number pls_integer;',
' l_value_column_number pls_integer;',
' l_initials_column_number pls_integer;',
' ',
' l_column_value_list apex_plugin_util.t_column_value_list2;',
' ',
' l_color varchar2(4000) := NULL;',
' l_label varchar2(4000) := NULL;',
' l_label_link varchar2(4000) := NULL;',
' l_value varchar2(4000) := NULL;',
' l_display_value varchar2(4000) := NULL;',
' l_value_link varchar2(4000) := NULL;',
' l_image_url varchar2(4000) := NULL;',
' l_css_icon_class_name varchar2(4000) := NULL;',
' l_initials varchar2(4000) := NULL;',
' l_message_when_no_data_found varchar2(4000) := NULL;',
'',
' l_custom_chart_colors_table apex_application_global.vc_arr2;',
' l_custom_chart_colors varchar2(32767) := NULL;',
'begin',
' l_column_value_list := apex_plugin_util.get_data2(',
' P_SQL_STATEMENT => p_region.source,',
' P_MIN_COLUMNS => 1,',
' P_MAX_COLUMNS => NULL,',
' P_COMPONENT_NAME => p_region.name,',
' P_MAX_ROWS => c_maximum_rows);',
'',
' l_color_column_number := apex_plugin_util.get_column_no (',
' p_attribute_label => ''Color Column'',',
' p_column_alias => c_color_column,',
' p_column_value_list => l_column_value_list,',
' p_is_required => c_color_scheme = ''COLUMN'',',
' P_data_type => apex_plugin_util.c_data_type_varchar2);',
' l_label_column_number := apex_plugin_util.get_column_no (',
' p_attribute_label => ''Label Column'',',
' p_column_alias => c_label_column,',
' p_column_value_list => l_column_value_list,',
' p_is_required => TRUE,',
' P_data_type => apex_plugin_util.c_data_type_varchar2);',
' l_value_column_number := apex_plugin_util.get_column_no (',
' p_attribute_label => ''Value Column'',',
' p_column_alias => c_value_column,',
' p_column_value_list => l_column_value_list,',
' p_is_required => TRUE,',
' P_data_type => apex_plugin_util.c_data_type_varchar2);',
' if c_icon_type = ''INITIALS'' then',
' l_initials_column_number := apex_plugin_util.get_column_no (',
' p_attribute_label => ''Initials Column'',',
' p_column_alias => c_initials_column,',
' p_column_value_list => l_column_value_list,',
' p_is_required => true,',
' P_data_type => apex_plugin_util.c_data_type_varchar2);',
' end if;',
' -- begin output as JSON',
' owa_util.mime_header(''application/json'', FALSE);',
' sys.htp.p(''Cache-Control: no-store'');',
' sys.htp.p(''Pragma: no-cache'');',
' owa_util.http_header_close;',
' ',
' if c_color_scheme = ''CUSTOM'' then',
' l_custom_chart_colors_table := apex_util.string_to_table(case when c_custom_chart_colors is not NULL then TRIM(BOTH '''''''' from apex_escape.js_literal(c_custom_chart_colors)) end, '':'');',
' l_custom_chart_colors := ''"color_scheme":['';',
' for I in l_custom_chart_colors_table.first .. l_custom_chart_colors_table.last loop',
' if I > 1 then',
' l_custom_chart_colors := l_custom_chart_colors||'','';',
' end if;',
' l_custom_chart_colors := l_custom_chart_colors||''"''||l_custom_chart_colors_table(I)||''"'';',
' end loop;',
' l_custom_chart_colors := l_custom_chart_colors||''],'';',
' end if;',
'',
' l_message_when_no_data_found := apex_escape.html_whitelist(',
' apex_plugin_util.replace_substitutions (',
' p_value => c_message_when_no_data_found,',
' p_escape => FALSE));',
'',
' sys.htp.prn(',
' ''{''||',
' apex_javascript.add_attribute (',
' ''chart_type'',',
' c_chart_type,',
' FALSE,',
' TRUE',
' ));',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''message_when_no_data_found'',',
' l_message_when_no_data_found,',
' TRUE,',
' TRUE',
' ));',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''chart_css_class_names'',',
' c_chart_css_classes,',
' TRUE,',
' TRUE',
' ));',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''icon_type'',',
' c_icon_type,',
' TRUE,',
' TRUE',
' ));',
' if c_color_scheme = ''CUSTOM'' then',
' sys.htp.prn(',
' l_custom_chart_colors',
' );',
' else',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''color_scheme'',',
' c_color_scheme,',
' TRUE,',
' TRUE',
' ));',
' end if;',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''text_position'',',
' c_text_position,',
' FALSE,',
' TRUE',
' )||',
' apex_javascript.add_attribute (',
' ''bar_width_calculation'',',
' c_bar_width_calculation,',
' FALSE,',
' TRUE',
' )||',
' apex_javascript.add_attribute (',
' ''display'',',
' c_display,',
' FALSE,',
' TRUE',
' )||',
' case ',
' when c_display in (''VALUE'') then',
' apex_javascript.add_attribute (',
' ''prefix_for_value'',',
' c_prefix_for_value,',
' TRUE,',
' TRUE',
' )||',
' apex_javascript.add_attribute (',
' ''postfix_for_value'',',
' c_postfix_for_value,',
' TRUE,',
' TRUE',
' )',
' end||',
' ''"items":[''',
' );',
' ',
' --for l_row_number in l_column_value_list(1).value_list.first .. l_column_value_list(1).value_list.last loop',
' for l_row_number in 1 .. l_column_value_list(1).value_list.count loop',
' begin',
' apex_plugin_util.set_component_values (',
' p_column_value_list => l_column_value_list,',
' p_row_num => l_row_number ',
' );',
' ',
' if l_row_number > 1 then',
' sys.htp.prn('', '');',
' end if;',
' ',
' sys.htp.prn(''{'');',
' ',
' l_label := apex_plugin_util.escape (',
' apex_plugin_util.get_value_as_varchar2 (',
' P_data_type => l_column_value_list(l_label_column_number).data_type,',
' p_value => l_column_value_list(l_label_column_number).value_list(l_row_number)',
' ),',
' p_region.escape_output',
' );',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''label'',',
' l_label,',
' FALSE',
' ));',
' l_label_link := ',
' case ',
' when c_label_link is not NULL then ',
' apex_util.prepare_url (',
' apex_plugin_util.replace_substitutions (',
' p_value => c_label_link,',
' p_escape => FALSE',
' ))',
' end;',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''label_link'',',
' l_label_link',
' ));',
' ',
' l_value := apex_plugin_util.escape (',
' apex_plugin_util.get_value_as_varchar2 (',
' P_data_type => l_column_value_list(l_value_column_number).data_type,',
' p_value => l_column_value_list(l_value_column_number).value_list(l_row_number)),',
' p_region.escape_output);',
' --',
' l_display_value :=',
' case ',
' when c_value_format_mask is not NULL then',
' to_char(to_number(l_value),c_value_format_mask)',
' else',
' l_value',
' end;',
'',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''display_value'',',
' l_display_value,',
' FALSE,',
' TRUE',
' ));',
' --',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''value'',',
' l_value,',
' FALSE,',
' c_value_link is not NULL or l_color_column_number is not NULL or c_chart_type = ''ICON''',
' ));',
'',
' l_value_link := ',
' case ',
' when c_value_link is not NULL then ',
' apex_util.prepare_url (',
' apex_plugin_util.replace_substitutions (',
' p_value => c_value_link,',
' p_escape => FALSE',
' ))',
' end;',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''value_link'',',
' l_value_link,',
' TRUE,',
' l_color_column_number is not NULL or c_chart_type = ''ICON''',
' ));',
' if l_color_column_number is not NULL then',
' l_color := apex_plugin_util.escape (',
' apex_plugin_util.get_value_as_varchar2 (',
' P_data_type => l_column_value_list(l_color_column_number).data_type,',
' p_value => l_column_value_list(l_color_column_number).value_list(l_row_number)),',
' p_region.escape_output);',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''color'',',
' l_color,',
' FALSE,',
' c_chart_type = ''ICON''',
' ));',
' end if;',
' if c_icon_type = ''IMAGE'' then',
' l_image_url := ',
' case ',
' when c_image_url is not NULL then ',
' apex_util.prepare_url (',
' apex_plugin_util.replace_substitutions (',
' p_value => c_image_url,',
' p_escape => FALSE',
' ))',
' end;',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''image_url'',',
' l_image_url,',
' FALSE,',
' FALSE',
' ));',
' elsif c_icon_type = ''ICON'' then',
' l_css_icon_class_name := apex_plugin_util.replace_substitutions (',
' p_value => c_css_icon_class_name,',
' p_escape => TRUE);',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''icon_css_class_name'',',
' l_css_icon_class_name,',
' FALSE,',
' FALSE',
' ));',
' elsif c_icon_type = ''INITIALS'' then',
' l_initials := apex_plugin_util.escape (',
' apex_plugin_util.get_value_as_varchar2 (',
' P_data_type => l_column_value_list(l_initials_column_number).data_type,',
' p_value => l_column_value_list(l_initials_column_number).value_list(l_row_number)),',
' p_region.escape_output);',
' sys.htp.prn(',
' apex_javascript.add_attribute (',
' ''initials'',',
' l_initials,',
' FALSE,',
' FALSE',
' ));',
' end if;',
' ',
' sys.htp.prn(''}'');',
' ',
' apex_plugin_util.clear_component_values;',
' exception',
' when OTHERS then',
' apex_plugin_util.clear_component_values;',
' raise;',
' end;',
' end loop;',
' sys.htp.prn(',
' '']''||',
' ''}''',
' );',
' ',
' return NULL;',
'end ajax;'))
,p_api_version=>1
,p_render_function=>'render'
,p_ajax_function=>'ajax'
,p_standard_attributes=>'SOURCE_SQL:AJAX_ITEMS_TO_SUBMIT:ESCAPE_OUTPUT'
,p_substitute_attributes=>false
,p_reference_id=>3608178075541198815
,p_subscribe_plugin_settings=>true
,p_help_text=>'<p>This plugin draws horizontal bar charts containing labels, values and even icons</p>'
,p_version_identifier=>'20.2'
,p_about_url=>'http://apex.oracle.com/plugins'
,p_files_version=>16
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321843462504251152)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>1
,p_display_sequence=>100
,p_prompt=>'Icon Type'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'INITIALS'
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321851451940251163)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'EQUALS'
,p_depending_on_expression=>'ICON'
,p_lov_type=>'STATIC'
,p_help_text=>'Select the icon type to be displayed.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321843842203251153)
,p_plugin_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_display_sequence=>10
,p_display_value=>'Image'
,p_return_value=>'IMAGE'
,p_help_text=>'Displays an image HTML element on the left side of the chart.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321844324201251153)
,p_plugin_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_display_sequence=>20
,p_display_value=>'CSS Icon'
,p_return_value=>'ICON'
,p_help_text=>'Displays an icon with the given CSS class.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321844857097251153)
,p_plugin_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_display_sequence=>30
,p_display_value=>'Initials'
,p_return_value=>'INITIALS'
,p_help_text=>'Displays a colored circle containing the first two initials for each entry.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321845306284251153)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>2
,p_display_sequence=>10
,p_prompt=>'Label Column'
,p_attribute_type=>'REGION SOURCE COLUMN'
,p_is_required=>true
,p_column_data_types=>'VARCHAR2'
,p_is_translatable=>false
,p_help_text=>'Select the column from the region SQL Query that holds the labels for the chart.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321845796863251154)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>3
,p_display_sequence=>30
,p_prompt=>'Label Link Target'
,p_attribute_type=>'LINK'
,p_is_required=>false
,p_is_translatable=>false
,p_reference_scope=>'ROW'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Example 1: URL to navigate to page 10 and set P10_EMPNO to the EMPNO value of the clicked entry.',
'<pre>f?p=&APP_ID.:10:&APP_SESSION.::&DEBUG.:RP,10:P10_EMPNO:&EMPNO.</pre>',
'</p>',
'<p>Example 2: Display the EMPNO value of the clicked entry in a JavaScript alert',
'<pre>javascript:alert(''current empno: &EMPNO.'');</pre>',
'</p>'))
,p_help_text=>'<p>Enter a target page to be called when the user clicks a label.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321846192515251154)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>4
,p_display_sequence=>20
,p_prompt=>'Value Column'
,p_attribute_type=>'REGION SOURCE COLUMN'
,p_is_required=>true
,p_column_data_types=>'VARCHAR2'
,p_is_translatable=>false
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Select the column from the region SQL Query that holds the values for the chart.</p>',
'<p>Note: This value is not displayed on the chart items when the chart has been configured to display the bar width percentage instead.</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321846503548251159)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>5
,p_display_sequence=>40
,p_prompt=>'Value Link Target'
,p_attribute_type=>'LINK'
,p_is_required=>false
,p_is_translatable=>false
,p_reference_scope=>'ROW'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Example 1: URL to navigate to page 10 and set P10_EMPNO to the EMPNO value of the clicked entry.',
'<pre>f?p=&APP_ID.:10:&APP_SESSION.::&DEBUG.:RP,10:P10_EMPNO:&EMPNO.</pre>',
'</p>',
'<p>Example 2: Display the EMPNO value of the clicked entry in a JavaScript alert',
'<pre>javascript:alert(''current empno: &EMPNO.'');</pre>',
'</p>'))
,p_help_text=>'<p>Enter a target page to be called when the user clicks a value.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321846823337251160)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>6
,p_display_sequence=>190
,p_prompt=>'CSS Class Names'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_is_translatable=>false
,p_help_text=>'<p>Enter CSS class names to be added to the root element of the chart separated with spaces.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321847233776251160)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>7
,p_display_sequence=>120
,p_prompt=>'Image URL'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'EQUALS'
,p_depending_on_expression=>'IMAGE'
,p_help_text=>'<p>Enter the Image URL to be displayed as the chart icon. This attribute supports Substitution strings, such as query columns, <strong>&IMAGE_URL.</strong>. Notice that substitutions with no value will be replaced with an empty string.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321847668821251160)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>8
,p_display_sequence=>110
,p_prompt=>'Icon CSS Class Name'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'EQUALS'
,p_depending_on_expression=>'ICON'
,p_help_text=>'<p>Enter the Icon CSS Class Name.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321848006695251160)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>9
,p_display_sequence=>130
,p_prompt=>'Initials Column'
,p_attribute_type=>'REGION SOURCE COLUMN'
,p_is_required=>true
,p_column_data_types=>'VARCHAR2'
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321843462504251152)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'EQUALS'
,p_depending_on_expression=>'INITIALS'
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Select the column from the region SQL Query that holds the initials to be displayed as an icon.</p>',
'<p>Note: If the columns has more than two letters than the icon will includes three ellipses (...). Therefore, it is not recommended to use the label column.</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321848491930251161)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>10
,p_display_sequence=>170
,p_prompt=>'Custom Colors'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'CUSTOM'
,p_help_text=>'<p>Enter a list of CSS supported colors separated by colons.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321848842575251161)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>11
,p_display_sequence=>50
,p_prompt=>'Value Display'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'VALUE'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'<p>Select whether to display the item value or the percentage as the right most text in the chart.</p>'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321849239626251161)
,p_plugin_attribute_id=>wwv_flow_api.id(321848842575251161)
,p_display_sequence=>10
,p_display_value=>'Value'
,p_return_value=>'VALUE'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321849765445251161)
,p_plugin_attribute_id=>wwv_flow_api.id(321848842575251161)
,p_display_sequence=>20
,p_display_value=>'Percentage'
,p_return_value=>'BAR_WIDTH'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321850248982251162)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>12
,p_display_sequence=>60
,p_prompt=>'Value Prefix'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_is_translatable=>true
,p_depending_on_attribute_id=>wwv_flow_api.id(321848842575251161)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'VALUE'
,p_help_text=>'<p>Enter the text that prefixes the value.<p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321850625732251162)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>13
,p_display_sequence=>70
,p_prompt=>'Value Suffix'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_is_translatable=>true
,p_depending_on_attribute_id=>wwv_flow_api.id(321848842575251161)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'VALUE'
,p_help_text=>'Enter the text that is appended to the value.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321851036826251162)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>14
,p_display_sequence=>180
,p_prompt=>'Maximum Rows'
,p_attribute_type=>'INTEGER'
,p_is_required=>true
,p_default_value=>'5'
,p_is_translatable=>false
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Enter the maximum number of items to be displayed inside the region.</p>',
'<p>Note: Bar width calculations are based on the number of items displayed.</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321851451940251163)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>15
,p_display_sequence=>90
,p_prompt=>'Display Type'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'TEXT'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'<p>Select how to display the chart information.</p>'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321851839406251163)
,p_plugin_attribute_id=>wwv_flow_api.id(321851451940251163)
,p_display_sequence=>10
,p_display_value=>'Icon Chart'
,p_return_value=>'ICON'
,p_help_text=>'Displays bars with the label and value above and add an icon on the left.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321852384479251163)
,p_plugin_attribute_id=>wwv_flow_api.id(321851451940251163)
,p_display_sequence=>20
,p_display_value=>'Text Chart'
,p_return_value=>'TEXT'
,p_help_text=>'Displays bars with the label and value either above or inline with the bar.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321852871704251163)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>16
,p_display_sequence=>80
,p_prompt=>'Bar Width Calculation'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'ABSOLUTE'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'<p>Select how to calculate the width of the bars in the chart.</p>'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321853282147251164)
,p_plugin_attribute_id=>wwv_flow_api.id(321852871704251163)
,p_display_sequence=>10
,p_display_value=>'Absolute'
,p_return_value=>'ABSOLUTE'
,p_help_text=>'100% bar width is represented by the maximum value displayed.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321853772787251164)
,p_plugin_attribute_id=>wwv_flow_api.id(321852871704251163)
,p_display_sequence=>20
,p_display_value=>'Relative'
,p_return_value=>'RELATIVE'
,p_help_text=>'100% bar width is represented by the sum of the values of all the displayed chart items.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321854284552251164)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>17
,p_display_sequence=>150
,p_prompt=>'Color Scheme'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'MODERN'
,p_is_translatable=>false
,p_lov_type=>'STATIC'
,p_help_text=>'<p>Select the color scheme used to render the chart.</p>'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321854650493251165)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>5
,p_display_value=>'Default'
,p_return_value=>'DEFAULT'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321855168155251165)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>10
,p_display_value=>'Theme Colors'
,p_return_value=>'MODERN'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321855612404251165)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>20
,p_display_value=>'Modern 2'
,p_return_value=>'MODERN_2'
);
end;
/
begin
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321856182773251165)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>30
,p_display_value=>'Solar'
,p_return_value=>'SOLAR'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321856648462251166)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>40
,p_display_value=>'Metro'
,p_return_value=>'METRO'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321857176991251166)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>50
,p_display_value=>'Custom'
,p_return_value=>'CUSTOM'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321857677429251166)
,p_plugin_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_display_sequence=>60
,p_display_value=>'SQL Query Column'
,p_return_value=>'COLUMN'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321858132305251166)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>18
,p_display_sequence=>140
,p_prompt=>'Text Position'
,p_attribute_type=>'SELECT LIST'
,p_is_required=>true
,p_default_value=>'AROUND'
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321851451940251163)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'TEXT'
,p_lov_type=>'STATIC'
,p_help_text=>'<p>Select where to display the text within the chart.</p>'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321858508546251167)
,p_plugin_attribute_id=>wwv_flow_api.id(321858132305251166)
,p_display_sequence=>10
,p_display_value=>'Above'
,p_return_value=>'ABOVE'
,p_help_text=>'The label and value are displayed above the bar, to the left and right sides of the chart.'
);
wwv_flow_api.create_plugin_attr_value(
p_id=>wwv_flow_api.id(321859021104251167)
,p_plugin_attribute_id=>wwv_flow_api.id(321858132305251166)
,p_display_sequence=>20
,p_display_value=>'Inline'
,p_return_value=>'AROUND'
,p_help_text=>'The label, bar, and value are all displayed in a single line.'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321859591960251167)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>19
,p_display_sequence=>160
,p_prompt=>'Colors Column'
,p_attribute_type=>'REGION SOURCE COLUMN'
,p_is_required=>true
,p_column_data_types=>'VARCHAR2'
,p_is_translatable=>false
,p_depending_on_attribute_id=>wwv_flow_api.id(321854284552251164)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'IN_LIST'
,p_depending_on_expression=>'COLUMN'
,p_examples=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<dl>',
' <dt>Hexadecimal (hex) notation</dt><dd><pre>#FF3377</pre>;</dd>',
' <dt>HTML colors</dt><dd><pre>blue</pre>.</dd>',
'</dl>'))
,p_help_text=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<p>Select the column from the region SQL Query that holds the color codes for the chart. The color can be set using hex values or as the name of the color.</p>',
'<p>Note: If no column is entered then the color will automatically be calculated.</p>'))
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321859914218251168)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>20
,p_display_sequence=>200
,p_prompt=>'Message When No Data Found'
,p_attribute_type=>'TEXT'
,p_is_required=>true
,p_default_value=>'No data found.'
,p_is_translatable=>true
,p_help_text=>'<p>Enter the message to be displayed when no data is found.</p>'
);
wwv_flow_api.create_plugin_attribute(
p_id=>wwv_flow_api.id(321860360308251168)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_attribute_scope=>'COMPONENT'
,p_attribute_sequence=>21
,p_display_sequence=>25
,p_prompt=>'Format Mask'
,p_attribute_type=>'TEXT'
,p_is_required=>false
,p_show_in_wizard=>false
,p_is_translatable=>true
,p_depending_on_attribute_id=>wwv_flow_api.id(321848842575251161)
,p_depending_on_has_to_exist=>true
,p_depending_on_condition_type=>'EQUALS'
,p_depending_on_expression=>'VALUE'
,p_examples=>'999G999G999G999G999G990'
,p_help_text=>'Enter a numerical format mask to apply to the value column. You can learn more about format models here: https://docs.oracle.com/cd/B28359_01/server.111/b28286/sql_elements004.htm'
);
wwv_flow_api.create_plugin_std_attribute(
p_id=>wwv_flow_api.id(321864099740251176)
,p_plugin_id=>wwv_flow_api.id(1661134734745282163)
,p_name=>'SOURCE_SQL'
,p_sql_min_column_count=>1
);
end;
/
prompt --application/user_interfaces
begin
wwv_flow_api.create_user_interface(
p_id=>wwv_flow_api.id(1121353497734510372)
,p_ui_type_name=>'DESKTOP'
,p_display_name=>'DESKTOP'
,p_display_seq=>10
,p_use_auto_detect=>false
,p_is_default=>true
,p_theme_id=>42
,p_home_url=>'f?p=&APP_ID.:1:&SESSION.'
,p_theme_style_by_user_pref=>false
,p_navigation_list_id=>wwv_flow_api.id(1585479003630319997)
,p_navigation_list_position=>'SIDE'
,p_navigation_list_template_id=>wwv_flow_api.id(1585460520240301529)
,p_nav_list_template_options=>'#DEFAULT#:t-TreeNav--styleA'
,p_css_file_urls=>'#IMAGE_PREFIX#pkgapp_ui/css/5.0#MIN#.css'
,p_nav_bar_type=>'LIST'
,p_nav_bar_list_id=>wwv_flow_api.id(1585506649675359475)
,p_nav_bar_list_template_id=>wwv_flow_api.id(1585460352336301527)
);
end;
/
prompt --application/user_interfaces/combined_files
begin
null;
end;
/
prompt --application/pages/page_00001
begin
wwv_flow_api.create_page(
p_id=>1
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_tab_set=>'TS1'
,p_name=>'Home'
,p_alias=>'HOME'
,p_step_title=>'Sample Trees'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'ON'
,p_inline_css=>wwv_flow_string.join(wwv_flow_t_varchar2(
'div.featuredBlock{',
' -webkit-border-radius:3px;',
' -moz-border-radius:3px;',
' border-radius:3px;',
' -webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);',
' -moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);',
' box-shadow:0 1px 2px rgba(0,0,0,0.05);',
' border:1px solid #E1E6EB;',
' margin-bottom:18px',
'}',
'div.featuredBlock div.featuredIcon{',
' background-image:url(''data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPb'
||'lVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiNmNGY0ZjgiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3A'
||'tY29sb3I9IiNmZmZmZmYiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyYWQpIiAvPjwvc3ZnPiA='');',
' background-size:100%;',
' background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(40%, #ffffff), color-stop(60%, #f4f4f8), color-stop(100%, #ffffff));',
' background-image:-webkit-linear-gradient(top, #ffffff 0%,#ffffff 40%,#f4f4f8 60%,#ffffff 100%);',
' background-image:-moz-linear-gradient(top, #ffffff 0%,#ffffff 40%,#f4f4f8 60%,#ffffff 100%);',
' background-image:linear-gradient(top, #ffffff 0%,#ffffff 40%,#f4f4f8 60%,#ffffff 100%);',
' -webkit-border-radius:3px 3px 0 0;',
' -moz-border-radius:3px 3px 0 0;',
' border-radius:3px 3px 0 0;',
' padding:8px 0;',
' min-height: 90px;',
' text-align:center;',
'}',
'div.featuredBlock div.featuredIcon img{',
' display:block;',
' margin:0 auto 0 auto;',
' -webkit-box-reflect:below -20px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(65%, transparent), to(rgba(255,255,255,0.2)));',
'}',
'div.featuredBlock div.featuredIcon h1{',
' font-size:12px;',
' line-height:12px;',
' color:#404040;',
' margin:0 8px;',
' padding:0;',
' text-align:center;',
'}',
'a.blockLink,a.blockLink:hover{',
' text-decoration:none',
'}',
'a.blockLink:hover div.featuredBlock{',
' border:1px solid #b1bbcb',
'}',
'a.blockLink:hover div.featuredBlock div.featuredIcon{',
' background: none #e5effb;',
' -webkit-box-shadow: 0 0 10px rgba(50,117,199,0.25);',
' -moz-box-shadow: 0 0 10px rgba(50,117,199,0.25);',
' box-shadow: 0 0 10px rgba(50,117,199,0.25);',
'}',
'.regionDivider {',
' border-top: 2px solid #F0F0F0 !important;',
' padding-top: 8px;;',
'}'))
,p_page_template_options=>'#DEFAULT#'
,p_nav_list_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'HILARY'
,p_last_upd_yyyymmddhh24miss=>'20210309053857'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1297552886542580685)
,p_plug_name=>'About this application'
,p_region_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585428609316301453)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_source=>'<p>This Oracle Application Express (APEX) Application demonstrates the built in tree component. Trees can be rendered using SQL queries.</p>'
,p_list_template_id=>wwv_flow_api.id(1224477693603248391)
,p_plug_query_headings_type=>'QUERY_COLUMNS'
,p_plug_query_num_rows_type=>'NEXT_PREVIOUS_LINKS'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_plug_query_show_nulls_as=>' - '
,p_pagination_display_position=>'BOTTOM_RIGHT'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1413536059239655360)
,p_plug_name=>'Footer'
,p_plug_display_sequence=>40
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_new_grid_row=>false
,p_plug_new_grid_column=>false
,p_plug_display_point=>'BODY'
,p_plug_source_type=>'PLUGIN_COM.ORACLE.APEX.SAMPLEAPPFOOTER'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1625401730346064550)
,p_plug_name=>'Additional Communities and Resources'
,p_region_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585428609316301453)
,p_plug_display_sequence=>30
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'BODY'
,p_plug_source_type=>'PLUGIN_COM.ORACLE.APEX.SAMPLEAPPFOOTER'
,p_plug_display_condition_type=>'NEVER'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2123312080756451347)
,p_plug_name=>'&APP_NAME.'
,p_icon_css_classes=>'app-sample-trees'
,p_region_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585434753825301461)
,p_plug_display_sequence=>10
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'REGION_POSITION_01'
,p_plug_source=>'<P>Use trees to display hierarchical information in a clear, easy-to-use format</p>'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3223519985620036421)
,p_plug_name=>'Example Trees'
,p_region_template_options=>'#DEFAULT#'
,p_component_template_options=>'#DEFAULT#:t-Cards--featured force-fa-lg:t-Cards--3cols:t-Cards--hideBody:u-colors:t-Cards--animColorFill'
,p_plug_template=>wwv_flow_api.id(1585428609316301453)
,p_plug_display_sequence=>20
,p_plug_display_point=>'BODY'
,p_list_id=>wwv_flow_api.id(3223519185632036419)
,p_plug_source_type=>'NATIVE_LIST'
,p_list_template_id=>wwv_flow_api.id(1585454233264301512)
);
end;
/
prompt --application/pages/page_00002
begin
wwv_flow_api.create_page(
p_id=>2
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_tab_set=>'TS1'
,p_name=>'Manage Sample Data'
,p_alias=>'MANAGE-SAMPLE-DATA'
,p_step_title=>'Manage Sample Data'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'ON'
,p_page_template_options=>'#DEFAULT#'
,p_nav_list_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3273067402126063796)
,p_plug_name=>'Manage Sample Application'
,p_region_template_options=>'#DEFAULT#:t-Alert--wizard:t-Alert--defaultIcons:t-Alert--info'
,p_plug_template=>wwv_flow_api.id(1585426810387301451)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_source=>'<p>Click the reset data button to reset the data to default values.</p>'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2532921613818244951)
,p_plug_name=>'Buttons'
,p_parent_plug_id=>wwv_flow_api.id(3273067402126063796)
,p_region_template_options=>'#DEFAULT#:t-ButtonRegion--noPadding:t-ButtonRegion--noUI'
,p_plug_template=>wwv_flow_api.id(1585428806883301455)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3273068007979063798)
,p_plug_name=>'Manage Sample Data'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>1
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3273067809282063798)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(2532921613818244951)
,p_button_name=>'RESET_DATA'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#:t-Button--large'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Reset Data'
,p_button_position=>'REGION_TEMPLATE_NEXT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(2127131272134210274)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(2532921613818244951)
,p_button_name=>'CANCEL'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#:t-Button--large'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Cancel'
,p_button_position=>'REGION_TEMPLATE_PREVIOUS'
,p_button_redirect_url=>'f?p=&APP_ID.:settings:&SESSION.::&DEBUG.:::'
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3273068996825063806)
,p_branch_action=>'f?p=&APP_ID.:SETTINGS:&SESSION.::&DEBUG.:::&success_msg=#SUCCESS_MSG#'
,p_branch_point=>'AFTER_PROCESSING'
,p_branch_type=>'REDIRECT_URL'
,p_branch_sequence=>10
,p_branch_comment=>'Created 12-DEC-2011 06:30 by MIKE'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3273068706287063804)
,p_process_sequence=>10
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'reset data'
,p_process_sql_clob=>'EBA_DEMO_TREE_DATA;'
,p_process_clob_language=>'PLSQL'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_success_message=>'Data has been reset to default values.'
);
end;
/
prompt --application/pages/page_00003
begin
wwv_flow_api.create_page(
p_id=>3
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Project Tracking'
,p_alias=>'PROJECT-TRACKING'
,p_step_title=>'Project Tracking'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'ON'
,p_step_template=>wwv_flow_api.id(1585422579688301441)
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1320216890151221838)
,p_plug_name=>'SQL Source'
,p_region_template_options=>'#DEFAULT#:is-collapsed:t-Region--noBorder:t-Region--scrollBody'
,p_plug_template=>wwv_flow_api.id(1585435226411301463)
,p_plug_display_sequence=>30
,p_plug_display_point=>'BODY'
,p_plug_source_type=>'PLUGIN_COM.ORACLE.APEX.DISPLAY_SOURCE'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'task_tree'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3158114294271612928)
,p_plug_name=>'Task Tree'
,p_region_name=>'task_tree'
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>20
,p_plug_new_grid_row=>false
,p_plug_new_grid_column=>false
,p_plug_display_point=>'BODY'
,p_query_type=>'SQL'
,p_plug_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select case when connect_by_isleaf = 1 then 0',
' when level = 1 then 1',
' else -1',
' end as status, ',
' level, ',
' label||'': ''||name as title, ',
' case when item_type = ''P'' then ''fa-file-text-o''',
' when item_type = ''S'' then ''fa-caret-square-o-right''',
' when item_type = ''T'' then ''fa-minus-square-o''',
' else null',
' end as icon, ',
' id as value, ',
' case when tooltip is not null then name||'' - ''||tooltip||''% complete''',
' else name',
' end as tooltip,',
' case when item_type = ''P'' then ',
' apex_util.prepare_url(''f?p=''||:app_id||'':7:''||:app_session||'':T:::P3_SELECTED_NODE,P7_PROJ_ID:''||id||'',''||id)',
' when item_type = ''T'' then',
' apex_util.prepare_url(''f?p=''||:app_id||'':9:''||:app_session||'':T:::P3_SELECTED_NODE,P9_PROJ_ID,P9_TASK_ID:''||id||'',''||link)',
' when item_type = ''S'' then ',
' apex_util.prepare_url(''f?p=''||:app_id||'':10:''||:app_session||'':T:::P3_SELECTED_NODE,P10_PROJ_ID,P10_ROWID:''||id||'',''||link)',
' end as link ',
' from (',
'select ''P'' item_type,',
' t.label label,',
' to_char(a.PROJ_ID) id,',
' null parent,',
' a.project_name name,',
' a.status tooltip,',
' null link',
' from eba_demo_tree_projects a, (select wwv_flow_lang.system_message(''PROJECT'') label from dual) t',
'union all',
'select ''T'' item_type,',
' u.label label,',
' to_char(b.proj_id)||''-''||to_char(b.task_id) id,',
' to_char(b.proj_id) parent,',
' b.task_name name,',
' null tooltip,',
' b.proj_id||'',''||b.task_id link',
' from eba_demo_tree_task b, (select wwv_flow_lang.system_message(''TASK'') label from dual) u',
'union all',
'select ''S'' item_type,',
' v.label label,',
' to_char(c.proj_id)||''-''||to_char(c.task_id)||''-''||to_char(c.sub_id) id,',
' to_char(c.proj_id)||''-''||to_char(c.task_id) parent,',
' c.sub_name name,',
' null tooltip,',
' c.proj_id||'',''||c.rowid link',
' from eba_demo_tree_subtask c, (select wwv_flow_lang.system_message(''SUBTASK'') label from dual) v',
')',
'start with parent is null',
'connect by prior id = parent',
'order siblings by name'))
,p_lazy_loading=>false
,p_plug_source_type=>'NATIVE_JSTREE'
,p_attribute_02=>'S'
,p_attribute_03=>'P3_SELECTED_NODE'
,p_attribute_04=>'DB'
,p_attribute_06=>'projTrackTree'
,p_attribute_08=>'fa'
,p_attribute_10=>'TITLE'
,p_attribute_11=>'LEVEL'
,p_attribute_12=>'ICON'
,p_attribute_15=>'STATUS'
,p_attribute_20=>'VALUE'
,p_attribute_22=>'TOOLTIP'
,p_attribute_23=>'LEVEL'
,p_attribute_24=>'LINK'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3167901386699608550)
,p_plug_name=>'Breadcrumb'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>10
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3171026984006106783)
,p_plug_name=>'Task_Tracking_Tabs'
,p_region_template_options=>'#DEFAULT#:t-Region--noPadding:t-Region--scrollBody:t-Region--hideHeader'
,p_component_template_options=>'#DEFAULT#:t-MediaList--cols t-MediaList--2cols'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_list_id=>wwv_flow_api.id(3171026188574106764)
,p_plug_source_type=>'NATIVE_LIST'
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3158114693431612930)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(3158114294271612928)
,p_button_name=>'CONTRACT_ALL'
,p_button_action=>'DEFINED_BY_DA'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Collapse All'
,p_button_position=>'REGION_TEMPLATE_EDIT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3158114893870612930)
,p_button_sequence=>30
,p_button_plug_id=>wwv_flow_api.id(3158114294271612928)
,p_button_name=>'EXPAND_ALL'
,p_button_action=>'DEFINED_BY_DA'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Expand All'
,p_button_position=>'REGION_TEMPLATE_EDIT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3175346484539183756)
,p_button_sequence=>40
,p_button_plug_id=>wwv_flow_api.id(3158114294271612928)
,p_button_name=>'RESET_TREE'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#:t-Button--iconLeft'
,p_button_template_id=>wwv_flow_api.id(1585462019447301543)
,p_button_image_alt=>'Reset Tree'
,p_button_position=>'REGION_TEMPLATE_EDIT'
,p_button_redirect_url=>'f?p=&APP_ID.:3:&SESSION.::&DEBUG.:3::'
,p_icon_css_classes=>'fa-undo-alt'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3167896610875435725)
,p_name=>'P3_SELECTED_NODE'
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(3158114294271612928)
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_da_event(
p_id=>wwv_flow_api.id(1497681166888823947)
,p_name=>'collapse'
,p_event_sequence=>10
,p_triggering_element_type=>'BUTTON'
,p_triggering_button_id=>wwv_flow_api.id(3158114693431612930)
,p_bind_type=>'bind'
,p_bind_event_type=>'click'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(1497681265053823948)
,p_event_id=>wwv_flow_api.id(1497681166888823947)
,p_event_result=>'TRUE'
,p_action_sequence=>10
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_TREE_COLLAPSE'
,p_affected_elements_type=>'REGION'
,p_affected_region_id=>wwv_flow_api.id(3158114294271612928)
);
wwv_flow_api.create_page_da_event(
p_id=>wwv_flow_api.id(1497681296337823949)
,p_name=>'expand'
,p_event_sequence=>20
,p_triggering_element_type=>'BUTTON'
,p_triggering_button_id=>wwv_flow_api.id(3158114893870612930)
,p_bind_type=>'bind'
,p_bind_event_type=>'click'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(1497681393196823950)
,p_event_id=>wwv_flow_api.id(1497681296337823949)
,p_event_result=>'TRUE'
,p_action_sequence=>10
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_TREE_EXPAND'
,p_affected_elements_type=>'REGION'
,p_affected_region_id=>wwv_flow_api.id(3158114294271612928)
);
end;
/
prompt --application/pages/page_00004
begin
wwv_flow_api.create_page(
p_id=>4
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_tab_set=>'TS1'
,p_name=>'Help'
,p_alias=>'HELP'
,p_step_title=>'Help'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_autocomplete_on_off=>'ON'
,p_html_page_header=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<style>',
'div.helpContainer{width:960px;margin:16px auto;zoom:1}',
'div.helpContainer:before,div.helpContainer:after{content:"\0020";display:block;height:0;overflow:hidden}',
'div.helpContainer:after{clear:both}',
'div.helpContainer div.helpSide{float:left;width:300px}',
'div.helpContainer div.helpSide h1.appNameHeader{position:relative;font:bold 22px/36px Arial,sans-serif;color:#404040;padding:0;margin:0}',
'div.helpContainer div.helpSide h1.appNameHeader img{display:block;position:absolute;left:0;top:0}',
'div.helpContainer div.helpMain{float:right;border-left:1px solid #EEE;width:632px;padding-left:16px}',
'div.helpContainer div.helpMain h2{font:bold 20px/32px Arial,sans-serif;color:#404040;margin:0 0 8px 0}',
'div.helpContainer div.helpMain h3{font:bold 16px/24px Arial,sans-serif;color:#404040;margin:0 0 8px 0}',
'div.helpContainer div.helpMain h4{font:bold 12px/16px Arial,sans-serif;color:#404040;margin:0 0 8px 0}',
'div.helpContainer div.helpMain p{font:normal 12px/16px Arial,sans-serif;color:#404040;margin:0 0 8px 0}',
'div.helpContainer div.helpMain ul{list-style:outside disc;margin:0 0 0 24px}',
'div.helpContainer div.helpMain ul li{font:normal 12px/20px Arial,sans-serif;color:#404040}',
'div.helpContainer div.helpMain .aboutApp,div.helpContainer div.helpMain .textRegion{border-bottom:1px solid #EEE;padding-bottom:16px;margin-bottom:16px}',
'</style>'))
,p_page_template_options=>'#DEFAULT#'
,p_nav_list_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_report_region(
p_id=>wwv_flow_api.id(2049238471045568246)
,p_name=>'&APP_NAME.'
,p_template=>wwv_flow_api.id(1585434753825301461)
,p_display_sequence=>20
,p_include_in_reg_disp_sel_yn=>'Y'
,p_region_css_classes=>'t-HeroRegion--featured'
,p_icon_css_classes=>'app-sample-trees'
,p_region_template_options=>'#DEFAULT#'
,p_component_template_options=>'#DEFAULT#:t-AVPList--rightAligned'
,p_new_grid_row=>false
,p_grid_column_span=>4
,p_display_point=>'BODY'
,p_source_type=>'NATIVE_SQL_REPORT'
,p_query_type=>'SQL'
,p_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select aa.version app_version,',
' to_char(aa.pages,''999G999G990'') pages,',
' ''Oracle'' vendor',
'from apex_applications aa',
'where aa.application_id = :APP_ID'))
,p_ajax_enabled=>'Y'
,p_lazy_loading=>false
,p_query_row_template=>wwv_flow_api.id(1585451067248301505)
,p_query_num_rows=>15
,p_query_options=>'DERIVED_REPORT_COLUMNS'
,p_query_show_nulls_as=>'-'
,p_csv_output=>'N'
,p_prn_output=>'N'
,p_sort_null=>'L'
,p_plug_query_strip_html=>'N'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(2049238571486568247)
,p_query_column_id=>1
,p_column_alias=>'APP_VERSION'
,p_column_display_sequence=>1
,p_column_heading=>'App version'
,p_use_as_row_header=>'N'
,p_heading_alignment=>'LEFT'
,p_disable_sort_column=>'N'
,p_derived_column=>'N'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(2049238751260568248)
,p_query_column_id=>2
,p_column_alias=>'PAGES'
,p_column_display_sequence=>2
,p_column_heading=>'Pages'
,p_use_as_row_header=>'N'
,p_heading_alignment=>'LEFT'
,p_disable_sort_column=>'N'
,p_derived_column=>'N'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(2049238866249568249)
,p_query_column_id=>3
,p_column_alias=>'VENDOR'
,p_column_display_sequence=>3
,p_column_heading=>'Vendor'
,p_use_as_row_header=>'N'
,p_heading_alignment=>'LEFT'
,p_disable_sort_column=>'N'
,p_derived_column=>'N'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3165906608977856411)
,p_plug_name=>'Help'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>50
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_plug_display_condition_type=>'NEVER'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3240337990649613736)
,p_plug_name=>'Help Container'
,p_region_template_options=>'#DEFAULT#:t-Region--removeHeader js-removeLandmark:t-Region--scrollBody'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3165906186507856410)
,p_plug_name=>'Quick Start'
,p_parent_plug_id=>wwv_flow_api.id(3240337990649613736)
,p_plug_display_sequence=>20
,p_plug_display_point=>'BODY'
,p_plug_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<H2>Getting Started</h2>',
'<p>Run the application as a developer; at the bottom of the page will be buttons for viewing the page in the Application Express Application Builder. Click on the "Edit Page X" button to see how the pages are defined.</p>',
'<p>If you have questions, ask them on the <a href="https://forums.oracle.com/forums/forum.jspa?forumID=137">OTN Forum</a>.</p>'))
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3165906387963856411)
,p_plug_name=>'About this Application'
,p_parent_plug_id=>wwv_flow_api.id(3240337990649613736)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<h2>About this Application</h2>',
'<p>Learn how to create a tree control using a SQL query. This application shows various methods of integrating tree controls into your Oracle Application Express application. The sample Project Tracking example demonstrates how you can represent your'
||' hierarchical data using a tree, with custom icons, tool tips and links for each level of the tree. The sample Project Documentation example demonstrates how you can customize a tree region to add a context menu and support the download of documents '
||'via the tree node link.</p><p>',
'',
'Use this application to familiarize yourself with the Tree region options available, and custom JavaScript driven tree rendering techniques. The JavaScript required is included in the "JavaScript" attribute of the Project Documentation page. This mak'
||'es the JavaScript easy to integrate into your own application.</p>'))
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3240271304155917386)
,p_plug_name=>'Features'
,p_parent_plug_id=>wwv_flow_api.id(3240337990649613736)
,p_plug_display_sequence=>30
,p_plug_display_point=>'BODY'
,p_plug_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'<h2>Features</h2>',
'<p>',
'<ul>',
'<li>SQL Query Driven</li>',
'<li>Expandable and Collapsible</li>',
'<li>Three available styles</li>',
'<li>Each node can control icon, tool tip and link</li>',
'<li>Customize to add context menu</li>',
'<li>Customize to allow document download</li>',
'</ul>',
'</p>'))
,p_plug_query_headings_type=>'QUERY_COLUMNS'
,p_plug_query_num_rows=>15
,p_plug_query_num_rows_type=>'NEXT_PREVIOUS_LINKS'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_plug_query_show_nulls_as=>' - '
,p_pagination_display_position=>'BOTTOM_RIGHT'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
end;
/
prompt --application/pages/page_00005
begin
wwv_flow_api.create_page(
p_id=>5
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Administration'
,p_alias=>'SETTINGS'
,p_step_title=>'Administration'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_autocomplete_on_off=>'OFF'
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127123245061194939)
,p_plug_name=>'Breadcrumb'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>10
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127123591040194939)
,p_plug_name=>'Administration Menu'
,p_region_template_options=>'#DEFAULT#:t-Region--noPadding:t-Region--hideHeader:t-Region--hiddenOverflow'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>20
,p_plug_display_point=>'BODY'
,p_list_id=>wwv_flow_api.id(2127124625948194941)
,p_plug_source_type=>'NATIVE_LIST'
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
);
end;
/
prompt --application/pages/page_00006
begin
wwv_flow_api.create_page(
p_id=>6
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_tab_set=>'TS1'
,p_name=>'Project Dashboard'
,p_alias=>'PROJECT-DASHBOARD'
,p_step_title=>'Project Dashboard'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'ON'
,p_page_template_options=>'#DEFAULT#'
,p_nav_list_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(586952750706840947)
,p_plug_name=>'Project Progress'
,p_region_template_options=>'#DEFAULT#:t-Region--noPadding:t-Region--scrollBody'
,p_escape_on_http_output=>'Y'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>30
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'BODY'
,p_plug_source_type=>'NATIVE_JET_CHART'
,p_plug_query_num_rows=>15
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
);
wwv_flow_api.create_jet_chart(
p_id=>wwv_flow_api.id(586952990244840949)
,p_region_id=>wwv_flow_api.id(586952750706840947)
,p_chart_type=>'bar'
,p_animation_on_display=>'auto'
,p_animation_on_data_change=>'auto'
,p_orientation=>'horizontal'
,p_data_cursor=>'auto'
,p_data_cursor_behavior=>'auto'
,p_hover_behavior=>'none'
,p_stack=>'off'
,p_stack_label=>'off'
,p_connect_nulls=>'Y'
,p_value_position=>'auto'
,p_sorting=>'label-asc'
,p_fill_multi_series_gaps=>true
,p_zoom_and_scroll=>'off'
,p_tooltip_rendered=>'Y'
,p_show_series_name=>true
,p_show_group_name=>true
,p_show_value=>true
,p_show_label=>true
,p_show_row=>true
,p_show_start=>true
,p_show_end=>true
,p_show_progress=>true
,p_show_baseline=>true
,p_legend_rendered=>'off'
,p_legend_position=>'auto'
,p_overview_rendered=>'off'
,p_horizontal_grid=>'auto'
,p_vertical_grid=>'auto'
,p_gauge_orientation=>'circular'
,p_gauge_plot_area=>'on'
,p_show_gauge_value=>true
);
wwv_flow_api.create_jet_chart_series(
p_id=>wwv_flow_api.id(586953038980840950)
,p_chart_id=>wwv_flow_api.id(586952990244840949)
,p_seq=>10
,p_name=>'New'
,p_data_source_type=>'SQL'
,p_data_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select project_name, ',
' status, ',
' proj_id,',
' case when status=100 then ''#E3170D''',
' when status >=30 and status < 100 then ''#009900''',
' else ''#FFE303''',
' end as color,',
' ''f?p=''||:APP_ID||'':7:''||:APP_SESSION||''::NO:RP,7:P7_PROJ_ID:''||proj_id the_link',
'from eba_demo_tree_projects',
'order by project_name'))
,p_items_value_column_name=>'STATUS'
,p_items_label_column_name=>'PROJECT_NAME'
,p_assigned_to_y2=>'off'
,p_items_label_rendered=>false
,p_items_label_display_as=>'PERCENT'
,p_threshold_display=>'onIndicator'
,p_link_target=>'f?p=&APP_ID.:7:&SESSION.::&DEBUG.:Y,7:P7_PROJ_ID:&PROJ_ID.'
,p_link_target_type=>'REDIRECT_PAGE'
);
wwv_flow_api.create_jet_chart_axis(
p_id=>wwv_flow_api.id(247682568741047201)
,p_chart_id=>wwv_flow_api.id(586952990244840949)
,p_axis=>'x'
,p_is_rendered=>'on'
,p_format_scaling=>'auto'
,p_scaling=>'linear'
,p_baseline_scaling=>'zero'
,p_major_tick_rendered=>'on'
,p_minor_tick_rendered=>'off'
,p_tick_label_rendered=>'on'
,p_tick_label_rotation=>'auto'
,p_tick_label_position=>'outside'
,p_zoom_order_seconds=>false
,p_zoom_order_minutes=>false
,p_zoom_order_hours=>false
,p_zoom_order_days=>false
,p_zoom_order_weeks=>false
,p_zoom_order_months=>false
,p_zoom_order_quarters=>false
,p_zoom_order_years=>false
);
wwv_flow_api.create_jet_chart_axis(
p_id=>wwv_flow_api.id(247682679753047202)
,p_chart_id=>wwv_flow_api.id(586952990244840949)
,p_axis=>'y'
,p_is_rendered=>'on'
,p_format_scaling=>'auto'
,p_scaling=>'linear'
,p_baseline_scaling=>'zero'
,p_position=>'auto'
,p_major_tick_rendered=>'on'
,p_minor_tick_rendered=>'off'
,p_tick_label_rendered=>'on'
,p_zoom_order_seconds=>false
,p_zoom_order_minutes=>false
,p_zoom_order_hours=>false
,p_zoom_order_days=>false
,p_zoom_order_weeks=>false
,p_zoom_order_months=>false
,p_zoom_order_quarters=>false
,p_zoom_order_years=>false
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3170814290329040030)
,p_plug_name=>'Breadcrumb'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>1
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3171027207046106815)
,p_plug_name=>'Task_Tracking_Tabs'
,p_region_template_options=>'#DEFAULT#:t-Region--noPadding:t-Region--scrollBody:t-Region--removeHeader js-removeLandmark'
,p_component_template_options=>'#DEFAULT#:t-MediaList--cols t-MediaList--2cols'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_list_id=>wwv_flow_api.id(3171026188574106764)
,p_plug_source_type=>'NATIVE_LIST'
,p_list_template_id=>wwv_flow_api.id(1585457829790301522)
,p_translate_title=>'N'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(586952852017840948)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(586952750706840947)
,p_button_name=>'CREATE'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Create'
,p_button_position=>'REGION_TEMPLATE_EDIT'
,p_button_redirect_url=>'f?p=&APP_ID.:7:&SESSION.::&DEBUG.:7'
);
end;
/
prompt --application/pages/page_00007
begin
wwv_flow_api.create_page(
p_id=>7
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Create/Edit Project'
,p_alias=>'CREATE-EDIT-PROJECT'
,p_page_mode=>'MODAL'
,p_step_title=>'Create/Edit Project'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'OFF'
,p_javascript_code=>'var htmldb_delete_message=''"DELETE_CONFIRM_MSG"'';'
,p_step_template=>wwv_flow_api.id(1585425334760301448)
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1575207801673695065)
,p_plug_name=>'Buttons'
,p_region_template_options=>'#DEFAULT#:t-ButtonRegion--noUI'
,p_plug_template=>wwv_flow_api.id(1585428806883301455)
,p_plug_display_sequence=>10
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'REGION_POSITION_03'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3170803697393922529)
,p_plug_name=>'Create/Edit Project'
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody:t-Region--noBorder:t-Region--hideHeader'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170804108626922531)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(1575207801673695065)
,p_button_name=>'DELETE'
,p_button_action=>'REDIRECT_URL'
,p_button_template_options=>'#DEFAULT#:t-Button--simple:t-Button--danger'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Delete'
,p_button_position=>'REGION_TEMPLATE_DELETE'
,p_button_redirect_url=>'javascript:apex.confirm(htmldb_delete_message,''DELETE'');'
,p_button_execute_validations=>'N'
,p_button_condition=>'P7_PROJ_ID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'DELETE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170803895105922531)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(1575207801673695065)
,p_button_name=>'CREATE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Create'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_condition=>'P7_PROJ_ID'
,p_button_condition_type=>'ITEM_IS_NULL'
,p_database_action=>'INSERT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170803996074922531)
,p_button_sequence=>40
,p_button_plug_id=>wwv_flow_api.id(1575207801673695065)
,p_button_name=>'SAVE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Apply Changes'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_condition=>'P7_PROJ_ID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'UPDATE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170804299759922532)
,p_button_sequence=>30
,p_button_plug_id=>wwv_flow_api.id(1575207801673695065)
,p_button_name=>'CANCEL'
,p_button_action=>'DEFINED_BY_DA'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Cancel'
,p_button_position=>'REGION_TEMPLATE_PREVIOUS'
,p_warn_on_unsaved_changes=>null
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3170804787767922538)
,p_branch_action=>'f?p=&APP_ID.:&LAST_VIEW.:&SESSION.::&DEBUG.:::&success_msg=#SUCCESS_MSG#'
,p_branch_point=>'AFTER_PROCESSING'
,p_branch_type=>'REDIRECT_URL'
,p_branch_sequence=>1
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170805011097922552)
,p_name=>'P7_PROJ_ID'
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_source=>'PROJ_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170805198918922563)
,p_name=>'P7_PROJECT_NAME'
,p_is_required=>true
,p_item_sequence=>20
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Project Name'
,p_source=>'PROJECT_NAME'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>4000
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170805393505922568)
,p_name=>'P7_START_DATE'
,p_item_sequence=>30
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Start Date'
,p_source=>'START_DATE'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170805596128922569)
,p_name=>'P7_ESTIMATED_COMPLETION'
,p_item_sequence=>40
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Estimated Completion'
,p_source=>'ESTIMATED_COMPLETION'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170805782596922569)
,p_name=>'P7_COMPLETION_DATE'
,p_item_sequence=>50
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Completion Date'
,p_source=>'COMPLETION_DATE'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170806196801922571)
,p_name=>'P7_STATUS'
,p_item_sequence=>70
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_item_default=>'0'
,p_prompt=>'Status'
,p_source=>'STATUS'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'STATUS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select status_name ||'' - ''||pct_complete||''%'' d, pct_complete r',
'from eba_demo_tree_def_st_codes',
'order by pct_complete'))
,p_cHeight=>1
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170806383350922571)
,p_name=>'P7_UPDATED'
,p_item_sequence=>80
,p_item_plug_id=>wwv_flow_api.id(3170803697393922529)
,p_use_cache_before_default=>'NO'
,p_source=>'UPDATED'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_validation(
p_id=>wwv_flow_api.id(3171042089191551713)
,p_validation_name=>'Completion Date Required'
,p_validation_sequence=>10
,p_validation=>'P7_COMPLETION_DATE'
,p_validation_type=>'ITEM_NOT_NULL'
,p_error_message=>'#LABEL# must be specified when status is set to 100%.'
,p_validation_condition=>'P7_STATUS'
,p_validation_condition2=>'100'
,p_validation_condition_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2'
,p_when_button_pressed=>wwv_flow_api.id(3170803996074922531)
,p_associated_item=>wwv_flow_api.id(3170805782596922569)
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
wwv_flow_api.create_page_da_event(
p_id=>wwv_flow_api.id(229025873650043463)
,p_name=>'Cancel Modal'
,p_event_sequence=>10
,p_triggering_element_type=>'BUTTON'
,p_triggering_button_id=>wwv_flow_api.id(3170804299759922532)
,p_bind_type=>'bind'
,p_bind_event_type=>'click'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(229025987112043464)
,p_event_id=>wwv_flow_api.id(229025873650043463)
,p_event_result=>'TRUE'
,p_action_sequence=>10
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_DIALOG_CANCEL'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170807508229922573)
,p_process_sequence=>10
,p_process_point=>'AFTER_HEADER'
,p_process_type=>'NATIVE_FORM_FETCH'
,p_process_name=>'Fetch Row from EBA_DEMO_TREE_PROJECTS'
,p_attribute_02=>'EBA_DEMO_TREE_PROJECTS'
,p_attribute_03=>'P7_PROJ_ID'
,p_attribute_04=>'PROJ_ID'
,p_attribute_11=>'I:U:D'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170807699234922575)
,p_process_sequence=>30
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_FORM_PROCESS'
,p_process_name=>'Process Row of EBA_DEMO_TREE_PROJECTS'
,p_attribute_02=>'EBA_DEMO_TREE_PROJECTS'
,p_attribute_03=>'P7_PROJ_ID'
,p_attribute_04=>'PROJ_ID'
,p_attribute_11=>'I:U:D'
,p_attribute_12=>'Y'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_success_message=>'Action Processed.'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170807893460922576)
,p_process_sequence=>40
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_SESSION_STATE'
,p_process_name=>'reset page'
,p_attribute_01=>'CLEAR_CACHE_CURRENT_PAGE'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_when_button_id=>wwv_flow_api.id(3170804108626922531)
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3171040685813531809)
,p_process_sequence=>50
,p_process_point=>'BEFORE_HEADER'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Set Page Navigation'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'if :REQUEST = ''T'' then ',
' :LAST_VIEW := 3;',
'else',
' :LAST_VIEW := 6;',
'end if;'))
,p_process_clob_language=>'PLSQL'
);
end;
/
prompt --application/pages/page_00008
begin
wwv_flow_api.create_page(
p_id=>8
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Application Theme Style'
,p_alias=>'APPLICATION-THEME-STYLE'
,p_step_title=>'Application Theme Style'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_autocomplete_on_off=>'OFF'
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127134398340220095)
,p_plug_name=>'Set User Interface Theme Style'
,p_region_template_options=>'#DEFAULT#:t-Region--hideHeader:t-Region--hiddenOverflow'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>20
,p_plug_new_grid_column=>false
,p_plug_display_point=>'BODY'
,p_plug_query_headings_type=>'QUERY_COLUMNS'
,p_plug_query_num_rows_type=>'NEXT_PREVIOUS_LINKS'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_plug_query_show_nulls_as=>' - '
,p_pagination_display_position=>'BOTTOM_RIGHT'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127134848721220096)
,p_plug_name=>'items'
,p_parent_plug_id=>wwv_flow_api.id(2127134398340220095)
,p_region_template_options=>'#DEFAULT#'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585428609316301453)
,p_plug_display_sequence=>30
,p_plug_new_grid_column=>false
,p_plug_display_point=>'BODY'
,p_translate_title=>'N'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127135609812220096)
,p_plug_name=>'About this page'
,p_region_css_classes=>'infoTextRegion'
,p_region_template_options=>'#DEFAULT#'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585428609316301453)
,p_plug_display_sequence=>10
,p_plug_new_grid_column=>false
,p_plug_display_point=>'BODY'
,p_plug_source=>'<p>Select the look and feel of the application you would like to use for all users of this application.</p>'
,p_plug_query_headings_type=>'QUERY_COLUMNS'
,p_plug_query_num_rows_type=>'NEXT_PREVIOUS_LINKS'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_plug_query_show_nulls_as=>' - '
,p_pagination_display_position=>'BOTTOM_RIGHT'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(2127135982389220096)
,p_plug_name=>'Breadcrumb'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>10
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(2127136387130220097)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(2127135982389220096)
,p_button_name=>'CANCEL'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Cancel'
,p_button_position=>'REGION_TEMPLATE_CLOSE'
,p_button_redirect_url=>'f?p=&APP_ID.:settings:&SESSION.::&DEBUG.:::'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(2127136821394220097)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(2127135982389220096)
,p_button_name=>'SAVE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Apply Changes'
,p_button_position=>'REGION_TEMPLATE_CREATE'
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(2127138335474220098)
,p_branch_action=>'f?p=&APP_ID.:settings:&SESSION.::&DEBUG.:::&success_msg=#SUCCESS_MSG#'
,p_branch_point=>'AFTER_PROCESSING'
,p_branch_type=>'REDIRECT_URL'
,p_branch_when_button_id=>wwv_flow_api.id(2127136821394220097)
,p_branch_sequence=>10
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(2127135209378220096)
,p_name=>'P8_DESKTOP_THEME_STYLE_ID'
,p_is_required=>true
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(2127134848721220096)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Desktop Theme Style'
,p_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select s.theme_style_id',
'from apex_application_theme_styles s, apex_application_themes t',
'where s.application_id = t.application_id',
'and s.theme_number = t.theme_number',
'and s.application_id = :app_id',
'and t.ui_type_name = ''DESKTOP''',
'and s.is_current = ''Yes'''))
,p_source_type=>'QUERY'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select s.name d,',
' s.theme_style_id r',
'from apex_application_theme_styles s, apex_application_themes t',
'where s.application_id = t.application_id',
'and s.theme_number = t.theme_number',
'and s.application_id = :app_id',
'and t.ui_type_name = ''DESKTOP''',
'and t.is_current = ''Yes''',
'order by 1'))
,p_cHeight=>1
,p_display_when=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select 1',
'from apex_application_theme_styles s, apex_application_themes t',
'where s.application_id = t.application_id',
'and s.theme_number = t.theme_number',
'and s.application_id = :app_id',
'and t.ui_type_name = ''DESKTOP''',
'and t.is_current = ''Yes'''))
,p_display_when_type=>'EXISTS'
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_restricted_characters=>'WEB_SAFE'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(2127137868219220098)
,p_process_sequence=>10
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Set Theme Style'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'if :P8_DESKTOP_THEME_STYLE_ID is not null then',
' for c1 in (select theme_number',
' from apex_application_themes',
' where application_id = :app_id',
' and ui_type_name = ''DESKTOP''',
' and is_current = ''Yes'')',
' loop',
' apex_theme.set_current_style (',
' p_theme_number => c1.theme_number,',
' p_id => :P8_DESKTOP_THEME_STYLE_ID',
' );',
' end loop;',
'end if;'))
,p_process_clob_language=>'PLSQL'
,p_process_error_message=>'#SQLERRM#'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_when_button_id=>wwv_flow_api.id(2127136821394220097)
,p_process_success_message=>'Theme Style Set for All Users.'
);
end;
/
prompt --application/pages/page_00009
begin
wwv_flow_api.create_page(
p_id=>9
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Create/Edit Tasks'
,p_alias=>'CREATE-EDIT-TASKS'
,p_step_title=>'Create/Edit Tasks'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'OFF'
,p_javascript_code=>wwv_flow_string.join(wwv_flow_t_varchar2(
'var htmldb_delete_message=''"DELETE_CONFIRM_MSG"'';',
'var htmldb_ch_message=''"OK_TO_GET_NEXT_PREV_PK_VALUE"'';'))
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3170822808896657875)
,p_plug_name=>'Breadcrumb'
,p_region_template_options=>'#DEFAULT#:t-BreadcrumbRegion--useBreadcrumbTitle'
,p_component_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585442034806301480)
,p_plug_display_sequence=>1
,p_plug_display_point=>'REGION_POSITION_01'
,p_menu_id=>wwv_flow_api.id(7263491457246758706)
,p_plug_source_type=>'NATIVE_BREADCRUMB'
,p_menu_template_id=>wwv_flow_api.id(1585462806460301546)
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3170829713343658333)
,p_plug_name=>'Create/Edit Tasks'
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody:t-Region--hideHeader'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_report_region(
p_id=>wwv_flow_api.id(3170888885413259159)
,p_name=>'Subtask Information'
,p_template=>wwv_flow_api.id(1585439443339301476)
,p_display_sequence=>20
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody'
,p_component_template_options=>'#DEFAULT#:t-Report--stretch:t-Report--altRowsDefault:t-Report--rowHighlight'
,p_display_point=>'BODY'
,p_source_type=>'NATIVE_SQL_REPORT'
,p_query_type=>'SQL'
,p_source=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select rowid, a.* from eba_demo_tree_subtask a',
'where a.task_id = :P9_TASK_ID',
'and a.proj_id = :P9_PROJ_ID'))
,p_display_when_condition=>'P9_TASK_ID'
,p_display_condition_type=>'ITEM_IS_NOT_NULL'
,p_ajax_enabled=>'Y'
,p_ajax_items_to_submit=>'P9_TASK_ID,P9_PROJ_ID'
,p_fixed_header=>'NONE'
,p_lazy_loading=>false
,p_query_row_template=>wwv_flow_api.id(1585449137516301501)
,p_query_num_rows=>15
,p_query_options=>'DERIVED_REPORT_COLUMNS'
,p_query_show_nulls_as=>' - '
,p_query_no_data_found=>'No subtasks found.'
,p_query_num_rows_type=>'NEXT_PREVIOUS_LINKS'
,p_query_row_count_max=>500
,p_pagination_display_position=>'BOTTOM_RIGHT'
,p_csv_output=>'N'
,p_prn_output=>'N'
,p_sort_null=>'L'
,p_query_asc_image=>'apex/builder/dup.gif'
,p_query_asc_image_attr=>'width="16" height="16" alt="" '
,p_query_desc_image=>'apex/builder/ddown.gif'
,p_query_desc_image_attr=>'width="16" height="16" alt="" '
,p_plug_query_strip_html=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170918705245021861)
,p_query_column_id=>1
,p_column_alias=>'ROWID'
,p_column_display_sequence=>1
,p_column_heading=>'Edit'
,p_use_as_row_header=>'N'
,p_column_link=>'f?p=&APP_ID.:10:&SESSION.::&DEBUG.::P10_ROWID,P10_PROJ_ID:#ROWID#,#PROJ_ID#'
,p_column_linktext=>'<img src="#IMAGE_PREFIX#menu/pencil2_16x16.gif" alt="Edit">'
,p_heading_alignment=>'LEFT'
,p_lov_show_nulls=>'NO'
,p_lov_display_extra=>'YES'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889190083259168)
,p_query_column_id=>2
,p_column_alias=>'PROJ_ID'
,p_column_display_sequence=>2
,p_column_heading=>'Proj Id'
,p_heading_alignment=>'LEFT'
,p_default_sort_column_sequence=>1
,p_disable_sort_column=>'N'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889290448259168)
,p_query_column_id=>3
,p_column_alias=>'TASK_ID'
,p_column_display_sequence=>3
,p_column_heading=>'Task Id'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889390870259168)
,p_query_column_id=>4
,p_column_alias=>'SUB_ID'
,p_column_display_sequence=>4
,p_column_heading=>'Sub Id'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889499114259168)
,p_query_column_id=>5
,p_column_alias=>'SUB_NAME'
,p_column_display_sequence=>5
,p_column_heading=>'Name'
,p_heading_alignment=>'LEFT'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889588738259168)
,p_query_column_id=>6
,p_column_alias=>'SUB_START'
,p_column_display_sequence=>6
,p_column_heading=>'Start'
,p_use_as_row_header=>'N'
,p_heading_alignment=>'LEFT'
,p_lov_show_nulls=>'NO'
,p_lov_display_extra=>'YES'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889707918259168)
,p_query_column_id=>7
,p_column_alias=>'SUB_EST_COMP'
,p_column_display_sequence=>7
,p_column_heading=>'Estimated Completion'
,p_use_as_row_header=>'N'
,p_heading_alignment=>'LEFT'
,p_lov_show_nulls=>'NO'
,p_lov_display_extra=>'YES'
,p_include_in_export=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889796495259168)
,p_query_column_id=>8
,p_column_alias=>'SUB_COMP'
,p_column_display_sequence=>8
,p_column_heading=>'Completed'
,p_heading_alignment=>'LEFT'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889893140259168)
,p_query_column_id=>9
,p_column_alias=>'SUB_PRIORITY'
,p_column_display_sequence=>9
,p_column_heading=>'Priority'
,p_heading_alignment=>'LEFT'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170889994419259168)
,p_query_column_id=>10
,p_column_alias=>'SUB_STATUS'
,p_column_display_sequence=>10
,p_column_heading=>'Status'
,p_heading_alignment=>'LEFT'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890089954259168)
,p_query_column_id=>11
,p_column_alias=>'CREATED'
,p_column_display_sequence=>11
,p_column_heading=>'Created'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890187791259168)
,p_query_column_id=>12
,p_column_alias=>'UPDATED'
,p_column_display_sequence=>12
,p_column_heading=>'Updated'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890312726259168)
,p_query_column_id=>13
,p_column_alias=>'SUB_ASSIGN'
,p_column_display_sequence=>13
,p_column_heading=>'Assignee'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890410332259168)
,p_query_column_id=>14
,p_column_alias=>'SUB_DESC'
,p_column_display_sequence=>14
,p_column_heading=>'Description'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890505473259168)
,p_query_column_id=>15
,p_column_alias=>'ROW_VERSION_NUMBER'
,p_column_display_sequence=>15
,p_column_heading=>'Row Version Number'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890601242259168)
,p_query_column_id=>16
,p_column_alias=>'CREATED_BY'
,p_column_display_sequence=>16
,p_column_heading=>'Created By'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_report_columns(
p_id=>wwv_flow_api.id(3170890708972259168)
,p_query_column_id=>17
,p_column_alias=>'UPDATED_BY'
,p_column_display_sequence=>17
,p_column_heading=>'Updated By'
,p_heading_alignment=>'LEFT'
,p_hidden_column=>'Y'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170830309407658335)
,p_button_sequence=>50
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'CANCEL'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Cancel'
,p_button_position=>'REGION_TEMPLATE_CLOSE'
,p_button_redirect_url=>'f?p=&APP_ID.:&LAST_VIEW.:&SESSION.::&DEBUG.:::'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170845209876658416)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(3170888885413259159)
,p_button_name=>'CREATE_SUBTASK'
,p_button_action=>'REDIRECT_PAGE'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Create Subtask'
,p_button_position=>'REGION_TEMPLATE_CREATE'
,p_button_redirect_url=>'f?p=&APP_ID.:10:&SESSION.::&DEBUG.:10:P10_PROJ_ID,P10_TASK_ID:&P9_PROJ_ID.,&P9_TASK_ID.'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170829996011658335)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'SAVE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Apply Changes'
,p_button_position=>'REGION_TEMPLATE_CREATE'
,p_button_condition=>'P9_TASK_ID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'UPDATE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170829896605658335)
,p_button_sequence=>30
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'CREATE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Create'
,p_button_position=>'REGION_TEMPLATE_CREATE'
,p_button_condition=>'P9_TASK_ID'
,p_button_condition_type=>'ITEM_IS_NULL'
,p_database_action=>'INSERT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170830085398658335)
,p_button_sequence=>40
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'DELETE'
,p_button_action=>'REDIRECT_URL'
,p_button_template_options=>'#DEFAULT#:t-Button--simple:t-Button--danger'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Delete'
,p_button_position=>'REGION_TEMPLATE_DELETE'
,p_button_redirect_url=>'javascript:apex.confirm(htmldb_delete_message,''DELETE'');'
,p_button_execute_validations=>'N'
,p_button_condition=>'P9_TASK_ID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'DELETE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170836103731658362)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'GET_NEXT_TASK_ID'
,p_button_action=>'REDIRECT_URL'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'>'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_redirect_url=>'javascript:htmldb_goSubmit(''GET_NEXT_TASK_ID'')'
,p_button_condition=>'P9_TASK_ID_NEXT'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_button_comment=>'This button is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170836209818658362)
,p_button_sequence=>60
,p_button_plug_id=>wwv_flow_api.id(3170822808896657875)
,p_button_name=>'GET_PREVIOUS_TASK_ID'
,p_button_action=>'REDIRECT_URL'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'<'
,p_button_position=>'REGION_TEMPLATE_PREVIOUS'
,p_button_redirect_url=>'javascript:htmldb_goSubmit(''GET_PREVIOUS_TASK_ID'')'
,p_button_condition=>'P9_TASK_ID_PREV'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_button_comment=>'This button is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3170830811749658338)
,p_branch_action=>'f?p=&APP_ID.:&LAST_VIEW.:&SESSION.::&DEBUG.:::&success_msg=#SUCCESS_MSG#'
,p_branch_point=>'AFTER_PROCESSING'
,p_branch_type=>'REDIRECT_URL'
,p_branch_sequence=>30
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3170839395024658379)
,p_branch_action=>'f?p=&APP_ID.:9:&SESSION.::&DEBUG.::P9_TASK_ID:&P9_TASK_ID_NEXT.'
,p_branch_point=>'BEFORE_COMPUTATION'
,p_branch_type=>'REDIRECT_URL'
,p_branch_when_button_id=>wwv_flow_api.id(3170836103731658362)
,p_branch_sequence=>10
,p_branch_comment=>'This button is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3170839586506658379)
,p_branch_action=>'f?p=&APP_ID.:9:&SESSION.::&DEBUG.::P9_TASK_ID:&P9_TASK_ID_PREV.'
,p_branch_point=>'BEFORE_COMPUTATION'
,p_branch_type=>'REDIRECT_URL'
,p_branch_when_button_id=>wwv_flow_api.id(3170836209818658362)
,p_branch_sequence=>20
,p_branch_comment=>'This button is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831002266658343)
,p_name=>'P9_TASK_ID'
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_source=>'TASK_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831211324658351)
,p_name=>'P9_PROJ_ID'
,p_is_required=>true
,p_item_sequence=>20
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Project:'
,p_source=>'PROJ_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'PROJECTS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select project_name d, proj_id r',
'from eba_demo_tree_projects',
'order by 1'))
,p_cHeight=>1
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831395341658351)
,p_name=>'P9_TASK_NAME'
,p_is_required=>true
,p_item_sequence=>5
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Task Name'
,p_source=>'TASK_NAME'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>4000
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831597074658352)
,p_name=>'P9_TASK_START'
,p_item_sequence=>40
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Start Date'
,p_source=>'TASK_START'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831795987658352)
,p_name=>'P9_TASK_EST_COMP'
,p_item_sequence=>50
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Estimated Completion'
,p_source=>'TASK_EST_COMP'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170831990226658352)
,p_name=>'P9_TASK_COMP'
,p_item_sequence=>60
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Completed'
,p_source=>'TASK_COMP'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170832197316658352)
,p_name=>'P9_TASK_PRIORITY'
,p_item_sequence=>70
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Priority'
,p_source=>'TASK_PRIORITY'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'PRIORITY'
,p_lov=>'.'||wwv_flow_api.id(3170812599369995249)||'.'
,p_lov_display_null=>'YES'
,p_lov_null_text=>'- None -'
,p_cHeight=>1
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'YES'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170832413763658353)
,p_name=>'P9_TASK_STATUS'
,p_item_sequence=>80
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_item_default=>'0'
,p_prompt=>'Status'
,p_source=>'TASK_STATUS'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'STATUS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select status_name ||'' - ''||pct_complete||''%'' d, pct_complete r',
'from eba_demo_tree_def_st_codes',
'order by pct_complete'))
,p_cHeight=>1
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170832984442658357)
,p_name=>'P9_TASK_ASSIGN'
,p_item_sequence=>110
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Task Assign'
,p_source=>'TASK_ASSIGN'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>255
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170833189459658357)
,p_name=>'P9_TASK_DESC'
,p_item_sequence=>120
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Details'
,p_source=>'TASK_DESC'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXTAREA'
,p_cSize=>64
,p_cMaxlength=>32000
,p_cHeight=>4
,p_tag_attributes=>'onchange="htmldb_item_change(this)"'
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_03=>'N'
,p_attribute_04=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170838393979658370)
,p_name=>'P9_TASK_ID_NEXT'
,p_item_sequence=>160
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
,p_item_comment=>'This item is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170838593564658371)
,p_name=>'P9_TASK_ID_PREV'
,p_item_sequence=>170
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
,p_item_comment=>'This item is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170838786591658371)
,p_name=>'P9_TASK_ID_COUNT'
,p_item_sequence=>180
,p_item_plug_id=>wwv_flow_api.id(3170829713343658333)
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
,p_item_comment=>'This item is needed for Get Next or Previous Primary Key Value process.'
);
wwv_flow_api.create_page_computation(
p_id=>wwv_flow_api.id(3170845386376658416)
,p_computation_sequence=>1
,p_computation_item=>'P10_ROWID'
,p_computation_type=>'STATIC_ASSIGNMENT'
,p_compute_when=>'CREATE'
,p_compute_when_type=>'REQUEST_EQUALS_CONDITION'
);
wwv_flow_api.create_page_validation(
p_id=>wwv_flow_api.id(3171083289387091072)
,p_validation_name=>'Completion Date Required'
,p_validation_sequence=>10
,p_validation=>'P9_TASK_COMP'
,p_validation_type=>'ITEM_NOT_NULL'
,p_error_message=>'#LABEL# must be specified when status is set to 100%.'
,p_validation_condition=>'P9_TASK_STATUS'
,p_validation_condition2=>'100'
,p_validation_condition_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2'
,p_when_button_pressed=>wwv_flow_api.id(3170829896605658335)
,p_associated_item=>wwv_flow_api.id(3170831990226658352)
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170835600432658361)
,p_process_sequence=>10
,p_process_point=>'AFTER_HEADER'
,p_process_type=>'NATIVE_FORM_FETCH'
,p_process_name=>'Fetch Row from EBA_DEMO_TREE_TASK'
,p_attribute_02=>'EBA_DEMO_TREE_TASK'
,p_attribute_03=>'P9_TASK_ID'
,p_attribute_04=>'TASK_ID'
,p_attribute_11=>'I:U:D'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170839182023658379)
,p_process_sequence=>20
,p_process_point=>'AFTER_HEADER'
,p_process_type=>'NATIVE_FORM_PAGINATION'
,p_process_name=>'Get Next or Previous Primary Key Value'
,p_attribute_02=>'EBA_DEMO_TREE_TASK'
,p_attribute_03=>'P9_TASK_ID'
,p_attribute_04=>'TASK_ID'
,p_attribute_09=>'P9_TASK_ID_NEXT'
,p_attribute_10=>'P9_TASK_ID_PREV'
,p_attribute_13=>'P9_TASK_ID_COUNT'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170835786773658362)
,p_process_sequence=>30
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_FORM_PROCESS'
,p_process_name=>'Process Row of EBA_DEMO_TREE_TASK'
,p_attribute_02=>'EBA_DEMO_TREE_TASK'
,p_attribute_03=>'P9_TASK_ID'
,p_attribute_04=>'TASK_ID'
,p_attribute_11=>'I:U:D'
,p_attribute_12=>'Y'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_success_message=>'Action Processed.'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170835995119658362)
,p_process_sequence=>40
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_SESSION_STATE'
,p_process_name=>'reset page'
,p_attribute_01=>'CLEAR_CACHE_CURRENT_PAGE'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_when_button_id=>wwv_flow_api.id(3170830085398658335)
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3174608499834011171)
,p_process_sequence=>50
,p_process_point=>'BEFORE_HEADER'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Set Page Navigation'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'if :REQUEST = ''T'' then ',
' :LAST_VIEW := 3;',
'else',
' :LAST_VIEW := 8;',
'end if;'))
,p_process_clob_language=>'PLSQL'
);
end;
/
prompt --application/pages/page_00010
begin
wwv_flow_api.create_page(
p_id=>10
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Modify Subtask Information'
,p_alias=>'MODIFY-SUBTASK-INFORMATION'
,p_page_mode=>'MODAL'
,p_step_title=>'Modify Subtask Information'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_first_item=>'AUTO_FIRST_ITEM'
,p_autocomplete_on_off=>'OFF'
,p_javascript_code=>'var htmldb_delete_message=''"DELETE_CONFIRM_MSG"'';'
,p_step_template=>wwv_flow_api.id(1585425334760301448)
,p_page_template_options=>'#DEFAULT#'
,p_protection_level=>'C'
,p_help_text=>'No help is available for this page.'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(1575208059903695067)
,p_plug_name=>'Buttons'
,p_region_template_options=>'#DEFAULT#:t-ButtonRegion--noUI'
,p_plug_template=>wwv_flow_api.id(1585428806883301455)
,p_plug_display_sequence=>20
,p_include_in_reg_disp_sel_yn=>'Y'
,p_plug_display_point=>'REGION_POSITION_03'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(3170845902387658417)
,p_plug_name=>'Subtask Information'
,p_region_template_options=>'#DEFAULT#:t-Region--scrollBody:t-Region--noBorder:t-Region--hideHeader'
,p_plug_template=>wwv_flow_api.id(1585439443339301476)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170846292566658417)
,p_button_sequence=>20
,p_button_plug_id=>wwv_flow_api.id(1575208059903695067)
,p_button_name=>'DELETE'
,p_button_action=>'REDIRECT_URL'
,p_button_template_options=>'#DEFAULT#:t-Button--simple:t-Button--danger'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Delete'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_redirect_url=>'javascript:apex.confirm(htmldb_delete_message,''DELETE'');'
,p_button_execute_validations=>'N'
,p_button_condition=>'P10_ROWID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'DELETE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170846184560658417)
,p_button_sequence=>30
,p_button_plug_id=>wwv_flow_api.id(1575208059903695067)
,p_button_name=>'SAVE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Apply Changes'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_condition=>'P10_ROWID'
,p_button_condition_type=>'ITEM_IS_NOT_NULL'
,p_database_action=>'UPDATE'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170846085265658417)
,p_button_sequence=>40
,p_button_plug_id=>wwv_flow_api.id(1575208059903695067)
,p_button_name=>'CREATE'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Create Subtask'
,p_button_position=>'REGION_TEMPLATE_NEXT'
,p_button_condition=>'P10_ROWID'
,p_button_condition_type=>'ITEM_IS_NULL'
,p_database_action=>'INSERT'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3170846503916658417)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(1575208059903695067)
,p_button_name=>'CANCEL'
,p_button_action=>'DEFINED_BY_DA'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_image_alt=>'Cancel'
,p_button_position=>'REGION_TEMPLATE_PREVIOUS'
);
wwv_flow_api.create_page_branch(
p_id=>wwv_flow_api.id(3170847093644658419)
,p_branch_action=>'f?p=&APP_ID.:&LAST_VIEW.:&SESSION.::&DEBUG.:::&success_msg=#SUCCESS_MSG#'
,p_branch_point=>'AFTER_PROCESSING'
,p_branch_type=>'REDIRECT_URL'
,p_branch_sequence=>1
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170847300032658423)
,p_name=>'P10_ROWID'
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_source=>'ROWID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170847498550658423)
,p_name=>'P10_PROJ_ID'
,p_is_required=>true
,p_item_sequence=>20
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Project:'
,p_source=>'PROJ_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'PROJECTS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select project_name d, proj_id r',
'from eba_demo_tree_projects',
'order by 1'))
,p_cHeight=>1
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170847707168658423)
,p_name=>'P10_TASK_ID'
,p_is_required=>true
,p_item_sequence=>30
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Task'
,p_source=>'TASK_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'TASKS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select TASK_NAME d, task_id r',
'from eba_demo_tree_task',
'order by 1'))
,p_cHeight=>1
,p_cattributes_element=>'class="fielddatabold"'
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170847902249658424)
,p_name=>'P10_SUB_ID'
,p_item_sequence=>40
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_source=>'SUB_ID'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170848092954658427)
,p_name=>'P10_SUB_NAME'
,p_is_required=>true
,p_item_sequence=>5
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Name'
,p_source=>'SUB_NAME'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>4000
,p_field_template=>wwv_flow_api.id(1585461703939301539)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170848293239658428)
,p_name=>'P10_SUB_START'
,p_item_sequence=>60
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Start Date'
,p_source=>'SUB_START'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170848508056658428)
,p_name=>'P10_SUB_EST_COMP'
,p_item_sequence=>70
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Estimated Completion'
,p_source=>'SUB_EST_COMP'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170848696163658429)
,p_name=>'P10_SUB_COMP'
,p_item_sequence=>80
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Completed'
,p_source=>'SUB_COMP'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_DATE_PICKER'
,p_cSize=>64
,p_cMaxlength=>255
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_04=>'button'
,p_attribute_05=>'N'
,p_attribute_07=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170848890649658429)
,p_name=>'P10_SUB_PRIORITY'
,p_item_sequence=>90
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Priority'
,p_source=>'SUB_PRIORITY'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'PRIORITY'
,p_lov=>'.'||wwv_flow_api.id(3170812599369995249)||'.'
,p_lov_display_null=>'YES'
,p_lov_null_text=>'- None -'
,p_cHeight=>1
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'YES'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170849094998658429)
,p_name=>'P10_SUB_STATUS'
,p_item_sequence=>100
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_item_default=>'0'
,p_prompt=>'Status'
,p_source=>'SUB_STATUS'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_SELECT_LIST'
,p_named_lov=>'STATUS'
,p_lov=>wwv_flow_string.join(wwv_flow_t_varchar2(
'select status_name ||'' - ''||pct_complete||''%'' d, pct_complete r',
'from eba_demo_tree_def_st_codes',
'order by pct_complete'))
,p_cHeight=>1
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_lov_display_extra=>'NO'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'NONE'
,p_attribute_02=>'N'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170849311653658429)
,p_name=>'P10_CREATED'
,p_item_sequence=>110
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_source=>'CREATED'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170849493579658429)
,p_name=>'P10_UPDATED'
,p_item_sequence=>120
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_source=>'UPDATED'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_HIDDEN'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170849691344658429)
,p_name=>'P10_SUB_ASSIGN'
,p_item_sequence=>130
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Assignee'
,p_source=>'SUB_ASSIGN'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>400
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(3170849907441658430)
,p_name=>'P10_SUB_DESC'
,p_item_sequence=>140
,p_item_plug_id=>wwv_flow_api.id(3170845902387658417)
,p_use_cache_before_default=>'NO'
,p_prompt=>'Description'
,p_source=>'SUB_DESC'
,p_source_type=>'DB_COLUMN'
,p_display_as=>'NATIVE_TEXTAREA'
,p_cSize=>64
,p_cMaxlength=>32000
,p_cHeight=>4
,p_field_template=>wwv_flow_api.id(1585461482410301536)
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'S'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_03=>'N'
,p_attribute_04=>'NONE'
);
wwv_flow_api.create_page_da_event(
p_id=>wwv_flow_api.id(229025765430043461)
,p_name=>'Cancel Modal'
,p_event_sequence=>10
,p_triggering_element_type=>'BUTTON'
,p_triggering_button_id=>wwv_flow_api.id(3170846503916658417)
,p_bind_type=>'bind'
,p_bind_event_type=>'click'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(229025785680043462)
,p_event_id=>wwv_flow_api.id(229025765430043461)
,p_event_result=>'TRUE'
,p_action_sequence=>10
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_DIALOG_CANCEL'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170851598008658432)
,p_process_sequence=>10
,p_process_point=>'AFTER_HEADER'
,p_process_type=>'NATIVE_FORM_FETCH'
,p_process_name=>'Fetch Row from EBA_DEMO_TREE_SUBTASK'
,p_attribute_02=>'EBA_DEMO_TREE_SUBTASK'
,p_attribute_03=>'P10_ROWID'
,p_attribute_04=>'ROWID'
,p_attribute_11=>'I:U:D'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170851789394658433)
,p_process_sequence=>30
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_FORM_PROCESS'
,p_process_name=>'Process Row of EBA_DEMO_TREE_SUBTASK'
,p_attribute_02=>'EBA_DEMO_TREE_SUBTASK'
,p_attribute_03=>'P10_ROWID'
,p_attribute_04=>'ROWID'
,p_attribute_11=>'I:U:D'
,p_attribute_12=>'Y'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_success_message=>'Action Processed.'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3170851983276658433)
,p_process_sequence=>40
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_SESSION_STATE'
,p_process_name=>'reset page'
,p_attribute_01=>'CLEAR_CACHE_CURRENT_PAGE'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
,p_process_when_button_id=>wwv_flow_api.id(3170846292566658417)
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(3174610883436072600)
,p_process_sequence=>50
,p_process_point=>'BEFORE_HEADER'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Set Page Navigation'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'if :REQUEST = ''T'' then ',
' :LAST_VIEW := 3;',
'else',
' :LAST_VIEW := 9;',
'end if;'))
,p_process_clob_language=>'PLSQL'
);
end;
/
prompt --application/pages/page_00101
begin
wwv_flow_api.create_page(
p_id=>101
,p_user_interface_id=>wwv_flow_api.id(1121353497734510372)
,p_name=>'Login'
,p_alias=>'LOGIN'
,p_step_title=>'Sign In | &APP_NAME.'
,p_reload_on_submit=>'A'
,p_warn_on_unsaved_changes=>'N'
,p_autocomplete_on_off=>'OFF'
,p_step_template=>wwv_flow_api.id(1585402501526301404)
,p_page_template_options=>'#DEFAULT#'
,p_page_is_public_y_n=>'Y'
,p_protection_level=>'U'
,p_last_updated_by=>'ALLAN'
,p_last_upd_yyyymmddhh24miss=>'20210301103216'
);
wwv_flow_api.create_page_plug(
p_id=>wwv_flow_api.id(7263490653202758700)
,p_plug_name=>'&APP_NAME.'
,p_icon_css_classes=>'app-sample-trees'
,p_region_template_options=>'#DEFAULT#'
,p_plug_template=>wwv_flow_api.id(1585438175786301473)
,p_plug_display_sequence=>10
,p_plug_display_point=>'BODY'
,p_plug_query_options=>'DERIVED_REPORT_COLUMNS'
,p_attribute_01=>'N'
,p_attribute_02=>'HTML'
,p_attribute_03=>'N'
);
wwv_flow_api.create_page_button(
p_id=>wwv_flow_api.id(3153807986446127002)
,p_button_sequence=>10
,p_button_plug_id=>wwv_flow_api.id(7263490653202758700)
,p_button_name=>'LOGIN'
,p_button_action=>'SUBMIT'
,p_button_template_options=>'#DEFAULT#'
,p_button_template_id=>wwv_flow_api.id(1585462573223301545)
,p_button_is_hot=>'Y'
,p_button_image_alt=>'Sign In'
,p_button_position=>'REGION_TEMPLATE_NEXT'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(7263490765805758704)
,p_name=>'P101_USERNAME'
,p_is_required=>true
,p_item_sequence=>10
,p_item_plug_id=>wwv_flow_api.id(7263490653202758700)
,p_prompt=>'Username'
,p_placeholder=>'username'
,p_post_element_text=>'<span class="t-Login-iconValidation a-Icon icon-check"></span>'
,p_display_as=>'NATIVE_TEXT_FIELD'
,p_cSize=>64
,p_cMaxlength=>100
,p_field_template=>wwv_flow_api.id(1585461400095301535)
,p_item_icon_css_classes=>'fa-user'
,p_item_template_options=>'#DEFAULT#'
,p_protection_level=>'I'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'N'
,p_attribute_02=>'N'
,p_attribute_04=>'TEXT'
,p_attribute_05=>'NONE'
);
wwv_flow_api.create_page_item(
p_id=>wwv_flow_api.id(7263490865531758704)
,p_name=>'P101_PASSWORD'
,p_is_required=>true
,p_item_sequence=>20
,p_item_plug_id=>wwv_flow_api.id(7263490653202758700)
,p_prompt=>'Password'
,p_placeholder=>'password'
,p_post_element_text=>'<span class="t-Login-iconValidation a-Icon icon-check"></span>'
,p_display_as=>'NATIVE_PASSWORD'
,p_cSize=>64
,p_cMaxlength=>100
,p_field_template=>wwv_flow_api.id(1585461400095301535)
,p_item_icon_css_classes=>'fa-key'
,p_item_template_options=>'#DEFAULT#'
,p_is_persistent=>'N'
,p_protection_level=>'I'
,p_encrypt_session_state_yn=>'Y'
,p_attribute_01=>'Y'
);
wwv_flow_api.create_page_da_event(
p_id=>wwv_flow_api.id(3243941382808264022)
,p_name=>'Set Focus'
,p_event_sequence=>10
,p_triggering_condition_type=>'JAVASCRIPT_EXPRESSION'
,p_triggering_expression=>'( $v( "P101_USERNAME" ) === "" )'
,p_bind_type=>'bind'
,p_bind_event_type=>'ready'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(3243941685856264022)
,p_event_id=>wwv_flow_api.id(3243941382808264022)
,p_event_result=>'TRUE'
,p_action_sequence=>10
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_SET_FOCUS'
,p_affected_elements_type=>'ITEM'
,p_affected_elements=>'P101_USERNAME'
);
wwv_flow_api.create_page_da_action(
p_id=>wwv_flow_api.id(3243941890416264022)
,p_event_id=>wwv_flow_api.id(3243941382808264022)
,p_event_result=>'FALSE'
,p_action_sequence=>20
,p_execute_on_page_init=>'N'
,p_action=>'NATIVE_SET_FOCUS'
,p_affected_elements_type=>'ITEM'
,p_affected_elements=>'P101_PASSWORD'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(7263491140717758706)
,p_process_sequence=>10
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Set Username Cookie'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'apex_authentication.send_login_username_cookie (',
' p_username => lower(:P101_USERNAME) );'))
,p_process_clob_language=>'PLSQL'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(7263491047621758705)
,p_process_sequence=>20
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Login'
,p_process_sql_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'apex_authentication.login(',
' p_username => :P101_USERNAME,',
' p_password => :P101_PASSWORD );'))
,p_process_clob_language=>'PLSQL'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(7263491342541758706)
,p_process_sequence=>30
,p_process_point=>'AFTER_SUBMIT'
,p_process_type=>'NATIVE_SESSION_STATE'
,p_process_name=>'Clear Page(s) Cache'
,p_attribute_01=>'CLEAR_CACHE_CURRENT_PAGE'
,p_error_display_location=>'INLINE_IN_NOTIFICATION'
);
wwv_flow_api.create_page_process(
p_id=>wwv_flow_api.id(7263491238223758706)
,p_process_sequence=>10
,p_process_point=>'BEFORE_HEADER'
,p_process_type=>'NATIVE_PLSQL'
,p_process_name=>'Get Username Cookie'
,p_process_sql_clob=>':P101_USERNAME := apex_authentication.get_login_username_cookie;'
,p_process_clob_language=>'PLSQL'
);
end;
/
prompt --application/deployment/definition
begin
wwv_flow_api.create_install(
p_id=>wwv_flow_api.id(5648055138759944877)
,p_deinstall_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'drop procedure eba_demo_tree_data;',
'drop function varchar2_to_blob;',
'REM Drop tables',
'drop table eba_demo_tree_subtask cascade constraints;',
'drop table eba_demo_tree_task cascade constraints;',
'drop table eba_demo_tree_stocks cascade constraints;',
'drop table eba_demo_tree_emp cascade constraints;',
'drop table eba_demo_tree_dept cascade constraints;',
'drop table eba_demo_tree_population cascade constraints;',
'drop table eba_demo_tree_proj_files cascade constraints;',
'drop table eba_demo_tree_projects cascade constraints;',
'drop view eba_demo_tree_def_st_codes;',
''))
,p_required_free_kb=>100
,p_required_sys_privs=>'CREATE PROCEDURE:CREATE TABLE:CREATE TRIGGER:CREATE VIEW'
,p_required_names_available=>'EBA_DEMO_TREE_SUBTASK:EBA_DEMO_TREE_TASK:EBA_DEMO_TREE_STOCKS:EBA_DEMO_TREE_EMP:EBA_DEMO_TREE_DEPT:EBA_DEMO_TREE_POPULATION:EBA_DEMO_TREE_PROJ_FILES:EBA_DEMO_TREE_PROJECTS:EBA_DEMO_TREE_DEF_ST_CODES:EBA_DEMO_TREE_DATA'
);
end;
/
prompt --application/deployment/install/install_set_plscope_settings
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3342313213068922139)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Set plscope_settings'
,p_sequence=>5
,p_script_type=>'INSTALL'
,p_script_clob=>'ALTER SESSION SET PLSCOPE_SETTINGS = ''IDENTIFIERS:NONE'';'
);
end;
/
prompt --application/deployment/install/install_create_tables
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3158093705538492334)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Create Tables'
,p_sequence=>10
,p_script_type=>'INSTALL'
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'REM eba_demo_tree_projects',
'create table eba_demo_tree_projects (',
' proj_id number not null',
' constraint eba_demo_tree_proj_pk',
' primary key,',
' project_name varchar2(4000) not null,',
' start_date date,',
' estimated_completion date,',
' completion_date date,',
' status number,',
' description clob,',
' row_version_number number,',
' created timestamp(6) with time zone,',
' created_by varchar2(255),',
' updated timestamp(6) with time zone,',
' updated_by varchar2(255)',
' )',
'/',
'',
'REM eba_demo_tree_task ',
'create table eba_demo_tree_task (',
' task_id number not null',
' constraint eba_demo_tree_task_pk',
' primary key,',
' proj_id number not null',
' constraint eba_demo_tree_task_fk',
' references eba_demo_tree_projects on delete cascade,',
' task_name varchar2(4000),',
' task_start date,',
' task_est_comp date,',
' task_comp date,',
' task_priority number,',
' task_status number,',
' task_assign number,',
' task_desc clob,',
' row_version_number number,',
' created timestamp(6) with time zone,',
' created_by varchar2(255),',
' updated timestamp(6) with time zone,',
' updated_by varchar2(255)',
' )',
'/',
'',
'create index eba_demo_tree_task_idx1 on eba_demo_tree_task (proj_id);',
'/',
'',
'REM eba_demo_tree_subtask ',
'create table eba_demo_tree_subtask (',
' sub_id number not null,',
' proj_id number not null,',
' task_id number not null,',
' sub_name varchar2(4000),',
' sub_start date,',
' sub_est_comp date,',
' sub_comp date,',
' sub_priority varchar2(400),',
' sub_status varchar2(400),',
' sub_assign varchar2(400),',
' sub_desc clob,',
' row_version_number number,',
' created timestamp(6) with time zone,',
' created_by varchar2(255),',
' updated timestamp(6) with time zone,',
' updated_by varchar2(255),',
' constraint eba_demo_tree_subtask_pk primary key (sub_id, proj_id, task_id)',
' )',
'/ ',
'',
'create index eba_demo_tree_subtask_idx1 on eba_demo_tree_subtask (task_id);',
'/',
'',
'create index eba_demo_tree_subtask_idx2 on eba_demo_tree_subtask (proj_id);',
'/ ',
' ',
'REM eba_demo_tree_stocks ',
'create table eba_demo_tree_stocks (',
' id number not null',
' constraint eba_demo_tree_stocks_pk',
' primary key,',
' row_version_number number,',
' stock_code varchar2(4),',
' stock_name varchar2(130),',
' pricing_date date,',
' opening_val number,',
' high number,',
' low number,',
' closing_val number,',
' created timestamp(6) with time zone,',
' created_by varchar2(255),',
' updated timestamp(6) with time zone,',
' updated_by varchar2(255) ',
' )',
'/',
' ',
'REM eba_demo_tree_population ',
'create table eba_demo_tree_population (',
' id number not null',
' constraint eba_demo_tree_pop_pk',
' primary key,',
' row_version_number number,',
' state_name varchar2(100),',
' state_code varchar2(2),',
' population number,',
' region number,',
' created timestamp(6) with time zone,',
' created_by varchar2(255),',
' updated timestamp(6) with time zone,',
' updated_by varchar2(255) ',
' )',
'/',
'',
'REM eba_demo_tree_dept',
'create table eba_demo_tree_dept (',
' deptno NUMBER(2,0) not null',
' constraint eba_demo_tree_dept_pk',
' primary key,',
' dname VARCHAR2(14 BYTE),',
' loc VARCHAR2(13 BYTE)',
')',
'/',
'REM eba_demo_tree_emp',
'create table eba_demo_tree_emp (',
' empno NUMBER(4,0) not null',
' constraint eba_demo_tree_emp_pk',
' primary key,',
' ename VARCHAR2(10 BYTE),',
' job VARCHAR2(9 BYTE),',
' mgr NUMBER(4,0),',
' hiredate DATE,',
' sal NUMBER(7,2),',
' comm NUMBER(7,2),',
' deptno NUMBER(2,0)',
')',
'/',
'',
'alter table eba_demo_tree_emp add foreign key (MGR) references eba_demo_tree_emp (EMPNO) ENABLE',
'/',
'',
'create index eba_demo_tree_emp_1 ON eba_demo_tree_emp (MGR)',
'/',
' ',
'create index eba_demo_tree_emp_2 ON eba_demo_tree_emp (DEPTNO)',
'/',
'',
'create table eba_demo_tree_proj_files (',
' id number not null,',
' row_version_number number not null,',
' project_id number not null,',
' --',
' file_name varchar2(512),',
' file_mimetype varchar2(512),',
' file_charset varchar2(512),',
' file_lastupd date,',
' file_blob blob,',
' file_comments varchar2(4000),',
' tags varchar2(4000),',
' --',
' created timestamp with time zone not null,',
' created_by varchar2(255) not null,',
' updated timestamp with time zone,',
' updated_by varchar2(255)',
' )',
'/',
'alter table eba_demo_tree_proj_files',
' add constraint eba_demo_tree_proj_files_pk',
' primary key (id)',
'/',
'alter table eba_demo_tree_proj_files',
' add constraint eba_demo_tree_files_fk',
' foreign key (project_id)',
' references eba_demo_tree_projects (proj_id) on delete cascade',
'/',
'',
'create index eba_demo_tree_files_idx1 on eba_demo_tree_proj_files (project_id)',
'/'))
);
end;
/
prompt --application/deployment/install/install_create_triggers
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3158095388138506206)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Create Triggers'
,p_sequence=>20
,p_script_type=>'INSTALL'
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'create or replace trigger biu_eba_demo_tree_proj',
' before insert or update on eba_demo_tree_projects',
' for each row',
'begin ',
' if :new."PROJ_ID" is null then',
' select to_number(sys_guid(),''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'') into :new.proj_id from dual;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
'end;',
'/',
' ',
'alter trigger biu_eba_demo_tree_proj enable',
'/',
' ',
'create or replace trigger biu_eba_demo_tree_task',
' before insert or update on eba_demo_tree_task',
' for each row',
'begin ',
' if :new."TASK_ID" is null then',
' select max(task_id)+1 into :new.task_id from eba_demo_tree_task;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
'end;',
'/',
' ',
'alter trigger biu_eba_demo_tree_task enable',
'/',
'',
'create or replace trigger biu_eba_demo_tree_stocks',
' before insert or update on eba_demo_tree_stocks',
' for each row',
'begin ',
' if :new."ID" is null then',
' select to_number(sys_guid(),''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'') into :new.id from dual;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
'end;',
'/',
' ',
'alter trigger biu_eba_demo_tree_stocks enable',
'/',
' ',
'',
'create or replace trigger biu_eba_demo_tree_pop',
' before insert or update on eba_demo_tree_population',
' for each row',
'begin ',
' if :new."ID" is null then',
' select to_number(sys_guid(),''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'') into :new.id from dual;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
'end;',
'/',
' ',
'alter trigger biu_eba_demo_tree_pop enable',
'/ ',
'',
'',
' CREATE OR REPLACE TRIGGER BIU_EBA_DEMO_TREE_FILES',
' before insert or update on eba_demo_tree_proj_files',
' for each row',
' begin',
' if :NEW.ID is null then',
' select to_number(sys_guid(),''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'') into :new.id from dual;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
' end;',
'/',
' ',
'ALTER TRIGGER BIU_EBA_DEMO_TREE_FILES ENABLE',
'/',
'',
'',
'',
'create or replace trigger biu_eba_demo_tree_subtask',
' before insert or update on eba_demo_tree_subtask',
' for each row',
'begin ',
' if :new."SUB_ID" is null then',
' select to_number(sys_guid(),''XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'') into :new.sub_id from dual;',
' end if;',
' if inserting then',
' :new.created := current_timestamp;',
' :new.created_by := nvl(wwv_flow.g_user,user);',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting or updating then',
' :new.updated := current_timestamp;',
' :new.updated_by := nvl(wwv_flow.g_user,user);',
' end if;',
' if inserting then',
' :new.row_version_number := 1;',
' elsif updating then',
' :new.row_version_number := nvl(:old.row_version_number,1) + 1;',
' end if;',
'end;',
'/',
' ',
'alter trigger biu_eba_demo_tree_subtask enable',
'/',
'',
''))
);
end;
/
prompt --application/deployment/install/install_create_view
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3171024089912728699)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Create View'
,p_sequence=>25
,p_script_type=>'INSTALL'
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'CREATE OR REPLACE FORCE VIEW "EBA_DEMO_TREE_DEF_ST_CODES" ("PCT_COMPLETE", "STATUS_NAME") AS ',
'select 0 pct_complete, wwv_flow_lang.system_message(''NOT_STARTED'') status_name from dual union all',
'select 10 pct_complete, wwv_flow_lang.system_message(''UNDER_CONSIDERATION'') status_name from dual union all',
'select 20 pct_complete, wwv_flow_lang.system_message(''APPROVED'') status_name from dual union all',
'select 30 pct_complete, wwv_flow_lang.system_message(''ASSIGNED'') status_name from dual union all',
'select 40 pct_complete, wwv_flow_lang.system_message(''WORK_INITIATED'') status_name from dual union all',
'select 50 pct_complete, wwv_flow_lang.system_message(''WORK_PROGRESSING'') status_name from dual union all',
'select 60 pct_complete, wwv_flow_lang.system_message(''SIGNIFICANT_PROGRESS'') status_name from dual union all',
'select 70 pct_complete, wwv_flow_lang.system_message(''DEMONSTRABLE'') status_name from dual union all',
'select 80 pct_complete, wwv_flow_lang.system_message(''FUNCTIONALLY_COMPLETE'') status_name from dual union all',
'select 90 pct_complete, wwv_flow_lang.system_message(''INTEGRATION_COMPLETE'') status_name from dual union all',
'select 100 pct_complete, wwv_flow_lang.system_message(''COMPLETE'') status_name from dual',
'/'))
);
end;
/
prompt --application/deployment/install/install_create_funtion
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3273070305609114971)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Create funtion'
,p_sequence=>27
,p_script_type=>'INSTALL'
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'/* varchar2_to_blob function */',
'create or replace function varchar2_to_blob(p_varchar2_tab in dbms_sql.varchar2_table)',
' return blob',
'is',
' l_blob blob;',
' l_raw raw(500);',
' l_size number;',
'begin',
' dbms_lob.createtemporary(l_blob, true, dbms_lob.session);',
' for i in 1 .. p_varchar2_tab.count loop',
' l_size := length(p_varchar2_tab(i)) / 2;',
' dbms_lob.writeappend(l_blob, l_size, hextoraw(p_varchar2_tab(i)));',
' end loop;',
' return l_blob;',
'exception',
' when others then',
' dbms_lob.close(l_blob);',
'end; ',
'/',
'',
''))
);
end;
/
prompt --application/deployment/install/install_sample_data
begin
wwv_flow_api.create_install_script(
p_id=>wwv_flow_api.id(3158097889654516109)
,p_install_id=>wwv_flow_api.id(5648055138759944877)
,p_name=>'Sample Data'
,p_sequence=>30
,p_script_type=>'INSTALL'
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'create or replace procedure eba_demo_tree_data as',
' l_blob blob;',
' i dbms_sql.varchar2_table;',
' g_empty dbms_sql.varchar2_table;',
'begin',
'delete from eba_demo_tree_emp;',
'delete from eba_demo_tree_dept;',
'delete from eba_demo_tree_population;',
'delete from eba_demo_tree_stocks;',
'delete from eba_demo_tree_subtask;',
'delete from eba_demo_tree_task;',
'delete from eba_demo_tree_proj_files;',
'delete from eba_demo_tree_projects;',
' ',
'/* Charts Projects Table Data */',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (2,''Training'',to_date(''13-02-12'',''DD-MM-RR''),to_date(''17-02-12'',''DD-MM-RR''),null,70);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (3,''Software Project Tracking'',to_date(''09-01-12'',''DD-MM-RR''),null,null,80);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (1,''Maintain Support Systems'',to_date(''01-11-11'',''DD-MM-RR''),to_date(''30-11-12'',''DD-MM-RR''),to_date(''30-11-12'',''DD-MM-RR''),100);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (4,''Customer Satisfaction Survey'',to_date(''20-06-12'',''DD-MM-RR''),to_date(''20-07-12'',''DD-MM-RR''),null,30);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (5,''Upgrade Equipment'',to_date(''01-03-12'',''DD-MM-RR''),to_date(''17-03-12'',''DD-MM-RR''),null,20);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (6,''Public Website'',to_date(''21-12-11'',''DD-MM-RR''),to_date(''16-01-12'',''DD-MM-RR''),to_date(''14-01-12'',''DD-MM-RR''),100);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (7,''Email Integration'',to_date(''18-03-12'',''DD-MM-RR''),to_date(''24-03-12'',''DD-MM-RR''),null,20);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (8,''Load Software'',to_date(''18-03-12'',''DD-MM-RR''),to_date(''20-03-12'',''DD-MM-RR''),null,10);',
'insert into eba_demo_tree_projects (PROJ_ID,PROJECT_NAME,START_DATE,ESTIMATED_COMPLETION,COMPLETION_DATE,STATUS) values (9,''Bug Tracker'',to_date(''01-03-12'',''DD-MM-RR''),to_date(''01-08-12'',''DD-MM-RR''),null,0);',
' ',
'',
'/* Charts Project Files Table Data */',
'insert into eba_demo_tree_proj_files (ID,PROJECT_ID,FILE_NAME,FILE_MIMETYPE,FILE_CHARSET,FILE_LASTUPD,FILE_COMMENTS,TAGS) values (246454388869384480850160680641289144349,9,''bug_image.gif'',null,null,null,null,null);',
'insert into eba_demo_tree_proj_files (ID,PROJECT_ID,FILE_NAME,FILE_MIMETYPE,FILE_CHARSET,FILE_LASTUPD,FILE_COMMENTS,TAGS) values (247381425649260955837412394430403066236,7,''Project Tasks.xls'',''application/vnd.ms-excel'',null,null,null,null);',
'insert into eba_demo_tree_proj_files (ID,PROJECT_ID,FILE_NAME,FILE_MIMETYPE,FILE_CHARSET,FILE_LASTUPD,FILE_COMMENTS,TAGS) values (246448939639579752443134505829126519811,9,''Test.txt'',null,null,null,null,null);',
'insert into eba_demo_tree_proj_files (ID,PROJECT_ID,FILE_NAME,FILE_MIMETYPE,FILE_CHARSET,FILE_LASTUPD,FILE_COMMENTS,TAGS) values (246448939639655914769770227467133008899,2,''Project.xml'',null,null,null,null,null);',
'',
' ',
' i(1) := ''232054686973206973206120746573742066696C652E'';',
'',
' l_blob := varchar2_to_blob(i);',
' ',
' update eba_demo_tree_proj_files',
' set file_blob = l_blob',
' where project_id = 9',
' and id = 246448939639579752443134505829126519811;',
' ',
'l_blob := null;',
'i := g_empty;',
' ',
' i(1) := ''3C3F786D6C2076657273696F6E203D2027312E302720656E636F64696E67203D20275554462D38273F3E0D0A3C4D6F64756C652076657273696F6E3D2239303034303031392220786D6C6E733D22687474703A2F2F786D6C6E732E6F7261636C652E636F'';',
' i(2) := ''6D2F466F726D73223E0D0A2020203C466F726D4D6F64756C65204E616D653D2250524F4455435422205469746C653D2250726F647563742044657461696C732220436F6E736F6C6557696E646F773D2257494E444F573122204D656E754D6F64756C653D'';',
' i(3) := ''2244454641554C5426616D703B534D41525442415222204469727479496E666F3D2274727565223E0D0A2020202020203C436F6F7264696E6174652043686172616374657243656C6C57696474683D223722205265616C556E69743D22506F696E742220'';',
' i(4) := ''43686172616374657243656C6C4865696768743D2231342220436F6F7264696E61746553797374656D3D225265616C222044656661756C74466F6E745363616C696E673D2274727565222F3E0D0A2020202020203C426C6F636B204E616D653D2246524D'';',
' i(5) := ''5F50524F4455435422205363726F6C6C6261724C656E6774683D223133352220517565727944617461536F757263654E616D653D2246524D5F50524F4455435422204469727479496E666F3D227472756522205363726F6C6C62617257696474683D2231'';',
' i(6) := ''34223E0D0A2020202020202020203C4974656D204E616D653D224944222052657175697265643D22747275652220546162506167654E616D653D2222204974656D547970653D2254657874204974656D222050726F6D70744174746163686D656E744F66'';',
' i(7) := ''667365743D2237222044697374616E63654265747765656E5265636F7264733D22323622204865696768743D223134222058506F736974696F6E3D22353322204974656D73446973706C61793D2230222057696474683D22373422204461746154797065'';',
' i(8) := ''3D224E756D6265722220436F6C756D6E4E616D653D224944222059506F736974696F6E3D223239222050726F6D7074446973706C61795374796C653D22416C6C205265636F726473222050726F6D70743D2250726F6475637426616D703B2331303B4944'';',
' i(9) := ''22204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E5641533422204D6178696D756D4C656E6774683D223430222F3E0D0A2020202020202020203C4974656D204E616D653D2250524F445543545F4E414D452220546162'';',
' i(10) := ''506167654E616D653D2222204974656D547970653D2254657874204974656D222050726F6D70744174746163686D656E744F66667365743D2237222044697374616E63654265747765656E5265636F7264733D22323622204865696768743D2231342220'';',
' i(11) := ''58506F736974696F6E3D2233303622204974656D73446973706C61793D2230222057696474683D223230302220436F6C756D6E4E616D653D2250524F445543545F4E414D45222059506F736974696F6E3D2232392220446174614C656E67746853656D61'';',
' i(12) := ''6E746963733D2242595445222050726F6D7074446973706C61795374796C653D22416C6C205265636F726473222050726F6D70743D2250726F6475637426616D703B2331303B4E616D6522204469727479496E666F3D2274727565222043616E7661734E'';',
' i(13) := ''616D653D2243414E5641533422204D6178696D756D4C656E6774683D22323535222F3E0D0A2020202020202020203C4974656D204E616D653D2250524943452220546162506167654E616D653D2222204974656D547970653D2254657874204974656D22'';',
' i(14) := ''2050726F6D70744174746163686D656E744F66667365743D2237222044697374616E63654265747765656E5265636F7264733D22323622204865696768743D223134222058506F736974696F6E3D22353322204974656D73446973706C61793D22302220'';',
' i(15) := ''57696474683D223734222044617461547970653D224E756D6265722220436F6C756D6E4E616D653D225052494345222059506F736974696F6E3D223439222050726F6D7074446973706C61795374796C653D22416C6C205265636F726473222050726F6D'';',
' i(16) := ''70743D22507269636522204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E5641533422204D6178696D756D4C656E6774683D223430222F3E0D0A2020202020202020203C4974656D204E616D653D22514F482220546162'';',
' i(17) := ''506167654E616D653D2222204974656D547970653D2254657874204974656D222050726F6D70744174746163686D656E744F66667365743D2237222044697374616E63654265747765656E5265636F7264733D22323622204865696768743D2231342220'';',
' i(18) := ''58506F736974696F6E3D2233303622204974656D73446973706C61793D2230222057696474683D223734222044617461547970653D224E756D6265722220436F6C756D6E4E616D653D22514F48222059506F736974696F6E3D223439222050726F6D7074'';',
' i(19) := ''446973706C61795374796C653D22416C6C205265636F726473222050726F6D70743D225175616E7469747926616D703B2331303B4F6E2048616E6422204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E5641533422204D'';',
' i(20) := ''6178696D756D4C656E6774683D223430222F3E0D0A2020202020202020203C4974656D204E616D653D22505553485F425554544F4E362220466F6E744E616D653D225461686F6D6122204974656D547970653D225075736820427574746F6E22204C6162'';',
' i(21) := ''656C3D22456E7465722051756572792220466F6E7453706163696E673D224E6F726D616C222044697374616E63654265747765656E5265636F7264733D2231303922204865696768743D223139222058506F736974696F6E3D22313622204974656D7344'';',
' i(22) := ''6973706C61793D22302220466F6E745765696768743D2244656D696C69676874222057696474683D22363422204261636B436F6C6F723D227768697465222059506F736974696F6E3D223133322220466F6E745374796C653D22506C61696E2220466F6E'';',
' i(23) := ''7453697A653D2238303022204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E564153342220466F726567726F756E64436F6C6F723D22626C61636B223E0D0A2020202020202020202020203C54726967676572204E616D'';',
' i(24) := ''653D225748454E2D425554544F4E2D50524553534544222054726967676572546578743D222F2A26616D703B2331303B26616D703B2331303B2A2A204275696C742D696E3A20454E5445525F51554552592026616D703B2331303B2A2A204578616D706C'';',
' i(25) := ''653A20476F20496E746F20456E7465722D5175657279206D6F64652C20616E6420657869742074686520666F726D2069662026616D703B2331303B2A2A2074686520757365722063616E63656C73206F7574206F6620656E7465722D7175657279206D6F'';',
' i(26) := ''64652E2026616D703B2331303B2A2F2026616D703B2331303B424547494E2026616D703B2331303B456E7465725F51756572793B2026616D703B2331303B2F2A2026616D703B2331303B2A2A20436865636B20746F207365652069662074686520726563'';',
' i(27) := ''6F726420737461747573206F6620746865206669727374207265636F72642026616D703B2331303B2A2A20697320274E45572720696D6D6564696174656C792061667465722072657475726E696E672066726F6D20656E7465722D71756572792026616D'';',
' i(28) := ''703B2331303B2A2A206D6F64652E2049742073686F756C642062652027515545525927206966206174206C65617374206F6E6520726F77207761732026616D703B2331303B2A2A2072657475726E65642E2026616D703B2331303B2A2F2026616D703B23'';',
' i(29) := ''31303B26616D703B2331303B4946203A53797374656D2E5265636F72645F537461747573203D20274E455727205448454E2026616D703B2331303B457869745F466F726D284E6F5F56616C6964617465293B2026616D703B2331303B454E442049463B20'';',
' i(30) := ''26616D703B2331303B454E443B2026616D703B2331303B22204469727479496E666F3D2274727565222F3E0D0A2020202020202020203C2F4974656D3E0D0A2020202020202020203C4974656D204E616D653D22505553485F425554544F4E372220466F'';',
' i(31) := ''6E744E616D653D225461686F6D6122204974656D547970653D225075736820427574746F6E22204C6162656C3D22457865637574652051756572792220466F6E7453706163696E673D224E6F726D616C222044697374616E63654265747765656E526563'';',
' i(32) := ''6F7264733D2231303822204865696768743D223230222058506F736974696F6E3D22383822204974656D73446973706C61793D22302220466F6E745765696768743D2244656D696C69676874222057696474683D22363322204261636B436F6C6F723D22'';',
' i(33) := ''7768697465222059506F736974696F6E3D223133322220466F6E745374796C653D22506C61696E2220466F6E7453697A653D2238303022204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E564153342220466F72656772'';',
' i(34) := ''6F756E64436F6C6F723D22626C61636B223E0D0A2020202020202020202020203C54726967676572204E616D653D225748454E2D425554544F4E2D50524553534544222054726967676572546578743D222F2A26616D703B2331303B2A2A204275696C74'';',
' i(35) := ''2D696E3A20455845435554455F51554552592026616D703B2331303B2A2A204578616D706C653A205669736974207365766572616C20626C6F636B7320616E6420717565727920746865697220636F6E74656E74732C2026616D703B2331303B2A2A2074'';',
' i(36) := ''68656E20676F206261636B20746F2074686520626C6F636B207768657265206F726967696E616C20626C6F636B2E2026616D703B2331303B2A2F2026616D703B2331303B4445434C4152452026616D703B2331303B626C6F636B5F6265666F7265205641'';',
' i(37) := ''52434841523228383029203A3D203A53797374656D2E437572736F725F426C6F636B3B2026616D703B2331303B424547494E2026616D703B2331303B476F5F426C6F636B282746524D5F50524F4455435427293B2026616D703B2331303B457865637574'';',
' i(38) := ''655F51756572793B2026616D703B2331303B2F2A476F5F426C6F636B2827557365725F50726F66696C6527293B2026616D703B2331303B457865637574655F51756572793B2026616D703B2331303B476F5F426C6F636B28275461736B735F436F6D7065'';',
' i(39) := ''74656427293B2026616D703B2331303B457865637574655F51756572793B2026616D703B2331303B476F5F426C6F636B2820626C6F636B5F6265666F726520293B202A2F26616D703B2331303B454E443B2026616D703B2331303B22204469727479496E'';',
' i(40) := ''666F3D2274727565222F3E0D0A2020202020202020203C2F4974656D3E0D0A2020202020202020203C4974656D204E616D653D22505553485F425554544F4E382220466F6E744E616D653D225461686F6D6122204974656D547970653D22507573682042'';',
' i(41) := ''7574746F6E22204C6162656C3D22536176652220466F6E7453706163696E673D224E6F726D616C222044697374616E63654265747765656E5265636F7264733D2231303922204865696768743D223139222058506F736974696F6E3D2231363022204974'';',
' i(42) := ''656D73446973706C61793D22302220466F6E745765696768743D2244656D696C69676874222057696474683D22353922204261636B436F6C6F723D227768697465222059506F736974696F6E3D223133332220466F6E745374796C653D22506C61696E22'';',
' i(43) := ''20466F6E7453697A653D2238303022204469727479496E666F3D2274727565222043616E7661734E616D653D2243414E564153342220466F726567726F756E64436F6C6F723D22626C61636B223E0D0A2020202020202020202020203C54726967676572'';',
' i(44) := ''204E616D653D225748454E2D425554544F4E2D50524553534544222054726967676572546578743D222F2A26616D703B2331303B26616D703B2331303B2A2A204275696C742D696E3A20434F4D4D49545F464F524D2026616D703B2331303B2A2A204578'';',
' i(45) := ''616D706C653A20496620746865726520617265207265636F72647320696E2074686520666F726D20746F2062652026616D703B2331303B2A2A20636F6D6D69747465642C207468656E20646F20736F2E20526169736520616E206572726F722069662074'';',
' i(46) := ''68652026616D703B2331303B2A2A20636F6D6D697420776173206E6F74207375636365737366756C2E2026616D703B2331303B2A2F2026616D703B2331303B424547494E2026616D703B2331303B2F2A2026616D703B2331303B2A2A20466F7263652076'';',
' i(47) := ''616C69646174696F6E20746F2068617070656E2066697273742026616D703B2331303B2A2F2026616D703B2331303B456E7465723B2026616D703B2331303B4946204E4F5420466F726D5F53756363657373205448454E2026616D703B2331303B524149'';',
' i(48) := ''534520466F726D5F547269676765725F4661696C7572653B2026616D703B2331303B454E442049463B2026616D703B2331303B2F2A2026616D703B2331303B2A2A20436F6D6D697420696620616E797468696E67206973206368616E6765642026616D70'';',
' i(49) := ''3B2331303B2A2F2026616D703B2331303B4946203A53797374656D2E466F726D5F537461747573203D20274348414E47454427205448454E2026616D703B2331303B436F6D6D69745F466F726D3B2026616D703B2331303B2F2A2026616D703B2331303B'';',
' i(50) := ''2A2A2041207375636365737366756C20636F6D6D6974206F7065726174696F6E207365747320466F726D5F537461747573206261636B2026616D703B2331303B2A2A20746F20275155455259272E2026616D703B2331303B2A2F2026616D703B2331303B'';',
' i(51) := ''4946203A53797374656D2E466F726D5F53746174757320266C743B3E2027515545525927205448454E2026616D703B2331303B4D6573736167652827416E206572726F722070726576656E74656420796F7572206368616E6765732066726F6D20626569'';',
' i(52) := ''6E672026616D703B2331303B636F6D6D69747465642E27293B2026616D703B2331303B42656C6C3B2026616D703B2331303B524149534520466F726D5F547269676765725F4661696C7572653B2026616D703B2331303B454E442049463B2026616D703B'';',
' i(53) := ''2331303B454E442049463B2026616D703B2331303B454E443B2022204469727479496E666F3D2274727565222F3E0D0A2020202020202020203C2F4974656D3E0D0A2020202020202020203C44617461536F75726365436F6C756D6E204453435363616C'';',
' i(54) := ''653D222D31323722204453434E616D653D22494422204453434D616E6461746F72793D22747275652220445343547970653D224E554D4245522220445343507265636973696F6E3D22302220547970653D22517565727922204453434E6F6368696C6472'';',
' i(55) := ''656E3D2266616C736522204453434C656E6774683D2230222F3E0D0A2020202020202020203C44617461536F75726365436F6C756D6E204453435363616C653D223022204453434E616D653D2250524F445543545F4E414D4522204453434D616E646174'';',
' i(56) := ''6F72793D2266616C73652220445343547970653D2256415243484152322220445343507265636973696F6E3D22302220547970653D22517565727922204453434E6F6368696C6472656E3D2266616C736522204453434C656E6774683D22323535222F3E'';',
' i(57) := ''0D0A2020202020202020203C44617461536F75726365436F6C756D6E204453435363616C653D222D31323722204453434E616D653D22505249434522204453434D616E6461746F72793D2266616C73652220445343547970653D224E554D424552222044'';',
' i(58) := ''5343507265636973696F6E3D22302220547970653D22517565727922204453434E6F6368696C6472656E3D2266616C736522204453434C656E6774683D2230222F3E0D0A2020202020202020203C44617461536F75726365436F6C756D6E204453435363'';',
' i(59) := ''616C653D222D31323722204453434E616D653D22514F4822204453434D616E6461746F72793D2266616C73652220445343547970653D224E554D4245522220445343507265636973696F6E3D22302220547970653D22517565727922204453434E6F6368'';',
' i(60) := ''696C6472656E3D2266616C736522204453434C656E6774683D2230222F3E0D0A2020202020203C2F426C6F636B3E0D0A2020202020203C43616E766173204E616D653D2243414E56415334222057696474683D22353430222056696577706F7274576964'';',
' i(61) := ''74683D2235343022204865696768743D22333234222056696577706F72744865696768743D22333234222043616E766173547970653D22436F6E74656E7422204469727479496E666F3D2274727565222057696E646F774E616D653D2257494E444F5731'';',
' i(62) := ''223E0D0A2020202020202020203C4772617068696373204E616D653D224652414D453522204772617068696373466F6E745374796C653D22302220486F72697A6F6E74616C4D617267696E3D223722204772617068696373466F6E745765696768743D22'';',
' i(63) := ''556C7472616C6967687422204772617068696373546578743D2222204865696768743D22363822204772617068696373466F6E744E616D653D222220486F72697A6F6E74616C4F626A6563744F66667365743D22313422204772617068696373466F6E74'';',
' i(64) := ''436F6C6F723D2222204772617068696373466F6E7453706163696E673D22556C74726164656E7365222059506F736974696F6E3D22313522204672616D655469746C6553706163696E673D22372220566572746963616C4D617267696E3D223134222047'';',
' i(65) := ''72617068696373466F6E74436F6C6F72436F64653D223022204672616D655469746C653D2250726F647563742044657461696C732220426576656C3D22496E7365742220537461727450726F6D70744F66667365743D223722204772617068696373466F'';',
' i(66) := ''6E7453697A653D22302220456467655061747465726E3D22736F6C696422204772617068696373547970653D224672616D6522204672616D655469746C654F66667365743D2231342220456467654261636B436F6C6F723D227768697465222058506F73'';',
' i(67) := ''6974696F6E3D223722205363726F6C6C62617257696474683D223134222057696474683D22353036222046696C6C5061747465726E3D226E6F6E6522204469727479496E666F3D227472756522204C61796F757444617461426C6F636B4E616D653D2246'';',
' i(68) := ''524D5F50524F44554354222F3E0D0A2020202020203C2F43616E7661733E0D0A2020202020203C57696E646F77204E616D653D2257494E444F5731222057696474683D2235343022204865696768743D22333234222F3E0D0A2020203C2F466F726D4D6F'';',
' i(69) := ''64756C653E0D0A3C2F4D6F64756C653E0D0A'';',
' ',
' l_blob := varchar2_to_blob(i);',
' ',
' update eba_demo_tree_proj_files',
' set file_blob = l_blob',
' where project_id = 2;',
' ',
'l_blob := null;',
'i := g_empty;',
' ',
' i(1) := ''D0CF11E0A1B11AE1000000000000000000000000000000003E000300FEFF0900060000000000000000000000010000000100000000000000001000003800000001000000FEFFFFFF0000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(2) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(3) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(4) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(5) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(6) := ''FFFFFFFFFFFFFFFFFFFFFFFFFDFFFFFF3B000000030000000400000005000000060000000700000008000000090000000A0000000B0000000C0000000D0000000E0000000F00000010000000110000001200000013000000140000001500000016000000'';',
' i(7) := ''1700000018000000190000001A0000001B0000001C0000001D0000001E0000001F000000200000002100000022000000230000002400000025000000260000002700000028000000290000002A0000002B0000002C0000002D0000002E0000002F000000'';',
' i(8) := ''3000000031000000320000003300000034000000350000003600000037000000FEFFFFFFFEFFFFFF3A000000FEFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(9) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(10) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(11) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF52006F006F007400200045006E00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500FFFFFFFFFFFFFFFF'';',
' i(12) := ''020000002008020000000000C00000000000004600000000D803EFAA3C80CB0100EE3536D6F6CC0139000000C00200000000000057006F0072006B0062006F006F006B000000000000000000000000000000000000000000000000000000000000000000'';',
' i(13) := ''000000000000000000000000000000001200020104000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000000000000000000000000000002000000C46B0000000000000500530075006D006D0061007200790049006E00'';',
' i(14) := ''66006F0072006D006100740069006F006E000000000000000000000000000000000000000000000000000000280002010100000003000000FFFFFFFF00000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(15) := ''D400000000000000050044006F00630075006D0065006E007400530075006D006D0061007200790049006E0066006F0072006D006100740069006F006E000000000000000000000038000201FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000'';',
' i(16) := ''0000000000000000000000000000000000000000000000000400000008010000000000000908100000060500AA1FCD07C900010006040000E1000200B004C10002000000E20000005C0070000E000048494C4152592046415252454C4C20202020202020'';',
' i(17) := ''2020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202042000200B004610102000000'';',
' i(18) := ''C00100003D0106000100020003009C0002001000190002000000120002000000130002000000AF0102000000BC01020000003D001200780078001F3B5424380000000000010058024000020000008D00020000002200020000000E0002000100B7010200'';',
' i(19) := ''0000DA000200000031001A00C8000000FF7F9001000000000000050141007200690061006C0031001A00C8000000FF7F9001000000000000050141007200690061006C0031001A00C8000000FF7F9001000000000000050141007200690061006C003100'';',
' i(20) := ''1A00C8000000FF7F9001000000000000050141007200690061006C0031001A00C8000300FF7FBC02000000020000050141007200690061006C0031001E00680101003800BC020000000200720701430061006D00620072006900610031001E002C010100'';',
' i(21) := ''3800BC020000000200720701430061006C00690062007200690031001E00040101003800BC020000000200720701430061006C00690062007200690031001E00DC0001003800BC020000000200720701430061006C00690062007200690031001E00DC00'';',
' i(22) := ''0000110090010000000200720701430061006C00690062007200690031001E00DC000000140090010000000200720701430061006C00690062007200690031001E00DC0000003C0090010000000200720701430061006C00690062007200690031001E00'';',
' i(23) := ''DC0000003E0090010000000200720701430061006C00690062007200690031001E00DC0001003F00BC020000000200720701430061006C00690062007200690031001E00DC0001003400BC020000000200720701430061006C0069006200720069003100'';',
' i(24) := ''1E00DC000000340090010000000200720701430061006C00690062007200690031001E00DC0001000900BC020000000200720701430061006C00690062007200690031001E00DC0000000A0090010000000200720701430061006C006900620072006900'';',
' i(25) := ''31001A00C8000000FF7F9001000000000072050141007200690061006C0031001E00DC000200170090010000000200720701430061006C00690062007200690031001E00DC0001000800BC020000000200720701430061006C0069006200720069003100'';',
' i(26) := ''1E00DC000000090090010000000200720701430061006C00690062007200690031001E00DC000000080090010000000200720701430061006C0069006200720069001E041C000500170000224952A322232C2323303B5C2D224952A322232C2323301E04'';',
' i(27) := ''210006001C0000224952A322232C2323303B5B5265645D5C2D224952A322232C2323301E04220007001D0000224952A322232C2323302E30303B5C2D224952A322232C2323302E30301E0427000800220000224952A322232C2323302E30303B5B526564'';',
' i(28) := ''5D5C2D224952A322232C2323302E30301E043B002A003600005F2D224952A3222A20232C2323305F2D3B5C2D224952A3222A20232C2323305F2D3B5F2D224952A3222A20222D225F2D3B5F2D405F2D1E042C0029002700005F2D2A20232C2323305F2D3B'';',
' i(29) := ''5C2D2A20232C2323305F2D3B5F2D2A20222D225F2D3B5F2D405F2D1E0443002C003E00005F2D224952A3222A20232C2323302E30305F2D3B5C2D224952A3222A20232C2323302E30305F2D3B5F2D224952A3222A20222D223F3F5F2D3B5F2D405F2D1E04'';',
' i(30) := ''34002B002F00005F2D2A20232C2323302E30305F2D3B5C2D2A20232C2323302E30305F2D3B5F2D2A20222D223F3F5F2D3B5F2D405F2D1E041C00A400170000222422232C2323305F293B5C28222422232C2323305C291E042100A5001C0000222422232C'';',
' i(31) := ''2323305F293B5B5265645D5C28222422232C2323305C291E042200A6001D0000222422232C2323302E30305F293B5C28222422232C2323302E30305C291E042700A700220000222422232C2323302E30305F293B5B5265645D5C28222422232C2323302E'';',
' i(32) := ''30305C291E043700A8003200005F282224222A20232C2323305F293B5F282224222A205C28232C2323305C293B5F282224222A20222D225F293B5F28405F291E042E00A9002900005F282A20232C2323305F293B5F282A205C28232C2323305C293B5F28'';',
' i(33) := ''2A20222D225F293B5F28405F291E043F00AA003A00005F282224222A20232C2323302E30305F293B5F282224222A205C28232C2323302E30305C293B5F282224222A20222D223F3F5F293B5F28405F291E043600AB003100005F282A20232C2323302E30'';',
' i(34) := ''305F293B5F282A205C28232C2323302E30305C293B5F282A20222D223F3F5F293B5F28405F291E041000AC000B0000222422232C2323302E30301E042400AD001F00005B242D3430395D646464645C2C5C206D6D6D6D5C2064645C2C5C20797979791E04'';',
' i(35) := ''1800AE001300005B242D3430395D645C2D6D6D6D5C2D79793B401E042100AF001C00005B242D3430395D6D2F642F79795C20683A6D6D5C20414D2F504D3B401E040B00B000060000683A6D6D3B40E000140000000000F5FF200000000000000000000000'';',
' i(36) := ''C020E000140001000000F5FF200000F40000000000000000C020E000140001000000F5FF200000F40000000000000000C020E000140002000000F5FF200000F40000000000000000C020E000140002000000F5FF200000F40000000000000000C020E000'';',
' i(37) := ''140000000000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E00014000000'';',
' i(38) := ''0000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E000140000000000F5FF'';',
' i(39) := ''200000F40000000000000000C020E000140000000000F5FF200000F40000000000000000C020E0001400000000000100200000000000000000000000C020E000140017000000F5FF200000B400000000000000049F20E000140017000000F5FF200000B4'';',
' i(40) := ''0000000000000004AD20E000140017000000F5FF200000B40000000000000004AA20E000140017000000F5FF200000B40000000000000004AE20E000140017000000F5FF200000B400000000000000049B20E000140017000000F5FF200000B400000000'';',
' i(41) := ''00000004AF20E000140017000000F5FF200000B40000000000000004AC20E000140017000000F5FF200000B400000000000000049D20E000140017000000F5FF200000B400000000000000048B20E000140017000000F5FF200000B40000000000000004'';',
' i(42) := ''AE20E000140017000000F5FF200000B40000000000000004AC20E000140017000000F5FF200000B40000000000000004B320E000140016000000F5FF200000B400000000000000049E20E000140016000000F5FF200000B400000000000000049D20E000'';',
' i(43) := ''140016000000F5FF200000B400000000000000048B20E000140016000000F5FF200000B40000000000000004A420E000140016000000F5FF200000B40000000000000004B120E000140016000000F5FF200000B40000000000000004B420E00014001600'';',
' i(44) := ''0000F5FF200000B40000000000000004BE20E000140016000000F5FF200000B400000000000000048A20E000140016000000F5FF200000B40000000000000004B920E000140016000000F5FF200000B40000000000000004A420E000140016000000F5FF'';',
' i(45) := ''200000B40000000000000004B120E000140016000000F5FF200000B40000000000000004B520E00014000B000000F5FF200000B40000000000000004AD20E00014000F000000F5FF200000941111970B970B00049620E000140011000000F5FF20000094'';',
' i(46) := ''6666BF1FBF1F0004B720E00014000100AB00F5FF200000F80000000000000000C020E00014000100A900F5FF200000F80000000000000000C020E00014000100AA00F5FF200000F80000000000000000C020E00014000100A800F5FF200000F800000000'';',
' i(47) := ''00000000C020E000140014000000F5FF200000F40000000000000000C020E00014000A000000F5FF200000B40000000000000004AA20E000140007000000F5FF200000D400500000001F0000C020E000140008000000F5FF200000D400500000000B0000'';',
' i(48) := ''C020E000140009000000F5FF200000D400200000000F0000C020E000140009000000F5FF200000F40000000000000000C020E00014000D000000F5FF200000941111970B970B0004AF20E000140010000000F5FF200000D400600000001A0000C020E000'';',
' i(49) := ''14000C000000F5FF200000B40000000000000004AB20E000140013000000F5FF2000009C1111160B160B00049A20E00014000E000000F5FF200000941111BF1FBF1F00049620E000140001000900F5FF200000F80000000000000000C020E00014000600'';',
' i(50) := ''0000F5FF200000F40000000000000000C020E000140015000000F5FF200000D4006100003E1F0000C020E000140012000000F5FF200000F40000000000000000C020E000140000000F000100200000040000000000000000C020E0001400050000000100'';',
' i(51) := ''200000080000000000000000C020E00014000500AC0001002000000C0000000000000000C020E00014000000AC000100200000040000000000000000C020E00014000500020001002000000C0000000000000000C020E000140000000200010020000004'';',
' i(52) := ''0000000000000000C020E00014000500160001002000000C0000000000000000C020E0001400000016000100200000040000000000000000C0207C0814007C0800000000000000000000000046004F645F467D082D007D08000000000000000000000000'';',
' i(53) := ''3B00000002000D0014000300000003000000407979793B5F282A0E000500017D0841007D080000000000000000000'))
);
wwv_flow_api.append_to_install_script(
p_id=>wwv_flow_api.id(3158097889654516109)
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'000003100000003000D0014000300000003000000407979793B5F282A0E000500020800140003000000040000003B5F28405F292D40'';',
' i(54) := ''7D0841007D080000000000000000000000003200000003000D0014000300000003000000407979793B5F282A0E00050002080014000300FF3F040000003B5F28405F292D407D0841007D080000000000000000000000003300000003000D001400030000'';',
' i(55) := ''0003000000407979793B5F282A0E000500020800140003003233040000003B5F28405F292D407D082D007D080000000000000000000000003400000002000D0014000300000003000000407979793B5F282A0E000500027D0841007D0800000000000000'';',
' i(56) := ''00000000003000000003000D00140002000000006100FF407979793B5F282A0E000500020400140002000000C6EFCEFF3B5F28405F292D407D0841007D080000000000000000000000002800000003000D001400020000009C0006FF407979793B5F282A'';',
' i(57) := ''0E000500020400140002000000FFC7CEFF3B5F28405F292D407D0841007D080000000000000000000000003700000003000D001400020000009C6500FF407979793B5F282A0E000500020400140002000000FFEB9CFF3B5F28405F292D407D0891007D08'';',
' i(58) := ''0000000000000000000000003500000007000D001400020000003F3F76FF407979793B5F282A0E000500020400140002000000FFCC99FF3B5F28405F292D4007001400020000007F7F7FFF202020202020202008001400020000007F7F7FFF2020202020'';',
' i(59) := ''20202009001400020000007F7F7FFF00000000000000000A001400020000007F7F7FFF00000000000000007D0891007D080000000000000000000000003900000007000D001400020000003F3F3FFF407979793B5F282A0E000500020400140002000000'';',
' i(60) := ''F2F2F2FF3B5F28405F292D4007001400020000003F3F3FFF202020202020202008001400020000003F3F3FFF202020202020202009001400020000003F3F3FFF00000000000000000A001400020000003F3F3FFF00000000000000007D0891007D080000'';',
' i(61) := ''000000000000000000002900000007000D00140002000000FA7D00FF407979793B5F282A0E000500020400140002000000F2F2F2FF3B5F28405F292D4007001400020000007F7F7FFF202020202020202008001400020000007F7F7FFF20202020202020'';',
' i(62) := ''2009001400020000007F7F7FFF00000000000000000A001400020000007F7F7FFF00000000000000007D0841007D080000000000000000000000003600000003000D00140002000000FA7D00FF407979793B5F282A0E000500020800140002000000FF80'';',
' i(63) := ''01FF3B5F28405F292D407D0891007D080000000000000000000000002A00000007000D0014000300000000000000407979793B5F282A0E000500020400140002000000A5A5A5FF3B5F28405F292D4007001400020000003F3F3FFF202020202020202008'';',
' i(64) := ''001400020000003F3F3FFF202020202020202009001400020000003F3F3FFF00000000000000000A001400020000003F3F3FFF00000000000000007D082D007D080000000000000000000000003D00000002000D00140002000000FF0000FF407979793B'';',
' i(65) := ''5F282A0E000500027D0878007D080000000000000000000000003800000005000400140002000000FFFFCCFF407979793B5F282A0700140002000000B2B2B2FF00A5A5A5FF3B5F280800140002000000B2B2B2FF003F3F3FFF2020200900140002000000'';',
' i(66) := ''B2B2B2FF003F3F3FFF2020200A00140002000000B2B2B2FF003F3F3FFF0000007D082D007D080000000000000000000000002F00000002000D001400020000007F7F7FFF407979793B5F282A0E000500027D0855007D080000000000000000000000003C'';',
' i(67) := ''00000004000D0014000300000001000000407979793B5F282A0E000500020700140003000000040000003B5F28080014000208001400030000000400000020202009001400027D0841007D080000000000000000000000002200000003000D0014000300'';',
' i(68) := ''000000000000407979793B5F282A0E000500020400140003000000040000003B5F2808001400027D0841007D080000000000000000000000001000000003000D0014000300000001000000407979793B5F282A0E00050002040014000300656604000000'';',
' i(69) := ''3B5F2808001400027D0841007D080000000000000000000000001600000003000D0014000300000001000000407979793B5F282A0E00050002040014000300CC4C040000003B5F2808001400027D0841007D080000000000000000000000001C00000003'';',
' i(70) := ''000D0014000300000000000000407979793B5F282A0E000500020400140003003233040000003B5F2808001400027D0841007D080000000000000000000000002300000003000D0014000300000000000000407979793B5F282A0E000500020400140003'';',
' i(71) := ''000000050000003B5F2808001400027D0841007D080000000000000000000000001100000003000D0014000300000001000000407979793B5F282A0E000500020400140003006566050000003B5F2808001400027D0841007D0800000000000000000000'';',
' i(72) := ''00001700000003000D0014000300000001000000407979793B5F282A0E00050002040014000300CC4C050000003B5F2808001400027D0841007D080000000000000000000000001D00000003000D0014000300000000000000407979793B5F282A0E0005'';',
' i(73) := ''00020400140003003233050000003B5F2808001400027D0841007D080000000000000000000000002400000003000D0014000300000000000000407979793B5F282A0E000500020400140003000000060000003B5F2808001400027D0841007D08000000'';',
' i(74) := ''0000000000000000001200000003000D0014000300000001000000407979793B5F282A0E000500020400140003006566060000003B5F2808001400027D0841007D080000000000000000000000001800000003000D001400030000000100000040797979'';',
' i(75) := ''3B5F282A0E00050002040014000300CC4C060000003B5F2808001400027D0841007D080000000000000000000000001E00000003000D0014000300000000000000407979793B5F282A0E000500020400140003003233060000003B5F2808001400027D08'';',
' i(76) := ''41007D080000000000000000000000002500000003000D0014000300000000000000407979793B5F282A0E000500020400140003000000070000003B5F2808001400027D0841007D080000000000000000000000001300000003000D0014000300000001'';',
' i(77) := ''000000407979793B5F282A0E000500020400140003006566070000003B5F2808001400027D0841007D080000000000000000000000001900000003000D0014000300000001000000407979793B5F282A0E00050002040014000300CC4C070000003B5F28'';',
' i(78) := ''08001400027D0841007D080000000000000000000000001F00000003000D0014000300000000000000407979793B5F282A0E000500020400140003003233070000003B5F2808001400027D0841007D080000000000000000000000002600000003000D00'';',
' i(79) := ''14000300000000000000407979793B5F282A0E000500020400140003000000080000003B5F2808001400027D0841007D080000000000000000000000001400000003000D0014000300000001000000407979793B5F282A0E000500020400140003006566'';',
' i(80) := ''080000003B5F2808001400027D0841007D080000000000000000000000001A00000003000D0014000300000001000000407979793B5F282A0E00050002040014000300CC4C080000003B5F2808001400027D0841007D0800000000000000000000000020'';',
' i(81) := ''00000003000D0014000300000000000000407979793B5F282A0E000500020400140003003233080000003B5F2808001400027D0841007D080000000000000000000000002700000003000D0014000300000000000000407979793B5F282A0E0005000204'';',
' i(82) := ''00140003000000090000003B5F2808001400027D0841007D080000000000000000000000001500000003000D0014000300000001000000407979793B5F282A0E000500020400140003006566090000003B5F2808001400027D0841007D08000000000000'';',
' i(83) := ''0000000000001B00000003000D0014000300000001000000407979793B5F282A0E00050002040014000300CC4C090000003B5F2808001400027D0841007D080000000000000000000000002100000003000D0014000300000000000000407979793B5F28'';',
' i(84) := ''2A0E000500020400140003003233090000003B5F2808001400029302120010000D0000323025202D20416363656E743192084D0092080000000000000000000001041EFF0D0032003000250020002D00200041006300630065006E007400310000000300'';',
' i(85) := ''01000C0007046566DBE5F1FF05000C0007010000000000FF25000500029302120011000D0000323025202D20416363656E743292084D00920800000000000000000000010422FF0D0032003000250020002D00200041006300630065006E007400320000'';',
' i(86) := ''00030001000C0007056566F2DDDCFF05000C0007010000000000FF25000500029302120012000D0000323025202D20416363656E743392084D00920800000000000000000000010426FF0D0032003000250020002D00200041006300630065006E007400'';',
' i(87) := ''33000000030001000C0007066566EAF1DDFF05000C0007010000000000FF25000500029302120013000D0000323025202D20416363656E743492084D0092080000000000000000000001042AFF0D0032003000250020002D00200041006300630065006E'';',
' i(88) := ''00740034000000030001000C0007076566E5E0ECFF05000C0007010000000000FF25000500029302120014000D0000323025202D20416363656E743592084D0092080000000000000000000001042EFF0D0032003000250020002D002000410063006300'';',
' i(89) := ''65006E00740035000000030001000C0007086566DBEEF3FF05000C0007010000000000FF25000500029302120015000D0000323025202D20416363656E743692084D00920800000000000000000000010432FF0D0032003000250020002D002000410063'';',
' i(90) := ''00630065006E00740036000000030001000C0007096566FDE9D9FF05000C0007010000000000FF25000500029302120016000D0000343025202D20416363656E743192084D0092080000000000000000000001041FFF0D0034003000250020002D002000'';',
' i(91) := ''41006300630065006E00740031000000030001000C000704CC4CB8CCE4FF05000C0007010000000000FF25000500029302120017000D0000343025202D20416363656E743292084D00920800000000000000000000010423FF0D0034003000250020002D'';',
' i(92) := ''00200041006300630065006E00740032000000030001000C000705CC4CE6B9B8FF05000C0007010000000000FF25000500029302120018000D0000343025202D20416363656E743392084D00920800000000000000000000010427FF0D00340030002500'';',
' i(93) := ''20002D00200041006300630065006E00740033000000030001000C000706CC4CD7E4BCFF05000C0007010000000000FF25000500029302120019000D0000343025202D20416363656E743492084D0092080000000000000000000001042BFF0D00340030'';',
' i(94) := ''00250020002D00200041006300630065006E00740034000000030001000C000707CC4CCCC0DAFF05000C0007010000000000FF2500050002930212001A000D0000343025202D20416363656E743592084D0092080000000000000000000001042FFF0D00'';',
' i(95) := ''34003000250020002D00200041006300630065006E00740035000000030001000C000708CC4CB6DDE8FF05000C0007010000000000FF2500050002930212001B000D0000343025202D20416363656E743692084D00920800000000000000000000010433'';',
' i(96) := ''FF0D0034003000250020002D00200041006300630065006E00740036000000030001000C000709CC4CFCD5B4FF05000C0007010000000000FF2500050002930212001C000D0000363025202D20416363656E743192084D00920800000000000000000000'';',
' i(97) := ''010420FF0D0036003000250020002D00200041006300630065006E00740031000000030001000C000704323395B3D7FF05000C0007000000FFFFFFFF2500050002930212001D000D0000363025202D20416363656E743292084D00920800000000000000'';',
' i(98) := ''000000010424FF0D0036003000250020002D00200041006300630065006E00740032000000030001000C0007053233D99795FF05000C0007000000FFFFFFFF2500050002930212001E000D0000363025202D20416363656E743392084D00920800000000'';',
' i(99) := ''000000000000010428FF0D0036003000250020002D00200041006300630065006E00740033000000030001000C0007063233C2D69AFF05000C0007000000FFFFFFFF2500050002930212001F000D0000363025202D20416363656E743492084D00920800'';',
' i(100) := ''00000000000000000001042CFF0D0036003000250020002D00200041006300630065006E00740034000000030001000C0007073233B2A1C7FF05000C0007000000FFFFFFFF25000500029302120020000D0000363025202D20416363656E743592084D00'';',
' i(101) := ''920800000000000000000000010430FF0D0036003000250020002D00200041006300630065006E00740035000000030001000C000708323393CDDDFF05000C0007000000FFFFFFFF25000500029302120021000D0000363025202D20416363656E743692'';',
' i(102) := ''084D00920800000000000000000000010434FF0D0036003000250020002D00200041006300630065006E00740036000000030001000C0007093233FAC090FF05000C0007000000FFFFFFFF250005000293020C002200070000416363656E743192084100'';',
' i(103) := ''92080000000000000000000001041DFF070041006300630065006E00740031000000030001000C00070400004F81BDFF05000C0007000000FFFFFFFF250005000293020C002300070000416363656E743292084100920800000000000000000000010421'';',
' i(104) := ''FF070041006300630065006E00740032000000030001000C0007050000C0504DFF05000C0007000000FFFFFFFF250005000293020C002400070000416363656E743392084100920800000000000000000000010425FF070041006300630065006E007400'';',
' i(105) := ''33000000030001000C00070600009BBB59FF05000C0007000000FFFFFFFF250005000293020C002500070000416363656E743492084100920800000000000000000000010429FF070041006300630065006E00740034000000030001000C000707000080'';',
' i(106) := ''64A2FF05000C0007000000FFFFFFFF250005000293020C002600070000416363656E74359208410092080000000000000000000001042DFF070041006300630065006E00740035000000030001000C00070800004BACC6FF05000C0007000000FFFFFFFF'';',
' i(107) := ''250005000293020C002700070000416363656E743692084100920800000000000000000000010431FF070041006300630065006E00740036000000030001000C0007090000F79646FF05000C0007000000FFFFFFFF250005000293020800280003000042'';',
' i(108) := ''61649208390092080000000000000000000001011BFF03004200610064000000030001000C0005FF0000FFC7CEFF05000C0005FF00009C0006FF25000500029302100029000B000043616C63756C6174696F6E9208810092080000000000000000000001'';',
' i(109) := ''0216FF0B00430061006C00630075006C006100740069006F006E000000070001000C0005FF0000F2F2F2FF05000C0005FF0000FA7D00FF250005000206000E0005FF00007F7F7FFF010007000E0005FF00007F7F7FFF010008000E0005FF00007F7F7FFF'';',
' i(110) := ''010009000E0005FF00007F7F7FFF010093020F002A000A0000436865636B2043656C6C92087F00920800000000000000000000010217FF0A0043006800650063006B002000430065006C006C000000070001000C0005FF0000A5A5A5FF05000C00070000'';',
' i(111) := ''00FFFFFFFF250005000206000E0005FF00003F3F3FFF060007000E0005FF00003F3F3FFF060008000E0005FF00003F3F3FFF060009000E0005FF00003F3F3FFF0600930204002B8003FF92082000920800000000000000000000010503FF050043006F00'';',
' i(112) := ''6D006D00610000000000930204002C8006FF92082800920800000000000000000000010506FF090043006F006D006D00610020005B0030005D0000000000930204002D8004FF92082600920800000000000000000000010504FF08004300750072007200'';',
' i(113) := ''65006E006300790000000000930204002E8007FF92082E00920800000000000000000000010507FF0C00430075007200720065006E006300790020005B0030005D0000000000930215002F001000004578706C616E61746F727920546578749208470092'';',
' i(114) := ''0800000000000000000000010235FF10004500780070006C0061006E00610074006F0072007900200054006500780074000000020005000C0005FF00007F7F7FFF2500050002930209003000040000476F6F6492083B0092080000000000000000000001'';',
' i(115) := ''011AFF040047006F006F0064000000030001000C0005FF0000C6EFCEFF05000C0005FF0000006100FF250005000293020E00310009000048656164696E67203192084700920800000000000000000000010310FF0900480065006100640069006E006700'';',
' i(116) := ''200031000000030005000C00070300001F497DFF250005000207000E00070400004F81BDFF050093020E00320009000048656164696E67203292084700920800000000000000000000010311FF0900480065006100640069006E00670020003200000003'';',
' i(117) := ''0005000C00070300001F497DFF250005000207000E000704FF3FA8C0DEFF050093020E00330009000048656164696E67203392084700920800000000000000000000010312FF0900480065006100640069006E006700200033000000030005000C000703'';',
' i(118) := ''00001F497DFF250005000207000E000704323395B3D7FF020093020E00340009000048656164696E67203492083900920800000000000000000000010313FF0900480065006100640069006E006700200034000000020005000C00070300001F497DFF25'';',
' i(119) := ''0005000293020A003500050000496E70757492087500920800000000000000000000010214FF050049006E007000750074000000070001000C0005FF0000FFCC99FF05000C0005FF00003F3F76FF250005000206000E0005FF00007F7F7FFF010007000E'';',
' i(120) := ''0005FF00007F7F7FFF010008000E0005FF00007F7F7FFF010009000E0005FF00007F7F7FFF01009302100036000B00004C696E6B65642043656C6C92084B00920800000000000000000000010218FF0B004C0069006E006B00650064002000430065006C'';',
' i(121) := ''006C000000030005000C0005FF0000FA7D00FF250005000207000E0005FF0000FF8001FF060093020C0037000700004E65757472616C9208410092080000000000000000000001011CFF07004E00650075007400720061006C000000030001000C0005FF'';',
' i(122) := ''0000FFEB9CFF05000C0005FF00009C6500FF250005000293020400008000FF92082200920800000000000000000000010100FF06004E006F0072006D0061006C00000000009302090038000400004E6F7465920862009208000000000000000000000102'';',
' i(123) := ''0AFF04004E006F00740065000000050001000C0005FF0000FFFFCCFF06000E0005FF0000B2B2B2FF010007000E0005FF0000B2B2B2FF010008000E0005FF0000B2B2B2FF010009000E0005FF0000B2B2B2FF010093020B0039000600004F757470757492'';',
' i(124) := ''087700920800000000000000000000010215FF06004F00750074007000750074000000070001000C0005FF0000F2F2F2FF05000C0005FF00003F3F3FFF250005000206000E0005FF00003F3F3FFF010007000E0005FF00003F3F3FFF010008000E0005FF'';',
' i(125) := ''00003F3F3FFF010009000E0005FF00003F3F3FFF0100930204003A8005FF92082400920800000000000000000000010505FF0700500065007200630065006E0074000000000093020A003B000500005469746C6592083100920800000000000000000000'';',
' i(126) := ''01030FFF05005400690074006C0065000000020005000C00070300001F497DFF250005000193020A003C00050000546F74616C92084D00920800000000000000000000010319FF050054006F00740061006C000000040005000C0007010000000000FF25'';',
' i(127) := ''0005000206000E00070400004F81BDFF010007000E00070400004F81BDFF0600930211003D000C00005761726E696E67205465787492083F0092080000000000000000000001020BFF0C005700610072006E0069006E0067002000540065007800740000'';',
' i(128) := ''00020005000C0005FF0000FF0000FF25000500028E0858008E080000000000000000000090000000110011005400610062006C0065005300740079006C0065004D0065006400690075006D0039005000690076006F0074005300740079006C0065004C00'';',
' i(129) := ''69006700680074003100360060010200000085000E00383C00000000060053686565743185000E00A46800000000060053686565743285000E00346A0000000006005368656574339A0818009A0800000000000000000000010000000000000004000000'';',
' i(130) := ''A3081000A30800000000000000000000000000008C00040001006101C1010800C10100001DEB0100FC00D00E440100007500000007000050726F6A6563740900005461736B204E616D650A000053746172742044617465080000456E6420446174650600'';',
' i(131) := ''005374617475730B000041737369676E656420546F1800004D61696E7461696E20537570706F72742053797374656D7308000050616D204B696E671C00004170706C792042696C6C696E672053797374656D20757064617465730C000052757373205361'';',
' i(132) := ''6E64657273290000496E766573746967617465206E65772056697275732050726F74656374696F6E20736F6674776172651C0000417272616E676520666F7220686F6C6964617920636F766572616765080000416C2042696E6573110000456D61696C20'';',
' i(133) := ''496E746567726174696F6E0D0000436F6D706C65746520706C616E0900004D61726B204E696C65170000436865636B20736F667477617265206C6963656E736573170000476574205246507320666F72206E657720736572766572160000507572636861'';',
' i(134) := ''7365206261636B7570207365727665721C0000456D706C6F79656520536174697366616374696F6E20537572766579150000436F6D706C657465207175657374696F6E616972650B00004972656E65204A6F6E6573110000526576696577207769746820'';',
' i(135) := ''6C6567616C150000506C616E20726F6C6C6F7574207363686564756C650E00005075626C6963205765627369746515000044657465726D696E6520686F737420736572766572090000546F6D205375657373300000507572636861736520616464697469'';',
' i(136) := ''6F6E616C20736F667477617265206C6963656E7365732C206966206E6565646564110000446576656C6F7020776562207061676573040000436F7374060000427564676574100000466F726D7320436F6E76657273696F6E150000557067726164652074'';',
' i(137) := ''6F204F7261636C65203131671700004D6967726174652066726F6D2053514C205365727665721A00004C6F6164205061636B61676564204170706C69636174696F6E73180000547261696E20446576656C6F7065727320696E20415045581A00004D6967'';',
' i(138) := ''7261746520416363657373204170706C69636174696F6E190000436F6E7665727420457863656C2053707265616473686565741E00004150455820456E7669726F6E6D656E7420436F6E66696775726174696F6E10000044697363757373696F6E20466F'';',
' i(139) := ''72756D0B000042756720547261636B65722800004964656E746966792070696C6F74204F7261636C6520466F726D73206170706C69636174696F6E731B00004D6967726174652070696C6F7420466F726D7320746F2041504558150000506F73742D6D69'';',
' i(140) := ''67726174696F6E20726576696577170000506C616E206D6967726174696F6E207363686564756C651400004D696772617465204F7261636C6520466F726D731A000054657374206D69677261746564206170706C69636174696F6E731700005573657220'';',
' i(141) := ''616363657074616E63652074657374696E67110000456E642D7573657220547261696E696E671E0000526F6C6C6F7574206D6967726174656420466F726D7320696E20415045581D00004F627461696E2053514C205365727665722063726564656E7469'';',
' i(142) := ''616C731E000043726561746520444220436F6E6E656374696F6E20746F204F7261636C651800004D696772617465207461626C6520737472756374757265730B0000496D706F727420646174611B00004964656E7469667920696E746567726174696F6E'';',
' i(143) := ''20706F696E74730E00004D6170206461746120757361676530000053656C656374207365727665727320666F7220446576656C6F706D656E742C20546573742C2050726F64756374696F6E140000485220736F6674776172652075706772616465733000'';',
' i(144) := ''004964656E746966792073657276657220726571756972656D656E74732020202020202020202020202020202020202020300000537065636966792073656375726974792061757468656E7469636174696F6E20736368656D6528732920202020202020'';',
' i(145) := ''30000044657465726D696E6520576562206C697374656E657220636F6E66696775726174696F6E28732920202020202020202030000052756E20696E7374616C6C6174696F6E202020202020202020202020202020202020202020202020202020202020'';',
' i(146) := ''2020300000436F6E66696775726520576F726B73706163652070726F766973696F6E696E67202020202020202020202020202020203000004372656174652070696C6F7420776F726B737061636520202020202020202020202020202020202020202020'';',
' i(147) := ''20202020300000496E746567726174652061757468656E7469636174696F6E20736368656D65732020202020202020202020202020202030000043726561746520747261696E696E6720776F726B73706163652020202020202020202020202020202020'';',
' i(148) := ''2020202020203000005075626C697368206C696E6B7320746F2073656C662D737475647920636F7572736573202020202020202020202020203000005075626C69736820646576656C6F706D656E74207374616E64617264732020202020202020202020'';',
' i(149) := ''2020202020202020300000436F6C6C656374206D697373696F6E2D637269746963616C2073707265616473686565747320202020202020202020203000004372656174652041504558206170706C69636174696F6E732066726F6D207370726561647368'';',
' i(150) := ''6565747320202020202030000053656E64206C696E6B7320746F2070726576696F7573207370726561647368656574206F776E657273202020202020203000004C6F636B2073707265616473686565747320202020202020202020202020202020202020'';',
' i(151) := ''2020202020202020202020203000004964656E7469667920706F696E7420736F6C7574696F6E73207265717569726564202020202020202020202020202020300000496E7374616C6C20696E20646576656C6F706D656E74202020202020202020202020'';',
' i(152) := ''2020202020202020202020202020300000437573746F6D697A6520736F6C7574696F6E732020202020202020202020202020202020202020202020202020202020300000496D706C656D656E7420696E2050726F64756374696F6E202020202020202020'';',
' i(153) := ''20202020202020202020202020202020300000547261696E20646576656C6F70657273202F2075736572732020202020202020202020202020202020202020202020203800004964656E7469667920646F776E74696D652077696E646F77202020202020'';',
' i(154) := ''202020202020202020202020202020202020202020202020202038000053687574646F776E207365727665727320202020202020202020202020202020202020202020202020202020202020202020202020202020380000506572666F726D2075706772'';',
' i(155) := ''6164657320202020202020202020202020202020202020202020202020202020202020202020202020202020380000526576696577206C6F672066696C657320202020202020202020202020202020202020202020202020202020202020202020202020'';',
' i(156) := ''2020203800005374617274207365727665727320202020202020202020202020202020202020202020202020202020202020202020202020202020202020380000436F6E766572742070726F636573736573202020202020202020202020202020202020'';',
' i(157) := ''2020202020202020202020202020202020202020203800004E6F7469667920757365727320202020202020202020202020202020202020202020202020202020202020202020202020202020202020203800004465636F6D6D697373696F6E2053514C20'';',
' i(158) := ''5365727665722020202020202020202020202020202020202020202020202020202020202020200F00004964656E74696679206F776E6572732B0000496E7374616C6C2041504558206170706C69636174696F6E206F6E20696E7465726E657420736572'';',
' i(159) := ''7665721500004D6F6E69746F722070617274696369706174696F6E3000004964656E746966792070696C6F7420416363657373206170706C69636174696F6E7320202020202020202020202020203000004D6967726174652070696C6F74206170706C69'';',
' i(160) := ''636174696F6E7320746F20415045582020202020202020202020202020300000506F73742D6D6967726174696F6E20726576696577202020202020202020202020202020202020202020202020202020300000506C616E206D6967726174696F6E207363'';',
' i(161) := ''686564756C65202020202020202020202020202020202020202020202020203000004D69677261746520416363657373206170706C6963616974696F6E7320202020202020202020202020202020202020203000005573657220616363657074616E6365'';',
' i(162) := ''2074657374696E6720202020202020202020202020202020202020202020202020300000456E642D7573657220547261696E696E67202020202020202020202020202020202020202020202020202020202020201B0000536F667477617472652050726F'';',
' i(163) := ''6A6563747320547261636B696E67240000437573746F6D697A6520536F6674776172652050726F6A6563747320736F6674776172652C0000456E74657220626173652064617461202850726F6A656374732C204D696C6573746F6E65732C206574632E29'';',
' i(164) := ''2300004C6F61642063757272656E74207461736B7320616E6420656E68616E63656D656E74731F0000436F6E647563742070726F6A656374206B69636B6F6666206D656574696E67200000496D706C656D656E74206275672074726173636B696E672073'';',
' i(165) := ''6F6674776172651E0000526576696577206175746F6D617465642074657374696E6720746F6F6C73260000446F63756D656E74207175616C697479206173737572616E63652070726F6365656475726573210000547261696E20646576656C6F70657273'';',
' i(166) := ''206F6E20747261636B696E6720627567732400004D656173757265206566666563746976656E657373206F6620696D70726F7665642051410B00004A6F686E20576174736F6E0D000053636F7474205370656E6365720D00004A616D6573204361737369'';',
' i(167) := ''64790D000052757373205361756E646572730A000048616E6B2044617669730D00004D79726120537574636C6966660400004F70656E060000436C6F7365640700004F6E2D486F6C6407000050656E64696E672400005265696D706C656D656E7420696E'';',
' i(168) := ''746567726174696F6E207573696E67204F7261636C650B000054696765722053636F7474FF007A000800982C00000C000000032D000077000000B72D00002B010000752E0000E9010000142F000088020000EB2F00005F030000C2300000360400009031'';',
' i(169) := ''0000040500000C33000080060000A43400001808000054360000C8090000D3370000470B000056390000CA0C0000853A0000F90D00000E3B0000820E0000630816006308000000000000000000001600000000000000C600960810009608000000000000'';',
' i(170) := ''0000000042E501009B0810009B0800000000000000000000010000008C0810008C0800000000000000000000000000000A0000000908100000061000AA1FCD07C9000100060400000B021C0000000000000000005000000048410000065100004E600000'';',
' i(171) := ''166800000D00020001000C00020064000F000200010011000200000010000800FCA9F1D24D62503F5F00020001002A00020000002B0002000000820002000100800008000000000000000000250204000000FF0081000200C10414000000150000008300'';',
' i(172) := ''0200000084000200000026000800000000000000E83F27000800000000000000E83F28000800000000000000F03F29000800000000000000F03F4D00EE0300006900650065006400630032006E0064003100000000000000000000000000000000000000'';',
' i(173) := ''0000000000000000000000000000000000000000000000000000000001040205DC00100353FF0002010001009A0B3408640001000F0058020100020058020300010041003400000000000000000000000000000000000000000000000000000000000000'';',
' i(174) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000010000000200000000010000000000000000000000000000000000000000000050524956E23000000000000000000000'';',
' i(175) := ''0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001800000000001027102710270000102700000000000000000000C402'';',
' i(176) := ''00000000000000000000000000000000000000000000000003000000000000004C0010005034030028880400000000000000000001000100000000000000000000000000000000004226AE8A17000000000000000100FF000200FF000000000000000000'';',
' i(177) := ''00000000000000000000000000000000000002000100030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(178) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(179) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(180) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(181) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004C00000045424441'';',
' i(182) := ''4542444100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A100220001006400010001000100020058025802000000000000E03F00000000'';',
' i(183) := ''0000E03F01009C0826009C080000000000000000000000000000000000000000000000000000040000000000000000005500020008007D000C0000000000B61F0F00020000007D000C0001000100B6290F00060000007D000C0002000200DB1045000600'';',
' i(184) := ''00007D000C0003000300B61D4500020000007D000C00040004006D090F00020000007D000C0005000500B6130F00020000007D000C0006000600B60C4100060000007D000C0007000700490C4100020000007D000C000800080024094300000000000002'';',
' i(185) := ''0E00000000005000000000000900000008021000000000000900FF000000000080013F0008021000010000000900FF000000000000010F0008021000020000000900FF000000000000010F0008021000030000000900FF000000000000010F0008021000'';',
' i(186) := ''040000000900FF000000000000010F0008021000050000000900FF000000000000010F0008021000060000000900FF000000000000010F0008021000070000000900FF000000000000010F0008021000080000000900FF000000000000010F0008021000'';',
' i(187) := ''090000000900FF000000000000010F00080210000A0000000900FF000000000000010F00080210000B0000000900FF000000000000010F00080210000C0000000900FF000000000000010F00080210000D0000000900FF000000000000010F0008021000'';',
' i(188) := ''0E0000000900FF000000000000010F00080210000F0000000900FF000000000000010F0008021000100000000800FF000000000000010F0008021000110000000800FF000000000000010F0008021000120000000800FF000000000000010F0008021000'';',
' i(189) := ''130000000800FF000000000000010F0008021000140000000800FF000000000000010F0008021000150000000800FF000000000000010F0008021000160000000800FF000000000000010F0008021000170000000800FF000000000000010F0008021000'';',
' i(190) := ''180000000800FF000000000000010F0008021000190000000800FF000000000000010F00080210001A0000000800FF000000000000010F00080210001B0000000800FF000000000000010F00080210001C0000000800FF000000000000010F0008021000'';',
' i(191) := ''1D0000000800FF000000000000010F00080210001E0000000800FF0'))
);
end;
/
begin
wwv_flow_api.append_to_install_script(
p_id=>wwv_flow_api.id(3158097889654516109)
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'00000000000010F00080210001F0000000800FF000000000000010F00FD000A00000000003F0000000000FD000A00000001003F0001000000FD000A0000000200440002000000FD00'';',
' i(192) := ''0A0000000300440003000000FD000A00000004003F0004000000FD000A00000005003F0005000000FD000A000000060040001D000000FD000A000000070040001E00000001020600000008004200FD000A00010000000F0006000000FD000A0001000100'';',
' i(193) := ''0F0039000000BD0012000100020045000043E3404500A070E3400300FD000A00010004003E006F000000FD000A00010005000F0007000000BD0012000100060041000040BF4041000058BB400700FD000A00020000000F0006000000FD000A0002000100'';',
' i(194) := ''0F0008000000BD0012000200020045000043E3404500A070E3400300FD000A00020004003E006F000000FD000A00020005000F0009000000BD0012000200060041000088B34041000058BB400700FD000A00030000000F0006000000FD000A0003000100'';',
' i(195) := ''0F000A000000BD001200030002004500A048E3404500404DE3400300FD000A00030004003E0070000000FD000A00030005000F0007000000BD00120003000600410000909A404100007097400700FD000A00040000000F0006000000FD000A0004000100'';',
' i(196) := ''0F000B000000BD0012000400020045002044E34045006044E3400300FD000A00040004003E0070000000FD000A00040005000F000C000000BD00120004000600410000C07240410000407F400700FD000A00050000000F000D000000FD000A0005000100'';',
' i(197) := ''0F000E000000BD001200050002004500C047E34045008048E3400300FD000A00050004003E0070000000FD000A00050005000F000F000000BD00120005000600410000407F404100007087400700FD000A00060000000F000D000000FD000A0006000100'';',
' i(198) := ''0F0010000000BD0012000600020045004048E34045006048E3400300FD000A00060004003E0070000000FD000A00060005000F000F000000BD001200060006004100000069404100000069400700FD000A00070000000F000D000000FD000A0007000100'';',
' i(199) := ''0F0011000000BD0012000700020045002049E34045006052E3400300FD000A00070004003E0070000000FD000A00070005000F000F000000BD0012000700060041000040AF40410000408F400700FD000A00080000000F000D000000FD000A0008000100'';',
' i(200) := ''0F0012000000BD0012000800020045008053E3404500805AE3400300FD000A00080004003E0070000000FD000A00080005000F000C000000BD0012000800060041000000A94041000070A7400700FD000A00090000000F0026000000FD000A0009000100'';',
' i(201) := ''0F003A000000BD0012000900020045002049E34045004049E3400300FD000A00090004003E0070000000FD000A00090005000F0069000000BD001200090006004100000059404100000069400700FD000A000A0000000F0026000000FD000A000A000100'';',
' i(202) := ''0F003B000000BD0012000A00020045004049E34045008049E3400300FD000A000A0004003E0070000000FD000A000A0005000F006A000000BD0012000A000600410000006940410000C072400700FD000A000B0000000F0026000000FD000A000B000100'';',
' i(203) := ''0F003C000000BD0012000B00020045004049E34045004049E3400300FD000A000B0004003E0070000000FD000A000B0005000F006B000000BD0012000B0006004100000059404100000059400700FD000A000C0000000F0026000000FD000A000C000100'';',
' i(204) := ''0F0038000000BD0012000C00020045006049E3404500C049E3400300FD000A000C0004003E0070000000FD000A000C0005000F000C000000BD0012000C000600410000006940410000C082400700FD000A000D0000000F0026000000FD000A000D000100'';',
' i(205) := ''0F003D000000BD0012000D0002004500604AE3404500604AE3400300FD000A000D0004003E0070000000FD000A000D0005000F0069000000BD0012000D0006004100000059404100000059400700FD000A000E0000000F0026000000FD000A000E000100'';',
' i(206) := ''0F003E000000BD0012000E0002004500604AE3404500604AE3400300FD000A000E0004003E0070000000FD000A000E0005000F006A000000BD0012000E0006004100000059404100000059400700FD000A000F0000000F0026000000FD000A000F000100'';',
' i(207) := ''0F003F000000BD0012000F0002004500604AE3404500604AE3400300FD000A000F0004003E0070000000FD000A000F0005000F006A000000BD0012000F0006004100000059404100000059400700FD000A00100000000F0026000000FD000A0010000100'';',
' i(208) := ''0F0040000000BD001200100002004500804AE3404500004BE3400300FD000A00100004003E0070000000FD000A00100005000F006A000000BD00120010000600410000406F40410000407F400700FD000A00110000000F0023000000FD000A0011000100'';',
' i(209) := ''0F0041000000BD001200110002004500804AE3404500804AE3400300FD000A00110004003E0070000000FD000A00110005000F006B000000BD001200110006004100000059404100000059400700FD000A00120000000F0023000000FD000A0012000100'';',
' i(210) := ''0F0042000000BD001200120002004500804AE3404500804AE3400300FD000A00120004003E0070000000FD000A00120005000F0069000000BD001200120006004100000059404100000059400700FD000A00130000000F0023000000FD000A0013000100'';',
' i(211) := ''0F0043000000BD001200130002004500804AE34045002052E3400300FD000A00130004003E0071000000FD000A00130005000F0069000000BD00120013000600410000408F40410000409F400700FD000A00140000000F0025000000FD000A0014000100'';',
' i(212) := ''0F0044000000BD001200140002004500404CE3404500E06AE3400300FD000A00140004003E006F000000FD000A00140005000F0007000000BD0012001400060041000088A34041000040AF400700FD000A00150000000F0025000000FD000A0015000100'';',
' i(213) := ''0F0045000000BD001200150002004500E04CE3404500C06CE3400300FD000A00150004003E006F000000FD000A00150005000F006B000000BD0012001500060041000070B74041000088C3400700FD000A00160000000F0025000000FD000A0016000100'';',
' i(214) := ''0F0046000000BD001200160002004500804DE3404500606DE3400300FD000A00160004003E006F000000FD000A00160005000F000F000000BD00120016000600410000408F404100007097400700FD000A00170000000F0025000000FD000A0017000100'';',
' i(215) := ''0F0047000000BD001200170002004500804DE3404500606DE3400300FD000A00170004003E006F000000FD000A00170005000F0007000000BD00120017000600410000408F404100007097400700FD000A00180000000F0022000000FD000A0018000100'';',
' i(216) := ''0F0048000000BD001200180002004500A04EE3404500E04EE3400300FD000A00180004003E0070000000FD000A00180005000F0069000000BD00120018000600410000006940410000C072400700FD000A00190000000F0022000000FD000A0019000100'';',
' i(217) := ''0F0049000000BD001200190002004500204FE3404500204FE3400300FD000A00190004003E0070000000FD000A00190005000F0069000000BD001200190006004100000059404100000059400700FD000A001A0000000F0022000000FD000A001A000100'';',
' i(218) := ''0F004A000000BD0012001A0002004500404FE34045004065E3400300FD000A001A0004003E006F000000FD000A001A0005000F0069000000BD0012001A0006004100007CB54041000040AF400700FD000A001B0000000F0022000000FD000A001B000100'';',
' i(219) := ''0F004B000000BD0012001B0002004500804FE3404500C065E3400300FD000A001B0004003E006F000000FD000A001B0005000F0069000000BD0012001B000600410000409F404100007097400700FD000A001C0000000F0022000000FD000A001C000100'';',
' i(220) := ''0F004C000000BD0012001C0002004500804FE34045004068E3400300FD000A001C0004003E006F000000FD000A001C0005000F0069000000BD0012001C00060041000088C34041000040BF400700FD000A001D0000000F0020000000FD000A001D000100'';',
' i(221) := ''0F004D000000BD0012001D00020045004051E34045004051E3400300FD000A001D0004003E0070000000FD000A001D0005000F006C000000BD0012001D0006004100000059404100000059400700FD000A001E0000000F0020000000FD000A001E000100'';',
' i(222) := ''0F004E000000BD0012001E00020045008051E34045008051E3400300FD000A001E0004003E0070000000FD000A001E0005000F006C000000BD0012001E0006004100000059404100000059400700FD000A001F0000000F0020000000FD000A001F000100'';',
' i(223) := ''0F004F000000BD0012001F00020045008051E3404500A051E3400300FD000A001F0004003E0070000000FD000A001F0005000F006C000000BD0012001F000600410000C072404100000069400700D7004400160F00006C027A0064006400640064006400'';',
' i(224) := ''640064006400640064006400640064006400640064006400640064006400640064006400640064006400640064006400640008021000200000000800FF000000000000010F0008021000210000000800FF000000000000010F0008021000220000000800'';',
' i(225) := ''FF000000000000010F0008021000230000000800FF000000000000010F0008021000240000000800FF000000000000010F0008021000250000000800FF000000000000010F0008021000260000000800FF000000000000010F0008021000270000000800'';',
' i(226) := ''FF000000000000010F0008021000280000000800FF000000000000010F0008021000290000000800FF000000000000010F00080210002A0000000800FF000000000000010F00080210002B0000000800FF000000000000010F00080210002C0000000800'';',
' i(227) := ''FF000000000000010F00080210002D0000000800FF000000000000010F00080210002E0000000800FF000000000000010F00080210002F0000000800FF000000000000010F0008021000300000000800FF000000000000010F0008021000310000000800'';',
' i(228) := ''FF000000000000010F0008021000320000000800FF000000000000010F0008021000330000000800FF000000000000010F0008021000340000000800FF000000000000010F0008021000350000000800FF000000000000010F0008021000360000000800'';',
' i(229) := ''FF000000000000010F0008021000370000000800FF000000000000010F0008021000380000000800FF000000000000010F0008021000390000000800FF000000000000010F00080210003A0000000800FF000000000000010F00080210003B0000000800'';',
' i(230) := ''FF000000000000010F00080210003C0000000800FF000000000000010F00080210003D0000000800FF000000000000010F00080210003E0000000800FF000000000000010F00080210003F0000000800FF000000000000010F00FD000A00200000000F00'';',
' i(231) := ''20000000FD000A00200001000F0050000000BD001200200002004500A051E3404500A051E3400300FD000A00200004003E0070000000FD000A00200005000F006C000000BD001200200006004100000059404100000059400700FD000A00210000000F00'';',
' i(232) := ''20000000FD000A00210001000F0051000000BD001200210002004500A051E3404500A051E3400300FD000A00210004003E0070000000FD000A00210005000F006C000000BD001200210006004100000059404100000059400700FD000A00220000000F00'';',
' i(233) := ''21000000FD000A00220001000F0032000000BD0012002200020045006052E3404500E053E3400300FD000A00220004003E0072000000FD000A00220005000F006B000000BD00120022000600410000000000410000407F400700FD000A00230000000F00'';',
' i(234) := ''21000000FD000A00230001000F0036000000BD0012002300020045000054E34045006059E3400300FD000A00230004003E0072000000FD000A00230005000F000F000000BD00120023000600410000000000410000409F400700FD000A00240000000F00'';',
' i(235) := ''21000000FD000A00240001000F0037000000BD0012002400020045008054E3404500E05DE3400300FD000A00240004003E0072000000FD000A00240005000F000F000000BD0012002400060041000000000041000040BF400700FD000A00250000000F00'';',
' i(236) := ''21000000FD000A00250001000F0033000000BD0012002500020045000054E34045000054E3400300FD000A00250004003E0072000000FD000A00250005000F006A000000BD001200250006004100000000004100000059400700FD000A00260000000F00'';',
' i(237) := ''21000000FD000A00260001000F0034000000BD0012002600020045000055E3404500C05EE3400300FD000A00260004003E0072000000FD000A00260005000F0069000000BD0012002600060041000000000041000088A3400700FD000A00270000000F00'';',
' i(238) := ''21000000FD000A00270001000F0035000000BD0012002700020045002055E3404500205FE3400300FD000A00270004003E0072000000FD000A00270005000F0069000000BD00120027000600410000000000410000408F400700FD000A00280000000F00'';',
' i(239) := ''21000000FD000A00280001000F0052000000BD0012002800020045002056E34045008061E3400300FD000A00280004003E0072000000FD000A00280005000F0007000000BD0012002800060041000000000041000070A7400700FD000A00290000000F00'';',
' i(240) := ''21000000FD000A00290001000F0073000000BD0012002900020045004056E3404500E061E3400300FD000A00290004003E0072000000FD000A00290005000F000F000000BD001200290006004100000000004100007097400700FD000A002A0000000F00'';',
' i(241) := ''21000000FD000A002A0001000F0053000000BD0012002A0002004500A056E34045008062E3400300FD000A002A0004003E0072000000FD000A002A0005000F000F000000BD0012002A0006004100000000004100000069400700FD000A002B0000000F00'';',
' i(242) := ''21000000FD000A002B0001000F0054000000BD0012002B0002004500C059E34045002065E3400300FD000A002B0004003E0072000000FD000A002B0005000F000C000000BD0012002B000600410000000000410000407F400700FD000A002C0000000F00'';',
' i(243) := ''13000000FD000A002C0001000F0014000000BD0012002C00020045004054E34045000056E3400300FD000A002C0004003E0071000000FD000A002C0005000F0015000000BD0012002C000600410000C092404100000089400700FD000A002D0000000F00'';',
' i(244) := ''13000000FD000A002D0001000F0016000000BD0012002D00020045002056E34045004056E3400300FD000A002D0004003E0071000000FD000A002D0005000F0015000000BD0012002D0006004100000069404100000079400700FD000A002E0000000F00'';',
' i(245) := ''13000000FD000A002E0001000F0017000000BD0012002E0002004500A056E3404500E056E3400300FD000A002E0004003E0071000000FD000A002E0005000F0015000000BD0012002E0006004100000069404100000069400700FD000A002F0000000F00'';',
' i(246) := ''27000000FD000A002F0001000F0055000000BD0012002F00020045004058E3404500A058E3400300FD000A002F0004003E0070000000FD000A002F0005000F006D000000BD0012002F000600410000006940410000C072400700FD000A00300000000F00'';',
' i(247) := ''27000000FD000A00300001000F0056000000BD001200300002004500C058E3404500C058E3400300FD000A00300004003E0070000000FD000A00300005000F006D000000BD001200300006004100000059404100000059400700FD000A00310000000F00'';',
' i(248) := ''27000000FD000A00310001000F0057000000BD001200310002004500C059E34045000069E3400300FD000A00310004003E0070000000FD000A00310005000F006D000000BD0012003100060041000070A7404100007097400700FD000A00320000000F00'';',
' i(249) := ''28000000FD000A00320001000F0064000000BD001200320002004500E059E3404500E059E3400300FD000A00320004003E0070000000FD000A00320005000F006E000000BD001200320006004100000059404100000059400700FD000A00330000000F00'';',
' i(250) := ''28000000FD000A00330001000F0065000000BD001200330002004500E059E3404500A05DE3400300FD000A00330004003E0070000000FD000A00330005000F006E000000BD00120033000600410000408F404100007097400700FD000A00340000000F00'';',
' i(251) := ''28000000FD000A00340001000F0066000000BD001200340002004500205EE3404500C063E3400300FD000A00340004003E0070000000FD000A00340005000F006E000000BD0012003400060041000058AB4041000040AF400700FD000A00350000000F00'';',
' i(252) := ''28000000FD000A00350001000F0067000000BD001200350002004500E063E34045006066E3400300FD000A00350004003E006F000000FD000A00350005000F006E000000BD0012003500060041000000000041000040AF400700FD000A00360000000F00'';',
' i(253) := ''28000000FD000A00360001000F0068000000BD0012003600020045004065E3404500C070E3400300FD000A00360004003E0072000000FD000A00360005000F006E000000BD001200360006004100000000004100007097400700FD000A00370000000F00'';',
' i(254) := ''24000000FD000A00370001000F0058000000BD001200370002004500E05AE3404500205BE3400300FD000A00370004003E0070000000FD000A00370005000F000F000000BD00120037000600410000C07240410000407F400700FD000A00380000000F00'';',
' i(255) := ''24000000FD000A00380001000F0059000000BD001200380002004500205BE3404500C05BE3400300FD000A00380004003E0070000000FD000A00380005000F000F000000BD00120038000600410000407F40410000407F400700FD000A00390000000F00'';',
' i(256) := ''24000000FD000A00390001000F005A000000BD001200390002004500205CE3404500205CE3400300FD000A00390004003E0070000000FD000A00390005000F000F000000BD001200390006004100000059404100000059400700FD000A003A0000000F00'';',
' i(257) := ''24000000FD000A003A0001000F005B000000BD0012003A0002004500405CE3404500A05CE3400300FD000A003A0004003E0070000000FD000A003A0005000F000F000000BD0012003A000600410000C072404100000069400700FD000A003B0000000F00'';',
' i(258) := ''24000000FD000A003B0001000F005C000000BD0012003B0002004500A05DE3404500006FE3400300FD000A003B0004003E006F000000FD000A003B0005000F000F000000BD0012003B00060041000070B74041000094D1400700FD000A003C0000000F00'';',
' i(259) := ''24000000FD000A003C0001000F005D000000BD0012003C0002004500605FE34045006070E3400300FD000A003C0004003E006F000000FD000A003C0005000F000F000000BD0012003C00060041000070974041000070B7400700FD000A003D0000000F00'';',
' i(260) := ''24000000FD000A003D0001000F005E000000BD0012003D00020045000071E3404500A078E3400300FD000A003D0004003E0072000000FD000A003D0005000F0069000000BD0012003D000600410000000000410000409F400700FD000A003E0000000F00'';',
' i(261) := ''5F000000FD000A003E0001000F0060000000BD0012003E0002004500805BE3404500205CE3400300FD000A003E0004003E0070000000FD000A003E0005000F001A000000BD0012003E000600410000C08240410000408F400700FD000A003F0000000F00'';',
' i(262) := ''5F000000FD000A003F0001000F0061000000BD0012003F0002004500805CE3404500A05CE3400300FD000A003F0004003E0070000000FD000A003F0005000F001A000000BD0012003F0006004100000069404100000069400700D7004400000F00006C02'';',
' i(263) := ''640064006400640064006400640064006400640064006400640064006400640064006400640064006400640064006400640064006400640064006400640008021000400000000800FF000000000000010F0008021000410000000800FF00000000000001'';',
' i(264) := ''0F0008021000420000000800FF000000000000010F0008021000430000000800FF000000000000010F0008021000440000000800FF000000000000010F0008021000450000000800FF000000000000010F0008021000460000000800FF00000000000001'';',
' i(265) := ''0F0008021000470000000800FF000000000000010F0008021000480000000800FF000000000000010F0008021000490000000800FF000000000000010F00080210004A0000000800FF000000000000010F00080210004B0000000800FF00000000000001'';',
' i(266) := ''0F00080210004C0000000800FF000000000000010F00080210004D0000000800FF000000000000010F00080210004E0000000800FF000000000000010F00080210004F0000000800FF000000000000010F00FD000A00400000000F005F000000FD000A00'';',
' i(267) := ''400001000F0062000000BD001200400002004500C05CE3404500C05DE3400300FD000A00400004003E0070000000FD000A00400005000F001A000000BD00120040000600410000007940410000407F400700FD000A00410000000F005F000000FD000A00'';',
' i(268) := ''410001000F0063000000BD001200410002004500205EE3404500205EE3400300FD000A00410004003E0070000000FD000A00410005000F0007000000BD001200410006004100000059404100000059400700FD000A00420000000F0018000000FD000A00'';',
' i(269) := ''420001000F0019000000BD001200420002004500405EE3404500605EE3400300FD000A00420004003E0070000000FD000A00420005000F0074000000BD001200420006004100000069404100000069400700FD000A00430000000F0018000000FD000A00'';',
' i(270) := ''430001000F0010000000BD001200430002004500605EE3404500605EE3400300FD000A00430004003E0070000000FD000A00430005000F001A000000BD001200430006004100000059404100000059400700FD000A00440000000F0018000000FD000A00'';',
' i(271) := ''440001000F001B000000BD001200440002004500C05EE34045008061E3400300FD000A00440004003E0071000000FD000A00440005000F000C000000BD00120044000600410000C07240410000408F400700FD000A00450000000F0018000000FD000A00'';',
' i(272) := ''450001000F001C000000BD001200450002004500C05EE34045004063E3400300FD000A00450004003E0071000000FD000A00450005000F0074000000BD00120045000600410000008940410000409F400700FD000A00460000000F0018000000FD000A00'';',
' i(273) := ''460001000F0017000000BD0012004600020045008063E34045008063E3400300FD000A00460004003E0071000000FD000A00460005000F001A000000BD001200460006004100000000004100000059400700FD000A00470000000F001F000000FD000A00'';',
' i(274) := ''470001000F0029000000BD0012004700020045008061E3404500A061E3400300FD000A00470004003E0070000000FD000A00470005000F006A000000BD001200470006004100000069404100000069400700FD000A00480000000F001F000000FD000A00'';',
' i(275) := ''480001000F002A000000BD001200480002004500E061E3404500C062E3400300FD000A00480004003E0070000000FD000A00480005000F006A000000BD00120048000600410000C08240410000407F400700FD000A00490000000F001F000000FD000A00'';',
' i(276) := ''490001000F002B000000BD001200490002004500E062E3404500E062E3400300FD000A00490004003E0070000000FD000A00490005000F0007000000BD001200490006004100000059404100000059400700FD000A004A0000000F001F000000FD000A00'';',
' i(277) := ''4A0001000F002C000000BD0012004A00020045004063E34045004063E3400300FD000A004A0004003E0070000000FD000A004A0005000F0007000000BD0012004A0006004100000059404100000059400700FD000A004B0000000F001F000000FD000A00'';',
' i(278) := ''4B0001000F002D000000BD0012004B00020045006063E34045000075E3400300FD000A004B0004003E006F000000FD000A004B0005000F0074000000BD0012004B000600410000C0724041000070C7400700FD000A004C0000000F001F000000FD000A00'';',
' i(279) := ''4C0001000F002E000000BD0012004C00020045004065E34045000048E3400300FD000A004C0004003E0072000000FD000A004C0005000F006C000000BD0012004C00060041000000000041000070B7400700FD000A004D0000000F001F000000FD000A00'';',
' i(280) := ''4D0001000F002F000000BD0012004D00020045002067E34045000077E3400300FD000A004D0004003E0072000000FD000A004D0005000F000C000000BD0012004D00060041000000000041000088A3400700FD000A004E0000000F001F000000FD000A00'';',
' i(281) := ''4E0001000F0030000000BD0012004E0002004500A067E34045002078E3400300FD000A004E0004003E0072000000FD000A004E0005000F0069000000BD0012004E00060041000000000041000088A3400700FD000A004F0000000F001F000000FD000A00'';',
' i(282) := ''4F0001000F0031000000BD0012004F0002004500A067E34045006078E3400300FD000A004F0004003E0072000000FD000A004F0005000F006A000000BD0012004F000600410000000000410000407F400700D7002400800700002C016400640064006400'';',
' i(283) := ''640064006400640064006400640064006400640064003E021200B606000000004000000000000000410000008B0810008B0800000000000000000000000042001D000F000300000300000001000000FF3F0303EF00060000003700000067081700670800'';',
' i(284) := ''000000000000000000020001FFFFFFFF034400000A0000000908100000061000AA1FCD07C9000100060400000B021000000000000000000000000000B66900000D00020001000C00020064000F000200010011000200000010000800FCA9F1D24D62503F'';',
' i(285) := ''5F00020001002A00020000002B0002000000820002000100800008000000000000000000250204000000FF0081000200C104140000001500000083000200000084000200000026000800000000000000E83F27000800000000000000E83F280008000000'';',
' i(286) := ''00000000F03F29000800000000000000F03FA10022000000FF000100010001000400020001FF000000000000E03F000000000000E03F00009C0826009C080000000000000000000000000000000000000000000000000000040000000000000000005500'';',
' i(287) := ''0200080000020E0000000000000000000000000000003E021200B600000000004000000000000000000000008B0810008B0800000000000000000000000002001D000F00030000000000000100000000000000EF00060000003700000067081700670800'';',
' i(288) := ''000000000000000000020001FFFFFFFF034400000A0000000908100000061000AA1FCD07C9000100060400000B021000000000000000000000000000466B00000D00020001000C00020064000F000200010011000200000010000800FCA9F1D24D62503F'';',
' i(289) := ''5F00020001002A00020000002B0002000000820002000100800008000000000000000000250204000000FF0081000200C104140000001500000083000200000084000200000026000800000000000000E83F27000800000000000000E83F280008000000'';',
' i(290) := ''00000000F03F29000800000000000000F03FA10022000000FF000100010001000400020001FF000000000000E03F000000000000E03F00009C0826009C080000000000000000000000000000000000000000000000000000040000000000000000005500'';',
' i(291) := ''0200080000020E0000000000000000000000000000003E021200B600000000004000000000000000000000008B0810008B0800000000000000000000000002001D000F00030000000000000100000000000000EF00060000003700000067081700670800'';',
' i(292) := ''000000000000000000020001FFFFFFFF034400000A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000200000003000000FEFFFFFF'';',
' i(293) := ''05000000060000000700000008000000FEFFFFFF0A000000FEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(294) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(295) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(296) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(297) := ''FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFF0000'';',
' i(298) := ''050102000000000000000000000000000000000001000000E0859FF2F94F6810AB9108002B27B3D930000000A400000007000000010000004000000004000000480000000800000054000000120000006C0000000C000000840000000D00000090000000'';',
' i(299) := ''130000009C00000002000000E40400001E00000004000000000000001E0000001000000048494C4152592046415252454C4C00001E000000100000004D6963726F736F667420457863656C00400000000094F81928BABB014000000080C89F35D6F6CC01'';',
' i(300) := ''03000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FEFF000005010200000000000000000000000000000000000100000002D5CDD59C2E1B10939708002B2CF9AE30000000'';',
' i(301) := ''D80000000900000001000000500000000F0000005800000017000000640000000B0000006C0000001000000074000000130000007C00000016000000840000000D0000008C0000000C000000B500000002000000E40400001E0000000400000000000000'';',
' i(302) := ''0300000000000C000B000000000000000B000000000000000B000000000000000B000000000000001E100000030000000700000053686565743100070000005368656574320007000000536865657433000C100000020000001E0000000B000000576F72'';',
' i(303) := ''6B73686565747300030000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100FEFF030A0000FFFFFFFF2008020000000000C000000000000046'';',
' i(304) := ''260000004D6963726F736F6674204F666669636520457863656C203230303320576F726B736865657400060000004269666638000E000000457863656C2E53686565742E3800F439B2710000000000000000000000000000000000000000000000000000'';',
' i(305) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(306) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(307) := ''00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(308) := ''0000000000000000000000000000000000000000010043006F006D0070004F0062006A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000200FFFFFFFFFFFFFFFFFFFFFFFF'';',
' i(309) := ''00000000000000000000000000000000000000000000000000000000000000000000000009000000720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(310) := ''00000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(311) := ''0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'';',
' i(312) := ''000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000'';',
' i(313) := ''0000000000000000000000000000000000000000000000000000000000000000'';',
' ',
' l_blob := varchar2_to_blob(i);',
' ',
' update eba_demo_tree_proj_files',
' set file_blob = l_blob',
' where project_id = 7;',
' ',
'l_blob := null;',
'i := g_empty;',
' ',
' i(1) := ''47494638396140004000F700000B0C0D110C0E0E0F100F10111213141718191B1B1C220D112A0F153E1F251F20212724252D22252627282B2B2C3222253A2025352529302E2F2E2F302F3031343334363738373839393A3B510F1B5B101D62101E421F25'';',
' i(2) := ''521C266D10216319266A18267512247B1123463F413F40414243444946474A47484B4B4C514F4F5A4B4F524F505353545C5B5C605D5E5F60616363646767686B6C6C7374747777787A7B7B8312258A122689192487162A8D12288F182D931726941D269B'';',
' i(3) := ''1D279412299C122A92192E9C182F921E339B1B31A3132CAB132DA31F28AB1F2AB3142EB9172FB31B2CBD192FAB1630A11B33AC1A33B31C35BA19319422369E2137962539B5202BB8212CA2243AAA263DA12B3FA9283EB1273FB92038C11A2FC41C30C91F'';',
' i(4) := ''30C4202FC8252ECD2130C6283CCA2C3DD32331D926329A2D419E3648A62D42AF2E44B42A42BA2B43AC3045A9364AA23D4FB63047B6364CBB344ABD384EA33F51AD3E52B43E52BC3E54C02B40CD3C4CC23D52994151A44354A64758A84859BE4257BB4458'';',
' i(5) := ''B6495CAD5665B35364B95567B95668B45D6C9E6F78807E7FB56472BC6271BE6977B76A78B86C7AC34054CA4456D04757C45165C15E6FCB596BD45967D65C69C66475CF6778C26D7CD76876D06E7F7F7F80BB7481C47583C87382CD7A89D77D8B82828387'';',
' i(6) := ''87888B8B8C908E8E929393999A9AA3A4A4AFA2A4ABAAABAFAFB0B4B4B4B7B7B8BEBEBEC3808CCC818DD3808EC98591C78B96CB8A95CF8D99D68593DC8692D68A97D98895DB8F9CCA919BD3919CD8939FE0919CCD97A1D495A0D39AA4DD98A4D49EA8DC9E'';',
' i(7) := ''A9D5A2ABDEA4AEDCADB5DCB3BBDDB9BFE2A4AEE3B4BCC0BFC0E2BDC3E9BDC3C3C3C3C8C7C7C7C8C8CCCCCCD4D4D4DADADBE4C1C7EFC1C6E4C4CAECC4CBE5C9CEE9C9CEE7CED3EACDD2F1CBD0E9D2D6EFD7DBEED9DDF0DADEDFDFE0EEDDE0F3DFE3E4E4E4'';',
' i(8) := ''E7E7E8ECECECF3E2E4F3E6E8F6ECEEF9ECEEF4EFF0F8EFF0F4F4F4FAF4F5FCF7F8FEFEFE00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021F904010000F1002C00000000400040000008'';',
' i(9) := ''FE00E3091C48B0A0C18308132A5CC8B0A1C3871011961B256A5AC482EF52B590B0C0410A52E42E2A34E700008002AA44C62BB76281CB971D49B5536970D4490500069CBAB8CE04CC9F0B5ACCA43990040019E52A983415511450A02D880A2C4700C0AA78'';',
' i(10) := ''E68C0A18F5B09D05064F5D825DC094682A000486AE3B617293436961814A48471406801404DBB1303903E3396BD4A86943176F595CA0A8882E00500A630B9331D621E3444787E51B372C4BD9D3E1C1E1977D55463329CDE0BB18073404F9F143476B1D99'';',
' i(11) := ''2DC3860D02824B050D9E4655798A808383E20CB11E4EFCB56CD9373E80CD0DD4055173A509BA8B4504086B20D6AD173F7E5C4402E63F43FE3D8476CA62C26F75B0AB075204BB1060EEDC11A3321CF9650E4F9F392C6572008DA1052933C57AD8B5871D26'';',
' i(12) := ''F024080F3A596867990DB1DD60DB0263C1F0104E5501E080330511234481EC1521627B45ECA26082C410A7C306C7D910C14B2798E390390300E0CC2619CA20633CC41438E28F234A72223CDE60C79A07DCFD1042478800C850390200505A341800208003'';',
' i(13) := ''AC1C4322904674D965114D34736233EA8560036B975976C88E0F91639279ED8852150242FCE8E59D773EF10B3BEF8063477B3A88A0A26C68B8135138519A27903423D81062114640EA651294366144125D36B145A4ED79A0DEA0391013D1342685441026'';',
' i(14) := ''8F4A0A47247050EAEAABFE7886C0DEA7685AD64744D2E464AA40D46CE9252CEFC0F34E32502861ECAB947679A688EC11910611B5EE700E44A311C0663C75D8690414EE9CA88CB14C187B2CA540D8F0651180A0038F3BC00CF19AA8E3A1C5A6313E7A09C5'';',
' i(15) := ''90EF3CD20513E1867BAC08987EB9CD89CCBCD60844ED44C3E140763C3AA9982766E2C5C41377B1AF0DC97A39CE9085B4C60751D6D4DB25A5786C9CE03B797CF185172B7BD1057B4BB8DA653143CED21A15442D22F2A5492881472FD'))
);
wwv_flow_api.append_to_install_script(
p_id=>wwv_flow_api.id(3158097889654516109)
,p_script_clob=>wwv_flow_string.join(wwv_flow_t_varchar2(
'B545389185F8841B4'';',
' i(16) := ''CA4BF0B02F1332AF61728289B016C43B2AB973858F92526AACC52A1B2D461947E3F0C5D24C07BCC630E79C438B7641D035520D2D94722D35EA8938B2D64AB8AC72FE197CF7DD43172A7FC1AF12C93631E2A741A8B3D05E26194083A9B1FC80B5114DE0DD'';',
' i(17) := ''05CB5FF46D861948546186CA97879B31A746FE1044340BD5584201FDC110CD20754B3AB2124C00BE77199B877184197CABEC85B819336BE40D03CC706D410600704A399BE064520E923BEC2AED97DFBEB90F9BF7BEF2BE84074C3A762198B4C04E079500'';',
' i(18) := ''000D02B563CA04015C27B2E55114FDB5193EE0CE7B1981BBDCBD97C203914828AC034009A243901900E0040541C5701E658961D4420E3DAB9DFCC4D0B9EC69AF62E33A979184118F69308E00355807414E01800514E41BAE895E115EA120775C626B98B3'';',
' i(19) := ''42FDFAD6B72F50821BE7508623BC773820806320FEAB28898614351A00EC2A1EDF58207606A6A077E8616B63C381D7B4F7053CB0A38991E09F81DC50907684A22A2C18483BAAC20A829C63074A8498827821AE2EE880095D0B9CCA20112C058DC352DF8B'';',
' i(20) := ''C5416A0080061044295C19883B769042EC106248C1E899127C50049661CE775E18431D1574070D02E11B0531470C4CB21B81D8A59302394321B1E3896EADEB0F942AC20DF875398A51AC0BB638D13BE070AE220CA220A7580C0048702D5584A215051184'';',
' i(21) := ''6594D8064F7C220E230398B8F266318BD12E0AA0B8E23B6ED1A55901E11A0399060A4C520052508D21B2908DFB1C660411F0AC675188C23281070539AC418B4520C44046114016288A21DAFE10E7384774831F74090A9AC0C524D4093C647D895344C0A4'';',
' i(22) := ''406850C2545C040DFA8C1E7B7E60CE2E5D4341D76003B2BC574B2070222F35389E4368711C2502C103238AC3909A714E3C71AA3D22304019A5120F760CA1A4D7F180E444A486490A6B0E2E7DA988B41001B494452ABA48D20F6CE0281F2163488038283C'';',
' i(23) := ''8BE0846C84432902A8014DDF4107CCB82685FBD402138964B81119CE9A42608640CCB14D00C4C04922F90611D2344C9336C110BFF804168034ABF63C41AD62DCE451688A8C207007AC125D8F810CA49E3474638F2681AB488E71D3D844749C045ACF2008'';',
' i(24) := ''539068D440290590AC48B021CAC316C7A4D19B023008F28E56CC40883909B0244DE3910E461C3636A71D0E113AC1D9789C267926D1100DA031DB8274C31084B48F3E2D93830CA8C020E613C0054281BAE222E41CBE100415B8B30329F4E113D8380B0088'';',
' i(25) := ''4B905494E29ED65D083ABA610D6B74E31CDF1488050000CAF4DA57BCD5B5AF7DDF4101FAEAF7BF241C0001FF7B9117A0A006A790C650DE519218105825CEE3E60562408A1768E8C12231850C4A60802805D72425C0304DDE310D5FB2C00103C0C08045CC'';',
' i(26) := ''E216BB381E0101003B'';',
' ',
' l_blob := varchar2_to_blob(i);',
' ',
' update eba_demo_tree_proj_files',
' set file_blob = l_blob',
' where project_id = 9',
' and id = 246454388869384480850160680641289144349;',
' ',
'l_blob := null;',
'i := g_empty;',
'',
'/* Charts Tasks Table Data */',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (4,6,''Reporting'',null,null,null,2,100,null);',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (1,1,''HR Support Systems'',to_date(''01-11-11'',''DD-MM-RR''),to_date(''25-11-12'',''DD-MM-RR''),to_date(''24-11-12'',''DD-'
||'MM-RR''),3,100,null);',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (2,2,''Customize solutions'',to_date(''13-02-12'',''DD-MM-RR''),null,null,null,70,null);',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (3,3,''Get RFPs for new server'',to_date(''02-03-12'',''DD-MM-RR''),to_date(''16-03-12'',''DD-MM-RR''),null,2,80,null);',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (9,4,''Implement bug tracking software'',to_date(''01-03-12'',''DD-MM-RR''),to_date(''01-06-12'',''DD-MM-RR''),null,1,20,'
||'null);',
'insert into eba_demo_tree_task (PROJ_ID,TASK_ID,TASK_NAME,TASK_START,TASK_EST_COMP,TASK_COMP,TASK_PRIORITY,TASK_STATUS,TASK_ASSIGN) values (9,5,''QA New Application'',to_date(''02-06-12'',''DD-MM-RR''),to_date(''02-07-12'',''DD-MM-RR''),null,null,20,null);',
'',
' ',
'update eba_demo_tree_task',
' set TASK_START = TASK_START+ (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY'')),',
' TASK_EST_COMP = TASK_EST_COMP+ (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY'')),',
' TASK_COMP = TASK_COMP + (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY''));',
'',
'',
'/*Charts Subtask Table Data */ ',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,4,10,''Feature Enhancements Development Work'',to_date(''02-03-12'',''DD-MM-RR''),to_date(''30-05-12'',''DD-MM-RR'''
||'),null,''1'',null,''Myra Sutcliff'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,4,11,''Document quality assurance procedures'',to_date(''01-06-12'',''DD-MM-RR''),to_date(''04-06-12'',''DD-MM-RR'''
||'),null,''4'',''0'',''Myra Sutcliff'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,4,12,''Review automated testing tools'',to_date(''07-06-12'',''DD-MM-RR''),to_date(''09-06-12'',''DD-MM-RR''),null,'
||'''2'',null,''Myra Sutcliff'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,4,13,''Measure effectiveness of improved QA'',to_date(''14-06-12'',''DD-MM-RR''),to_date(''14-06-12'',''DD-MM-RR'')'
||',null,null,null,''Myra Sutcliff'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,3,14,''Train developers on tracking bugs'',to_date(''30-06-12'',''DD-MM-RR''),to_date(''10-07-12'',''DD-MM-RR''),nu'
||'ll,null,''0'',''Myra Sutcliff'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,2,14,''Monday Test'',to_date(''20-02-12'',''DD-MM-RR''),null,null,''5'',''20'',null);',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (3,1,16,''Monday testing'',to_date(''20-02-12'',''DD-MM-RR''),null,null,null,''0'',null);',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (9,1,16,''2nd Monday Test'',null,null,null,null,''0'',null);',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (8,2,16,''Train writers'',to_date(''20-02-12'',''DD-MM-RR''),null,null,null,''40'',null);',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (1,1,1,''HR software upgrades'',to_date(''01-11-11'',''DD-MM-RR''),null,to_date(''16-11-11'',''DD-MM-RR''),''3'',''40'',''P'
||'am King'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (1,1,2,''Arrange for vacation coverage'',to_date(''28-11-11'',''DD-MM-RR''),null,to_date(''28-11-11'',''DD-MM-RR''),''3'
||''',''Closed'',''Russ Sanders'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (1,1,3,''Investigate new Virus Protection software'',to_date(''05-11-11'',''DD-MM-RR''),null,to_date(''06-11-11'',''D'
||'D-MM-RR''),''3'',''Closed'',''Pam King'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (2,2,4,''Identify point solutions required'',to_date(''17-02-12'',''DD-MM-RR''),to_date(''17-02-12'',''DD-MM-RR''),nul'
||'l,''2'',''Open'',''John Watson'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (2,2,5,''Install in development environment'',to_date(''13-02-12'',''DD-MM-RR''),to_date(''13-02-12'',''DD-MM-RR''),nu'
||'ll,''5'',''0'',''John Watson'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (5,2,6,''Train developers / users'',to_date(''13-02-12'',''DD-MM-RR''),to_date(''17-02-12'',''DD-MM-RR''),null,''1'',''0'''
||',null);',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (5,3,7,''Complete plan'',to_date(''02-03-12'',''DD-MM-RR''),null,null,''2'',''Open'',''Mark Nile'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (5,3,8,''Check software licenses'',to_date(''03-03-12'',''DD-MM-RR''),null,null,''2'',''Open'',''Mark Nile'');',
'insert into eba_demo_tree_subtask (PROJ_ID,TASK_ID,SUB_ID,SUB_NAME,SUB_START,SUB_EST_COMP,SUB_COMP,SUB_PRIORITY,SUB_STATUS,SUB_ASSIGN) values (5,3,9,''Purchase backup server'',to_date(''05-03-12'',''DD-MM-RR''),null,null,''1'',''Open'',''Mark Nile'');',
'',
'update eba_demo_tree_subtask',
' set SUB_START = SUB_START + (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY'')),',
' SUB_EST_COMP = SUB_EST_COMP + (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY'')),',
' SUB_COMP = SUB_COMP + (SYSDATE - TO_DATE(''01012012'',''MMDDYYYY''));',
'',
'/* Charts Stocks Table Data */',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (1, ''METR'',''Metro Trading'', LOCALTIMESTAMP - 151,507.84,513.3,507.23,512.88);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (2, ''METR'',''Metro Trading'', LOCALTIMESTAMP - 132,512.36,515.4,510.58,511.4);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (3, ''METR'',''Metro Trading'', LOCALTIMESTAMP - 74,513.1,516.5,511.47,515.25);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (4, ''METR'',''Metro Trading'', LOCALTIMESTAMP - 58,515.02,528,514.62,525.15);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (5, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP -170,298.84,310.04,297.15,305.11);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (6, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 163,305.11,318.11,305.11,306.90);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (7, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 151,321.90,322.05,320.09,322.01);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (8, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 132,345.90,348.90,345.90,347.55);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (9, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 111,347.55,351.08,350.45,350.90);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (10, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 74,321.90,287.90,287.90,287.90);',
' insert into eba_demo_tree_stocks (ID, STOCK_CODE, STOCK_NAME, PRICING_DATE,OPENING_VAL,HIGH,LOW,CLOSING_VAL) values (11, ''GENO'',''Genorate Marketing'', LOCALTIMESTAMP - 40,287.90,299.90,283.90,288.90);',
'',
'',
'/* Charts Population Table Data */',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (51,''Wyoming'',''WY'',563626,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (9,''Georgia'',''GA'',9687653,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (17,''Tennessee'',''TN'',6346105,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (18,''Missouri'',''MO'',5988927,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (19,''Maryland'',''MD'',5773552,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (21,''Minnesota'',''MN'',5303925,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (36,''New Mexico'',''NM'',2059179,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (1,''California'',''CA'',37253956,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (2,''Texas'',''TX'',25145561,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (3,''New York'',''NY'',19378102,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (4,''Florida'',''FL'',18801310,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (5,''Illinois'',''IL'',12830310,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (6,''Pennsylvania'',''PA'',12702379,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (7,''Ohio'',''OH'',11536504,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (8,''Michigan'',''MI'',9883640,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (10,''North Carolina'',''NC'',9535483,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (11,''New Jersey'',''NJ'',8791894,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (12,''Virginia'',''VA'',8001024,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (13,''Washington'',''WA'',6724540,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (14,''Arizona'',''AZ'',6392017,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (15,''Massachusetts'',''MA'',6547629,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (16,''Indiana'',''IN'',6483802,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (20,''Wisconsin'',''WI'',5686986,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (22,''Colorado'',''CO'',5029196,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (23,''Alabama'',''AL'',4779736,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (24,''South Carolina'',''SC'',4625364,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (25,''Louisiana'',''LA'',4533372,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (26,''Kentucky'',''KY'',4339367,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (27,''Oregon'',''OR'',3831074,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (28,''Oklahoma'',''OK'',3751351,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (29,''Connecticut'',''CT'',3574097,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (30,''Iowa'',''IA'',3046355,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (31,''Mississippi'',''MS'',2967297,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (32,''Arkansas'',''AR'',2915918,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (33,''Kansas'',''KS'',2853118,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (34,''Utah'',''UT'',2763885,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (35,''Nevada'',''NV'',2700551,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (37,''West Virginia'',''WV'',1852994,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (38,''Nebraska'',''NE'',1826341,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (39,''Idaho'',''ID'',1567582,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (40,''Maine'',''ME'',1328361,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (41,''New Hampshire'',''NH'',1316470,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (42,''Hawaii'',''HI'',1360301,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (43,''Rhode Island'',''RI'',1052567,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (44,''Montana'',''MT'',989415,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (45,''Delaware'',''DE'',897934,3);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (46,''South Dakota'',''SD'',814180,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (47,''Alaska'',''AK'',710231,4);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (48,''North Dakota'',''ND'',672591,2);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (49,''Vermont'',''VT'',625741,1);',
' insert into eba_demo_tree_population (ID,STATE_NAME,STATE_CODE,POPULATION,REGION) values (50,''District of Columbia'',''DC'',601723,3);',
'',
'/* Charts Dept Table */',
' insert into eba_demo_tree_dept (DEPTNO,DNAME,LOC) values (10,''ACCOUNTING'',''NEW YORK'');',
' insert into eba_demo_tree_dept (DEPTNO,DNAME,LOC) values (20,''RESEARCH'',''DALLAS'');',
' insert into eba_demo_tree_dept (DEPTNO,DNAME,LOC) values (30,''SALES'',''CHICAGO'');',
' insert into eba_demo_tree_dept (DEPTNO,DNAME,LOC) values (40,''OPERATIONS'',''BOSTON'');',
'',
'/* Charts Emp Table */',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7839,''KING'',''PRESIDENT'',null,to_date(''17-11-81'',''DD-MM-RR''),5000,null,10);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7698,''BLAKE'',''MANAGER'',7839,to_date(''01-05-81'',''DD-MM-RR''),2850,null,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7782,''CLARK'',''MANAGER'',7839,to_date(''09-06-81'',''DD-MM-RR''),2450,null,10);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7566,''JONES'',''MANAGER'',7839,to_date(''02-04-81'',''DD-MM-RR''),2975,null,20);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7788,''SCOTT'',''ANALYST'',7566,to_date(''09-12-82'',''DD-MM-RR''),3000,null,20);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7902,''FORD'',''ANALYST'',7566,to_date(''03-12-81'',''DD-MM-RR''),3000,null,20);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7369,''SMITH'',''CLERK'',7902,to_date(''17-12-80'',''DD-MM-RR''),800,null,20);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7499,''ALLEN'',''SALESMAN'',7698,to_date(''20-02-81'',''DD-MM-RR''),1600,300,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7521,''WARD'',''SALESMAN'',7698,to_date(''22-02-81'',''DD-MM-RR''),1250,500,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7654,''MARTIN'',''SALESMAN'',7698,to_date(''28-09-81'',''DD-MM-RR''),1250,1400,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7844,''TURNER'',''SALESMAN'',7698,to_date(''08-09-81'',''DD-MM-RR''),1500,0,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7876,''ADAMS'',''CLERK'',7788,to_date(''12-01-83'',''DD-MM-RR''),1100,null,20);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7900,''JAMES'',''CLERK'',7698,to_date(''03-12-81'',''DD-MM-RR''),950,null,30);',
' insert into eba_demo_tree_emp (EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO) values (7934,''MILLER'',''CLERK'',7782,to_date(''23-01-82'',''DD-MM-RR''),1300,null,10);',
'',
'end eba_demo_tree_data;',
'/',
'',
'show errors',
' ',
'begin',
' eba_demo_tree_data;',
'end;',
''))
);
end;
/
prompt --application/deployment/checks
begin
null;
end;
/
prompt --application/deployment/buildoptions
begin
null;
end;
/
prompt --application/end_environment
begin
wwv_flow_api.import_end(p_auto_install_sup_obj => nvl(wwv_flow_application_install.get_auto_install_sup_obj, false));
commit;
end;
/
set verify on feedback on define on
prompt ...done | the_stack |
-- 2017-03-30T11:52:10.008
-- 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,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,540772,'N','de.metas.ui.web.pporder.process.WEBUI_PP_Order_IssueReceipt_Launcher','N',TO_TIMESTAMP('2017-03-30 11:52:09','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','N','N','N','N','N','N','Y',0,'Issue/Receipt','N','Y','Java',TO_TIMESTAMP('2017-03-30 11:52:09','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_PP_Order_IssueReceipt_Launcher')
;
-- 2017-03-30T11:52:10.013
-- 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=540772 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- 2017-03-30T11:52:46.355
-- 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,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540772,53027,TO_TIMESTAMP('2017-03-30 11:52:46','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y',TO_TIMESTAMP('2017-03-30 11:52:46','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y')
;
-- 2017-03-30T11:54:30.634
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window (AD_Client_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsOneInstanceOnly,IsSOTrx,Name,Processing,Updated,UpdatedBy,WindowType,WinHeight,WinWidth) VALUES (0,0,540328,TO_TIMESTAMP('2017-03-30 11:54:30','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','N','N','N','Y','Manufacturing Issue/Receipt','N',TO_TIMESTAMP('2017-03-30 11:54:30','YYYY-MM-DD HH24:MI:SS'),100,'M',0,0)
;
-- 2017-03-30T11:54:30.640
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Window_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_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=540328 AND NOT EXISTS (SELECT * FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- 2017-03-30T11:54:46.039
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET Help='*** placeholder window ***',Updated=TO_TIMESTAMP('2017-03-30 11:54:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540328
;
-- 2017-03-30T11:54:46.044
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=540328
;
-- 2017-03-30T16:05:42.633
-- 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,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,540773,'N','de.metas.ui.web.pporder.process.WEBUI_PP_Order_Receipt','N',TO_TIMESTAMP('2017-03-30 16:05:41','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','N','N','N','N','N','N','Y',0,'Receive HUs','N','Y','Java',TO_TIMESTAMP('2017-03-30 16:05:41','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_PP_Order_Receipt')
;
-- 2017-03-30T16:05:42.649
-- 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=540773 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- 2017-03-30T16:49:37.733
-- 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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,543278,0,540773,541170,20,'IsSaveLUTUConfiguration',TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.ui.web',0,'Y','N','Y','N','Y','N','Save configuration',5,TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-03-30T16:49:37.734
-- 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=541170 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:37.809
-- 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,542132,0,540773,541171,30,'M_HU_PI_Item_Product_ID',TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',0,'Y','N','Y','N','Y','N','Packvorschrift-Produkt Zuordnung',10,TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-03-30T16:49:37.810
-- 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=541171 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:37.883
-- 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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542487,0,540773,541172,30,540396,'M_LU_HU_PI_ID',TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',0,'Y','N','Y','N','Y','N','Packvorschrift (LU)',20,TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-03-30T16:49:37.884
-- 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=541172 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:37.949
-- 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,542492,0,540773,541173,29,'QtyCU',TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',0,'Y','N','Y','N','Y','N','Menge CU',30,TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-03-30T16:49:37.949
-- 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=541173 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:38.015
-- 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,542490,0,540773,541174,29,'QtyTU',TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web',0,'Y','N','Y','N','Y','N','Menge TU',40,TO_TIMESTAMP('2017-03-30 16:49:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-03-30T16:49:38.015
-- 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=541174 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:38.084
-- 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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy,ValueMin) VALUES (0,542491,0,540773,541175,29,'QtyLU',TO_TIMESTAMP('2017-03-30 16:49:38','YYYY-MM-DD HH24:MI:SS'),100,'1','de.metas.ui.web',0,'Y','N','Y','N','Y','N','Menge LU',50,TO_TIMESTAMP('2017-03-30 16:49:38','YYYY-MM-DD HH24:MI:SS'),100,'')
;
-- 2017-03-30T16:49:38.086
-- 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=541175 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 2017-03-30T16:49:51.514
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET IsActive='N',Updated=TO_TIMESTAMP('2017-03-30 16:49:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541170
;
-- 2017-03-30T16:51:01.109
-- 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,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540773,53027,TO_TIMESTAMP('2017-03-30 16:51:01','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y',TO_TIMESTAMP('2017-03-30 16:51:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N')
;
-- 2017-03-30T16:51:06.899
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table_Process SET WEBUI_QuickAction_Default='Y',Updated=TO_TIMESTAMP('2017-03-30 16:51:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540773 AND AD_Table_ID=53027
;
-- 2017-03-30T16:51:22.256
-- 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,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540773,53025,TO_TIMESTAMP('2017-03-30 16:51:22','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y',TO_TIMESTAMP('2017-03-30 16:51:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y')
;
-- 2017-03-30T18:18:57.818
-- 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,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540773,53026,TO_TIMESTAMP('2017-03-30 18:18:57','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y',TO_TIMESTAMP('2017-03-30 18:18:57','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y')
;
-- 2017-03-30T18:19:02.985
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Process WHERE AD_Process_ID=540773 AND AD_Table_ID=53027
;
-- 2017-04-02T16:33:32.885
-- 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,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,540775,'Y','de.metas.ui.web.pporder.process.WEBUI_PP_Order_ProcessPlan','N',TO_TIMESTAMP('2017-04-02 16:33:32','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','N','N','N','N','N','N','Y',0,'Process plan','N','Y','Java',TO_TIMESTAMP('2017-04-02 16:33:32','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_PP_Order_ProcessPlan')
;
-- 2017-04-02T16:33:32.900
-- 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=540775 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- 2017-04-02T16:33:57.019
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET EntityType='de.metas.ui.web',Updated=TO_TIMESTAMP('2017-04-02 16:33:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540775
;
-- 2017-04-02T16:34:30.156
-- 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,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540775,53024,TO_TIMESTAMP('2017-04-02 16:34:30','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y',TO_TIMESTAMP('2017-04-02 16:34:30','YYYY-MM-DD HH24:MI:SS'),100,'Y','N')
;
-- 2017-04-03T03:39:31.653
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Process WHERE AD_Process_ID=540775 AND AD_Table_ID=53024
;
-- 2017-04-03T03:39:44.460
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Process WHERE AD_Process_ID=540773 AND AD_Table_ID=53025
;
-- 2017-04-03T03:39:44.496
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Table_Process WHERE AD_Process_ID=540773 AND AD_Table_ID=53026
; | the_stack |
-- Copyright (C) from 2009 to Present EPAM Systems.
--
-- This file is part of Indigo toolkit.
--
-- 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.
set verify off
spool mango_calls;
create or replace function Sub_clob (context_id in binary_integer,
target in CLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoSub" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function SubHi_clob (context_id in binary_integer,
target in CLOB, query in CLOB, params in VARCHAR2) return CLOB
AS language C name "oraMangoSubHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Sub_blob (context_id in binary_integer,
target in BLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoSub" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function SubHi_blob (context_id in binary_integer,
target in BLOB, query in CLOB, params in VARCHAR2) return CLOB
AS language C name "oraMangoSubHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Smarts_clob (context_id in binary_integer,
target in CLOB, query in VARCHAR2) return NUMBER
AS language C name "oraMangoSmarts" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCINumber);
/
create or replace function Smarts_blob (context_id in binary_integer,
target in BLOB, query in VARCHAR2) return NUMBER
AS language C name "oraMangoSmarts" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCINumber);
/
create or replace function SmartsHi_clob (context_id in binary_integer,
target in CLOB, query in VARCHAR2) return CLOB
AS language C name "oraMangoSmartsHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCILobLocator);
/
create or replace function SmartsHi_blob (context_id in binary_integer,
target in BLOB, query in VARCHAR2) return CLOB
AS language C name "oraMangoSmartsHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Exact_clob (context_id in binary_integer,
target in CLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoExact" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function ExactHi_clob (context_id in binary_integer,
target in CLOB, query in CLOB, params in VARCHAR2) return CLOB
AS language C name "oraMangoExactHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Exact_blob (context_id in binary_integer,
target in BLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoExact" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function ExactHi_blob (context_id in binary_integer,
target in BLOB, query in CLOB, params in VARCHAR2) return CLOB
AS language C name "oraMangoExactHi" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Sim_clob (context_id in binary_integer,
target in CLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoSim" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function Sim_blob (context_id in binary_integer,
target in BLOB, query in CLOB, params in VARCHAR2) return NUMBER
AS language C name "oraMangoSim" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace function GrossCalc_clob (target in CLOB) return VARCHAR2
AS language C name "oraMangoGrossCalc" library bingolib
with context parameters(context, target, target indicator short,
return indicator short, return OCIString);
/
create or replace function GrossCalc_blob (target in BLOB) return VARCHAR2
AS language C name "oraMangoGrossCalc" library bingolib
with context parameters(context, target, target indicator short,
return indicator short, return OCIString);
/
create or replace function Gross_clob (context_id in binary_integer,
target in CLOB, query in VARCHAR2) return NUMBER
AS language C name "oraMangoGross" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCINumber);
/
create or replace function Gross_blob (context_id in binary_integer,
target in BLOB, query in VARCHAR2) return NUMBER
AS language C name "oraMangoGross" library bingolib
with context parameters(context, context_id,
target, target indicator short,
query, query indicator short,
return indicator short, return OCINumber);
/
create or replace function Mass_clob (context_id in binary_integer,
target in CLOB, typee in VARCHAR2) return NUMBER
AS language C name "oraMangoMolecularMass" library bingolib
with context parameters(context, context_id,
target, target indicator short,
typee, typee indicator short,
return indicator short, return OCINumber);
/
create or replace function Mass_blob (context_id in binary_integer,
target in BLOB, typee in VARCHAR2) return NUMBER
AS language C name "oraMangoMolecularMass" library bingolib
with context parameters(context, context_id,
target, target indicator short,
typee, typee indicator short,
return indicator short, return OCINumber);
/
create or replace procedure mangoCreateIndex(context_id in binary_integer, params in varchar2,
full_table_name in varchar2,
column_name in varchar2,
column_data_type in varchar2)
AS language C name "oraMangoCreateIndex" library bingolib
with context parameters(context, context_id,
params, params indicator short,
full_table_name, full_table_name indicator short,
column_name, column_name indicator short,
column_data_type, column_data_type indicator short);
/
create or replace procedure mangoDropIndex (context_id in binary_integer)
AS language C name "oraMangoDropIndex" library bingolib
with context parameters(context, context_id);
/
create or replace procedure mangoTruncateIndex (context_id in binary_integer)
AS language C name "oraMangoTruncateIndex" library bingolib
with context parameters(context, context_id);
/
create or replace procedure mangoIndexInsert_clob (context_id in binary_integer, rid in VARCHAR2, item in CLOB)
AS language C name "oraMangoIndexInsert" library bingolib
with context parameters(context, context_id,
rid, rid indicator short,
item, item indicator short);
/
create or replace procedure mangoIndexInsert_blob (context_id in binary_integer, rid in VARCHAR2, item in BLOB)
AS language C name "oraMangoIndexInsert" library bingolib
with context parameters(context, context_id,
rid, rid indicator short,
item, item indicator short);
/
create or replace procedure mangoIndexDelete (context_id in binary_integer, rid in VARCHAR2)
AS language C name "oraMangoIndexDelete" library bingolib
with context parameters(context, context_id,
rid, rid indicator short);
/
create or replace function mangoIndexStart (context_id in binary_integer,
oper in VARCHAR2, query in CLOB, strt in NUMBER, stop in NUMBER,
flags in binary_integer, params in VARCHAR2) return binary_integer
AS language C name "oraMangoIndexStart" library bingolib
with context parameters(context, context_id,
oper, oper indicator short,
query, query indicator short,
strt, strt indicator short,
stop, stop indicator short,
flags,
params, params indicator short);
/
create or replace function mangoIndexFetch (fetch_id in binary_integer,
maxnrows in BINARY_INTEGER, arr in out sys.ODCIRidList)
return binary_integer
AS language C name "oraMangoIndexFetch" library bingolib
with context parameters(context, fetch_id, maxnrows, arr, arr indicator short);
/
create or replace function mangoIndexSelectivity (context_id in binary_integer,
oper in VARCHAR2, query in CLOB, strt in NUMBER, stop in NUMBER,
flags in binary_integer, params in VARCHAR2) return NUMBER
AS language C name "oraMangoIndexSelectivity" library bingolib
with context parameters(context, context_id,
oper, oper indicator short,
query, query indicator short,
strt, strt indicator short,
stop, stop indicator short,
flags,
params, params indicator short,
return indicator short, return OCINumber);
/
create or replace procedure mangoIndexCost (context_id in binary_integer, sel in NUMBER, oper in VARCHAR2,
query in CLOB, strt in NUMBER, stop in NUMBER, flags in binary_integer,
params in VARCHAR2, iocost out binary_integer, cpucost out binary_integer)
AS language C name "oraMangoIndexCost" library bingolib
with context parameters(context, context_id,
sel, sel indicator short,
oper, oper indicator short,
query, query indicator short,
strt, strt indicator short,
stop, stop indicator short,
flags,
params, params indicator short,
iocost, cpucost);
/
create or replace procedure mangoIndexClose (fetch_id in binary_integer)
AS language C name "oraMangoIndexClose" library bingolib
with context parameters(context, fetch_id);
/
create or replace procedure mangoCollectStatistics (context_id in binary_integer)
AS language C name "oraMangoCollectStatistics" library bingolib
with context parameters(context, context_id);
/
create or replace procedure mangoAnalyzeMolecules(context_id in binary_integer)
as language C name "oraMangoAnalyzeMolecules" library bingolib
with context parameters (context, context_id);
/
create or replace function Molfile_clob (m in CLOB, options in VARCHAR2) return CLOB
AS language C name "oraMangoMolfile" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Molfile_blob (m in BLOB, options in VARCHAR2) return CLOB
AS language C name "oraMangoMolfile" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function CML_clob (m in CLOB) return CLOB AS language C name "oraMangoCML" library bingolib
with context parameters (context, m, m indicator short,
return indicator short, return OCILobLocator);
/
create or replace function CML_blob (m in BLOB) return CLOB
AS language C name "oraMangoCML" library bingolib
with context parameters (context, m, m indicator short,
return indicator short,
return OCILobLocator);
/
create or replace function SMILES_clob (m in CLOB, options in VARCHAR2) return VARCHAR2
AS language C name "oraMangoSMILES" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCIString);
/
create or replace function SMILES_blob (m in BLOB, options in VARCHAR2) return VARCHAR2
AS language C name "oraMangoSMILES" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCIString);
/
create or replace function InChI_clob (m in CLOB, options in VARCHAR2) return CLOB
AS language C name "oraMangoInchi" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function InChI_blob (m in BLOB, options in VARCHAR2) return CLOB
AS language C name "oraMangoInchi" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function InChIKey_clob (inchi in CLOB) return VARCHAR2
AS language C name "oraMangoInchiKey" library bingolib
with context parameters (context, inchi, inchi indicator short,
return indicator short, return OCIString);
/
create or replace function Fingerprint_clob (m in CLOB, options in VARCHAR2) return BLOB
AS language C name "oraMangoFingerprint" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function Fingerprint_blob (m in BLOB, options in VARCHAR2) return BLOB
AS language C name "oraMangoFingerprint" library bingolib
with context parameters (context, m, m indicator short, options, options indicator short,
return indicator short, return OCILobLocator);
/
create or replace function CANSMILES_clob (m in CLOB) return VARCHAR2
AS language C name "oraMangoCanonicalSMILES" library bingolib
with context parameters (context, m, m indicator short,
return indicator short, return OCIString);
/
create or replace function CANSMILES_blob (m in BLOB) return VARCHAR2
AS language C name "oraMangoCanonicalSMILES" library bingolib
with context parameters (context, m, m indicator short,
return indicator short, return OCIString);
/
create or replace function CheckMolecule (m in CLOB) return VARCHAR2
AS language C name "oraMangoCheckMolecule" library bingolib
with context parameters (context, m, m indicator short,
return indicator short, return OCIString);
/
grant execute on CheckMolecule to public;
/
create or replace procedure CompactMolecule2 (m in CLOB, res in BLOB, save_xyz in binary_integer)
AS language C name "oraMangoICM2" library bingolib
with context parameters (context, m, m indicator short,
res, res indicator short, save_xyz);
/
grant execute on CompactMolecule2 to public;
/
create or replace function CompactMolecule (m in CLOB, save_xyz in binary_integer)
return BLOB IS
lob BLOB;
BEGIN
IF m is null THEN
return NULL;
END IF;
dbms_lob.createtemporary(lob, TRUE, dbms_lob.call);
CompactMolecule2(m, lob, save_xyz);
return lob;
END CompactMolecule;
/
grant execute on CompactMolecule to public;
/
spool off; | the_stack |
CREATE DATABASE IF NOT EXISTS `blacklistmonitor` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `blacklistmonitor`;
DROP TABLE IF EXISTS `blockLists`;
CREATE TABLE IF NOT EXISTS `blockLists` (
`host` varchar(100) NOT NULL,
`monitorType` enum('ip','domain') NOT NULL,
`functionCall` enum('rbl') NOT NULL DEFAULT 'rbl',
`description` varchar(400) NOT NULL,
`website` varchar(500) NOT NULL,
`lastBlockReport` datetime NOT NULL,
`importance` enum('1','2','3') NOT NULL DEFAULT '2',
`isActive` enum('0','1') NOT NULL DEFAULT '1' COMMENT '0=inactive;1=active',
`blocksToday` int(11) NOT NULL DEFAULT '0',
`blocksYesterday` int(11) NOT NULL DEFAULT '0',
`cleanToday` int(11) NOT NULL DEFAULT '0',
`cleanYesterday` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `blockLists`
--
INSERT INTO `blockLists` (`host`, `monitorType`, `functionCall`, `description`, `website`, `lastBlockReport`, `importance`, `isActive`, `blocksToday`, `blocksYesterday`, `cleanToday`, `cleanYesterday`) VALUES
('0spam.fusionzero.com', 'ip', 'rbl', 'Hosts sending to spam traps', 'http://0spam.fusionzero.com', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('0spamurl.fusionzero.com', 'ip', 'rbl', 'IPs found in links', 'http://0spam.fusionzero.com/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('b.barracudacentral.org', 'ip', 'rbl', 'Barracuda spam filtering. One of the quicker reacting lists for spam and virus traffic coming from hosts.', 'http://www.barracudacentral.org', '0000-00-00 00:00:00', '3', '0', 0, 0, 0, 0),
('bl.blocklist.de', 'ip', 'rbl', 'Fail2ban reporting. SSH, mail, ftp, http, etc attacks.', 'http://www.blocklist.de/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('bl.mailspike.net', 'ip', 'rbl', 'Uses seed system to collect stats about IPs.', 'http://www.mailspike.net/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('bl.spamcannibal.org', 'ip', 'rbl', 'Seed system and complaint mails forwarded to them.', 'http://www.spamcannibal.org', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('bl.spamcop.net', 'ip', 'rbl', 'Automated listings from user submitted spam reports.', 'http://www.spamcop.net/', '0000-00-00 00:00:00', '3', '0', 0, 0, 0, 0),
('bl.spameatingmonkey.net', 'ip', 'rbl', 'Listing entered by list reported by trusted users and IPs sending mail to a spamtraps. IPs from spam traps are automatically expired after 7 days of inactivity.', 'http://spameatingmonkey.com/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('bl.tiopan.com', 'ip', 'rbl', 'Unknown - proprietary', 'http://www.tiopan.com/blacklist.php', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('blackholes.five-ten-sg.com', 'ip', 'rbl', 'List has shut down.', 'http://www.five-ten-sg.com/blackhole.php', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('blackholes.intersil.net', 'ip', 'rbl', 'List has shut down.', 'https://www.google.com/search?q=blackholes.intersil.net', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('bogons.cymru.com', 'ip', 'rbl', 'Filters IPs that aren''t allocated by ARIN. Legitimately acquired ips will never show up on this list. There''s no point of monitoring it if you have valid IPs.', 'https://www.team-cymru.org/Services/Bogons/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('cbl.abuseat.org', 'ip', 'rbl', 'Spam traps and administrator listings.', 'http://cbl.abuseat.org/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('cbl.anti-spam.org.cn', 'ip', 'rbl', 'Chinese Anti-Spam Alliance blacklist service', 'http://www.anti-spam.org.cn/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('combined.njabl.org', 'ip', 'rbl', 'List has shut down.', 'https://www.google.com/search?q=combined.njabl.org', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('db.wpbl.info', 'ip', 'rbl', 'Fully automated. IPs automatically removed after a time.', 'http://wpbl.info/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dbl.spamhaus.org', 'domain', 'rbl', 'This mostly automated blacklist is usually activated by mailing invalid seed email addresses that are operated by spamhaus. Your domain will usually be automatically removed from this list unless you continue to email their spam traps. Then they will escalate the issue to larger blocks.', 'http://www.spamhaus.org/dbl/', '0000-00-00 00:00:00', '3', '1', 0, 0, 0, 0),
('dbl.tiopan.com', 'domain', 'rbl', 'Unknown - proprietary', 'http://www.tiopan.com/blacklist.php', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl-1.uceprotect.net', 'ip', 'rbl', 'Spamtraps and trusted sources. Only lists single ips.', 'http://www.uceprotect.net/en/index.php', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl-2.uceprotect.net', 'ip', 'rbl', 'Spamtraps and trusted sources. Will list large blocks of IPs that are connected.', 'http://www.uceprotect.net/en/index.php', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl-3.uceprotect.net', 'ip', 'rbl', 'Spamtraps and trusted sources. Will list entire ASN''s.', 'http://www.uceprotect.net/en/index.php', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl.ahbl.org', 'ip', 'rbl', 'List of IP that spammers own and use in their UCE/UBE/spam. They have several ways of identifying the domains manual and automated.', 'http://ahbl.org/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl.inps.de', 'ip', 'rbl', 'IP has sent email to seed email addresses.', 'http://dnsbl.inps.de/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl.justspam.org', 'ip', 'rbl', 'Claims to list only the worst offenders.', 'http://www.justspam.org/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('dnsbl.sorbs.net', 'ip', 'rbl', 'Sorbs composite blocklist. Specializes in real time proxy and open relay checks.', 'http://www.sorbs.net/', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('dnsblchile.org', 'ip', 'rbl', 'RBL run from Chile. If you have a large user base from Chile it may benefit you to monitor this list. Otherwise probably not.', 'http://www.dnsblchile.org/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('dyna.spamrats.com', 'ip', 'rbl', 'RATS-Dyna is a collection of IP Addresses that have been found sending an abusive amount of connections, or trying too many invalid users at ISP and Telco''s mail servers, and are also known to conform to a naming convention that is indicative of a home connection or dynamic address space.', 'http://spamrats.com/rats-dyna.php', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('ip.v4bl.org', 'ip', 'rbl', 'They do not allow commercial use. Unfortunately you''ll have to check this one manually.', 'http://v4bl.org/', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('ips.backscatterer.org', 'ip', 'rbl', 'IPs that send misdirected bounces or autoresponders. Listing for 4 weeks.', 'http://www.backscatterer.org/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('ix.dnsbl.manitu.net', 'ip', 'rbl', 'IPs that send to their seed address system.', 'http://www.dnsbl.manitu.net/', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('l1.apews.org', 'domain', 'rbl', 'Apews automated system attempts to list domains of spammers before they start.', 'http://apews.org', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('l2.apews.org', 'ip', 'rbl', 'Apews automated system attempts to list ips of spammers before they start.', 'http://www.apews.org/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('list.anonwhois.net', 'domain', 'rbl', 'Checks for private registered domains. Private registration tends to count against delivery ability. There''s no point in checking if your own domains are privately registered. So this one has been disabled.', 'http://anonwhois.org/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('multi.surbl.org', 'domain', 'rbl', 'Combined block list of domains known to be used in either spamming, phishing, or malware.', 'http://www.surbl.org/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('multi.uribl.com', 'domain', 'rbl', 'Lists domains in emails.', 'http://www.uribl.com/index.shtml', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('no-more-funn.moensted.dk', 'ip', 'rbl', 'List has shut down.', 'http://moensted.dk/spam/no-more-funn/', '0000-00-00 00:00:00', '1', '1', 1, 0, 0, 0),
('noptr.spamrats.com', 'ip', 'rbl', 'RATS-NoPtr is a collection of IP Addresses that have been found sending an abusive amount of connections, or trying too many invalid users at ISP and Telco''s mail servers, and are also known to have no reverse DNS, a technique often used by bots and spammers. Email servers should always have reverse DNS entries.', 'http://spamrats.com/rats-noptr.php', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('psbl.surriel.com', 'ip', 'rbl', 'IPs pulled from their spam trap network. Fully automated.', 'http://psbl.org/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('rbl.efnetrbl.org', 'ip', 'rbl', 'TOR nodes, open proxies, and spamtraps.', 'http://rbl.efnetrbl.org/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('recent.spam.dnsbl.sorbs.net', 'ip', 'rbl', 'Sorbs recent list. IPs reported in the last 28 days.', 'http://www.sorbs.net/general/using.shtml', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('spam.abuse.ch', 'ip', 'rbl', 'IPs that send to spamtraps.', 'http://www.abuse.ch/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('spam.dnsbl.anonmails.de', 'ip', 'rbl', 'An anonymous mailbox provider. They don''t provide many details about their block list.', 'http://www.anonmails.de/dnsbl.php', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('spam.dnsbl.sorbs.net', 'ip', 'rbl', 'Listings for hosts that aren''t taking actions.', 'http://www.sorbs.net/general/using.shtml', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('spam.spamrats.com', 'ip', 'rbl', 'This is a list of IP Addresses that do not conform to more commonly known threats, and is usually because of compromised servers, hosts, or open relays. However, since there is little accompanying data this list COULD have false-positives, and we suggest that it only is used if you support a more aggressive stance.', 'http://spamrats.com/rats-spam.php', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('spamguard.leadmon.net', 'ip', 'rbl', 'Small personally run RBL. Not used by any known ISPs.', 'http://www.leadmon.net/SpamGuard/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('spamsources.fabel.dk', 'ip', 'rbl', 'Not much known. They only state that they will list your network when if send them spam.', 'http://www.spamsources.fabel.dk/', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('t1.dnsbl.net.au', 'ip', 'rbl', 'Appears to be shutdown.', 'http://dnsbl.net.au/', '0000-00-00 00:00:00', '1', '0', 0, 0, 0, 0),
('tor.dnsbl.sectoor.de', 'ip', 'rbl', '', '', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('torexit.dan.me.uk', 'ip', 'rbl', 'Contains all exit nodes on the TOR network.', 'https://www.dan.me.uk/dnsbl', '0000-00-00 00:00:00', '1', '1', 0, 0, 0, 0),
('truncate.gbudb.net', 'ip', 'rbl', 'Problem hosts as seen by Message Sniffer application', 'http://www.gbudb.com/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('ubl.unsubscore.com', 'ip', 'rbl', 'Lashback''s monitoring for senders failing to provide a working or not honoring an unsubscribe mechanism.', 'http://blacklist.lashback.com/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('urired.spameatingmonkey.net', 'domain', 'rbl', 'Domains found in unwanted emails and preemptive technology. Automatically expires after 30 days of inactivity.', 'http://spameatingmonkey.com/', '0000-00-00 00:00:00', '2', '1', 0, 0, 0, 0),
('virbl.dnsbl.bit.nl', 'ip', 'rbl', '', '', '0000-00-00 00:00:00', '2', '0', 0, 0, 0, 0),
('zen.spamhaus.org', 'ip', 'rbl', 'Composite host block list of all spamhaus ips.', 'http://www.spamhaus.org/zen/', '0000-00-00 00:00:00', '3', '1', 0, 0, 0, 0);
--
-- Table structure for table `monitorHistory`
--
DROP TABLE IF EXISTS `monitorHistory`;
CREATE TABLE IF NOT EXISTS `monitorHistory` (
`monitorTime` datetime NOT NULL,
`isBlocked` tinyint(1) NOT NULL DEFAULT '0',
`ipDomain` varchar(100) NOT NULL,
`rDNS` varchar(200) NOT NULL,
`status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `monitors`
--
DROP TABLE IF EXISTS `monitors`;
CREATE TABLE IF NOT EXISTS `monitors` (
`ipDomain` varchar(100) NOT NULL,
`isDomain` tinyint(1) NOT NULL DEFAULT '0',
`beenChecked` tinyint(1) NOT NULL DEFAULT '0',
`lastUpdate` datetime NOT NULL,
`isBlocked` tinyint(1) NOT NULL DEFAULT '0',
`lastStatusChanged` tinyint(1) NOT NULL DEFAULT '0',
`monitorGroupId` int(11) NOT NULL DEFAULT '0',
`keepOnUpdate` tinyint(1) NOT NULL DEFAULT '1',
`lastStatusChangeTime` datetime NOT NULL,
`rDNS` varchar(200) NOT NULL,
`status` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`username` varchar(100) NOT NULL,
`passwd` varchar(32) NOT NULL,
`apiKey` varchar(32) NOT NULL,
`lastUpdate` datetime NOT NULL,
`lastChecked` datetime NOT NULL,
`beenChecked` tinyint(1) NOT NULL DEFAULT '0',
`lastRunTime` int(11) NOT NULL DEFAULT '0',
`disableEmailNotices` tinyint(1) NOT NULL DEFAULT '0',
`twitterHandle` varchar(15) NOT NULL,
`checkFrequency` enum('1hour','2hour','8hour','daily','weekly') NOT NULL DEFAULT 'daily',
`noticeEmailAddresses` varchar(8000) NOT NULL,
`textMessageEmails` varchar(8000) NOT NULL,
`apiCallbackURL` varchar(2000) NOT NULL,
`ips` LONGTEXT NOT NULL,
`domains` LONGTEXT NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `users` (`username`, `passwd`, `apiKey`, `lastUpdate`, `lastChecked`, `beenChecked`, `lastRunTime`, `disableEmailNotices`, `twitterHandle`, `checkFrequency`, `noticeEmailAddresses`, `textMessageEmails`, `apiCallbackURL`, `ips`, `domains`) VALUES
('admin', '97bf34d31a8710e6b1649fd33357f783', '', '2015-06-02 16:37:02', '2015-06-02 16:22:55', 1, 4, 0, '', '2hour', '', '', '', '', '');
DROP TABLE IF EXISTS `monitorGroup`;
CREATE TABLE IF NOT EXISTS `monitorGroup` (
`id` int(11) NOT NULL,
`groupName` varchar(100) NOT NULL,
`ips` longtext NOT NULL,
`domains` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for table `blockLists`
--
ALTER TABLE `blockLists`
ADD PRIMARY KEY (`host`),
ADD KEY `monitorType` (`monitorType`),
ADD KEY `isActive` (`isActive`);
--
-- Indexes for table `monitorHistory`
--
ALTER TABLE `monitorHistory`
ADD KEY `monitorTime` (`monitorTime`),
ADD KEY `ipDomain` (`ipDomain`);
--
-- Indexes for table `monitors`
--
ALTER TABLE `monitors`
ADD PRIMARY KEY (`ipDomain`),
ADD KEY `beenChecked` (`beenChecked`),
ADD KEY `isBlocked` (`isBlocked`),
ADD KEY `lastUpdate` (`lastUpdate`),
ADD KEY `isDomain` (`isDomain`),
ADD KEY `monitorGroupId` (`monitorGroupId`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`username`);
--
-- Indexes for table `monitorGroup`
--
ALTER TABLE `monitorGroup`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `groupName` (`groupName`);
ALTER TABLE `monitorGroup`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; | the_stack |
-- 2021-07-07T08:58:48.660Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe', PrintName='Lieferantenfreigabe',Updated=TO_TIMESTAMP('2021-07-07 11:58:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579449 AND AD_Language='de_CH'
;
-- 2021-07-07T08:58:48.701Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579449,'de_CH')
;
-- 2021-07-07T08:58:52.622Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe', PrintName='Lieferantenfreigabe',Updated=TO_TIMESTAMP('2021-07-07 11:58:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579449 AND AD_Language='de_DE'
;
-- 2021-07-07T08:58:52.626Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579449,'de_DE')
;
-- 2021-07-07T08:58:52.639Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579449,'de_DE')
;
-- 2021-07-07T08:58:52.650Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='C_BP_SupplierApproval_ID', Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID=579449
;
-- 2021-07-07T08:58:52.653Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='C_BP_SupplierApproval_ID', Name='Lieferantenfreigabe', Description=NULL, Help=NULL, AD_Element_ID=579449 WHERE UPPER(ColumnName)='C_BP_SUPPLIERAPPROVAL_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-07-07T08:58:52.655Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='C_BP_SupplierApproval_ID', Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID=579449 AND IsCentrallyMaintained='Y'
;
-- 2021-07-07T08:58:52.658Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579449) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579449)
;
-- 2021-07-07T08:58:52.675Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Lieferantenfreigabe', Name='Lieferantenfreigabe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579449)
;
-- 2021-07-07T08:58:52.678Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579449
;
-- 2021-07-07T08:58:52.680Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID = 579449
;
-- 2021-07-07T08:58:52.682Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Lieferantenfreigabe', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579449
;
-- 2021-07-07T08:59:51.951Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe', PrintName='Lieferantenfreigabe',Updated=TO_TIMESTAMP('2021-07-07 11:59:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579452 AND AD_Language='de_CH'
;
-- 2021-07-07T08:59:51.956Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579452,'de_CH')
;
-- 2021-07-07T09:00:01.324Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe', PrintName='Lieferantenfreigabe',Updated=TO_TIMESTAMP('2021-07-07 12:00:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579452 AND AD_Language='de_DE'
;
-- 2021-07-07T09:00:01.327Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579452,'de_DE')
;
-- 2021-07-07T09:00:01.349Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579452,'de_DE')
;
-- 2021-07-07T09:00:01.351Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='SupplierApproval', Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID=579452
;
-- 2021-07-07T09:00:01.353Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval', Name='Lieferantenfreigabe', Description=NULL, Help=NULL, AD_Element_ID=579452 WHERE UPPER(ColumnName)='SUPPLIERAPPROVAL' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-07-07T09:00:01.356Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval', Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID=579452 AND IsCentrallyMaintained='Y'
;
-- 2021-07-07T09:00:01.358Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579452) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579452)
;
-- 2021-07-07T09:00:01.372Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Lieferantenfreigabe', Name='Lieferantenfreigabe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579452)
;
-- 2021-07-07T09:00:01.375Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579452
;
-- 2021-07-07T09:00:01.378Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Lieferantenfreigabe', Description=NULL, Help=NULL WHERE AD_Element_ID = 579452
;
-- 2021-07-07T09:00:01.380Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Lieferantenfreigabe', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579452
;
-- 2021-07-07T10:37:56.912Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='The partner {0} doesn''t have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 13:37:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-07T10:41:24.742Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} doesn''t have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 13:41:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545046
;
-- 2021-07-07T10:41:28.745Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} doesn''t have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 13:41:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545046
;
-- 2021-07-07T11:14:41.949Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgType='E',Updated=TO_TIMESTAMP('2021-07-07 14:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-07T11:14:56.796Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='The partner {0} doesn''t have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 14:14:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-07T12:49:03.595Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='The partner {0} doesn''t have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 15:49:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-07T12:49:12.869Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-07-07 15:49:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545046
;
-- 2021-07-07T12:49:19.715Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-07-07 15:49:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545046
;
-- 2021-07-07T12:51:59.228Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} does not have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 15:51:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545046
;
-- 2021-07-07T12:52:08.338Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} does not have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 15:52:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545046
;
-- 2021-07-07T12:52:14.594Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='The partner {0} does not have a supplier approval for the norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 15:52:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-07T13:31:26.523Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Der Geschäftspartner {0} hat keine Lieferantenfreigabe für die Norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 16:31:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545046
;
-- 2021-07-07T13:31:29.817Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Der Geschäftspartner {0} hat keine Lieferantenfreigabe für die Norm {1}.',Updated=TO_TIMESTAMP('2021-07-07 16:31:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545046
;
-- 2021-07-07T13:31:45.630Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} does not have a supplier approval for the norm {1}',Updated=TO_TIMESTAMP('2021-07-07 16:31:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=545046
;
-- 2021-07-07T13:31:53.121Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The partner {0} does not have a supplier approval for the norm {1}',Updated=TO_TIMESTAMP('2021-07-07 16:31:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=545046
;
-- 2021-07-07T13:32:53.936Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='The supplier approval of the business partner {0} for the norm {1} has the expiry date {2}.',Updated=TO_TIMESTAMP('2021-07-07 16:32:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545045
;
-- 2021-07-07T13:33:05.510Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Die Lieferantenfreigabe des Geschäftspartners {0} für die Norm {1} hat das Ablaufdatum {2}.',Updated=TO_TIMESTAMP('2021-07-07 16:33:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=545045
;
-- 2021-07-07T13:33:11.230Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Die Lieferantenfreigabe des Geschäftspartners {0} für die Norm {1} hat das Ablaufdatum {2}.',Updated=TO_TIMESTAMP('2021-07-07 16:33:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=545045
;
-- 2021-07-07T13:33:18.966Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The supplier approval of the business partner {0} for the norm {1} has the expiry date {2}.',Updated=TO_TIMESTAMP('2021-07-07 16:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=545045
;
-- 2021-07-07T13:33:34.407Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='The supplier approval of the business partner {0} for the norm {1} has the expiry date {2}.',Updated=TO_TIMESTAMP('2021-07-07 16:33:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=545045
;
-- 2021-07-07T13:35:07.484Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Name='Lieferantenfreigabe ändern',Updated=TO_TIMESTAMP('2021-07-07 16:35:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584855
;
-- 2021-07-07T13:35:10.465Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Description=NULL, Help=NULL, Name='Lieferantenfreigabe ändern',Updated=TO_TIMESTAMP('2021-07-07 16:35:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584855
;
-- 2021-07-07T13:35:10.454Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Name='Lieferantenfreigabe ändern',Updated=TO_TIMESTAMP('2021-07-07 16:35:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584855
;
-- 2021-07-07T13:36:30.659Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Description='You can use this process to update the duration and date of a business partner''s supplier approval.',Updated=TO_TIMESTAMP('2021-07-07 16:36:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584855
;
-- 2021-07-07T13:36:49.489Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Description='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.',Updated=TO_TIMESTAMP('2021-07-07 16:36:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584855
;
-- 2021-07-07T13:36:52.750Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Description='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.', Help=NULL, Name='Lieferantenfreigabe ändern',Updated=TO_TIMESTAMP('2021-07-07 16:36:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584855
;
-- 2021-07-07T13:36:52.735Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Description='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.',Updated=TO_TIMESTAMP('2021-07-07 16:36:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584855
;
-- 2021-07-07T13:37:11.644Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Description='You can use this process to update the duration and date of a business partner''s supplier approval.',Updated=TO_TIMESTAMP('2021-07-07 16:37:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584855
;
-- 2021-07-07T13:37:23.819Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Help='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.',Updated=TO_TIMESTAMP('2021-07-07 16:37:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584855
;
-- 2021-07-07T13:37:29.784Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Help='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.',Updated=TO_TIMESTAMP('2021-07-07 16:37:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Process_ID=584855
;
-- 2021-07-07T13:37:32.994Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Help='Mit diesem Prozess können Dauer und Datum der Lieferantenfreigabe eines Geschäftspartners aktualisiert werden.',Updated=TO_TIMESTAMP('2021-07-07 16:37:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Process_ID=584855
;
-- 2021-07-07T13:37:36.454Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Help='You can use this process to update the duration and date of a business partner''s supplier approval.',Updated=TO_TIMESTAMP('2021-07-07 16:37:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584855
;
-- 2021-07-07T13:38:18.250Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe Art', PrintName='Lieferantenfreigabe Art',Updated=TO_TIMESTAMP('2021-07-07 16:38:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579450 AND AD_Language='de_CH'
;
-- 2021-07-07T13:38:18.255Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579450,'de_CH')
;
-- 2021-07-07T13:38:22.348Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferantenfreigabe Art', PrintName='Lieferantenfreigabe Art',Updated=TO_TIMESTAMP('2021-07-07 16:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579450 AND AD_Language='de_DE'
;
-- 2021-07-07T13:38:22.351Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579450,'de_DE')
;
-- 2021-07-07T13:38:22.367Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579450,'de_DE')
;
-- 2021-07-07T13:38:22.369Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='SupplierApproval_Type', Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL WHERE AD_Element_ID=579450
;
-- 2021-07-07T13:38:22.371Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Type', Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL, AD_Element_ID=579450 WHERE UPPER(ColumnName)='SUPPLIERAPPROVAL_TYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-07-07T13:38:22.373Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Type', Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL WHERE AD_Element_ID=579450 AND IsCentrallyMaintained='Y'
;
-- 2021-07-07T13:38:22.375Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579450) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579450)
;
-- 2021-07-07T13:38:22.392Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Lieferantenfreigabe Art', Name='Lieferantenfreigabe Art' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579450)
;
-- 2021-07-07T13:38:22.395Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-07T13:38:22.398Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Lieferantenfreigabe Art', Description=NULL, Help=NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-07T13:38:22.400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Lieferantenfreigabe Art', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-07T13:40:10.523Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='Lieferantenfreigabe Norm',Updated=TO_TIMESTAMP('2021-07-07 16:40:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=546184
;
-- 2021-07-07T13:41:04.645Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET Name='Lieferantenfreigabe Norm',Updated=TO_TIMESTAMP('2021-07-07 16:41:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=586998
;
-- 2021-07-09T08:34:50.286Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Approved for', PrintName='Approved for',Updated=TO_TIMESTAMP('2021-07-09 11:34:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579450 AND AD_Language='en_US'
;
-- 2021-07-09T08:34:50.342Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579450,'en_US')
;
-- 2021-07-09T08:35:00.936Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Name='Freigabe für', PrintName='Freigabe für',Updated=TO_TIMESTAMP('2021-07-09 11:35:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579450 AND AD_Language='de_DE'
;
-- 2021-07-09T08:35:00.938Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579450,'de_DE')
;
-- 2021-07-09T08:35:00.949Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579450,'de_DE')
;
-- 2021-07-09T08:35:00.956Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='SupplierApproval_Type', Name='Freigabe für', Description=NULL, Help=NULL WHERE AD_Element_ID=579450
;
-- 2021-07-09T08:35:00.960Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Type', Name='Freigabe für', Description=NULL, Help=NULL, AD_Element_ID=579450 WHERE UPPER(ColumnName)='SUPPLIERAPPROVAL_TYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-07-09T08:35:00.975Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Type', Name='Freigabe für', Description=NULL, Help=NULL WHERE AD_Element_ID=579450 AND IsCentrallyMaintained='Y'
;
-- 2021-07-09T08:35:00.978Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Freigabe für', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579450) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579450)
;
-- 2021-07-09T08:35:01.029Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Freigabe für', Name='Freigabe für' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579450)
;
-- 2021-07-09T08:35:01.031Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Freigabe für', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-09T08:35:01.034Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Freigabe für', Description=NULL, Help=NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-09T08:35:01.036Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Freigabe für', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579450
;
-- 2021-07-09T08:35:05.966Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Name='Freigabe für', PrintName='Freigabe für',Updated=TO_TIMESTAMP('2021-07-09 11:35:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579450 AND AD_Language='de_CH'
;
-- 2021-07-09T08:35:05.967Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579450,'de_CH')
;
-- 2021-07-09T08:46:52.625Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Description='Products with the relevant standard may be purchased from the business partner.', IsActive='Y', Name='Sales',Updated=TO_TIMESTAMP('2021-07-09 11:46:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542699
;
-- 2021-07-09T08:47:05.018Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Description='Products with the relevant standard may be sold to the business partner.',Updated=TO_TIMESTAMP('2021-07-09 11:47:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542699
;
-- 2021-07-09T08:47:25.398Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Produkte mit der betreffenden Norm dürfen an den Geschäftspartner verkauft werden.',Updated=TO_TIMESTAMP('2021-07-09 11:47:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542699
;
-- 2021-07-09T08:47:44.511Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Produkte mit der betreffenden Norm dürfen an den Geschäftspartner verkauft werden.', Name='Verkauf',Updated=TO_TIMESTAMP('2021-07-09 11:47:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542699
;
-- 2021-07-09T08:48:01.556Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Name='Verkauf',Updated=TO_TIMESTAMP('2021-07-09 11:48:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542699
;
-- 2021-07-09T08:48:15.115Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Products with the relevant standard may be sold to the business partner.', Name='Sales',Updated=TO_TIMESTAMP('2021-07-09 11:48:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542699
;
-- 2021-07-09T08:48:22.896Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET IsActive='N',Updated=TO_TIMESTAMP('2021-07-09 11:48:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542699
;
-- 2021-07-09T08:48:58.051Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Description='Products with the relevant standard may be purchased from the business partner.', Name='Purchase',Updated=TO_TIMESTAMP('2021-07-09 11:48:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542700
;
-- 2021-07-09T08:49:27.325Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Products with the relevant standard may be purchased from the business partner.', Name='Purchase',Updated=TO_TIMESTAMP('2021-07-09 11:49:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:49:38.067Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Produkte mit der betreffenden Norm dürfen bei dem Geschäftspartner eingekauft werden.',Updated=TO_TIMESTAMP('2021-07-09 11:49:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:49:52.869Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET Description='Produkte mit der betreffenden Norm dürfen bei dem Geschäftspartner eingekauft werden.', Name='Einkauf',Updated=TO_TIMESTAMP('2021-07-09 11:49:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:49:59.112Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='Einkauf',Updated=TO_TIMESTAMP('2021-07-09 11:49:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:50:02.675Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-07-09 11:50:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:50:05.652Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-07-09 11:50:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542700
;
-- 2021-07-09T08:50:28.076Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('c_bp_supplierapproval','SupplierApproval_Type','VARCHAR(25)',null,'V')
;
-- 2021-07-09T09:05:21.651Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Freigabe Dauer', PrintName='Freigabe Dauer',Updated=TO_TIMESTAMP('2021-07-09 12:05:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579460 AND AD_Language='de_CH'
;
-- 2021-07-09T09:05:21.653Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579460,'de_CH')
;
-- 2021-07-09T09:05:30.781Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Freigabe Dauer', PrintName='Freigabe Dauer',Updated=TO_TIMESTAMP('2021-07-09 12:05:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579460 AND AD_Language='de_DE'
;
-- 2021-07-09T09:05:30.783Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579460,'de_DE')
;
-- 2021-07-09T09:05:30.793Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579460,'de_DE')
;
-- 2021-07-09T09:05:30.795Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='SupplierApproval_Parameter', Name='Freigabe Dauer', Description=NULL, Help=NULL WHERE AD_Element_ID=579460
;
-- 2021-07-09T09:05:30.797Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Parameter', Name='Freigabe Dauer', Description=NULL, Help=NULL, AD_Element_ID=579460 WHERE UPPER(ColumnName)='SUPPLIERAPPROVAL_PARAMETER' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-07-09T09:05:30.799Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='SupplierApproval_Parameter', Name='Freigabe Dauer', Description=NULL, Help=NULL WHERE AD_Element_ID=579460 AND IsCentrallyMaintained='Y'
;
-- 2021-07-09T09:05:30.800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Freigabe Dauer', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579460) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579460)
;
-- 2021-07-09T09:05:30.807Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Freigabe Dauer', Name='Freigabe Dauer' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579460)
;
-- 2021-07-09T09:05:30.810Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Freigabe Dauer', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579460
;
-- 2021-07-09T09:05:30.812Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Freigabe Dauer', Description=NULL, Help=NULL WHERE AD_Element_ID = 579460
;
-- 2021-07-09T09:05:30.814Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Freigabe Dauer', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579460
;
-- 2021-07-09T09:07:59.925Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Supplier Approval Duration', PrintName='Supplier Approval Duration',Updated=TO_TIMESTAMP('2021-07-09 12:07:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579460 AND AD_Language='en_US'
;
-- 2021-07-09T09:07:59.929Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579460,'en_US')
;
-- 2021-07-09T09:09:16.381Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Der Geschäftspartner {0} hat keine Lieferantenfreigabe für die Norm {1}.',Updated=TO_TIMESTAMP('2021-07-09 12:09:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545046
;
-- 2021-07-09T10:52:34.908Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Die Lieferantenfreigabe des Geschäftspartners {0} für die Norm {1} hat das Ablaufdatum {2}.',Updated=TO_TIMESTAMP('2021-07-09 13:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=545045
;
-- 2021-07-09T13:01:12.608Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='3 Jahre',Updated=TO_TIMESTAMP('2021-07-09 16:01:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542703
;
-- 2021-07-09T13:01:24.975Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='2 Jahre',Updated=TO_TIMESTAMP('2021-07-09 16:01:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542704
;
-- 2021-07-09T13:01:35.986Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='1 Jahr',Updated=TO_TIMESTAMP('2021-07-09 16:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542705
;
-- 2021-07-09T13:02:00.791Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='Einkauf',Updated=TO_TIMESTAMP('2021-07-09 16:02:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542700
;
-- 2021-07-09T13:02:06.010Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET IsActive='Y',Updated=TO_TIMESTAMP('2021-07-09 16:02:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542699
;
-- 2021-07-09T13:02:21.243Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='Verkauf',Updated=TO_TIMESTAMP('2021-07-09 16:02:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542699
; | the_stack |
-- 15.06.2016 17:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:02:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11024
;
-- 15.06.2016 17:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11026
;
-- 15.06.2016 17:03
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:03:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11009
;
-- 15.06.2016 17:03
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:03:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11443
;
-- 15.06.2016 17:03
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:03:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10999
;
-- 15.06.2016 17:03
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:03:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10994
;
-- 15.06.2016 17:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:04:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10970
;
-- 15.06.2016 17:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12725
;
-- 15.06.2016 17:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:04:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12736
;
-- 15.06.2016 17:05
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:05:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11059
;
-- 15.06.2016 17:05
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:05:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11041
;
-- 15.06.2016 17:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:07:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12025
;
-- 15.06.2016 17:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:07:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12046
;
-- 15.06.2016 17:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:07:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12045
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12028
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12027
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12026
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11978
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11997
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11984
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11979
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12054
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:08:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12041
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:08:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12040
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12050
;
-- 15.06.2016 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:08:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12053
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12013
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12005
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12009
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12023
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12012
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12021
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12010
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2016-06-15 17:09:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=12042
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11733
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11715
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11735
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11717
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11718
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11728
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11730
;
-- 15.06.2016 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11726
;
-- 15.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11693
;
-- 15.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:10:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11688
;
-- 15.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11704
;
-- 15.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:10:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11691
;
-- 15.06.2016 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2016-06-15 17:10:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11700
; | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for php41_auth
-- ----------------------------
DROP TABLE IF EXISTS `php41_auth`;
CREATE TABLE `php41_auth` (
`auth_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`auth_name` varchar(20) NOT NULL COMMENT '名称',
`auth_pid` smallint(6) unsigned NOT NULL COMMENT '父id',
`auth_c` varchar(32) NOT NULL DEFAULT '' COMMENT '模块',
`auth_a` varchar(32) NOT NULL DEFAULT '' COMMENT '操作方法',
`auth_path` varchar(32) NOT NULL DEFAULT '' COMMENT '全路径',
`auth_level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '基别',
PRIMARY KEY (`auth_id`)
) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_duanzi
-- ----------------------------
DROP TABLE IF EXISTS `php41_duanzi`;
CREATE TABLE `php41_duanzi` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`add_time` int(11) unsigned NOT NULL DEFAULT '0',
`comment` text,
`oo` int(4) unsigned NOT NULL DEFAULT '0',
`xx` int(4) unsigned NOT NULL DEFAULT '0',
`author` varchar(25) NOT NULL DEFAULT '',
`is_show` enum('展示','不展示') DEFAULT '展示' COMMENT '是否显示',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=85 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_goods
-- ----------------------------
DROP TABLE IF EXISTS `php41_goods`;
CREATE TABLE `php41_goods` (
`goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`goods_name` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '名称',
`goods_number` smallint(6) NOT NULL DEFAULT '1' COMMENT '浏览数',
`goods_small_logo` char(100) CHARACTER SET utf8 NOT NULL DEFAULT './Home/Public/img/gopher_default.jpg' COMMENT '封面图',
`is_hot` enum('热销','不热销') CHARACTER SET utf8 NOT NULL DEFAULT '不热销' COMMENT '热销与否',
`is_new` enum('新品','不新品') CHARACTER SET utf8 NOT NULL DEFAULT '不新品' COMMENT '新品与否',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`upd_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
`is_del` enum('删除','不删除') CHARACTER SET utf8 NOT NULL DEFAULT '不删除' COMMENT '是否删除',
`author` varchar(32) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '作者',
`keywords` varchar(300) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '关键字',
`description` varchar(500) DEFAULT NULL,
`cate` char(32) CHARACTER SET utf8 NOT NULL DEFAULT 'Go语言' COMMENT '分类 默认Go语言',
`cat_id` int(2) unsigned NOT NULL DEFAULT '1' COMMENT '展示形式 默认1',
`origin_author` varchar(32) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '原始作者',
`origin_url` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '原始url',
`user_id` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '用户id',
`city` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '未知' COMMENT '城市',
PRIMARY KEY (`goods_id`),
KEY `add_time` (`add_time`),
KEY `uid_gnumber` (`user_id`,`goods_id`),
KEY `uid` (`user_id`),
KEY `gid_cate_gnum` (`goods_id`,`goods_number`,`cate`),
KEY `cate_gid` (`cate`,`goods_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4124 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for php41_goods_introduce
-- ----------------------------
DROP TABLE IF EXISTS `php41_goods_introduce`;
CREATE TABLE `php41_goods_introduce` (
`goods_id` int(10) DEFAULT NULL,
`goods_introduce` mediumtext,
KEY `goods_id` (`goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for php41_goods_pics
-- ----------------------------
DROP TABLE IF EXISTS `php41_goods_pics`;
CREATE TABLE `php41_goods_pics` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`goods_id` int(10) unsigned NOT NULL COMMENT '商品',
`pics_big` char(100) NOT NULL DEFAULT '' COMMENT '相册原图',
`pics_small` char(100) NOT NULL DEFAULT '' COMMENT '相册缩略图',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品相册表';
-- ----------------------------
-- Table structure for php41_manager
-- ----------------------------
DROP TABLE IF EXISTS `php41_manager`;
CREATE TABLE `php41_manager` (
`mg_id` int(11) NOT NULL AUTO_INCREMENT,
`mg_name` varchar(32) NOT NULL,
`mg_pwd` varchar(32) NOT NULL,
`mg_time` int(10) unsigned NOT NULL COMMENT '时间',
`mg_role_id` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '角色id',
PRIMARY KEY (`mg_id`),
UNIQUE KEY `mg_name` (`mg_name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_ooxx
-- ----------------------------
DROP TABLE IF EXISTS `php41_ooxx`;
CREATE TABLE `php41_ooxx` (
`id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`target_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '父id',
`target_type` tinyint(4) DEFAULT '1' COMMENT '1:note',
`msg` mediumtext,
`like_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '赞',
`unlike_count` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '踩',
`from_user` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '来自谁',
`to_user` int(11) NOT NULL DEFAULT '0' COMMENT '发送给谁',
`parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '上级id,子评论才有',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=342 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for php41_phonecode
-- ----------------------------
DROP TABLE IF EXISTS `php41_phone_code`;
CREATE TABLE `php41_phone_code` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`phone_num` varchar(11) NOT NULL DEFAULT '',
`code` int(4) unsigned NOT NULL DEFAULT '0',
`result` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=207 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_pic
-- ----------------------------
DROP TABLE IF EXISTS `php41_pic`;
CREATE TABLE `php41_pic` (
`id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`author` varchar(225) NOT NULL DEFAULT 'Dee' COMMENT '用户名',
`url` longtext COMMENT 'url',
`oo` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '赞',
`xx` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '踩',
`add_time` int(10) unsigned NOT NULL DEFAULT '1510000000' COMMENT '添加时间',
`type` enum('jpg','gif') DEFAULT 'jpg' COMMENT '图片类型',
`small_pic` text,
`is_show` enum('不展示','展示') DEFAULT '不展示',
`tag` char(10) NOT NULL DEFAULT '无聊图',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=163 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_project
-- ----------------------------
DROP TABLE IF EXISTS `php41_project`;
CREATE TABLE `php41_project` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '名称',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
`is_del` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除',
`creator_id` int(10) NOT NULL DEFAULT '0' COMMENT '作者',
`desc` varchar(300) NOT NULL DEFAULT '' COMMENT '描述',
`origin_url` varchar(255) NOT NULL DEFAULT '' COMMENT '原始url',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_reply
-- ----------------------------
DROP TABLE IF EXISTS `php41_reply`;
CREATE TABLE `php41_reply` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ooxx_id` int(10) unsigned NOT NULL DEFAULT '0',
`uid` int(10) unsigned NOT NULL DEFAULT '0',
`comment` text,
`com_time` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_role
-- ----------------------------
DROP TABLE IF EXISTS `php41_role`;
CREATE TABLE `php41_role` (
`role_id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`role_name` varchar(20) NOT NULL COMMENT '角色名称',
`role_auth_ids` varchar(128) NOT NULL DEFAULT '' COMMENT '权限ids,1,2,5',
`role_auth_ac` text COMMENT '模块-操作',
PRIMARY KEY (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_tabs
-- ----------------------------
DROP TABLE IF EXISTS `php41_tabs`;
CREATE TABLE `php41_tabs` (
`id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`parent_id` int(2) unsigned NOT NULL DEFAULT '0',
`cate` varchar(32) NOT NULL COMMENT '用户名',
`lv` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_type
-- ----------------------------
DROP TABLE IF EXISTS `php41_type`;
CREATE TABLE `php41_type` (
`type_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
`type_name` varchar(32) NOT NULL COMMENT '类型名称',
PRIMARY KEY (`type_id`)
) ENGINE=MyISAM AUTO_INCREMENT=63 DEFAULT CHARSET=utf8 COMMENT='商品类型表';
-- ----------------------------
-- Table structure for php41_url
-- ----------------------------
DROP TABLE IF EXISTS `php41_url`;
CREATE TABLE `php41_url` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`url` varchar(100) NOT NULL DEFAULT '' COMMENT 'url',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '标题',
`desc` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`add_time` int(11) NOT NULL DEFAULT '0' COMMENT '时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for php41_users
-- ----------------------------
DROP TABLE IF EXISTS `php41_users`;
CREATE TABLE `php41_users` (
`user_id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL DEFAULT '' COMMENT '昵称',
`tel` varchar(20) NOT NULL DEFAULT '',
`password` varchar(100) NOT NULL,
`tag_list` text,
`head_img` varchar(255) NOT NULL DEFAULT './Common/Uploads/2018-08-07/5b690555b0a58.png',
`position` varchar(25) NOT NULL DEFAULT '程序猿',
`company` varchar(25) NOT NULL DEFAULT '',
`self_intro` varchar(255) NOT NULL DEFAULT '爱编程,爱Golang!',
`homepage` varchar(255) NOT NULL DEFAULT '',
`t_head_img` varchar(255) NOT NULL DEFAULT './Common/Uploads/2018-08-07/t_5b690555b0a58.png',
PRIMARY KEY (`user_id`),
UNIQUE KEY `unique_phone` (`tel`)
) ENGINE=MyISAM AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1; | the_stack |
-- Procrastinate Schema
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
-- Enums
CREATE TYPE procrastinate_job_status AS ENUM (
'todo', -- The job is queued
'doing', -- The job has been fetched by a worker
'succeeded', -- The job ended successfully
'failed' -- The job ended with an error
);
CREATE TYPE procrastinate_job_event_type AS ENUM (
'deferred', -- Job created, in todo
'started', -- todo -> doing
'deferred_for_retry', -- doing -> todo
'failed', -- doing -> failed
'succeeded', -- doing -> succeeded
'cancelled', -- todo -> failed or succeeded
'scheduled' -- not an event transition, but recording when a task is scheduled for
);
-- Tables
CREATE TABLE procrastinate_jobs (
id bigserial PRIMARY KEY,
queue_name character varying(128) NOT NULL,
task_name character varying(128) NOT NULL,
lock text,
queueing_lock text,
args jsonb DEFAULT '{}' NOT NULL,
status procrastinate_job_status DEFAULT 'todo'::procrastinate_job_status NOT NULL,
scheduled_at timestamp with time zone NULL,
attempts integer DEFAULT 0 NOT NULL
);
CREATE TABLE procrastinate_periodic_defers (
id bigserial PRIMARY KEY,
task_name character varying(128) NOT NULL,
defer_timestamp bigint,
job_id bigint REFERENCES procrastinate_jobs(id) NULL,
queue_name character varying(128) NULL,
periodic_id character varying(128) NOT NULL DEFAULT '',
CONSTRAINT procrastinate_periodic_defers_unique UNIQUE (task_name, periodic_id, defer_timestamp)
);
CREATE TABLE procrastinate_events (
id BIGSERIAL PRIMARY KEY,
job_id integer NOT NULL REFERENCES procrastinate_jobs ON DELETE CASCADE,
type procrastinate_job_event_type,
at timestamp with time zone DEFAULT NOW() NULL
);
-- Contraints & Indices
-- this prevents from having several jobs with the same queueing lock in the "todo" state
CREATE UNIQUE INDEX procrastinate_jobs_queueing_lock_idx ON procrastinate_jobs (queueing_lock) WHERE status = 'todo';
-- this prevents from having several jobs with the same lock in the "doing" state
CREATE UNIQUE INDEX procrastinate_jobs_lock_idx ON procrastinate_jobs (lock) WHERE status = 'doing';
CREATE INDEX procrastinate_jobs_queue_name_idx ON procrastinate_jobs(queue_name);
CREATE INDEX procrastinate_jobs_id_lock_idx ON procrastinate_jobs (id, lock) WHERE status = ANY (ARRAY['todo'::procrastinate_job_status, 'doing'::procrastinate_job_status]);
CREATE INDEX procrastinate_events_job_id_fkey ON procrastinate_events(job_id);
CREATE INDEX procrastinate_periodic_defers_job_id_fkey ON procrastinate_periodic_defers(job_id);
-- Functions
CREATE FUNCTION procrastinate_defer_job(
queue_name character varying,
task_name character varying,
lock text,
queueing_lock text,
args jsonb,
scheduled_at timestamp with time zone
) RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
job_id bigint;
BEGIN
INSERT INTO procrastinate_jobs (queue_name, task_name, lock, queueing_lock, args, scheduled_at)
VALUES (queue_name, task_name, lock, queueing_lock, args, scheduled_at)
RETURNING id INTO job_id;
RETURN job_id;
END;
$$;
CREATE FUNCTION procrastinate_defer_periodic_job(
_queue_name character varying,
_lock character varying,
_queueing_lock character varying,
_task_name character varying,
_periodic_id character varying,
_defer_timestamp bigint,
_args jsonb
) RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
_job_id bigint;
_defer_id bigint;
BEGIN
INSERT
INTO procrastinate_periodic_defers (task_name, periodic_id, defer_timestamp)
VALUES (_task_name, _periodic_id, _defer_timestamp)
ON CONFLICT DO NOTHING
RETURNING id into _defer_id;
IF _defer_id IS NULL THEN
RETURN NULL;
END IF;
UPDATE procrastinate_periodic_defers
SET job_id = procrastinate_defer_job(
_queue_name,
_task_name,
_lock,
_queueing_lock,
_args,
NULL
)
WHERE id = _defer_id
RETURNING job_id INTO _job_id;
DELETE
FROM procrastinate_periodic_defers
USING (
SELECT id
FROM procrastinate_periodic_defers
WHERE procrastinate_periodic_defers.task_name = _task_name
AND procrastinate_periodic_defers.periodic_id = _periodic_id
AND procrastinate_periodic_defers.defer_timestamp < _defer_timestamp
ORDER BY id
FOR UPDATE
) to_delete
WHERE procrastinate_periodic_defers.id = to_delete.id;
RETURN _job_id;
END;
$$;
CREATE FUNCTION procrastinate_fetch_job(target_queue_names character varying[]) RETURNS procrastinate_jobs
LANGUAGE plpgsql
AS $$
DECLARE
found_jobs procrastinate_jobs;
BEGIN
WITH candidate AS (
SELECT jobs.*
FROM procrastinate_jobs AS jobs
WHERE
-- reject the job if its lock has earlier jobs
NOT EXISTS (
SELECT 1
FROM procrastinate_jobs AS earlier_jobs
WHERE
jobs.lock IS NOT NULL
AND earlier_jobs.lock = jobs.lock
AND earlier_jobs.status IN ('todo', 'doing')
AND earlier_jobs.id < jobs.id)
AND jobs.status = 'todo'
AND (target_queue_names IS NULL OR jobs.queue_name = ANY( target_queue_names ))
AND (jobs.scheduled_at IS NULL OR jobs.scheduled_at <= now())
ORDER BY jobs.id ASC LIMIT 1
FOR UPDATE OF jobs SKIP LOCKED
)
UPDATE procrastinate_jobs
SET status = 'doing'
FROM candidate
WHERE procrastinate_jobs.id = candidate.id
RETURNING procrastinate_jobs.* INTO found_jobs;
RETURN found_jobs;
END;
$$;
-- procrastinate_finish_job
-- the next_scheduled_at argument is kept for compatibility reasons, it is to be
-- removed after 1.0.0 is released
CREATE FUNCTION procrastinate_finish_job(job_id integer, end_status procrastinate_job_status, next_scheduled_at timestamp with time zone, delete_job boolean) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
_job_id bigint;
BEGIN
IF end_status NOT IN ('succeeded', 'failed') THEN
RAISE 'End status should be either "succeeded" or "failed" (job id: %)', job_id;
END IF;
IF delete_job THEN
DELETE FROM procrastinate_jobs
WHERE id = job_id AND status IN ('todo', 'doing')
RETURNING id INTO _job_id;
ELSE
UPDATE procrastinate_jobs
SET status = end_status,
attempts =
CASE
WHEN status = 'doing' THEN attempts + 1
ELSE attempts
END
WHERE id = job_id AND status IN ('todo', 'doing')
RETURNING id INTO _job_id;
END IF;
IF _job_id IS NULL THEN
RAISE 'Job was not found or not in "doing" or "todo" status (job id: %)', job_id;
END IF;
END;
$$;
CREATE FUNCTION procrastinate_retry_job(job_id integer, retry_at timestamp with time zone) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
_job_id bigint;
BEGIN
UPDATE procrastinate_jobs
SET status = 'todo',
attempts = attempts + 1,
scheduled_at = retry_at
WHERE id = job_id AND status = 'doing'
RETURNING id INTO _job_id;
IF _job_id IS NULL THEN
RAISE 'Job was not found or not in "doing" status (job id: %)', job_id;
END IF;
END;
$$;
CREATE FUNCTION procrastinate_notify_queue() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
PERFORM pg_notify('procrastinate_queue#' || NEW.queue_name, NEW.task_name);
PERFORM pg_notify('procrastinate_any_queue', NEW.task_name);
RETURN NEW;
END;
$$;
CREATE FUNCTION procrastinate_trigger_status_events_procedure_insert() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
INSERT INTO procrastinate_events(job_id, type)
VALUES (NEW.id, 'deferred'::procrastinate_job_event_type);
RETURN NEW;
END;
$$;
CREATE FUNCTION procrastinate_trigger_status_events_procedure_update() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
WITH t AS (
SELECT CASE
WHEN OLD.status = 'todo'::procrastinate_job_status
AND NEW.status = 'doing'::procrastinate_job_status
THEN 'started'::procrastinate_job_event_type
WHEN OLD.status = 'doing'::procrastinate_job_status
AND NEW.status = 'todo'::procrastinate_job_status
THEN 'deferred_for_retry'::procrastinate_job_event_type
WHEN OLD.status = 'doing'::procrastinate_job_status
AND NEW.status = 'failed'::procrastinate_job_status
THEN 'failed'::procrastinate_job_event_type
WHEN OLD.status = 'doing'::procrastinate_job_status
AND NEW.status = 'succeeded'::procrastinate_job_status
THEN 'succeeded'::procrastinate_job_event_type
WHEN OLD.status = 'todo'::procrastinate_job_status
AND (
NEW.status = 'failed'::procrastinate_job_status
OR NEW.status = 'succeeded'::procrastinate_job_status
)
THEN 'cancelled'::procrastinate_job_event_type
ELSE NULL
END as event_type
)
INSERT INTO procrastinate_events(job_id, type)
SELECT NEW.id, t.event_type
FROM t
WHERE t.event_type IS NOT NULL;
RETURN NEW;
END;
$$;
CREATE FUNCTION procrastinate_trigger_scheduled_events_procedure() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
INSERT INTO procrastinate_events(job_id, type, at)
VALUES (NEW.id, 'scheduled'::procrastinate_job_event_type, NEW.scheduled_at);
RETURN NEW;
END;
$$;
CREATE FUNCTION procrastinate_unlink_periodic_defers() RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
UPDATE procrastinate_periodic_defers
SET job_id = NULL
WHERE job_id = OLD.id;
RETURN OLD;
END;
$$;
-- Triggers
CREATE TRIGGER procrastinate_jobs_notify_queue
AFTER INSERT ON procrastinate_jobs
FOR EACH ROW WHEN ((new.status = 'todo'::procrastinate_job_status))
EXECUTE PROCEDURE procrastinate_notify_queue();
CREATE TRIGGER procrastinate_trigger_status_events_update
AFTER UPDATE OF status ON procrastinate_jobs
FOR EACH ROW
EXECUTE PROCEDURE procrastinate_trigger_status_events_procedure_update();
CREATE TRIGGER procrastinate_trigger_status_events_insert
AFTER INSERT ON procrastinate_jobs
FOR EACH ROW WHEN ((new.status = 'todo'::procrastinate_job_status))
EXECUTE PROCEDURE procrastinate_trigger_status_events_procedure_insert();
CREATE TRIGGER procrastinate_trigger_scheduled_events
AFTER UPDATE OR INSERT ON procrastinate_jobs
FOR EACH ROW WHEN ((new.scheduled_at IS NOT NULL AND new.status = 'todo'::procrastinate_job_status))
EXECUTE PROCEDURE procrastinate_trigger_scheduled_events_procedure();
CREATE TRIGGER procrastinate_trigger_delete_jobs
BEFORE DELETE ON procrastinate_jobs
FOR EACH ROW EXECUTE PROCEDURE procrastinate_unlink_periodic_defers();
-- Old versions of functions, for backwards compatibility (to be removed
-- after 1.0.0)
CREATE FUNCTION procrastinate_finish_job(job_id integer, end_status procrastinate_job_status, next_scheduled_at timestamp with time zone) RETURNS void
LANGUAGE plpgsql
AS $$
BEGIN
UPDATE procrastinate_jobs
SET status = end_status,
attempts = attempts + 1,
scheduled_at = COALESCE(next_scheduled_at, scheduled_at)
WHERE id = job_id;
END;
$$;
CREATE FUNCTION procrastinate_finish_job(job_id integer, end_status procrastinate_job_status) RETURNS void
LANGUAGE plpgsql
AS $$
BEGIN
UPDATE procrastinate_jobs
SET status = end_status,
attempts = attempts + 1
WHERE id = job_id;
END;
$$;
CREATE FUNCTION procrastinate_defer_periodic_job(
_queue_name character varying,
_lock character varying,
_queueing_lock character varying,
_task_name character varying,
_defer_timestamp bigint
) RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
_job_id bigint;
_defer_id bigint;
BEGIN
INSERT
INTO procrastinate_periodic_defers (task_name, queue_name, defer_timestamp)
VALUES (_task_name, _queue_name, _defer_timestamp)
ON CONFLICT DO NOTHING
RETURNING id into _defer_id;
IF _defer_id IS NULL THEN
RETURN NULL;
END IF;
UPDATE procrastinate_periodic_defers
SET job_id = procrastinate_defer_job(
_queue_name,
_task_name,
_lock,
_queueing_lock,
('{"timestamp": ' || _defer_timestamp || '}')::jsonb,
NULL
)
WHERE id = _defer_id
RETURNING job_id INTO _job_id;
DELETE
FROM procrastinate_periodic_defers
USING (
SELECT id
FROM procrastinate_periodic_defers
WHERE procrastinate_periodic_defers.task_name = _task_name
AND procrastinate_periodic_defers.queue_name = _queue_name
AND procrastinate_periodic_defers.defer_timestamp < _defer_timestamp
ORDER BY id
FOR UPDATE
) to_delete
WHERE procrastinate_periodic_defers.id = to_delete.id;
RETURN _job_id;
END;
$$; | the_stack |
SET FOREIGN_KEY_CHECKS=0;
DROP TABLE IF EXISTS `linkis_ps_configuration_config_key`;
CREATE TABLE `linkis_ps_configuration_config_key`(
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key` varchar(50) DEFAULT NULL COMMENT 'Set key, e.g. spark.executor.instances',
`description` varchar(200) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`default_value` varchar(200) DEFAULT NULL COMMENT 'Adopted when user does not set key',
`validate_type` varchar(50) DEFAULT NULL COMMENT 'Validate type, one of the following: None, NumInterval, FloatInterval, Include, Regex, OPF, Custom Rules',
`validate_range` varchar(50) DEFAULT NULL COMMENT 'Validate range',
`engine_conn_type` varchar(50) DEFAULT NULL COMMENT 'engine type,such as spark,hive etc',
`is_hidden` tinyint(1) DEFAULT NULL COMMENT 'Whether it is hidden from user. If set to 1(true), then user cannot modify, however, it could still be used in back-end',
`is_advanced` tinyint(1) DEFAULT NULL COMMENT 'Whether it is an advanced parameter. If set to 1(true), parameters would be displayed only when user choose to do so',
`level` tinyint(1) DEFAULT NULL COMMENT 'Basis for displaying sorting in the front-end. Higher the level is, higher the rank the parameter gets',
`treeName` varchar(20) DEFAULT NULL COMMENT 'Reserved field, representing the subdirectory of engineType',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_configuration_key_engine_relation`;
CREATE TABLE `linkis_ps_configuration_key_engine_relation`(
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`config_key_id` bigint(20) NOT NULL COMMENT 'config key id',
`engine_type_label_id` bigint(20) NOT NULL COMMENT 'engine label id',
PRIMARY KEY (`id`),
UNIQUE INDEX(`config_key_id`, `engine_type_label_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_configuration_config_value`;
CREATE TABLE linkis_ps_configuration_config_value(
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`config_key_id` bigint(20),
`config_value` varchar(200),
`config_label_id`int(20),
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE INDEX(`config_key_id`, `config_label_id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_configuration_category`;
CREATE TABLE `linkis_ps_configuration_category` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_id` int(20) NOT NULL,
`level` int(20) NOT NULL,
`description` varchar(200),
`tag` varchar(200),
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE INDEX(`label_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- New linkis job
--
DROP TABLE IF EXISTS `linkis_ps_job_history_group_history`;
CREATE TABLE `linkis_ps_job_history_group_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key, auto increment',
`job_req_id` varchar(64) DEFAULT NULL COMMENT 'job execId',
`submit_user` varchar(50) DEFAULT NULL COMMENT 'who submitted this Job',
`execute_user` varchar(50) DEFAULT NULL COMMENT 'who actually executed this Job',
`source` text DEFAULT NULL COMMENT 'job source',
`labels` text DEFAULT NULL COMMENT 'job labels',
`params` text DEFAULT NULL COMMENT 'job params',
`progress` varchar(32) DEFAULT NULL COMMENT 'Job execution progress',
`status` varchar(50) DEFAULT NULL COMMENT 'Script execution status, must be one of the following: Inited, WaitForRetry, Scheduled, Running, Succeed, Failed, Cancelled, Timeout',
`log_path` varchar(200) DEFAULT NULL COMMENT 'File path of the job log',
`error_code` int DEFAULT NULL COMMENT 'Error code. Generated when the execution of the script fails',
`error_desc` varchar(1000) DEFAULT NULL COMMENT 'Execution description. Generated when the execution of script fails',
`created_time` datetime(3) DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'Creation time',
`updated_time` datetime(3) DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'Update time',
`instances` varchar(250) DEFAULT NULL COMMENT 'Entrance instances',
`metrics` text DEFAULT NULL COMMENT 'Job Metrics',
`engine_type` varchar(32) DEFAULT NULL COMMENT 'Engine type',
`execution_code` text DEFAULT NULL COMMENT 'Job origin code or code path',
`result_location` varchar(500) DEFAULT NULL COMMENT 'File path of the resultsets',
PRIMARY KEY (`id`),
KEY `created_time` (`created_time`),
KEY `submit_user` (`submit_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_job_history_detail`;
CREATE TABLE `linkis_ps_job_history_detail` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key, auto increment',
`job_history_id` bigint(20) NOT NULL COMMENT 'ID of JobHistory',
`result_location` varchar(500) DEFAULT NULL COMMENT 'File path of the resultsets',
`execution_content` text DEFAULT NULL COMMENT 'The script code or other execution content executed by this Job',
`result_array_size` int(4) DEFAULT 0 COMMENT 'size of result array',
`job_group_info` text DEFAULT NULL COMMENT 'Job group info/path',
`created_time` datetime(3) DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'Creation time',
`updated_time` datetime(3) DEFAULT CURRENT_TIMESTAMP(3) COMMENT 'Update time',
`status` varchar(32) DEFAULT NULL COMMENT 'status',
`priority` int(4) DEFAULT 0 COMMENT 'order of subjob',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_common_lock`;
CREATE TABLE `linkis_ps_common_lock` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lock_object` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`time_out` longtext COLLATE utf8_bin,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `lock_object` (`lock_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for linkis_ps_udf_manager
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_udf_manager`;
CREATE TABLE `linkis_ps_udf_manager` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_name` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for linkis_ps_udf_shared_group
-- An entry would be added when a user share a function to other user group
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_udf_shared_group`;
CREATE TABLE `linkis_ps_udf_shared_group` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`udf_id` bigint(20) NOT NULL,
`shared_group` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `linkis_ps_udf_shared_info`;
CREATE TABLE `linkis_ps_udf_shared_info`
(
`id` bigint(20) PRIMARY KEY NOT NULL AUTO_INCREMENT,
`udf_id` bigint(20) NOT NULL,
`user_name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for linkis_ps_udf_tree
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_udf_tree`;
CREATE TABLE `linkis_ps_udf_tree` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent` bigint(20) NOT NULL,
`name` varchar(100) DEFAULT NULL COMMENT 'Category name of the function. It would be displayed in the front-end',
`user_name` varchar(50) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`category` varchar(50) DEFAULT NULL COMMENT 'Used to distinguish between udf and function',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for linkis_ps_udf_user_load
-- Used to store the function a user selects in the front-end
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_udf_user_load`;
CREATE TABLE `linkis_ps_udf_user_load` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`udf_id` bigint(20) NOT NULL,
`user_name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `linkis_ps_udf_baseinfo`;
CREATE TABLE `linkis_ps_udf_baseinfo` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`create_user` varchar(50) NOT NULL,
`udf_name` varchar(255) NOT NULL,
`udf_type` int(11) DEFAULT '0',
`tree_id` bigint(20) NOT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`sys` varchar(255) NOT NULL DEFAULT 'ide' COMMENT 'source system',
`cluster_name` varchar(255) NOT NULL,
`is_expire` bit(1) DEFAULT NULL,
`is_shared` bit(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- bdp_easy_ide.linkis_ps_udf_version definition
DROP TABLE IF EXISTS `linkis_ps_udf_version`;
CREATE TABLE `linkis_ps_udf_version` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`udf_id` bigint(20) NOT NULL,
`path` varchar(255) NOT NULL COMMENT 'Source path for uploading files',
`bml_resource_id` varchar(50) NOT NULL,
`bml_resource_version` varchar(20) NOT NULL,
`is_published` bit(1) DEFAULT NULL COMMENT 'is published',
`register_format` varchar(255) DEFAULT NULL,
`use_format` varchar(255) DEFAULT NULL,
`description` varchar(255) NOT NULL COMMENT 'version desc',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`md5` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for linkis_ps_variable_key_user
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_variable_key_user`;
CREATE TABLE `linkis_ps_variable_key_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`application_id` bigint(20) DEFAULT NULL COMMENT 'Reserved word',
`key_id` bigint(20) DEFAULT NULL,
`user_name` varchar(50) DEFAULT NULL,
`value` varchar(200) DEFAULT NULL COMMENT 'Value of the global variable',
PRIMARY KEY (`id`),
UNIQUE KEY `application_id_2` (`application_id`,`key_id`,`user_name`),
KEY `key_id` (`key_id`),
KEY `application_id` (`application_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_variable_key
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_variable_key`;
CREATE TABLE `linkis_ps_variable_key` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key` varchar(50) DEFAULT NULL COMMENT 'Key of the global variable',
`description` varchar(200) DEFAULT NULL COMMENT 'Reserved word',
`name` varchar(50) DEFAULT NULL COMMENT 'Reserved word',
`application_id` bigint(20) DEFAULT NULL COMMENT 'Reserved word',
`default_value` varchar(200) DEFAULT NULL COMMENT 'Reserved word',
`value_type` varchar(50) DEFAULT NULL COMMENT 'Reserved word',
`value_regex` varchar(100) DEFAULT NULL COMMENT 'Reserved word',
PRIMARY KEY (`id`),
KEY `application_id` (`application_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_datasource_access
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_access`;
CREATE TABLE `linkis_ps_datasource_access` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) NOT NULL,
`visitor` varchar(16) COLLATE utf8_bin NOT NULL,
`fields` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`application_id` int(4) NOT NULL,
`access_time` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_datasource_field
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_field`;
CREATE TABLE `linkis_ps_datasource_field` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) NOT NULL,
`name` varchar(64) COLLATE utf8_bin NOT NULL,
`alias` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`type` varchar(64) COLLATE utf8_bin NOT NULL,
`comment` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`express` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`rule` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`is_partition_field` tinyint(1) NOT NULL,
`is_primary` tinyint(1) NOT NULL,
`length` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_datasource_import
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_import`;
CREATE TABLE `linkis_ps_datasource_import` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) NOT NULL,
`import_type` int(4) NOT NULL,
`args` varchar(255) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_datasource_lineage
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_lineage`;
CREATE TABLE `linkis_ps_datasource_lineage` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) DEFAULT NULL,
`source_table` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_datasource_table
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_table`;
CREATE TABLE `linkis_ps_datasource_table` (
`id` bigint(255) NOT NULL AUTO_INCREMENT,
`database` varchar(64) COLLATE utf8_bin NOT NULL,
`name` varchar(64) COLLATE utf8_bin NOT NULL,
`alias` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`creator` varchar(16) COLLATE utf8_bin NOT NULL,
`comment` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`create_time` datetime NOT NULL,
`product_name` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`project_name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`usage` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`lifecycle` int(4) NOT NULL,
`use_way` int(4) NOT NULL,
`is_import` tinyint(1) NOT NULL,
`model_level` int(4) NOT NULL,
`is_external_use` tinyint(1) NOT NULL,
`is_partition_table` tinyint(1) NOT NULL,
`is_available` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `database` (`database`,`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_datasource_table_info
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_table_info`;
CREATE TABLE `linkis_ps_datasource_table_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) NOT NULL,
`table_last_update_time` datetime NOT NULL,
`row_num` bigint(20) NOT NULL,
`file_num` int(11) NOT NULL,
`table_size` varchar(32) COLLATE utf8_bin NOT NULL,
`partitions_num` int(11) NOT NULL,
`update_time` datetime NOT NULL,
`field_num` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_cs_context_map
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_cs_context_map`;
CREATE TABLE `linkis_ps_cs_context_map` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(128) DEFAULT NULL,
`context_scope` varchar(32) DEFAULT NULL,
`context_type` varchar(32) DEFAULT NULL,
`props` text,
`value` mediumtext,
`context_id` int(11) DEFAULT NULL,
`keywords` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`key`,`context_id`,`context_type`),
KEY `keywords` (`keywords`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_cs_context_map_listener
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_cs_context_map_listener`;
CREATE TABLE `linkis_ps_cs_context_map_listener` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`listener_source` varchar(255) DEFAULT NULL,
`key_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_cs_context_history
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_cs_context_history`;
CREATE TABLE `linkis_ps_cs_context_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`context_id` int(11) DEFAULT NULL,
`source` text,
`context_type` varchar(32) DEFAULT NULL,
`history_json` text,
`keyword` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `keyword` (`keyword`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_cs_context_id
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_cs_context_id`;
CREATE TABLE `linkis_ps_cs_context_id` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(32) DEFAULT NULL,
`application` varchar(32) DEFAULT NULL,
`source` varchar(255) DEFAULT NULL,
`expire_type` varchar(32) DEFAULT NULL,
`expire_time` datetime DEFAULT NULL,
`instance` varchar(128) DEFAULT NULL,
`backup_instance` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `instance` (`instance`(128)),
KEY `backup_instance` (`backup_instance`(191)),
KEY `instance_2` (`instance`(128),`backup_instance`(128))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for linkis_ps_cs_context_listener
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_cs_context_listener`;
CREATE TABLE `linkis_ps_cs_context_listener` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`listener_source` varchar(255) DEFAULT NULL,
`context_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_bml_resources`;
CREATE TABLE if not exists `linkis_ps_bml_resources` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
`resource_id` varchar(50) NOT NULL COMMENT 'resource uuid',
`is_private` TINYINT(1) DEFAULT 0 COMMENT 'Whether the resource is private, 0 means private, 1 means public',
`resource_header` TINYINT(1) DEFAULT 0 COMMENT 'Classification, 0 means unclassified, 1 means classified',
`downloaded_file_name` varchar(200) DEFAULT NULL COMMENT 'File name when downloading',
`sys` varchar(100) NOT NULL COMMENT 'Owning system',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Created time',
`owner` varchar(200) NOT NULL COMMENT 'Resource owner',
`is_expire` TINYINT(1) DEFAULT 0 COMMENT 'Whether expired, 0 means not expired, 1 means expired',
`expire_type` varchar(50) DEFAULT null COMMENT 'Expiration type, date refers to the expiration on the specified date, TIME refers to the time',
`expire_time` varchar(50) DEFAULT null COMMENT 'Expiration time, one day by default',
`max_version` int(20) DEFAULT 10 COMMENT 'The default is 10, which means to keep the latest 10 versions',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Updated time',
`updator` varchar(50) DEFAULT NULL COMMENT 'updator',
`enable_flag` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Status, 1: normal, 0: frozen',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_bml_resources_version`;
CREATE TABLE if not exists `linkis_ps_bml_resources_version` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
`resource_id` varchar(50) NOT NULL COMMENT 'Resource uuid',
`file_md5` varchar(32) NOT NULL COMMENT 'Md5 summary of the file',
`version` varchar(20) NOT NULL COMMENT 'Resource version (v plus five digits)',
`size` int(10) NOT NULL COMMENT 'File size',
`start_byte` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`end_byte` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`resource` varchar(2000) NOT NULL COMMENT 'Resource content (file information including path and file name)',
`description` varchar(2000) DEFAULT NULL COMMENT 'description',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Started time',
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Stoped time',
`client_ip` varchar(200) NOT NULL COMMENT 'Client ip',
`updator` varchar(50) DEFAULT NULL COMMENT 'updator',
`enable_flag` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'Status, 1: normal, 0: frozen',
unique key `resource_id_version`(`resource_id`, `version`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_bml_resources_permission`;
CREATE TABLE if not exists `linkis_ps_bml_resources_permission` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
`resource_id` varchar(50) NOT NULL COMMENT 'Resource uuid',
`permission` varchar(10) NOT NULL COMMENT 'permission',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time',
`system` varchar(50) default "dss" COMMENT 'creator',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'updated time',
`updator` varchar(50) NOT NULL COMMENT 'updator',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_resources_download_history`;
CREATE TABLE if not exists `linkis_ps_resources_download_history` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'primary key',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'start time',
`end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'stop time',
`client_ip` varchar(200) NOT NULL COMMENT 'client ip',
`state` TINYINT(1) NOT NULL COMMENT 'Download status, 0 download successful, 1 download failed',
`resource_id` varchar(50) not null,
`version` varchar(20) not null,
`downloader` varchar(50) NOT NULL COMMENT 'Downloader',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- 创建资源任务表,包括上传,更新,下载
DROP TABLE IF EXISTS `linkis_ps_bml_resources_task`;
CREATE TABLE if not exists `linkis_ps_bml_resources_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`resource_id` varchar(50) DEFAULT NULL COMMENT 'resource uuid',
`version` varchar(20) DEFAULT NULL COMMENT 'Resource version number of the current operation',
`operation` varchar(20) NOT NULL COMMENT 'Operation type. upload = 0, update = 1',
`state` varchar(20) NOT NULL DEFAULT 'Schduled' COMMENT 'Current status of the task:Schduled, Running, Succeed, Failed,Cancelled',
`submit_user` varchar(20) NOT NULL DEFAULT '' COMMENT 'Job submission user name',
`system` varchar(20) DEFAULT 'dss' COMMENT 'Subsystem name: wtss',
`instance` varchar(128) NOT NULL COMMENT 'Material library example',
`client_ip` varchar(50) DEFAULT NULL COMMENT 'Request IP',
`extra_params` text COMMENT 'Additional key information. Such as the resource IDs and versions that are deleted in batches, and all versions under the resource are deleted',
`err_msg` varchar(2000) DEFAULT NULL COMMENT 'Task failure information.e.getMessage',
`start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Starting time',
`end_time` datetime DEFAULT NULL COMMENT 'End Time',
`last_update_time` datetime NOT NULL COMMENT 'Last update time',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `linkis_ps_bml_project`;
create table if not exists linkis_ps_bml_project(
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(128) DEFAULT NULL,
`system` varchar(64) not null default "dss",
`source` varchar(1024) default null,
`description` varchar(1024) default null,
`creator` varchar(128) not null,
`enabled` tinyint default 1,
`create_time` datetime DEFAULT now(),
unique key(`name`),
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;
DROP TABLE IF EXISTS `linkis_ps_bml_project_user`;
create table if not exists linkis_ps_bml_project_user(
`id` int(10) NOT NULL AUTO_INCREMENT,
`project_id` int(10) NOT NULL,
`username` varchar(64) DEFAULT NULL,
`priv` int(10) not null default 7, -- rwx 421 The permission value is 7. 8 is the administrator, which can authorize other users
`creator` varchar(128) not null,
`create_time` datetime DEFAULT now(),
`expire_time` datetime default null,
unique key user_project(`username`, `project_id`),
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;
DROP TABLE IF EXISTS `linkis_ps_bml_project_resource`;
create table if not exists linkis_ps_bml_project_resource(
`id` int(10) NOT NULL AUTO_INCREMENT,
`project_id` int(10) NOT NULL,
`resource_id` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;
DROP TABLE IF EXISTS `linkis_ps_instance_label`;
CREATE TABLE `linkis_ps_instance_label` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_key` varchar(32) COLLATE utf8_bin NOT NULL COMMENT 'string key',
`label_value` varchar(255) COLLATE utf8_bin NOT NULL COMMENT 'string value',
`label_feature` varchar(16) COLLATE utf8_bin NOT NULL COMMENT 'store the feature of label, but it may be redundant',
`label_value_size` int(20) NOT NULL COMMENT 'size of key -> value map',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'update unix timestamp',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'update unix timestamp',
PRIMARY KEY (`id`),
UNIQUE KEY `label_key_value` (`label_key`,`label_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_instance_label_value_relation`;
CREATE TABLE `linkis_ps_instance_label_value_relation` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_value_key` varchar(255) COLLATE utf8_bin NOT NULL COMMENT 'value key',
`label_value_content` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT 'value content',
`label_id` int(20) DEFAULT NULL COMMENT 'id reference linkis_ps_instance_label -> id',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'update unix timestamp',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'create unix timestamp',
PRIMARY KEY (`id`),
UNIQUE KEY `label_value_key_label_id` (`label_value_key`,`label_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_instance_label_relation`;
CREATE TABLE `linkis_ps_instance_label_relation` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_id` int(20) DEFAULT NULL COMMENT 'id reference linkis_ps_instance_label -> id',
`service_instance` varchar(128) NOT NULL COLLATE utf8_bin COMMENT 'structure like ${host|machine}:${port}',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'update unix timestamp',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'create unix timestamp',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_instance_info`;
CREATE TABLE `linkis_ps_instance_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`instance` varchar(128) COLLATE utf8_bin DEFAULT NULL COMMENT 'structure like ${host|machine}:${port}',
`name` varchar(128) COLLATE utf8_bin DEFAULT NULL COMMENT 'equal application name in registry',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'update unix timestamp',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT 'create unix timestamp',
PRIMARY KEY (`id`),
UNIQUE KEY `instance` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_ps_error_code`;
CREATE TABLE `linkis_ps_error_code` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`error_code` varchar(50) NOT NULL,
`error_desc` varchar(1024) NOT NULL,
`error_regex` varchar(1024) DEFAULT NULL,
`error_type` int(3) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_service_instance`;
CREATE TABLE `linkis_cg_manager_service_instance` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`instance` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`name` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`owner` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`mark` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`updator` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`creator` varchar(32) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `instance` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_linkis_resources`;
CREATE TABLE `linkis_cg_manager_linkis_resources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`max_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`min_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`used_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`left_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`expected_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`locked_resource` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`resourceType` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`ticketId` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`updator` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`creator` varchar(255) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_lock`;
CREATE TABLE `linkis_cg_manager_lock` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lock_object` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`time_out` longtext COLLATE utf8_bin,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `lock_object` (`lock_object`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_rm_external_resource_provider`;
CREATE TABLE `linkis_cg_rm_external_resource_provider` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`resource_type` varchar(32) NOT NULL,
`name` varchar(32) NOT NULL,
`labels` varchar(32) DEFAULT NULL,
`config` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `linkis_cg_manager_engine_em`;
CREATE TABLE `linkis_cg_manager_engine_em` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`engine_instance` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`em_instance` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_label`;
CREATE TABLE `linkis_cg_manager_label` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_key` varchar(32) COLLATE utf8_bin NOT NULL,
`label_value` varchar(255) COLLATE utf8_bin NOT NULL,
`label_feature` varchar(16) COLLATE utf8_bin NOT NULL,
`label_value_size` int(20) NOT NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `label_key_value` (`label_key`,`label_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_label_value_relation`;
CREATE TABLE `linkis_cg_manager_label_value_relation` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_value_key` varchar(255) COLLATE utf8_bin NOT NULL,
`label_value_content` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`label_id` int(20) DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `label_value_key_label_id` (`label_value_key`,`label_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_label_resource`;
CREATE TABLE `linkis_cg_manager_label_resource` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_id` int(20) DEFAULT NULL,
`resource_id` int(20) DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `label_id` (`label_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_rm_resource_action_record`;
CREATE TABLE `linkis_cg_rm_resource_action_record` (
`id` INT(20) NOT NULL AUTO_INCREMENT,
`label_value` VARCHAR(100) NOT NULL,
`ticket_id` VARCHAR(100) NOT NULL,
`request_times` INT(8),
`request_resource_all` VARCHAR(100),
`used_times` INT(8),
`used_resource_all` VARCHAR(100),
`release_times` INT(8),
`release_resource_all` VARCHAR(100),
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `label_value_ticket_id` (`label_value`, `ticket_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_label_service_instance`;
CREATE TABLE `linkis_cg_manager_label_service_instance` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`label_id` int(20) DEFAULT NULL,
`service_instance` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY label_serviceinstance(label_id,service_instance)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_label_user`;
CREATE TABLE `linkis_cg_manager_label_user` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`label_id` int(20) DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_metrics_history`;
CREATE TABLE `linkis_cg_manager_metrics_history` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`instance_status` int(20) DEFAULT NULL,
`overload` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`heartbeat_msg` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`healthy_status` int(20) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`creator` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`ticketID` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`serviceName` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`instance` varchar(255) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_manager_service_instance_metrics`;
CREATE TABLE `linkis_cg_manager_service_instance_metrics` (
`instance` varchar(128) COLLATE utf8_bin NOT NULL,
`instance_status` int(11) DEFAULT NULL,
`overload` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`heartbeat_msg` text COLLATE utf8_bin DEFAULT NULL,
`healthy_status` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
DROP TABLE IF EXISTS `linkis_cg_engine_conn_plugin_bml_resources`;
CREATE TABLE `linkis_cg_engine_conn_plugin_bml_resources` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'Primary key',
`engine_conn_type` varchar(100) NOT NULL COMMENT 'Engine type',
`version` varchar(100) COMMENT 'version',
`file_name` varchar(255) COMMENT 'file name',
`file_size` bigint(20) DEFAULT 0 NOT NULL COMMENT 'file size',
`last_modified` bigint(20) COMMENT 'File update time',
`bml_resource_id` varchar(100) NOT NULL COMMENT 'Owning system',
`bml_resource_version` varchar(200) NOT NULL COMMENT 'Resource owner',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time',
`last_update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'updated time',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_dm_datasource
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_dm_datasource`;
CREATE TABLE `linkis_ps_dm_datasource`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`datasource_name` varchar(255) COLLATE utf8_bin NOT NULL,
`datasource_desc` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`datasource_type_id` int(11) NOT NULL,
`create_identify` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`create_system` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`parameter` varchar(255) COLLATE utf8_bin NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`modify_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`create_user` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`modify_user` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`labels` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`version_id` int(11) DEFAULT NULL COMMENT 'current version id',
`expire` tinyint(1) DEFAULT 0,
`published_version_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_dm_datasource_env
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_dm_datasource_env`;
CREATE TABLE `linkis_ps_dm_datasource_env`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`env_name` varchar(32) COLLATE utf8_bin NOT NULL,
`env_desc` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`datasource_type_id` int(11) NOT NULL,
`parameter` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_user` varchar(255) COLLATE utf8_bin NULL DEFAULT NULL,
`modify_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modify_user` varchar(255) COLLATE utf8_bin NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_dm_datasource_type
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_dm_datasource_type`;
CREATE TABLE `linkis_ps_dm_datasource_type`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) COLLATE utf8_bin NOT NULL,
`description` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`option` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`classifier` varchar(32) COLLATE utf8_bin NOT NULL,
`icon` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`layers` int(3) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_dm_datasource_type_key
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_dm_datasource_type_key`;
CREATE TABLE `linkis_ps_dm_datasource_type_key`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`data_source_type_id` int(11) NOT NULL,
`key` varchar(32) COLLATE utf8_bin NOT NULL,
`name` varchar(32) COLLATE utf8_bin NOT NULL,
`default_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`value_type` varchar(50) COLLATE utf8_bin NOT NULL,
`scope` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`require` tinyint(1) NULL DEFAULT 0,
`description` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`value_regex` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`ref_id` bigint(20) NULL DEFAULT NULL,
`ref_value` varchar(50) COLLATE utf8_bin NULL DEFAULT NULL,
`data_source` varchar(200) COLLATE utf8_bin NULL DEFAULT NULL,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_ps_dm_datasource_version
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_dm_datasource_version`;
CREATE TABLE `linkis_ps_dm_datasource_version`
(
`version_id` int(11) NOT NULL AUTO_INCREMENT,
`datasource_id` int(11) NOT NULL,
`parameter` varchar(2048) COLLATE utf8_bin NULL DEFAULT NULL,
`comment` varchar(255) COLLATE utf8_bin NULL DEFAULT NULL,
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP,
`create_user` varchar(255) COLLATE utf8_bin NULL DEFAULT NULL,
PRIMARY KEY (`version_id`, `datasource_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for linkis_mg_gateway_auth_token
-- ----------------------------
DROP TABLE IF EXISTS `linkis_mg_gateway_auth_token`;
CREATE TABLE `linkis_mg_gateway_auth_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`token_name` varchar(128) NOT NULL,
`legal_users` text,
`legal_hosts` text,
`business_owner` varchar(32),
`create_time` DATE DEFAULT NULL,
`update_time` DATE DEFAULT NULL,
`elapse_day` BIGINT DEFAULT NULL,
`update_by` varchar(32),
PRIMARY KEY (`id`),
UNIQUE KEY `token_name` (`token_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | the_stack |
-- tests index filter with outer refs
drop table if exists bfv_tab1;
CREATE TABLE bfv_tab1 (
unique1 int4,
unique2 int4,
two int4,
four int4,
ten int4,
twenty int4,
hundred int4,
thousand int4,
twothousand int4,
fivethous int4,
tenthous int4,
odd int4,
even int4,
stringu1 name,
stringu2 name,
string4 name
) distributed by (unique1);
create index bfv_tab1_idx1 on bfv_tab1 using btree(unique1);
-- GPDB_12_MERGE_FIXME: Non default collation
explain select * from bfv_tab1, (values(147, 'RFAAAA'), (931, 'VJAAAA')) as v (i, j)
WHERE bfv_tab1.unique1 = v.i and bfv_tab1.stringu1 = v.j;
set gp_enable_relsize_collection=on;
-- GPDB_12_MERGE_FIXME: Non default collation
explain select * from bfv_tab1, (values(147, 'RFAAAA'), (931, 'VJAAAA')) as v (i, j)
WHERE bfv_tab1.unique1 = v.i and bfv_tab1.stringu1 = v.j;
-- Test that we do not choose to perform an index scan if indisvalid=false.
create table bfv_tab1_with_invalid_index (like bfv_tab1 including indexes);
set allow_system_table_mods=on;
update pg_index set indisvalid=false where indrelid='bfv_tab1_with_invalid_index'::regclass;
reset allow_system_table_mods;
explain select * from bfv_tab1_with_invalid_index where unique1>42;
-- Cannot currently upgrade table with invalid index
-- (see https://github.com/greenplum-db/gpdb/issues/10805).
drop table bfv_tab1_with_invalid_index;
reset gp_enable_relsize_collection;
--start_ignore
DROP TABLE IF EXISTS bfv_tab2_facttable1;
DROP TABLE IF EXISTS bfv_tab2_dimdate;
DROP TABLE IF EXISTS bfv_tab2_dimtabl1;
--end_ignore
-- Bug-fix verification for MPP-25537: PANIC when bitmap index used in ORCA select
CREATE TABLE bfv_tab2_facttable1 (
col1 integer,
wk_id smallint,
id integer
)
with (appendonly=true, orientation=column, compresstype=zlib, compresslevel=5)
partition by range (wk_id) (
start (1::smallint) END (20::smallint) inclusive every (1),
default partition dflt
)
;
insert into bfv_tab2_facttable1 select col1, col1, col1 from (select generate_series(1,20) col1)a;
CREATE TABLE bfv_tab2_dimdate (
wk_id smallint,
col2 date
)
;
insert into bfv_tab2_dimdate select col1, current_date - col1 from (select generate_series(1,20,2) col1)a;
CREATE TABLE bfv_tab2_dimtabl1 (
id integer,
col2 integer
)
;
insert into bfv_tab2_dimtabl1 select col1, col1 from (select generate_series(1,20,3) col1)a;
CREATE INDEX idx_bfv_tab2_facttable1 on bfv_tab2_facttable1 (id);
--start_ignore
set optimizer_analyze_root_partition to on;
--end_ignore
ANALYZE bfv_tab2_facttable1;
ANALYZE bfv_tab2_dimdate;
ANALYZE bfv_tab2_dimtabl1;
SELECT count(*)
FROM bfv_tab2_facttable1 ft, bfv_tab2_dimdate dt, bfv_tab2_dimtabl1 dt1
WHERE ft.wk_id = dt.wk_id
AND ft.id = dt1.id;
explain SELECT count(*)
FROM bfv_tab2_facttable1 ft, bfv_tab2_dimdate dt, bfv_tab2_dimtabl1 dt1
WHERE ft.wk_id = dt.wk_id
AND ft.id = dt1.id;
explain SELECT count(*)
FROM bfv_tab2_facttable1 ft, bfv_tab2_dimdate dt, bfv_tab2_dimtabl1 dt1
WHERE ft.wk_id = dt.wk_id
AND ft.id = dt1.id;
-- start_ignore
create language plpython3u;
-- end_ignore
create or replace function count_index_scans(explain_query text) returns int as
$$
rv = plpy.execute(explain_query)
search_text = 'Index Scan'
result = 0
for i in range(len(rv)):
cur_line = rv[i]['QUERY PLAN']
if search_text.lower() in cur_line.lower():
result = result+1
return result
$$
language plpython3u;
DROP TABLE bfv_tab1;
DROP TABLE bfv_tab2_facttable1;
DROP TABLE bfv_tab2_dimdate;
DROP TABLE bfv_tab2_dimtabl1;
-- pick index scan when query has a relabel on the index key: non partitioned tables
set enable_seqscan = off;
-- start_ignore
drop table if exists Tab23383;
-- end_ignore
create table Tab23383(a int, b varchar(20));
insert into Tab23383 select g,g from generate_series(1,1000) g;
create index Tab23383_b on Tab23383(b);
-- start_ignore
select disable_xform('CXformGet2TableScan');
-- end_ignore
select count_index_scans('explain select * from Tab23383 where b=''1'';');
select * from Tab23383 where b='1';
select count_index_scans('explain select * from Tab23383 where ''1''=b;');
select * from Tab23383 where '1'=b;
select count_index_scans('explain select * from Tab23383 where ''2''> b order by a limit 10;');
select * from Tab23383 where '2'> b order by a limit 10;
select count_index_scans('explain select * from Tab23383 where b between ''1'' and ''2'' order by a limit 10;');
select * from Tab23383 where b between '1' and '2' order by a limit 10;
-- predicates on both index and non-index key
select count_index_scans('explain select * from Tab23383 where b=''1'' and a=''1'';');
select * from Tab23383 where b='1' and a='1';
--negative tests: no index scan plan possible, fall back to planner
select count_index_scans('explain select * from Tab23383 where b::int=''1'';');
drop table Tab23383;
-- pick index scan when query has a relabel on the index key: partitioned tables
-- start_ignore
drop table if exists Tbl23383_partitioned;
-- end_ignore
create table Tbl23383_partitioned(a int, b varchar(20), c varchar(20), d varchar(20))
partition by range(a)
(partition p1 start(1) end(500),
partition p2 start(500) end(1001));
insert into Tbl23383_partitioned select g,g,g,g from generate_series(1,1000) g;
create index idx23383_b on Tbl23383_partitioned(b);
-- heterogenous indexes
create index idx23383_c on Tbl23383_partitioned_1_prt_p1(c);
create index idx23383_cd on Tbl23383_partitioned_1_prt_p2(c,d);
set optimizer_enable_dynamictablescan = off;
select count_index_scans('explain select * from Tbl23383_partitioned where b=''1''');
select * from Tbl23383_partitioned where b='1';
select count_index_scans('explain select * from Tbl23383_partitioned where ''1''=b');
select * from Tbl23383_partitioned where '1'=b;
select count_index_scans('explain select * from Tbl23383_partitioned where ''2''> b order by a limit 10;');
select * from Tbl23383_partitioned where '2'> b order by a limit 10;
select count_index_scans('explain select * from Tbl23383_partitioned where b between ''1'' and ''2'' order by a limit 10;');
select * from Tbl23383_partitioned where b between '1' and '2' order by a limit 10;
-- predicates on both index and non-index key
select count_index_scans('explain select * from Tbl23383_partitioned where b=''1'' and a=''1'';');
select * from Tbl23383_partitioned where b='1' and a='1';
--negative tests: no index scan plan possible, fall back to planner
select count_index_scans('explain select * from Tbl23383_partitioned where b::int=''1'';');
-- heterogenous indexes
select count_index_scans('explain select * from Tbl23383_partitioned where c=''1'';');
select * from Tbl23383_partitioned where c='1';
-- start_ignore
drop table Tbl23383_partitioned;
-- end_ignore
reset enable_seqscan;
-- negative test: due to non compatible cast and CXformGet2TableScan disabled no index plan possible, fallback to planner
-- start_ignore
drop table if exists tbl_ab;
-- end_ignore
create table tbl_ab(a int, b int);
create index idx_ab_b on tbl_ab(b);
-- start_ignore
select disable_xform('CXformGet2TableScan');
-- end_ignore
explain select * from tbl_ab where b::oid=1;
drop table tbl_ab;
drop function count_index_scans(text);
-- start_ignore
select enable_xform('CXformGet2TableScan');
-- end_ignore
--
-- Check that ORCA can use an index for joins on quals like:
--
-- indexkey CMP expr
-- expr CMP indexkey
--
-- where expr is a scalar expression free of index keys and may have outer
-- references.
--
create table nestloop_x (i int, j int) distributed by (i);
create table nestloop_y (i int, j int) distributed by (i);
insert into nestloop_x select g, g from generate_series(1, 20) g;
insert into nestloop_y select g, g from generate_series(1, 7) g;
create index nestloop_y_idx on nestloop_y (j);
-- Coerce the Postgres planner to produce a similar plan. Nested loop joins
-- are not enabled by default. And to dissuade it from choosing a sequential
-- scan, bump up the cost. enable_seqscan=off won't help, because there is
-- no other way to scan table 'x', and once the planner chooses a seqscan for
-- one table, it will happily use a seqscan for other tables as well, despite
-- enable_seqscan=off. (On PostgreSQL, enable_seqscan works differently, and
-- just bumps up the cost of a seqscan, so it would work there.)
set seq_page_cost=10000000;
set enable_indexscan=on;
set enable_nestloop=on;
explain select * from nestloop_x as x, nestloop_y as y where x.i + x.j < y.j;
select * from nestloop_x as x, nestloop_y as y where x.i + x.j < y.j;
explain select * from nestloop_x as x, nestloop_y as y where y.j > x.i + x.j + 2;
select * from nestloop_x as x, nestloop_y as y where y.j > x.i + x.j + 2;
drop table nestloop_x, nestloop_y;
SET enable_seqscan = OFF;
SET enable_indexscan = ON;
DROP TABLE IF EXISTS bpchar_ops;
CREATE TABLE bpchar_ops(id INT8, v char(10)) DISTRIBUTED BY(id);
CREATE INDEX bpchar_ops_btree_idx ON bpchar_ops USING btree(v bpchar_pattern_ops);
INSERT INTO bpchar_ops VALUES (0, 'row');
SELECT * FROM bpchar_ops WHERE v = 'row '::char(20);
DROP TABLE bpchar_ops;
--
-- Test index rechecks with AO and AOCS tables (and heaps as well, for good measure)
--
create table shape_heap (c circle) with (appendonly=false);
create table shape_ao (c circle) with (appendonly=true, orientation=row);
create table shape_aocs (c circle) with (appendonly=true, orientation=column);
insert into shape_heap values ('<(0,0), 5>');
insert into shape_ao values ('<(0,0), 5>');
insert into shape_aocs values ('<(0,0), 5>');
create index shape_heap_bb_idx on shape_heap using gist(c);
create index shape_ao_bb_idx on shape_ao using gist(c);
create index shape_aocs_bb_idx on shape_aocs using gist(c);
select c && '<(5,5), 1>'::circle,
c && '<(5,5), 2>'::circle,
c && '<(5,5), 3>'::circle
from shape_heap;
-- Test the same values with (bitmap) index scans
--
-- The first two values don't overlap with the value in the tables, <(0,0), 5>,
-- but their bounding boxes do. In a GiST index scan that uses the bounding
-- boxes, these will fetch the row from the index, but filtered out by the
-- recheck using the actual overlap operator. The third entry is sanity check
-- that the index returns any rows.
set enable_seqscan=off;
set enable_indexscan=off;
set enable_bitmapscan=on;
-- Use EXPLAIN to verify that these use a bitmap index scan
explain select * from shape_heap where c && '<(5,5), 1>'::circle;
explain select * from shape_ao where c && '<(5,5), 1>'::circle;
explain select * from shape_aocs where c && '<(5,5), 1>'::circle;
-- Test that they return correct results.
select * from shape_heap where c && '<(5,5), 1>'::circle;
select * from shape_ao where c && '<(5,5), 1>'::circle;
select * from shape_aocs where c && '<(5,5), 1>'::circle;
select * from shape_heap where c && '<(5,5), 2>'::circle;
select * from shape_ao where c && '<(5,5), 2>'::circle;
select * from shape_aocs where c && '<(5,5), 2>'::circle;
select * from shape_heap where c && '<(5,5), 3>'::circle;
select * from shape_ao where c && '<(5,5), 3>'::circle;
select * from shape_aocs where c && '<(5,5), 3>'::circle;
--
-- Given a table with different column types
--
CREATE TABLE table_with_reversed_index(a int, b bool, c text);
--
-- And it has an index that is ordered differently than columns on the table.
--
CREATE INDEX ON table_with_reversed_index(c, a);
INSERT INTO table_with_reversed_index VALUES (10, true, 'ab');
--
-- Then an index only scan should succeed. (i.e. varattno is set up correctly)
--
SET enable_seqscan=off;
SET enable_bitmapscan=off;
SET optimizer_enable_tablescan=off;
SET optimizer_enable_indexscan=off;
SET optimizer_enable_indexonlyscan=on;
EXPLAIN SELECT c, a FROM table_with_reversed_index WHERE a > 5;
SELECT c, a FROM table_with_reversed_index WHERE a > 5;
RESET enable_seqscan;
RESET enable_bitmapscan;
RESET optimizer_enable_tablescan;
RESET optimizer_enable_indexscan;
RESET optimizer_enable_indexonlyscan; | the_stack |
-- creates a new empty schema, which will be used to manage all objects
-- which are required for CATGenome Browser
CREATE SCHEMA IF NOT EXISTS CATGENOME;
-- creates a sequence used to generate primary key values for "bam" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BAM_FILE START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BED START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BED_GRAPH START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "biological_data_item" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BIOLOGICAL_DATA_ITEM START WITH 1 INCREMENT BY 1;
-- sequence for bookmark ids
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BOOKMARK START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BOOKMARK_ITEM START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_BUCKET START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "chromosome" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_CHROMOSOME START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "gene_item" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_GENE_FILE START WITH 1 INCREMENT BY 1;
-- creates a sequence used only for technical reasons, e.g. to generate ID for a list of values
-- that e.g. have to be inserted into temporary local table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_LIST START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_MAF START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_PERSON START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "project" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_PROJECT START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "project_item" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_PROJECT_ITEM START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_PROTEIN_SEQUENCE START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "reference_genome" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_REFERENCE_GENOME START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_SEG START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_SEG_SAMPLE START WITH 1 INCREMENT BY 1;
-- creates a sequence used to generate primary key values for "vcf" table
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_VCF_FILE START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_VCF_SAMPLE START WITH 1 INCREMENT BY 1;
CREATE SEQUENCE IF NOT EXISTS CATGENOME.S_VG START WITH 1 INCREMENT BY 1;
CREATE TABLE IF NOT EXISTS CATGENOME.BUCKET (
BUCKET_ID BIGINT NOT NULL PRIMARY KEY,
BUCKET_NAME VARCHAR(250) NOT NULL,
ACCESS_KEY_ID VARCHAR(250) NOT NULL,
SECRET_ACCESS_KEY VARCHAR(250) NOT NULL
);
CREATE TABLE IF NOT EXISTS CATGENOME.BIOLOGICAL_DATA_ITEM (
BIO_DATA_ITEM_ID BIGINT NOT NULL PRIMARY KEY,
NAME VARCHAR(250) NOT NULL,
TYPE BIGINT NOT NULL,
PATH VARCHAR(500) NOT NULL,
FORMAT BIGINT NOT NULL,
CREATED_BY BIGINT,
CREATED_DATE TIMESTAMP,
BUCKET_ID BIGINT,
CONSTRAINT bucket_id_fkey FOREIGN KEY (bucket_id) REFERENCES catgenome.bucket(bucket_id)
);
-- creates "reference_genome" table, used to handle metadata concerned with reference
-- genomes which has been registered in the system
CREATE TABLE IF NOT EXISTS CATGENOME.REFERENCE_GENOME (
REFERENCE_GENOME_ID BIGINT NOT NULL,
REFERENCE_GENOME_SIZE BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
CONSTRAINT reference_genome_id_pkey PRIMARY KEY (reference_genome_id),
CONSTRAINT BIO_DATA_ITEM_ID_FKEY FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID)
);
-- creates "chromosome" table, used to handle metadata concerned with chromosomes
-- which belongs to a reference
CREATE TABLE IF NOT EXISTS CATGENOME.CHROMOSOME (
CHROMOSOME_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
CHROMOSOME_NAME VARCHAR(250) NOT NULL,
CHROMOSOME_SIZE INTEGER NOT NULL,
CHROMOSOME_HEADER VARCHAR(250),
CONTENT_RESOURCE_PATH VARCHAR(500) NOT NULL,
CONSTRAINT chromosome_id_pkey PRIMARY KEY (chromosome_id),
CONSTRAINT referred_genome_id_fkey FOREIGN KEY (reference_genome_id) REFERENCES catgenome.reference_genome (reference_genome_id)
);
-- creates "vcf" table, used to handle metadata concerned with VCF files
-- which has been stored in the system
CREATE TABLE IF NOT EXISTS CATGENOME.VCF (
VCF_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
COMPRESSED BOOLEAN DEFAULT FALSE,
INDEX_ID BIGINT NOT NULL,
CONSTRAINT vcf_id_pkey PRIMARY KEY (vcf_id),
CONSTRAINT vcf_biological_data_item_id_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT vcf_index_id_fkey FOREIGN KEY (index_id) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT vcf_reference_genome_id FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.VCF_SAMPLE (
VCF_SAMPLE_ID BIGINT NOT NULL,
VCF_ID BIGINT NOT NULL,
SAMPLE_NAME VARCHAR(250) NOT NULL,
ORDER_INDEX INTEGER,
CONSTRAINT vcf_sample_id_pkey PRIMARY KEY (VCF_SAMPLE_ID),
CONSTRAINT vcf_sample_vcf_id_fkey FOREIGN KEY (VCF_ID) REFERENCES CATGENOME.VCF (VCF_ID),
);
CREATE TABLE IF NOT EXISTS CATGENOME.BAM (
BAM_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
INDEX_ID BIGINT NOT NULL,
CONSTRAINT bam_id_pkey PRIMARY KEY (BAM_ID),
CONSTRAINT BAM_INDEX_ID_FKEY FOREIGN KEY (INDEX_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bam_biological_data_item_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bam_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.BED (
BED_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
INDEX_ID BIGINT NOT NULL,
COMPRESSED BOOLEAN DEFAULT FALSE,
CONSTRAINT bed_id_pkey PRIMARY KEY (BED_ID),
CONSTRAINT bed_index_id_fkey FOREIGN KEY (INDEX_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bed_biological_data_item_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bed_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.BED_GRAPH (
BED_GRAPH_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
CONSTRAINT bed_graph_id_pkey PRIMARY KEY (BED_GRAPH_ID),
CONSTRAINT bed_graph_biological_data_item_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bed_graph_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
-- creates "project" table, used to handle data related to every project
-- that is created by a user in the system
CREATE TABLE IF NOT EXISTS CATGENOME.PROJECT (
PROJECT_ID BIGINT NOT NULL,
PROJECT_NAME VARCHAR(250) NOT NULL,
CREATED_BY BIGINT NOT NULL,
CREATED_DATE TIMESTAMP NOT NULL,
LAST_OPENED_DATE TIMESTAMP NOT NULL,
CONSTRAINT PROJECT_ID_PKEY PRIMARY KEY (PROJECT_ID),
CONSTRAINT project_name_unique UNIQUE (project_name)
);
-- creates "project_item" table, used to handle data related to a single track that
-- has been added to the given project
CREATE TABLE IF NOT EXISTS CATGENOME.PROJECT_ITEM (
PROJECT_ITEM_ID BIGINT NOT NULL,
REFERRED_PROJECT_ID BIGINT NOT NULL,
REFERRED_BIO_DATA_ITEM_ID BIGINT NOT NULL,
HIDDEN BOOLEAN DEFAULT FALSE NOT NULL,
ORDINAL_NUMBER SMALLINT NOT NULL,
CONSTRAINT PROJECT_ITEM_ID_PKEY PRIMARY KEY (PROJECT_ITEM_ID),
CONSTRAINT REFERRED_PROJECT_BIO_DATA_ITEM_ID_FKEY FOREIGN KEY (REFERRED_BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT REFERRED_PROJECT_ID_FKEY FOREIGN KEY (REFERRED_PROJECT_ID) REFERENCES CATGENOME.PROJECT (PROJECT_ID),
CONSTRAINT BIO_ITEM_UNIQUE UNIQUE (referred_project_id, referred_bio_data_item_id)
);
-- a table to store bookmarks
CREATE TABLE IF NOT EXISTS CATGENOME.BOOKMARK (
BOOKMARK_ID BIGINT NOT NULL,
BOOKMARK_NAME VARCHAR(250) NOT NULL,
START_INDEX INTEGER NOT NULL,
END_INDEX INTEGER NOT NULL,
REFERRED_PROJECT_ID BIGINT NOT NULL,
REFERRED_CHROMOSOME_ID BIGINT NOT NULL,
CONSTRAINT bookmark_id_pkey PRIMARY KEY (BOOKMARK_ID),
CONSTRAINT BOOKMARK_REFERRED_CHROMOSOME_ID_FKEY FOREIGN KEY (REFERRED_CHROMOSOME_ID) REFERENCES CATGENOME.CHROMOSOME (CHROMOSOME_ID),
CONSTRAINT BOOKMARK_REFERRED_PROJECT_ID_FKEY FOREIGN KEY (REFERRED_PROJECT_ID) REFERENCES CATGENOME.PROJECT (PROJECT_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.BOOKMARK_ITEM (
BOOKMARK_ITEM_ID BIGINT NOT NULL,
BOOKMARK_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
CONSTRAINT bookmark_item_id_pkey PRIMARY KEY (BOOKMARK_ITEM_ID),
CONSTRAINT bookmark_bio_data_item_id FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT bookmark_bookmark_id FOREIGN KEY (BOOKMARK_ID) REFERENCES CATGENOME.BOOKMARK (BOOKMARK_ID),
CONSTRAINT bookmark_item_unique UNIQUE (bookmark_id, bio_data_item_id)
);
-- creates "gene_item" table, used to handle metadata concerned with gene files
-- which has been stored in the system
CREATE TABLE IF NOT EXISTS CATGENOME.GENE_ITEM (
GENE_ITEM_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
COMPRESSED BOOLEAN DEFAULT FALSE,
INDEX_ID BIGINT NOT NULL,
EXTERNAL_DB_TYPE_ID BIGINT,
EXTERNAL_DB_ID BIGINT,
EXTERNAL_DB_ORGANISM VARCHAR(256),
CONSTRAINT gene_item_id_pkey PRIMARY KEY (GENE_ITEM_ID),
CONSTRAINT gene_item_bio_data_item_id_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT GENE_INDEX_ID_FKEY FOREIGN KEY (INDEX_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT gene_item_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.MAF
(
MAF_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
INDEX_ID BIGINT NOT NULL,
REAL_PATH VARCHAR(500),
COMPRESSED BOOLEAN DEFAULT FALSE,
CONSTRAINT maf_id_pkey PRIMARY KEY (MAF_ID),
CONSTRAINT maf_bio_data_item_id_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT MAF_INDEX_ID_FKEY FOREIGN KEY (INDEX_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT maf_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.PERSON_ROLE (
ROLE_ID BIGINT NOT NULL,
CODE VARCHAR(100) NOT NULL,
CONSTRAINT role_id_pkey PRIMARY KEY (ROLE_ID),
);
CREATE TABLE IF NOT EXISTS CATGENOME.PERSON (
PERSON_ID BIGINT NOT NULL,
NAME VARCHAR(250) NOT NULL,
PASSWORD VARCHAR(250) NOT NULL,
EMAIL VARCHAR(250) NOT NULL,
ROLE_ID BIGINT NOT NULL,
CONSTRAINT person_id_pkey PRIMARY KEY (PERSON_ID),
CONSTRAINT PERSON_ROLE_ID_FKEY FOREIGN KEY (ROLE_ID) REFERENCES CATGENOME.PERSON_ROLE (ROLE_ID),
CONSTRAINT NAME_UNIQUE UNIQUE(name)
);
-- creates 'ROLE_APP' and 'ROLE_ADMIN' roles, if they do not exist
DROP TABLE IF EXISTS catgenome.mutex;
CREATE TEMPORARY TABLE IF NOT EXISTS catgenome.mutex(
i INT NOT NULL PRIMARY KEY
);
INSERT INTO catgenome.mutex(i) VALUES (0), (1);
INSERT INTO catgenome.person_role (role_id, code)
SELECT 1, 'ROLE_APP'
FROM catgenome.mutex m
LEFT OUTER JOIN catgenome.person_role r
ON r.code = 'ROLE_APP'
WHERE m.i = 1 AND r.code IS NULL;
INSERT INTO catgenome.person_role (role_id, code)
SELECT 2, 'ROLE_ADMIN'
FROM catgenome.mutex m
LEFT OUTER JOIN catgenome.person_role r
ON r.code = 'ROLE_ADMIN'
WHERE m.i = 1 AND r.code IS NULL;
-- adds a default admin user if it does not exist
insert into catgenome.person (person_id, name, role_id, password, email)
select nextval('catgenome.s_person'), 'default_admin', 2, 'admin', 'admin@admin.com'
from catgenome.mutex m
left outer join catgenome.person p
on p.name = 'default_admin'
where m.i = 1 and p.name is null;
DROP TABLE IF EXISTS catgenome.mutex;
-- table for protein sequences
CREATE TABLE IF NOT EXISTS CATGENOME.PROTEIN_SEQUENCE (
PROTEIN_SEQUENCE_ID BIGINT NOT NULL,
GENE_ITEM_ID BIGINT,
CDS_START_INDEX BIGINT NOT NULL,
CDS_END_INDEX BIGINT NOT NULL,
TRIPLE_START_INDEX BIGINT NOT NULL,
TRIPLE_END_INDEX BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT,
PROTEIN_SEQUENCE CLOB NOT NULL,
CONSTRAINT proteins_sequence_id_pkey PRIMARY KEY (PROTEIN_SEQUENCE_ID),
CONSTRAINT GENE_ITEM_ID_FKEY FOREIGN KEY (GENE_ITEM_ID) REFERENCES CATGENOME.GENE_ITEM (GENE_ITEM_ID),
CONSTRAINT REFERENCE_GENOME_ID_FKEY FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID),
CONSTRAINT protein_sequence_unique UNIQUE(gene_item_id, cds_start_index, cds_end_index, triple_start_index, triple_end_index, reference_genome_id)
);
CREATE TABLE IF NOT EXISTS CATGENOME.SEG
(
SEG_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
INDEX_ID BIGINT NOT NULL,
COMPRESSED BOOLEAN DEFAULT FALSE,
CONSTRAINT seg_id_pkey PRIMARY KEY (SEG_ID),
CONSTRAINT seg_bio_data_item_id_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT seg_index_id_fkey FOREIGN KEY (INDEX_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT seg_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.SEG_SAMPLE
(
SEG_SAMPLE_ID BIGINT NOT NULL,
SEG_ID BIGINT NOT NULL,
SAMPLE_NAME VARCHAR(250) NOT NULL,
CONSTRAINT seg_sample_id_pkey PRIMARY KEY (SEG_SAMPLE_ID),
CONSTRAINT seg_sample_seg_id_key FOREIGN KEY (SEG_ID) REFERENCES CATGENOME.SEG (SEG_ID)
);
CREATE TABLE IF NOT EXISTS CATGENOME.VG
(
VG_ID BIGINT NOT NULL,
BIO_DATA_ITEM_ID BIGINT NOT NULL,
REFERENCE_GENOME_ID BIGINT NOT NULL,
REAL_PATH VARCHAR(500),
CONSTRAINT vg_id_pkey PRIMARY KEY (VG_ID),
CONSTRAINT vg_bio_data_item_id_fkey FOREIGN KEY (BIO_DATA_ITEM_ID) REFERENCES CATGENOME.BIOLOGICAL_DATA_ITEM (BIO_DATA_ITEM_ID),
CONSTRAINT vg_reference_genome_id_fkey FOREIGN KEY (REFERENCE_GENOME_ID) REFERENCES CATGENOME.REFERENCE_GENOME (REFERENCE_GENOME_ID)
); | the_stack |
-- The below script is used to install the sample for In-Memory Analytics in Azure SQL Database.
-- The sample requires a new Premium database, created based on the AdventureWorksLT sample.
--
-- Check edition.
/****** Object: Table [dbo].[DimGeography] Script Date: 10/23/2015 1:38:34 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER DATABASE CURRENT SET COMPATIBILITY_LEVEL=130
GO
If object_id('dbo.DimGeography') is not null
DROP TABLE [dbo].[DimGeography]
GO
CREATE TABLE [dbo].[DimGeography](
[GeographyKey] [int] IDENTITY(1,1) NOT NULL,
[GeographyAlternateKey] [int] NULL,
[City] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StateProvinceName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CountryRegionName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PostalCode] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_DimGeography_GeographyKey] PRIMARY KEY CLUSTERED
(
[GeographyKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
-- Populate Data
insert into DimGeography
select distinct AddressID,City,StateProvince,CountryRegion,PostalCode
from SalesLT.Address
-- select * from DimGeography
/****** Object: Table [dbo].[DimCustomer] Script Date: 10/23/2015 1:38:34 PM ******/
If object_id('dbo.DimCustomer') is not null
DROP TABLE [dbo].[DimCustomer]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DimCustomer](
[CustomerKey] [int] IDENTITY(1,1) NOT NULL,
[GeographyKey] [int] NULL,
[CustomerAlternateKey] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FirstName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MiddleName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Suffix] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EmailAddress] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
CONSTRAINT [PK_DimCustomer_CustomerKey] PRIMARY KEY CLUSTERED
(
[CustomerKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
-- Indexes
/****** Object: Index [IX_DimCustomer_CustomerAlternateKey] Script Date: 10/23/2015 1:38:34 PM ******/
CREATE NONCLUSTERED INDEX [IX_DimCustomer_CustomerAlternateKey] ON [dbo].[DimCustomer]
(
[CustomerAlternateKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
-- Populate Customer Dimension
insert into [DimCustomer]
select GeographyKey,a.CustomerID,a.FirstName,a.MiddleName,a.LastName,a.Suffix,a.EmailAddress
from SalesLT.Customer a
inner join SalesLT.CustomerAddress b on a.CustomerID = b.CustomerID
inner join DimGeography c on c.GeographyAlternateKey = b.AddressID
/****** Object: Table [dbo].[DimDate] Script Date: 10/23/2015 1:38:34 PM ******/
If object_id('dbo.DimDate') is not null
DROP TABLE [dbo].[DimDate]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DimDate](
[DateKey] [int] NOT NULL,
[FullDateAlternateKey] [date] NOT NULL,
[DayNumberOfWeek] [tinyint] NOT NULL,
[EnglishDayNameOfWeek] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DayNumberOfMonth] [tinyint] NOT NULL,
[DayNumberOfYear] [smallint] NOT NULL,
[WeekNumberOfYear] [tinyint] NOT NULL,
[MonthNumberOfYear] [tinyint] NOT NULL,
[EnglishMonthName] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Year] [smallint] NOT NULL
CONSTRAINT [PK_DimDate_DateKey] PRIMARY KEY CLUSTERED
(
[DateKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
-- Procedure to Populate Date Dimension
If object_id('dbo.spGenerateDateDimension') is not null
DROP PROCEDURE [dbo].[spGenerateDateDimension]
GO
Create Procedure [dbo].[spGenerateDateDimension]
@StartDate Date
, @EndDate Date
AS
;WITH DateList AS (
SELECT @StartDate AS [DateKey]
UNION ALL
SELECT DATEADD(DAY,1,[DateKey])
FROM DateList
WHERE DATEADD(DAY,1,[DateKey]) <= @EndDate
)
Insert into DimDate
select
[DateKey]= Cast(CONVERT(VARCHAR,[DateKey],112) as int) --YYYYMMDD
,[FullDateAlternateKey] = [DateKey]
-- week
,[DayNumberOfWeek] =DATEPART(WEEKDAY, [DateKey])
,[EnglishDayNameOfWeek] = DATENAME(WEEKDAY, [DateKey])
-- Month
,[DayNumberOfMonth] = DAY([DateKey])
--year
,[DayNumberOfYear] =DATEPART(DAYOFYEAR, [DateKey])
,[WeekNumberOfYear] = DATEPART(WEEK, [DateKey])
-- Year
, [MonthNumberOfYear] = DATEPART(MONTH, [DateKey])
, [EnglishMonthName] = DATENAME(MONTH, [DateKey])
,[Year] = YEAR([DateKey])
--into tbltest
from DateList
OPTION (MAXRECURSION 0)
GO
-- Populate Date Dimension
[spGenerateDateDimension] '1/1/2010', '1/1/2017'
GO
/****** Object: Index [AK_DimDate_FullDateAlternateKey] Script Date: 10/23/2015 1:38:34 PM ******/
CREATE UNIQUE NONCLUSTERED INDEX [AK_DimDate_FullDateAlternateKey] ON [dbo].[DimDate]
(
[FullDateAlternateKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
-- select * from DimDate
/****** Object: Table [dbo].[DimProductCategory] Script Date: 10/23/2015 1:38:34 PM ******/
If object_id('dbo.DimProductCategory') is not null
DROP TABLE [dbo].[DimProductCategory]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DimProductCategory](
[ProductCategoryKey] [int] IDENTITY(1,1) NOT NULL,
[ProductCategoryAlternateKey] [int] NULL,
[EnglishProductCategoryName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
CONSTRAINT [PK_DimProductCategory_ProductCategoryKey] PRIMARY KEY CLUSTERED
(
[ProductCategoryKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON),
CONSTRAINT [AK_DimProductCategory_ProductCategoryAlternateKey] UNIQUE NONCLUSTERED
(
[ProductCategoryAlternateKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
-- Populate
insert into DimProductCategory
SELECT [ProductCategoryID] ,[Name] FROM [SalesLT].[ProductCategory]
Where ParentProductCategoryID is NULL
/****** Object: Table [dbo].[DimProductSubcategory] Script Date: 10/23/2015 1:38:34 PM ******/
If object_id('dbo.DimProductSubcategory') is not null
DROP TABLE [dbo].[DimProductSubcategory]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DimProductSubcategory](
[ProductSubcategoryKey] [int] IDENTITY(1,1) NOT NULL,
[ProductSubcategoryAlternateKey] [int] NULL,
[EnglishProductSubcategoryName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ProductCategoryKey] [int] NULL,
CONSTRAINT [PK_DimProductSubcategory_ProductSubcategoryKey] PRIMARY KEY CLUSTERED
(
[ProductSubcategoryKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON),
CONSTRAINT [AK_DimProductSubcategory_ProductSubcategoryAlternateKey] UNIQUE NONCLUSTERED
(
[ProductSubcategoryAlternateKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
GO
-- Populate
insert into DimProductSubcategory
SELECT a.[ProductCategoryID] ,a.[Name],b.[ProductCategoryKey]
FROM [SalesLT].[ProductCategory] a
inner join DimProductCategory b on b.[ProductCategoryAlternateKey] = a.[ParentProductCategoryID]
-- select * from DimProductSubcategory
/****** Object: Table [dbo].[DimProduct] Script Date: 10/23/2015 1:38:34 PM ******/
If object_id('dbo.DimProduct') is not null
DROP TABLE [dbo].[DimProduct]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[DimProduct](
[ProductKey] [int] IDENTITY(1,1) NOT NULL,
[ProductAlternateKey] [int] NULL,
[ProductSubcategoryKey] [int] NULL,
[EnglishProductName] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ProductNumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Color] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StandardCost] [money] NULL,
[ListPrice] [money] NULL,
[Size] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Weight] [float] NULL,
[ProductModel] [nvarchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL
CONSTRAINT [PK_DimProduct_ProductKey] PRIMARY KEY CLUSTERED
(
[ProductKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON),
CONSTRAINT [AK_DimProduct_ProductAlternateKey_StartDate] UNIQUE NONCLUSTERED
(
[ProductAlternateKey] ASC,
[StartDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
-- Populate DimProduct
insert into [DimProduct]
SELECT [ProductID],a.ProductCategoryID ,a.[Name],[ProductNumber],[Color],[StandardCost],[ListPrice],[Size],[Weight]
, b.[Name],[SellStartDate],[SellEndDate]
from SalesLT.Product a
inner join SalesLT.ProductModel b on a.ProductModelID = b.ProductModelID
inner join DimProductSubCategory c on c.ProductSubcategoryAlternateKey = a.ProductCategoryID
-- select * from DimProduct
-- Fact Table
/****** Object: Table [dbo].[FactResellerSalesXL_CCI] Script Date: 10/23/2015 1:38:34 PM ******/
IF object_id('dbo.[FactResellerSalesXL_CCI]') is not null
DROP TABLE [dbo].[FactResellerSalesXL_CCI]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FactResellerSalesXL_CCI](
[ProductKey] [int] NOT NULL,
[OrderDateKey] [int] NOT NULL,
[DueDateKey] [int] NOT NULL,
[ShipDateKey] [int] NOT NULL,
[SalesOrderNumber] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SalesOrderLineNumber] [tinyint] NOT NULL,
[RevisionNumber] [tinyint] NULL,
[CustomerKey] [int] NULL,
[OrderQuantity] [smallint] NULL,
[UnitPrice] [money] NULL,
[UnitPriceDiscountPct] [float] NULL,
[DiscountAmount] [float] NULL,
[ProductStandardCost] [money] NULL,
[TotalProductCost] [money] NULL,
[SalesAmount] [money] NULL,
[TaxAmt] [money] NULL,
[LineTotal] numeric(38,6) NULL,
[Freight] [money] NULL,
[CarrierTrackingNumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerPONumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OrderDate] [smalldatetime] NULL,
[DueDate] [smalldatetime] NULL,
[ShipDate] [smalldatetime] NULL
)
GO
-- Create a Page Compressed Fact Table for performance comparisons
IF object_id('dbo.[FactResellerSalesXL_PageCompressed]') is not null
DROP TABLE [dbo].[FactResellerSalesXL_PageCompressed]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FactResellerSalesXL_PageCompressed](
[ProductKey] [int] NOT NULL,
[OrderDateKey] [int] NOT NULL,
[DueDateKey] [int] NOT NULL,
[ShipDateKey] [int] NOT NULL,
[SalesOrderNumber] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SalesOrderLineNumber] [tinyint] NOT NULL,
[RevisionNumber] [tinyint] NULL,
[CustomerKey] [int] NULL,
[OrderQuantity] [smallint] NULL,
[UnitPrice] [money] NULL,
[UnitPriceDiscountPct] [float] NULL,
[DiscountAmount] [float] NULL,
[ProductStandardCost] [money] NULL,
[TotalProductCost] [money] NULL,
[SalesAmount] [money] NULL,
[TaxAmt] [money] NULL,
[LineTotal] numeric(38,6) NULL,
[Freight] [money] NULL,
[CarrierTrackingNumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomerPONumber] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[OrderDate] [smalldatetime] NULL,
[DueDate] [smalldatetime] NULL,
[ShipDate] [smalldatetime] NULL
)
GO
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] WITH CHECK ADD
CONSTRAINT [PK_FactResellerSalesXL_PageCompressed_SalesOrderNumber_SalesOrderLineNumber] PRIMARY KEY CLUSTERED
(
[SalesOrderNumber] ASC,
[SalesOrderLineNumber] ASC
)WITH (PAD_INDEX = OFF, DATA_COMPRESSION = PAGE,STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
Select 'Created Tables.. Please wait Populating Data' as Status
GO
-- Number of rows distributed by date.
-- This script will take around 15 minutes to populate couple million rows in the fact table.
Select 'Please wait..FactResellerSalesXL_CCI being populated, may take 10-15 mins' as Status
GO
SET NOCOUNT ON
go
if object_id('tempdb..#temp') is not null
drop table #temp
SELECT ABS( DateKey - 20150000 ) % 500 as NumOrdersPerDay,DateKey,FullDateAlternateKey
into #temp
FROM DimDate
where datekey > 20120101 and datekey < 20151026
order by DateKey asc
-- Initialization
Declare @SalesOrder int = 5000
--select sum(ordersperDateKey) from #temp
-- Constant Fields per order
Declare @OrderDateKey int,
@DueDateKey int,
@ShipDateKey int,
@NumOrderLineItems int, -- manufactured.
@OrderDate datetime ,
@DueDate datetime ,
@ShipDate datetime,
@SalesOrderNumber nvarchar(25),
@NumOrdersPerDateKey int,
@NumSalesLineItems int
Declare @CustomerPONumber nvarchar(25),@CarrierTrackingNumber nvarchar(25)
-- Loop through each Date Key to insert that many rows.
DECLARE mycursor CURSOR
FOR SELECT NumOrdersPerDay,DateKey,FullDateAlternateKey from #temp
OPEN mycursor
FETCH NEXT FROM mycursor
INTO @NumOrdersPerDateKey, @OrderDateKey,@OrderDate
WHILE @@FETCH_STATUS = 0
BEGIN
-- Ship date is 6 days after, due date is 12 days after order for simplicity.
SELECT @ShipDate = dateadd(day,6,@OrderDate), @DueDate= dateadd(day,12,@OrderDate)
SELECT @ShipDateKey = DateKey from DimDate
where FullDateAlternateKey = @ShipDate
SELECT @DueDateKey = DateKey from DimDate
where FullDateAlternateKey = @DueDate
select @NumOrderLineItems = @NumOrdersPerDateKey %12 + 3
BEGIN TRAN
Declare @OrdersPerDateKey int = 0, @SalesOrderLineNumber int = 1, @i int = 1
while ( @OrdersPerDateKey < @NumOrdersPerDateKey )
BEGIN
select @SalesOrderNumber = N'SO' + cast(@SalesOrder as nvarchar(20))
,@CustomerPONumber='PO' + cast(@SalesOrder + 1234 as nvarchar(20))
,@CarrierTrackingNumber = Substring(cast(newid() as nvarchar(50)),0,14)
SET @SalesOrder = @SalesOrder + 1
;WITH Ordered AS (
SELECT ROW_NUMBER() OVER (ORDER BY SalesOrderDetailID) AS RowNumber,
SalesOrderID,OrderQty,ProductID,UnitPrice,UnitPriceDiscount,LineTotal
FROM SalesLT.SalesOrderDetail)
, OrderedDetails AS ( SELECT Rownumber,SalesOrderID,OrderQty,ProductID,UnitPrice,UnitPriceDiscount,LineTotal
FROM Ordered
WHERE RowNumber between @i and @i + @NumOrderLineItems)
insert into FactResellerSalesXL_CCI
select c.ProductKey, @OrderDateKey as OrderDateKey ,@DueDateKey as DueDateKey ,@ShipDateKey as ShipDateKey, @SalesOrderNumber as SalesOrderNumber
,RowNumber - @i+1 as SalesOrderLineNumber ,b.RevisionNumber,d.CustomerKey
, a.OrderQty as OrderQuantity,a.UnitPrice,a.UnitPriceDiscount as UnitPriceDiscountPct
, DiscountAmount = a.UnitPriceDiscount *c.ListPrice * a.OrderQty
,c.StandardCost as ProductStandardCost,TotalProductCost = a.OrderQty*c.StandardCost,b.SubTotal as SalesAmount,b.TaxAmt
,a.LineTotal, b.Freight
,@CarrierTrackingNumber as CarrierTrackingNumber,@CustomerPONumber as CustomerPONumber
,@OrderDate as OrderDate,@DueDate as DueDate,@ShipDate as ShipDate
From OrderedDetails a
inner join SalesLT.SalesOrderHeader b on a.SalesOrderID = b.SalesOrderID
inner join DimProduct c on a.ProductID = c.ProductAlternateKey
inner join DimCustomer d on d.CustomerAlternateKey = b.CustomerID
set @i = @i + @NumOrderLineItems
if @i > 542
set @i = 1
SET @OrdersPerDateKey = @OrdersPerDateKey + 1
END
COMMIT
FETCH NEXT FROM mycursor
INTO @NumOrdersPerDateKey, @OrderDateKey,@OrderDate
END
Close mycursor
deallocate mycursor
GO
Select 'FactResellerSalesXL_CCI Populated' as Status
GO
-- Create Index
/****** Object: Index [IndFactResellerSales_CCI] Script Date: 10/23/2015 1:38:34 PM ******/
CREATE CLUSTERED COLUMNSTORE INDEX [IndFactResellerSales_CCI] ON [dbo].[FactResellerSalesXL_CCI] WITH (MAXDOP = 1)
GO
-- Create Constraints
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] WITH CHECK ADD
CONSTRAINT [PK_FactResellerSalesXL_CCI_SalesOrderNumber_SalesOrderLineNumber] PRIMARY KEY
(
[SalesOrderNumber] ASC,
[SalesOrderLineNumber] ASC
)WITH (PAD_INDEX = OFF, DATA_COMPRESSION = PAGE,STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate] FOREIGN KEY([OrderDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] CHECK CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate]
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate1] FOREIGN KEY([DueDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] CHECK CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate1]
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate2] FOREIGN KEY([ShipDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] CHECK CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate2]
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_CCI_DimProduct] FOREIGN KEY([ProductKey])
REFERENCES [dbo].[DimProduct] ([ProductKey])
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] CHECK CONSTRAINT [FK_FactResellerSalesXL_CCI_DimProduct]
GO
Select 'FactResellerSalesXL_CCI Clustered Columnstore index created ' as Status
GO
-- Populate Page Compressed Table
insert into [FactResellerSalesXL_PageCompressed] WITH (TABLOCK) SELECT * from [FactResellerSalesXL_CCI]
GO
-- Create Constraints on the Page Compressed table
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimDate] FOREIGN KEY([OrderDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_CCI] CHECK CONSTRAINT [FK_FactResellerSalesXL_CCI_DimDate]
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimDate1] FOREIGN KEY([DueDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] CHECK CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimDate1]
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimDate2] FOREIGN KEY([ShipDateKey])
REFERENCES [dbo].[DimDate] ([DateKey])
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] CHECK CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimDate2]
GO
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] WITH CHECK ADD CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimProduct] FOREIGN KEY([ProductKey])
REFERENCES [dbo].[DimProduct] ([ProductKey])
ALTER TABLE [dbo].[FactResellerSalesXL_PageCompressed] CHECK CONSTRAINT [FK_FactResellerSalesXL_PageCompressed_DimProduct]
GO
Select 'FactResellerSalesXL_PageCompressed Populated' as Status
GO | the_stack |
-- MySQL Workbench Synchronization
-- Generated: 2017-12-22 10:34
-- Model: New Model
-- Version: 1.0
-- Project: Name of the project
-- Author: Philipp Dominik Schubert
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';
CREATE SCHEMA IF NOT EXISTS `phasardb` DEFAULT CHARACTER SET utf8 ;
CREATE TABLE IF NOT EXISTS `phasardb`.`function` (
`function_id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(512) NULL DEFAULT NULL,
`declaration` TINYINT(1) NULL DEFAULT NULL,
`hash` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`function_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`ifds_ide_summary` (
`ifds_ide_summary_id` INT(11) NOT NULL AUTO_INCREMENT,
`analysis` VARCHAR(512) NULL DEFAULT NULL,
`representation` BLOB NULL DEFAULT NULL,
PRIMARY KEY (`ifds_ide_summary_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module` (
`module_id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(512) NULL DEFAULT NULL,
`hash` VARCHAR(512) NULL DEFAULT NULL,
`code` BLOB NULL DEFAULT NULL,
PRIMARY KEY (`module_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`type` (
`type_id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`type_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`type_hierarchy` (
`type_hierarchy_id` INT(11) NOT NULL AUTO_INCREMENT,
`representation` BLOB NULL DEFAULT NULL,
`representation_ref` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`type_hierarchy_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`global_variable` (
`global_variable_id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(512) NULL DEFAULT NULL,
`declaration` TINYINT(1) NULL DEFAULT NULL,
PRIMARY KEY (`global_variable_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`callgraph` (
`callgraph_id` INT(11) NOT NULL AUTO_INCREMENT,
`representation` BLOB NULL DEFAULT NULL,
`representation_ref` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`callgraph_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`points-to_graph` (
`points-to_graph_id` INT(11) NOT NULL AUTO_INCREMENT,
`representation` BLOB NULL DEFAULT NULL,
`representation_ref` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`points-to_graph_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`project` (
`project_id` INT(11) NOT NULL AUTO_INCREMENT,
`identifier` VARCHAR(512) NULL DEFAULT NULL,
PRIMARY KEY (`project_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`project_has_module` (
`project_id` INT(11) NOT NULL,
`module_id` INT(11) NOT NULL,
PRIMARY KEY (`project_id`, `module_id`),
INDEX `fk_project_has_module_module1_idx` (`module_id` ASC),
INDEX `fk_project_has_module_project1_idx` (`project_id` ASC),
CONSTRAINT `fk_project_has_module_project1`
FOREIGN KEY (`project_id`)
REFERENCES `phasardb`.`project` (`project_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_project_has_module_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module_has_callgraph` (
`module_id` INT(11) NOT NULL,
`callgraph_id` INT(11) NOT NULL,
PRIMARY KEY (`module_id`, `callgraph_id`),
INDEX `fk_module_has_callgraph_callgraph1_idx` (`callgraph_id` ASC),
INDEX `fk_module_has_callgraph_module1_idx` (`module_id` ASC),
CONSTRAINT `fk_module_has_callgraph_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_module_has_callgraph_callgraph1`
FOREIGN KEY (`callgraph_id`)
REFERENCES `phasardb`.`callgraph` (`callgraph_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`callgraph_has_points-to_graph` (
`callgraph_id` INT(11) NOT NULL,
`points-to_graph_id` INT(11) NOT NULL,
PRIMARY KEY (`callgraph_id`, `points-to_graph_id`),
INDEX `fk_callgraph_has_points-to_graph_points-to_graph1_idx` (`points-to_graph_id` ASC),
INDEX `fk_callgraph_has_points-to_graph_callgraph1_idx` (`callgraph_id` ASC),
CONSTRAINT `fk_callgraph_has_points-to_graph_callgraph1`
FOREIGN KEY (`callgraph_id`)
REFERENCES `phasardb`.`callgraph` (`callgraph_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_callgraph_has_points-to_graph_points-to_graph1`
FOREIGN KEY (`points-to_graph_id`)
REFERENCES `phasardb`.`points-to_graph` (`points-to_graph_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module_has_function` (
`module_id` INT(11) NOT NULL,
`function_id` INT(11) NOT NULL,
PRIMARY KEY (`module_id`, `function_id`),
INDEX `fk_module_has_function_function1_idx` (`function_id` ASC),
INDEX `fk_module_has_function_module1_idx` (`module_id` ASC),
CONSTRAINT `fk_module_has_function_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_module_has_function_function1`
FOREIGN KEY (`function_id`)
REFERENCES `phasardb`.`function` (`function_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module_has_global_variable` (
`module_id` INT(11) NOT NULL,
`global_variable_id` INT(11) NOT NULL,
PRIMARY KEY (`module_id`, `global_variable_id`),
INDEX `fk_module_has_global_variable_global_variable1_idx` (`global_variable_id` ASC),
INDEX `fk_module_has_global_variable_module1_idx` (`module_id` ASC),
CONSTRAINT `fk_module_has_global_variable_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_module_has_global_variable_global_variable1`
FOREIGN KEY (`global_variable_id`)
REFERENCES `phasardb`.`global_variable` (`global_variable_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module_has_type_hierarchy` (
`module_id` INT(11) NOT NULL,
`type_hierarchy_id` INT(11) NOT NULL,
PRIMARY KEY (`module_id`, `type_hierarchy_id`),
INDEX `fk_module_has_type_hierarchy_type_hierarchy1_idx` (`type_hierarchy_id` ASC),
INDEX `fk_module_has_type_hierarchy_module1_idx` (`module_id` ASC),
CONSTRAINT `fk_module_has_type_hierarchy_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_module_has_type_hierarchy_type_hierarchy1`
FOREIGN KEY (`type_hierarchy_id`)
REFERENCES `phasardb`.`type_hierarchy` (`type_hierarchy_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`module_has_type` (
`module_id` INT(11) NOT NULL,
`type_id` INT(11) NOT NULL,
PRIMARY KEY (`module_id`, `type_id`),
INDEX `fk_module_has_type_type1_idx` (`type_id` ASC),
INDEX `fk_module_has_type_module1_idx` (`module_id` ASC),
CONSTRAINT `fk_module_has_type_module1`
FOREIGN KEY (`module_id`)
REFERENCES `phasardb`.`module` (`module_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_module_has_type_type1`
FOREIGN KEY (`type_id`)
REFERENCES `phasardb`.`type` (`type_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`type_hierarchy_has_type` (
`type_hierarchy_id` INT(11) NOT NULL,
`type_id` INT(11) NOT NULL,
PRIMARY KEY (`type_hierarchy_id`, `type_id`),
INDEX `fk_type_hierarchy_has_type_type1_idx` (`type_id` ASC),
INDEX `fk_type_hierarchy_has_type_type_hierarchy1_idx` (`type_hierarchy_id` ASC),
CONSTRAINT `fk_type_hierarchy_has_type_type_hierarchy1`
FOREIGN KEY (`type_hierarchy_id`)
REFERENCES `phasardb`.`type_hierarchy` (`type_hierarchy_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_type_hierarchy_has_type_type1`
FOREIGN KEY (`type_id`)
REFERENCES `phasardb`.`type` (`type_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`function_has_ifds_ide_summary` (
`function_id` INT(11) NOT NULL,
`ifds_ide_summary_id` INT(11) NOT NULL,
PRIMARY KEY (`function_id`, `ifds_ide_summary_id`),
INDEX `fk_function_has_ifds_ide_summary_ifds_ide_summary1_idx` (`ifds_ide_summary_id` ASC),
INDEX `fk_function_has_ifds_ide_summary_function1_idx` (`function_id` ASC),
CONSTRAINT `fk_function_has_ifds_ide_summary_function1`
FOREIGN KEY (`function_id`)
REFERENCES `phasardb`.`function` (`function_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_function_has_ifds_ide_summary_ifds_ide_summary1`
FOREIGN KEY (`ifds_ide_summary_id`)
REFERENCES `phasardb`.`ifds_ide_summary` (`ifds_ide_summary_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`function_has_points-to_graph` (
`function_id` INT(11) NOT NULL,
`points-to_graph_id` INT(11) NOT NULL,
PRIMARY KEY (`function_id`, `points-to_graph_id`),
INDEX `fk_function_has_points-to_graph_points-to_graph1_idx` (`points-to_graph_id` ASC),
INDEX `fk_function_has_points-to_graph_function1_idx` (`function_id` ASC),
CONSTRAINT `fk_function_has_points-to_graph_function1`
FOREIGN KEY (`function_id`)
REFERENCES `phasardb`.`function` (`function_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_function_has_points-to_graph_points-to_graph1`
FOREIGN KEY (`points-to_graph_id`)
REFERENCES `phasardb`.`points-to_graph` (`points-to_graph_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `phasardb`.`type_has_virtual_function` (
`type_id` INT(11) NOT NULL,
`function_id` INT(11) NOT NULL,
`vtable_index` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`type_id`, `function_id`),
INDEX `fk_type_has_function_function1_idx` (`function_id` ASC),
INDEX `fk_type_has_function_type1_idx` (`type_id` ASC),
CONSTRAINT `fk_type_has_function_type1`
FOREIGN KEY (`type_id`)
REFERENCES `phasardb`.`type` (`type_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_type_has_function_function1`
FOREIGN KEY (`function_id`)
REFERENCES `phasardb`.`function` (`function_id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8
COLLATE = utf8_unicode_ci;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; | the_stack |
--
-- This file was generated automatically --
--
use $(database)
go
--
-- _CheckMemoryAllocate
--
CREATE PROCEDURE [$(bingo)].z__CheckMemoryAllocate
@dotnet_size_mb int,
@block_size_mb int,
@core_size_mb int,
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._CheckMemoryAllocate
GO
ADD SIGNATURE TO [$(bingo)].z__CheckMemoryAllocate BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._CheckMemoryAllocate
@dotnet_size_mb int,
@block_size_mb int,
@core_size_mb int
AS
BEGIN
EXEC [$(bingo)].z__CheckMemoryAllocate @dotnet_size_mb, @block_size_mb, @core_size_mb, '$(bingo)'
END
GO
grant execute on [$(bingo)]._CheckMemoryAllocate to $(bingo)_operator
GO
--
-- _DropAllIndices
--
CREATE PROCEDURE [$(bingo)].z__DropAllIndices
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._DropAllIndices
GO
ADD SIGNATURE TO [$(bingo)].z__DropAllIndices BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._DropAllIndices
AS
BEGIN
EXEC [$(bingo)].z__DropAllIndices '$(bingo)'
END
GO
--
-- _DropIndexByID
--
CREATE PROCEDURE [$(bingo)].z__DropIndexByID
@table_id int,
@database_id int,
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._DropIndexByID
GO
ADD SIGNATURE TO [$(bingo)].z__DropIndexByID BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._DropIndexByID
@table_id int,
@database_id int
AS
BEGIN
EXEC [$(bingo)].z__DropIndexByID @table_id, @database_id, '$(bingo)'
END
GO
grant execute on [$(bingo)]._DropIndexByID to $(bingo)_operator
GO
--
-- _FlushInAllSessions
--
CREATE PROCEDURE [$(bingo)].z__FlushInAllSessions
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._FlushInAllSessions
GO
ADD SIGNATURE TO [$(bingo)].z__FlushInAllSessions BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._FlushInAllSessions
AS
BEGIN
EXEC [$(bingo)].z__FlushInAllSessions '$(bingo)'
END
GO
--
-- _ForceGC
--
CREATE PROCEDURE [$(bingo)].z__ForceGC
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.BingoSqlUtils]._ForceGC
GO
ADD SIGNATURE TO [$(bingo)].z__ForceGC BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._ForceGC
AS
BEGIN
EXEC [$(bingo)].z__ForceGC
END
GO
--
-- _OnDeleteRecordTrigger
--
CREATE PROCEDURE [$(bingo)].z__OnDeleteRecordTrigger
@table_id int,
@database_id int,
@tmp_table_name nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._OnDeleteRecordTrigger
GO
ADD SIGNATURE TO [$(bingo)].z__OnDeleteRecordTrigger BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._OnDeleteRecordTrigger
@table_id int,
@database_id int,
@tmp_table_name nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z__OnDeleteRecordTrigger @table_id, @database_id, @tmp_table_name, '$(bingo)'
END
GO
grant execute on [$(bingo)]._OnDeleteRecordTrigger to $(bingo)_operator
GO
--
-- _OnInsertRecordTrigger
--
CREATE PROCEDURE [$(bingo)].z__OnInsertRecordTrigger
@table_id int,
@database_id int,
@tmp_table_name nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo]._OnInsertRecordTrigger
GO
ADD SIGNATURE TO [$(bingo)].z__OnInsertRecordTrigger BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._OnInsertRecordTrigger
@table_id int,
@database_id int,
@tmp_table_name nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z__OnInsertRecordTrigger @table_id, @database_id, @tmp_table_name, '$(bingo)'
END
GO
grant execute on [$(bingo)]._OnInsertRecordTrigger to $(bingo)_operator
GO
--
-- _WriteLog
--
CREATE PROCEDURE [$(bingo)].z__WriteLog
@message nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.BingoLog]._WriteLog
GO
ADD SIGNATURE TO [$(bingo)].z__WriteLog BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)]._WriteLog
@message nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z__WriteLog @message
END
GO
--
-- AAM
--
CREATE FUNCTION [$(bingo)].z_AAM
(
@reaction varbinary(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].AAM
GO
ADD SIGNATURE TO [$(bingo)].z_AAM BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].AAM
(
@reaction varchar(max),
@options nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_AAM (cast(@reaction as VARBINARY(max)), @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].AAM to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].AAMB
(
@reaction varbinary(max),
@options nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_AAM (@reaction, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].AAMB to $(bingo)_reader
GO
--
-- CanSmiles
--
CREATE FUNCTION [$(bingo)].z_CanSmiles
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CanSmiles
GO
ADD SIGNATURE TO [$(bingo)].z_CanSmiles BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CanSmiles
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CanSmiles (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].CanSmiles to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CanSmilesB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CanSmiles (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].CanSmilesB to $(bingo)_reader
GO
--
-- CheckMolecule
--
CREATE FUNCTION [$(bingo)].z_CheckMolecule
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CheckMolecule
GO
ADD SIGNATURE TO [$(bingo)].z_CheckMolecule BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CheckMolecule
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CheckMolecule (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].CheckMolecule to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CheckMoleculeB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CheckMolecule (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].CheckMoleculeB to $(bingo)_reader
GO
--
-- CheckMoleculeTable
--
CREATE FUNCTION [$(bingo)].z_CheckMoleculeTable
(
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, msg nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CheckMoleculeTable
GO
ADD SIGNATURE TO [$(bingo)].z_CheckMoleculeTable BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CheckMoleculeTable
(
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_CheckMoleculeTable (@table, @id_column, @data_column, '$(bingo)'))
GO
grant select on [$(bingo)].CheckMoleculeTable to $(bingo)_reader
GO
--
-- CheckReaction
--
CREATE FUNCTION [$(bingo)].z_CheckReaction
(
@reaction varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CheckReaction
GO
ADD SIGNATURE TO [$(bingo)].z_CheckReaction BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CheckReaction
(
@reaction varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CheckReaction (cast(@reaction as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].CheckReaction to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CheckReactionB
(
@reaction varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CheckReaction (@reaction, '$(bingo)')
END
GO
grant execute on [$(bingo)].CheckReactionB to $(bingo)_reader
GO
--
-- CheckReactionTable
--
CREATE FUNCTION [$(bingo)].z_CheckReactionTable
(
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, msg nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CheckReactionTable
GO
ADD SIGNATURE TO [$(bingo)].z_CheckReactionTable BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CheckReactionTable
(
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_CheckReactionTable (@table, @id_column, @data_column, '$(bingo)'))
GO
grant select on [$(bingo)].CheckReactionTable to $(bingo)_reader
GO
--
-- CML
--
CREATE FUNCTION [$(bingo)].z_CML
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CML
GO
ADD SIGNATURE TO [$(bingo)].z_CML BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CML
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CML (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].CML to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CMLB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_CML (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].CMLB to $(bingo)_reader
GO
--
-- CompactMolecule
--
CREATE FUNCTION [$(bingo)].z_CompactMolecule
(
@molecule varbinary(max),
@save_xyz bit,
@bingo_schema nvarchar(max)
)
RETURNS varbinary(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CompactMolecule
GO
ADD SIGNATURE TO [$(bingo)].z_CompactMolecule BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CompactMolecule
(
@molecule varchar(max),
@save_xyz bit
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_CompactMolecule (cast(@molecule as VARBINARY(max)), @save_xyz, '$(bingo)')
END
GO
grant execute on [$(bingo)].CompactMolecule to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CompactMoleculeB
(
@molecule varbinary(max),
@save_xyz bit
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_CompactMolecule (@molecule, @save_xyz, '$(bingo)')
END
GO
grant execute on [$(bingo)].CompactMoleculeB to $(bingo)_reader
GO
--
-- CompactReaction
--
CREATE FUNCTION [$(bingo)].z_CompactReaction
(
@reaction varbinary(max),
@save_xyz bit,
@bingo_schema nvarchar(max)
)
RETURNS varbinary(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CompactReaction
GO
ADD SIGNATURE TO [$(bingo)].z_CompactReaction BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].CompactReaction
(
@reaction varchar(max),
@save_xyz bit
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_CompactReaction (cast(@reaction as VARBINARY(max)), @save_xyz, '$(bingo)')
END
GO
grant execute on [$(bingo)].CompactReaction to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].CompactReactionB
(
@reaction varbinary(max),
@save_xyz bit
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_CompactReaction (@reaction, @save_xyz, '$(bingo)')
END
GO
grant execute on [$(bingo)].CompactReactionB to $(bingo)_reader
GO
--
-- CreateMoleculeIndex
--
CREATE PROCEDURE [$(bingo)].z_CreateMoleculeIndex
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CreateMoleculeIndex
GO
ADD SIGNATURE TO [$(bingo)].z_CreateMoleculeIndex BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].CreateMoleculeIndex
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_CreateMoleculeIndex @table, @id_column, @data_column, '$(bingo)'
END
GO
grant execute on [$(bingo)].CreateMoleculeIndex to $(bingo)_operator
GO
--
-- CreateReactionIndex
--
CREATE PROCEDURE [$(bingo)].z_CreateReactionIndex
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].CreateReactionIndex
GO
ADD SIGNATURE TO [$(bingo)].z_CreateReactionIndex BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].CreateReactionIndex
@table nvarchar(max),
@id_column nvarchar(max),
@data_column nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_CreateReactionIndex @table, @id_column, @data_column, '$(bingo)'
END
GO
grant execute on [$(bingo)].CreateReactionIndex to $(bingo)_operator
GO
--
-- DropIndex
--
CREATE PROCEDURE [$(bingo)].z_DropIndex
@table nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].DropIndex
GO
ADD SIGNATURE TO [$(bingo)].z_DropIndex BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].DropIndex
@table nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_DropIndex @table, '$(bingo)'
END
GO
grant execute on [$(bingo)].DropIndex to $(bingo)_operator
GO
--
-- DropInvalidIndices
--
CREATE PROCEDURE [$(bingo)].z_DropInvalidIndices
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].DropInvalidIndices
GO
ADD SIGNATURE TO [$(bingo)].z_DropInvalidIndices BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].DropInvalidIndices
AS
BEGIN
EXEC [$(bingo)].z_DropInvalidIndices '$(bingo)'
END
GO
grant execute on [$(bingo)].DropInvalidIndices to $(bingo)_operator
GO
--
-- Exact
--
CREATE FUNCTION [$(bingo)].z_Exact
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Exact
GO
ADD SIGNATURE TO [$(bingo)].z_Exact BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Exact
(
@target varchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_Exact (cast(@target as VARBINARY(max)), @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].Exact to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].ExactB
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_Exact (@target, @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].ExactB to $(bingo)_reader
GO
--
-- ExportSDF
--
CREATE PROCEDURE [$(bingo)].z_ExportSDF
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ExportSDF
GO
ADD SIGNATURE TO [$(bingo)].z_ExportSDF BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].ExportSDF
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_ExportSDF @table_name, @mol_column_name, @file_name, @additional_parameters
END
GO
grant execute on [$(bingo)].ExportSDF to $(bingo)_operator
GO
--
-- Fingerprint
--
CREATE FUNCTION [$(bingo)].z_Fingerprint
(
@molecule varbinary(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS varbinary(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Fingerprint
GO
ADD SIGNATURE TO [$(bingo)].z_Fingerprint BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Fingerprint
(
@molecule varchar(max),
@options nvarchar(max)
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_Fingerprint (cast(@molecule as VARBINARY(max)), @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].Fingerprint to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].FingerprintB
(
@molecule varbinary(max),
@options nvarchar(max)
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_Fingerprint (@molecule, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].FingerprintB to $(bingo)_reader
GO
--
-- FlushOperations
--
CREATE PROCEDURE [$(bingo)].z_FlushOperations
@table_name nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].FlushOperations
GO
ADD SIGNATURE TO [$(bingo)].z_FlushOperations BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].FlushOperations
@table_name nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_FlushOperations @table_name, '$(bingo)'
END
GO
grant execute on [$(bingo)].FlushOperations to $(bingo)_operator
GO
--
-- GetAtomCount
--
CREATE FUNCTION [$(bingo)].z_GetAtomCount
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].GetAtomCount
GO
ADD SIGNATURE TO [$(bingo)].z_GetAtomCount BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].GetAtomCount
(
@molecule varchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_GetAtomCount (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].GetAtomCount to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].GetAtomCountB
(
@molecule varbinary(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_GetAtomCount (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].GetAtomCountB to $(bingo)_reader
GO
--
-- GetBondCount
--
CREATE FUNCTION [$(bingo)].z_GetBondCount
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].GetBondCount
GO
ADD SIGNATURE TO [$(bingo)].z_GetBondCount BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].GetBondCount
(
@molecule varchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_GetBondCount (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].GetBondCount to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].GetBondCountB
(
@molecule varbinary(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_GetBondCount (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].GetBondCountB to $(bingo)_reader
GO
--
-- GetStatistics
--
CREATE FUNCTION [$(bingo)].z_GetStatistics
(
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].GetStatistics
GO
ADD SIGNATURE TO [$(bingo)].z_GetStatistics BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].GetStatistics
(
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_GetStatistics ('$(bingo)')
END
GO
grant execute on [$(bingo)].GetStatistics to $(bingo)_operator
GO
--
-- GetVersion
--
CREATE FUNCTION [$(bingo)].z_GetVersion
(
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].GetVersion
GO
ADD SIGNATURE TO [$(bingo)].z_GetVersion BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].GetVersion
(
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_GetVersion ('$(bingo)')
END
GO
grant execute on [$(bingo)].GetVersion to $(bingo)_reader
GO
--
-- Gross
--
CREATE FUNCTION [$(bingo)].z_Gross
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Gross
GO
ADD SIGNATURE TO [$(bingo)].z_Gross BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Gross
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Gross (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].Gross to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].GrossB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Gross (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].GrossB to $(bingo)_reader
GO
--
-- ImportRDF
--
CREATE PROCEDURE [$(bingo)].z_ImportRDF
@table_name nvarchar(max),
@react_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ImportRDF
GO
ADD SIGNATURE TO [$(bingo)].z_ImportRDF BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].ImportRDF
@table_name nvarchar(max),
@react_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_ImportRDF @table_name, @react_column_name, @file_name, @additional_parameters, '$(bingo)'
END
GO
grant execute on [$(bingo)].ImportRDF to $(bingo)_operator
GO
--
-- ImportSDF
--
CREATE PROCEDURE [$(bingo)].z_ImportSDF
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ImportSDF
GO
ADD SIGNATURE TO [$(bingo)].z_ImportSDF BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].ImportSDF
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@additional_parameters nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_ImportSDF @table_name, @mol_column_name, @file_name, @additional_parameters, '$(bingo)'
END
GO
grant execute on [$(bingo)].ImportSDF to $(bingo)_operator
GO
--
-- ImportSMILES
--
CREATE PROCEDURE [$(bingo)].z_ImportSMILES
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@id_column_name nvarchar(max),
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ImportSMILES
GO
ADD SIGNATURE TO [$(bingo)].z_ImportSMILES BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].ImportSMILES
@table_name nvarchar(max),
@mol_column_name nvarchar(max),
@file_name nvarchar(max),
@id_column_name nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_ImportSMILES @table_name, @mol_column_name, @file_name, @id_column_name, '$(bingo)'
END
GO
grant execute on [$(bingo)].ImportSMILES to $(bingo)_operator
GO
--
-- InChI
--
CREATE FUNCTION [$(bingo)].z_InChI
(
@molecule varbinary(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].InChI
GO
ADD SIGNATURE TO [$(bingo)].z_InChI BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].InChI
(
@molecule varchar(max),
@options nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_InChI (cast(@molecule as VARBINARY(max)), @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].InChI to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].InChIB
(
@molecule varbinary(max),
@options nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_InChI (@molecule, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].InChIB to $(bingo)_reader
GO
--
-- InChIKey
--
CREATE FUNCTION [$(bingo)].z_InChIKey
(
@inchi nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].InChIKey
GO
ADD SIGNATURE TO [$(bingo)].z_InChIKey BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].InChIKey
(
@inchi nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_InChIKey (@inchi, '$(bingo)')
END
GO
grant execute on [$(bingo)].InChIKey to $(bingo)_reader
GO
--
-- Mass
--
CREATE FUNCTION [$(bingo)].z_Mass
(
@molecule varbinary(max),
@type nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS real
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Mass
GO
ADD SIGNATURE TO [$(bingo)].z_Mass BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Mass
(
@molecule varchar(max),
@type nvarchar(max)
)
RETURNS real
AS
BEGIN
RETURN [$(bingo)].z_Mass (cast(@molecule as VARBINARY(max)), @type, '$(bingo)')
END
GO
grant execute on [$(bingo)].Mass to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].MassB
(
@molecule varbinary(max),
@type nvarchar(max)
)
RETURNS real
AS
BEGIN
RETURN [$(bingo)].z_Mass (@molecule, @type, '$(bingo)')
END
GO
grant execute on [$(bingo)].MassB to $(bingo)_reader
GO
--
-- Molfile
--
CREATE FUNCTION [$(bingo)].z_Molfile
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Molfile
GO
ADD SIGNATURE TO [$(bingo)].z_Molfile BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Molfile
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Molfile (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].Molfile to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].MolfileB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Molfile (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].MolfileB to $(bingo)_reader
GO
--
-- Name
--
CREATE FUNCTION [$(bingo)].z_Name
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Name
GO
ADD SIGNATURE TO [$(bingo)].z_Name BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Name
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Name (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].Name to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].NameB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Name (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].NameB to $(bingo)_reader
GO
--
-- OnSessionClose
--
CREATE PROCEDURE [$(bingo)].z_OnSessionClose
@spid_str nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].OnSessionClose
GO
ADD SIGNATURE TO [$(bingo)].z_OnSessionClose BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].OnSessionClose
@spid_str nvarchar(max)
AS
BEGIN
EXEC [$(bingo)].z_OnSessionClose @spid_str
END
GO
--
-- ProfilingGetCount
--
CREATE FUNCTION [$(bingo)].z_ProfilingGetCount
(
@counter_name nvarchar(max),
@whole_session bit,
@bingo_schema nvarchar(max)
)
RETURNS bigint
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ProfilingGetCount
GO
ADD SIGNATURE TO [$(bingo)].z_ProfilingGetCount BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].ProfilingGetCount
(
@counter_name nvarchar(max),
@whole_session bit
)
RETURNS bigint
AS
BEGIN
RETURN [$(bingo)].z_ProfilingGetCount (@counter_name, @whole_session, '$(bingo)')
END
GO
grant execute on [$(bingo)].ProfilingGetCount to $(bingo)_operator
GO
--
-- ProfilingGetTime
--
CREATE FUNCTION [$(bingo)].z_ProfilingGetTime
(
@counter_name nvarchar(max),
@whole_session bit,
@bingo_schema nvarchar(max)
)
RETURNS real
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ProfilingGetTime
GO
ADD SIGNATURE TO [$(bingo)].z_ProfilingGetTime BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].ProfilingGetTime
(
@counter_name nvarchar(max),
@whole_session bit
)
RETURNS real
AS
BEGIN
RETURN [$(bingo)].z_ProfilingGetTime (@counter_name, @whole_session, '$(bingo)')
END
GO
grant execute on [$(bingo)].ProfilingGetTime to $(bingo)_operator
GO
--
-- ProfilingGetValue
--
CREATE FUNCTION [$(bingo)].z_ProfilingGetValue
(
@counter_name nvarchar(max),
@whole_session bit,
@bingo_schema nvarchar(max)
)
RETURNS bigint
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ProfilingGetValue
GO
ADD SIGNATURE TO [$(bingo)].z_ProfilingGetValue BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].ProfilingGetValue
(
@counter_name nvarchar(max),
@whole_session bit
)
RETURNS bigint
AS
BEGIN
RETURN [$(bingo)].z_ProfilingGetValue (@counter_name, @whole_session, '$(bingo)')
END
GO
grant execute on [$(bingo)].ProfilingGetValue to $(bingo)_operator
GO
--
-- RCML
--
CREATE FUNCTION [$(bingo)].z_RCML
(
@reaction varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RCML
GO
ADD SIGNATURE TO [$(bingo)].z_RCML BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RCML
(
@reaction varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RCML (cast(@reaction as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].RCML to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RCMLB
(
@reaction varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RCML (@reaction, '$(bingo)')
END
GO
grant execute on [$(bingo)].RCMLB to $(bingo)_reader
GO
--
-- ReadFileAsBinary
--
CREATE FUNCTION [$(bingo)].z_ReadFileAsBinary
(
@filename nvarchar(max)
)
RETURNS varbinary(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.BingoSqlUtils].ReadFileAsBinary
GO
ADD SIGNATURE TO [$(bingo)].z_ReadFileAsBinary BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].ReadFileAsBinary
(
@filename nvarchar(max)
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_ReadFileAsBinary (@filename)
END
GO
grant execute on [$(bingo)].ReadFileAsBinary to $(bingo)_operator
GO
--
-- ReadFileAsText
--
CREATE FUNCTION [$(bingo)].z_ReadFileAsText
(
@filename nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.BingoSqlUtils].ReadFileAsText
GO
ADD SIGNATURE TO [$(bingo)].z_ReadFileAsText BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].ReadFileAsText
(
@filename nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_ReadFileAsText (@filename)
END
GO
grant execute on [$(bingo)].ReadFileAsText to $(bingo)_operator
GO
--
-- ResetStatistics
--
CREATE PROCEDURE [$(bingo)].z_ResetStatistics
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].ResetStatistics
GO
ADD SIGNATURE TO [$(bingo)].z_ResetStatistics BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].ResetStatistics
AS
BEGIN
EXEC [$(bingo)].z_ResetStatistics '$(bingo)'
END
GO
grant execute on [$(bingo)].ResetStatistics to $(bingo)_operator
GO
--
-- RExact
--
CREATE FUNCTION [$(bingo)].z_RExact
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RExact
GO
ADD SIGNATURE TO [$(bingo)].z_RExact BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RExact
(
@target varchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RExact (cast(@target as VARBINARY(max)), @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].RExact to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RExactB
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RExact (@target, @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].RExactB to $(bingo)_reader
GO
--
-- RFingerprint
--
CREATE FUNCTION [$(bingo)].z_RFingerprint
(
@reaction varbinary(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS varbinary(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RFingerprint
GO
ADD SIGNATURE TO [$(bingo)].z_RFingerprint BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RFingerprint
(
@reaction varchar(max),
@options nvarchar(max)
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_RFingerprint (cast(@reaction as VARBINARY(max)), @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].RFingerprint to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RFingerprintB
(
@reaction varbinary(max),
@options nvarchar(max)
)
RETURNS varbinary(max)
AS
BEGIN
RETURN [$(bingo)].z_RFingerprint (@reaction, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].RFingerprintB to $(bingo)_reader
GO
--
-- RSMARTS
--
CREATE FUNCTION [$(bingo)].z_RSMARTS
(
@target varbinary(max),
@query nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RSMARTS
GO
ADD SIGNATURE TO [$(bingo)].z_RSMARTS BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RSMARTS
(
@target varchar(max),
@query nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RSMARTS (cast(@target as VARBINARY(max)), @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSMARTS to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RSMARTSB
(
@target varbinary(max),
@query nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RSMARTS (@target, @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSMARTSB to $(bingo)_reader
GO
--
-- RSMARTSHi
--
CREATE FUNCTION [$(bingo)].z_RSMARTSHi
(
@target varbinary(max),
@query nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RSMARTSHi
GO
ADD SIGNATURE TO [$(bingo)].z_RSMARTSHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RSMARTSHi
(
@target varchar(max),
@query nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSMARTSHi (cast(@target as VARBINARY(max)), @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSMARTSHi to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RSMARTSHiB
(
@target varbinary(max),
@query nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSMARTSHi (@target, @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSMARTSHiB to $(bingo)_reader
GO
--
-- RSmiles
--
CREATE FUNCTION [$(bingo)].z_RSmiles
(
@reaction varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RSmiles
GO
ADD SIGNATURE TO [$(bingo)].z_RSmiles BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RSmiles
(
@reaction varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSmiles (cast(@reaction as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].RSmiles to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RSmilesB
(
@reaction varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSmiles (@reaction, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSmilesB to $(bingo)_reader
GO
--
-- RSub
--
CREATE FUNCTION [$(bingo)].z_RSub
(
@target varbinary(max),
@query nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RSub
GO
ADD SIGNATURE TO [$(bingo)].z_RSub BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RSub
(
@target varchar(max),
@query nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RSub (cast(@target as VARBINARY(max)), @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSub to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RSubB
(
@target varbinary(max),
@query nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_RSub (@target, @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSubB to $(bingo)_reader
GO
--
-- RSubHi
--
CREATE FUNCTION [$(bingo)].z_RSubHi
(
@target varbinary(max),
@query nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].RSubHi
GO
ADD SIGNATURE TO [$(bingo)].z_RSubHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].RSubHi
(
@target varchar(max),
@query nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSubHi (cast(@target as VARBINARY(max)), @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSubHi to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RSubHiB
(
@target varbinary(max),
@query nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_RSubHi (@target, @query, '$(bingo)')
END
GO
grant execute on [$(bingo)].RSubHiB to $(bingo)_reader
GO
--
-- Rxnfile
--
CREATE FUNCTION [$(bingo)].z_Rxnfile
(
@reaction varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Rxnfile
GO
ADD SIGNATURE TO [$(bingo)].z_Rxnfile BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Rxnfile
(
@reaction varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Rxnfile (cast(@reaction as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].Rxnfile to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].RxnfileB
(
@reaction varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Rxnfile (@reaction, '$(bingo)')
END
GO
grant execute on [$(bingo)].RxnfileB to $(bingo)_reader
GO
--
-- SearchExact
--
CREATE FUNCTION [$(bingo)].z_SearchExact
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchExact
GO
ADD SIGNATURE TO [$(bingo)].z_SearchExact BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchExact
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchExact (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchExact to $(bingo)_reader
GO
--
-- SearchGross
--
CREATE FUNCTION [$(bingo)].z_SearchGross
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchGross
GO
ADD SIGNATURE TO [$(bingo)].z_SearchGross BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchGross
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchGross (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchGross to $(bingo)_reader
GO
--
-- SearchMolecularWeight
--
CREATE FUNCTION [$(bingo)].z_SearchMolecularWeight
(
@table nvarchar(max),
@min_bound float,
@max_bound float,
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, weight real)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchMolecularWeight
GO
ADD SIGNATURE TO [$(bingo)].z_SearchMolecularWeight BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchMolecularWeight
(
@table nvarchar(max),
@min_bound float,
@max_bound float,
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchMolecularWeight (@table, @min_bound, @max_bound, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchMolecularWeight to $(bingo)_reader
GO
--
-- SearchRExact
--
CREATE FUNCTION [$(bingo)].z_SearchRExact
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchRExact
GO
ADD SIGNATURE TO [$(bingo)].z_SearchRExact BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchRExact
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchRExact (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchRExact to $(bingo)_reader
GO
--
-- SearchRSMARTS
--
CREATE FUNCTION [$(bingo)].z_SearchRSMARTS
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchRSMARTS
GO
ADD SIGNATURE TO [$(bingo)].z_SearchRSMARTS BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchRSMARTS
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchRSMARTS (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchRSMARTS to $(bingo)_reader
GO
--
-- SearchRSMARTSHi
--
CREATE FUNCTION [$(bingo)].z_SearchRSMARTSHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, highlighting nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchRSMARTSHi
GO
ADD SIGNATURE TO [$(bingo)].z_SearchRSMARTSHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchRSMARTSHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchRSMARTSHi (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchRSMARTSHi to $(bingo)_reader
GO
--
-- SearchRSub
--
CREATE FUNCTION [$(bingo)].z_SearchRSub
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchRSub
GO
ADD SIGNATURE TO [$(bingo)].z_SearchRSub BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchRSub
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchRSub (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchRSub to $(bingo)_reader
GO
--
-- SearchRSubHi
--
CREATE FUNCTION [$(bingo)].z_SearchRSubHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, highlighting nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchRSubHi
GO
ADD SIGNATURE TO [$(bingo)].z_SearchRSubHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchRSubHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchRSubHi (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchRSubHi to $(bingo)_reader
GO
--
-- SearchSim
--
CREATE FUNCTION [$(bingo)].z_SearchSim
(
@table nvarchar(max),
@query nvarchar(max),
@metric nvarchar(max),
@bingo_schema nvarchar(max),
@min_bound float,
@max_bound float
)
RETURNS TABLE (id int, similarity real)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchSim
GO
ADD SIGNATURE TO [$(bingo)].z_SearchSim BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchSim
(
@table nvarchar(max),
@query nvarchar(max),
@metric nvarchar(max),
@min_bound float,
@max_bound float
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchSim (@table, @query, @metric, '$(bingo)', @min_bound, @max_bound))
GO
grant select on [$(bingo)].SearchSim to $(bingo)_reader
GO
--
-- SearchSMARTS
--
CREATE FUNCTION [$(bingo)].z_SearchSMARTS
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchSMARTS
GO
ADD SIGNATURE TO [$(bingo)].z_SearchSMARTS BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchSMARTS
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchSMARTS (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchSMARTS to $(bingo)_reader
GO
--
-- SearchSMARTSHi
--
CREATE FUNCTION [$(bingo)].z_SearchSMARTSHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, highlighting nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchSMARTSHi
GO
ADD SIGNATURE TO [$(bingo)].z_SearchSMARTSHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchSMARTSHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchSMARTSHi (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchSMARTSHi to $(bingo)_reader
GO
--
-- SearchSub
--
CREATE FUNCTION [$(bingo)].z_SearchSub
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchSub
GO
ADD SIGNATURE TO [$(bingo)].z_SearchSub BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchSub
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchSub (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchSub to $(bingo)_reader
GO
--
-- SearchSubHi
--
CREATE FUNCTION [$(bingo)].z_SearchSubHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS TABLE (id int, highlighting nvarchar(max))
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SearchSubHi
GO
ADD SIGNATURE TO [$(bingo)].z_SearchSubHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SearchSubHi
(
@table nvarchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS TABLE
AS
RETURN (SELECT * FROM [$(bingo)].z_SearchSubHi (@table, @query, @options, '$(bingo)'))
GO
grant select on [$(bingo)].SearchSubHi to $(bingo)_reader
GO
--
-- SetKeepCache
--
CREATE PROCEDURE [$(bingo)].z_SetKeepCache
@table nvarchar(max),
@value bit,
@bingo_schema nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SetKeepCache
GO
ADD SIGNATURE TO [$(bingo)].z_SetKeepCache BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE PROCEDURE [$(bingo)].SetKeepCache
@table nvarchar(max),
@value bit
AS
BEGIN
EXEC [$(bingo)].z_SetKeepCache @table, @value, '$(bingo)'
END
GO
grant execute on [$(bingo)].SetKeepCache to $(bingo)_operator
GO
--
-- Sim
--
CREATE FUNCTION [$(bingo)].z_Sim
(
@target varbinary(max),
@query nvarchar(max),
@metrics nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS real
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Sim
GO
ADD SIGNATURE TO [$(bingo)].z_Sim BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Sim
(
@target varchar(max),
@query nvarchar(max),
@metrics nvarchar(max)
)
RETURNS real
AS
BEGIN
RETURN [$(bingo)].z_Sim (cast(@target as VARBINARY(max)), @query, @metrics, '$(bingo)')
END
GO
grant execute on [$(bingo)].Sim to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SimB
(
@target varbinary(max),
@query nvarchar(max),
@metrics nvarchar(max)
)
RETURNS real
AS
BEGIN
RETURN [$(bingo)].z_Sim (@target, @query, @metrics, '$(bingo)')
END
GO
grant execute on [$(bingo)].SimB to $(bingo)_reader
GO
--
-- SMARTS
--
CREATE FUNCTION [$(bingo)].z_SMARTS
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SMARTS
GO
ADD SIGNATURE TO [$(bingo)].z_SMARTS BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SMARTS
(
@target varchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_SMARTS (cast(@target as VARBINARY(max)), @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].SMARTS to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SMARTSB
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_SMARTS (@target, @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].SMARTSB to $(bingo)_reader
GO
--
-- SMARTSHi
--
CREATE FUNCTION [$(bingo)].z_SMARTSHi
(
@target varbinary(max),
@query nvarchar(max),
@parameters nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SMARTSHi
GO
ADD SIGNATURE TO [$(bingo)].z_SMARTSHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SMARTSHi
(
@target varchar(max),
@query nvarchar(max),
@parameters nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_SMARTSHi (cast(@target as VARBINARY(max)), @query, @parameters, '$(bingo)')
END
GO
grant execute on [$(bingo)].SMARTSHi to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SMARTSHiB
(
@target varbinary(max),
@query nvarchar(max),
@parameters nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_SMARTSHi (@target, @query, @parameters, '$(bingo)')
END
GO
grant execute on [$(bingo)].SMARTSHiB to $(bingo)_reader
GO
--
-- Smiles
--
CREATE FUNCTION [$(bingo)].z_Smiles
(
@molecule varbinary(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Smiles
GO
ADD SIGNATURE TO [$(bingo)].z_Smiles BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Smiles
(
@molecule varchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Smiles (cast(@molecule as VARBINARY(max)), '$(bingo)')
END
GO
grant execute on [$(bingo)].Smiles to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SmilesB
(
@molecule varbinary(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_Smiles (@molecule, '$(bingo)')
END
GO
grant execute on [$(bingo)].SmilesB to $(bingo)_reader
GO
--
-- Sub
--
CREATE FUNCTION [$(bingo)].z_Sub
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS int
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].Sub
GO
ADD SIGNATURE TO [$(bingo)].z_Sub BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].Sub
(
@target varchar(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_Sub (cast(@target as VARBINARY(max)), @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].Sub to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SubB
(
@target varbinary(max),
@query nvarchar(max),
@options nvarchar(max)
)
RETURNS int
AS
BEGIN
RETURN [$(bingo)].z_Sub (@target, @query, @options, '$(bingo)')
END
GO
grant execute on [$(bingo)].SubB to $(bingo)_reader
GO
--
-- SubHi
--
CREATE FUNCTION [$(bingo)].z_SubHi
(
@target varbinary(max),
@query nvarchar(max),
@parameters nvarchar(max),
@bingo_schema nvarchar(max)
)
RETURNS nvarchar(max)
AS
EXTERNAL NAME [$(bingo)_assembly].[indigo.Bingo].SubHi
GO
ADD SIGNATURE TO [$(bingo)].z_SubHi BY CERTIFICATE $(bingo)_certificate
WITH PASSWORD = '$(bingo_pass)'
GO
CREATE FUNCTION [$(bingo)].SubHi
(
@target varchar(max),
@query nvarchar(max),
@parameters nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_SubHi (cast(@target as VARBINARY(max)), @query, @parameters, '$(bingo)')
END
GO
grant execute on [$(bingo)].SubHi to $(bingo)_reader
GO
CREATE FUNCTION [$(bingo)].SubHiB
(
@target varbinary(max),
@query nvarchar(max),
@parameters nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
RETURN [$(bingo)].z_SubHi (@target, @query, @parameters, '$(bingo)')
END
GO
grant execute on [$(bingo)].SubHiB to $(bingo)_reader
GO | the_stack |
--
-- XC_ALTER_TABLE
--
-- Check on dropped columns
CREATE TABLE xc_alter_table_1 (id int, name varchar(80), code varchar(80));
EXPLAIN (VERBOSE true, COSTS false) INSERT INTO xc_alter_table_1(name) VALUES ('aaa'),('bbb'),('ccc');
INSERT INTO xc_alter_table_1(name) VALUES ('aaa'),('bbb'),('ccc');
SELECT id, name, code FROM xc_alter_table_1 ORDER BY 1;
-- Cannot drop distribution column
ALTER TABLE xc_alter_table_1 DROP COLUMN id;
-- Drop 1st column
ALTER TABLE xc_alter_table_1 DROP COLUMN code;
-- Check for query generation of remote INSERT
INSERT INTO xc_alter_table_1(name) VALUES('ddd'),('eee'),('fff');
EXPLAIN (VERBOSE true, COSTS false) INSERT INTO xc_alter_table_1(name) VALUES('ddd'),('eee'),('fff');
SELECT id, name FROM xc_alter_table_1 ORDER BY 1;
-- Check for query generation of remote INSERT SELECT
INSERT INTO xc_alter_table_1(name) SELECT 'ggg';
EXPLAIN (VERBOSE true, COSTS false) INSERT INTO xc_alter_table_1(name) SELECT 'ggg';
SELECT id, name FROM xc_alter_table_1 ORDER BY 1;
-- Check for query generation of remote UPDATE
EXPLAIN (VERBOSE true, COSTS false) UPDATE xc_alter_table_1 SET name = 'zzz' WHERE id = currval('xc_alter_table_1_id_seq');
UPDATE xc_alter_table_1 SET name = 'zzz' WHERE id = currval('xc_alter_table_1_id_seq');
SELECT id, name FROM xc_alter_table_1 ORDER BY 1;
DROP TABLE xc_alter_table_1;
-- Check for multiple columns dropped and created
CREATE TABLE xc_alter_table_2 (a int, b varchar(20), c boolean, d text, e interval);
ALTER TABLE xc_alter_table_2 ADD PRIMARY KEY(b);
INSERT INTO xc_alter_table_2 VALUES (1, 'John', true, 'Master', '01:00:10');
INSERT INTO xc_alter_table_2 VALUES (2, 'Neo', true, 'Slave', '02:34:00');
INSERT INTO xc_alter_table_2 VALUES (3, 'James', false, 'Cascading slave', '00:12:05');
SELECT a, b, c, d, e FROM xc_alter_table_2 ORDER BY a;
-- Go through standard planner
-- Drop a couple of columns
ALTER TABLE xc_alter_table_2 DROP COLUMN a;
ALTER TABLE xc_alter_table_2 DROP COLUMN d;
ALTER TABLE xc_alter_table_2 DROP COLUMN e;
-- Check for query generation of remote INSERT
EXPLAIN (VERBOSE true, COSTS false) INSERT INTO xc_alter_table_2 VALUES ('Kodek', false);
INSERT INTO xc_alter_table_2 VALUES ('Kodek', false);
SELECT b, c FROM xc_alter_table_2 ORDER BY b;
-- Check for query generation of remote UPDATE
EXPLAIN (VERBOSE true, COSTS false) UPDATE xc_alter_table_2 SET b = 'Morphee', c = false WHERE b = 'Neo';
UPDATE xc_alter_table_2 SET b = 'Morphee', c = false WHERE b = 'Neo';
SELECT b, c FROM xc_alter_table_2 ORDER BY b;
-- Add some new columns
ALTER TABLE xc_alter_table_2 ADD COLUMN a int;
ALTER TABLE xc_alter_table_2 ADD COLUMN a2 varchar(20);
-- Check for query generation of remote INSERT
EXPLAIN (VERBOSE true, COSTS false) INSERT INTO xc_alter_table_2 (a, a2, b, c) VALUES (100, 'CEO', 'Gordon', true);
INSERT INTO xc_alter_table_2 (a, a2, b, c) VALUES (100, 'CEO', 'Gordon', true);
SELECT a, a2, b, c FROM xc_alter_table_2 ORDER BY b;
-- Check for query generation of remote UPDATE
EXPLAIN (VERBOSE true, COSTS false) UPDATE xc_alter_table_2 SET a = 200, a2 = 'CTO' WHERE b = 'John';
UPDATE xc_alter_table_2 SET a = 200, a2 = 'CTO' WHERE b = 'John';
SELECT a, a2, b, c FROM xc_alter_table_2 ORDER BY b;
DROP TABLE xc_alter_table_2;
-- Tests for ALTER TABLE redistribution
-- In the following test, a table is redistributed in all the ways possible
-- and effects of redistribution is checked on all the dependent objects
-- Table with integers
CREATE TABLE xc_alter_table_3 (a int, b varchar(10));
INSERT INTO xc_alter_table_3 VALUES (0, NULL);
INSERT INTO xc_alter_table_3 VALUES (1, 'a');
INSERT INTO xc_alter_table_3 VALUES (2, 'aa');
INSERT INTO xc_alter_table_3 VALUES (3, 'aaa');
INSERT INTO xc_alter_table_3 VALUES (4, 'aaaa');
INSERT INTO xc_alter_table_3 VALUES (5, 'aaaaa');
INSERT INTO xc_alter_table_3 VALUES (6, 'aaaaaa');
INSERT INTO xc_alter_table_3 VALUES (7, 'aaaaaaa');
INSERT INTO xc_alter_table_3 VALUES (8, 'aaaaaaaa');
INSERT INTO xc_alter_table_3 VALUES (9, 'aaaaaaaaa');
INSERT INTO xc_alter_table_3 VALUES (10, 'aaaaaaaaaa');
-- Create some objects to check the effect of redistribution
CREATE VIEW xc_alter_table_3_v AS SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3;
CREATE RULE xc_alter_table_3_insert AS ON UPDATE TO xc_alter_table_3 WHERE OLD.a = 11 DO INSERT INTO xc_alter_table_3 VALUES (OLD.a + 1, 'nnn');
PREPARE xc_alter_table_insert AS INSERT INTO xc_alter_table_3 VALUES ($1, $2);
PREPARE xc_alter_table_delete AS DELETE FROM xc_alter_table_3 WHERE a = $1;
PREPARE xc_alter_table_update AS UPDATE xc_alter_table_3 SET b = $2 WHERE a = $1;
-- Now begin the tests
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
-- Index and redistribution
CREATE INDEX xc_alter_table_3_index ON xc_alter_table_3(a);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
EXECUTE xc_alter_table_insert(11, 'b');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_update(11, 'bb');
SELECT b FROM xc_alter_table_3 WHERE a = 11;
EXECUTE xc_alter_table_delete(11);
SELECT b FROM xc_alter_table_3 WHERE a = 11 or a = 12;
EXECUTE xc_alter_table_delete(12);
-- Add column on table
ALTER TABLE xc_alter_table_3 ADD COLUMN c int DEFAULT 4;
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3;
SELECT * FROM xc_alter_table_3_v;
-- Drop column on table
ALTER TABLE xc_alter_table_3 DROP COLUMN b CASCADE;
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3;
SELECT * FROM xc_alter_table_3_v;
-- Remanipulate table once again and distribute on old column
ALTER TABLE xc_alter_table_3 DROP COLUMN c;
ALTER TABLE xc_alter_table_3 ADD COLUMN b varchar(3) default 'aaa';
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Change the node list
SELECT alter_table_change_nodes('xc_alter_table_3', '{1}', 'to', NULL);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Add some nodes on it
SELECT alter_table_change_nodes('xc_alter_table_3', '{2,4,5}', 'add', NULL);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check in tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Remove some nodes on it
SELECT alter_table_change_nodes('xc_alter_table_3', '{3}', 'add', NULL);
SELECT alter_table_change_nodes('xc_alter_table_3', '{2,3,5}', 'delete', NULL);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Multiple operations with replication
SELECT alter_table_change_nodes('xc_alter_table_3', '{1,3,4,5}', 'to', 'replication');
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Manipulate number of nodes to include and remove nodes on a replicated table
-- On removed nodes data is deleted and on new nodes data is added
SELECT alter_table_change_nodes('xc_alter_table_3', '{2,3,5}', 'to', NULL);
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Re-do a double operation with hash this time
SELECT alter_table_change_nodes('xc_alter_table_3', '{2}', 'delete', 'hash(a)');
SELECT count(*), sum(a), avg(a) FROM xc_alter_table_3; -- Check on tuple presence
SELECT * FROM xc_alter_table_3_v;
-- Error checks
ALTER TABLE xc_alter_table_3 ADD COLUMN b int;
-- Clean up
DROP TABLE xc_alter_table_3 CASCADE;
-- ////////////////////////////////////////
-- ///////// Test many variations of alter table
-- ////////////////////////////////////////
CREATE TABLE tbl_r_n12(id int, a int, b int);
ALTER TABLE tbl_r_n12 ADD PRIMARY KEY(id);
CREATE TABLE tbl_r_n1(id int, a int, b int);
ALTER TABLE tbl_r_n1 ADD PRIMARY KEY(id);
CREATE TABLE tbl_r_n2(id int, a int, b int);
ALTER TABLE tbl_r_n2 ADD PRIMARY KEY(id);
CREATE TABLE tbl_rr_n12(a int, b int);
CREATE TABLE tbl_rr_n1(a int, b int);
CREATE TABLE tbl_rr_n2(a int, b int);
CREATE TABLE tbl_h_n12(a int, b int);
CREATE TABLE tbl_h_n1(a int, b int);
CREATE TABLE tbl_h_n2(a int, b int);
insert into tbl_r_n12 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
insert into tbl_r_n1 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
insert into tbl_r_n2 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
insert into tbl_rr_n12 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
insert into tbl_rr_n1 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
insert into tbl_rr_n2 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
insert into tbl_h_n12 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
insert into tbl_h_n1 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
insert into tbl_h_n2 VALUES(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
select a,b from tbl_r_n12 order by 1;
select a,b from tbl_r_n1 order by 1;
select a,b from tbl_r_n2 order by 1;
select * from tbl_rr_n12 order by 1;
select * from tbl_rr_n1 order by 1;
select * from tbl_rr_n2 order by 1;
select * from tbl_h_n12 order by 1;
select * from tbl_h_n1 order by 1;
select * from tbl_h_n2 order by 1;
-- ////////////////////////////////////////
-- rep to rep
SELECT a,b FROM tbl_r_n12 order by 1;
delete from tbl_r_n12;
insert into tbl_r_n12 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to rr
SELECT a,b FROM tbl_r_n12 order by 1;
delete from tbl_r_n12;
insert into tbl_r_n12 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to hash
SELECT a,b FROM tbl_r_n12 order by 1;
delete from tbl_r_n12;
insert into tbl_r_n12 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- ////////////////////////////////////////
-- rep to rep
SELECT a,b FROM tbl_r_n1 order by 1;
delete from tbl_r_n1;
insert into tbl_r_n1 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to rr
SELECT a,b FROM tbl_r_n1 order by 1;
delete from tbl_r_n1;
insert into tbl_r_n1 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to hash
SELECT a,b FROM tbl_r_n1 order by 1;
delete from tbl_r_n1;
insert into tbl_r_n1 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- ////////////////////////////////////////
-- rep to rep
SELECT a,b FROM tbl_r_n2 order by 1;
delete from tbl_r_n2;
insert into tbl_r_n2 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to rr
SELECT a,b FROM tbl_r_n2 order by 1;
delete from tbl_r_n2;
insert into tbl_r_n2 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- rep to hash
SELECT a,b FROM tbl_r_n2 order by 1;
delete from tbl_r_n2;
insert into tbl_r_n2 VALUES(1,1,777),(2,3,4),(3,5,6),(4,20,30),(5,NULL,999), (6, NULL, 999);
-- ////////////////////////////////////////
-- rr to rep
SELECT * FROM tbl_rr_n12 order by 1;
delete from tbl_rr_n12;
insert into tbl_rr_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to rr
SELECT * FROM tbl_rr_n12 order by 1;
delete from tbl_rr_n12;
insert into tbl_rr_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to hash
SELECT * FROM tbl_rr_n12 order by 1;
delete from tbl_rr_n12;
insert into tbl_rr_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- ////////////////////////////////////////
-- rr to rep
SELECT * FROM tbl_rr_n1 order by 1;
delete from tbl_rr_n1;
insert into tbl_rr_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to rr
SELECT * FROM tbl_rr_n1 order by 1;
delete from tbl_rr_n1;
insert into tbl_rr_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to hash
SELECT * FROM tbl_rr_n1 order by 1;
delete from tbl_rr_n1;
insert into tbl_rr_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- ////////////////////////////////////////
-- rr to rep
SELECT * FROM tbl_rr_n2 order by 1;
delete from tbl_rr_n2;
insert into tbl_rr_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to rr
SELECT * FROM tbl_rr_n2 order by 1;
delete from tbl_rr_n2;
insert into tbl_rr_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- rr to hash
SELECT * FROM tbl_rr_n2 order by 1;
delete from tbl_rr_n2;
insert into tbl_rr_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- ////////////////////////////////////////
-- hash to rep
SELECT * FROM tbl_h_n12 order by 1;
delete from tbl_h_n12;
insert into tbl_h_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to rr
SELECT * FROM tbl_h_n12 order by 1;
delete from tbl_h_n12;
insert into tbl_h_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to hash
SELECT * FROM tbl_h_n12 order by 1;
delete from tbl_h_n12;
insert into tbl_h_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
SELECT * FROM tbl_h_n12 order by 1;
delete from tbl_h_n12;
insert into tbl_h_n12 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- ////////////////////////////////////////
-- hash to rep
SELECT * FROM tbl_h_n1 order by 1;
delete from tbl_h_n1;
insert into tbl_h_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to rr
SELECT * FROM tbl_h_n1 order by 1;
delete from tbl_h_n1;
insert into tbl_h_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to hash
SELECT * FROM tbl_h_n1 order by 1;
delete from tbl_h_n1;
insert into tbl_h_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
SELECT * FROM tbl_h_n1 order by 1;
delete from tbl_h_n1;
insert into tbl_h_n1 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- ////////////////////////////////////////
-- hash to rep
SELECT * FROM tbl_h_n2 order by 1;
delete from tbl_h_n2;
insert into tbl_h_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to rr
SELECT * FROM tbl_h_n2 order by 1;
delete from tbl_h_n2;
insert into tbl_h_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
-- hash to hash
SELECT * FROM tbl_h_n2 order by 1;
delete from tbl_h_n2;
insert into tbl_h_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
SELECT * FROM tbl_h_n2 order by 1;
delete from tbl_h_n2;
insert into tbl_h_n2 values(1,777),(3,4),(5,6),(20,30),(NULL,999), (NULL, 999);
drop table if exists tbl_r_n12;
drop table if exists tbl_r_n1;
drop table if exists tbl_r_n2;
drop table if exists tbl_rr_n12;
drop table if exists tbl_rr_n1;
drop table if exists tbl_rr_n2;
drop table if exists tbl_h_n12;
drop table if exists tbl_h_n1;
drop table if exists tbl_h_n2; | the_stack |
SET search_path = public, pg_catalog;
--
-- Name: actor_actor_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE actor_actor_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.actor_actor_id_seq OWNER TO postgres;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: actor; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE actor (
actor_id bigint DEFAULT nextval('actor_actor_id_seq'::regclass) NOT NULL,
first_name character varying(45) NOT NULL,
last_name character varying(45) NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.actor OWNER TO postgres;
--
-- Name: mpaa_rating; Type: TYPE; Schema: public; Owner: postgres
--
CREATE TYPE mpaa_rating AS ENUM (
'G',
'PG',
'PG-13',
'R',
'NC-17'
);
ALTER TYPE public.mpaa_rating OWNER TO postgres;
--
-- Name: year; Type: DOMAIN; Schema: public; Owner: postgres
--
CREATE DOMAIN year AS integer
CONSTRAINT year_check CHECK (((VALUE >= 1901) AND (VALUE <= 2155)));
ALTER DOMAIN public.year OWNER TO postgres;
--
-- Name: _group_concat(text, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION _group_concat(text, text) RETURNS text
AS $_$
SELECT CASE
WHEN $2 IS NULL THEN $1
WHEN $1 IS NULL THEN $2
ELSE $1 || ', ' || $2
END
$_$
LANGUAGE sql IMMUTABLE;
ALTER FUNCTION public._group_concat(text, text) OWNER TO postgres;
--
-- Name: group_concat(text); Type: AGGREGATE; Schema: public; Owner: postgres
--
CREATE AGGREGATE group_concat(text) (
SFUNC = _group_concat,
STYPE = text
);
ALTER AGGREGATE public.group_concat(text) OWNER TO postgres;
--
-- Name: category_category_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE category_category_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.category_category_id_seq OWNER TO postgres;
--
-- Name: category; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE category (
category_id bigint DEFAULT nextval('category_category_id_seq'::regclass) NOT NULL,
name character varying(25) NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.category OWNER TO postgres;
--
-- Name: film_film_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE film_film_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.film_film_id_seq OWNER TO postgres;
--
-- Name: film; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE film (
film_id bigint DEFAULT nextval('film_film_id_seq'::regclass) NOT NULL,
title character varying(255) NOT NULL,
description text,
release_year year,
language_id bigint NOT NULL,
original_language_id bigint,
rental_duration smallint DEFAULT 3 NOT NULL,
rental_rate numeric(4,2) DEFAULT 4.99 NOT NULL,
length smallint,
replacement_cost numeric(5,2) DEFAULT 19.99 NOT NULL,
rating mpaa_rating DEFAULT 'G'::mpaa_rating,
last_update timestamp without time zone DEFAULT now() NOT NULL,
special_features text[],
fulltext tsvector NOT NULL
);
ALTER TABLE public.film OWNER TO postgres;
--
-- Name: film_actor; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE film_actor (
actor_id bigint NOT NULL,
film_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.film_actor OWNER TO postgres;
--
-- Name: film_category; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE film_category (
film_id bigint NOT NULL,
category_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.film_category OWNER TO postgres;
--
-- Name: actor_info; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW actor_info AS
SELECT a.actor_id, a.first_name, a.last_name, group_concat(DISTINCT (((c.name)::text || ': '::text) || (SELECT group_concat((f.title)::text) AS group_concat FROM ((film f JOIN film_category fc ON ((f.film_id = fc.film_id))) JOIN film_actor fa ON ((f.film_id = fa.film_id))) WHERE ((fc.category_id = c.category_id) AND (fa.actor_id = a.actor_id)) GROUP BY fa.actor_id))) AS film_info FROM (((actor a LEFT JOIN film_actor fa ON ((a.actor_id = fa.actor_id))) LEFT JOIN film_category fc ON ((fa.film_id = fc.film_id))) LEFT JOIN category c ON ((fc.category_id = c.category_id))) GROUP BY a.actor_id, a.first_name, a.last_name;
ALTER TABLE public.actor_info OWNER TO postgres;
--
-- Name: address_address_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE address_address_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.address_address_id_seq OWNER TO postgres;
--
-- Name: address; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE address (
address_id bigint DEFAULT nextval('address_address_id_seq'::regclass) NOT NULL,
address character varying(50) NOT NULL,
address2 character varying(50),
district character varying(20) NOT NULL,
city_id bigint NOT NULL,
postal_code character varying(10),
phone character varying(20) NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.address OWNER TO postgres;
--
-- Name: city_city_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE city_city_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.city_city_id_seq OWNER TO postgres;
--
-- Name: city; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE city (
city_id bigint DEFAULT nextval('city_city_id_seq'::regclass) NOT NULL,
city character varying(50) NOT NULL,
country_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.city OWNER TO postgres;
--
-- Name: country_country_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE country_country_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.country_country_id_seq OWNER TO postgres;
--
-- Name: country; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE country (
country_id bigint DEFAULT nextval('country_country_id_seq'::regclass) NOT NULL,
country character varying(50) NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.country OWNER TO postgres;
--
-- Name: customer_customer_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE customer_customer_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.customer_customer_id_seq OWNER TO postgres;
--
-- Name: customer; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE customer (
customer_id bigint DEFAULT nextval('customer_customer_id_seq'::regclass) NOT NULL,
store_id bigint NOT NULL,
first_name character varying(45) NOT NULL,
last_name character varying(45) NOT NULL,
email character varying(50),
address_id bigint NOT NULL,
activebool boolean DEFAULT true NOT NULL,
create_date date DEFAULT ('now'::text)::date NOT NULL,
last_update timestamp without time zone DEFAULT now(),
active integer
);
ALTER TABLE public.customer OWNER TO postgres;
--
-- Name: customer_list; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW customer_list AS
SELECT cu.customer_id AS id, (((cu.first_name)::text || ' '::text) || (cu.last_name)::text) AS name, a.address, a.postal_code AS "zip code", a.phone, city.city, country.country, CASE WHEN cu.activebool THEN 'active'::text ELSE ''::text END AS notes, cu.store_id AS sid FROM (((customer cu JOIN address a ON ((cu.address_id = a.address_id))) JOIN city ON ((a.city_id = city.city_id))) JOIN country ON ((city.country_id = country.country_id)));
ALTER TABLE public.customer_list OWNER TO postgres;
--
-- Name: film_list; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW film_list AS
SELECT film.film_id AS fid, film.title, film.description, category.name AS category, film.rental_rate AS price, film.length, film.rating, group_concat((((actor.first_name)::text || ' '::text) || (actor.last_name)::text)) AS actors FROM ((((category LEFT JOIN film_category ON ((category.category_id = film_category.category_id))) LEFT JOIN film ON ((film_category.film_id = film.film_id))) JOIN film_actor ON ((film.film_id = film_actor.film_id))) JOIN actor ON ((film_actor.actor_id = actor.actor_id))) GROUP BY film.film_id, film.title, film.description, category.name, film.rental_rate, film.length, film.rating;
ALTER TABLE public.film_list OWNER TO postgres;
--
-- Name: inventory_inventory_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE inventory_inventory_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.inventory_inventory_id_seq OWNER TO postgres;
--
-- Name: inventory; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE inventory (
inventory_id bigint DEFAULT nextval('inventory_inventory_id_seq'::regclass) NOT NULL,
film_id bigint NOT NULL,
store_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.inventory OWNER TO postgres;
--
-- Name: language_language_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE language_language_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.language_language_id_seq OWNER TO postgres;
--
-- Name: language; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE language (
language_id bigint DEFAULT nextval('language_language_id_seq'::regclass) NOT NULL,
name character(20) NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.language OWNER TO postgres;
--
-- Name: nicer_but_slower_film_list; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW nicer_but_slower_film_list AS
SELECT film.film_id AS fid, film.title, film.description, category.name AS category, film.rental_rate AS price, film.length, film.rating, group_concat((((upper("substring"((actor.first_name)::text, 1, 1)) || lower("substring"((actor.first_name)::text, 2))) || upper("substring"((actor.last_name)::text, 1, 1))) || lower("substring"((actor.last_name)::text, 2)))) AS actors FROM ((((category LEFT JOIN film_category ON ((category.category_id = film_category.category_id))) LEFT JOIN film ON ((film_category.film_id = film.film_id))) JOIN film_actor ON ((film.film_id = film_actor.film_id))) JOIN actor ON ((film_actor.actor_id = actor.actor_id))) GROUP BY film.film_id, film.title, film.description, category.name, film.rental_rate, film.length, film.rating;
ALTER TABLE public.nicer_but_slower_film_list OWNER TO postgres;
--
-- Name: payment_payment_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE payment_payment_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.payment_payment_id_seq OWNER TO postgres;
--
-- Name: payment; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment (
payment_id bigint DEFAULT nextval('payment_payment_id_seq'::regclass) NOT NULL,
customer_id bigint NOT NULL,
staff_id bigint NOT NULL,
rental_id bigint NOT NULL,
amount numeric(5,2) NOT NULL,
payment_date timestamp without time zone NOT NULL
);
ALTER TABLE public.payment OWNER TO postgres;
--
-- Name: payment_p2007_01; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_01 (CONSTRAINT payment_p2007_01_payment_date_check CHECK (((payment_date >= '2007-01-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-02-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_01 OWNER TO postgres;
--
-- Name: payment_p2007_02; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_02 (CONSTRAINT payment_p2007_02_payment_date_check CHECK (((payment_date >= '2007-02-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-03-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_02 OWNER TO postgres;
--
-- Name: payment_p2007_03; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_03 (CONSTRAINT payment_p2007_03_payment_date_check CHECK (((payment_date >= '2007-03-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-04-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_03 OWNER TO postgres;
--
-- Name: payment_p2007_04; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_04 (CONSTRAINT payment_p2007_04_payment_date_check CHECK (((payment_date >= '2007-04-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-05-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_04 OWNER TO postgres;
--
-- Name: payment_p2007_05; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_05 (CONSTRAINT payment_p2007_05_payment_date_check CHECK (((payment_date >= '2007-05-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-06-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_05 OWNER TO postgres;
--
-- Name: payment_p2007_06; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE payment_p2007_06 (CONSTRAINT payment_p2007_06_payment_date_check CHECK (((payment_date >= '2007-06-01 00:00:00'::timestamp without time zone) AND (payment_date < '2007-07-01 00:00:00'::timestamp without time zone)))
)
INHERITS (payment);
ALTER TABLE public.payment_p2007_06 OWNER TO postgres;
--
-- Name: rental_rental_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE rental_rental_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.rental_rental_id_seq OWNER TO postgres;
--
-- Name: rental; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE rental (
rental_id bigint DEFAULT nextval('rental_rental_id_seq'::regclass) NOT NULL,
rental_date timestamp without time zone NOT NULL,
inventory_id bigint NOT NULL,
customer_id bigint NOT NULL,
return_date timestamp without time zone,
staff_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.rental OWNER TO postgres;
--
-- Name: sales_by_film_category; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW sales_by_film_category AS
SELECT c.name AS category, sum(p.amount) AS total_sales FROM (((((payment p JOIN rental r ON ((p.rental_id = r.rental_id))) JOIN inventory i ON ((r.inventory_id = i.inventory_id))) JOIN film f ON ((i.film_id = f.film_id))) JOIN film_category fc ON ((f.film_id = fc.film_id))) JOIN category c ON ((fc.category_id = c.category_id))) GROUP BY c.name ORDER BY sum(p.amount) DESC;
ALTER TABLE public.sales_by_film_category OWNER TO postgres;
--
-- Name: staff_staff_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE staff_staff_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.staff_staff_id_seq OWNER TO postgres;
--
-- Name: staff; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE staff (
staff_id bigint DEFAULT nextval('staff_staff_id_seq'::regclass) NOT NULL,
first_name character varying(45) NOT NULL,
last_name character varying(45) NOT NULL,
address_id bigint NOT NULL,
email character varying(50),
store_id bigint NOT NULL,
active boolean DEFAULT true NOT NULL,
username character varying(16) NOT NULL,
password character varying(40),
last_update timestamp without time zone DEFAULT now() NOT NULL,
picture bytea
);
ALTER TABLE public.staff OWNER TO postgres;
--
-- Name: store_store_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE store_store_id_seq
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.store_store_id_seq OWNER TO postgres;
--
-- Name: store; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE store (
store_id bigint DEFAULT nextval('store_store_id_seq'::regclass) NOT NULL,
manager_staff_id bigint NOT NULL,
address_id bigint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.store OWNER TO postgres;
--
-- Name: sales_by_store; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW sales_by_store AS
SELECT (((c.city)::text || ','::text) || (cy.country)::text) AS store, (((m.first_name)::text || ' '::text) || (m.last_name)::text) AS manager, sum(p.amount) AS total_sales FROM (((((((payment p JOIN rental r ON ((p.rental_id = r.rental_id))) JOIN inventory i ON ((r.inventory_id = i.inventory_id))) JOIN store s ON ((i.store_id = s.store_id))) JOIN address a ON ((s.address_id = a.address_id))) JOIN city c ON ((a.city_id = c.city_id))) JOIN country cy ON ((c.country_id = cy.country_id))) JOIN staff m ON ((s.manager_staff_id = m.staff_id))) GROUP BY cy.country, c.city, s.store_id, m.first_name, m.last_name ORDER BY cy.country, c.city;
ALTER TABLE public.sales_by_store OWNER TO postgres;
--
-- Name: staff_list; Type: VIEW; Schema: public; Owner: postgres
--
CREATE VIEW staff_list AS
SELECT s.staff_id AS id, (((s.first_name)::text || ' '::text) || (s.last_name)::text) AS name, a.address, a.postal_code AS "zip code", a.phone, city.city, country.country, s.store_id AS sid FROM (((staff s JOIN address a ON ((s.address_id = a.address_id))) JOIN city ON ((a.city_id = city.city_id))) JOIN country ON ((city.country_id = country.country_id)));
ALTER TABLE public.staff_list OWNER TO postgres; | the_stack |
-- csv2mysql with arguments:
-- -o
-- 1-load-no-keys.sql
-- -e
--
-- -u
-- -z
-- -p
-- admissions.csv
-- chartevents.csv
-- d_hcpcs.csv
-- d_icd_diagnoses.csv
-- d_icd_procedures.csv
-- d_items.csv
-- d_labitems.csv
-- datetimeevents.csv
-- diagnoses_icd.csv
-- drgcodes.csv
-- emar.csv
-- emar_detail.csv
-- hcpcsevents.csv
-- icustays.csv
-- inputevents.csv
-- labevents.csv
-- microbiologyevents.csv
-- outputevents.csv
-- patients.csv
-- pharmacy.csv
-- poe.csv
-- poe_detail.csv
-- prescriptions.csv
-- procedureevents.csv
-- procedures_icd.csv
-- services.csv
-- transfers.csv
warnings
DROP TABLE IF EXISTS admissions;
CREATE TABLE admissions ( -- rows=524520
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
admittime DATETIME NOT NULL,
dischtime DATETIME NOT NULL,
deathtime DATETIME,
admission_type VARCHAR(255) NOT NULL, -- max=27
admission_location VARCHAR(255), -- max=38
discharge_location VARCHAR(255), -- max=28
insurance VARCHAR(255) NOT NULL, -- max=8
language VARCHAR(255) NOT NULL, -- max=7
marital_status VARCHAR(255), -- max=8
ethnicity VARCHAR(255) NOT NULL, -- max=29
edregtime DATETIME,
edouttime DATETIME,
hospital_expire_flag BOOLEAN NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'admissions.csv' INTO TABLE admissions
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@admittime,@dischtime,@deathtime,@admission_type,@admission_location,@discharge_location,@insurance,@language,@marital_status,@ethnicity,@edregtime,@edouttime,@hospital_expire_flag)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
admittime = trim(@admittime),
dischtime = trim(@dischtime),
deathtime = IF(@deathtime='', NULL, trim(@deathtime)),
admission_type = trim(@admission_type),
admission_location = IF(@admission_location='', NULL, trim(@admission_location)),
discharge_location = IF(@discharge_location='', NULL, trim(@discharge_location)),
insurance = trim(@insurance),
language = trim(@language),
marital_status = IF(@marital_status='', NULL, trim(@marital_status)),
ethnicity = trim(@ethnicity),
edregtime = IF(@edregtime='', NULL, trim(@edregtime)),
edouttime = IF(@edouttime='', NULL, trim(@edouttime)),
hospital_expire_flag = trim(@hospital_expire_flag);
DROP TABLE IF EXISTS chartevents;
CREATE TABLE chartevents ( -- rows=327363274
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
charttime DATETIME NOT NULL,
storetime DATETIME,
itemid MEDIUMINT UNSIGNED NOT NULL,
value TEXT, -- max=156
valuenum FLOAT,
valueuom VARCHAR(255), -- max=17
warning BOOLEAN NOT NULL)
CHARACTER SET = UTF8
PARTITION BY HASH(itemid) PARTITIONS 50;
LOAD DATA LOCAL INFILE 'chartevents.csv' INTO TABLE chartevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@charttime,@storetime,@itemid,@value,@valuenum,@valueuom,@warning)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
charttime = trim(@charttime),
storetime = IF(@storetime='', NULL, trim(@storetime)),
itemid = trim(@itemid),
value = IF(@value='', NULL, trim(@value)),
valuenum = IF(@valuenum='', NULL, trim(@valuenum)),
valueuom = IF(@valueuom='', NULL, trim(@valueuom)),
warning = trim(@warning);
DROP TABLE IF EXISTS d_hcpcs;
CREATE TABLE d_hcpcs ( -- rows=89200
code VARCHAR(255) NOT NULL, -- max=5
category TINYINT UNSIGNED,
long_description TEXT, -- max=1182
short_description TEXT NOT NULL -- max=165
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'd_hcpcs.csv' INTO TABLE d_hcpcs
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@code,@category,@long_description,@short_description)
SET
code = trim(@code),
category = IF(@category='', NULL, trim(@category)),
long_description = IF(@long_description='', NULL, trim(@long_description)),
short_description = trim(@short_description);
DROP TABLE IF EXISTS d_icd_diagnoses;
CREATE TABLE d_icd_diagnoses ( -- rows=86751
icd_code VARCHAR(255) NOT NULL, -- max=7
icd_version TINYINT UNSIGNED NOT NULL,
long_title TEXT NOT NULL -- max=228
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'd_icd_diagnoses.csv' INTO TABLE d_icd_diagnoses
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@icd_code,@icd_version,@long_title)
SET
icd_code = trim(@icd_code),
icd_version = trim(@icd_version),
long_title = trim(@long_title);
DROP TABLE IF EXISTS d_icd_procedures;
CREATE TABLE d_icd_procedures ( -- rows=82763
icd_code VARCHAR(255) NOT NULL, -- max=7
icd_version TINYINT UNSIGNED NOT NULL,
long_title TEXT NOT NULL -- max=163
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'd_icd_procedures.csv' INTO TABLE d_icd_procedures
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@icd_code,@icd_version,@long_title)
SET
icd_code = trim(@icd_code),
icd_version = trim(@icd_version),
long_title = trim(@long_title);
DROP TABLE IF EXISTS d_items;
CREATE TABLE d_items ( -- rows=3835
itemid MEDIUMINT UNSIGNED NOT NULL,
label TEXT NOT NULL, -- max=95
abbreviation VARCHAR(255) NOT NULL, -- max=50
linksto VARCHAR(255) NOT NULL, -- max=15
category VARCHAR(255) NOT NULL, -- max=27
unitname VARCHAR(255), -- max=19
param_type VARCHAR(255) NOT NULL, -- max=16
lownormalvalue SMALLINT,
highnormalvalue FLOAT)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'd_items.csv' INTO TABLE d_items
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@itemid,@label,@abbreviation,@linksto,@category,@unitname,@param_type,@lownormalvalue,@highnormalvalue)
SET
itemid = trim(@itemid),
label = trim(@label),
abbreviation = trim(@abbreviation),
linksto = trim(@linksto),
category = trim(@category),
unitname = IF(@unitname='', NULL, trim(@unitname)),
param_type = trim(@param_type),
lownormalvalue = IF(@lownormalvalue='', NULL, trim(@lownormalvalue)),
highnormalvalue = IF(@highnormalvalue='', NULL, trim(@highnormalvalue));
DROP TABLE IF EXISTS d_labitems;
CREATE TABLE d_labitems ( -- rows=1625
itemid SMALLINT UNSIGNED NOT NULL,
label VARCHAR(255), -- max=42
fluid VARCHAR(255) NOT NULL, -- max=19
category VARCHAR(255) NOT NULL, -- max=10
loinc_code VARCHAR(255) -- max=7
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'd_labitems.csv' INTO TABLE d_labitems
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@itemid,@label,@fluid,@category,@loinc_code)
SET
itemid = trim(@itemid),
label = IF(@label='', NULL, trim(@label)),
fluid = trim(@fluid),
category = trim(@category),
loinc_code = IF(@loinc_code='', NULL, trim(@loinc_code));
DROP TABLE IF EXISTS datetimeevents;
CREATE TABLE datetimeevents ( -- rows=6999316
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
charttime DATETIME NOT NULL,
storetime DATETIME NOT NULL,
itemid MEDIUMINT UNSIGNED NOT NULL,
value DATETIME NOT NULL,
valueuom VARCHAR(255) NOT NULL, -- max=13
warning BOOLEAN NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'datetimeevents.csv' INTO TABLE datetimeevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@charttime,@storetime,@itemid,@value,@valueuom,@warning)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
charttime = trim(@charttime),
storetime = trim(@storetime),
itemid = trim(@itemid),
value = trim(@value),
valueuom = trim(@valueuom),
warning = trim(@warning);
DROP TABLE IF EXISTS diagnoses_icd;
CREATE TABLE diagnoses_icd ( -- rows=4677924
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
seq_num TINYINT UNSIGNED NOT NULL,
icd_code VARCHAR(255) NOT NULL, -- max=7
icd_version TINYINT UNSIGNED NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'diagnoses_icd.csv' INTO TABLE diagnoses_icd
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@seq_num,@icd_code,@icd_version)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
seq_num = trim(@seq_num),
icd_code = trim(@icd_code),
icd_version = trim(@icd_version);
DROP TABLE IF EXISTS drgcodes;
CREATE TABLE drgcodes ( -- rows=1168135
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
drg_type VARCHAR(255) NOT NULL, -- max=4
drg_code VARCHAR(255) NOT NULL, -- max=4
description TEXT, -- max=88
drg_severity TINYINT UNSIGNED,
drg_mortality TINYINT UNSIGNED)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'drgcodes.csv' INTO TABLE drgcodes
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@drg_type,@drg_code,@description,@drg_severity,@drg_mortality)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
drg_type = trim(@drg_type),
drg_code = trim(@drg_code),
description = IF(@description='', NULL, trim(@description)),
drg_severity = IF(@drg_severity='', NULL, trim(@drg_severity)),
drg_mortality = IF(@drg_mortality='', NULL, trim(@drg_mortality));
DROP TABLE IF EXISTS emar;
CREATE TABLE emar ( -- rows=27590435
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED,
emar_id VARCHAR(255) NOT NULL, -- max=14
emar_seq SMALLINT UNSIGNED NOT NULL,
poe_id VARCHAR(255) NOT NULL, -- max=14
pharmacy_id INT UNSIGNED,
charttime DATETIME NOT NULL,
medication VARCHAR(255), -- max=75
event_txt VARCHAR(255), -- max=48
scheduletime DATETIME,
storetime DATETIME NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'emar.csv' INTO TABLE emar
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@emar_id,@emar_seq,@poe_id,@pharmacy_id,@charttime,@medication,@event_txt,@scheduletime,@storetime)
SET
subject_id = trim(@subject_id),
hadm_id = IF(@hadm_id='', NULL, trim(@hadm_id)),
emar_id = trim(@emar_id),
emar_seq = trim(@emar_seq),
poe_id = trim(@poe_id),
pharmacy_id = IF(@pharmacy_id='', NULL, trim(@pharmacy_id)),
charttime = trim(@charttime),
medication = IF(@medication='', NULL, trim(@medication)),
event_txt = IF(@event_txt='', NULL, trim(@event_txt)),
scheduletime = IF(@scheduletime='', NULL, trim(@scheduletime)),
storetime = trim(@storetime);
DROP TABLE IF EXISTS emar_detail;
CREATE TABLE emar_detail ( -- rows=56203135
subject_id INT UNSIGNED NOT NULL,
emar_id VARCHAR(255) NOT NULL, -- max=14
emar_seq SMALLINT UNSIGNED NOT NULL,
parent_field_ordinal FLOAT,
administration_type VARCHAR(255), -- max=47
pharmacy_id INT UNSIGNED,
barcode_type VARCHAR(255), -- max=4
reason_for_no_barcode TEXT, -- max=831
complete_dose_not_given VARCHAR(255), -- max=3
dose_due VARCHAR(255), -- max=51
dose_due_unit VARCHAR(255), -- max=26
dose_given TEXT, -- max=152
dose_given_unit VARCHAR(255), -- max=26
will_remainder_of_dose_be_given VARCHAR(255), -- max=3
product_amount_given VARCHAR(255), -- max=23
product_unit VARCHAR(255), -- max=13
product_code VARCHAR(255), -- max=19
product_description TEXT, -- max=179
product_description_other TEXT, -- max=97
prior_infusion_rate VARCHAR(255), -- max=14
infusion_rate VARCHAR(255), -- max=14
infusion_rate_adjustment VARCHAR(255), -- max=31
infusion_rate_adjustment_amount VARCHAR(255), -- max=23
infusion_rate_unit VARCHAR(255), -- max=19
route VARCHAR(255), -- max=6
infusion_complete VARCHAR(255), -- max=1
completion_interval VARCHAR(255), -- max=23
new_iv_bag_hung VARCHAR(255), -- max=1
continued_infusion_in_other_location VARCHAR(255), -- max=1
restart_interval VARCHAR(255), -- max=19
side VARCHAR(255), -- max=6
site TEXT, -- max=236
non_formulary_visual_verification VARCHAR(255) -- max=1
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'emar_detail.csv' INTO TABLE emar_detail
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@emar_id,@emar_seq,@parent_field_ordinal,@administration_type,@pharmacy_id,@barcode_type,@reason_for_no_barcode,@complete_dose_not_given,@dose_due,@dose_due_unit,@dose_given,@dose_given_unit,@will_remainder_of_dose_be_given,@product_amount_given,@product_unit,@product_code,@product_description,@product_description_other,@prior_infusion_rate,@infusion_rate,@infusion_rate_adjustment,@infusion_rate_adjustment_amount,@infusion_rate_unit,@route,@infusion_complete,@completion_interval,@new_iv_bag_hung,@continued_infusion_in_other_location,@restart_interval,@side,@site,@non_formulary_visual_verification)
SET
subject_id = trim(@subject_id),
emar_id = trim(@emar_id),
emar_seq = trim(@emar_seq),
parent_field_ordinal = IF(@parent_field_ordinal='', NULL, trim(@parent_field_ordinal)),
administration_type = IF(@administration_type='', NULL, trim(@administration_type)),
pharmacy_id = IF(@pharmacy_id='', NULL, trim(@pharmacy_id)),
barcode_type = IF(@barcode_type='', NULL, trim(@barcode_type)),
reason_for_no_barcode = IF(@reason_for_no_barcode='', NULL, trim(@reason_for_no_barcode)),
complete_dose_not_given = IF(@complete_dose_not_given='', NULL, trim(@complete_dose_not_given)),
dose_due = IF(@dose_due='', NULL, trim(@dose_due)),
dose_due_unit = IF(@dose_due_unit='', NULL, trim(@dose_due_unit)),
dose_given = IF(@dose_given='', NULL, trim(@dose_given)),
dose_given_unit = IF(@dose_given_unit='', NULL, trim(@dose_given_unit)),
will_remainder_of_dose_be_given = IF(@will_remainder_of_dose_be_given='', NULL, trim(@will_remainder_of_dose_be_given)),
product_amount_given = IF(@product_amount_given='', NULL, trim(@product_amount_given)),
product_unit = IF(@product_unit='', NULL, trim(@product_unit)),
product_code = IF(@product_code='', NULL, trim(@product_code)),
product_description = IF(@product_description='', NULL, trim(@product_description)),
product_description_other = IF(@product_description_other='', NULL, trim(@product_description_other)),
prior_infusion_rate = IF(@prior_infusion_rate='', NULL, trim(@prior_infusion_rate)),
infusion_rate = IF(@infusion_rate='', NULL, trim(@infusion_rate)),
infusion_rate_adjustment = IF(@infusion_rate_adjustment='', NULL, trim(@infusion_rate_adjustment)),
infusion_rate_adjustment_amount = IF(@infusion_rate_adjustment_amount='', NULL, trim(@infusion_rate_adjustment_amount)),
infusion_rate_unit = IF(@infusion_rate_unit='', NULL, trim(@infusion_rate_unit)),
route = IF(@route='', NULL, trim(@route)),
infusion_complete = IF(@infusion_complete='', NULL, trim(@infusion_complete)),
completion_interval = IF(@completion_interval='', NULL, trim(@completion_interval)),
new_iv_bag_hung = IF(@new_iv_bag_hung='', NULL, trim(@new_iv_bag_hung)),
continued_infusion_in_other_location = IF(@continued_infusion_in_other_location='', NULL, trim(@continued_infusion_in_other_location)),
restart_interval = IF(@restart_interval='', NULL, trim(@restart_interval)),
side = IF(@side='', NULL, trim(@side)),
site = IF(@site='', NULL, trim(@site)),
non_formulary_visual_verification = IF(@non_formulary_visual_verification='', NULL, trim(@non_formulary_visual_verification));
DROP TABLE IF EXISTS hcpcsevents;
CREATE TABLE hcpcsevents ( -- rows=144858
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
chartdate DATETIME NOT NULL,
hcpcs_cd VARCHAR(255) NOT NULL, -- max=5
seq_num TINYINT UNSIGNED NOT NULL,
short_description TEXT NOT NULL -- max=165
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'hcpcsevents.csv' INTO TABLE hcpcsevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@chartdate,@hcpcs_cd,@seq_num,@short_description)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
chartdate = trim(@chartdate),
hcpcs_cd = trim(@hcpcs_cd),
seq_num = trim(@seq_num),
short_description = trim(@short_description);
DROP TABLE IF EXISTS icustays;
CREATE TABLE icustays ( -- rows=69619
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
first_careunit VARCHAR(255) NOT NULL, -- max=48
last_careunit VARCHAR(255) NOT NULL, -- max=48
intime DATETIME NOT NULL,
outtime DATETIME NOT NULL,
los FLOAT NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'icustays.csv' INTO TABLE icustays
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@first_careunit,@last_careunit,@intime,@outtime,@los)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
first_careunit = trim(@first_careunit),
last_careunit = trim(@last_careunit),
intime = trim(@intime),
outtime = trim(@outtime),
los = trim(@los);
DROP TABLE IF EXISTS inputevents;
CREATE TABLE inputevents ( -- rows=8869715
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
starttime DATETIME NOT NULL,
endtime DATETIME NOT NULL,
storetime DATETIME NOT NULL,
itemid MEDIUMINT UNSIGNED NOT NULL,
amount FLOAT NOT NULL,
amountuom VARCHAR(255) NOT NULL, -- max=19
rate FLOAT,
rateuom VARCHAR(255), -- max=13
orderid MEDIUMINT UNSIGNED NOT NULL,
linkorderid MEDIUMINT UNSIGNED NOT NULL,
ordercategoryname VARCHAR(255) NOT NULL, -- max=24
secondaryordercategoryname VARCHAR(255), -- max=24
ordercomponenttypedescription VARCHAR(255) NOT NULL, -- max=57
ordercategorydescription VARCHAR(255) NOT NULL, -- max=14
patientweight FLOAT NOT NULL,
totalamount FLOAT,
totalamountuom VARCHAR(255), -- max=2
isopenbag BOOLEAN NOT NULL,
continueinnextdept BOOLEAN NOT NULL,
cancelreason TINYINT UNSIGNED NOT NULL,
statusdescription VARCHAR(255) NOT NULL, -- max=15
originalamount FLOAT NOT NULL,
originalrate FLOAT NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'inputevents.csv' INTO TABLE inputevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@starttime,@endtime,@storetime,@itemid,@amount,@amountuom,@rate,@rateuom,@orderid,@linkorderid,@ordercategoryname,@secondaryordercategoryname,@ordercomponenttypedescription,@ordercategorydescription,@patientweight,@totalamount,@totalamountuom,@isopenbag,@continueinnextdept,@cancelreason,@statusdescription,@originalamount,@originalrate)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
starttime = trim(@starttime),
endtime = trim(@endtime),
storetime = trim(@storetime),
itemid = trim(@itemid),
amount = trim(@amount),
amountuom = trim(@amountuom),
rate = IF(@rate='', NULL, trim(@rate)),
rateuom = IF(@rateuom='', NULL, trim(@rateuom)),
orderid = trim(@orderid),
linkorderid = trim(@linkorderid),
ordercategoryname = trim(@ordercategoryname),
secondaryordercategoryname = IF(@secondaryordercategoryname='', NULL, trim(@secondaryordercategoryname)),
ordercomponenttypedescription = trim(@ordercomponenttypedescription),
ordercategorydescription = trim(@ordercategorydescription),
patientweight = trim(@patientweight),
totalamount = IF(@totalamount='', NULL, trim(@totalamount)),
totalamountuom = IF(@totalamountuom='', NULL, trim(@totalamountuom)),
isopenbag = trim(@isopenbag),
continueinnextdept = trim(@continueinnextdept),
cancelreason = trim(@cancelreason),
statusdescription = trim(@statusdescription),
originalamount = trim(@originalamount),
originalrate = trim(@originalrate);
DROP TABLE IF EXISTS labevents;
CREATE TABLE labevents ( -- rows=122289828
labevent_id INT UNSIGNED NOT NULL,
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED,
specimen_id INT UNSIGNED NOT NULL,
itemid SMALLINT UNSIGNED NOT NULL,
charttime DATETIME NOT NULL,
storetime DATETIME,
value TEXT, -- max=168
valuenum FLOAT,
valueuom VARCHAR(255), -- max=15
ref_range_lower FLOAT,
ref_range_upper FLOAT,
flag VARCHAR(255), -- max=8
priority VARCHAR(255), -- max=7
comments TEXT -- max=615
)
CHARACTER SET = UTF8
PARTITION BY HASH(itemid) PARTITIONS 50;
LOAD DATA LOCAL INFILE 'labevents.csv' INTO TABLE labevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@labevent_id,@subject_id,@hadm_id,@specimen_id,@itemid,@charttime,@storetime,@value,@valuenum,@valueuom,@ref_range_lower,@ref_range_upper,@flag,@priority,@comments)
SET
labevent_id = trim(@labevent_id),
subject_id = trim(@subject_id),
hadm_id = IF(@hadm_id='', NULL, trim(@hadm_id)),
specimen_id = trim(@specimen_id),
itemid = trim(@itemid),
charttime = trim(@charttime),
storetime = IF(@storetime='', NULL, trim(@storetime)),
value = IF(@value='', NULL, trim(@value)),
valuenum = IF(@valuenum='', NULL, trim(@valuenum)),
valueuom = IF(@valueuom='', NULL, trim(@valueuom)),
ref_range_lower = IF(@ref_range_lower='', NULL, trim(@ref_range_lower)),
ref_range_upper = IF(@ref_range_upper='', NULL, trim(@ref_range_upper)),
flag = IF(@flag='', NULL, trim(@flag)),
priority = IF(@priority='', NULL, trim(@priority)),
comments = IF(@comments='', NULL, trim(@comments));
DROP TABLE IF EXISTS microbiologyevents;
CREATE TABLE microbiologyevents ( -- rows=1026113
microevent_id MEDIUMINT UNSIGNED NOT NULL,
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED,
micro_specimen_id MEDIUMINT UNSIGNED NOT NULL,
chartdate DATETIME NOT NULL,
charttime DATETIME,
spec_itemid MEDIUMINT UNSIGNED NOT NULL,
spec_type_desc VARCHAR(255) NOT NULL, -- max=56
test_seq TINYINT UNSIGNED NOT NULL,
storedate DATETIME,
storetime DATETIME,
test_itemid MEDIUMINT UNSIGNED NOT NULL,
test_name VARCHAR(255) NOT NULL, -- max=66
org_itemid MEDIUMINT UNSIGNED,
org_name VARCHAR(255), -- max=70
isolate_num TINYINT UNSIGNED,
quantity VARCHAR(255), -- max=15
ab_itemid MEDIUMINT UNSIGNED,
ab_name VARCHAR(255), -- max=20
dilution_text VARCHAR(255), -- max=6
dilution_comparison VARCHAR(255), -- max=2
dilution_value FLOAT,
interpretation VARCHAR(255), -- max=1
comments VARCHAR(255) -- max=0
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'microbiologyevents.csv' INTO TABLE microbiologyevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@microevent_id,@subject_id,@hadm_id,@micro_specimen_id,@chartdate,@charttime,@spec_itemid,@spec_type_desc,@test_seq,@storedate,@storetime,@test_itemid,@test_name,@org_itemid,@org_name,@isolate_num,@quantity,@ab_itemid,@ab_name,@dilution_text,@dilution_comparison,@dilution_value,@interpretation,@comments)
SET
microevent_id = trim(@microevent_id),
subject_id = trim(@subject_id),
hadm_id = IF(@hadm_id='', NULL, trim(@hadm_id)),
micro_specimen_id = trim(@micro_specimen_id),
chartdate = trim(@chartdate),
charttime = IF(@charttime='', NULL, trim(@charttime)),
spec_itemid = trim(@spec_itemid),
spec_type_desc = trim(@spec_type_desc),
test_seq = trim(@test_seq),
storedate = IF(@storedate='', NULL, trim(@storedate)),
storetime = IF(@storetime='', NULL, trim(@storetime)),
test_itemid = trim(@test_itemid),
test_name = trim(@test_name),
org_itemid = IF(@org_itemid='', NULL, trim(@org_itemid)),
org_name = IF(@org_name='', NULL, trim(@org_name)),
isolate_num = IF(@isolate_num='', NULL, trim(@isolate_num)),
quantity = IF(@quantity='', NULL, trim(@quantity)),
ab_itemid = IF(@ab_itemid='', NULL, trim(@ab_itemid)),
ab_name = IF(@ab_name='', NULL, trim(@ab_name)),
dilution_text = IF(@dilution_text='', NULL, trim(@dilution_text)),
dilution_comparison = IF(@dilution_comparison='', NULL, trim(@dilution_comparison)),
dilution_value = IF(@dilution_value='', NULL, trim(@dilution_value)),
interpretation = IF(@interpretation='', NULL, trim(@interpretation)),
comments = IF(@comments='', NULL, trim(@comments));
DROP TABLE IF EXISTS outputevents;
CREATE TABLE outputevents ( -- rows=4248828
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
charttime DATETIME NOT NULL,
storetime DATETIME NOT NULL,
itemid MEDIUMINT UNSIGNED NOT NULL,
value FLOAT NOT NULL,
valueuom VARCHAR(255) NOT NULL -- max=2
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'outputevents.csv' INTO TABLE outputevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@charttime,@storetime,@itemid,@value,@valueuom)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
charttime = trim(@charttime),
storetime = trim(@storetime),
itemid = trim(@itemid),
value = trim(@value),
valueuom = trim(@valueuom);
DROP TABLE IF EXISTS patients;
CREATE TABLE patients ( -- rows=383220
subject_id INT UNSIGNED NOT NULL,
gender VARCHAR(255) NOT NULL, -- max=1
anchor_age TINYINT UNSIGNED NOT NULL,
anchor_year SMALLINT UNSIGNED NOT NULL,
anchor_year_group VARCHAR(255) NOT NULL, -- max=11
dod VARCHAR(255) -- max=0
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'patients.csv' INTO TABLE patients
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@gender,@anchor_age,@anchor_year,@anchor_year_group,@dod)
SET
subject_id = trim(@subject_id),
gender = trim(@gender),
anchor_age = trim(@anchor_age),
anchor_year = trim(@anchor_year),
anchor_year_group = trim(@anchor_year_group),
dod = IF(@dod='', NULL, trim(@dod));
DROP TABLE IF EXISTS pharmacy;
CREATE TABLE pharmacy ( -- rows=14747759
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
pharmacy_id INT UNSIGNED NOT NULL,
poe_id VARCHAR(255), -- max=14
starttime DATETIME,
stoptime DATETIME,
medication VARCHAR(255), -- max=84
proc_type VARCHAR(255) NOT NULL, -- max=21
status VARCHAR(255) NOT NULL, -- max=36
entertime DATETIME NOT NULL,
verifiedtime DATETIME,
route VARCHAR(255), -- max=28
frequency VARCHAR(255), -- max=25
disp_sched VARCHAR(255), -- max=84
infusion_type VARCHAR(255), -- max=2
sliding_scale VARCHAR(255), -- max=1
lockout_interval VARCHAR(255), -- max=43
basal_rate FLOAT,
one_hr_max VARCHAR(255), -- max=6
doses_per_24_hrs TINYINT UNSIGNED,
duration FLOAT,
duration_interval VARCHAR(255), -- max=7
expiration_value SMALLINT UNSIGNED,
expiration_unit VARCHAR(255), -- max=14
expirationdate DATETIME,
dispensation VARCHAR(255), -- max=28
fill_quantity VARCHAR(255) -- max=16
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'pharmacy.csv' INTO TABLE pharmacy
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@pharmacy_id,@poe_id,@starttime,@stoptime,@medication,@proc_type,@status,@entertime,@verifiedtime,@route,@frequency,@disp_sched,@infusion_type,@sliding_scale,@lockout_interval,@basal_rate,@one_hr_max,@doses_per_24_hrs,@duration,@duration_interval,@expiration_value,@expiration_unit,@expirationdate,@dispensation,@fill_quantity)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
pharmacy_id = trim(@pharmacy_id),
poe_id = IF(@poe_id='', NULL, trim(@poe_id)),
starttime = IF(@starttime='', NULL, trim(@starttime)),
stoptime = IF(@stoptime='', NULL, trim(@stoptime)),
medication = IF(@medication='', NULL, trim(@medication)),
proc_type = trim(@proc_type),
status = trim(@status),
entertime = trim(@entertime),
verifiedtime = IF(@verifiedtime='', NULL, trim(@verifiedtime)),
route = IF(@route='', NULL, trim(@route)),
frequency = IF(@frequency='', NULL, trim(@frequency)),
disp_sched = IF(@disp_sched='', NULL, trim(@disp_sched)),
infusion_type = IF(@infusion_type='', NULL, trim(@infusion_type)),
sliding_scale = IF(@sliding_scale='', NULL, trim(@sliding_scale)),
lockout_interval = IF(@lockout_interval='', NULL, trim(@lockout_interval)),
basal_rate = IF(@basal_rate='', NULL, trim(@basal_rate)),
one_hr_max = IF(@one_hr_max='', NULL, trim(@one_hr_max)),
doses_per_24_hrs = IF(@doses_per_24_hrs='', NULL, trim(@doses_per_24_hrs)),
duration = IF(@duration='', NULL, trim(@duration)),
duration_interval = IF(@duration_interval='', NULL, trim(@duration_interval)),
expiration_value = IF(@expiration_value='', NULL, trim(@expiration_value)),
expiration_unit = IF(@expiration_unit='', NULL, trim(@expiration_unit)),
expirationdate = IF(@expirationdate='', NULL, trim(@expirationdate)),
dispensation = IF(@dispensation='', NULL, trim(@dispensation)),
fill_quantity = IF(@fill_quantity='', NULL, trim(@fill_quantity));
DROP TABLE IF EXISTS poe;
CREATE TABLE poe ( -- rows=42526844
poe_id VARCHAR(255) NOT NULL, -- max=14
poe_seq SMALLINT UNSIGNED NOT NULL,
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
ordertime DATETIME NOT NULL,
order_type VARCHAR(255) NOT NULL, -- max=13
order_subtype VARCHAR(255), -- max=48
transaction_type VARCHAR(255) NOT NULL, -- max=6
discontinue_of_poe_id VARCHAR(255), -- max=14
discontinued_by_poe_id VARCHAR(255), -- max=14
order_status VARCHAR(255) -- max=8
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'poe.csv' INTO TABLE poe
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@poe_id,@poe_seq,@subject_id,@hadm_id,@ordertime,@order_type,@order_subtype,@transaction_type,@discontinue_of_poe_id,@discontinued_by_poe_id,@order_status)
SET
poe_id = trim(@poe_id),
poe_seq = trim(@poe_seq),
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
ordertime = trim(@ordertime),
order_type = trim(@order_type),
order_subtype = IF(@order_subtype='', NULL, trim(@order_subtype)),
transaction_type = trim(@transaction_type),
discontinue_of_poe_id = IF(@discontinue_of_poe_id='', NULL, trim(@discontinue_of_poe_id)),
discontinued_by_poe_id = IF(@discontinued_by_poe_id='', NULL, trim(@discontinued_by_poe_id)),
order_status = IF(@order_status='', NULL, trim(@order_status));
DROP TABLE IF EXISTS poe_detail;
CREATE TABLE poe_detail ( -- rows=3259644
poe_id VARCHAR(255) NOT NULL, -- max=14
poe_seq SMALLINT UNSIGNED NOT NULL,
subject_id INT UNSIGNED NOT NULL,
field_name VARCHAR(255) NOT NULL, -- max=19
field_value VARCHAR(255) NOT NULL -- max=54
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'poe_detail.csv' INTO TABLE poe_detail
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@poe_id,@poe_seq,@subject_id,@field_name,@field_value)
SET
poe_id = trim(@poe_id),
poe_seq = trim(@poe_seq),
subject_id = trim(@subject_id),
field_name = trim(@field_name),
field_value = trim(@field_value);
DROP TABLE IF EXISTS prescriptions;
CREATE TABLE prescriptions ( -- rows=17021399
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
pharmacy_id INT UNSIGNED NOT NULL,
starttime DATETIME,
stoptime DATETIME,
drug_type VARCHAR(255) NOT NULL, -- max=8
drug VARCHAR(255), -- max=84
gsn TEXT, -- max=223
ndc VARCHAR(255), -- max=11
prod_strength TEXT, -- max=112
form_rx VARCHAR(255), -- max=9
dose_val_rx VARCHAR(255), -- max=44
dose_unit_rx VARCHAR(255), -- max=32
form_val_disp VARCHAR(255), -- max=22
form_unit_disp VARCHAR(255), -- max=19
doses_per_24_hrs TINYINT UNSIGNED,
route VARCHAR(255) -- max=28
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'prescriptions.csv' INTO TABLE prescriptions
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@pharmacy_id,@starttime,@stoptime,@drug_type,@drug,@gsn,@ndc,@prod_strength,@form_rx,@dose_val_rx,@dose_unit_rx,@form_val_disp,@form_unit_disp,@doses_per_24_hrs,@route)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
pharmacy_id = trim(@pharmacy_id),
starttime = IF(@starttime='', NULL, trim(@starttime)),
stoptime = IF(@stoptime='', NULL, trim(@stoptime)),
drug_type = trim(@drug_type),
drug = IF(@drug='', NULL, trim(@drug)),
gsn = IF(@gsn='', NULL, trim(@gsn)),
ndc = IF(@ndc='', NULL, trim(@ndc)),
prod_strength = IF(@prod_strength='', NULL, trim(@prod_strength)),
form_rx = IF(@form_rx='', NULL, trim(@form_rx)),
dose_val_rx = IF(@dose_val_rx='', NULL, trim(@dose_val_rx)),
dose_unit_rx = IF(@dose_unit_rx='', NULL, trim(@dose_unit_rx)),
form_val_disp = IF(@form_val_disp='', NULL, trim(@form_val_disp)),
form_unit_disp = IF(@form_unit_disp='', NULL, trim(@form_unit_disp)),
doses_per_24_hrs = IF(@doses_per_24_hrs='', NULL, trim(@doses_per_24_hrs)),
route = IF(@route='', NULL, trim(@route));
DROP TABLE IF EXISTS procedureevents;
CREATE TABLE procedureevents ( -- rows=689846
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
stay_id INT UNSIGNED NOT NULL,
starttime DATETIME NOT NULL,
endtime DATETIME NOT NULL,
storetime DATETIME NOT NULL,
itemid MEDIUMINT UNSIGNED NOT NULL,
value FLOAT NOT NULL,
valueuom VARCHAR(255) NOT NULL, -- max=4
location VARCHAR(255), -- max=24
locationcategory VARCHAR(255), -- max=19
orderid MEDIUMINT UNSIGNED NOT NULL,
linkorderid MEDIUMINT UNSIGNED NOT NULL,
ordercategoryname VARCHAR(255) NOT NULL, -- max=21
secondaryordercategoryname VARCHAR(255), -- max=0
ordercategorydescription VARCHAR(255) NOT NULL, -- max=17
patientweight FLOAT NOT NULL,
totalamount VARCHAR(255), -- max=0
totalamountuom VARCHAR(255), -- max=0
isopenbag BOOLEAN NOT NULL,
continueinnextdept BOOLEAN NOT NULL,
cancelreason BOOLEAN NOT NULL,
statusdescription VARCHAR(255) NOT NULL, -- max=15
comments_date VARCHAR(255), -- max=0
originalamount FLOAT NOT NULL,
originalrate BOOLEAN NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'procedureevents.csv' INTO TABLE procedureevents
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@stay_id,@starttime,@endtime,@storetime,@itemid,@value,@valueuom,@location,@locationcategory,@orderid,@linkorderid,@ordercategoryname,@secondaryordercategoryname,@ordercategorydescription,@patientweight,@totalamount,@totalamountuom,@isopenbag,@continueinnextdept,@cancelreason,@statusdescription,@comments_date,@originalamount,@originalrate)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
stay_id = trim(@stay_id),
starttime = trim(@starttime),
endtime = trim(@endtime),
storetime = trim(@storetime),
itemid = trim(@itemid),
value = trim(@value),
valueuom = trim(@valueuom),
location = IF(@location='', NULL, trim(@location)),
locationcategory = IF(@locationcategory='', NULL, trim(@locationcategory)),
orderid = trim(@orderid),
linkorderid = trim(@linkorderid),
ordercategoryname = trim(@ordercategoryname),
secondaryordercategoryname = IF(@secondaryordercategoryname='', NULL, trim(@secondaryordercategoryname)),
ordercategorydescription = trim(@ordercategorydescription),
patientweight = trim(@patientweight),
totalamount = IF(@totalamount='', NULL, trim(@totalamount)),
totalamountuom = IF(@totalamountuom='', NULL, trim(@totalamountuom)),
isopenbag = trim(@isopenbag),
continueinnextdept = trim(@continueinnextdept),
cancelreason = trim(@cancelreason),
statusdescription = trim(@statusdescription),
comments_date = IF(@comments_date='', NULL, trim(@comments_date)),
originalamount = trim(@originalamount),
originalrate = trim(@originalrate);
DROP TABLE IF EXISTS procedures_icd;
CREATE TABLE procedures_icd ( -- rows=685414
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
seq_num TINYINT UNSIGNED NOT NULL,
chartdate DATETIME NOT NULL,
icd_code VARCHAR(255) NOT NULL, -- max=7
icd_version TINYINT UNSIGNED NOT NULL)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'procedures_icd.csv' INTO TABLE procedures_icd
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@seq_num,@chartdate,@icd_code,@icd_version)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
seq_num = trim(@seq_num),
chartdate = trim(@chartdate),
icd_code = trim(@icd_code),
icd_version = trim(@icd_version);
DROP TABLE IF EXISTS services;
CREATE TABLE services ( -- rows=563706
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED NOT NULL,
transfertime DATETIME NOT NULL,
prev_service VARCHAR(255), -- max=5
curr_service VARCHAR(255) NOT NULL -- max=5
)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'services.csv' INTO TABLE services
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@transfertime,@prev_service,@curr_service)
SET
subject_id = trim(@subject_id),
hadm_id = trim(@hadm_id),
transfertime = trim(@transfertime),
prev_service = IF(@prev_service='', NULL, trim(@prev_service)),
curr_service = trim(@curr_service);
DROP TABLE IF EXISTS transfers;
CREATE TABLE transfers ( -- rows=2192963
subject_id INT UNSIGNED NOT NULL,
hadm_id INT UNSIGNED,
transfer_id INT UNSIGNED NOT NULL,
eventtype VARCHAR(255) NOT NULL, -- max=9
careunit VARCHAR(255), -- max=48
intime DATETIME NOT NULL,
outtime DATETIME)
CHARACTER SET = UTF8;
LOAD DATA LOCAL INFILE 'transfers.csv' INTO TABLE transfers
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@transfer_id,@eventtype,@careunit,@intime,@outtime)
SET
subject_id = trim(@subject_id),
hadm_id = IF(@hadm_id='', NULL, trim(@hadm_id)),
transfer_id = trim(@transfer_id),
eventtype = trim(@eventtype),
careunit = IF(@careunit='', NULL, trim(@careunit)),
intime = trim(@intime),
outtime = IF(@outtime='', NULL, trim(@outtime)); | the_stack |
;
/*!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 */;
DROP TABLE IF EXISTS `activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activities` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`target_uid` varchar(255) DEFAULT NULL,
`category` varchar(255) DEFAULT NULL,
`user_ip` varchar(255) NOT NULL,
`user_agent` varchar(255) NOT NULL,
`topic` varchar(255) NOT NULL,
`action` varchar(255) NOT NULL,
`result` varchar(255) NOT NULL,
`data` text,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_activities_on_user_id` (`user_id`),
KEY `index_activities_on_target_uid` (`target_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `apikeys`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `apikeys` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`kid` varchar(255) NOT NULL,
`algorithm` varchar(255) NOT NULL,
`scope` varchar(255) DEFAULT NULL,
`state` varchar(255) NOT NULL DEFAULT 'active',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_apikeys_on_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `ar_internal_metadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ar_internal_metadata` (
`key` varchar(255) NOT NULL,
`value` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comments` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`author_uid` varchar(16) NOT NULL,
`title` varchar(64) NOT NULL,
`data` text NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_comments_on_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `data_storages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `data_storages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`title` varchar(64) NOT NULL,
`data` text NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_data_storages_on_user_id_and_title` (`user_id`,`title`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `documents` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`upload` varchar(255) DEFAULT NULL,
`doc_type` varchar(255) DEFAULT NULL,
`doc_number` varchar(255) DEFAULT NULL,
`doc_expire` date DEFAULT NULL,
`identificator` varchar(255) DEFAULT NULL,
`metadata` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`doc_issue` date DEFAULT NULL,
`doc_category` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_documents_on_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `labels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `labels` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`key` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
`scope` varchar(255) NOT NULL DEFAULT 'public',
`description` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_labels_on_user_id` (`user_id`),
KEY `index_labels_on_user_id_and_key_and_scope` (`user_id`,`key`,`scope`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `levels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `levels` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key` varchar(255) NOT NULL,
`value` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`action` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
`verb` varchar(255) NOT NULL,
`path` varchar(255) NOT NULL,
`topic` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_permissions_on_topic` (`topic`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `phones`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `phones` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`country` varchar(255) NOT NULL,
`number` varchar(255) NOT NULL,
`code` varchar(5) DEFAULT NULL,
`validated_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_phones_on_user_id` (`user_id`),
KEY `index_phones_on_number` (`number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `profiles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `profiles` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`author` varchar(255) DEFAULT NULL,
`applicant_id` varchar(255) DEFAULT NULL,
`first_name` varchar(255) DEFAULT NULL,
`last_name` varchar(255) DEFAULT NULL,
`dob` date DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`postcode` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`state` tinyint(3) unsigned DEFAULT '0',
`metadata` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_profiles_on_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `restrictions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `restrictions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`category` varchar(255) NOT NULL,
`scope` varchar(64) NOT NULL,
`value` varchar(64) NOT NULL,
`code` int(11) DEFAULT NULL,
`state` varchar(16) NOT NULL DEFAULT 'enabled',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `schema_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `schema_migrations` (
`version` varchar(255) NOT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uid` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password_digest` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL DEFAULT 'member',
`data` text,
`level` int(11) NOT NULL DEFAULT '0',
`otp` tinyint(1) DEFAULT '0',
`state` varchar(255) NOT NULL DEFAULT 'pending',
`referral_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_users_on_uid` (`uid`),
UNIQUE KEY `index_users_on_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!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 */;
INSERT INTO `schema_migrations` (version) VALUES
('20181101143041'),
('20181115100105'),
('20190108115333'),
('20190318133453'),
('20190529114214'),
('20190813112503'),
('20190827080317'),
('20190902032709'),
('20191122151630'),
('20191210090006'),
('20200318152130'),
('20200429082843'),
('20200514123908'),
('20200602075906'),
('20200609144734'),
('20200701115721'); | the_stack |
-- 2017-06-09T18:46:22.711
-- 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,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,540860,0,223,TO_TIMESTAMP('2017-06-09 18:46:22','YYYY-MM-DD HH24:MI:SS'),100,'Waren-Bewegungen (indirekte Verwendung)','D','_Produkt_Transaktionen','Y','N','N','N','N','Produkt Transaktionen',TO_TIMESTAMP('2017-06-09 18:46:22','YYYY-MM-DD HH24:MI:SS'),100,'Produkt Transaktionen')
;
-- 2017-06-09T18:46:22.722
-- 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=540860 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 2017-06-09T18:46:22.724
-- 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, 540860, 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=540860)
;
-- 2017-06-09T18:46:23.303
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540796 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.304
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540798 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.305
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540797 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.305
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540829 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.306
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540830 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.306
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540831 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.307
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540844 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.307
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540846 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.307
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540856 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.308
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540857 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.308
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000057 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.309
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000065 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.309
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000075 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:23.310
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540860 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.811
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540796 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.812
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540798 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540797 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540829 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540830 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.814
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540831 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.814
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540844 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.814
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540846 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.815
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540856 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.815
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540857 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.815
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540860 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.816
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000057 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.816
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000065 AND AD_Tree_ID=10
;
-- 2017-06-09T18:46:25.816
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000075 AND AD_Tree_ID=10
;
-- 2017-06-09T18:48:46.572
-- 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,384,540274,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2017-06-09T18:48:46.574
-- 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=540274 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-09T18:48:46.609
-- 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,540373,540274,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.642
-- 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,540374,540274,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.674
-- 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,540373,540637,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.721
-- 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,4906,0,384,540637,545565,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','Y','Y','N','Sektion',10,10,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.750
-- 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,4916,0,384,540637,545566,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Lagerort im Lager','"Lagerort" bezeichnet, wo im Lager ein Produkt aufzufinden ist.','Y','N','Y','Y','N','Lagerort',20,20,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.777
-- 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,4917,0,384,540637,545567,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem eine Produkt in oder aus dem Bestand bewegt wurde','"Bewegungs-Datum" bezeichnet das Datum, zu dem das Produkt in oder aus dem Bestand bewegt wurde Dies ist das Ergebnis einer Auslieferung, eines Wareneingangs oder einer Warenbewqegung.','Y','N','Y','Y','N','Bewegungs-Datum',30,30,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.806
-- 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,4915,0,384,540637,545568,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','Y','N','Produkt',40,40,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.834
-- 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,8239,0,384,540637,545569,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Merkmals Ausprägungen zum Produkt','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','Y','Y','N','Merkmale',50,50,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.865
-- 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,4908,0,384,540637,545570,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Art der Warenbewegung','"Bewegungs-Art" zeigt die Art der Warenbewegung (eingehend, ausgehend, an Produktion, usw.) an.','Y','N','Y','Y','N','Bewegungs-Art',60,60,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.901
-- 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,4913,0,384,540637,545571,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Menge eines bewegten Produktes.','Die "Bewegungs-Menge" bezeichnet die Menge einer Ware, die bewegt wurde.','Y','N','Y','Y','N','Bewegungs-Menge',70,70,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.933
-- 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,555681,0,384,540637,545572,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner','Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','N','Y','Y','N','Geschäftspartner',80,80,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:46.967
-- 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,4911,0,384,540637,545573,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Position auf Versand- oder Wareneingangsbeleg','"Versand-/Wareneingangsposition" bezeichnet eine einzelne Zeile/Position auf einem Versand- oder Wareneingangsbeleg.','Y','N','Y','Y','N','Versand-/Wareneingangsposition',90,90,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:47.001
-- 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,4909,0,384,540637,545574,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100,'Eindeutige Position in einem Inventurdokument','"Inventur-Position" bezeichnet die Poition in dem Inventurdokument (wenn zutreffend) für diese Transaktion.','Y','N','Y','Y','N','Inventur-Position',100,100,0,TO_TIMESTAMP('2017-06-09 18:48:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:47.034
-- 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,4912,0,384,540637,545575,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100,'Belegposition, die eine Produktion repräsentiert','"Produktions-Position" bezeichnet die Poition in dem Produktionsdokument (wenn zutreffend) für diese Transaktion.','Y','N','Y','Y','N','Produktions-Position',110,110,0,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:47.065
-- 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,4910,0,384,540637,545576,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100,'Eindeutige Position in einem Warenbewegungsdokument','"Warenbewegungs-Position" bezeichnet die Poition in dem Warenbewegungsdokument (wenn zutreffend) für diese Transaktion.','Y','N','Y','Y','N','Warenbewegungs- Position',120,120,0,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:48:47.095
-- 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,8210,0,384,540637,545577,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100,'Project Issues (Material, Labor)','Issues to the project initiated by the "Issue to Project" process. You can issue Receipts, Time and Expenses, or Stock.','Y','N','Y','Y','N','Projekt-Problem',130,130,0,TO_TIMESTAMP('2017-06-09 18:48:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:53:54.501
-- 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,540373,540638,TO_TIMESTAMP('2017-06-09 18:53:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-06-09 18:53:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:54:08.725
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='temp', SeqNo=99, UIStyle='',Updated=TO_TIMESTAMP('2017-06-09 18:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540637
;
-- 2017-06-09T18:54:40.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,4915,0,384,540638,545578,TO_TIMESTAMP('2017-06-09 18:54:40','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produkt',10,0,0,TO_TIMESTAMP('2017-06-09 18:54:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:55:13.272
-- 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,8239,0,384,540638,545579,TO_TIMESTAMP('2017-06-09 18:55:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Merkmale',20,0,0,TO_TIMESTAMP('2017-06-09 18:55:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:55:44.587
-- 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,4913,0,384,540638,545580,TO_TIMESTAMP('2017-06-09 18:55:44','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Menge',30,0,0,TO_TIMESTAMP('2017-06-09 18:55:44','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:55:58.475
-- 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,4908,0,384,540638,545581,TO_TIMESTAMP('2017-06-09 18:55:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Bewegungs Art',40,0,0,TO_TIMESTAMP('2017-06-09 18:55:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:56:07.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,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,4917,0,384,540638,545582,TO_TIMESTAMP('2017-06-09 18:56:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Datum',50,0,0,TO_TIMESTAMP('2017-06-09 18:56:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:56:27.411
-- 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,540374,540639,TO_TIMESTAMP('2017-06-09 18:56:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','flags',10,TO_TIMESTAMP('2017-06-09 18:56:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:57:49.789
-- 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,4907,0,384,540639,545583,TO_TIMESTAMP('2017-06-09 18:57:49','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Aktiv',10,0,0,TO_TIMESTAMP('2017-06-09 18:57:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:57:55.192
-- 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,540374,540640,TO_TIMESTAMP('2017-06-09 18:57:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-06-09 18:57:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:58:04.844
-- 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,4906,0,384,540640,545584,TO_TIMESTAMP('2017-06-09 18:58:04','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-06-09 18:58:04','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:58:13.756
-- 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,4905,0,384,540640,545585,TO_TIMESTAMP('2017-06-09 18:58:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-06-09 18:58:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T18:58:58.223
-- 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,4916,0,384,540640,545586,TO_TIMESTAMP('2017-06-09 18:58:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Lagerort',5,0,0,TO_TIMESTAMP('2017-06-09 18:58:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:00:05.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,4917,0,384,540639,545587,TO_TIMESTAMP('2017-06-09 19:00:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Datum',20,0,0,TO_TIMESTAMP('2017-06-09 19:00:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:00:15.706
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545582
;
-- 2017-06-09T19:00:30.523
-- 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,555681,0,384,540638,545588,TO_TIMESTAMP('2017-06-09 19:00:30','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Geschäftspartner',50,0,0,TO_TIMESTAMP('2017-06-09 19:00:30','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:01:40.660
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545565
;
-- 2017-06-09T19:01:40.681
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545566
;
-- 2017-06-09T19:01:40.689
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545567
;
-- 2017-06-09T19:01:40.699
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545568
;
-- 2017-06-09T19:01:40.708
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545569
;
-- 2017-06-09T19:01:40.718
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545570
;
-- 2017-06-09T19:01:40.727
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545571
;
-- 2017-06-09T19:01:40.735
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545572
;
-- 2017-06-09T19:01:57.280
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545573
;
-- 2017-06-09T19:01:57.345
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545574
;
-- 2017-06-09T19:01:57.368
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545575
;
-- 2017-06-09T19:01:57.382
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545576
;
-- 2017-06-09T19:01:57.395
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545577
;
-- 2017-06-09T19:02:01.013
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540637
;
-- 2017-06-09T19:02:10.884
-- 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,384,540275,TO_TIMESTAMP('2017-06-09 19:02:10','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-09 19:02:10','YYYY-MM-DD HH24:MI:SS'),100,'references')
;
-- 2017-06-09T19:02:10.887
-- 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=540275 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-09T19:02:26.047
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Section SET Value='advanced edit',Updated=TO_TIMESTAMP('2017-06-09 19:02:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Section_ID=540275
;
-- 2017-06-09T19:02:30.414
-- 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,540375,540275,TO_TIMESTAMP('2017-06-09 19:02:30','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-09 19:02:30','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:02:37.612
-- 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,540375,540641,TO_TIMESTAMP('2017-06-09 19:02:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,TO_TIMESTAMP('2017-06-09 19:02:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:02:54.431
-- 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,4911,0,384,540641,545589,TO_TIMESTAMP('2017-06-09 19:02:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Wareneingang',10,0,0,TO_TIMESTAMP('2017-06-09 19:02:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:03:09.476
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET Name='Versand/ Wareneingang',Updated=TO_TIMESTAMP('2017-06-09 19:03:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545589
;
-- 2017-06-09T19:03:25.314
-- 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,4910,0,384,540641,545590,TO_TIMESTAMP('2017-06-09 19:03:25','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Warenbewegung',20,0,0,TO_TIMESTAMP('2017-06-09 19:03:25','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:03:49.774
-- 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,4912,0,384,540641,545591,TO_TIMESTAMP('2017-06-09 19:03:49','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produktion',30,0,0,TO_TIMESTAMP('2017-06-09 19:03:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:03:59.716
-- 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,4909,0,384,540641,545592,TO_TIMESTAMP('2017-06-09 19:03:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Inventur',40,0,0,TO_TIMESTAMP('2017-06-09 19:03:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:04:09.016
-- 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,8210,0,384,540641,545593,TO_TIMESTAMP('2017-06-09 19:04:08','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Projekt',50,0,0,TO_TIMESTAMP('2017-06-09 19:04:08','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:04:11.295
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-09 19:04:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545589
;
-- 2017-06-09T19:04:11.742
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-09 19:04:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545590
;
-- 2017-06-09T19:04:12.063
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-09 19:04:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545591
;
-- 2017-06-09T19:04:12.401
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-09 19:04:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545592
;
-- 2017-06-09T19:04:13.806
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-09 19:04:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545593
;
-- 2017-06-09T19:04:22.258
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-06-09 19:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540641
;
-- 2017-06-09T19:07:48.396
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545578
;
-- 2017-06-09T19:07:48.406
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545579
;
-- 2017-06-09T19:07:48.413
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545580
;
-- 2017-06-09T19:07:48.422
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545581
;
-- 2017-06-09T19:07:48.425
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545588
;
-- 2017-06-09T19:07:48.428
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545583
;
-- 2017-06-09T19:07:48.431
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545587
;
-- 2017-06-09T19:07:48.433
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545586
;
-- 2017-06-09T19:07:48.434
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545584
;
-- 2017-06-09T19:07:48.436
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545585
;
-- 2017-06-09T19:07:48.437
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545589
;
-- 2017-06-09T19:07:48.439
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545590
;
-- 2017-06-09T19:07:48.440
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545591
;
-- 2017-06-09T19:07:48.441
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545592
;
-- 2017-06-09T19:07:48.447
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2017-06-09 19:07:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545593
;
-- 2017-06-09T19:08:05.497
-- 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-06-09 19:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545578
;
-- 2017-06-09T19:08:05.508
-- 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-06-09 19:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545579
;
-- 2017-06-09T19:08:05.512
-- 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-06-09 19:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545580
;
-- 2017-06-09T19:08:05.517
-- 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-06-09 19:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545581
;
-- 2017-06-09T19:08:51.819
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-09 19:08:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545578
;
-- 2017-06-09T19:09:00.575
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-09 19:09:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545579
;
-- 2017-06-09T19:09:04.949
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-09 19:09:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545581
;
-- 2017-06-09T19:09:10.804
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-09 19:09:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545588
;
-- 2017-06-09T19:09:23.932
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-09 19:09:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545584
;
-- 2017-06-09T19:09:27.499
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-09 19:09:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545585
;
-- 2017-06-09T19:09:30.531
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-06-09 19:09:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545586
;
-- 2017-06-09T19:09:58.235
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-09 19:09:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545587
;
-- 2017-06-09T19:16:26.651
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-06-09 19:16:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551923
;
-- 2017-06-09T19:16:29.591
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-06-09 19:16:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3667
;
-- 2017-06-09T19:16:48.003
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-06-09 19:16:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3668
;
-- 2017-06-09T19:16:49.986
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2017-06-09 19:16:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3669
;
-- 2017-06-09T19:18:13.500
-- 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,53409,558734,0,384,TO_TIMESTAMP('2017-06-09 19:18:13','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','Y','N','N','N','N','N','Manufacturing Cost Collector',TO_TIMESTAMP('2017-06-09 19:18:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:18:13.502
-- 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=558734 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)
;
-- 2017-06-09T19:18:44.640
-- 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_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,0,384,540641,545594,TO_TIMESTAMP('2017-06-09 19:18:44','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produktion',60,0,0,TO_TIMESTAMP('2017-06-09 19:18:44','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-09T19:18:50.689
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET Name='Produktionsauftrag',Updated=TO_TIMESTAMP('2017-06-09 19:18:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545591
;
-- 2017-06-09T19:19:08.291
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_Field_ID=558734, IsAdvancedField='Y', SeqNo=35,Updated=TO_TIMESTAMP('2017-06-09 19:19:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545594
;
-- 2017-06-09T19:19:20.297
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2017-06-09 19:19:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545594
; | the_stack |
-- 2020-07-27T11:56:20.093Z
-- 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,584731,'Y','de.metas.ui.web.picking.pickingslot.process.WEBUI_Picking_ForcePickToExistingHU','N',TO_TIMESTAMP('2020-07-27 14:56:19','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.ui.web','Y','N','N','N','N','N','N','N','Y','Y',0,'In bestehende HU Kommissionieren','N','N','Java',TO_TIMESTAMP('2020-07-27 14:56:19','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_Picking_ForcePickToExistingHU')
;
-- 2020-07-27T11:56:20.101Z
-- 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=584731 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-07-27T11:57:32.273Z
-- 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,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542492,0,584731,541846,29,'QtyCU',TO_TIMESTAMP('2020-07-27 14:57:32','YYYY-MM-DD HH24:MI:SS'),100,'Menge der CUs pro Einzelgebinde (normalerweise TU)','de.metas.ui.web',0,'Y','N','Y','N','Y','N','Menge CU/TU',10,TO_TIMESTAMP('2020-07-27 14:57:32','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2020-07-27T11:57:32.275Z
-- 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=541846 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-07-27T11:57:32.287Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID = 541846
;
-- 2020-07-27T11:57:32.288Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl (AD_Process_Para_ID, AD_Language, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Name, Description, Help, IsTranslated) SELECT 541846, AD_Language, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Name, Description, Help, IsTranslated FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID = 541196
;
-- 2020-07-28T13:53:25.771Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Trl SET Name='Pick to existing HU',Updated=TO_TIMESTAMP('2020-07-28 16:53:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Process_ID=584731
;
-- 2020-07-29T05:49:53.540Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544991,0,TO_TIMESTAMP('2020-07-29 08:49:53','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','No picked HU was found.','I',TO_TIMESTAMP('2020-07-29 08:49:53','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_Picking_NoPickedHuFound')
;
-- 2020-07-29T05:49:53.554Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544991 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2020-07-29T05:50:34.779Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544992,0,TO_TIMESTAMP('2020-07-29 08:50:34','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Picking to existing CUs is not allowed.','E',TO_TIMESTAMP('2020-07-29 08:50:34','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_Picking_PickingToExistingCUsNotAllowed')
;
-- 2020-07-29T05:50:34.781Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544992 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2020-07-29T05:51:09.585Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544993,0,TO_TIMESTAMP('2020-07-29 08:51:09','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Picking to the same HU for multiple orders is not allowed.','E',TO_TIMESTAMP('2020-07-29 08:51:09','YYYY-MM-DD HH24:MI:SS'),100,'WEBUI_Picking_PickingToTheSameHUForMultipleOrders')
;
-- 2020-07-29T05:51:09.591Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544993 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2020-07-29T06:43:47.635Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Picking to VHUs is not allowed.',Updated=TO_TIMESTAMP('2020-07-29 09:43:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544992
;
-- 2020-07-29T08:34:24.259Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Es wurde keine kommissionierte HU gefunden.',Updated=TO_TIMESTAMP('2020-07-29 11:34:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544991
;
-- 2020-07-29T08:34:32.048Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Es wurde keine kommissionierte HU gefunden.',Updated=TO_TIMESTAMP('2020-07-29 11:34:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544991
;
-- 2020-07-29T08:34:34.931Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Es wurde keine kommissionierte HU gefunden.',Updated=TO_TIMESTAMP('2020-07-29 11:34:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544991
;
-- 2020-07-29T08:34:44.557Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Es wurde keine kommissionierte HU gefunden.',Updated=TO_TIMESTAMP('2020-07-29 11:34:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=544991
;
-- 2020-07-29T08:35:12.293Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Das Kommissionieren in virtuelle HUs ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544992
;
-- 2020-07-29T08:35:19.415Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in virtuelle HUs ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544992
;
-- 2020-07-29T08:35:24.226Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in virtuelle HUs ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544992
;
-- 2020-07-29T08:35:34.514Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Picking toVHUs is not allowed.',Updated=TO_TIMESTAMP('2020-07-29 11:35:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544992
;
-- 2020-07-29T08:35:40.637Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in virtuelle HUs ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=544992
;
-- 2020-07-29T08:35:52.453Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Das Kommissionieren in dieselbe HU für mehrere Aufträge ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544993
;
-- 2020-07-29T08:35:56.675Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in dieselbe HU für mehrere Aufträge ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:35:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=544993
;
-- 2020-07-29T08:36:01.971Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in dieselbe HU für mehrere Aufträge ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:36:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544993
;
-- 2020-07-29T08:36:06.941Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Das Kommissionieren in dieselbe HU für mehrere Aufträge ist nicht erlaubt.',Updated=TO_TIMESTAMP('2020-07-29 11:36:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544993
; | the_stack |
-- MySQL dump 10.13 Distrib 5.6.15, for osx10.9 (x86_64)
--
-- Host: localhost Database: fresh_connection_test_master
-- ------------------------------------------------------
-- Server version 5.6.15
/*!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 */;
--
-- Current Database: `fresh_connection_test_master`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `fresh_connection_test_master` /*!40100 DEFAULT CHARACTER SET utf8 */;
SYSTEM echo "Loading master data set"
USE `fresh_connection_test_master`;
--
-- Table structure for table `addresses`
--
DROP TABLE IF EXISTS `addresses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `addresses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`prefecture` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `addresses`
--
LOCK TABLES `addresses` WRITE;
/*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
INSERT INTO `addresses` VALUES (1,1,'Tokyo (master)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tels`
--
DROP TABLE IF EXISTS `tels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`number` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tels`
--
LOCK TABLES `tels` WRITE;
/*!40000 ALTER TABLE `tels` DISABLE KEYS */;
INSERT INTO `tels` VALUES (1,1,'03-1111-1111 (master)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(2,1,'03-1111-1112 (master)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(3,1,'03-1111-1113 (master)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `tels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- 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(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Tsukasa (master)','2014-04-10 07:24:16','2014-04-10 07:24:16');
INSERT INTO `users` VALUES (2,'Other','2015-01-16 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Current Database: `fresh_connection_test_replica1`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `fresh_connection_test_replica1` /*!40100 DEFAULT CHARACTER SET utf8 */;
SYSTEM echo "Loading replica1 data set"
USE `fresh_connection_test_replica1`;
--
-- Table structure for table `addresses`
--
DROP TABLE IF EXISTS `addresses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `addresses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`prefecture` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `addresses`
--
LOCK TABLES `addresses` WRITE;
/*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
INSERT INTO `addresses` VALUES (1,1,'Tokyo (replica1)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tels`
--
DROP TABLE IF EXISTS `tels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`number` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tels`
--
LOCK TABLES `tels` WRITE;
/*!40000 ALTER TABLE `tels` DISABLE KEYS */;
INSERT INTO `tels` VALUES (1,1,'03-1111-1111 (replica1)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(2,1,'03-1111-1112 (replica1)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(3,1,'03-1111-1113 (replica1)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `tels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- 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(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Tsukasa (replica1)','2014-04-10 07:24:16','2014-04-10 07:24:16');
INSERT INTO `users` VALUES (2,'Other','2015-01-16 07:24:16','2014-04-10 07:24:16');
INSERT INTO `users` VALUES (3,'Other','2015-01-16 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Current Database: `fresh_connection_test_replica2`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `fresh_connection_test_replica2` /*!40100 DEFAULT CHARACTER SET utf8 */;
SYSTEM echo "Loading replica2 data set"
USE `fresh_connection_test_replica2`;
--
-- Table structure for table `addresses`
--
DROP TABLE IF EXISTS `addresses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `addresses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`prefecture` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `addresses`
--
LOCK TABLES `addresses` WRITE;
/*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
INSERT INTO `addresses` VALUES (1,1,'Tokyo (replica2)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tels`
--
DROP TABLE IF EXISTS `tels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`number` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tels`
--
LOCK TABLES `tels` WRITE;
/*!40000 ALTER TABLE `tels` DISABLE KEYS */;
INSERT INTO `tels` VALUES (1,1,'03-1111-1111 (replica2)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(2,1,'03-1111-1112 (replica2)','2014-04-10 07:24:16','2014-04-10 07:24:16'),(3,1,'03-1111-1113 (replica2)','2014-04-10 07:24:16','2014-04-10 07:24:16');
/*!40000 ALTER TABLE `tels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- 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(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Tsukasa (replica2)','2014-04-10 07:24:16','2014-04-10 07:24:16');
INSERT INTO `users` VALUES (2,'Other','2015-01-16 07:24:16','2014-04-10 07:24:16');
INSERT INTO `users` VALUES (3,'Other','2015-01-16 07:24:16','2014-04-10 07:24:16');
/*!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 2014-04-10 21:36:33 | the_stack |
-- Critical Bug Fix: Version 1.0 accidentally removed the creation of the trigger on the job_log table so that failing jobs would never cause check_job_status() to report a failed job. Jobs that were configured to run within a certain time period were still monitored for. This only affects new installations of pg_jobmon since 1.0. If you've upgraded from a previous version, the trigger is still working properly.
-- Redesigned check_job_status() to return more detailed, and more easily filtered data on the current status of running jobs. Please check how your monitoring software used this function to ensure it can handle the new output format properly. Each problem job is returned in its own row instead of all results being returned in a single row. If a single row is still desired, the highest alert level job in alphabetical order of job_name is always returned first, so a LIMIT 1 can be used as an easy solution. More advanced filtering is now possible, though. See the updated pg_jobmon.md doc for some examples.
-- Wrote pgTAP tests and some other custom tests to better validate future changes
-- Preserve dropped function privileges. Re-applied at the end of this update.
CREATE TEMP TABLE mimeo_preserve_privs_temp (statement text);
INSERT INTO mimeo_preserve_privs_temp
SELECT 'GRANT EXECUTE ON FUNCTION check_job_status(interval) TO '||array_to_string(array_agg(grantee::text), ',')||';'
FROM information_schema.routine_privileges
WHERE routine_schema = '@extschema@'
AND routine_name = 'check_job_status';
INSERT INTO mimeo_preserve_privs_temp
SELECT 'GRANT EXECUTE ON FUNCTION check_job_status() TO '||array_to_string(array_agg(grantee::text), ',')||';'
FROM information_schema.routine_privileges
WHERE routine_schema = '@extschema@'
AND routine_name = 'check_job_status';
CREATE FUNCTION replay_preserved_privs() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
v_row record;
BEGIN
FOR v_row IN SELECT statement FROM mimeo_preserve_privs_temp LOOP
EXECUTE v_row.statement;
END LOOP;
END
$$;
DROP FUNCTION check_job_status(interval);
DROP FUNCTION check_job_status();
DROP TRIGGER IF EXISTS trg_job_monitor ON @extschema@.job_log;
CREATE TRIGGER trg_job_monitor AFTER UPDATE ON @extschema@.job_log FOR EACH ROW EXECUTE PROCEDURE @extschema@.job_monitor();
/*
* 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 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_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 job failures' AS alert_text
FROM @extschema@.job_check_log l
WHERE l.job_name NOT IN (
SELECT c.job_name FROM @extschema@.job_check_config c
) GROUP BY l.job_name, l.alert_code HAVING count(*) > 2;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
-- 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(*)||' consecutive job failure(s)' AS alert_text FROM @extschema@.job_check_log l
JOIN @extschema@.job_check_config c ON l.job_name = c.job_name
GROUP BY l.job_name, l.alert_code, c.sensitivity HAVING count(*) > c.sensitivity;
GET DIAGNOSTICS v_rowcount = ROW_COUNT;
-- 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;
-- 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_rowcount IS NOT NULL AND v_rowcount > 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 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
$$;
-- Restore original privileges to objects that were dropped
SELECT @extschema@.replay_preserved_privs();
DROP FUNCTION @extschema@.replay_preserved_privs();
DROP TABLE mimeo_preserve_privs_temp; | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for auth_assignment
-- ----------------------------
DROP TABLE IF EXISTS `auth_assignment`;
CREATE TABLE `auth_assignment` (
`item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
PRIMARY KEY (`item_name`,`user_id`),
CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_assignment
-- ----------------------------
INSERT INTO `auth_assignment` VALUES ('demo测试账号', '320', '1544503585');
INSERT INTO `auth_assignment` VALUES ('超级管理员', '1', '1542121619');
-- ----------------------------
-- Table structure for auth_item
-- ----------------------------
DROP TABLE IF EXISTS `auth_item`;
CREATE TABLE `auth_item` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`type` int(11) NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` text COLLATE utf8_unicode_ci,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`),
KEY `rule_name` (`rule_name`) USING BTREE,
KEY `idx-auth_item-type` (`type`) USING BTREE,
CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_item
-- ----------------------------
INSERT INTO `auth_item` VALUES ('/*', '2', 'root权限', null, null, '1445273347', '1531648328');
INSERT INTO `auth_item` VALUES ('/admin', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/daily', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/deny-login', '2', '禁止登录', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/deny-pay', '2', '禁止充值', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/pay-order', '2', '首页', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/pay-order/push-order', '2', '补单/补发', null, null, null, null);
INSERT INTO `auth_item` VALUES ('/admin/permission', '2', '权限列表-首页', null, null, '1542966636', '1542966636');
INSERT INTO `auth_item` VALUES ('/admin/permission/create', '2', '权限列表-新增', null, null, '1542966653', '1542966685');
INSERT INTO `auth_item` VALUES ('/admin/permission/delete', '2', '权限列表-删除', null, null, '1542966663', '1542966663');
INSERT INTO `auth_item` VALUES ('/admin/permission/update', '2', '权限列表-更新', null, null, '1542966667', '1542966667');
INSERT INTO `auth_item` VALUES ('/admin/permission/view', '2', '权限列表-查看', null, null, '1542966659', '1542966659');
INSERT INTO `auth_item` VALUES ('/admin/roles', '2', '角色管理-首页', null, null, '1542966643', '1542966643');
INSERT INTO `auth_item` VALUES ('/admin/roles/create', '2', '角色管理-新增', null, null, '1542966679', '1542966679');
INSERT INTO `auth_item` VALUES ('/admin/roles/delete', '2', '角色管理-删除', null, null, '1542966690', '1542966690');
INSERT INTO `auth_item` VALUES ('/admin/roles/update', '2', '角色管理-更新', null, null, '1542966695', '1542966695');
INSERT INTO `auth_item` VALUES ('/admin/roles/view', '2', '角色管理-查看', null, null, '1542966699', '1542966699');
INSERT INTO `auth_item` VALUES ('/admin/route', '2', '路由列表-首页', null, null, '1542966726', '1542966726');
INSERT INTO `auth_item` VALUES ('/admin/route/delete', '2', '路由列表-删除', null, null, '1542966743', '1542966743');
INSERT INTO `auth_item` VALUES ('/admin/route/update', '2', '路由列表-更新', null, null, '1542966737', '1542966737');
INSERT INTO `auth_item` VALUES ('/admin/rule', '2', '规则列表-首页', null, null, '1542966765', '1542966765');
INSERT INTO `auth_item` VALUES ('/admin/rule/create', '2', '规则列表-新增', null, null, '1542966772', '1542966772');
INSERT INTO `auth_item` VALUES ('/admin/rule/delete', '2', '规则列表-删除', null, null, '1542966781', '1542966781');
INSERT INTO `auth_item` VALUES ('/admin/rule/update', '2', '规则列表-修改', null, null, '1542966776', '1542966776');
INSERT INTO `auth_item` VALUES ('/admin/sdk-user', '2', '首页', null, null, '1540354033', '1540354033');
INSERT INTO `auth_item` VALUES ('/admin/user', '2', '用户管理-首页', null, null, '1542966797', '1542966797');
INSERT INTO `auth_item` VALUES ('/admin/user/change-name', '2', '用户管理-修改名字', null, null, '1542966813', '1542966813');
INSERT INTO `auth_item` VALUES ('/admin/user/create', '2', '用户管理-新增', null, null, '1542966819', '1542966830');
INSERT INTO `auth_item` VALUES ('/admin/user/delete', '2', '用户管理-删除', null, null, '1542966825', '1542966825');
INSERT INTO `auth_item` VALUES ('/admin/user/update', '2', '用户管理-更新', null, null, '1542966835', '1542966835');
INSERT INTO `auth_item` VALUES ('/admin/user/view', '2', '用户管理-查看', null, null, '1542966802', '1542966802');
INSERT INTO `auth_item` VALUES ('/filter', '2', '过滤条件小组件请求', null, null, '1542377866', '1542377866');
INSERT INTO `auth_item` VALUES ('/filter/*', '2', '过滤条件小组件root', null, null, '1542377850', '1542377875');
INSERT INTO `auth_item` VALUES ('/setting/*', '2', '权限管理(所有)', null, null, '1445273367', '1446980086');
INSERT INTO `auth_item` VALUES ('/setting/permission', '2', '权限列表(菜单)', null, null, '1446978274', '1446978274');
INSERT INTO `auth_item` VALUES ('/setting/permission/*', '2', '权限列表(所有)', null, null, '1446978304', '1446978304');
INSERT INTO `auth_item` VALUES ('/setting/permission/create', '2', '权限列表(新增)', null, null, '1446978386', '1446978386');
INSERT INTO `auth_item` VALUES ('/setting/permission/delete', '2', '权限列表(删除)', null, null, '1446978795', '1446978795');
INSERT INTO `auth_item` VALUES ('/setting/permission/update', '2', '权限列表(修改)', null, null, '1446978532', '1446978532');
INSERT INTO `auth_item` VALUES ('/setting/permission/view', '2', '权限列表(授权)', null, null, '1446978634', '1446978634');
INSERT INTO `auth_item` VALUES ('/setting/roles', '2', '角色管理(菜单)', null, null, '1446385324', '1446977972');
INSERT INTO `auth_item` VALUES ('/setting/roles/*', '2', '角色管理(所有)', null, null, '1446977859', '1446977859');
INSERT INTO `auth_item` VALUES ('/setting/roles/create', '2', '角色管理(新增)', null, null, '1446385374', '1446976895');
INSERT INTO `auth_item` VALUES ('/setting/roles/delete', '2', '角色管理(删除)', null, null, '1446977154', '1446977154');
INSERT INTO `auth_item` VALUES ('/setting/roles/update', '2', '角色管理(修改)', null, null, '1446977126', '1446977126');
INSERT INTO `auth_item` VALUES ('/setting/roles/view', '2', '角色管理(授权)', null, null, '1446385418', '1446976924');
INSERT INTO `auth_item` VALUES ('/setting/route', '2', '路由列表(菜单)', null, null, '1446979171', '1446979171');
INSERT INTO `auth_item` VALUES ('/setting/route/*', '2', '路由列表(所有)', null, null, '1446979317', '1446979317');
INSERT INTO `auth_item` VALUES ('/setting/route/create', '2', '路由列表(新增)', null, null, '1446979199', '1446979199');
INSERT INTO `auth_item` VALUES ('/setting/route/delete', '2', '路由列表(删除)', null, null, '1446979221', '1446979221');
INSERT INTO `auth_item` VALUES ('/setting/rule', '2', '规则列表(菜单)', null, null, '1446979291', '1446979291');
INSERT INTO `auth_item` VALUES ('/setting/rule/*', '2', '规则列表(所有)', null, null, '1446979531', '1446979531');
INSERT INTO `auth_item` VALUES ('/setting/rule/create', '2', '规则列表(新增)', null, null, '1446979544', '1446979544');
INSERT INTO `auth_item` VALUES ('/setting/rule/delete', '2', '规则列表(删除)', null, null, '1446979583', '1446979583');
INSERT INTO `auth_item` VALUES ('/setting/rule/update', '2', '规则列表(修改)', null, null, '1446979567', '1446979567');
INSERT INTO `auth_item` VALUES ('/setting/rule/view', '2', '规则列表(详情)', null, null, '1446979599', '1446979599');
INSERT INTO `auth_item` VALUES ('/setting/user', '2', '用户管理(菜单)', null, null, '1446385148', '1446978141');
INSERT INTO `auth_item` VALUES ('/setting/user/*', '2', '用户管理(所有)', null, null, '1446978175', '1446978175');
INSERT INTO `auth_item` VALUES ('/setting/user/change-name', '2', '快捷改用户名', null, null, '1459411553', '1459411553');
INSERT INTO `auth_item` VALUES ('/setting/user/create', '2', '用户管理(新增)', null, null, '1446977571', '1446977571');
INSERT INTO `auth_item` VALUES ('/setting/user/delete', '2', '用户管理(删除)', null, null, '1446977488', '1446977488');
INSERT INTO `auth_item` VALUES ('/setting/user/update', '2', '用户管理(修改)', null, null, '1446977393', '1446977393');
INSERT INTO `auth_item` VALUES ('/setting/user/view', '2', '用户管理(授权)', null, null, '1446977422', '1446977422');
INSERT INTO `auth_item` VALUES ('/site', '2', 'Yii2-admin-theme后台首页', null, null, '1542017492', '1542017497');
INSERT INTO `auth_item` VALUES ('/site/about', '2', '关于我们', null, null, '1542017567', '1542017567');
INSERT INTO `auth_item` VALUES ('/site/captcha', '2', '登录验证码 ', null, null, '1542017356', '1542273403');
INSERT INTO `auth_item` VALUES ('/site/close-win', '2', '关闭iframe中转页面', null, null, '1542017584', '1542017584');
INSERT INTO `auth_item` VALUES ('/site/contact', '2', '联系我们', null, null, '1542017507', '1542017507');
INSERT INTO `auth_item` VALUES ('/site/error', '2', '错误页面', null, null, '1542016399', '1542273565');
INSERT INTO `auth_item` VALUES ('/site/login', '2', '登录', null, null, '1542017270', '1542017346');
INSERT INTO `auth_item` VALUES ('/site/logout', '2', '注销', null, null, '1542017502', '1542017502');
INSERT INTO `auth_item` VALUES ('/site/main', '2', '首页-关键报表', null, null, '1542967756', '1542967756');
INSERT INTO `auth_item` VALUES ('/site/reset-password', '2', '修改密码', null, null, '1459780141', '1459780141');
INSERT INTO `auth_item` VALUES ('/site/select', '2', '选择游戏', null, null, '1459394594', '1459394594');
INSERT INTO `auth_item` VALUES ('demo测试账号', '1', 'demo测试账号', null, null, '1544503565', '1544503565');
INSERT INTO `auth_item` VALUES ('普通管理员', '1', '普通管理员', null, null, '1440871961', '1440871961');
INSERT INTO `auth_item` VALUES ('测试1', '2', '测试1', null, null, '1541997258', '1542009523');
INSERT INTO `auth_item` VALUES ('测试2', '2', '测试2', null, null, '1542009571', '1542009571');
INSERT INTO `auth_item` VALUES ('测试4', '2', '测试4', null, null, '1542010241', '1542010241');
INSERT INTO `auth_item` VALUES ('超级管理员', '1', '拥有所有权限', null, null, '1440871961', '1446885517');
-- ----------------------------
-- Table structure for auth_item_child
-- ----------------------------
DROP TABLE IF EXISTS `auth_item_child`;
CREATE TABLE `auth_item_child` (
`parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`child` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`parent`,`child`),
KEY `child` (`child`) USING BTREE,
CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_item_child
-- ----------------------------
INSERT INTO `auth_item_child` VALUES ('普通管理员', '/*');
INSERT INTO `auth_item_child` VALUES ('超级管理员', '/*');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/daily');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/pay-order');
INSERT INTO `auth_item_child` VALUES ('测试1', '/admin/pay-order/push-order');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/permission');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/roles');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/route');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/rule');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/admin/user');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/filter');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/site');
INSERT INTO `auth_item_child` VALUES ('demo测试账号', '/site/main');
INSERT INTO `auth_item_child` VALUES ('超级管理员', '普通管理员');
INSERT INTO `auth_item_child` VALUES ('测试1', '测试2');
-- ----------------------------
-- Table structure for auth_rule
-- ----------------------------
DROP TABLE IF EXISTS `auth_rule`;
CREATE TABLE `auth_rule` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`data` text COLLATE utf8_unicode_ci,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of auth_rule
-- ----------------------------
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`phone` varchar(13) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '手机号',
`role` smallint(6) NOT NULL DEFAULT '10',
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=321 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'admin', 'fLFmsQ1h5jVyDJmoRkE_C04CgoeoKoOz', '$2y$13$1D5OoJClOO7lMT2LtpG2zuEH0ukt/bZs9f2obid5Yde5N08UdRxgS', null, '1044748759@qq.com', '110', '10', '10', '1460604540', '1543558364');
INSERT INTO `user` VALUES ('320', 'demo', 'fLFmsQ1h5jVyDJmoRkE_C04CgoeoKoOz', '$2y$13$1D5OoJClOO7lMT2LtpG2zuEH0ukt/bZs9f2obid5Yde5N08UdRxgS', null, '', '110', '10', '10', '1542962893', '1542962893');
SET FOREIGN_KEY_CHECKS=1; | the_stack |
-- MySQL dump 10.13 Distrib 5.6.43, for Linux (x86_64)
--
-- Host: localhost Database:
-- ------------------------------------------------------
-- Server version 5.6.43
/*!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 */;
--
-- Current Database: `dev`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `dev` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `dev`;
--
-- Table structure for table `market_small_scene`
--
DROP TABLE IF EXISTS `market_small_scene`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `market_small_scene` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '小场景id',
`name` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '名称',
`desc` varchar(200) CHARACTER SET utf8 DEFAULT '''''' COMMENT '描述',
`tagid` varchar(200) NOT NULL COMMENT '标签id',
`url` varchar(400) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '跳转url',
`pic` varchar(400) CHARACTER SET utf8 NOT NULL DEFAULT '' COMMENT '图片url',
`update_time` bigint(21) NOT NULL DEFAULT '0' COMMENT '更新时间',
`create_time` bigint(21) NOT NULL DEFAULT '0' COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1启用 0弃用',
`update_uid` bigint(21) DEFAULT '0' COMMENT '更改人',
`create_uid` bigint(21) DEFAULT '0' COMMENT '创建人',
`bigscene_id` int(11) NOT NULL COMMENT '大场景的id',
`resource_id` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_bigid` (`bigscene_id`)
) ENGINE=InnoDB AUTO_INCREMENT=801 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Current Database: `gateway_web`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `gateway_web` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `gateway_web`;
--
-- Table structure for table `account`
--
DROP TABLE IF EXISTS `account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户id',
`username` varchar(128) NOT NULL DEFAULT '' COMMENT '用户名',
`name` varchar(256) NOT NULL DEFAULT '' COMMENT '姓名,用于显示',
`role` tinyint(4) NOT NULL DEFAULT '0' COMMENT '账户类型 1-admin,2-work',
`email` varchar(256) NOT NULL DEFAULT '' COMMENT '邮箱',
`phone` varchar(256) NOT NULL DEFAULT '' COMMENT '电话',
`gid` int(11) NOT NULL DEFAULT '0' COMMENT '组id',
`ctime` bigint(21) NOT NULL DEFAULT '0' COMMENT '创建时间,毫秒',
`utime` bigint(21) NOT NULL DEFAULT '0' COMMENT '更新时间,毫秒',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account`
--
--
-- Table structure for table `api_group_info`
--
DROP TABLE IF EXISTS `api_group_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `api_group_info` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '分组名称',
`description` varchar(1023) NOT NULL DEFAULT '' COMMENT '分组描述',
`ctime` bigint(20) NOT NULL COMMENT '创建时间(毫秒)',
`utime` bigint(20) NOT NULL COMMENT '更新时间(毫秒)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `api_group_info`
--
--
-- Table structure for table `api_info`
--
DROP TABLE IF EXISTS `api_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `api_info` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '' COMMENT 'api名称',
`description` varchar(500) NOT NULL DEFAULT '' COMMENT 'api描述',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '请求路径',
`http_method` varchar(255) NOT NULL DEFAULT '' COMMENT '提交方式',
`path` varchar(255) NOT NULL DEFAULT '' COMMENT '后端请求路径',
`route_type` tinyint(4) NOT NULL COMMENT '路由类型 (0-http,1-dubbo)',
`group_id` int(20) unsigned NOT NULL DEFAULT '0' COMMENT '分组Id',
`service_name` varchar(100) NOT NULL DEFAULT '' COMMENT '服务名称',
`method_name` varchar(100) NOT NULL DEFAULT '' COMMENT '方法名称',
`service_group` varchar(100) NOT NULL DEFAULT '' COMMENT 'RPC服务分组',
`service_version` varchar(100) NOT NULL DEFAULT '' COMMENT '服务的版本号',
`param_template` text NOT NULL COMMENT '参数模板,json模板',
`status` int(100) NOT NULL,
`creator` varchar(128) NOT NULL DEFAULT '' COMMENT '创建者',
`updater` varchar(128) NOT NULL DEFAULT '' COMMENT '更新者',
`content_type` varchar(127) NOT NULL COMMENT '返回结果类型,用于mock',
`flag` int(11) NOT NULL DEFAULT '0' COMMENT '低四位自低向高依次为:是否mock:是否缓存:是否打印日志:是否使用脚本',
`invoke_limit` int(11) NOT NULL DEFAULT '600' COMMENT '每分钟调用次数限制',
`qps_limit` int(11) NOT NULL DEFAULT '1000' COMMENT 'qps限制',
`timeout` int(11) NOT NULL DEFAULT '1000' COMMENT '超时时间(毫秒)',
`token` varchar(255) NOT NULL DEFAULT '' COMMENT '调用token',
`ctime` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间(毫秒)',
`utime` bigint(20) NOT NULL DEFAULT '0' COMMENT '修改时间(毫秒)',
`plugin_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_url` (`url`),
KEY `idx_group` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `conf`
--
DROP TABLE IF EXISTS `conf`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `conf` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`conf_key` varchar(256) NOT NULL DEFAULT '' COMMENT '配置的键',
`conf_value` text COMMENT '配置内容',
`ctime` bigint(21) NOT NULL DEFAULT '0' COMMENT '创建时间,毫秒',
`utime` bigint(21) NOT NULL DEFAULT '0' COMMENT '更新时间,毫秒',
`version` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `conf`
--
LOCK TABLES `conf` WRITE;
/*!40000 ALTER TABLE `conf` DISABLE KEYS */;
/*!40000 ALTER TABLE `conf` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `error_record`
--
DROP TABLE IF EXISTS `error_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `error_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action` varchar(100) DEFAULT '' COMMENT '操作信息',
`server_info` varchar(30) DEFAULT '' COMMENT '服务器信息',
`type` int(11) DEFAULT '0' COMMENT '错误类型',
`message` text COMMENT '错误信息',
`params` text COMMENT '本次调用的参数',
`result` text COMMENT '本次调用结果',
`version` int(11) DEFAULT '0' COMMENT '内部版本',
`status` int(11) DEFAULT '0',
`created` bigint(20) DEFAULT NULL COMMENT '创建时间(毫秒)',
`updated` bigint(20) DEFAULT NULL COMMENT '更新时间(毫秒)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `error_record`
--
LOCK TABLES `error_record` WRITE;
/*!40000 ALTER TABLE `error_record` DISABLE KEYS */;
/*!40000 ALTER TABLE `error_record` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `gateway_api`
--
DROP TABLE IF EXISTS `gateway_api`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gateway_api` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT 'api名称',
`describe` varchar(500) DEFAULT NULL COMMENT 'api描述',
`url` varchar(255) DEFAULT NULL COMMENT '请求路径',
`http_method` varchar(255) DEFAULT NULL COMMENT '提交方式',
`path` varchar(255) DEFAULT NULL COMMENT '后端请求路径',
`routes` int(11) DEFAULT NULL COMMENT '路由类型',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
`gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
`group_id` bigint(20) unsigned NOT NULL COMMENT '分组Id',
`service_name` varchar(100) DEFAULT NULL COMMENT '服务名称',
`method_name` varchar(100) DEFAULT NULL COMMENT '方法名称',
`service_group` varchar(100) DEFAULT NULL COMMENT 'RPC服务分组',
`service_version` varchar(100) DEFAULT NULL COMMENT '服务的版本号',
`param_template` text COMMENT '参数模板,json模板',
`status` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_url` (`url`),
KEY `fk_group` (`group_id`),
CONSTRAINT `fk_group` FOREIGN KEY (`group_id`) REFERENCES `gateway_api_group` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='api';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `gateway_api_group`
--
DROP TABLE IF EXISTS `gateway_api_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gateway_api_group` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT 'api名称',
`describe` varchar(500) DEFAULT NULL COMMENT 'api描述',
`backend_host` varchar(255) DEFAULT NULL COMMENT '目标地址',
`backend_port` varchar(255) DEFAULT NULL COMMENT '目标端口',
`backend_path` varchar(255) DEFAULT NULL COMMENT '目标url前缀',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
`gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='api';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `gateway_filter`
--
DROP TABLE IF EXISTS `gateway_filter`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gateway_filter` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT '组件名称',
`describe` varchar(500) DEFAULT NULL COMMENT '组件描述',
`in_or_out` varchar(10) DEFAULT 'in' COMMENT '入口还是出口',
`filter_type` varchar(100) DEFAULT NULL,
`rule` varchar(5000) DEFAULT NULL,
`api_id` bigint(20) DEFAULT NULL COMMENT 'apiId',
`group_id` bigint(20) DEFAULT NULL COMMENT 'groupId',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
`gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `unique_instance_api` (`filter_type`,`api_id`),
UNIQUE KEY `unique_instance_group` (`filter_type`,`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='过滤规则表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `gateway_user_filter`
--
DROP TABLE IF EXISTS `gateway_user_filter`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gateway_user_filter` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`filter_class` varchar(250) NOT NULL,
`rule` varchar(5000) DEFAULT NULL,
`filter_id` int(11) NOT NULL,
`gmt_create` datetime DEFAULT NULL,
`gmt_modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `unique_instance` (`filter_id`,`filter_class`),
KEY `fk_user_filter` (`filter_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户自定义规则表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `gateway_user_filter`
--
LOCK TABLES `gateway_user_filter` WRITE;
/*!40000 ALTER TABLE `gateway_user_filter` DISABLE KEYS */;
/*!40000 ALTER TABLE `gateway_user_filter` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `iface_conf`
--
DROP TABLE IF EXISTS `iface_conf`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iface_conf` (
`id` bigint(21) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`action` varchar(255) NOT NULL DEFAULT '',
`method` varchar(255) NOT NULL DEFAULT '',
`need_cache` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否需要缓存:0-不需要,1-需要',
`need_log` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否需要日志:0-不需要,1-需要',
`online` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否在线:0-不在线,1-在线',
`addr` varchar(128) NOT NULL DEFAULT '' COMMENT '地址',
`mock` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否采用mock数据:0-否,1-是',
`mockData` text COMMENT 'mock数据,json格式',
`script` text COMMENT '接口处理脚本',
`ctime` bigint(21) NOT NULL DEFAULT '0' COMMENT '创建时间,毫秒',
`utime` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新时间,毫秒',
`version` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `iface_conf`
--
LOCK TABLES `iface_conf` WRITE;
/*!40000 ALTER TABLE `iface_conf` DISABLE KEYS */;
/*!40000 ALTER TABLE `iface_conf` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `iface_run_info`
--
DROP TABLE IF EXISTS `iface_run_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iface_run_info` (
`id` bigint(21) unsigned NOT NULL AUTO_INCREMENT,
`iface_id` bigint(21) NOT NULL DEFAULT '0' COMMENT 'iface_conf外键',
`run_info` text COMMENT '运行信息',
`ctime` bigint(21) NOT NULL DEFAULT '0' COMMENT '创建时间,毫秒',
`utime` bigint(21) NOT NULL DEFAULT '0' COMMENT '更新时间,毫秒',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `iface_run_info`
--
LOCK TABLES `iface_run_info` WRITE;
/*!40000 ALTER TABLE `iface_run_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `iface_run_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_access_token`
--
DROP TABLE IF EXISTS `oauth_access_token`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_access_token` (
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`token_id` varchar(255) DEFAULT NULL,
`token_expired_seconds` int(11) DEFAULT '-1',
`authentication_id` varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`client_id` varchar(255) DEFAULT NULL,
`token_type` varchar(255) DEFAULT NULL,
`refresh_token_expired_seconds` int(11) DEFAULT '-1',
`refresh_token` varchar(255) DEFAULT NULL,
UNIQUE KEY `token_id` (`token_id`),
UNIQUE KEY `refresh_token` (`refresh_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_access_token`
--
LOCK TABLES `oauth_access_token` WRITE;
/*!40000 ALTER TABLE `oauth_access_token` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_access_token` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_client_details`
--
DROP TABLE IF EXISTS `oauth_client_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_client_details` (
`client_id` varchar(255) NOT NULL,
`client_secret` varchar(255) DEFAULT NULL,
`client_name` varchar(255) DEFAULT NULL,
`scope` varchar(255) DEFAULT NULL,
`grant_types` varchar(255) DEFAULT NULL,
`redirect_uri` varchar(255) DEFAULT NULL,
`access_token_validity` int(11) DEFAULT '-1',
`refresh_token_validity` int(11) DEFAULT '-1',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`trusted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `oauth_code`
--
DROP TABLE IF EXISTS `oauth_code`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_code` (
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`code` varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`client_id` varchar(255) DEFAULT NULL,
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_code`
--
LOCK TABLES `oauth_code` WRITE;
/*!40000 ALTER TABLE `oauth_code` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_code` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `plugin_info`
--
DROP TABLE IF EXISTS `plugin_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `plugin_info` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL,
`file_content` mediumblob NOT NULL,
`ctime` bigint(20) DEFAULT NULL,
`utime` bigint(20) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`creator` varchar(128) DEFAULT NULL,
`desc` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_dept`
--
DROP TABLE IF EXISTS `sys_dept`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL COMMENT '上级部门ID,一级部门为0',
`name` varchar(50) DEFAULT NULL COMMENT '部门名称',
`order_num` int(11) DEFAULT NULL COMMENT '排序',
`del_flag` tinyint(4) DEFAULT '0' COMMENT '是否删除 -1:已删除 0:正常',
PRIMARY KEY (`dept_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='部门管理';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_log`
--
DROP TABLE IF EXISTS `sys_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
`username` varchar(50) DEFAULT NULL COMMENT '用户名',
`operation` varchar(50) DEFAULT NULL COMMENT '用户操作',
`time` int(11) DEFAULT NULL COMMENT '响应时间',
`method` varchar(200) DEFAULT NULL COMMENT '请求方法',
`params` varchar(5000) DEFAULT NULL COMMENT '请求参数',
`ip` varchar(64) DEFAULT NULL COMMENT 'IP地址',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8110 DEFAULT CHARSET=utf8 COMMENT='系统日志';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_menu`
--
DROP TABLE IF EXISTS `sys_menu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL COMMENT '父菜单ID,一级菜单为0',
`name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
`url` varchar(200) DEFAULT NULL COMMENT '菜单URL',
`perms` varchar(500) DEFAULT NULL COMMENT '授权(多个用逗号分隔,如:user:list,user:create)',
`type` int(11) DEFAULT NULL COMMENT '类型 0:目录 1:菜单 2:按钮',
`icon` varchar(50) DEFAULT NULL COMMENT '菜单图标',
`order_num` int(11) DEFAULT NULL COMMENT '排序',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
`gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`menu_id`)
) ENGINE=InnoDB AUTO_INCREMENT=102 DEFAULT CHARSET=utf8 COMMENT='菜单管理';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_role_menu`
--
DROP TABLE IF EXISTS `sys_role_menu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_role_menu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
`menu_id` bigint(20) DEFAULT NULL COMMENT '菜单ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2974 DEFAULT CHARSET=utf8 COMMENT='角色与菜单对应关系';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_user`
--
DROP TABLE IF EXISTS `sys_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(50) DEFAULT NULL COMMENT '用户名',
`name` varchar(100) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL COMMENT '密码',
`dept_id` int(20) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL COMMENT '邮箱',
`mobile` varchar(100) DEFAULT NULL COMMENT '手机号',
`status` tinyint(255) DEFAULT NULL COMMENT '状态 0:禁用,1:正常',
`user_id_create` bigint(255) DEFAULT NULL COMMENT '创建用户id',
`gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
`gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sys_user_role`
--
DROP TABLE IF EXISTS `sys_user_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_user_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
`role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8 COMMENT='用户与角色对应关系';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Current Database: `mysql`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysql` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mysql`;
--
-- Table structure for table `columns_priv`
--
DROP TABLE IF EXISTS `columns_priv`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `columns_priv` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `columns_priv`
--
LOCK TABLES `columns_priv` WRITE;
/*!40000 ALTER TABLE `columns_priv` DISABLE KEYS */;
/*!40000 ALTER TABLE `columns_priv` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `db`
--
DROP TABLE IF EXISTS `db`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `db` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
PRIMARY KEY (`Host`,`Db`,`User`),
KEY `User` (`User`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `event`
--
DROP TABLE IF EXISTS `event`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event` (
`db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`name` char(64) NOT NULL DEFAULT '',
`body` longblob NOT NULL,
`definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`execute_at` datetime DEFAULT NULL,
`interval_value` int(11) DEFAULT NULL,
`interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`last_executed` datetime DEFAULT NULL,
`starts` datetime DEFAULT NULL,
`ends` datetime DEFAULT NULL,
`status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
`on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
`sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
`comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`originator` int(10) unsigned NOT NULL,
`time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
`character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`body_utf8` longblob,
PRIMARY KEY (`db`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `event`
--
LOCK TABLES `event` WRITE;
/*!40000 ALTER TABLE `event` DISABLE KEYS */;
/*!40000 ALTER TABLE `event` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `func`
--
DROP TABLE IF EXISTS `func`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `func` (
`name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`ret` tinyint(1) NOT NULL DEFAULT '0',
`dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
`type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `func`
--
LOCK TABLES `func` WRITE;
/*!40000 ALTER TABLE `func` DISABLE KEYS */;
/*!40000 ALTER TABLE `func` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `help_category`
--
DROP TABLE IF EXISTS `help_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help_category` (
`help_category_id` smallint(5) unsigned NOT NULL,
`name` char(64) NOT NULL,
`parent_category_id` smallint(5) unsigned DEFAULT NULL,
`url` text NOT NULL,
PRIMARY KEY (`help_category_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help categories';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `help_keyword`
--
DROP TABLE IF EXISTS `help_keyword`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help_keyword` (
`help_keyword_id` int(10) unsigned NOT NULL,
`name` char(64) NOT NULL,
PRIMARY KEY (`help_keyword_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help keywords';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `help_relation`
--
DROP TABLE IF EXISTS `help_relation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help_relation` (
`help_topic_id` int(10) unsigned NOT NULL,
`help_keyword_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`help_keyword_id`,`help_topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='keyword-topic relation';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `help_topic`
--
DROP TABLE IF EXISTS `help_topic`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help_topic` (
`help_topic_id` int(10) unsigned NOT NULL,
`name` char(64) NOT NULL,
`help_category_id` smallint(5) unsigned NOT NULL,
`description` text NOT NULL,
`example` text NOT NULL,
`url` text NOT NULL,
PRIMARY KEY (`help_topic_id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help topics';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `innodb_index_stats`
--
DROP TABLE IF EXISTS `innodb_index_stats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `innodb_index_stats` (
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,
`stat_value` bigint(20) unsigned NOT NULL,
`sample_size` bigint(20) unsigned DEFAULT NULL,
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `innodb_table_stats`
--
DROP TABLE IF EXISTS `innodb_table_stats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `innodb_table_stats` (
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`n_rows` bigint(20) unsigned NOT NULL,
`clustered_index_size` bigint(20) unsigned NOT NULL,
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`database_name`,`table_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ndb_binlog_index`
--
DROP TABLE IF EXISTS `ndb_binlog_index`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ndb_binlog_index` (
`Position` bigint(20) unsigned NOT NULL,
`File` varchar(255) NOT NULL,
`epoch` bigint(20) unsigned NOT NULL,
`inserts` int(10) unsigned NOT NULL,
`updates` int(10) unsigned NOT NULL,
`deletes` int(10) unsigned NOT NULL,
`schemaops` int(10) unsigned NOT NULL,
`orig_server_id` int(10) unsigned NOT NULL,
`orig_epoch` bigint(20) unsigned NOT NULL,
`gci` int(10) unsigned NOT NULL,
PRIMARY KEY (`epoch`,`orig_server_id`,`orig_epoch`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ndb_binlog_index`
--
LOCK TABLES `ndb_binlog_index` WRITE;
/*!40000 ALTER TABLE `ndb_binlog_index` DISABLE KEYS */;
/*!40000 ALTER TABLE `ndb_binlog_index` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `plugin`
--
DROP TABLE IF EXISTS `plugin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `plugin` (
`name` varchar(64) NOT NULL DEFAULT '',
`dl` varchar(128) NOT NULL DEFAULT '',
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL plugins';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `plugin`
--
LOCK TABLES `plugin` WRITE;
/*!40000 ALTER TABLE `plugin` DISABLE KEYS */;
/*!40000 ALTER TABLE `plugin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `proc`
--
DROP TABLE IF EXISTS `proc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `proc` (
`db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`name` char(64) NOT NULL DEFAULT '',
`type` enum('FUNCTION','PROCEDURE') NOT NULL,
`specific_name` char(64) NOT NULL DEFAULT '',
`language` enum('SQL') NOT NULL DEFAULT 'SQL',
`sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
`is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
`security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
`param_list` blob NOT NULL,
`returns` longblob NOT NULL,
`body` longblob NOT NULL,
`definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '',
`comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`body_utf8` longblob,
PRIMARY KEY (`db`,`name`,`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `proc`
--
LOCK TABLES `proc` WRITE;
/*!40000 ALTER TABLE `proc` DISABLE KEYS */;
/*!40000 ALTER TABLE `proc` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `procs_priv`
--
DROP TABLE IF EXISTS `procs_priv`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `procs_priv` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
`Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8_bin NOT NULL,
`Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
`Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
`Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
KEY `Grantor` (`Grantor`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `procs_priv`
--
LOCK TABLES `procs_priv` WRITE;
/*!40000 ALTER TABLE `procs_priv` DISABLE KEYS */;
/*!40000 ALTER TABLE `procs_priv` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `proxies_priv`
--
DROP TABLE IF EXISTS `proxies_priv`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `proxies_priv` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`With_grant` tinyint(1) NOT NULL DEFAULT '0',
`Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
`Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
KEY `Grantor` (`Grantor`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `servers`
--
DROP TABLE IF EXISTS `servers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL DEFAULT '',
`Host` char(64) NOT NULL DEFAULT '',
`Db` char(64) NOT NULL DEFAULT '',
`Username` char(64) NOT NULL DEFAULT '',
`Password` char(64) NOT NULL DEFAULT '',
`Port` int(4) NOT NULL DEFAULT '0',
`Socket` char(64) NOT NULL DEFAULT '',
`Wrapper` char(64) NOT NULL DEFAULT '',
`Owner` char(64) NOT NULL DEFAULT '',
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `servers`
--
LOCK TABLES `servers` WRITE;
/*!40000 ALTER TABLE `servers` DISABLE KEYS */;
/*!40000 ALTER TABLE `servers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `slave_master_info`
--
DROP TABLE IF EXISTS `slave_master_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slave_master_info` (
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.',
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.',
`Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'The host name of the master.',
`User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',
`User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',
`Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.',
`Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.',
`Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.',
`Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.',
`Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.',
`Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.',
`Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.',
`Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.',
`Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.',
`Heartbeat` float NOT NULL,
`Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server',
`Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs',
`Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.',
`Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.',
`Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
`Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
`Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',
PRIMARY KEY (`Host`,`Port`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `slave_master_info`
--
LOCK TABLES `slave_master_info` WRITE;
/*!40000 ALTER TABLE `slave_master_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `slave_master_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `slave_relay_log_info`
--
DROP TABLE IF EXISTS `slave_relay_log_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slave_relay_log_info` (
`Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.',
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.',
`Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.',
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.',
`Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.',
`Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
`Number_of_workers` int(10) unsigned NOT NULL,
`Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.',
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `slave_relay_log_info`
--
LOCK TABLES `slave_relay_log_info` WRITE;
/*!40000 ALTER TABLE `slave_relay_log_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `slave_relay_log_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `slave_worker_info`
--
DROP TABLE IF EXISTS `slave_worker_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slave_worker_info` (
`Id` int(10) unsigned NOT NULL,
`Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Relay_log_pos` bigint(20) unsigned NOT NULL,
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Master_log_pos` bigint(20) unsigned NOT NULL,
`Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL,
`Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL,
`Checkpoint_seqno` int(10) unsigned NOT NULL,
`Checkpoint_group_size` int(10) unsigned NOT NULL,
`Checkpoint_group_bitmap` blob NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `slave_worker_info`
--
LOCK TABLES `slave_worker_info` WRITE;
/*!40000 ALTER TABLE `slave_worker_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `slave_worker_info` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tables_priv`
--
DROP TABLE IF EXISTS `tables_priv`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tables_priv` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
`Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '',
`Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8 NOT NULL DEFAULT '',
`Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
KEY `Grantor` (`Grantor`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tables_priv`
--
LOCK TABLES `tables_priv` WRITE;
/*!40000 ALTER TABLE `tables_priv` DISABLE KEYS */;
/*!40000 ALTER TABLE `tables_priv` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `time_zone`
--
DROP TABLE IF EXISTS `time_zone`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time_zone` (
`Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (`Time_zone_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1824 DEFAULT CHARSET=utf8 COMMENT='Time zones';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `time_zone_leap_second`
--
DROP TABLE IF EXISTS `time_zone_leap_second`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time_zone_leap_second` (
`Transition_time` bigint(20) NOT NULL,
`Correction` int(11) NOT NULL,
PRIMARY KEY (`Transition_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Leap seconds information for time zones';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `time_zone_leap_second`
--
LOCK TABLES `time_zone_leap_second` WRITE;
/*!40000 ALTER TABLE `time_zone_leap_second` DISABLE KEYS */;
/*!40000 ALTER TABLE `time_zone_leap_second` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `time_zone_name`
--
DROP TABLE IF EXISTS `time_zone_name`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time_zone_name` (
`Name` char(64) NOT NULL,
`Time_zone_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`Name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone names';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `time_zone_transition`
--
DROP TABLE IF EXISTS `time_zone_transition`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time_zone_transition` (
`Time_zone_id` int(10) unsigned NOT NULL,
`Transition_time` bigint(20) NOT NULL,
`Transition_type_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`Time_zone_id`,`Transition_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transitions';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `time_zone_transition_type`
--
DROP TABLE IF EXISTS `time_zone_transition_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `time_zone_transition_type` (
`Time_zone_id` int(10) unsigned NOT NULL,
`Transition_type_id` int(10) unsigned NOT NULL,
`Offset` int(11) NOT NULL DEFAULT '0',
`Is_DST` tinyint(3) unsigned NOT NULL DEFAULT '0',
`Abbreviation` char(8) NOT NULL DEFAULT '',
PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transition types';
/*!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` (
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
`User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '',
`Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
`Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
`ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '',
`ssl_cipher` blob NOT NULL,
`x509_issuer` blob NOT NULL,
`x509_subject` blob NOT NULL,
`max_questions` int(11) unsigned NOT NULL DEFAULT '0',
`max_updates` int(11) unsigned NOT NULL DEFAULT '0',
`max_connections` int(11) unsigned NOT NULL DEFAULT '0',
`max_user_connections` int(11) unsigned NOT NULL DEFAULT '0',
`plugin` char(64) COLLATE utf8_bin DEFAULT 'mysql_native_password',
`authentication_string` text COLLATE utf8_bin,
`password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
PRIMARY KEY (`Host`,`User`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `general_log`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `general_log` (
`event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`user_host` mediumtext NOT NULL,
`thread_id` bigint(21) unsigned NOT NULL,
`server_id` int(10) unsigned NOT NULL,
`command_type` varchar(64) NOT NULL,
`argument` mediumtext NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `slow_log`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE IF NOT EXISTS `slow_log` (
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`user_host` mediumtext NOT NULL,
`query_time` time NOT NULL,
`lock_time` time NOT NULL,
`rows_sent` int(11) NOT NULL,
`rows_examined` int(11) NOT NULL,
`db` varchar(512) NOT NULL,
`last_insert_id` int(11) NOT NULL,
`insert_id` int(11) NOT NULL,
`server_id` int(10) unsigned NOT NULL,
`sql_text` mediumtext NOT NULL,
`thread_id` bigint(21) unsigned NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Current Database: `test`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `test`;
--
-- 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(11) unsigned NOT NULL AUTO_INCREMENT,
`name` char(11) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*
* Copyright 2020 Xiaomi
*
* 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.
*/
/*!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 2019-04-30 9:45:29 | the_stack |
--
-- WARNING: If some attributes are not set, replace them with "ITEM_NO_{attributes name}"
--
--
-- Add playerskin manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`lvls`,
`desc`,
`case`,
`compose`,
`1d`,
`1m`,
`pm`,
`model`,
`arms`,
`team`,
`sound`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'playerskin', -- force to 'playerskin'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'DEFAULT', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{Skin level}', -- range 1~6 -> look like csgo skin level. 0 = Normal, 6 = Contraband
'{Item descriptionr in store main menu}', -- maxlen 128 bytes
'0', -- 1 = only found in case
'0', -- 1 = only found in case or compose skin
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{model path}', -- e.g. "models/player/custom_player/maoling/hongkai_impact3/kiana/kiana.mdl"
'{arms model path}', -- e.g. "models/player/custom_player/maoling/hongkai_impact3/kiana/kiana_arms.mdl"
'{CS_TEAM Index}', -- 3 = CT, 2 = TE, must be 2~3, if #defind global model, allow both team
'{Death sound path}' -- e.g. "maoling/deathsound/purpleheart.mp3"
);
--
-- Add hat/wings/shield manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`model`,
`position`,
`angles`,
`attachment`,
`slot`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'hat', -- force to 'hat'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{model path}', -- e.g. "models/maoling/wings/kiana/kiana_wings.mdl"
'{position of player}', -- e.g. "-13.500000 1.000000 -5.500000"
'{angles of player}', -- e.g. "0.500000 250.000000 -87.500000"
'{attachment name}', -- e.g. "facemask"
'{Store unique Slot}' -- range 1 ~ 6
);
--
-- Add nadetrail manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`material`,
`color`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'nadetrail', -- force to 'nadetrail'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{material path}', -- e.g. "materials/sprites/laserbeam.vmt"
'{color}' -- RGBA -> e.g. "255 235 205 255"
);
--
-- Add nadeskin manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`model`,
`grenade`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'nadeskin', -- force to 'nadeskin'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{model path}', -- e.g. "models/props/cs_italy/bananna.mdl"
'{grenade classname}' -- RGBA -> e.g. "flashbang"
);
--
-- Add models manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`slot`,
`model`,
`worldmodel`,
`dropmodel`,
`weapon`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'hat', -- force to 'hat'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{Store unique Slot}' -- range 1 ~ 6
'{view model path}', -- e.g. "models/maoling/weapon/overwatch/knife/genji/katana_v.mdl"
'{world model path}', -- e.g. "models/maoling/weapon/overwatch/knife/genji/katana_w.mdl"
'{drop model path}', -- e.g. "models/maoling/weapon/overwatch/knife/genji/katana_d.mdl"
'{weapon classname}' -- e.g. "weapon_knife"
);
--
-- Add sound manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`sound`,
`shortname`,
`volume`,
`cooldown`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'sound', -- force to 'sound'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{sound path}', -- e.g. "maoling/store/overwatch/genji.mp3"
'{shortname displayed in chat}', -- e.g. "Cheer Sound #1"
'{volume}', -- range 0.0~1.0
'{cooldown in seconds}' -- cooldown time in second
);
--
-- Add trail manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`slot`,
`material`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'trail', -- force to 'trail'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{Store unique Slot}', -- range 1 ~ 6
'{material path}' -- e.g. "materials/maoling/trails/huaji.vmt"
);
--
-- Add aura/particle manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`effect`,
`model`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'{type}', -- force to 'particle' or 'aure'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{effect name}', -- e.g. "particle_nmsl"
'{path of particles}' -- e.g. "particles/FX.pcf"
);
--
-- Add neon manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`color`,
`brightness`,
`distance`,
`distancefade`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'neon', -- force to 'neon'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{color}', -- RGBA e.g. "59 197 187 233"
'{intensity of the spotlight}', -- range 0 ~ 16
'{light is allowed to cast, in inches}', -- range 1 ~ 9999
'{the radius of the light, in inches}' -- range 1 ~ 9999
);
--
-- Add msgcolor/namecolor manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`color`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'{type}', -- force to 'msgcolor' or 'namecolor'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{color}' -- colors define in store_stock.inc. e.g. "{blue}"
);
--
-- Add nametag manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`color`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'nametag', -- force to 'nametag'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{tag}' -- tag with color support. e.g. "[{lightblue}_(:з」∠)_{teamcolor}]"
);
--
-- Add pet manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`model`,
`idle`,
`run`,
`death`,
`position`,
`angles`,
`slot`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'nametag', -- force to 'nametag'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{moedl path}', -- e.g. "models/maoling/pets/overwatch/genji.mdl"
'{animation name of idle}', -- e.g. "idle"
'{animation name of run}', -- e.g. "running"
'{animation name of death}', -- e.g. "dead"
'{position of player}', -- e.g. "-13.500000 1.000000 -5.500000"
'{angles of player}', -- e.g. "0.500000 250.000000 -87.500000"
'{Store unique Slot}' -- range 1 ~ 6
);
--
-- Add weaponskin manually.
--
-- * sql script example *
INSERT INTO `store_item_child`
(
`parent`,
`type`,
`uid`,
`buyable`,
`giftable`,
`only`,
`auth`,
`vip`,
`name`,
`1d`,
`1m`,
`pm`,
`weapon`,
`paint`,
`seed`,
`weart`,
`wearf`,
`slot`
)
VALUES
(
'{YOUR PARENT ID FROM store_item_parent}', -- parten id
'weaponskin', -- force to 'weaponskin'
'{unique_identifier}', -- maxlen 32 bytes
'1', -- 1 = can buy
'1', -- 1 = can gift
'0', -- 1 = not included in opening case system.
'ITEM_NOT_PERSONAL', -- if personal item, set to steamid , e.g. "STEAM_1:1:44083262,"
'0', -- 1 = free for VIP user
'{Item name in store main menu}', -- maxlen 64 bytes
'{price of 1 day}', -- credits
'{price of 1 month}', -- credits
'{price of permanent}', -- credits
'{weapon classname}', -- e.g. "weapon_bayonet"
'{paint index}', -- e.g. "416"
'{seed index}', -- e.g. "416"
'{wear type}', -- range -1 ~ 4, -1 = disable and using wearf value, 0 = fn, 1 = mw, 2 = ft, 3 = ww, 4 = bs
'{wear value}', -- if wear type set to -1, it will work. range 0.0~0.999999
'{Store unique Slot}' -- range 1 ~ 6
); | the_stack |
-- 2018-02-08T16:08:27.852
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550696
;
-- 2018-02-08T16:08:27.858
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550695
;
-- 2018-02-08T16:08:27.861
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550691
;
-- 2018-02-08T16:08:27.862
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550692
;
-- 2018-02-08T16:08:27.864
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550693
;
-- 2018-02-08T16:08:27.868
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550694
;
-- 2018-02-08T16:08:27.869
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550697
;
-- 2018-02-08T16:08:27.871
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550698
;
-- 2018-02-08T16:08:27.873
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550699
;
-- 2018-02-08T16:08:27.875
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550700
;
-- 2018-02-08T16:08:27.876
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550701
;
-- 2018-02-08T16:08:27.877
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550702
;
-- 2018-02-08T16:08:27.879
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550703
;
-- 2018-02-08T16:08:27.880
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2018-02-08 16:08:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550690
;
-- 2018-02-08T16:09:08.131
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 16:09:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550692
;
-- 2018-02-08T16:09:10.341
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 16:09:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550695
;
-- 2018-02-08T16:09:12.609
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 16:09:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550696
;
-- 2018-02-08T16:09:14.741
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 16:09:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550693
;
-- 2018-02-08T16:09:16.332
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 16:09:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550694
;
-- 2018-02-08T16:09:17.877
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 16:09:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550697
;
-- 2018-02-08T16:09:19.360
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 16:09:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550698
;
-- 2018-02-08T16:09:20.903
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 16:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550699
;
-- 2018-02-08T16:09:22.662
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-02-08 16:09:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550700
;
-- 2018-02-08T16:09:24.139
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2018-02-08 16:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550701
;
-- 2018-02-08T16:09:25.654
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2018-02-08 16:09:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550702
;
-- 2018-02-08T16:09:28.710
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-02-08 16:09:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550703
;
-- 2018-02-08T16:09:36.686
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2018-02-08 16:09:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550690
;
-- 2018-02-08T16:09:51.766
-- 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,562316,0,541016,541435,550780,'F',TO_TIMESTAMP('2018-02-08 16:09:51','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',140,0,0,TO_TIMESTAMP('2018-02-08 16:09:51','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T16:09:58.729
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:09:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550690
;
-- 2018-02-08T16:09:59.036
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550703
;
-- 2018-02-08T16:09:59.340
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550702
;
-- 2018-02-08T16:09:59.635
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550701
;
-- 2018-02-08T16:09:59.994
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550700
;
-- 2018-02-08T16:10:00.315
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550699
;
-- 2018-02-08T16:10:00.851
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550698
;
-- 2018-02-08T16:10:01.243
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550697
;
-- 2018-02-08T16:10:01.651
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550694
;
-- 2018-02-08T16:10:02.019
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550693
;
-- 2018-02-08T16:10:02.339
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550692
;
-- 2018-02-08T16:10:02.661
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550696
;
-- 2018-02-08T16:10:04.655
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550695
;
-- 2018-02-08T16:34:29.310
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550711
;
-- 2018-02-08T16:34:29.332
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550710
;
-- 2018-02-08T16:34:29.334
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550729
;
-- 2018-02-08T16:34:29.336
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550705
;
-- 2018-02-08T16:34:29.338
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550725
;
-- 2018-02-08T16:34:29.339
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550728
;
-- 2018-02-08T16:34:29.340
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550716
;
-- 2018-02-08T16:34:29.341
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550731
;
-- 2018-02-08T16:34:29.342
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550717
;
-- 2018-02-08T16:34:29.343
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550721
;
-- 2018-02-08T16:34:29.344
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550709
;
-- 2018-02-08T16:34:29.345
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550726
;
-- 2018-02-08T16:34:29.347
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550730
;
-- 2018-02-08T16:34:29.348
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550713
;
-- 2018-02-08T16:34:29.349
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550718
;
-- 2018-02-08T16:34:29.350
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550714
;
-- 2018-02-08T16:34:29.351
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550706
;
-- 2018-02-08T16:34:29.352
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550708
;
-- 2018-02-08T16:34:29.353
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550707
;
-- 2018-02-08T16:34:29.354
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550712
;
-- 2018-02-08T16:34:29.355
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550715
;
-- 2018-02-08T16:34:29.356
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550720
;
-- 2018-02-08T16:34:29.357
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550722
;
-- 2018-02-08T16:34:29.358
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550719
;
-- 2018-02-08T16:34:29.359
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550723
;
-- 2018-02-08T16:34:29.360
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550727
;
-- 2018-02-08T16:34:29.361
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550724
;
-- 2018-02-08T16:34:29.362
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2018-02-08 16:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550704
;
-- 2018-02-08T16:43:32.873
-- 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,562362,0,541017,541436,550783,'F',TO_TIMESTAMP('2018-02-08 16:43:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',10,0,0,TO_TIMESTAMP('2018-02-08 16:43:32','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T16:44:03.556
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 16:44:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550706
;
-- 2018-02-08T16:44:06.252
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 16:44:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550707
;
-- 2018-02-08T16:44:08.668
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 16:44:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550708
;
-- 2018-02-08T16:44:19.857
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 16:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550715
;
-- 2018-02-08T16:44:21.900
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 16:44:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550720
;
-- 2018-02-08T16:44:24.115
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 16:44:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550722
;
-- 2018-02-08T16:44:25.842
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 16:44:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550719
;
-- 2018-02-08T16:44:30.561
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 16:44:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550723
;
-- 2018-02-08T16:44:33.121
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-02-08 16:44:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550727
;
-- 2018-02-08T16:44:40.920
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2018-02-08 16:44:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550724
;
-- 2018-02-08T16:44:43.394
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2018-02-08 16:44:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550712
;
-- 2018-02-08T16:45:22.162
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-02-08 16:45:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550730
;
-- 2018-02-08T16:45:35.551
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2018-02-08 16:45:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550731
;
-- 2018-02-08T16:45:44.308
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2018-02-08 16:45:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550717
;
-- 2018-02-08T16:45:53.449
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2018-02-08 16:45:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550726
;
-- 2018-02-08T16:46:01.570
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2018-02-08 16:46:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550714
;
-- 2018-02-08T16:46:27.323
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2018-02-08 16:46:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550718
;
-- 2018-02-08T16:47:02.665
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-02-08 16:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550783
;
-- 2018-02-08T16:47:09.250
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2018-02-08 16:47:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550721
;
-- 2018-02-08T16:47:20.233
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2018-02-08 16:47:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550710
;
-- 2018-02-08T16:47:23.765
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=200,Updated=TO_TIMESTAMP('2018-02-08 16:47:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550704
;
-- 2018-02-08T16:47:27.567
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=210,Updated=TO_TIMESTAMP('2018-02-08 16:47:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550783
;
-- 2018-02-08T16:47:42.132
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=115,Updated=TO_TIMESTAMP('2018-02-08 16:47:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550713
;
-- 2018-02-08T16:48:31.458
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=95,Updated=TO_TIMESTAMP('2018-02-08 16:48:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550728
;
-- 2018-02-08T16:48:37.331
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550706
;
-- 2018-02-08T16:48:37.708
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550707
;
-- 2018-02-08T16:48:38.026
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550708
;
-- 2018-02-08T16:48:39.110
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550715
;
-- 2018-02-08T16:48:39.714
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550720
;
-- 2018-02-08T16:48:40.354
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550722
;
-- 2018-02-08T16:48:40.756
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550719
;
-- 2018-02-08T16:48:41.339
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550723
;
-- 2018-02-08T16:48:41.811
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550727
;
-- 2018-02-08T16:48:42.245
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550728
;
-- 2018-02-08T16:48:42.647
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550724
;
-- 2018-02-08T16:48:43.043
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550712
;
-- 2018-02-08T16:48:43.414
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550713
;
-- 2018-02-08T16:48:44.525
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550730
;
-- 2018-02-08T16:48:44.853
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550731
;
-- 2018-02-08T16:48:45.830
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550717
;
-- 2018-02-08T16:48:46.135
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550726
;
-- 2018-02-08T16:48:46.558
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550714
;
-- 2018-02-08T16:48:46.942
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550718
;
-- 2018-02-08T16:48:47.396
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550721
;
-- 2018-02-08T16:48:47.798
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550710
;
-- 2018-02-08T16:48:48.147
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550704
;
-- 2018-02-08T16:48:50.721
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 16:48:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550783
;
-- 2018-02-08T16:56:00.491
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550738
;
-- 2018-02-08T16:56:00.494
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550739
;
-- 2018-02-08T16:56:00.496
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550741
;
-- 2018-02-08T16:56:00.498
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550733
;
-- 2018-02-08T16:56:00.499
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550735
;
-- 2018-02-08T16:56:00.501
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550732
;
-- 2018-02-08T16:56:00.502
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550736
;
-- 2018-02-08T16:56:00.504
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2018-02-08 16:56:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550740
;
-- 2018-02-08T17:35:45.234
-- 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,562399,0,541018,541437,550784,'F',TO_TIMESTAMP('2018-02-08 17:35:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2018-02-08 17:35:45','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T17:35:59.640
-- 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,562398,0,541018,541437,550785,'F',TO_TIMESTAMP('2018-02-08 17:35:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2018-02-08 17:35:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T17:39:01.685
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550736
;
-- 2018-02-08T17:39:01.690
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550757
;
-- 2018-02-08T17:39:01.692
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550755
;
-- 2018-02-08T17:39:01.696
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550752
;
-- 2018-02-08T17:39:01.701
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550756
;
-- 2018-02-08T17:39:01.702
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550745
;
-- 2018-02-08T17:39:01.704
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550747
;
-- 2018-02-08T17:39:01.705
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550744
;
-- 2018-02-08T17:39:01.709
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550743
;
-- 2018-02-08T17:39:01.711
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550754
;
-- 2018-02-08T17:39:01.712
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550732
;
-- 2018-02-08T17:39:01.713
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550740
;
-- 2018-02-08T17:39:01.715
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550753
;
-- 2018-02-08T17:39:01.717
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550748
;
-- 2018-02-08T17:39:01.718
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550750
;
-- 2018-02-08T17:39:01.719
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550751
;
-- 2018-02-08T17:39:01.720
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550758
;
-- 2018-02-08T17:39:01.721
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550746
;
-- 2018-02-08T17:39:01.723
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550749
;
-- 2018-02-08T17:39:01.724
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550742
;
-- 2018-02-08T17:39:01.725
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550735
;
-- 2018-02-08T17:39:01.726
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550737
;
-- 2018-02-08T17:39:01.728
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-02-08 17:39:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T17:39:10.611
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 17:39:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550738
;
-- 2018-02-08T17:39:13.277
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 17:39:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550739
;
-- 2018-02-08T17:39:14.838
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 17:39:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550734
;
-- 2018-02-08T17:39:16.254
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 17:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550741
;
-- 2018-02-08T17:39:18.260
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 17:39:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550733
;
-- 2018-02-08T17:39:20.078
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 17:39:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550735
;
-- 2018-02-08T17:39:23.307
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 17:39:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550737
;
-- 2018-02-08T17:39:26.683
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 17:39:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T17:39:33.148
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550785
;
-- 2018-02-08T17:39:36.908
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-02-08 17:39:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T17:40:15.406
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 17:40:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550743
;
-- 2018-02-08T17:40:16.860
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-02-08 17:40:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550744
;
-- 2018-02-08T17:40:18.620
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2018-02-08 17:40:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550745
;
-- 2018-02-08T17:40:20.549
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2018-02-08 17:40:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550747
;
-- 2018-02-08T17:40:22.078
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-02-08 17:40:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550748
;
-- 2018-02-08T17:40:23.950
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2018-02-08 17:40:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550752
;
-- 2018-02-08T17:40:25.555
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2018-02-08 17:40:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550736
;
-- 2018-02-08T17:40:27.132
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2018-02-08 17:40:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550740
;
-- 2018-02-08T17:40:29.031
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2018-02-08 17:40:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550750
;
-- 2018-02-08T17:40:30.654
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2018-02-08 17:40:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550751
;
-- 2018-02-08T17:40:32.321
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2018-02-08 17:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550746
;
-- 2018-02-08T17:40:35.582
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2018-02-08 17:40:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550749
;
-- 2018-02-08T17:40:37.551
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=200,Updated=TO_TIMESTAMP('2018-02-08 17:40:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550742
;
-- 2018-02-08T17:40:42.394
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=210,Updated=TO_TIMESTAMP('2018-02-08 17:40:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550732
;
-- 2018-02-08T17:40:46.949
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=220,Updated=TO_TIMESTAMP('2018-02-08 17:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550758
;
-- 2018-02-08T17:40:49.680
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=230,Updated=TO_TIMESTAMP('2018-02-08 17:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550754
;
-- 2018-02-08T17:40:51.438
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=240,Updated=TO_TIMESTAMP('2018-02-08 17:40:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550755
;
-- 2018-02-08T17:40:53.847
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=250,Updated=TO_TIMESTAMP('2018-02-08 17:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550756
;
-- 2018-02-08T17:40:55.857
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=260,Updated=TO_TIMESTAMP('2018-02-08 17:40:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550757
;
-- 2018-02-08T17:40:59.757
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=270,Updated=TO_TIMESTAMP('2018-02-08 17:40:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550753
;
-- 2018-02-08T17:41:04.481
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=280,Updated=TO_TIMESTAMP('2018-02-08 17:41:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T17:41:07.767
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=290,Updated=TO_TIMESTAMP('2018-02-08 17:41:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550785
;
-- 2018-02-08T17:41:16.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550743
;
-- 2018-02-08T17:41:17.254
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550744
;
-- 2018-02-08T17:41:17.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550745
;
-- 2018-02-08T17:41:17.910
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550747
;
-- 2018-02-08T17:41:18.317
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550748
;
-- 2018-02-08T17:41:18.637
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550752
;
-- 2018-02-08T17:41:18.943
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550736
;
-- 2018-02-08T17:41:19.277
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550740
;
-- 2018-02-08T17:41:19.677
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550750
;
-- 2018-02-08T17:41:20.312
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550751
;
-- 2018-02-08T17:41:20.686
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550746
;
-- 2018-02-08T17:41:21.068
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550749
;
-- 2018-02-08T17:41:21.590
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550742
;
-- 2018-02-08T17:41:22.573
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550732
;
-- 2018-02-08T17:41:22.918
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550758
;
-- 2018-02-08T17:41:23.397
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550754
;
-- 2018-02-08T17:41:23.902
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550755
;
-- 2018-02-08T17:41:24.294
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550756
;
-- 2018-02-08T17:41:24.719
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550757
;
-- 2018-02-08T17:41:25.382
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550753
;
-- 2018-02-08T17:41:25.886
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550738
;
-- 2018-02-08T17:41:26.390
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550739
;
-- 2018-02-08T17:41:26.734
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550734
;
-- 2018-02-08T17:41:27.310
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550741
;
-- 2018-02-08T17:41:27.629
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550733
;
-- 2018-02-08T17:41:28.198
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550735
;
-- 2018-02-08T17:41:28.766
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T17:41:30.455
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:41:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550737
;
-- 2018-02-08T17:47:25.704
-- 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,562434,0,541019,541438,550786,'F',TO_TIMESTAMP('2018-02-08 17:47:25','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2018-02-08 17:47:25','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T17:47:41.264
-- 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,562433,0,541019,541438,550787,'F',TO_TIMESTAMP('2018-02-08 17:47:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2018-02-08 17:47:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T17:47:49.912
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 17:47:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550786
;
-- 2018-02-08T17:47:55.764
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 17:47:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550759
;
-- 2018-02-08T17:47:57.397
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550760
;
-- 2018-02-08T17:47:58.812
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 17:47:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550761
;
-- 2018-02-08T17:48:02.667
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 17:48:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550762
;
-- 2018-02-08T17:48:04.905
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 17:48:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550786
;
-- 2018-02-08T17:48:06.678
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 17:48:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550787
;
-- 2018-02-08T17:48:07.023
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:48:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550759
;
-- 2018-02-08T17:48:07.384
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:48:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550760
;
-- 2018-02-08T17:48:07.697
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:48:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550761
;
-- 2018-02-08T17:48:08.806
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550762
;
-- 2018-02-08T17:54:10.230
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550765
;
-- 2018-02-08T17:54:10.234
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550763
;
-- 2018-02-08T17:54:10.238
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550768
;
-- 2018-02-08T17:54:10.242
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550767
;
-- 2018-02-08T17:54:10.245
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550770
;
-- 2018-02-08T17:54:10.248
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550769
;
-- 2018-02-08T17:54:10.251
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550766
;
-- 2018-02-08T17:54:10.253
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-02-08 17:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550764
;
-- 2018-02-08T17:54:17.974
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 17:54:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550768
;
-- 2018-02-08T17:54:19.522
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 17:54:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550767
;
-- 2018-02-08T17:54:21.314
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 17:54:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550770
;
-- 2018-02-08T17:54:22.690
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 17:54:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550769
;
-- 2018-02-08T17:54:24.586
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 17:54:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550766
;
-- 2018-02-08T17:54:27.922
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 17:54:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550764
;
-- 2018-02-08T17:54:30.521
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 17:54:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550763
;
-- 2018-02-08T17:54:30.868
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550768
;
-- 2018-02-08T17:54:31.153
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550767
;
-- 2018-02-08T17:54:31.427
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550770
;
-- 2018-02-08T17:54:31.705
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550769
;
-- 2018-02-08T17:54:32.061
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550766
;
-- 2018-02-08T17:54:33.896
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 17:54:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550764
;
-- 2018-02-08T18:08:24.709
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550777
;
-- 2018-02-08T18:08:24.730
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550772
;
-- 2018-02-08T18:08:24.736
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550773
;
-- 2018-02-08T18:08:24.740
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550771
;
-- 2018-02-08T18:08:24.741
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550776
;
-- 2018-02-08T18:08:24.744
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550774
;
-- 2018-02-08T18:08:24.747
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550775
;
-- 2018-02-08T18:08:24.752
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2018-02-08 18:08:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550778
;
-- 2018-02-08T18:08:38.555
-- 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,562461,0,541021,541440,550788,'F',TO_TIMESTAMP('2018-02-08 18:08:38','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2018-02-08 18:08:38','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T18:08:48.913
-- 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,562451,0,541021,541440,550789,'F',TO_TIMESTAMP('2018-02-08 18:08:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2018-02-08 18:08:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-02-08T18:08:55.619
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2018-02-08 18:08:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550772
;
-- 2018-02-08T18:08:57.348
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2018-02-08 18:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550773
;
-- 2018-02-08T18:08:58.858
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2018-02-08 18:08:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550771
;
-- 2018-02-08T18:09:00.259
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2018-02-08 18:09:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550776
;
-- 2018-02-08T18:09:01.651
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2018-02-08 18:09:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550774
;
-- 2018-02-08T18:09:03.203
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=600,Updated=TO_TIMESTAMP('2018-02-08 18:09:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550775
;
-- 2018-02-08T18:09:05.405
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2018-02-08 18:09:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550775
;
-- 2018-02-08T18:09:08.197
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 18:09:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550778
;
-- 2018-02-08T18:09:15.612
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 18:09:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550788
;
-- 2018-02-08T18:09:18.499
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-02-08 18:09:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550789
;
-- 2018-02-08T18:09:18.867
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550772
;
-- 2018-02-08T18:09:19.244
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550773
;
-- 2018-02-08T18:09:19.604
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550771
;
-- 2018-02-08T18:09:20.035
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550776
;
-- 2018-02-08T18:09:20.371
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550774
;
-- 2018-02-08T18:09:20.747
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550775
;
-- 2018-02-08T18:09:21.829
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2018-02-08 18:09:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550778
;
-- 2018-02-08T18:09:27.091
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2018-02-08 18:09:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550788
;
-- 2018-02-08T18:26:23.782
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='Y', Name='Bezugsnachweis', SeqNo=25,Updated=TO_TIMESTAMP('2018-02-08 18:26:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550593
;
-- 2018-02-08T18:26:39.794
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Bezugsnachweis',Updated=TO_TIMESTAMP('2018-02-08 18:26:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=562082
;
-- 2018-02-08T18:27:07.287
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-02-08 18:27:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Supply Source Certificate' WHERE AD_Field_ID=562082 AND AD_Language='en_US'
;
-- 2018-02-08T18:29:55.017
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Verkaufskontakt',Updated=TO_TIMESTAMP('2018-02-08 18:29:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=562388
;
-- 2018-02-08T18:30:20.865
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Standard Verkaufskontakt',Updated=TO_TIMESTAMP('2018-02-08 18:30:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=562389
;
-- 2018-02-08T18:30:23.737
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Druck Empfänger',Updated=TO_TIMESTAMP('2018-02-08 18:30:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=562391
;
-- 2018-02-08T18:30:29.481
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Standard Ansprechpartner',Updated=TO_TIMESTAMP('2018-02-08 18:30:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=562372
;
-- 2018-02-08T18:32:50.147
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2018-02-08 18:32:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550736
;
-- 2018-02-08T18:34:06.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2018-02-08 18:34:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550748
;
-- 2018-02-08T18:34:10.230
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2018-02-08 18:34:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550749
;
-- 2018-02-08T18:34:13.677
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2018-02-08 18:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550751
;
-- 2018-02-08T18:34:22.524
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2018-02-08 18:34:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550750
;
-- 2018-02-08T18:34:29.117
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2018-02-08 18:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550752
;
-- 2018-02-08T18:34:37.593
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-02-08 18:34:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550756
;
-- 2018-02-08T18:34:42.756
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2018-02-08 18:34:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550753
;
-- 2018-02-08T18:34:50.774
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2018-02-08 18:34:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550756
;
-- 2018-02-08T18:34:58.454
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2018-02-08 18:34:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550745
;
-- 2018-02-08T18:35:48.855
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2018-02-08 18:35:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550747
;
-- 2018-02-08T18:35:57.917
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2018-02-08 18:35:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550755
;
-- 2018-02-08T18:36:11.595
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2018-02-08 18:36:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550754
;
-- 2018-02-08T18:36:14.509
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=180,Updated=TO_TIMESTAMP('2018-02-08 18:36:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550784
;
-- 2018-02-08T18:36:19.134
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2018-02-08 18:36:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550785
;
-- 2018-02-08T18:36:29.701
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2018-02-08 18:36:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550757
;
-- 2018-02-08T18:36:32.382
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2018-02-08 18:36:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550758
;
-- 2018-02-08T18:36:35.086
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2018-02-08 18:36:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550732
;
-- 2018-02-08T18:36:46.430
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2018-02-08 18:36:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550742
; | the_stack |
REM
REM $Header: sh_cre.sql 29-aug-2002.11:56:35 hyeh Exp $
REM
REM sh_cre.sql
REM
REM Copyright (c) 2001, 2015, Oracle Corporation. All rights reserved.
REM
REM Permission is hereby granted, free of charge, to any person obtaining
REM a copy of this software and associated documentation files (the
REM "Software"), to deal in the Software without restriction, including
REM without limitation the rights to use, copy, modify, merge, publish,
REM distribute, sublicense, and/or sell copies of the Software, and to
REM permit persons to whom the Software is furnished to do so, subject to
REM the following conditions:
REM
REM The above copyright notice and this permission notice shall be
REM included in all copies or substantial portions of the Software.
REM
REM THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
REM EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
REM MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
REM NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
REM LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
REM OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
REM WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
REM
REM NAME
REM sh_cre.sql - Create database objects
REM
REM DESCRIPTION
REM SH is the Sales History schema of the Oracle 9i Sample
REM Schemas
REM
REM NOTES
REM Prerequisite: Enterprise Edition with Partitioning Option
REM installed
REM
REM MODIFIED (MM/DD/YY)
REM hyeh 08/29/02 - hyeh_mv_comschema_to_rdbms
REM ahunold 09/04/01 - .
REM ahunold 08/16/01 - added partitions
REM hbaer 01/29/01 - Created
REM
REM TABLE TIMES attribute definitions and examples
REM since most of the attributes are CHARACTER values, a correct time based
REM order CANNOT be guaranteed for all of them. The ones were this is guaranteed
REM are marked accordingly
REM for correct time based ordering the VARCHAR2() attributes have to be converted
REM with the appropriate TO_DATE() function
REM time_id /* day date, finest granularity, CORRECT ORDER */
REM day_name /* Monday to Sunday, repeating */
REM day_number_in_week /* 1 to 7, repeating */
REM day_number_in_month /* 1 to 31, repeating */
REM calendar_week_number /* 1 to 53, repeating */
REM fiscal_week_number /* 1 to 53, repeating */
REM week_ending_day /* date of last day in week, CORRECT ORDER */
REM calendar_month_number /* 1 to 12, repeating */
REM fiscal_month_number /* 1 to 12, repeating */
REM calendar_month_desc /* e.g. 1998-01, CORRECT ORDER */
REM fiscal_month_desc /* e.g. 1998-01, CORRECT ORDER */
REM calendar_month_name /* January to December, repeating */
REM fiscal_month_name /* January to December, repeating */
REM calendar_quarter_desc /* e.g. 1998-Q1, CORRECT ORDER */
REM fiscal_quarter_desc /* e.g. 1999-Q3, CORRECT ORDER */
REM calendar_quarter_number /* 1 to 4, repeating */
REM fiscal_quarter_number /* 1 to 4, repeating */
REM calendar_year /* e.g. 1999, CORRECT ORDER */
REM fiscal_year /* e.g. 1999, CORRECT ORDER */
REM days_in_cal_month /* e.g. 28,31, repeating */
REM days_in_fis_month /* e.g. 25,32, repeating */
REM days_in_cal_quarter /* e.g. 88,90, repeating */
REM days_in_fis_quarter /* e.g. 88,90, repeating */
REM days_in_cal_year /* 365,366 repeating */
REM days_in_fis_year /* e.g. 355,364, repeating */
REM end_of_cal_month /* last day of cal month */
REM end_of_fis_month /* last day of fiscal month */
REM end_of_cal_quarte /* last day of cal quarter */
REM end_of_fis_quarter /* last day of fiscal quarter */
REM end_of_cal_year /* last day of cal year */
REM end_of_fis_year /* last day of fiscal year */
REM creation of dimension table TIMES ...
CREATE TABLE times
(
time_id DATE
, day_name VARCHAR2(9)
CONSTRAINT tim_day_name_nn NOT NULL
, day_number_in_week NUMBER(1)
CONSTRAINT tim_day_in_week_nn NOT NULL
, day_number_in_month NUMBER(2)
CONSTRAINT tim_day_in_month_nn NOT NULL
, calendar_week_number NUMBER(2)
CONSTRAINT tim_cal_week_nn NOT NULL
, fiscal_week_number NUMBER(2)
CONSTRAINT tim_fis_week_nn NOT NULL
, week_ending_day DATE
CONSTRAINT tim_week_ending_day_nn NOT NULL
, calendar_month_number NUMBER(2)
CONSTRAINT tim_cal_month_number_nn NOT NULL
, fiscal_month_number NUMBER(2)
CONSTRAINT tim_fis_month_number_nn NOT NULL
, calendar_month_desc VARCHAR2(8)
CONSTRAINT tim_cal_month_desc_nn NOT NULL
, fiscal_month_desc VARCHAR2(8)
CONSTRAINT tim_fis_month_desc_nn NOT NULL
, days_in_cal_month NUMBER
CONSTRAINT tim_days_cal_month_nn NOT NULL
, days_in_fis_month NUMBER
CONSTRAINT tim_days_fis_month_nn NOT NULL
, end_of_cal_month DATE
CONSTRAINT tim_end_of_cal_month_nn NOT NULL
, end_of_fis_month DATE
CONSTRAINT tim_end_of_fis_month_nn NOT NULL
, calendar_month_name VARCHAR2(9)
CONSTRAINT tim_cal_month_name_nn NOT NULL
, fiscal_month_name VARCHAR2(9)
CONSTRAINT tim_fis_month_name_nn NOT NULL
, calendar_quarter_desc CHAR(7)
CONSTRAINT tim_cal_quarter_desc_nn NOT NULL
, fiscal_quarter_desc CHAR(7)
CONSTRAINT tim_fis_quarter_desc_nn NOT NULL
, days_in_cal_quarter NUMBER
CONSTRAINT tim_days_cal_quarter_nn NOT NULL
, days_in_fis_quarter NUMBER
CONSTRAINT tim_days_fis_quarter_nn NOT NULL
, end_of_cal_quarter DATE
CONSTRAINT tim_end_of_cal_quarter_nn NOT NULL
, end_of_fis_quarter DATE
CONSTRAINT tim_end_of_fis_quarter_nn NOT NULL
, calendar_quarter_number NUMBER(1)
CONSTRAINT tim_cal_quarter_number_nn NOT NULL
, fiscal_quarter_number NUMBER(1)
CONSTRAINT tim_fis_quarter_number_nn NOT NULL
, calendar_year NUMBER(4)
CONSTRAINT tim_cal_year_nn NOT NULL
, fiscal_year NUMBER(4)
CONSTRAINT tim_fis_year_nn NOT NULL
, days_in_cal_year NUMBER
CONSTRAINT tim_days_cal_year_nn NOT NULL
, days_in_fis_year NUMBER
CONSTRAINT tim_days_fis_year_nn NOT NULL
, end_of_cal_year DATE
CONSTRAINT tim_end_of_cal_year_nn NOT NULL
, end_of_fis_year DATE
CONSTRAINT tim_end_of_fis_year_nn NOT NULL
)
PCTFREE 5;
CREATE UNIQUE INDEX time_pk
ON times (time_id) ;
ALTER TABLE times
ADD ( CONSTRAINT time_pk
PRIMARY KEY (time_id) RELY ENABLE VALIDATE
) ;
REM creation of dimension table CHANNELS ...
CREATE TABLE channels
( channel_id CHAR(1)
, channel_desc VARCHAR2(20)
CONSTRAINT chan_desc_nn NOT NULL
, channel_class VARCHAR2(20)
)
PCTFREE 5;
CREATE UNIQUE INDEX chan_pk
ON channels (channel_id) ;
ALTER TABLE channels
ADD ( CONSTRAINT chan_pk
PRIMARY KEY (channel_id) RELY ENABLE VALIDATE
) ;
REM creation of dimension table PROMOTIONS ...
CREATE TABLE promotions
( promo_id NUMBER(6)
, promo_name VARCHAR2(20)
CONSTRAINT promo_name_nn NOT NULL
, promo_subcategory VARCHAR2(30)
CONSTRAINT promo_subcat_nn NOT NULL
, promo_category VARCHAR2(30)
CONSTRAINT promo_cat_nn NOT NULL
, promo_cost NUMBER(10,2)
CONSTRAINT promo_cost_nn NOT NULL
, promo_begin_date DATE
CONSTRAINT promo_begin_date_nn NOT NULL
, promo_end_date DATE
CONSTRAINT promo_end_date_nn NOT NULL
)
PCTFREE 5;
CREATE UNIQUE INDEX promo_pk
ON promotions (promo_id) ;
ALTER TABLE promotions
ADD ( CONSTRAINT promo_pk
PRIMARY KEY (promo_id) RELY ENABLE VALIDATE
) ;
REM creation of dimension table COUNTRIES ...
CREATE TABLE countries
( country_id CHAR(2)
, country_name VARCHAR2(40)
CONSTRAINT country_country_name_nn NOT NULL
, country_subregion VARCHAR2(30)
, country_region VARCHAR2(20)
)
PCTFREE 5;
ALTER TABLE countries
ADD ( CONSTRAINT country_pk
PRIMARY KEY (country_id) RELY ENABLE VALIDATE
) ;
REM creation of dimension table CUSTOMERS ...
CREATE TABLE customers
( cust_id NUMBER
, cust_first_name VARCHAR2(20)
CONSTRAINT customer_fname_nn NOT NULL
, cust_last_name VARCHAR2(40)
CONSTRAINT customer_lname_nn NOT NULL
, cust_gender CHAR(1)
, cust_year_of_birth NUMBER(4)
, cust_marital_status VARCHAR2(20)
, cust_street_address VARCHAR2(40)
CONSTRAINT customer_st_addr_nn NOT NULL
, cust_postal_code VARCHAR2(10)
CONSTRAINT customer_pcode_nn NOT NULL
, cust_city VARCHAR2(30)
CONSTRAINT customer_city_nn NOT NULL
, cust_state_province VARCHAR2(40)
, country_id CHAR(2)
CONSTRAINT customer_country_id_nn NOT NULL
, cust_main_phone_number VARCHAR2(25)
, cust_income_level VARCHAR2(30)
, cust_credit_limit NUMBER
, cust_email VARCHAR2(30)
)
PCTFREE 5;
CREATE UNIQUE INDEX customers_pk
ON customers (cust_id) ;
ALTER TABLE customers
ADD ( CONSTRAINT customers_pk
PRIMARY KEY (cust_id) RELY ENABLE VALIDATE
) ;
ALTER TABLE customers
ADD ( CONSTRAINT customers_country_fk
FOREIGN KEY (country_id) REFERENCES countries(country_id)
RELY ENABLE VALIDATE);
REM creation of dimension table PRODUCTS ...
CREATE TABLE products
( prod_id NUMBER(6)
, prod_name VARCHAR2(50)
CONSTRAINT products_prod_name_nn NOT NULL
, prod_desc VARCHAR2(4000)
CONSTRAINT products_prod_desc_nn NOT NULL
, prod_subcategory VARCHAR2(50)
CONSTRAINT products_prod_subcat_nn NOT NULL
, prod_subcat_desc VARCHAR2(2000)
CONSTRAINT products_prod_subcatd_nn NOT NULL
, prod_category VARCHAR2(50)
CONSTRAINT products_prod_cat_nn NOT NULL
, prod_cat_desc VARCHAR2(2000)
CONSTRAINT products_prod_catd_nn NOT NULL
, prod_weight_class NUMBER(2)
, prod_unit_of_measure VARCHAR2(20)
, prod_pack_size VARCHAR2(30)
, supplier_id NUMBER(6)
, prod_status VARCHAR2(20)
CONSTRAINT products_prod_stat_nn NOT NULL
, prod_list_price NUMBER(8,2)
CONSTRAINT products_prod_list_price_nn NOT NULL
, prod_min_price NUMBER(8,2)
CONSTRAINT products_prod_min_price_nn NOT NULL
)
PCTFREE 5;
CREATE UNIQUE INDEX products_pk
ON products (prod_id) ;
ALTER TABLE products
ADD ( CONSTRAINT products_pk
PRIMARY KEY (prod_id) RELY ENABLE VALIDATE
) ;
REM creation of fact table SALES ...
CREATE TABLE sales
( prod_id NUMBER(6)
CONSTRAINT sales_product_nn NOT NULL
, cust_id NUMBER
CONSTRAINT sales_customer_nn NOT NULL
, time_id DATE
CONSTRAINT sales_time_nn NOT NULL
, channel_id CHAR(1)
CONSTRAINT sales_channel_nn NOT NULL
, promo_id NUMBER(6)
CONSTRAINT sales_promo_nn NOT NULL
, quantity_sold NUMBER(3)
CONSTRAINT sales_quantity_nn NOT NULL
, amount_sold NUMBER(10,2)
CONSTRAINT sales_amount_nn NOT NULL
) PCTFREE 5 NOLOGGING
PARTITION BY RANGE (time_id)
(PARTITION SALES_1995 VALUES LESS THAN
(TO_DATE('01-JAN-1996','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_1996 VALUES LESS THAN
(TO_DATE('01-JAN-1997','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_H1_1997 VALUES LESS THAN
(TO_DATE('01-JUL-1997','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_H2_1997 VALUES LESS THAN
(TO_DATE('01-JAN-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q1_1998 VALUES LESS THAN
(TO_DATE('01-APR-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q2_1998 VALUES LESS THAN
(TO_DATE('01-JUL-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q3_1998 VALUES LESS THAN
(TO_DATE('01-OCT-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q4_1998 VALUES LESS THAN
(TO_DATE('01-JAN-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q1_1999 VALUES LESS THAN
(TO_DATE('01-APR-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q2_1999 VALUES LESS THAN
(TO_DATE('01-JUL-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q3_1999 VALUES LESS THAN
(TO_DATE('01-OCT-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q4_1999 VALUES LESS THAN
(TO_DATE('01-JAN-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q1_2000 VALUES LESS THAN
(TO_DATE('01-APR-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q2_2000 VALUES LESS THAN
(TO_DATE('01-JUL-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q3_2000 VALUES LESS THAN
(TO_DATE('01-OCT-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION SALES_Q4_2000 VALUES LESS THAN
(TO_DATE('01-JAN-2001','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')))
;
REM creation of second fact table COSTS ...
CREATE TABLE costs
( prod_id NUMBER(6)
CONSTRAINT costs_product_nn NOT NULL
, time_id DATE
CONSTRAINT costs_time_nn NOT NULL
, unit_cost NUMBER(10,2)
CONSTRAINT costs_unit_cost_nn NOT NULL
, unit_price NUMBER(10,2)
CONSTRAINT costs_unit_price_nn NOT NULL
) PCTFREE 5 NOLOGGING
PARTITION BY RANGE (time_id)
(PARTITION COSTS_Q1_1998 VALUES LESS THAN
(TO_DATE('01-APR-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q2_1998 VALUES LESS THAN
(TO_DATE('01-JUL-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q3_1998 VALUES LESS THAN
(TO_DATE('01-OCT-1998','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q4_1998 VALUES LESS THAN
(TO_DATE('01-JAN-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q1_1999 VALUES LESS THAN
(TO_DATE('01-APR-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q2_1999 VALUES LESS THAN
(TO_DATE('01-JUL-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q3_1999 VALUES LESS THAN
(TO_DATE('01-OCT-1999','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q4_1999 VALUES LESS THAN
(TO_DATE('01-JAN-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q1_2000 VALUES LESS THAN
(TO_DATE('01-APR-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q2_2000 VALUES LESS THAN
(TO_DATE('01-JUL-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q3_2000 VALUES LESS THAN
(TO_DATE('01-OCT-2000','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')),
PARTITION COSTS_Q4_2000 VALUES LESS THAN
(TO_DATE('01-JAN-2001','DD-MON-YYYY','NLS_DATE_LANGUAGE = American')))
;
REM establish foreign keys to ALL dimension tables
ALTER TABLE sales
ADD ( CONSTRAINT sales_product_fk
FOREIGN KEY (prod_id)
REFERENCES products RELY ENABLE VALIDATE
, CONSTRAINT sales_customer_fk
FOREIGN KEY (cust_id)
REFERENCES customers RELY ENABLE VALIDATE
, CONSTRAINT sales_time_fk
FOREIGN KEY (time_id)
REFERENCES times RELY ENABLE VALIDATE
, CONSTRAINT sales_channel_fk
FOREIGN KEY (channel_id)
REFERENCES channels RELY ENABLE VALIDATE
, CONSTRAINT sales_promo_fk
FOREIGN KEY (promo_id)
REFERENCES promotions RELY ENABLE VALIDATE
) ;
ALTER TABLE costs
ADD ( CONSTRAINT costs_product_fk
FOREIGN KEY (prod_id)
REFERENCES products RELY ENABLE VALIDATE
, CONSTRAINT costs_time_fk
FOREIGN KEY (time_id)
REFERENCES times RELY ENABLE VALIDATE
) ;
COMMIT; | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for nov_chapter_0000
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0000`;
CREATE TABLE `nov_chapter_0000` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0001
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0001`;
CREATE TABLE `nov_chapter_0001` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0002
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0002`;
CREATE TABLE `nov_chapter_0002` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0003
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0003`;
CREATE TABLE `nov_chapter_0003` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0004
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0004`;
CREATE TABLE `nov_chapter_0004` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0005
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0005`;
CREATE TABLE `nov_chapter_0005` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0006
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0006`;
CREATE TABLE `nov_chapter_0006` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0007
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0007`;
CREATE TABLE `nov_chapter_0007` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0008
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0008`;
CREATE TABLE `nov_chapter_0008` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0009
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0009`;
CREATE TABLE `nov_chapter_0009` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0010
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0010`;
CREATE TABLE `nov_chapter_0010` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0011
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0011`;
CREATE TABLE `nov_chapter_0011` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0012
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0012`;
CREATE TABLE `nov_chapter_0012` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0013
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0013`;
CREATE TABLE `nov_chapter_0013` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0014
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0014`;
CREATE TABLE `nov_chapter_0014` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0015
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0015`;
CREATE TABLE `nov_chapter_0015` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0016
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0016`;
CREATE TABLE `nov_chapter_0016` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0017
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0017`;
CREATE TABLE `nov_chapter_0017` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0018
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0018`;
CREATE TABLE `nov_chapter_0018` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0019
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0019`;
CREATE TABLE `nov_chapter_0019` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0020
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0020`;
CREATE TABLE `nov_chapter_0020` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0021
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0021`;
CREATE TABLE `nov_chapter_0021` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0022
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0022`;
CREATE TABLE `nov_chapter_0022` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0023
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0023`;
CREATE TABLE `nov_chapter_0023` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0024
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0024`;
CREATE TABLE `nov_chapter_0024` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0025
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0025`;
CREATE TABLE `nov_chapter_0025` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0026
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0026`;
CREATE TABLE `nov_chapter_0026` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0027
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0027`;
CREATE TABLE `nov_chapter_0027` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0028
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0028`;
CREATE TABLE `nov_chapter_0028` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0029
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0029`;
CREATE TABLE `nov_chapter_0029` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0030
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0030`;
CREATE TABLE `nov_chapter_0030` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0031
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0031`;
CREATE TABLE `nov_chapter_0031` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0032
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0032`;
CREATE TABLE `nov_chapter_0032` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0033
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0033`;
CREATE TABLE `nov_chapter_0033` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0034
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0034`;
CREATE TABLE `nov_chapter_0034` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0035
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0035`;
CREATE TABLE `nov_chapter_0035` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0036
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0036`;
CREATE TABLE `nov_chapter_0036` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0037
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0037`;
CREATE TABLE `nov_chapter_0037` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0038
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0038`;
CREATE TABLE `nov_chapter_0038` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0039
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0039`;
CREATE TABLE `nov_chapter_0039` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0040
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0040`;
CREATE TABLE `nov_chapter_0040` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0041
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0041`;
CREATE TABLE `nov_chapter_0041` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0042
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0042`;
CREATE TABLE `nov_chapter_0042` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0043
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0043`;
CREATE TABLE `nov_chapter_0043` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0044
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0044`;
CREATE TABLE `nov_chapter_0044` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0045
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0045`;
CREATE TABLE `nov_chapter_0045` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0046
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0046`;
CREATE TABLE `nov_chapter_0046` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0047
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0047`;
CREATE TABLE `nov_chapter_0047` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0048
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0048`;
CREATE TABLE `nov_chapter_0048` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0049
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0049`;
CREATE TABLE `nov_chapter_0049` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0050
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0050`;
CREATE TABLE `nov_chapter_0050` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0051
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0051`;
CREATE TABLE `nov_chapter_0051` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0052
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0052`;
CREATE TABLE `nov_chapter_0052` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0053
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0053`;
CREATE TABLE `nov_chapter_0053` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0054
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0054`;
CREATE TABLE `nov_chapter_0054` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0055
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0055`;
CREATE TABLE `nov_chapter_0055` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0056
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0056`;
CREATE TABLE `nov_chapter_0056` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0057
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0057`;
CREATE TABLE `nov_chapter_0057` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0058
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0058`;
CREATE TABLE `nov_chapter_0058` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0059
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0059`;
CREATE TABLE `nov_chapter_0059` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0060
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0060`;
CREATE TABLE `nov_chapter_0060` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0061
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0061`;
CREATE TABLE `nov_chapter_0061` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0062
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0062`;
CREATE TABLE `nov_chapter_0062` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0063
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0063`;
CREATE TABLE `nov_chapter_0063` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0064
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0064`;
CREATE TABLE `nov_chapter_0064` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0065
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0065`;
CREATE TABLE `nov_chapter_0065` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0066
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0066`;
CREATE TABLE `nov_chapter_0066` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0067
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0067`;
CREATE TABLE `nov_chapter_0067` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0068
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0068`;
CREATE TABLE `nov_chapter_0068` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0069
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0069`;
CREATE TABLE `nov_chapter_0069` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0070
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0070`;
CREATE TABLE `nov_chapter_0070` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0071
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0071`;
CREATE TABLE `nov_chapter_0071` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0072
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0072`;
CREATE TABLE `nov_chapter_0072` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0073
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0073`;
CREATE TABLE `nov_chapter_0073` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0074
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0074`;
CREATE TABLE `nov_chapter_0074` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0075
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0075`;
CREATE TABLE `nov_chapter_0075` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0076
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0076`;
CREATE TABLE `nov_chapter_0076` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0077
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0077`;
CREATE TABLE `nov_chapter_0077` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0078
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0078`;
CREATE TABLE `nov_chapter_0078` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0079
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0079`;
CREATE TABLE `nov_chapter_0079` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0080
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0080`;
CREATE TABLE `nov_chapter_0080` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0081
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0081`;
CREATE TABLE `nov_chapter_0081` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0082
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0082`;
CREATE TABLE `nov_chapter_0082` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0083
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0083`;
CREATE TABLE `nov_chapter_0083` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0084
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0084`;
CREATE TABLE `nov_chapter_0084` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0085
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0085`;
CREATE TABLE `nov_chapter_0085` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0086
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0086`;
CREATE TABLE `nov_chapter_0086` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0087
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0087`;
CREATE TABLE `nov_chapter_0087` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0088
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0088`;
CREATE TABLE `nov_chapter_0088` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0089
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0089`;
CREATE TABLE `nov_chapter_0089` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0090
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0090`;
CREATE TABLE `nov_chapter_0090` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0091
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0091`;
CREATE TABLE `nov_chapter_0091` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0092
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0092`;
CREATE TABLE `nov_chapter_0092` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0093
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0093`;
CREATE TABLE `nov_chapter_0093` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0094
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0094`;
CREATE TABLE `nov_chapter_0094` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0095
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0095`;
CREATE TABLE `nov_chapter_0095` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0096
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0096`;
CREATE TABLE `nov_chapter_0096` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0097
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0097`;
CREATE TABLE `nov_chapter_0097` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0098
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0098`;
CREATE TABLE `nov_chapter_0098` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for nov_chapter_0099
-- ----------------------------
DROP TABLE IF EXISTS `nov_chapter_0099`;
CREATE TABLE `nov_chapter_0099` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`nov_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '小说ID',
`chapter_no` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '章节编号',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '章节标题',
`desc` longtext NOT NULL COMMENT '章节内容',
`link` varchar(100) NOT NULL DEFAULT '' COMMENT '章节采集链接',
`source` varchar(10) NOT NULL DEFAULT '' COMMENT '章节采集站点源',
`views` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '浏览次数',
`text_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '章节字数',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '章节采集状态0正常,1失败',
`try_views` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '采集重试次数',
`created_at` int(10) unsigned NOT NULL DEFAULT '0',
`updated_at` int(10) unsigned NOT NULL DEFAULT '0',
`deleted_at` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `udx_novid_no_source` (`nov_id`,`chapter_no`,`source`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SET FOREIGN_KEY_CHECKS = 1; | the_stack |
IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'REF')
EXEC sp_executesql N'CREATE SCHEMA REF AUTHORIZATION dbo;';
-----------START Address REF Tables------------------
CREATE TABLE REF.AddressScheme (
addressSchemeId SMALLINT NOT NULL,
addressSchemeName VARCHAR(32) NOT NULL,
addressSchemeDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.AddressScheme ADD CONSTRAINT PK_AddressScheme PRIMARY KEY(addressSchemeId);
CREATE TABLE REF.Country (
countryGeoId INTEGER NOT NULL,
countryCode VARCHAR(4) NOT NULL,
countryName VARCHAR(256),
iso2a VARCHAR(4),
iso3a VARCHAR(4),
iso3n VARCHAR(4),
fips VARCHAR(4),
cresta VARCHAR(6),
countryModelCode VARCHAR(4),
countryModelName VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Country ADD CONSTRAINT PK_Country PRIMARY KEY(countryCode);
ALTER TABLE REF.Country ADD CONSTRAINT UQ_Country UNIQUE(countryGeoId);
CREATE TABLE REF.Admin1 (
admin1GeoId BIGINT NOT NULL,
countryGeoId INTEGER,
admin1Code VARCHAR(16),
admin1Name VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Admin1 ADD CONSTRAINT PK_Admin1 PRIMARY KEY(admin1GeoId);
CREATE TABLE REF.Admin2 (
admin2GeoId BIGINT NOT NULL,
admin1GeoId BIGINT NOT NULL,
countryGeoId INTEGER,
admin2Code VARCHAR(16),
admin2Name VARCHAR(256),
cresta VARCHAR(16),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Admin2 ADD CONSTRAINT PK_Admin2 PRIMARY KEY(admin2GeoId);
CREATE TABLE REF.Admin3 (
admin3GeoId BIGINT NOT NULL,
admin2GeoId BIGINT NOT NULL,
admin1GeoId BIGINT NOT NULL,
countryGeoId BIGINT NOT NULL,
admin3Code VARCHAR(16),
admin3Name VARCHAR(256),
cresta VARCHAR(16),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Admin3 ADD CONSTRAINT PK_Admin3 PRIMARY KEY(admin3GeoId);
CREATE TABLE REF.Admin4 (
admin4GeoId BIGINT NOT NULL,
admin3GeoId BIGINT NOT NULL,
admin2GeoId BIGINT NOT NULL,
admin1GeoId BIGINT NOT NULL,
countryGeoId BIGINT NOT NULL,
admin4Code VARCHAR(16),
admin4Name VARCHAR(256),
cresta VARCHAR(16),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Admin4 ADD CONSTRAINT PK_Admin4 PRIMARY KEY(admin4GeoId);
CREATE TABLE REF.Admin5 (
admin5GeoId BIGINT NOT NULL,
admin4GeoId BIGINT NOT NULL,
admin3GeoId BIGINT NOT NULL,
admin2GeoId BIGINT NOT NULL,
admin1GeoId BIGINT NOT NULL,
countryGeoId BIGINT NOT NULL,
admin5Code VARCHAR(16),
admin5Name VARCHAR(256),
CRESTA VARCHAR(16),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Admin5 ADD CONSTRAINT PK_Admin5 PRIMARY KEY(admin5GeoId);
CREATE TABLE REF.PostalCode (
postalCodeGeoId BIGINT NOT NULL,
admin3GeoId BIGINT NOT NULL,
admin2GeoId BIGINT NOT NULL,
admin1GeoId BIGINT NOT NULL,
countryGeoId BIGINT NOT NULL,
postalCode VARCHAR(16),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PostalCode ADD CONSTRAINT PK_PostalCode PRIMARY KEY(postalCodeGeoId);
CREATE TABLE REF.City (
cityGeoId BIGINT NOT NULL,
countryGeoId BIGINT NOT NULL,
cityCode VARCHAR(10),
cityName VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.City ADD CONSTRAINT PK_City PRIMARY KEY(cityGeoId);
CREATE TABLE REF.GeoModelResolution (
geoModelResolutionCode SMALLINT NOT NULL,
geoModelResolutionDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.GeoModelResolution ADD CONSTRAINT PK_GeoModelResolution PRIMARY KEY(geoModelResolutionCode);
CREATE TABLE REF.GeocodingResolution (
geocodingResolutionCode SMALLINT NOT NULL,
geocodingResolutionDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.GeocodingResolution ADD CONSTRAINT PK_GeocodingResolution PRIMARY KEY(geocodingResolutionCode);
CREATE TABLE REF.GeocodingDataSource (
geocodingDataSourceId SMALLINT NOT NULL,
geocodingDataSourceName VARCHAR(32),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.GeocodingDataSource ADD CONSTRAINT PK_GeocodingDataSource PRIMARY KEY(geocodingDataSourceId);
-----------END Address REF Tables------------------
------------START CONTRACT/FINANCIAL REF Tables----------
CREATE TABLE REF.Currency (
currencyCode CHAR(3) NOT NULL,
currencyName VARCHAR(256),
countryName VARCHAR(256),
currencySymbol NVARCHAR(8),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Currency ADD CONSTRAINT PK_Currency PRIMARY KEY(currencyCode);
CREATE TABLE REF.CurrencyExchangeRate (
currencyCode CHAR(3) NOT NULL,
effectiveDate DATETIME NOT NULL,
exchangeRate FLOAT NOT NULL DEFAULT 1.0
);
CREATE TABLE REF.CauseOfLoss (
causeOfLossCode CHAR(32) NOT NULL,
causeOfLossDesc VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.CauseOfLoss ADD CONSTRAINT PK_CauseOfLoss PRIMARY KEY(causeOfLossCode);
CREATE TABLE REF.CauseOfLossHierarchy (
causeOfLossCode CHAR(32) NOT NULL,
parentCauseOfLossCode CHAR(32) NOT NULL
);
ALTER TABLE REF.CauseOfLossHierarchy ADD CONSTRAINT PK_CauseOfLossHierarchy PRIMARY KEY (causeOfLossCode, parentCauseOfLossCode);
ALTER TABLE REF.CauseOfLossHierarchy ADD CONSTRAINT FK_CauseOfLossHierarchy_CauseOfLoss FOREIGN KEY(causeOfLossCode) REFERENCES REF.CauseOfLoss(causeOfLossCode);
ALTER TABLE REF.CauseOfLossHierarchy ADD CONSTRAINT FK_CauseOfLossHierarchy_CauseOfLoss1 FOREIGN KEY(parentCauseOfLossCode) REFERENCES REF.CauseOfLoss(causeOfLossCode);
CREATE TABLE REF.LossType (
lossTypeCode VARCHAR(32) NOT NULL,
lossTypeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.LossType ADD CONSTRAINT PK_LossType PRIMARY KEY(lossTypeCode);
CREATE TABLE REF.LossTypeHierarchy (
lossTypeCode VARCHAR(32) NOT NULL,
parentLossTypeCode VARCHAR(32) NOT NULL
);
ALTER TABLE REF.LossTypeHierarchy ADD CONSTRAINT PK_LossTypeHierarchy PRIMARY KEY (lossTypeCode, parentLossTypeCode);
CREATE TABLE REF.PayoutFunction(
payoutFunctionCode VARCHAR(32) NOT NULL,
payoutFunctionDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
);
ALTER TABLE REF.PayoutFunction ADD CONSTRAINT PK_PayoutFunction PRIMARY KEY (payoutFunctionCode);
CREATE TABLE REF.TermType(
termTypeCode VARCHAR(32) NOT NULL,
termTypeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
);
ALTER TABLE REF.TermType ADD CONSTRAINT PK_TermType PRIMARY KEY (termTypeCode);
CREATE TABLE REF.AmountBasis(
amountBasisCode VARCHAR(32) NOT NULL,
amountBasisDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
);
ALTER TABLE REF.AmountBasis ADD CONSTRAINT PK_AmountBasis PRIMARY KEY (amountBasisCode);
CREATE TABLE REF.TimeBasis(
timeBasisCode VARCHAR(32) NOT NULL,
timeBasisDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
);
ALTER TABLE REF.TimeBasis ADD CONSTRAINT PK_TimeBasis PRIMARY KEY (timeBasisCode);
CREATE TABLE REF.AttachmentBasis (
attachmentBasisCode VARCHAR(32) NOT NULL,
attachmentBasisDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.AttachmentBasis ADD CONSTRAINT PK_AttachmentBasis PRIMARY KEY (attachmentBasisCode);
CREATE TABLE REF.AttachmentLevel (
attachmentLevelCode VARCHAR(32) NOT NULL,
attachmentLevelDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.AttachmentLevel ADD CONSTRAINT PK_AttachmentLevel PRIMARY KEY (attachmentLevelCode);
CREATE TABLE REF.Resolution (
resolutionCode VARCHAR(32) NOT NULL,
resolutionDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Resolution ADD CONSTRAINT PK_Resolution PRIMARY KEY (resolutionCode);
CREATE TABLE REF.ContractBranch (
contractBranchCode VARCHAR(80) NOT NULL,
contractBranchName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractBranch ADD CONSTRAINT PK_ContractBranch PRIMARY KEY(contractBranchCode);
CREATE TABLE REF.ContractCedant (
contractCedantCode VARCHAR(80) NOT NULL,
contractCedantName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractCedant ADD CONSTRAINT PK_ContractCedant PRIMARY KEY(contractCedantCode);
CREATE TABLE REF.ContractUnderwriter (
contractUnderwriterCode VARCHAR(80) NOT NULL,
contractUnderwriterName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractUnderwriter ADD CONSTRAINT UQ_ContractUnderwriter PRIMARY KEY(contractUnderwriterCode);
CREATE TABLE REF.ContractStatus (
contractStatusCode CHAR(32) NOT NULL,
contractStatusDesc VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractStatus ADD CONSTRAINT PK_ContractStatus PRIMARY KEY(contractStatusCode);
CREATE TABLE REF.Insured (
insuredCode VARCHAR(80) NOT NULL,
insuredName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Insured ADD CONSTRAINT PK_Insured PRIMARY KEY(insuredCode);
CREATE TABLE REF.Insurer (
insurerCode VARCHAR(80) NOT NULL,
insurerName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Insurer ADD CONSTRAINT PK_Insurer PRIMARY KEY(insurerCode);
CREATE TABLE REF.Reinsurer (
reinsurerCode VARCHAR(80) NOT NULL,
reinsurerName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Reinsurer ADD CONSTRAINT PK_Reinsurer PRIMARY KEY(reinsurerCode);
CREATE TABLE REF.Producer (
producerCode VARCHAR(80) NOT NULL,
producerName VARCHAR(1024) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Producer ADD CONSTRAINT PK_Producer PRIMARY KEY(producerCode);
CREATE TABLE REF.ContractType (
contractTypeCode VARCHAR(32) NOT NULL,
contractTypeDesc VARCHAR(1024) NOT NULL,
parentContractTypeCode VARCHAR(32),
isInsurance BIT,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractType ADD CONSTRAINT PK_ContractType PRIMARY KEY(contractTypeCode);
CREATE TABLE REF.ContractScope (
contractScopeCode VARCHAR(32) NOT NULL,
contractScopeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContractScope ADD CONSTRAINT PK_ContractScope PRIMARY KEY(contractScopeCode);
CREATE TABLE REF.ProrataOptionType (
prorataOptionTypeCode VARCHAR(32) NOT NULL,
prorataOptionTypeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ProrataOptionType ADD CONSTRAINT PK_ProrataOptionType PRIMARY KEY(prorataOptionTypeCode);
CREATE TABLE REF.LineOfBusiness (
lineOfBusinessCode VARCHAR(32) NOT NULL,
lineOfBusinessDesc VARCHAR(256) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.LineOfBusiness ADD CONSTRAINT PK_LineOfBusiness PRIMARY KEY(lineOfBusinessCode);
------------END CONTRACT/FINANCIAL REF Tables----------
------------START PORTFOLIO & STRUCTURE REF Tables----------
CREATE TABLE REF.PortfolioType (
portfolioTypeCode VARCHAR(32) NOT NULL,
portfolioTypeDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PortfolioType ADD CONSTRAINT PK_PortfolioType PRIMARY KEY(portfolioTypeCode);
CREATE TABLE REF.PositionType (
positionTypeCode VARCHAR(32) NOT NULL,
positionTypeDesc VARCHAR(256) ,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PositionType ADD CONSTRAINT PK_PositionType PRIMARY KEY(positionTypeCode);
CREATE TABLE REF.Tag (
tagCode VARCHAR(32) NOT NULL,
tagDesc VARCHAR(256) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Tag ADD CONSTRAINT PK_Tag PRIMARY KEY(tagCode);
------------END PORTFOLIO & STRUCTURE REF Tables----------
------------START REALPROPERTY REF Tables----------
CREATE TABLE REF.RiskitemType (
riskItemTypeCode VARCHAR(16) NOT NULL,
riskItemTypeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RiskitemType ADD CONSTRAINT PK_RiskitemType PRIMARY KEY (riskItemTypeCode);
CREATE TABLE REF.CharacteristicsScheme (
characteristicsSchemeCode VARCHAR(16) NOT NULL,
characteristicsSchemeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.CharacteristicsScheme ADD CONSTRAINT PK_CharacteristicsScheme PRIMARY KEY (characteristicsSchemeCode);
CREATE TABLE REF.RentalPropertyIdentifier (
rentalPropertyIdentifierCode INTEGER NOT NULL,
rentalPropertyIdentifierDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RentalPropertyIdentifier ADD CONSTRAINT PK_RentalPropertyIdentifier PRIMARY KEY(rentalPropertyIdentifierCode);
CREATE TABLE REF.AreaUnit (
areaUnitCode TINYINT NOT NULL,
areaUnitDesc VARCHAR(1024)
);
ALTER TABLE REF.AreaUnit ADD CONSTRAINT PK_AreaUnit PRIMARY KEY(areaUnitCode);
CREATE TABLE REF.Construction (
constructionschemeName VARCHAR(10) NOT NULL,
constructionCode VARCHAR(5) NOT NULL,
constructionName VARCHAR(512) NOT NULL,
constructionBandName VARCHAR(512),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Construction ADD CONSTRAINT PK_Construction PRIMARY KEY(constructionschemeName, constructionCode);
CREATE TABLE REF.DistanceUnit (
distanceUnitCode TINYINT NOT NULL,
distanceUnitDesc VARCHAR(1024),
);
ALTER TABLE REF.DistanceUnit ADD CONSTRAINT PK_DistanceUnit PRIMARY KEY(distanceUnitCode);
CREATE TABLE REF.Occupancy (
occupancyschemeName VARCHAR(10) NOT NULL,
occupancyCode INTEGER NOT NULL,
occupancyName VARCHAR(512) NOT NULL,
occupancyBandName VARCHAR(512),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Occupancy ADD CONSTRAINT PK_Occupancy PRIMARY KEY(occupancyschemeName, occupancyCode);
CREATE TABLE REF.Basement (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Basement ADD CONSTRAINT PK_Basement PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.BIPreparedness (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.BIPreparedness ADD CONSTRAINT PK_BIPreparedness PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.BIRedundancy (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.BIRedundancy ADD CONSTRAINT PK_BIRedundancy PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.CommercialAppurtenant (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.CommercialAppurtenant ADD CONSTRAINT PK_CommercialAppurtenant PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.ContentsVulnWater (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContentsVulnWater ADD CONSTRAINT PK_ContentsVulnWater PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.ContentsVulnWind (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ContentsVulnWind ADD CONSTRAINT PK_ContentsVulnWind PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.EngineeredFoundation (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.EngineeredFoundation ADD CONSTRAINT PK_EngineeredFoundation PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.Exterior (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Exterior ADD CONSTRAINT PK_Exterior PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.ExteriorRating (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ExteriorRating ADD CONSTRAINT PK_ExteriorRating PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.ExternalOrnamentation (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ExternalOrnamentation ADD CONSTRAINT PK_ExternalOrnamentation PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FireRemoteAlarmPresence (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FireRemoteAlarmPresence ADD CONSTRAINT PK_FireRemoteAlarmPresence PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FireSprinklerPresence (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FireSprinklerPresence ADD CONSTRAINT PK_FireSprinklerPresence PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FireSuppression (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FireSuppression ADD CONSTRAINT PK_FireSuppression PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FloorType (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FloorType ADD CONSTRAINT PK_FloorType PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FloodMissile (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FloodMissile ADD CONSTRAINT PK_FloodMissile PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FloodProtection (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FloodProtection ADD CONSTRAINT PK_FloodProtection PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FoundationType (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FoundationType ADD CONSTRAINT PK_FoundationType PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.FrameFoundationConnection (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.FrameFoundationConnection ADD CONSTRAINT PK_FrameFoundationConnection PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.Garaging (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Garaging ADD CONSTRAINT PK_Garaging PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.MarineProtection (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.MarineProtection ADD CONSTRAINT PK_MarineProtection PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.PlumbingInsulation (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PlumbingInsulation ADD CONSTRAINT PK_PlumbingInsulation PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.OpeningProtect (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.OpeningProtect ADD CONSTRAINT PK_OpeningProtect PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.Performance (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Performance ADD CONSTRAINT PK_Performance PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.PlanIrregularity (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PlanIrregularity ADD CONSTRAINT PK_PlanIrregularity PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.Pounding (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Pounding ADD CONSTRAINT PK_Pounding PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.ResidentialAppurtenant (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ResidentialAppurtenant ADD CONSTRAINT PK_ResidentialAppurtenant PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofAdditions (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofAdditions ADD CONSTRAINT PK_RoofAdditions PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofAgeCondition (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofAgeCondition ADD CONSTRAINT PK_RoofAgeCondition PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofAnchor (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofAnchor ADD CONSTRAINT PK_RoofAnchor PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofCovering (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofCovering ADD CONSTRAINT PK_RoofCovering PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofGeometry (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofGeometry ADD CONSTRAINT PK_RoofGeometry PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.RoofVent (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RoofVent ADD CONSTRAINT PK_RoofVent PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.StructuralUpgradeNonURM (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.StructuralUpgradeNonURM ADD CONSTRAINT PK_StructuralUpgradeNonURM PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.Tank (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Tank ADD CONSTRAINT PK_Tank PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.URMRetrofit (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.URMRetrofit ADD CONSTRAINT PK_URMRetrofit PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.URMChimney (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.URMChimney ADD CONSTRAINT PK_URMChimney PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.VerticalIrregularity (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.VerticalIrregularity ADD CONSTRAINT PK_VerticalIrregularity PRIMARY KEY(countryGeoId, optionValue);
CREATE TABLE REF.WindMissileExposure (
countryGeoId INTEGER NOT NULL,
optionDesc VARCHAR(1024),
optionValue SMALLINT NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.WindMissileExposure ADD CONSTRAINT PK_WindMissileExposure PRIMARY KEY(countryGeoId, optionValue);
----END REAL PROPERTY REF tables----------
------------------START POPULATION REF Tables------------
CREATE TABLE REF.ShiftType (
shiftTypeId SMALLINT NOT NULL,
shiftTypeDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ShiftType ADD CONSTRAINT PK_ShiftType PRIMARY KEY(shiftTypeId);
CREATE TABLE REF.HazardousMaterial (
hazardousMaterialCode INTEGER NOT NULL,
hazardousMaterialDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.HazardousMaterial ADD CONSTRAINT PK_HazardousMaterial PRIMARY KEY(hazardousMaterialCode);
CREATE TABLE REF.PopulationDensity (
populationDensityCode INTEGER NOT NULL,
populationDensityDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.PopulationDensity ADD CONSTRAINT PK_PopulationDensity PRIMARY KEY(populationDensityCode);
CREATE TABLE REF.WageRelativityRank (
wageRelativityRankCode SMALLINT NOT NULL,
wageRelativityRankDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.WageRelativityRank ADD CONSTRAINT PK_WageRelativityRank PRIMARY KEY(wageRelativityRankCode);
CREATE TABLE REF.RiskManagementOnsiteRank (
riskManagementOnsiteRankCode SMALLINT NOT NULL,
riskManagementOnsiteRankDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.RiskManagementOnsiteRank ADD CONSTRAINT PK_RiskManagementOnsiteRank PRIMARY KEY(riskManagementOnsiteRankCode);
CREATE TABLE REF.EmergencyProtectionProximity (
emergencyProtectionProxCode SMALLINT NOT NULL,
emergencyProtectionProxDesc VARCHAR(1024),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.EmergencyProtectionProximity ADD CONSTRAINT PK_EmergencyProtectionProximity PRIMARY KEY(emergencyProtectionProxCode);
-------------END START POPULATION REF Tables--------------
---------START RESULT Ref Tables---------
CREATE TABLE REF.Peril (
perilCode VARCHAR(4) NOT NULL,
perilDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Peril ADD CONSTRAINT PK_Peril PRIMARY KEY(perilCode);
CREATE TABLE REF.Region (
regionCode VARCHAR(4) NOT NULL,
regionDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.Region ADD CONSTRAINT PK_Region PRIMARY KEY(RegionCode);
CREATE TABLE REF.ResultType (
resultTypeCode VARCHAR(32) NOT NULL,
resultTypeDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.ResultType ADD CONSTRAINT PK_ResultType PRIMARY KEY(resultTypeCode);
CREATE TABLE REF.SettingsType (
settingsTypeCode VARCHAR(32) NOT NULL,
settingsTypeDesc VARCHAR(256),
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.SettingsType ADD CONSTRAINT PK_SettingsType PRIMARY KEY(settingsTypeCode);
CREATE TABLE REF.Granularity (
granularityCode VARCHAR(32) NOT NULL,
granularityDesc VARCHAR(256) NOT NULL,
isActive BIT DEFAULT 1,
externalId VARCHAR(256)
);
ALTER TABLE REF.granularity ADD CONSTRAINT PK_Granularity PRIMARY KEY(granularityCode);
---------END RESULT Ref Tables--------- | the_stack |
-- 29.03.2016 11:18
-- 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,554310,541414,0,30,540745,'N','C_Flatrate_DataEntry_ID',TO_TIMESTAMP('2016-03-29 11:18:42','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.procurement',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Abrechnungssatz',0,TO_TIMESTAMP('2016-03-29 11:18:42','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.03.2016 11:18
-- 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=554310 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)
;
-- 29.03.2016 11:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE PMM_PurchaseCandidate ADD C_Flatrate_DataEntry_ID NUMERIC(10) DEFAULT NULL
;
-- 29.03.2016 11:19
-- 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,554311,541414,0,30,540747,'N','C_Flatrate_DataEntry_ID',TO_TIMESTAMP('2016-03-29 11:19:05','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.procurement',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Abrechnungssatz',0,TO_TIMESTAMP('2016-03-29 11:19:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.03.2016 11:19
-- 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=554311 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)
;
-- 29.03.2016 11:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE PMM_QtyReport_Event ADD C_Flatrate_DataEntry_ID NUMERIC(10) DEFAULT NULL
;
-- 29.03.2016 11:20
-- 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,554312,541414,0,30,540755,'N','C_Flatrate_DataEntry_ID',TO_TIMESTAMP('2016-03-29 11:20:33','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.procurement',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','Y','N','Abrechnungssatz',0,TO_TIMESTAMP('2016-03-29 11:20:33','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 29.03.2016 11:20
-- 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=554312 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)
;
-- 29.03.2016 11:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2016-03-29 11:21:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554312
;
-- 29.03.2016 11:21
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE PMM_Balance ADD C_Flatrate_DataEntry_ID NUMERIC(10) DEFAULT NULL
;
-- 29.03.2016 12:29
-- 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,554311,556854,0,540727,TO_TIMESTAMP('2016-03-29 12:29:55','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.procurement','Y','Y','Y','N','N','N','N','N','Abrechnungssatz',TO_TIMESTAMP('2016-03-29 12:29:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 29.03.2016 12:29
-- 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=556854 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)
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556854
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556675
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556685
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556676
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=160,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556850
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556852
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=180,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556851
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556680
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=200,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556682
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=210,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556683
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=220,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556684
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=230,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556694
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=240,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556677
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=250,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556678
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=260,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556772
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=270,Updated=TO_TIMESTAMP('2016-03-29 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556679
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556854
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556675
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556685
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556676
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556850
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=170,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556852
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=180,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556851
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=190,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556680
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=200,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556682
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=210,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556683
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=220,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556684
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=230,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556694
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=240,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556677
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=250,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556678
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=260,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556772
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=270,Updated=TO_TIMESTAMP('2016-03-29 12:30:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556679
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-03-29 12:30:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556854
;
-- 29.03.2016 12:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2016-03-29 12:30:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556854
; | the_stack |
-- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 29, 2013 at 11:46 PM
-- Server version: 5.5.31-MariaDB-log
-- PHP Version: 5.4.17
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 utf8 */;
--
-- Database: `aurora_main`
--
CREATE DATABASE IF NOT EXISTS `aurora_main` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `aurora_main`;
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`variable` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`value` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`variable`, `value`) VALUES
('lastjudge', '0'),
('mode', 'Disabled'),
('penalty', '20'),
('notice', 'Aurora Online Judge\r\nWelcome to Aurora Online Judge'),
('endtime', '0'),
('starttime', '0'),
('port', '8723'),
('ip', 'judge');
-- --------------------------------------------------------
--
-- Table structure for table `broadcast`
--
CREATE TABLE IF NOT EXISTS `broadcast` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` tinytext NOT NULL,
`msg` text NOT NULL,
`createdOn` datetime NOT NULL,
`updatedOn` datetime NOT NULL,
`deleted` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `clar`
--
CREATE TABLE IF NOT EXISTS `clar` (
`time` int(11) NOT NULL,
`tid` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`query` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`reply` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`access` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`createtime` int(11) DEFAULT NULL,
PRIMARY KEY (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `contest`
--
DROP TABLE IF EXISTS `contest`;
CREATE TABLE IF NOT EXISTS `contest` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`name` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`starttime` int(11) NOT NULL,
`endtime` int(11) NOT NULL,
`announcement` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`ranktable` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
CREATE TABLE IF NOT EXISTS `groups` (
`gid` int(11) NOT NULL AUTO_INCREMENT,
`groupname` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`statusx` int(11) DEFAULT NULL,
PRIMARY KEY (`gid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `logs`
--
CREATE TABLE IF NOT EXISTS `logs` (
`time` int(11) NOT NULL,
`ip` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`tid` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`request` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `problems`
--
CREATE TABLE IF NOT EXISTS `problems` (
`pid` int(11) NOT NULL AUTO_INCREMENT,
`code` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`name` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`type` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`contest` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`status` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`pgroup` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`statement` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`image` longblob,
`imgext` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`input` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`output` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`timelimit` float DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`languages` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`options` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`displayio` tinyint(1) NOT NULL DEFAULT '0',
`maxfilesize` int(11) NOT NULL DEFAULT '50000',
`solved` int(11) NOT NULL DEFAULT '0',
`total` int(11) DEFAULT '0',
PRIMARY KEY (`pid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `problems`
--
INSERT INTO `problems` (`pid`, `code`, `name`, `type`, `contest`, `status`, `pgroup`, `statement`, `image`, `imgext`, `input`, `output`, `timelimit`, `score`, `languages`, `options`, `displayio`, `maxfilesize`) VALUES
(1, 'TEST', 'Squares', 'Ad-Hoc', 'practice', 'Active', 'Test', 'WAP to output the square of an integer.\r\nInput : Read until the end of file. Each line contains a single positive integer less than or equal to 10.\r\nOutput : Output the square of the integer, one in each line.\r\n\r\n<b>SAMPLE INPUT</b>\r\n<code>\r\n1\r\n2\r\n3\r\n5\r\n</code>\r\n\r\n<b>SAMPLE OUTPUT </b>\r\n<code>\r\n1\r\n4\r\n9\r\n25\r\n</code>', NULL, NULL, '1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n', '1\n4\n9\n16\n25\n36\n49\n64\n81\n100\n', 0.5, 0, 'Brain,C,C++,C#,Java,JavaScript,Pascal,Perl,PHP,Python,Ruby,Text', '', 1, 50000);
-- --------------------------------------------------------
--
-- Table structure for table `runs`
--
CREATE TABLE IF NOT EXISTS `runs` (
`rid` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) DEFAULT NULL,
`tid` int(11) DEFAULT NULL,
`language` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`time` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`result` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`access` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`submittime` int(11) DEFAULT NULL,
PRIMARY KEY (`rid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `runs`
--
INSERT INTO `runs` (`rid`, `pid`, `tid`, `language`, `time`, `result`, `access`, `submittime`) VALUES
(1, 1, 1, 'C', '', NULL, 'public', NULL),
(2, 1, 1, 'C++', '', NULL, 'public', NULL),
(3, 1, 1, 'C#', '', NULL, 'public', NULL),
(4, 1, 1, 'Java', '', NULL, 'public', NULL),
(5, 1, 1, 'JavaScript', '', NULL, 'public', NULL),
(6, 1, 1, 'Pascal', '', NULL, 'public', NULL),
(7, 1, 1, 'Perl', '', NULL, 'public', NULL),
(8, 1, 1, 'PHP', '', NULL, 'public', NULL),
(9, 1, 1, 'Python', '', NULL, 'public', NULL),
(10, 1, 1, 'Ruby', '', NULL, 'public', NULL),
(11, 1, 1, 'Python3', '', NULL, 'public', NULL),
(12, 1, 1, 'AWK', '', NULL, 'public', NULL),
(13, 1, 1, 'Bash', '', NULL, 'public', NULL),
(14, 1, 1, 'Brain', '', NULL, 'public', NULL);
--
-- Triggers `runs`
--
DROP TRIGGER IF EXISTS `scoreupdate`;
DELIMITER //
CREATE TRIGGER `scoreupdate` AFTER UPDATE ON `runs`
FOR EACH ROW begin
DECLARE done INT DEFAULT FALSE;
DECLARE v_rid, v_submittime, v_incorrect, v_pen, v_score, recpid, v_dq, v_total, v_solved int(11);
DECLARE v_sco int DEFAULT 0;
DECLARE v_dqsco int DEFAULT 0;
DECLARE v_penalty bigint DEFAULT 0;
DECLARE cur1 CURSOR FOR SELECT distinct(runs.pid) as pid,problems.score as score FROM runs,problems WHERE runs.tid= OLD.tid and (runs.result='AC' OR runs.result='DQ') and runs.pid=problems.pid and problems.status!='Deleted' and runs.access!='deleted' and problems.contest = 'contest';
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
IF new.result <> old.result THEN
OPEN cur1;
read_loop: LOOP
FETCH cur1 INTO recpid, v_score;
IF done THEN
LEAVE read_loop;
END IF;
SELECT count(*) into v_dq FROM runs WHERE result='DQ' and access!='deleted' and tid=OLD.tid and pid=recpid;
IF v_dq = 0 THEN
SELECT rid,submittime into v_rid, v_submittime FROM runs WHERE result='AC' and tid=OLD.tid and pid=recpid and access!='deleted' ORDER BY rid ASC LIMIT 0,1;
SELECT count(*) into v_incorrect FROM runs, problems WHERE result!='AC' and result is not NULL and access!='deleted' and rid<v_rid and tid=OLD.tid and runs.pid=recpid and problems.score > 0 and problems.pid = runs.pid;
SELECT value into v_pen from admin where variable = 'penalty';
SELECT (v_penalty + v_incorrect*v_pen*60) into v_penalty;
SELECT (v_sco + v_score) into v_sco;
ELSE
SELECT (v_dqsco + v_score) into v_dqsco;
END IF;
end loop;
select max(submittime) into v_submittime from (select min(submittime) as submittime from runs, problems WHERE runs.tid= OLD.tid and runs.result='AC' and runs.pid=problems.pid and problems.status!='Deleted' and runs.access!='deleted' and problems.contest = 'contest' group by runs.pid)t;
SELECT (v_penalty + v_submittime) into v_penalty;
update admin set value=v_dqsco where variable='test';
UPDATE teams SET score = (v_sco-v_dqsco), penalty=v_penalty where tid=OLD.tid;
CLOSE cur1;
END IF;
IF strcmp(old.access, 'deleted') <> 0 and strcmp(new.access, 'deleted') = 0 THEN
select solved, total into v_solved, v_total from problems where pid = new.pid;
update problems set total = (v_total-1) where pid = new.pid;
IF strcmp(ifnull(new.result,''), 'AC') = 0 THEN
update problems set solved = (v_solved-1) where pid = new.pid;
END IF;
ELSEIF strcmp(old.access, 'deleted') =0 and strcmp(new.access, 'deleted') <> 0 THEN
select solved, total into v_solved, v_total from problems where pid = new.pid;
update problems set total = (v_total+1) where pid = new.pid;
IF strcmp(ifnull(new.result,''), 'AC') = 0 THEN
update problems set solved = (v_solved+1) where pid = new.pid;
END IF;
ELSE
IF strcmp(ifnull(old.result,''), 'AC') = 0 and strcmp(ifnull(new.result,''), 'AC') <> 0 THEN
select solved, total into v_solved, v_total from problems where pid = new.pid;
update problems set solved = (v_solved-1) where pid = new.pid;
ELSEIF strcmp(ifnull(old.result,''), 'AC') <> 0 and strcmp(ifnull(new.result,''), 'AC') = 0 THEN
select solved, total into v_solved, v_total from problems where pid = new.pid;
update problems set solved = (v_solved+1) where pid = new.pid;
END IF;
END IF;
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `subs_code`
--
CREATE TABLE IF NOT EXISTS `subs_code` (
`rid` int(11) NOT NULL AUTO_INCREMENT,
`name` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`code` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`error` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`output` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
PRIMARY KEY (`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `subs_code`
--
INSERT INTO `subs_code` (`rid`, `name`, `code`, `error`, `output`) VALUES
(1, 'code', '#include<stdio.h>\r\nint main(){\r\n int i;\r\n while(scanf("%d", &i) != EOF)\r\n printf("%d\\n", i*i);\r\n return 0;\r\n }\r\n', '', ''),
(2, 'code', '#include<iostream>\r\nusing namespace std;\r\nint main(){\r\n int i;\r\n while(cin>>i)\r\n cout<<(i*i)<<endl;\r\n return 0;\r\n }\r\n', '', ''),
(3, 'code', 'using System;\r\nclass Program {\r\n static void Main(string[] args){\r\n int i; string s;\r\n while ((s = Console.ReadLine()) != null){\r\n i = Int16.Parse(s);\r\n Console.WriteLine(i * i);\r\n }\r\n }\r\n }', '', ''),
(4, 'Main', 'import java.io.*;\npublic class Main {\n public static void main(String args[])throws IOException{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int n;\n String str;\n while((str=in.readLine())!=null){\n n = Integer.parseInt(str);\n n = n*n;\n System.out.println(n);\n } // while\n }\n }', '', ''),
(5, 'code', 'importPackage(java.io);\r\nimportPackage(java.lang);\r\nvar reader = new BufferedReader( new InputStreamReader(System[''in'']) );\r\nwhile (true){\r\n var line = reader.readLine();\r\n if (line==null) break;\r\n else {\r\n i = parseInt(line);\r\n System.out.println((i*i)+'''');\r\n }\r\n }', '', ''),
(6, 'code', 'program code;\nvar\n i: integer;\nbegin\n while not eof do begin\n readln(i);\n writeln(i*i);\n end\nend. { code }', '', ''),
(7, 'code', 'while($n = <STDIN>){\r\n print ($n*$n);\r\n print "\\n";\r\n }', '', ''),
(8, 'code', '<?php\r\n$stdin = fopen("php://stdin","r");\r\nwhile($i = trim(fgets($stdin))){\r\n echo ($i*$i)."\\n";\r\n }\r\nfclose($stdin);\r\n?>', '', ''),
(9, 'code', 'try:\n while 1:\n i = int(raw_input())\n print i*i\nexcept:\n pass\n', '', ''),
(10, 'code', 'while n = gets\n n = n.chomp.to_i\n puts (n*n).to_s\nend', '', ''),
(11, 'Main', 'try:\n while 1:\n i = int(input())\n print(i*i)\nexcept:\n pass', '', ''),
(12, 'Main', 'BEGIN{\r\n}\r\n{\r\n n = $1;\r\n printf("%d\\n", n*n);\r\n}\r\nEND{\r\n}\r\n', '', ''),
(13, 'Main', '#!/bin/bash\r\nwhile read line;\r\ndo\r\n echo "$line*$line" | bc\r\ndone\r\n', '', ''),
(14, 'Main', '>>\r\n, +\r\n[\r\n -\r\n <+>\r\n ----------\r\n [\r\n <-<[-]+>>\r\n ++++++++++\r\n >++++++++[<------>-]<\r\n [\r\n <<->>\r\n [>+>+>+<<<-]>>>-\r\n [<[<+<+>>-]<<[>>+<<-]>>>-]<< \r\n >[-]>[-]++++++++++<<\r\n [>>\r\n [->+<<<-[>]>>>\r\n [<\r\n [-<+>]\r\n >>\r\n ]\r\n <<\r\n ]\r\n <[>>[->>>+<<<]>>-<<<<[-]]>\r\n >[-<+>]>>+<<<<<\r\n ]\r\n >>>>>\r\n [>>[-]++++++[-<<++++++++>>]<<.[-]]\r\n >\r\n [>[-]++++++[-<++++++++>]<.[-]]\r\n <<<<<<[-]\r\n ]\r\n <<[->++++++++[<++++++>-]<..[-]]\r\n ]\r\n <[+++++++++.[-]]>[-]>\r\n , +\r\n]', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `teams`
--
CREATE TABLE IF NOT EXISTS `teams` (
`tid` int(11) NOT NULL AUTO_INCREMENT,
`teamname` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`teamname2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`pass` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`status` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`score` int(11) DEFAULT NULL,
`penalty` bigint(20) DEFAULT NULL,
`name1` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`roll1` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`branch1` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`email1` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`phone1` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`name2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`roll2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`branch2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`email2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`phone2` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`name3` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`roll3` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`branch3` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`email3` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`phone3` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`platform` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`ip` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`session` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`gid` int(11) NOT NULL,
PRIMARY KEY (`tid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `teams`
--
INSERT INTO `teams` (`tid`, `teamname`, `teamname2`, `pass`, `status`, `score`, `penalty`, `name1`, `roll1`, `branch1`, `email1`, `phone1`, `name2`, `roll2`, `branch2`, `email2`, `phone2`, `name3`, `roll3`, `branch3`, `email3`, `phone3`, `platform`, `ip`, `session`, `gid`) VALUES
(1, 'judge', NULL, '99c8ef576f385bc322564d5694df6fc2', 'Admin', '', '', '', '', '', 'pushkar8723@gmail.com', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '[]', '[]', '', 2);
--
-- Table structure for table `editorials`
--
CREATE TABLE IF NOT EXISTS `editorials` (
`pid` int(11) NOT NULL,
`content` text CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`pid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | the_stack |
-- INSERT INTO RSS_LIST(name, url, use_db, link_key, create_dt)
-- SELECT 'TORRENTWAL' name
-- , 'https://torrentwal.net/bbs//rss.php?b=torrent_tv' url
-- , true use_db
-- , 'link' link_key
-- , CURRENT_TIMESTAMP create_dt
-- WHERE NOT EXISTS(SELECT * FROM RSS_LIST);
/* SETTING 기초 데이터 생성 */
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'INIT' key
, 'FALSE' value
, 'init' type
, true required
, '초기 설정 완료 여부'
, 'false'
, 0
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'RSS_LOAD_INTERVAL' key
, '30' value
, 'number' type
, true required
, 'RSS 갱신 주기 (분)'
, '일반'
, 0
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DOWNLOAD_CHECK_INTERVAL' key
, '1' value
, 'number' type
, true required
, '다운로드 완료 검사 주기 (분)'
, '일반'
, 1
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DONE_DELETE' key
, 'TRUE' value
, 'boolean' type
, true required
, '완료 시 삭제'
, '일반'
, 2
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DOWNLOAD_APP' key
, 'TRANSMISSION' value
, 'app' type
, true required
, '기본 다운로드 앱'
, '일반'
, 3
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'SEASON_PREFIX' key
, 'SEASON ' value
, 'text' type
, true required
, '시즌 폴더 접두사'
, '일반'
, 4
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DARK_THEME' key
, 'FALSE' value
, 'boolean' type
, true required
, '다크 테마'
, '일반'
, 5
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'SEND_TELEGRAM' key
, 'TRUE' value
, 'boolean' type
, true required
, '다운로드 완료 시 발송'
, '텔레그램'
, 10
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TELEGRAM_TOKEN' key
, '' value
, 'text' type
, false required
, '토큰'
, '텔레그램'
, 11
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TELEGRAM_CHAT_ID' key
, '' value
, 'text' type
, false required
, '아이디 (쉼표로 복수 가능)'
, '텔레그램'
, 12
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TRANSMISSION_HOST' key
, '127.0.0.1' value
, 'text' type
, false required
, '호스트'
, '트랜스미션'
, 20
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TRANSMISSION_PORT' key
, '9091' value
, 'number' type
, false required
, '포트'
, '트랜스미션'
, 21
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TRANSMISSION_USERNAME' key
, '' value
, 'text' type
, false required
, '아이디'
, '트랜스미션'
, 22
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TRANSMISSION_PASSWORD' key
, '' value
, 'password' type
, false required
, '비밀번호'
, '트랜스미션'
, 23
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DS_HOST' key
, '127.0.0.1' value
, 'text' type
, false required
, '호스트'
, '다운로드 스테이션'
, 30
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DS_PORT' key
, '5000' value
, 'number' type
, false required
, '포트'
, '다운로드 스테이션'
, 31
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DS_USERNAME' key
, '' value
, 'text' type
, false required
, '아이디'
, '다운로드 스테이션'
, 32
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'DS_PASSWORD' key
, '' value
, 'password' type
, false required
, '비밀번호'
, '다운로드 스테이션'
, 33
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING);
/* DOWNLOAD PATH 기초 데이터 생성 */
INSERT INTO DOWNLOAD_PATH(name, path, use_title, use_season, create_dt) SELECT * FROM (
SELECT 'DOWNLOAD' name
, '/download' path
, false use_title
, false use_season
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TV_TITLE' name
, '/video/TV' path
, true use_title
, false use_season
, CURRENT_TIMESTAMP create_dt
UNION ALL
SELECT 'TV_TITLE_SEASON' name
, '/video/TV' path
, true use_title
, true use_season
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM DOWNLOAD_PATH);
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'USE_LIMIT' key
, 'TRUE' value
, 'boolean' type
, true required
, '건 수 제한 여부'
, 'FEED 관리'
, 40
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'USE_LIMIT');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'LIMIT_COUNT' key
, '10000' value
, 'number' type
, true required
, '제한 건 수'
, 'FEED 관리'
, 41
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'LIMIT_COUNT');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'PROXY_HOST' key
, '' value
, 'host' type
, false required
, 'PROXY 호스트'
, 'FEED 관리'
, 43
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'PROXY_HOST');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'PROXY_PORT' key
, '' value
, 'number' type
, false required
, 'PROXY 포트'
, 'FEED 관리'
, 44
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'PROXY_PORT');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'USE_INTERNAL_RSS' key
, 'FALSE' value
, 'boolean' type
, true required
, '내장 RSS 사용'
, 'FEED 관리'
, 45
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'USE_LOGIN' key
, 'FALSE' value
, 'boolean' type
, true required
, '사용여부'
, '로그인'
, 50
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'USE_LOGIN');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'TRANSMISSION_CALLBACK' key
, 'FALSE' value
, 'boolean' type
, true required
, '콜백 사용'
, '트랜스미션'
, 24
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'TRANSMISSION_CALLBACK');
-- INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
-- SELECT 'EMBEDDED_LIMIT' key
-- , '4' value
-- , 'number' type
-- , true required
-- , '동시 다운로드 수 (EMBEDDED만 적용)'
-- , '일반'
-- , 6
-- , CURRENT_TIMESTAMP create_dt
-- ) x
-- WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'EMBEDDED_LIMIT');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'USE_CRON' key
, 'TRUE' value
, 'boolean' type
, true required
, '자동 재시작 사용여부'
, '일반'
, 7
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'USE_CRON');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'CRON_EXR' key
, '0 0 4 * * ?' value
, 'text' type
, true required
, '자동 재시작 스케줄 (CRON)'
, '일반'
, 8
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'CRON_EXR');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'DEL_DIR' key
, 'TRUE' value
, 'boolean' type
, true required
, '폴더 파일 추출'
, '다운로드'
, 9
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'DEL_DIR');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'EXCEPT_EXT' key
, '' value
, 'text' type
, true required
, '추출 제외 확장자 (쉼표로 복수 가능)'
, '다운로드'
, 9
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'EXCEPT_EXT');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'TRANSMISSION_TEST' key
, 'transmissionTest' value
, 'button' type
, false required
, '접속 테스트'
, '트랜스미션'
, 25
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'TRANSMISSION_TEST');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'DS_TEST' key
, 'dsTest' value
, 'button' type
, false required
, '접속 테스트'
, '시놀로지'
, 34
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'DS_TEST');
INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
SELECT 'TELEGRAM_TEST' key
, 'telegramTest' value
, 'button' type
, false required
, '접속 테스트'
, '텔레그램'
, 13
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'TELEGRAM_TEST');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(드라마)' name
, 'link' link_key
, false show
, true tv_series
, 'torrent_drama' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(드라마)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(예능)' name
, 'link' link_key
, false show
, true tv_series
, 'torrent_ent' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(예능)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(다큐)' name
, 'link' link_key
, false show
, true tv_series
, 'torrent_docu' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(다큐)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(외국영화)' name
, 'link' link_key
, false show
, false tv_series
, 'torrent_movie' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(외국영화)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(한국영화)' name
, 'link' link_key
, false show
, false tv_series
, 'torrent_kmovie' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(한국영화)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
INSERT INTO RSS_LIST(name, link_key, show, tv_series, url, use_db, download_all, download_path, internal, create_dt) SELECT * FROM (
SELECT 'torrssen(국내 TV)' name
, 'link' link_key
, false show
, true tv_series
, 'kt' url
, false use_db
, false download_all
, null download_path
, true internal
, CURRENT_TIMESTAMP create_dt
) x
WHERE NOT EXISTS(SELECT * FROM RSS_LIST WHERE name = 'torrssen(국내 TV)')
AND EXISTS(SELECT * FROM SETTING WHERE key = 'USE_INTERNAL_RSS' AND UPPER(value) = 'TRUE');
-- INSERT INTO SETTING(key, value, type, required, label, group_label, order_id, create_dt) SELECT * FROM (
-- SELECT 'CORS_URL' key
-- , '' value
-- , 'text' type
-- , true required
-- , 'CORS 허용 URL'
-- , '일반'
-- , 6
-- , CURRENT_TIMESTAMP create_dt
-- ) x
-- WHERE NOT EXISTS(SELECT * FROM SETTING WHERE key = 'CORS_URL');
DELETE FROM USER WHERE id = 1 AND username = 'torrssen';
ALTER TABLE IF EXISTS RSS_FEED ALTER COLUMN LINK VARCHAR(2048);
ALTER TABLE IF EXISTS RSS_FEED ALTER COLUMN DESC VARCHAR(1024);
UPDATE RSS_LIST SET tv_series = true WHERE tv_series IS NULL;
UPDATE SETTING SET order_id = 1 WHERE key = 'DARK_THEME';
UPDATE SETTING SET order_id = 2 WHERE key = 'DOWNLOAD_APP';
UPDATE SETTING SET order_id = 3 WHERE key = 'SEASON_PREFIX';
UPDATE SETTING SET order_id = 4 WHERE key = 'USE_CRON';
UPDATE SETTING SET order_id = 5, type='text' WHERE key = 'CRON_EXR';
UPDATE SETTING SET order_id = 6, group_label = '다운로드' WHERE key = 'DOWNLOAD_CHECK_INTERVAL';
-- UPDATE SETTING SET order_id = 7, group_label = '다운로드' WHERE key = 'EMBEDDED_LIMIT';
UPDATE SETTING SET order_id = 7, group_label = '다운로드' WHERE key = 'DONE_DELETE';
UPDATE SETTING SET order_id = 20 WHERE key = 'TRANSMISSION_HOST';
UPDATE SETTING SET order_id = 21 WHERE key = 'TRANSMISSION_PORT';
UPDATE SETTING SET order_id = 22 WHERE key = 'TRANSMISSION_CALLBACK';
UPDATE SETTING SET order_id = 23 WHERE key = 'TRANSMISSION_USERNAME';
UPDATE SETTING SET order_id = 24 WHERE key = 'TRANSMISSION_PASSWORD';
UPDATE SETTING SET group_label = '시놀로지' WHERE group_label = '다운로드 스테이션';
DELETE FROM SETTING WHERE key = 'CORS_URL';
DELETE FROM SETTING WHERE key = 'EMBEDDED_LIMIT';
UPDATE RSS_FEED SET rss_poster = 'http://t1.daumcdn.net/contentshub/sdb/bef6099c0dd6098dc2b5329ead5e0954787466043d1eaa1b2644f3ae886201c8' where rss_poster = 'http://t1.daumcdn.net/movie/265872b8652b4c8f8ca006653cd153ab1560756176069';
UPDATE WATCH_LIST SET subtitle = false WHERE subtitle IS NULL;
UPDATE WATCH_LIST SET series = true WHERE series IS NULL;
UPDATE SEEN_LIST SET subtitle = false WHERE subtitle IS NULL;
UPDATE SEEN_LIST SET rename_status = 'N/A' WHERE rename_status IS NULL;
UPDATE RSS_LIST SET download_all = false WHERE download_all IS NULL;
ALTER TABLE IF EXISTS DOWNLOAD_LIST ALTER COLUMN URI VARCHAR(2048);
ALTER TABLE IF EXISTS DOWNLOAD_LIST ALTER COLUMN FILE_NAME VARCHAR(1024);
ALTER TABLE IF EXISTS SEEN_LIST ALTER COLUMN LINK VARCHAR(2048);
UPDATE RSS_LIST SET internal = false WHERE internal IS NULL; | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `actions`
-- ----------------------------
DROP TABLE IF EXISTS `actions`;
CREATE TABLE `actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) DEFAULT NULL,
`name` varchar(252) NOT NULL,
`category` int(11) DEFAULT NULL,
`style` int(11) DEFAULT NULL,
`sleepnum` int(11) DEFAULT NULL,
`sql` varchar(252) DEFAULT NULL,
`testevent` int(11) DEFAULT NULL,
`caseid` int(11) DEFAULT NULL,
`requestsurl` varchar(252) DEFAULT NULL,
`requestsparame` varchar(252) DEFAULT NULL,
`requestmethod` varchar(8) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ix_actions_name` (`name`),
KEY `user` (`user`),
KEY `testevent` (`testevent`),
CONSTRAINT `actions_ibfk_1` FOREIGN KEY (`user`) REFERENCES `users` (`id`),
CONSTRAINT `actions_ibfk_2` FOREIGN KEY (`testevent`) REFERENCES `ceshihuanjing` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of actions
-- ----------------------------
-- ----------------------------
-- Table structure for `alembic_version`
-- ----------------------------
DROP TABLE IF EXISTS `alembic_version`;
CREATE TABLE `alembic_version` (
`version_num` varchar(32) NOT NULL,
PRIMARY KEY (`version_num`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of alembic_version
-- ----------------------------
-- ----------------------------
-- Table structure for `caseactions`
-- ----------------------------
DROP TABLE IF EXISTS `caseactions`;
CREATE TABLE `caseactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`case` int(11) DEFAULT NULL,
`action` int(11) DEFAULT NULL,
`actiontype` int(11) DEFAULT NULL,
`filed` varchar(252) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `case` (`case`),
KEY `action` (`action`),
CONSTRAINT `caseactions_ibfk_1` FOREIGN KEY (`case`) REFERENCES `interfacetests` (`id`),
CONSTRAINT `caseactions_ibfk_2` FOREIGN KEY (`action`) REFERENCES `actions` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of caseactions
-- ----------------------------
-- ----------------------------
-- Table structure for `casegenerals`
-- ----------------------------
DROP TABLE IF EXISTS `casegenerals`;
CREATE TABLE `casegenerals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`case` int(11) DEFAULT NULL,
`general` int(11) DEFAULT NULL,
`filed` varchar(252) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `case` (`case`),
KEY `general` (`general`),
CONSTRAINT `casegenerals_ibfk_1` FOREIGN KEY (`case`) REFERENCES `interfacetests` (`id`),
CONSTRAINT `casegenerals_ibfk_2` FOREIGN KEY (`general`) REFERENCES `generalconfigurations` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of casegenerals
-- ----------------------------
-- ----------------------------
-- Table structure for `ceshihuanjing`
-- ----------------------------
DROP TABLE IF EXISTS `ceshihuanjing`;
CREATE TABLE `ceshihuanjing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`make_user` int(11) DEFAULT NULL,
`url` varchar(252) DEFAULT NULL,
`desc` varchar(252) DEFAULT NULL,
`database` varchar(252) DEFAULT NULL,
`dbport` varchar(252) DEFAULT NULL,
`dbhost` varchar(252) DEFAULT NULL,
`databaseuser` varchar(32) DEFAULT NULL,
`databasepassword` varchar(32) DEFAULT NULL,
`project` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `make_user` (`make_user`),
KEY `project` (`project`),
CONSTRAINT `ceshihuanjing_ibfk_1` FOREIGN KEY (`make_user`) REFERENCES `users` (`id`),
CONSTRAINT `ceshihuanjing_ibfk_2` FOREIGN KEY (`project`) REFERENCES `projects` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of ceshihuanjing
-- ----------------------------
INSERT INTO `ceshihuanjing` VALUES ('8', '1', '阿萨德撒的', '萨达萨达', null, null, null, null, null, null, '0');
INSERT INTO `ceshihuanjing` VALUES ('9', '1', 'ss ', 'asdasdasd', 'None', 'ddd', 'ddd', 'None', null, '6', '0');
INSERT INTO `ceshihuanjing` VALUES ('10', '1', 'dasdasdasd ', 'ssssssasa', 'None', 'asdas', 'asdsad', 'None', null, '6', '0');
INSERT INTO `ceshihuanjing` VALUES ('11', '1', '萨达萨达 ', '萨达萨达', '阿萨德撒的', 'ddd', 'dd', '萨达萨达', '萨达萨达', '6', '0');
INSERT INTO `ceshihuanjing` VALUES ('12', '1', 'http:127.0.0.1 ', '本地测试环境', 'testtuling', 'sadsad', 'sadsad', 'root', 'testurl', null, '1');
INSERT INTO `ceshihuanjing` VALUES ('13', '1', 'dasdasdasd', 'dasdasdasd', 'dasdasdasd', 'dasdasdasd', 'dasdasdasd', 'dasdasdasd', 'dasdasdasd', null, '1');
-- ----------------------------
-- Table structure for `emailreports`
-- ----------------------------
DROP TABLE IF EXISTS `emailreports`;
CREATE TABLE `emailreports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_re_user_id` int(11) DEFAULT NULL,
`send_email` varchar(64) DEFAULT NULL,
`send_email_password` varchar(64) DEFAULT NULL,
`stmp_email` varchar(64) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`to_email` varchar(64) DEFAULT NULL,
`default_set` tinyint(1) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `email_re_user_id` (`email_re_user_id`),
CONSTRAINT `emailreports_ibfk_1` FOREIGN KEY (`email_re_user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of emailreports
-- ----------------------------
INSERT INTO `emailreports` VALUES ('3', '1', 'dd@qq.com', 'dwer', null, null, '[\'dsfsdf\']', '1', '0');
INSERT INTO `emailreports` VALUES ('4', '1', 'sdfsdf@qq.tyuty', 'sdfsdf', null, null, '[\'asdasd\']', '0', '1');
INSERT INTO `emailreports` VALUES ('5', '1', 'asdasd@qq.bb', 'sadasdas', null, null, '[\'sadasd\']', '1', '1');
-- ----------------------------
-- Table structure for `generalconfigurations`
-- ----------------------------
DROP TABLE IF EXISTS `generalconfigurations`;
CREATE TABLE `generalconfigurations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) DEFAULT NULL,
`addtime` datetime DEFAULT NULL,
`name` varchar(252) NOT NULL,
`style` int(11) DEFAULT NULL,
`key` varchar(252) DEFAULT NULL,
`token_parame` varchar(252) DEFAULT NULL,
`token_url` varchar(252) DEFAULT NULL,
`token_method` varchar(16) DEFAULT NULL,
`sqlurl` varchar(252) DEFAULT NULL,
`request_url` varchar(252) DEFAULT NULL,
`request_parame` varchar(252) DEFAULT NULL,
`request_method` varchar(252) DEFAULT NULL,
`testevent` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ix_generalconfigurations_name` (`name`),
KEY `user` (`user`),
KEY `testevent` (`testevent`),
CONSTRAINT `generalconfigurations_ibfk_1` FOREIGN KEY (`user`) REFERENCES `users` (`id`),
CONSTRAINT `generalconfigurations_ibfk_2` FOREIGN KEY (`testevent`) REFERENCES `ceshihuanjing` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of generalconfigurations
-- ----------------------------
-- ----------------------------
-- Table structure for `interfaces`
-- ----------------------------
DROP TABLE IF EXISTS `interfaces`;
CREATE TABLE `interfaces` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model_id` int(11) DEFAULT NULL,
`projects_id` int(11) DEFAULT NULL,
`Interface_name` varchar(252) DEFAULT NULL,
`Interface_url` varchar(252) DEFAULT NULL,
`Interface_meth` varchar(252) DEFAULT NULL,
`Interface_headers` varchar(252) DEFAULT NULL,
`Interface_user_id` int(11) DEFAULT NULL,
`interfacetype` varchar(32) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `model_id` (`model_id`),
KEY `projects_id` (`projects_id`),
KEY `Interface_user_id` (`Interface_user_id`),
CONSTRAINT `interfaces_ibfk_1` FOREIGN KEY (`model_id`) REFERENCES `models` (`id`),
CONSTRAINT `interfaces_ibfk_2` FOREIGN KEY (`projects_id`) REFERENCES `projects` (`id`),
CONSTRAINT `interfaces_ibfk_3` FOREIGN KEY (`Interface_user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of interfaces
-- ----------------------------
INSERT INTO `interfaces` VALUES ('1', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('2', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('4', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('5', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('7', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('8', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('10', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('11', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('13', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('14', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('16', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('17', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('19', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('20', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('22', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('23', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('25', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('26', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('28', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('29', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('31', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('32', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('34', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('35', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('37', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('38', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('40', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('41', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('43', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('44', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('46', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('47', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('49', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('50', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('52', '2', '9', '阿萨德撒的', '萨达萨达', '萨达萨达', null, '1', 'http', '0');
INSERT INTO `interfaces` VALUES ('53', '2', null, 'asdasdasdasdasdasd', 'http://www.tuling123.com/openapi/api', 'POST', 'asdfasdfadsf', '1', 'http', '0');
-- ----------------------------
-- Table structure for `interfacetests`
-- ----------------------------
DROP TABLE IF EXISTS `interfacetests`;
CREATE TABLE `interfacetests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model_id` int(11) DEFAULT NULL,
`projects_id` int(11) DEFAULT NULL,
`interface_id` int(11) DEFAULT NULL,
`bian_num` varchar(252) DEFAULT NULL,
`interface_type` varchar(16) DEFAULT NULL,
`Interface_name` varchar(252) DEFAULT NULL,
`Interface_url` varchar(252) DEFAULT NULL,
`Interface_meth` varchar(252) DEFAULT NULL,
`Interface_pase` varchar(252) DEFAULT NULL,
`Interface_assert` varchar(252) DEFAULT NULL,
`Interface_headers` varchar(252) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`getattr_p` varchar(252) DEFAULT NULL,
`Interface_is_tiaoshi` tinyint(1) DEFAULT NULL,
`Interface_tiaoshi_shifou` tinyint(1) DEFAULT NULL,
`Interface_user_id` int(11) DEFAULT NULL,
`saveresult` tinyint(1) DEFAULT NULL,
`is_database` tinyint(1) DEFAULT NULL,
`chaxunshujuku` varchar(252) DEFAULT NULL,
`databaseziduan` varchar(252) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `model_id` (`model_id`),
KEY `projects_id` (`projects_id`),
KEY `interface_id` (`interface_id`),
KEY `pid` (`pid`),
KEY `Interface_user_id` (`Interface_user_id`),
CONSTRAINT `interfacetests_ibfk_1` FOREIGN KEY (`model_id`) REFERENCES `models` (`id`),
CONSTRAINT `interfacetests_ibfk_2` FOREIGN KEY (`projects_id`) REFERENCES `projects` (`id`),
CONSTRAINT `interfacetests_ibfk_3` FOREIGN KEY (`interface_id`) REFERENCES `interfaces` (`id`),
CONSTRAINT `interfacetests_ibfk_4` FOREIGN KEY (`pid`) REFERENCES `interfacetests` (`id`),
CONSTRAINT `interfacetests_ibfk_5` FOREIGN KEY (`Interface_user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of interfacetests
-- ----------------------------
-- ----------------------------
-- Table structure for `mockserver`
-- ----------------------------
DROP TABLE IF EXISTS `mockserver`;
CREATE TABLE `mockserver` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`make_uers` int(11) DEFAULT NULL,
`name` varchar(55) DEFAULT NULL,
`path` varchar(252) DEFAULT NULL,
`methods` varchar(50) DEFAULT NULL,
`headers` varchar(500) DEFAULT NULL,
`description` varchar(50) DEFAULT NULL,
`fanhui` varchar(500) DEFAULT NULL,
`params` varchar(500) DEFAULT NULL,
`rebacktype` varchar(32) DEFAULT NULL,
`update_time` datetime DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`delete` tinyint(1) DEFAULT NULL,
`ischeck` tinyint(1) DEFAULT NULL,
`is_headers` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `make_uers` (`make_uers`),
CONSTRAINT `mockserver_ibfk_1` FOREIGN KEY (`make_uers`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of mockserver
-- ----------------------------
-- ----------------------------
-- Table structure for `models`
-- ----------------------------
DROP TABLE IF EXISTS `models`;
CREATE TABLE `models` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model_name` varchar(256) DEFAULT NULL,
`model_user_id` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `model_user_id` (`model_user_id`),
CONSTRAINT `models_ibfk_1` FOREIGN KEY (`model_user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of models
-- ----------------------------
INSERT INTO `models` VALUES ('1', '添加', '1', '1');
INSERT INTO `models` VALUES ('2', '登录', '1', '1');
INSERT INTO `models` VALUES ('3', '的订单', '1', '0');
INSERT INTO `models` VALUES ('4', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('5', '添加', '1', '1');
INSERT INTO `models` VALUES ('6', '登录', '1', '1');
INSERT INTO `models` VALUES ('7', '的订单', '1', '0');
INSERT INTO `models` VALUES ('8', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('9', '添加', '1', '1');
INSERT INTO `models` VALUES ('10', '登录', '1', '1');
INSERT INTO `models` VALUES ('11', '的订单', '1', '0');
INSERT INTO `models` VALUES ('12', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('13', '添加', '1', '1');
INSERT INTO `models` VALUES ('14', '登录', '1', '1');
INSERT INTO `models` VALUES ('15', '的订单', '1', '0');
INSERT INTO `models` VALUES ('16', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('17', '添加', '1', '1');
INSERT INTO `models` VALUES ('18', '登录', '1', '1');
INSERT INTO `models` VALUES ('19', '的订单', '1', '0');
INSERT INTO `models` VALUES ('20', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('21', '添加', '1', '1');
INSERT INTO `models` VALUES ('22', '登录', '1', '1');
INSERT INTO `models` VALUES ('23', '的订单', '1', '0');
INSERT INTO `models` VALUES ('24', '添加阿萨德撒的', '1', '0');
INSERT INTO `models` VALUES ('25', '添加', '1', '1');
INSERT INTO `models` VALUES ('26', '登录', '1', '1');
INSERT INTO `models` VALUES ('27', '的订单', '1', '0');
INSERT INTO `models` VALUES ('28', '添加阿萨德撒的', '1', '0');
-- ----------------------------
-- Table structure for `parames`
-- ----------------------------
DROP TABLE IF EXISTS `parames`;
CREATE TABLE `parames` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`interface_id` int(11) DEFAULT NULL,
`parameter_type` varchar(64) DEFAULT NULL,
`parameter_name` varchar(64) DEFAULT NULL,
`necessary` tinyint(1) DEFAULT NULL,
`type` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`default` varchar(63) DEFAULT NULL,
`desc` varchar(252) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `interface_id` (`interface_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `parames_ibfk_1` FOREIGN KEY (`interface_id`) REFERENCES `interfaces` (`id`),
CONSTRAINT `parames_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of parames
-- ----------------------------
-- ----------------------------
-- Table structure for `projects`
-- ----------------------------
DROP TABLE IF EXISTS `projects`;
CREATE TABLE `projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_user_id` int(11) DEFAULT NULL,
`project_name` varchar(252) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `project_name` (`project_name`),
KEY `project_user_id` (`project_user_id`),
CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`project_user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of projects
-- ----------------------------
INSERT INTO `projects` VALUES ('1', '1', '昨夜西风凋碧树', '0');
INSERT INTO `projects` VALUES ('2', '1', 'asdasd', '0');
INSERT INTO `projects` VALUES ('3', '1', '啊实打实的萨达萨达', '0');
INSERT INTO `projects` VALUES ('4', '1', 'dasdasdsad', '1');
INSERT INTO `projects` VALUES ('5', '1', 'asdsad', '0');
INSERT INTO `projects` VALUES ('6', '1', 'asdasdasdasd', '1');
INSERT INTO `projects` VALUES ('7', '1', 'sadf ', '0');
INSERT INTO `projects` VALUES ('8', '7', 'dd', '0');
INSERT INTO `projects` VALUES ('9', '7', 'ddss', '1');
INSERT INTO `projects` VALUES ('10', '7', 'ddss1', '1');
INSERT INTO `projects` VALUES ('11', '7', 'ddss122', '1');
INSERT INTO `projects` VALUES ('12', '7', 'sdasd', '1');
INSERT INTO `projects` VALUES ('13', '7', 'sdasddsd', '1');
-- ----------------------------
-- Table structure for `quanxians`
-- ----------------------------
DROP TABLE IF EXISTS `quanxians`;
CREATE TABLE `quanxians` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rose` int(11) DEFAULT NULL,
`project` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `rose` (`rose`),
KEY `project` (`project`),
CONSTRAINT `quanxians_ibfk_1` FOREIGN KEY (`rose`) REFERENCES `roles` (`id`),
CONSTRAINT `quanxians_ibfk_2` FOREIGN KEY (`project`) REFERENCES `projects` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of quanxians
-- ----------------------------
-- ----------------------------
-- Table structure for `quanxianusers`
-- ----------------------------
DROP TABLE IF EXISTS `quanxianusers`;
CREATE TABLE `quanxianusers` (
`user_id` int(11) DEFAULT NULL,
`quanxians_id` int(11) DEFAULT NULL,
KEY `user_id` (`user_id`),
KEY `quanxians_id` (`quanxians_id`),
CONSTRAINT `quanxianusers_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
CONSTRAINT `quanxianusers_ibfk_2` FOREIGN KEY (`quanxians_id`) REFERENCES `quanxians` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of quanxianusers
-- ----------------------------
-- ----------------------------
-- Table structure for `registrations`
-- ----------------------------
DROP TABLE IF EXISTS `registrations`;
CREATE TABLE `registrations` (
`task_id` int(11) DEFAULT NULL,
`interfacetests_id` int(11) DEFAULT NULL,
KEY `task_id` (`task_id`),
KEY `interfacetests_id` (`interfacetests_id`),
CONSTRAINT `registrations_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`),
CONSTRAINT `registrations_ibfk_2` FOREIGN KEY (`interfacetests_id`) REFERENCES `interfacetests` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of registrations
-- ----------------------------
-- ----------------------------
-- Table structure for `roles`
-- ----------------------------
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`default` tinyint(1) DEFAULT NULL,
`permissions` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of roles
-- ----------------------------
INSERT INTO `roles` VALUES ('1', 'User', '0', '7');
INSERT INTO `roles` VALUES ('2', 'Oneadmin', '0', '15');
INSERT INTO `roles` VALUES ('3', 'Administrator', '0', '255');
-- ----------------------------
-- Table structure for `tasks`
-- ----------------------------
DROP TABLE IF EXISTS `tasks`;
CREATE TABLE `tasks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`makeuser` int(11) DEFAULT NULL,
`taskname` varchar(32) DEFAULT NULL,
`taskstart` varchar(252) DEFAULT NULL,
`taskmakedate` datetime DEFAULT NULL,
`taskrepor_to` varchar(252) DEFAULT NULL,
`taskrepor_cao` varchar(252) DEFAULT NULL,
`task_make_email` varchar(252) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`yunxing_status` varchar(16) DEFAULT NULL,
`prject` int(11) DEFAULT NULL,
`testevent` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `makeuser` (`makeuser`),
KEY `prject` (`prject`),
KEY `testevent` (`testevent`),
CONSTRAINT `tasks_ibfk_1` FOREIGN KEY (`makeuser`) REFERENCES `users` (`id`),
CONSTRAINT `tasks_ibfk_2` FOREIGN KEY (`prject`) REFERENCES `projects` (`id`),
CONSTRAINT `tasks_ibfk_3` FOREIGN KEY (`testevent`) REFERENCES `ceshihuanjing` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tasks
-- ----------------------------
-- ----------------------------
-- Table structure for `testcaseresults`
-- ----------------------------
DROP TABLE IF EXISTS `testcaseresults`;
CREATE TABLE `testcaseresults` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`case_id` int(11) DEFAULT NULL,
`result` varchar(252) DEFAULT NULL,
`date` datetime DEFAULT NULL,
`testevir` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `case_id` (`case_id`),
KEY `testevir` (`testevir`),
CONSTRAINT `testcaseresults_ibfk_1` FOREIGN KEY (`case_id`) REFERENCES `interfacetests` (`id`),
CONSTRAINT `testcaseresults_ibfk_2` FOREIGN KEY (`testevir`) REFERENCES `ceshihuanjing` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of testcaseresults
-- ----------------------------
-- ----------------------------
-- Table structure for `tstresults`
-- ----------------------------
DROP TABLE IF EXISTS `tstresults`;
CREATE TABLE `tstresults` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Test_user_id` int(11) DEFAULT NULL,
`test_num` int(11) DEFAULT NULL,
`pass_num` int(11) DEFAULT NULL,
`fail_num` int(11) DEFAULT NULL,
`Exception_num` int(11) DEFAULT NULL,
`can_num` int(11) DEFAULT NULL,
`wei_num` int(11) DEFAULT NULL,
`projects_id` int(11) DEFAULT NULL,
`test_time` datetime DEFAULT NULL,
`hour_time` int(11) DEFAULT NULL,
`test_rep` varchar(252) DEFAULT NULL,
`test_log` varchar(252) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `Test_user_id` (`Test_user_id`),
KEY `projects_id` (`projects_id`),
CONSTRAINT `tstresults_ibfk_1` FOREIGN KEY (`Test_user_id`) REFERENCES `users` (`id`),
CONSTRAINT `tstresults_ibfk_2` FOREIGN KEY (`projects_id`) REFERENCES `projects` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tstresults
-- ----------------------------
-- ----------------------------
-- Table structure for `users`
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(63) DEFAULT NULL,
`password` varchar(252) DEFAULT NULL,
`user_email` varchar(64) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`is_login` tinyint(1) DEFAULT NULL,
`is_sper` tinyint(1) DEFAULT NULL,
`work_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `user_email` (`user_email`),
KEY `work_id` (`work_id`),
CONSTRAINT `users_ibfk_1` FOREIGN KEY (`work_id`) REFERENCES `works` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('1', 'liwanlei', 'pbkdf2:sha256:50000$H2XVXtY6$06878e9c817c7a1dfba6caaa2e58256726f2fd4eafea8b493fddaa6236f74329', '952943386@qq.com', '0', '1', '1', '1');
INSERT INTO `users` VALUES ('2', 'eewrewr', 'pbkdf2:sha256:50000$4i6Pbd9N$037662ab9611088b2b6cded8fcad9ab09e5886ca6ea979817c68df954c398499', '99324432432', '0', null, '0', '1');
INSERT INTO `users` VALUES ('5', 'liwanleil', 'pbkdf2:sha256:50000$0OKoPwym$d41abf01a84d3b973103bd31ca3194633d4d3c04161d5e1d3d48e10d5ef291cc', '32423432', '0', null, '0', '2');
INSERT INTO `users` VALUES ('7', 'liwanlei123', 'pbkdf2:sha256:50000$wmfUrJpv$66d849c3b279ef8fe863ee3c84977f9f4787255110c867ea7a8e0abf12db824b', 'liwanlei', '0', null, '0', '1');
INSERT INTO `users` VALUES ('9', 'liwanlei11', 'pbkdf2:sha256:50000$215EW9H2$3904ebc2814d19d77d5b3410e9fc3ddd6b36be4ae8e65e6a5e6ce0ffcb1e1451', '12121212', '0', null, '0', '1');
INSERT INTO `users` VALUES ('10', 'admin', 'pbkdf2:sha256:50000$FMK2Wp13$d41783225ddc9057a6b78076cde6df2111a52ab83cbfc42238b19fb25e7e622a', 'slitobo@163.com', '1', null, '0', '1');
INSERT INTO `users` VALUES ('11', 'Test', 'pbkdf2:sha256:50000$85nqYzxM$853128989c4ca8854ba3cbc1792074338956c09d828c4e13ccc13c3eecd5970b', 'Test@qq.com', '0', null, '0', '1');
INSERT INTO `users` VALUES ('12', 'liwanlei345', 'pbkdf2:sha256:50000$Gcrd8CAG$16c48e5863596e6f42a764eecd94c6cc90801ce8e2ba25155f41ffb6f1f03823', 'liwanlei@qq.com', '0', null, '0', '1');
INSERT INTO `users` VALUES ('16', 'zhangyan', 'pbkdf2:sha256:50000$vnn1svKe$952ea026f8f2cae3c193254ca08ed11a7053ae294bea7c992f9f3e0b7592a401', '1392364470', '0', null, '0', '1');
INSERT INTO `users` VALUES ('17', 'james', 'pbkdf2:sha256:50000$k1Agosjm$c704984da17747c5d8dc41fab46ca00fc1eadb389c9da342bf5d32acf458150a', '984106718@qq.com', '0', null, '0', '1');
INSERT INTO `users` VALUES ('18', 'Ahre', 'pbkdf2:sha256:50000$GmY74OIM$c2bb446c0a09b27f968f9e81a14b03bb303027274cb2a0d935615be2584669ca', '121983006@qq.com', '0', null, '0', '1');
INSERT INTO `users` VALUES ('19', '1234', 'pbkdf2:sha256:50000$y6zq0qWy$e8766a9ce6ca0ae4c0da8627bd741ea3d0d193bfd4679144997edb67ab456151', '123', '0', null, '0', null);
INSERT INTO `users` VALUES ('20', '111111', 'pbkdf2:sha256:50000$wYgqrQQA$a36ee60eb57d61b7b31f1c30c6338e2dbd0ad7c57e133fccfea6a3298be5b393', '111', '0', null, '0', null);
INSERT INTO `users` VALUES ('21', 'sky216', 'pbkdf2:sha256:50000$e6JMhZi3$4aea5ddeac3937a24b869e88b5e53f78918fb694efe8d7d37d3ca39fb00cc9f6', '3358372183@qq.com', '0', null, '0', null);
INSERT INTO `users` VALUES ('22', 'test123', 'pbkdf2:sha256:50000$6RV2HjgA$4e1a7aec9190d770ba432f83b5472c4c51f1ee54c428f30e7e0a96216fcb87ed', 'test@test.com', '0', null, '0', null);
-- ----------------------------
-- Table structure for `works`
-- ----------------------------
DROP TABLE IF EXISTS `works`;
CREATE TABLE `works` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of works
-- ----------------------------
INSERT INTO `works` VALUES ('3', '测试主管');
INSERT INTO `works` VALUES ('1', '测试工程师');
INSERT INTO `works` VALUES ('4', '测试经理');
INSERT INTO `works` VALUES ('2', '自动化测试工程师');
-- ----------------------------
-- Table structure for `yilai`
-- ----------------------------
DROP TABLE IF EXISTS `yilai`;
CREATE TABLE `yilai` (
`case_id` int(11) DEFAULT NULL,
`cases_id` int(11) DEFAULT NULL,
`attred` varchar(32) DEFAULT NULL,
KEY `case_id` (`case_id`),
KEY `cases_id` (`cases_id`),
CONSTRAINT `yilai_ibfk_1` FOREIGN KEY (`case_id`) REFERENCES `interfacetests` (`id`),
CONSTRAINT `yilai_ibfk_2` FOREIGN KEY (`cases_id`) REFERENCES `interfacetests` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of yilai
-- ---------------------------- | the_stack |
-- 23.01.2017 16:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:27:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000378
;
-- 23.01.2017 16:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:27:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:27:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000389
;
-- 23.01.2017 16:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:28:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000392
;
-- 23.01.2017 16:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000442
;
-- 23.01.2017 16:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:31:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 16:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 16:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:32:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 16:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:32:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 16:33
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:33:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000388
;
-- 23.01.2017 16:33
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-01-23 16:33:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000470
;
-- 23.01.2017 16:34
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-01-23 16:34:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000375
;
-- 23.01.2017 16:34
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-01-23 16:34:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000378
;
-- 23.01.2017 16:34
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-01-23 16:34:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-01-23 16:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-01-23 16:35:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000389
;
-- 23.01.2017 16:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-01-23 16:35:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000442
;
-- 23.01.2017 16:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-01-23 16:36:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 16:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-01-23 16:36:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000401
;
-- 23.01.2017 16:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-01-23 16:36:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 16:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-01-23 16:36:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 16:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-01-23 16:36:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-01-23 16:37:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-01-23 16:37:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000470
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-01-23 16:37:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000392
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-01-23 16:37:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-01-23 16:37:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000388
;
-- 23.01.2017 16:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=95,Updated=TO_TIMESTAMP('2017-01-23 16:37:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000383
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000466
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000436
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000425
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000449
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000378
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000389
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000442
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000401
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000420
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000470
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000427
;
-- 23.01.2017 16:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2017-01-23 16:40:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000388
;
-- 23.01.2017 16:41
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-01-23 16:41:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 16:41
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-01-23 16:41:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000420
;
-- 23.01.2017 16:44
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-01-23 16:44:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000420
;
-- 23.01.2017 16:44
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-01-23 16:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000427
;
-- 23.01.2017 16:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-01-23 16:45:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000470
;
-- 23.01.2017 16:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-01-23 16:45:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000375
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000376
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000377
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000379
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000380
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000381
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000382
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000383
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000384
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000385
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000392
;
-- 23.01.2017 16:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:47:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000386
;
-- 23.01.2017 16:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:48:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000388
;
-- 23.01.2017 16:48
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=999,Updated=TO_TIMESTAMP('2017-01-23 16:48:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000387
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000470
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000427
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000390
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000391
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000393
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000394
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000395
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000397
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000398
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000399
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000402
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000403
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000404
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000405
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000406
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000407
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000408
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000409
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000412
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000413
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000414
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000415
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000416
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000417
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000418
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000419
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000421
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000422
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000423
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000424
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000425
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000426
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000428
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000429
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000430
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000431
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000432
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000433
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000434
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000435
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000436
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000437
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000438
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000439
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000440
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000441
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000444
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000445
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000446
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000447
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000449
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000450
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000451
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000452
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000453
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000454
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000455
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000456
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000457
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000458
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000459
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000460
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000461
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000462
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000463
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000464
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000466
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000467
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000468
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000469
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000471
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000472
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000473
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000387
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000375
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000376
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000377
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000379
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000380
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000381
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000382
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000383
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000384
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000385
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000392
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000386
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000388
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000474
;
-- 23.01.2017 16:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000475
;
-- 23.01.2017 16:50
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-01-23 16:50:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000442
;
-- 23.01.2017 16:51
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-01-23 16:51:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 16:51
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-01-23 16:51:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000401
;
-- 23.01.2017 16:51
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-01-23 16:51:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:52
-- 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,1000027,540053,TO_TIMESTAMP('2017-01-23 16:52:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','quantities',20,TO_TIMESTAMP('2017-01-23 16:52:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 16:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-01-23 16:53:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 16:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-01-23 16:53:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000401
;
-- 23.01.2017 16:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540053, SeqNo=10,Updated=TO_TIMESTAMP('2017-01-23 16:53:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 16:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540053, SeqNo=20,Updated=TO_TIMESTAMP('2017-01-23 16:53:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 16:54
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540053, SeqNo=30,Updated=TO_TIMESTAMP('2017-01-23 16:54:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 16:54
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540053, SeqNo=40,Updated=TO_TIMESTAMP('2017-01-23 16:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 16:54
-- 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,1000028,540054,TO_TIMESTAMP('2017-01-23 16:54:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','dates',10,TO_TIMESTAMP('2017-01-23 16:54:52','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 16:55
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540054, SeqNo=10,Updated=TO_TIMESTAMP('2017-01-23 16:55:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000420
;
-- 23.01.2017 16:55
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540054, SeqNo=20,Updated=TO_TIMESTAMP('2017-01-23 16:55:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 16:55
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540054, SeqNo=30,Updated=TO_TIMESTAMP('2017-01-23 16:55:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 17:06
-- 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,1000027,540055,TO_TIMESTAMP('2017-01-23 17:06:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',30,TO_TIMESTAMP('2017-01-23 17:06:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:08
-- 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-01-23 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 17:08
-- 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-01-23 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 17:08
-- 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-01-23 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 17:08
-- 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-01-23 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 17:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed_SideList='Y', SeqNo_SideList=60,Updated=TO_TIMESTAMP('2017-01-23 17:08:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 17:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Column SET SeqNo=19,Updated=TO_TIMESTAMP('2017-01-23 17:09:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Column_ID=1000027
;
-- 23.01.2017 17:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Column SET SeqNo=10,Updated=TO_TIMESTAMP('2017-01-23 17:10:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Column_ID=1000027
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540055
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000411
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000443
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000410
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000448
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540053
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000420
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000396
;
-- 23.01.2017 17:17
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000465
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540054
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=1000028
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000401
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000400
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000378
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000389
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementField WHERE AD_UI_ElementField_ID=1000021
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementField WHERE AD_UI_ElementField_ID=1000022
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=1000442
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=1000042
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=1000027
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=1000023
;
-- 23.01.2017 17:18
-- 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,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540279,540033,TO_TIMESTAMP('2017-01-23 17:18:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','main',10,TO_TIMESTAMP('2017-01-23 17:18:52','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,540045,540033,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,540046,540033,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,540045,540056,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546905,0,540279,540056,540978,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','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','N','Sektion',10,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,546902,0,540279,540056,540979,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Eindeutige Identifikationsnummer eines Rechnungskandidaten','Y','N','Y','N','N','Rechnungskandidat',20,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,553181,0,540279,540056,540980,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Beschreibt, ob der Kandidat zu einer Einkaufs- oder Verkaufsrechnung verarbeitet wird','The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','Y','Y','N','Verkaufsrechnung',30,10,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555549,0,540279,540056,540981,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Abrechnungsgruppe eff.',40,20,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,551089,0,540279,540056,540982,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Dies ist ein manueller Vorgang','Das Selektionsfeld "Manuell" zeigt an, ob dieser Vorang manuell durchgefALhrt wird.','Y','N','Y','N','N','Manuell',50,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555481,0,540279,540056,540983,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Ist Material-Vorgang',60,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554869,0,540279,540056,540984,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Material-Vorgang-ID',70,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554866,0,540279,540056,540985,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Einzelne Zeile in dem Dokument','Indicates the unique line for a document. It will also control the display order of the lines within a document.','Y','N','Y','N','N','Zeile Nr.',80,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554867,0,540279,540056,540986,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Document type used for invoices generated from this sales document','The Document Type for Invoice indicates the document type that will be used when an invoice is generated from this sales document. This field will display only when the base document type is Sales Order.','Y','N','Y','N','N','Rechnungs-Belegart',90,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548750,0,540279,540056,540987,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Rechnungskand.-Controller',100,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548720,0,540279,540056,540988,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Database Table information','The Database Table provides the information of the table definition','Y','N','Y','N','N','DB-Tabelle',110,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548719,0,540279,540056,540989,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Direct internal record ID','The Record ID is the internal unique identifier of a record. Please note that zooming to the record may not be successful for Orders, Invoices and Shipment/Receipts as sometimes the Sales Order type is not known.','Y','N','Y','N','N','Datensatz-ID',120,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,551170,0,540279,540056,540990,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Beschreibung',130,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548114,0,540279,540056,540991,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Leistung wird nicht unmittelbar in Rechnung gestellt, sondern mit anderen Posten (z.B. Pauschale) verrechnet','Diese Markierung wird vom System gesetzt, wenn ein Rechnungskandidat eine Auftragszeile referenziert, die einem laufenden Pauschalen-Vertrag unterliegt.','Y','N','Y','Y','N','zur Verrechnung',140,30,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,546904,0,540279,540056,540992,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Auftrag','Y','N','Y','Y','N','Auftrag',150,40,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546897,0,540279,540056,540993,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Datum des Auftrags','Bezeichnet das Datum, an dem die Ware bestellt wurde.','Y','N','Y','Y','N','Auftragsdatum',160,50,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546898,0,540279,540056,540994,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Auftragsposition','"Auftragsposition" bezeichnet eine einzelne Position in einem Auftrag.','Y','N','Y','N','N','Auftragsposition',170,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555409,0,540279,540056,540995,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Erste Lieferung oder Wareneingang.','The Material Shipment / Receipt ','Y','N','Y','Y','N','Lieferung/Wareneingang',180,60,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,556919,0,540279,540056,540996,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Zugesagter Termin für diesen Auftrag','Der "Zugesagte Termin" gibt das Datum an, für den (wenn zutreffend) dieser Auftrag zugesagt wurde.','Y','N','Y','Y','N','Zugesagter Termin',190,70,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,555636,0,540279,540056,540997,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'BParter location of first shipment/receipt','Y','N','Y','Y','N','Lieferanschrift',200,80,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555142,0,540279,540056,540998,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Referenz-Nummer des Kunden','The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','Y','Y','N','Referenz',210,90,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,555410,0,540279,540056,540999,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem die abzurechnende Leistung erbracht wurde. In der Regel das Bewegungsdatum der ersten Lieferung bzw des ersten Wareneingangs.','Y','N','Y','Y','N','Lieferdatum',220,100,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,555715,0,540279,540056,541000,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'The partner from C_Order','Y','N','Y','N','N','Auftragspartner',230,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554661,0,540279,540056,541001,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Kostenstelle','Erfassung der zugehörigen Kostenstelle','Y','N','Y','N','N','Kostenstelle',240,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547031,0,540279,540056,541002,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Zusätzliche Kosten','Kosten gibt die Art der zusätzlichen Kosten an (Abwicklung, Fracht, Bankgebühren, ...)','Y','N','Y','N','N','Kosten',250,0,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546906,0,540279,540056,541003,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','Y','N','Produkt',260,110,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555851,0,540279,540056,541004,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100,'Kategorie eines Produktes','Identifiziert die Kategorie zu der ein Produkt gehört. Produktkategorien werden für Preisfindung und Auswahl verwendet.','Y','N','Y','Y','N','Produkt-Kategorie',270,120,0,TO_TIMESTAMP('2017-01-23 17:18:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555849,0,540279,540056,541005,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Art von Produkt','Aus der Produktart ergeben auch sich Vorgaben für die Buchhaltung.','Y','N','Y','N','N','Produktart',280,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548198,0,540279,540056,541006,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Ein Preissystem enthält beliebig viele, Länder-abhängige Preislisten.','Welche Preisliste herangezogen wird, hängt in der Regel von der Lieferaddresse des jeweiligen Gschäftspartners ab.','Y','N','Y','Y','N','Preissystem',290,130,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,556415,0,540279,540056,541007,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet eine einzelne Version der Preisliste','Jede Preisliste kann verschiedene Versionen haben. Die übliche Verwendung ist zur Anzeige eines zeitlichen Gültigkeitsbereiches einer Preisliste. ','Y','N','Y','Y','N','Version Preisliste',300,140,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547555,0,540279,540056,541008,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Die Währung für diesen Eintrag','Bezeichnet die auf Dokumenten oder Berichten verwendete Währung','Y','N','Y','N','N','Währung',310,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,549712,0,540279,540056,541009,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Kursart','Dieses Fenster ermöglicht Ihnen, die verschiedenen Kursarten anzulegen wie z.B. Spot, Firmenrate und/oder Kauf-/Verkaufrate.','Y','N','Y','N','N','Kursart',320,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554662,0,540279,540056,541010,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Steuerart','Steuer bezeichnet die in dieser Dokumentenzeile verwendete Steuerart.','Y','N','Y','N','N','Steuer',330,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,555019,0,540279,540056,541011,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Abweichender Steuersatz','Y','N','Y','Y','N','Steuer abw.',340,150,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555020,0,540279,540056,541012,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Steuer eff.',350,160,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547551,0,540279,540056,541013,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Beauftragte Menge','Die Menge, die bestellt bzw. als zu Berechnen gemeldet wurde. Der Ein Rechungskandidat ist fertig verarbeitet, wenn die bestellte Menge vollständig in Rechnung gestellt wurde','Y','N','Y','Y','N','Beauftragte Menge',360,170,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547552,0,540279,540056,541014,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Die "Gelieferte Menge" bezeichnet die Menge einer Ware, die geliefert wurde','Falls der Rechnungskandidat keine Auftragszeile referenziert, wird als gelieferte Menge automatisch immer die bestellte Menge angenommen.','Y','N','Y','Y','N','Gelieferte Menge',370,180,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,554131,0,540279,540056,541015,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Differenz zwischen bestellter und gelieferter Menge','Y','N','Y','N','N','Über-/Unterlieferung',380,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,546912,0,540279,540056,541016,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'"Rechnungsstellung" definiert, wie oft und in welcher Form ein Geschäftspartner Rechnungen erhält.','Y','N','Y','N','N','Rechnungsstellung',390,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548192,0,540279,540056,541017,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Erlaubt es, eine abweichende Rechnungsstellungsregel vorzugeben.','"Rechnungsstellung" definiert, wie oft und in welcher Form ein Geschäftspartner Rechnungen erhält. Über die abweichende Rechnungsstellung kann ein Rechnungskandidat z.B. vorab schon in Rechnung gestellt werden, obwohl dies aufgrund der Rechnungsstellungsregel des Auftragskopfes noch nicht vorgesehen war.','Y','N','Y','N','N','Rechnungsstellung abw.',400,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,549754,0,540279,540056,541018,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Rechnungsstellung eff.',410,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,549714,0,540279,540056,541019,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Plan für die Rechnungsstellung','"Rechnungsintervall" definiert die Häufigkeit mit der Sammelrechnungen erstellt werden.','Y','N','Y','N','N','Terminplan Rechnung',420,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,549713,0,540279,540056,541020,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Bei Geschätspartnern, deren Rechnungs-Terminplan einen Grenzbetrag hat, zeigt dieses Feld an, ob der Grenzbetrag unterschritten ist.','Y','N','Y','N','N','Status Terminplan',430,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548972,0,540279,540056,541021,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Termin ab dem die Rechnung erstellt werden darf','"Abrechnung ab" beschreibt das Datum an dem der Rechnungskandidat abgerechnet werden kann. Dieses Datum entspricht i.d.R. dem Erstellungsdatum des Rechnungskandidaten, kann aber abweichen wenn beim Geschäftspartner ein Terminplan für Rechnungen hinterlegt wurde.','Y','N','Y','N','N','Abrechnung ab',440,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548973,0,540279,540056,541022,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Überschreibt den regulären Termin ab dem die Rechnung erstellt werden darf','"Abrechnung ab abw." Überschreibt das Feld "Abrechnung ab" und damit das Datum an dem der Rechnungskandidat abgerechnet werden kann. Es dient dazu, bestimmte Rechnungskandidaten vorzeitig abzurechnen. ','Y','N','Y','N','N','Abrechnung ab abw.',450,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,549735,0,540279,540056,541023,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Feld enthält den Wert aus "Abrechnung ab" oder der Überschreibe-Wert aus "Abrechnung ab abw."','Y','N','Y','Y','N','Abrechnung ab eff.',460,190,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547561,0,540279,540056,541024,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Datum auf der Rechnung','"Rechnungsdatum" bezeichnet das auf der Rechnung verwendete Datum.','Y','N','Y','N','N','Rechnungsdatum',470,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555397,0,540279,540056,541025,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Y','N','Y','N','N','Buchungsdatum',480,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554060,0,540279,540056,541026,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Qualitätsabzug %',490,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554061,0,540279,540056,541027,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Qualitätsabzug % abw.',500,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,553212,0,540279,540056,541028,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Qualitätsabzug % Eff.',510,200,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,554062,0,540279,540056,541029,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Mengen-Summe der zugeordneten Lieferzeilen, die mit "im Disput" markiert sind und nicht fakturiert werden sollen.','Y','N','Y','N','N','Minderwertige Menge (WED)',520,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554063,0,540279,540056,541030,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Beleg befindet sich im Disput','The document is in dispute. Use Requests to track details.','Y','N','Y','Y','N','Im Disput',530,210,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,555544,0,540279,540056,541031,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Liefermenge, die nicht fakturiert wird soll. Der Wert weicht von "Minderwertige Menge" ab, wenn ein abweichender "Qualitätsabzug %" Wert gesetzt wurde.','Y','N','Y','N','N','Minderwertige Menge eff.',540,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,553926,0,540279,540056,541032,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Qualitäts-Notiz (WED)',550,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554132,0,540279,540056,541033,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Qualitätsgrund',560,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,552878,0,540279,540056,541034,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Eingegebener Preis - der Preis basierend auf der gewählten Mengeneinheit','Der eingegebene Preis wird basierend auf der Mengenumrechnung in den Effektivpreis umgerechnet','Y','N','Y','Y','N','Preis',570,220,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,552879,0,540279,540056,541035,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Der eingegebene Preis wird basierend auf der Mengenumrechnung in den Effektivpreis umgerechnet','Y','N','Y','Y','N','Preis Abw.',580,230,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555436,0,540279,540056,541036,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Tax is included in the price ','The Tax Included checkbox indicates if the prices include tax. This is also known as the gross price.','Y','N','Y','N','N','Preis inkl. Steuern abw.',590,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,547032,0,540279,540056,541037,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Preisnachlass (d.h. Rabatt auch den Einzelpreis) in Prozent.','Y','N','Y','N','N','Rabatt %',600,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547033,0,540279,540056,541038,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Abschlag in Prozent','"Rabatt %" bezeichnet den angewendeten Abschlag in Prozent.','Y','N','Y','N','N','Rabatt abw. %',610,0,0,TO_TIMESTAMP('2017-01-23 17:18:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547029,0,540279,540056,541039,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Effektiver Preis','Der Einzelpreis oder Effektive Preis bezeichnet den Preis für das Produkt in Ausgangswährung.','Y','N','Y','Y','N','Preis eff.',620,240,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547030,0,540279,540056,541040,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Effektiver Preis','Der Einzelpreis oder Effektive Preis bezeichnet den Preis für das Produkt in Ausgangswährung.','Y','N','Y','N','N','Preis eff. abw.',630,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555411,0,540279,540056,541041,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Preis Eff. Netto',640,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555850,0,540279,540056,541042,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Name Rechnungspartner',650,250,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,556203,0,540279,540056,541043,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Erhält EDI-Belege','Y','N','Y','Y','N','Erhält EDI-Belege',660,260,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,556235,0,540279,540056,541044,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Beleg soll per EDI übermittelt werden',670,270,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,546910,0,540279,540056,541045,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Geschäftspartner für die Rechnungsstellung','Y','N','Y','Y','N','Rechnungspartner',680,280,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,546911,0,540041,541045,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,546909,0,540042,541045,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,547554,0,540279,540056,541046,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Menge, die bereits in Rechnung gestellt wurde','Die Menge gilt als in Rechnung gestellt, wenn es eine Rechnungszeile gibt, die vom jeweiligen Rechnungskandidaten refernziert wird und wenn die zugehörige Rechnung mi Status "Fertiggestellt", "Rückgängig" (storniert) oder "Geschlossen" ist. Sollte die zugehörige Rechnung storiert worden sein, dann wird dem jeweiligen Datensatz außerdem noch die Storno-Rechnungszeile (mit negativem Vorzeichen) zugeordnet.','Y','N','Y','N','N','Berechn. Menge',690,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554200,0,540279,540056,541047,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Maßeinheit','Eine eindeutige (nicht monetäre) Maßeinheit','Y','N','Y','Y','N','Maßeinheit',700,290,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555542,0,540279,540056,541048,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Zu ber. Menge vor Qualitätsabzug',710,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548190,0,540279,540056,541049,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Der Benutzer kann eine abweichende zu berechnede Menge angeben. Diese wird bei der nächsten Aktualisierung des Rechnungskandidaten berücksichtigt.','Für einen Rechnungslauf ist immer die "Zu berechn. Menge" maßgeblich. ggf. muss also nach einer Änderung dieses Wertes die nächste Aktualisierung abgewartet werden.','Y','N','Y','Y','N','Zu ber. Menge abw. nach Qualitätsabzug',720,300,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548191,0,540279,540056,541050,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Angabe über den Teil der abweichenden Menge, der bereits in Rechnung gestellt wurde','Sobald eine vom Benutzer angegebene "Zu berechn. Menge abw." komplett in Rechnung gestellt wurde, wird der Wert dieses Feldes sowie die abweichende Menge vom System gelöscht. Dadurch wird verhindert, die abweichenden Menge mehrfach in Rechnung gestellt wird.','Y','N','Y','N','N','Zu ber. Menge abw. erl.',730,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,546908,0,540279,540056,541051,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Menge, die aktuell bei einem Rechnungslauf in Rechnung gestellt würde','Y','N','Y','Y','N','Zu ber. Menge eff.',740,310,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,554677,0,540279,540056,541052,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Menge, die aktuell bei einem Rechnungslauf in Rechnung gestellt würde, umgerechnet in die Einheit auf die sich der Preis bezieht.','Y','N','Y','Y','N','Zu ber. Menge in Preiseinheit',750,320,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554361,0,540279,540056,541053,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Preiseinheit',760,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555434,0,540279,540056,541054,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Menge TU',770,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554865,0,540279,540056,541055,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Total des Auftrags',780,330,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555407,0,540279,540056,541056,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Auftrag Total ohne Rabatt',790,340,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555477,0,540279,540056,541057,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Nettowert Zeile (Menge * Einzelpreis) ohne Fracht und Gebühren','Indicates the extended line amount based on the quantity and the actual price. Any additional charges or freight are not included. The Amount may or may not include tax. If the price list is inclusive tax, the line amount is the same as the line total.','Y','N','Y','N','N','Netto der Auftragzeile',800,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554872,0,540279,540056,541058,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Freigabe zur Fakturierung',810,350,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555480,0,540279,540056,541059,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Lieferung/ Wareneingang freigeben',820,360,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,547553,0,540279,540056,541060,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet den netto-Geldbetrag, der für den jeweiligen Rechnungskandidaten aktuell bei einem Rechnungslauf in Rechnung gestellt würde.','Y','N','Y','Y','N','Zu berechn. Betrag',830,370,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548199,0,540279,540056,541061,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet den Netto-Geldbetrag, der für diesen Rechnungskandidaten bereits in Rechnung gestellt wurde','Wenn eine Rechnung storniert wird, dann fließt auch der Storno-Betrag mit negativem Vorzeichen in den berechneten Betrag mit ein.','Y','N','Y','N','N','Berechneter Betrag',840,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551679,0,540279,540056,541062,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Abzurechnender Teilbetrag, der zur Zeit nicht in Rechnung gestellt werden kann und bei einer Faktur dieses Datensatzes in einen neuen Rechnungsdispo-Datensatz übernommen werden wird.','Y','N','Y','N','N','Restbetrag',850,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,548259,0,540279,540056,541063,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Definiert Richtlinien zur Aggregation von Datensätzen mit ggf. unterschiedlichen Produkten zu einem einzigen Datensatz','Y','N','Y','N','N','Aggregator',860,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,551671,0,540279,540056,541064,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Kopf-Aggregationsmerkmal',870,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548260,0,540279,540056,541065,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Wird vom System gesetzt und legt fest, welche Kandidaten zu einer Rechnungszeile zusammen gefasst (aggregiert) werden sollen.','Hinweis: Das Feld ist nur Relevant, wenn der Rechnungskandidat nicht als "zu Verrechnen" markiert ist.<p>
Das Aggregierungsmerkmal wird während der RK-Aktualisierung vom System gesetzt.
Unterschiedliche Rechnungskandidaten werden zu einer Rechnungszeile zusammengefasst, wenn folgende Bedingungen erfüllt sind:
<ul>
<li>Die Kandidaten gehören zu selben Rechnung (d.h. Rechnungsempfänger, Währung usw. sind gleich)</li>
<li>Die Kandidaten haben das gleiche Merkmal</li>
</ul>','Y','N','Y','N','N','Zeilen-Aggregationsmerkmal',880,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548261,0,540279,540056,541066,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Optionale Möglichkeit, einzelne Rechnungskandidaten aus einer gemeinsamen Aggregations-Gruppe herauszulösen.','Hinweis: Das Feld ist nur Relevant, wenn der Rechnungskandidat nicht als "zu Verrechnen" markiert ist.<p>
Der Aggregierungs-Zusatz wird bei der Rechnungsgenerierung an das vom System ermittelte Aggregierungsmerkmal angehangen. Somit kann der Bnutzer dafür sorgen, dass ein Rechnungskandidat abweichend von der Systemvorgabe in einer eigenen Rechnungszeile verarbeitet wird, anstatt ihn mit anderen Rechnungskandidaten zusammenzufassen.','Y','N','Y','N','N','Aggregations-Zusatz',890,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551579,0,540279,540056,541067,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Person, die bei einem fachlichen Problem vom System informiert wird.','Y','N','Y','N','N','Betreuer',900,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546901,0,540279,540056,541068,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Wert wird bei einer Benutzer-Änderung am Rechnungskandidaten vom System automatisch auf "Ja" gesetzt.','Beim nächsten Lauf des Aktualisierungsprozesses wird der so markierten Rechnungskandidat aktualisiert und der Wert durch den Prozess danach auf "nein". gesetzt.','Y','N','Y','Y','N','zu Akt.',910,380,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,548749,0,540279,540056,541069,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Ein Fehler ist beim Rechnungslauf aufgetreten','Y','N','Y','Y','N','Fehler bei Abrechnung',920,390,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555869,0,540279,540056,541070,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','in Verarbeitung',930,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555694,0,540279,540056,541071,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Komplett Abgerechnet (System)',940,0,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,555693,0,540279,540056,541072,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Komplett Abgerechnet abw.',950,400,0,TO_TIMESTAMP('2017-01-23 17:18:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,548115,0,540279,540056,541073,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Sagt aus, ob der Rechnungskandidat komplet abgwerechnet wurde','Der Beleg wird vom System als verarbeitet markiert, wenn die bestellte Menge komplett in Rechnung gestellt wurde.<br>
Abgerechnete Datensätze dürfen nicht mehr geändert werden.','Y','N','Y','Y','N','Komplett Abgerechnet eff.',960,410,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,546913,0,540279,540056,541074,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Informationen des Aktualisierungsprozesses','Das Feld wird durch den Aktualisierungprozess zu Beginn geleert und dann ggf. mit Diagnose-Informationen gefüllt, um die Resultate der Aktualisierung nachvollziehbarer zu machen.','Y','N','Y','N','N','Status nach Akt.',970,0,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,549596,0,540279,540056,541075,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Abrechnungsfehler',980,0,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,551903,0,540279,540056,541076,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Kopfbeschreibung',990,0,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,551904,0,540279,540056,541077,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Schlusstext',1000,0,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:18
-- 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,554837,0,540279,540056,541078,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100,'Indicates if this document / line is printed','The Printed checkbox indicates if this document or line will included when printing.','Y','N','Y','N','N','andrucken',1010,0,0,TO_TIMESTAMP('2017-01-23 17:18:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='advanced edit', SeqNo=99,Updated=TO_TIMESTAMP('2017-01-23 17:19:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540056
;
-- 23.01.2017 17:19
-- 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,540045,540057,TO_TIMESTAMP('2017-01-23 17:19:49','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,TO_TIMESTAMP('2017-01-23 17:19:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET UIStyle='',Updated=TO_TIMESTAMP('2017-01-23 17:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540056
;
-- 23.01.2017 17:19
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-01-23 17:19:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540057
;
-- 23.01.2017 17:20
-- 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,555549,0,540279,540057,541079,TO_TIMESTAMP('2017-01-23 17:20:19','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Abrechnungsgruppe',10,0,0,TO_TIMESTAMP('2017-01-23 17:20:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:20
-- 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,546910,0,540279,540057,541080,TO_TIMESTAMP('2017-01-23 17:20:39','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Rechnungspartner',20,0,0,TO_TIMESTAMP('2017-01-23 17:20:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:20
-- 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_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,0,540279,540057,541081,TO_TIMESTAMP('2017-01-23 17:20:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Auftrag',30,0,0,TO_TIMESTAMP('2017-01-23 17:20:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2017-01-23 17:20:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541080
;
-- 23.01.2017 17:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='Y',Updated=TO_TIMESTAMP('2017-01-23 17:20:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541080
;
-- 23.01.2017 17:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_Field_ID=546904,Updated=TO_TIMESTAMP('2017-01-23 17:20:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541081
;
-- 23.01.2017 17:21
-- 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,546906,0,540279,540057,541082,TO_TIMESTAMP('2017-01-23 17:21:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produkt',40,0,0,TO_TIMESTAMP('2017-01-23 17:21:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:21
-- 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,555851,0,540279,540057,541083,TO_TIMESTAMP('2017-01-23 17:21:30','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produkt-Kategorie',50,0,0,TO_TIMESTAMP('2017-01-23 17:21:30','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:21
-- 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,540046,540058,TO_TIMESTAMP('2017-01-23 17:21:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','dates',10,TO_TIMESTAMP('2017-01-23 17:21:52','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:22
-- 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,549735,0,540279,540058,541084,TO_TIMESTAMP('2017-01-23 17:22:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Abrechnung ab eff.',10,0,0,TO_TIMESTAMP('2017-01-23 17:22:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:22
-- 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,555410,0,540279,540058,541085,TO_TIMESTAMP('2017-01-23 17:22:21','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Lieferdatum',20,0,0,TO_TIMESTAMP('2017-01-23 17:22:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:22
-- 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,546901,0,540279,540058,541086,TO_TIMESTAMP('2017-01-23 17:22:34','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','zu Akt.',30,0,0,TO_TIMESTAMP('2017-01-23 17:22:34','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:23
-- 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,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540279,540034,TO_TIMESTAMP('2017-01-23 17:23:16','YYYY-MM-DD HH24:MI:SS'),100,'Y','quanities',20,TO_TIMESTAMP('2017-01-23 17:23:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:23
-- 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,540047,540034,TO_TIMESTAMP('2017-01-23 17:23:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-01-23 17:23:22','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:23
-- 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,540048,540034,TO_TIMESTAMP('2017-01-23 17:23:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-01-23 17:23:25','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:23
-- 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,540047,540059,TO_TIMESTAMP('2017-01-23 17:23:38','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,TO_TIMESTAMP('2017-01-23 17:23:38','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:24
-- 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,547551,0,540279,540059,541087,TO_TIMESTAMP('2017-01-23 17:24:00','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Beauftragte Menge',10,0,0,TO_TIMESTAMP('2017-01-23 17:24:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:24
-- 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,546908,0,540279,540059,541088,TO_TIMESTAMP('2017-01-23 17:24:30','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Zu ber. Menge eff.',20,0,0,TO_TIMESTAMP('2017-01-23 17:24:30','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:24
-- 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,547552,0,540279,540059,541089,TO_TIMESTAMP('2017-01-23 17:24:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Gelieferte Menge',30,0,0,TO_TIMESTAMP('2017-01-23 17:24:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:25
-- 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,547554,0,540279,540059,541090,TO_TIMESTAMP('2017-01-23 17:25:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Berechn. Menge',40,0,0,TO_TIMESTAMP('2017-01-23 17:25:10','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:26
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,546911,0,540043,541080,TO_TIMESTAMP('2017-01-23 17:26:06','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-01-23 17:26:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:26
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,546909,0,540044,541080,TO_TIMESTAMP('2017-01-23 17:26:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-01-23 17:26:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=100,Updated=TO_TIMESTAMP('2017-01-23 17:27:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540056
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540978
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540979
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540980
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540981
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540982
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540983
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540984
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540985
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540986
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540987
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540988
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540989
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540990
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540991
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540992
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540993
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540994
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540995
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540996
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540997
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540998
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540999
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541000
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541001
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541002
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541003
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541004
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541005
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541006
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541007
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541008
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541009
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541010
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541011
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541012
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541013
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541014
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541015
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541016
;
-- 23.01.2017 17:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:27:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541017
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541018
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541019
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541020
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541021
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541022
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541023
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541024
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541025
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541026
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541027
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541028
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541029
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541030
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541031
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541032
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541033
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541034
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541035
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541036
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541037
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541038
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541039
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541040
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541041
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541042
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541043
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541044
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541045
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541046
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541047
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541048
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541049
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541050
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541051
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541052
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541053
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541054
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541055
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541056
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541057
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541058
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541059
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541060
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541061
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541062
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541063
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541064
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541065
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541066
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541067
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541068
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541069
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541070
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541071
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541072
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541073
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541074
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541075
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541076
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541077
;
-- 23.01.2017 17:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-01-23 17:28:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541078
;
-- 23.01.2017 17:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=540981
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementField WHERE AD_UI_ElementField_ID=540042
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementField WHERE AD_UI_ElementField_ID=540041
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541045
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=540992
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541004
;
-- 23.01.2017 17:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541003
;
-- 23.01.2017 17:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541013
;
-- 23.01.2017 17:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541046
;
-- 23.01.2017 17:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541014
;
-- 23.01.2017 17:32
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541051
;
-- 23.01.2017 17:33
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541023
;
-- 23.01.2017 17:33
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=540999
;
-- 23.01.2017 17:33
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=541068
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541056
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540993
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541044
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541043
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541069
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541058
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541030
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541072
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541073
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540997
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541059
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540995
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541047
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541042
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541034
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541035
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541039
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541006
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541028
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540998
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541011
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541012
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541055
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540980
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541007
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541049
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541052
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541060
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540996
;
-- 23.01.2017 17:35
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-01-23 17:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=540991
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541079
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541080
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541081
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541082
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541083
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541087
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541089
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541088
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541090
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541084
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541085
;
-- 23.01.2017 17:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-01-23 17:36:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541086
;
-- 23.01.2017 17:37
-- 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-01-23 17:37:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541080
;
-- 23.01.2017 17:37
-- 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-01-23 17:37:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541082
;
-- 23.01.2017 17:37
-- 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-01-23 17:37:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541087
;
-- 23.01.2017 17:37
-- 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-01-23 17:37:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541084
; | the_stack |
-- +migrate Up
-- +migrate StatementBegin
CREATE OR REPLACE FUNCTION create_index(table_name text, index_name text, column_name text) RETURNS void AS $$
declare
l_count integer;
begin
select count(*)
into l_count
from pg_indexes
where schemaname = 'public'
and tablename = lower(table_name)
and indexname = lower(index_name);
if l_count = 0 then
execute 'create index ' || index_name || ' on "' || table_name || '"(' || column_name || ')';
end if;
end;
$$ LANGUAGE plpgsql;
-- +migrate StatementEnd
-- +migrate StatementBegin
CREATE OR REPLACE FUNCTION create_unique_index(table_name text, index_name text, column_names text) RETURNS void AS $$
declare
l_count integer;
begin
select count(*)
into l_count
from pg_indexes
where schemaname = 'public'
and tablename = lower(table_name)
and indexname = lower(index_name);
if l_count = 0 then
execute 'create unique index ' || index_name || ' on "' || table_name || '"(' || array_to_string(string_to_array(column_names, ',') , ',') || ')';
end if;
end;
$$ LANGUAGE plpgsql;
-- +migrate StatementEnd
-- +migrate StatementBegin
CREATE OR REPLACE FUNCTION create_foreign_key(fk_name text, table_name_child text, table_name_parent text, column_name_child text, column_name_parent text) RETURNS void AS $$
declare
l_count integer;
begin
select count(*)
into l_count
from information_schema.table_constraints as tc
where constraint_type = 'FOREIGN KEY'
and tc.table_name = lower(table_name_child)
and tc.constraint_name = lower(fk_name);
if l_count = 0 then
execute 'alter table "' || table_name_child || '" ADD CONSTRAINT ' || fk_name || ' FOREIGN KEY(' || column_name_child || ') REFERENCES "' || table_name_parent || '"(' || column_name_parent || ')';
end if;
end;
$$ LANGUAGE plpgsql;
-- +migrate StatementEnd
CREATE TABLE IF NOT EXISTS "action" (id BIGSERIAL PRIMARY KEY, name TEXT, type TEXT, description TEXT, enabled BOOLEAN, public BOOLEAN, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "action_requirement" (id BIGSERIAL PRIMARY KEY, action_id BIGINT, name TEXT, type TEXT, value TEXT);
CREATE TABLE IF NOT EXISTS "action_edge" (id BIGSERIAL PRIMARY KEY, parent_id BIGINT, child_id BIGINT, exec_order INT, final boolean not null default false, enabled boolean not null default true);
CREATE TABLE IF NOT EXISTS "action_edge_parameter" (id BIGSERIAL PRIMARY KEY, action_edge_id BIGINT, name TEXT, type TEXT, value TEXT, description TEXT);
CREATE TABLE IF NOT EXISTS "action_parameter" (id BIGSERIAL PRIMARY KEY, action_id BIGINT, name TEXT, type TEXT, value TEXT, description TEXT, worker_model_name TEXT);
CREATE TABLE IF NOT EXISTS "action_build" (id BIGSERIAL PRIMARY KEY, pipeline_action_id INT, args TEXT, status TEXT, pipeline_build_id INT, queued TIMESTAMP WITH TIME ZONE, start TIMESTAMP WITH TIME ZONE, done TIMESTAMP WITH TIME ZONE, worker_model_name TEXT);
CREATE TABLE IF NOT EXISTS "action_audit" (action_id BIGINT, user_id BIGINT, change TEXT, versionned TIMESTAMP WITH TIME ZONE, action_json JSONB);
CREATE TABLE IF NOT EXISTS "artifact" (id BIGSERIAL PRIMARY KEY, name TEXT, tag TEXT, pipeline_id INT, application_id INT, environment_id INT, build_number INT, download_hash TEXT, size BIGINT, perm INT, md5sum TEXT, object_path TEXT, created TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "activity" (day DATE, project_id BIGINT, application_id BIGINT, build BIGINT, unit_test BIGINT, testing BIGINT, deployment BIGINT, PRIMARY KEY(day, project_id, application_id));
CREATE TABLE IF NOT EXISTS "application" (id BIGSERIAL PRIMARY KEY, name TEXT, project_id INT, description TEXT, repo_fullname TEXT, repositories_manager_id BIGINT, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "application_group" (application_id INT, group_id INT, role INT, PRIMARY KEY(group_id, application_id));
CREATE TABLE IF NOT EXISTS "application_pipeline" (id BIGSERIAL PRIMARY KEY, application_id INT, pipeline_id INT, args TEXT, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "application_variable" (id BIGSERIAL, application_id INT, var_name TEXT, var_value TEXT, cipher_value BYTEA, var_type TEXT,PRIMARY KEY(application_id, var_name) );
CREATE TABLE IF NOT EXISTS "application_variable_audit" (id BIGSERIAL PRIMARY KEY, application_id BIGINT, data TEXT, author TEXT, versionned TIMESTAMP WITH TIME ZONE);
CREATE TABLE IF NOT EXISTS "application_pipeline_notif" (application_pipeline_id BIGINT, environment_id BIGINT, settings JSONB);
CREATE TABLE IF NOT EXISTS "build_log" (id BIGSERIAL PRIMARY KEY, action_build_id INT, "timestamp" TIMESTAMP WITH TIME ZONE, step TEXT, value TEXT);
CREATE TABLE IF NOT EXISTS "environment" (id BIGSERIAL PRIMARY KEY, name TEXT, project_id INT, created TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "environment_variable" (id BIGSERIAL, environment_id INT, name TEXT, value TEXT, cipher_value BYTEA, type TEXT,description TEXT, PRIMARY KEY(environment_id, name) );
CREATE TABLE IF NOT EXISTS "environment_variable_audit" (id BIGSERIAL PRIMARY KEY, environment_id BIGINT, versionned TIMESTAMP WITH TIME ZONE, data TEXT, author TEXT);
CREATE TABLE IF NOT EXISTS "environment_group" (id BIGSERIAL, environment_id INT, group_id INT, role INT, PRIMARY KEY(group_id, environment_id));
CREATE TABLE IF NOT EXISTS "group" (id BIGSERIAL PRIMARY KEY, name TEXT);
CREATE TABLE IF NOT EXISTS "group_user" (id BIGSERIAL, group_id INT, user_id INT, group_admin BOOL, PRIMARY KEY(group_id, user_id));
CREATE TABLE IF NOT EXISTS "hatchery" (id BIGSERIAL PRIMARY KEY, name TEXT, last_beat TIMESTAMP WITH TIME ZONE, uid TEXT, group_id INT, status TEXT);
CREATE TABLE IF NOT EXISTS "hatchery_model" (hatchery_id BIGINT, worker_model_id BIGINT, PRIMARY KEY(hatchery_id, worker_model_id));
CREATE TABLE IF NOT EXISTS "hook" (id BIGSERIAL PRIMARY KEY, pipeline_id BIGINT, application_id INT, kind TEXT, host TEXT, project TEXT, repository TEXT, uid TEXT, enabled BOOL);
CREATE TABLE IF NOT EXISTS "pipeline" (id BIGSERIAL PRIMARY KEY, name TEXT, project_id INT, type TEXT, created TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "pipeline_action" (id BIGSERIAL PRIMARY KEY, pipeline_stage_id INT, action_id INT, args TEXT, enabled BOOLEAN, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "pipeline_build" (id BIGSERIAL PRIMARY KEY, environment_id INT, application_id INT, pipeline_id INT, build_number INT, version BIGINT, status TEXT, args TEXT, start TIMESTAMP WITH TIME ZONE, done TIMESTAMP WITH TIME ZONE, manual_trigger BOOLEAN, triggered_by BIGINT, parent_pipeline_build_id BIGINT, vcs_changes_branch TEXT, vcs_changes_hash TEXT, vcs_changes_author TEXT, scheduled_trigger BOOLEAN default FALSE);
CREATE TABLE IF NOT EXISTS "pipeline_build_test" (pipeline_build_id BIGINT PRIMARY KEY, tests TEXT);
CREATE TABLE IF NOT EXISTS "pipeline_group" (id BIGSERIAL, pipeline_id INT, group_id INT, role INT, PRIMARY KEY(group_id, pipeline_id));
CREATE TABLE IF NOT EXISTS "pipeline_history" (pipeline_build_id BIGINT, pipeline_id INT, application_id INT, environment_id INT, build_number INT, version BIGINT, status TEXT, start TIMESTAMP WITH TIME ZONE, done TIMESTAMP WITH TIME ZONE, data json, manual_trigger BOOLEAN, triggered_by BIGINT, parent_pipeline_build_id BIGINT, vcs_changes_branch TEXT, vcs_changes_hash TEXT, vcs_changes_author TEXT, scheduled_trigger BOOLEAN default FALSE, PRIMARY KEY(pipeline_id, application_id, build_number, environment_id));
CREATE TABLE IF NOT EXISTS "pipeline_stage" (id BIGSERIAL PRIMARY KEY, pipeline_id INT, name TEXT, build_order INT, enabled BOOLEAN, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "pipeline_stage_prerequisite" (id BIGSERIAL PRIMARY KEY, pipeline_stage_id BIGINT, parameter TEXT, expected_value TEXT);
CREATE TABLE IF NOT EXISTS "pipeline_parameter" (id BIGSERIAL, pipeline_id INT, name TEXT, value TEXT, type TEXT,description TEXT, PRIMARY KEY(pipeline_id, name));
CREATE TABLE IF NOT EXISTS "pipeline_scheduler" (id BIGSERIAL PRIMARY KEY, application_id BIGINT NOT NULL, pipeline_id BIGINT NOT NULL, environment_id BIGINT NOT NULL, args JSONB, crontab TEXT NOT NULL, disable BOOLEAN DEFAULT FALSE);
CREATE TABLE IF NOT EXISTS "pipeline_scheduler_execution" (id BIGSERIAL PRIMARY KEY, pipeline_scheduler_id BIGINT NOT NULL, execution_planned_date TIMESTAMP WITH TIME ZONE, execution_date TIMESTAMP WITH TIME ZONE, executed BOOLEAN NOT NULL DEFAULT FALSE, pipeline_build_version BIGINT);
CREATE TABLE IF NOT EXISTS "pipeline_trigger" (id BIGSERIAL PRIMARY KEY, src_application_id INT, src_pipeline_id INT, src_environment_id INT, dest_application_id INT, dest_pipeline_id INT, dest_environment_id INT, manual BOOL, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "pipeline_trigger_parameter" (id BIGSERIAL PRIMARY KEY, pipeline_trigger_id BIGINT, name TEXT, type TEXT, value TEXT, description TEXT);
CREATE TABLE IF NOT EXISTS "pipeline_trigger_prerequisite" (id BIGSERIAL PRIMARY KEY, pipeline_trigger_id BIGINT, parameter TEXT, expected_value TEXT);
CREATE TABLE IF NOT EXISTS "plugin" (id BIGSERIAL PRIMARY KEY, name TEXT, size BIGINT, perm INT, md5sum TEXT, object_path TEXT);
CREATE TABLE IF NOT EXISTS "poller" (application_id BIGINT, pipeline_id BIGINT, enabled BOOLEAN, name TEXT, date_creation TIMESTAMP WITH TIME ZONE, PRIMARY KEY(application_id, pipeline_id));
CREATE TABLE IF NOT EXISTS "poller_execution" (id BIGSERIAL PRIMARY KEY, application_id BIGINT, pipeline_id BIGINT, execution_date TIMESTAMP WITH TIME ZONE, status TEXT, data JSONB);
CREATE TABLE IF NOT EXISTS "project" (id BIGSERIAL PRIMARY KEY, projectKey TEXT , name TEXT, created TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP, last_modified TIMESTAMP WITH TIME ZONE DEFAULT LOCALTIMESTAMP);
CREATE TABLE IF NOT EXISTS "project_group" (id BIGSERIAL, project_id INT, group_id INT, role INT,PRIMARY KEY(group_id, project_id));
CREATE TABLE IF NOT EXISTS "project_variable" (id BIGSERIAL, project_id INT, var_name TEXT, var_value TEXT, cipher_value BYTEA, var_type TEXT,PRIMARY KEY(project_id, var_name));
CREATE TABLE IF NOT EXISTS "project_variable_audit" (id BIGSERIAL PRIMARY KEY, project_id BIGINT, versionned TIMESTAMP WITH TIME ZONE, data TEXT, author TEXT);
CREATE TABLE IF NOT EXISTS "received_hook" (id BIGSERIAL PRIMARY KEY, link TEXT, data TEXT);
CREATE TABLE IF NOT EXISTS "repositories_manager" (id BIGSERIAL PRIMARY KEY , type TEXT, name TEXT UNIQUE, url TEXT UNIQUE, data JSONB );
CREATE TABLE IF NOT EXISTS "repositories_manager_project" ( id_repositories_manager BIGINT NOT NULL, id_project BIGINT NOT NULL, data JSONB, PRIMARY KEY(id_repositories_manager, id_project));
CREATE TABLE IF NOT EXISTS "stats" (day DATE PRIMARY KEY, build BIGINT, unit_test BIGINT, testing BIGINT, deployment BIGINT, max_building_worker BIGINT, max_building_pipeline BIGINT);
CREATE TABLE IF NOT EXISTS "system_log" (id BIGSERIAL PRIMARY KEY, logged TIMESTAMP WITH TIME ZONE, level TEXT, log TEXT);
CREATE TABLE IF NOT EXISTS "template" (id BIGSERIAL PRIMARY KEY, name TEXT, type TEXT,author TEXT, description TEXT, identifier TEXT, size INTEGER, perm INTEGER, md5sum TEXT, object_path TEXT);
CREATE TABLE IF NOT EXISTS "template_params" (template_id BIGINT NOT NULL, params JSONB);
CREATE TABLE IF NOT EXISTS "template_action" (template_id BIGINT NOT NULL, action_id BIGINT NOT NULL);
CREATE TABLE IF NOT EXISTS "token" (group_id INT, token TEXT, expiration INT, created TIMESTAMP WITH TIME ZONE);
CREATE TABLE IF NOT EXISTS "user" (id BIGSERIAL PRIMARY KEY, username TEXT, admin BOOL, data TEXT, auth TEXT, created TIMESTAMP WITH TIME ZONE, origin TEXT);
CREATE TABLE IF NOT EXISTS "user_key" (user_id INT, user_key TEXT, expiry INT DEFAULT 0);
CREATE TABLE IF NOT EXISTS "user_notification" (id BIGSERIAL PRIMARY KEY, type TEXT, content JSONB, status TEXT, creation_date INT);
CREATE TABLE IF NOT EXISTS "warning" (id BIGSERIAL PRIMARY KEY, project_id BIGINT, app_id BIGINT, pip_id BIGINT, env_id BIGINT, action_id BIGINT, warning_id BIGINT, message_param JSONB);
CREATE TABLE IF NOT EXISTS "worker" (id TEXT PRIMARY KEY, name TEXT, last_beat TIMESTAMP WITH TIME ZONE, owner_id INT, group_id INT, model INT, status TEXT, action_build_id BIGINT, hatchery_id BIGINT DEFAULT 0);
CREATE TABLE IF NOT EXISTS "worker_capability" (worker_model_id INT, type TEXT, name TEXT, argument TEXT);
CREATE TABLE IF NOT EXISTS "worker_model" (id BIGSERIAL PRIMARY KEY, type TEXT, name TEXT, image TEXT, created_by JSONB, GROUP_ID BIGINT, OWNER_ID BIGINT);
-- ACTION REQUIREMENT
select create_index('action_requirement', 'IDX_ACTION_REQUIREMENT_ACTION_ID', 'action_id');
-- ACTION_EDGE
select create_index('action_edge', 'IDX_ACTION_EDGE_PARENT_ID', 'parent_id');
select create_index('action_edge', 'IDX_ACTION_EDGE_CHILD_ID', 'child_id');
-- ACTION EDGE PARAMETER
select create_index('action_edge_parameter', 'IDX_ACTION_EDGE_PARAMETER_ACTION_EDGE_ID', 'action_edge_id');
-- ACTION PARAMETER
select create_unique_index('action_parameter', 'IDX_ACTION_PARAMETER_ACTION_ID', 'action_id,name');
-- PIPELINE BUILD
select create_index('pipeline_build', 'IDX_PIPELINE_BUILD_UNIQUE_BUILD_NUMBER', 'build_number,pipeline_id,application_id,environment_id');
-- ACTION BUILD
select create_index('action_build', 'IDX_ACTION_BUILD_PIPELINE_BUILD_ID', 'pipeline_build_id');
select create_index('action_build', 'IDX_ACTION_BUILD_PIPELINE_ACTION_ID', 'pipeline_action_id');
select create_unique_index('action_build', 'IDX_ACTION_BUILD_PIPELINE_ACTION_ID_BUILD_ID', 'pipeline_build_id,pipeline_action_id');
-- ARTIFACT
select create_index('artifact', 'IDX_ARTIFACT_PIPELINE_ID', 'pipeline_id');
select create_index('artifact', 'IDX_ARTIFACT_APPLICATION_ID', 'application_id');
select create_index('artifact','IDX_ARTIFACT_ENVIRONMENT', 'environment_id');
-- APPLICATION
select create_unique_index('application', 'IDX_APPLICATION_PROJECT_ID_NAME', 'project_id,name');
-- APPLICATION PIPELINE
select create_unique_index('application_pipeline','IDX_APPLICATION_PIPELINE_APPLICATION', 'application_id,pipeline_id');
-- BUILD_LOG
select create_index('build_log', 'IDX_ARTIFACT_ACTION_BUILD_ID', 'action_build_id');
-- ENVIRONMENT
select create_unique_index('environment','IDX_ENVIRONMENT', 'name,project_id');
-- ENVIRONMENT_GROUP
select create_unique_index('environment_group','IDX_ENVIRONMENT_GROUP_UNIQUE', 'group_id,environment_id');
select create_index('environment_group','IDX_ENVIRONMENT_GROUP_GROUP', 'group_id');
select create_index('environment_group','IDX_ENVIRONMENT_GROUP_ENV', 'environment_id');
-- ENVIRONMENT_VARIABLE
select create_unique_index('environment_variable','IDX_ENVIRONMENT_VARIABLE_ID_NAME', 'environment_id,name');
-- GROUP
select create_unique_index('group', 'IDX_GROUP_NAME', 'name');
-- HOOK
select create_index('hook','IDX_HOOK_PIPELINE_ID','pipeline_id');
-- PIPELINE
select create_unique_index('pipeline','IDX_PIPELINE_NAME','name,project_id');
select create_index('pipeline','IDX_PIPELINE_PROJECT_ID','project_id');
-- PIPELINE_ACTION
select create_index('pipeline_action','IDX_PIPELINE_ACTION_STAGE_ID','pipeline_stage_id');
select create_index('pipeline_action','IDX_PIPELINE_ACTION_ACTION_ID','action_id');
-- PIPELINE BUILD
select create_index('pipeline_build','IDX_PIPELINE_BUILD_PIPELINE_ID','pipeline_id');
select create_index('pipeline_build','IDX_PIPELINE_BUILD_NUMBER','build_number');
select create_index('pipeline_build','IDX_PIPELINE_BUILD_APPLICATION_ID','application_id');
select create_index('pipeline_build','IDX_PIPELINE_BUILD_ENVIRONMENT_ID','environment_id');
-- PIPELINE PARAMETER
select create_unique_index('pipeline_parameter','IDX_PIPELINE_PARAMETER_NAME','pipeline_id,name');
-- PIPELINE HISTORY
select create_index('pipeline_history', 'IDX_PIPELINE_HISTORY', 'build_number');
select create_index('pipeline_history','IDX_PIPELINE_HISTORY_ENVIRONMENT', 'environment_id');
-- PIPELINE Stage
select create_index('pipeline_stage','IDX_PIPELINE_STAGE_BUILD_ORDER','build_order');
select create_index('pipeline_stage','IDX_PIPELINE_STAGE_PIPELINE_ID','pipeline_id');
-- PIPELINE TRIGGER
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_SRC_APPLICATION', 'src_application_id');
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_DEST_APPLICATION', 'dest_application_id');
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_SRC_PIPELINE', 'src_pipeline_id');
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_DEST_PIPELINE', 'dest_pipeline_id');
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_SRC_ENVIRONMENT', 'src_environment_id');
select create_index('pipeline_trigger','IDX_PIPELINE_TRIGGER_DEST_ENVIRONMENT', 'dest_environment_id');
-- PLUGIN
select create_unique_index('plugin','IDX_PLUGIN_NAME', 'name');
-- PROJECT
select create_unique_index('project','IDX_PROJECT_KEY','projectKey');
-- SYSTEM_LOG
select create_index('system_log','IDX_SYS_LOG_LOGGED','logged');
-- USER
select create_unique_index('user','IDX_USER_USERNAME','username');
-- USER KEY
select create_index('user_key','IDX_USER_KEY_USER_KEY','user_key');
-- WORKER
select create_index('worker','IDX_WORKER_ID','id');
-- WORKER_CAPABILITY
select create_unique_index('worker_capability','IDX_WORKER_CAPABILITY_NAME','worker_model_id,name');
select create_index('worker_capability','IDX_WORKER_CAPABILITY_MODEL_ID','worker_model_id');
-- WORKER_MODEL
select create_unique_index('worker_model','IDX_WORKER_MODEL_NAME','name');
select create_index('worker_model','IDX_WORKER_MODEL_GROUP_ID','group_id');
-- REPOSITORIES_MANAGER_PROJECT
select create_unique_index('repositories_manager_project', 'IDX_REPOSITORIES_MANAGER_PROJECT_ID' ,'id_repositories_manager, id_project');
-- TEMPLATES
SELECT create_unique_index('template', 'IDX_TEMPLATE_IDENTIFIER', 'identifier');
SELECT create_unique_index('template', 'IDX_TEMPLATE_NAME', 'name');
-- ACTION BUILD
select create_foreign_key('FK_ACTION_BUILD_PIPELINE_ACTION', 'action_build', 'pipeline_action', 'pipeline_action_id', 'id');
select create_foreign_key('FK_ACTION_BUILD_PIPELINE_BUILD', 'action_build', 'pipeline_build', 'pipeline_build_id', 'id');
-- ACTION REQUIREMENT
select create_foreign_key('FK_ACTION_REQUIREMENT_ACTION', 'action_requirement', 'action', 'action_id', 'id');
-- ACTION EDGE
select create_foreign_key('FK_ACTION_EDGE_PARENT_ACTION', 'action_edge', 'action', 'parent_id', 'id');
select create_foreign_key('FK_ACTION_EDGE_CHILD_ACTION', 'action_edge', 'action', 'child_id', 'id');
-- ACTION EDGE PARAMETER
select create_foreign_key('FK_ACTION_EDGE_PARAMETER_ACTION_EDGE', 'action_edge_parameter', 'action_edge', 'action_edge_id', 'id');
-- ACTION PARAMETER
select create_foreign_key('FK_ACTION_PARAMETER_ACTION', 'action_parameter', 'action', 'action_id', 'id');
-- ARTIFACT
select create_foreign_key('FK_ARTIFACT_PIPELINE_BUILD', 'artifact', 'pipeline', 'pipeline_id', 'id');
select create_foreign_key('FK_ARTIFACT_APPLICATION', 'artifact', 'application', 'application_id', 'id');
select create_foreign_key('FK_ARTIFACT_ENVIRONMENT', 'artifact', 'environment', 'environment_id', 'id');
-- APPLICATION
select create_foreign_key('FK_APPLICATION_PROJECT', 'application', 'project', 'project_id', 'id');
select create_foreign_key('FK_APPLICATION_REPOSITORIES_MANAGER', 'application', 'repositories_manager', 'repositories_manager_id', 'id');
-- APPLICATION GROUP
select create_foreign_key('FK_APPLICATION_GROUP_APPLICATION', 'application_group', 'application', 'application_id', 'id');
select create_foreign_key('FK_APPLICATION_GROUP_GROUP', 'application_group', 'group', 'group_id', 'id');
-- APPLICATION PIPELINE
select create_foreign_key('FK_APPLICATION_PIPELINE_APPLICATION', 'application_pipeline', 'application', 'application_id', 'id');
select create_foreign_key('FK_APPLICATION_PIPELINE_PIPELINE', 'application_pipeline', 'pipeline', 'pipeline_id', 'id');
-- APPLICATION_VARIABLE
select create_foreign_key('FK_APPLICATION_VARIABLE_APPLICATION', 'application_variable', 'application', 'application_id', 'id');
-- APPLICATION PIPELINE NOTIF
SELECT create_foreign_key('FK_APPLICATION_PIPELINE_NOTIF_APPLICATION_PIPELINE', 'application_pipeline_notif', 'application_pipeline', 'application_pipeline_id', 'id');
SELECT create_foreign_key('FK_APPLICATION_PIPELINE_NOTIF_ENVIRONMENT', 'application_pipeline_notif', 'environment', 'environment_id', 'id');
-- BUILD_LOG
select create_foreign_key('FK_BUILD_LOG_ACTION_BUILD', 'build_log', 'action_build', 'action_build_id', 'id');
-- ENVIRONMENT
select create_foreign_key('FK_ENVIRONMENT_PROJECT', 'environment', 'project', 'project_id', 'id');
-- ENVIRONMENT_GROUP
select create_foreign_key('FK_ENVIRONMENT_GROUP_ENV', 'environment_group', 'environment', 'environment_id', 'id');
select create_foreign_key('FK_ENVIRONMENT_GROUP_GROUP', 'environment_group', 'group', 'group_id', 'id');
-- ENVIRONMENT_VARIABLE
select create_foreign_key('FK_ENVIRONMENT_VARIABLE_ENV', 'environment_variable', 'environment', 'environment_id', 'id');
-- GROUP USER
select create_foreign_key('FK_GROUP_USER_GROUP', 'group_user', 'group', 'group_id', 'id');
select create_foreign_key('FK_GROUP_USER_USER', 'group_user', 'user', 'user_id', 'id');
-- HOOK
select create_foreign_key('FK_HOOK_PIPELINE', 'hook', 'pipeline', 'pipeline_id', 'id');
select create_foreign_key('FK_HOOK_APPLICATION', 'hook', 'application', 'application_id', 'id');
-- PIPELINE
select create_foreign_key('FK_PIPELINE_PROJECT', 'pipeline', 'project', 'project_id', 'id');
-- PIPELINE ACTION
select create_foreign_key('FK_PIPELINE_ACTION_ACTION', 'pipeline_action', 'action', 'action_id', 'id');
select create_foreign_key('FK_PIPELINE_ACTION_PIPELINE_STAGE', 'pipeline_action', 'pipeline_stage', 'pipeline_stage_id', 'id');
-- PIPELINE BUILD
select create_foreign_key('FK_PIPELINE_BUILD_PIPELINE', 'pipeline_build', 'pipeline', 'pipeline_id', 'id');
select create_foreign_key('FK_PIPELINE_BUILD_APPLICATION', 'pipeline_build', 'application', 'application_id', 'id');
select create_foreign_key('FK_PIPELINE_BUILD_ENVIRONMENT', 'pipeline_build', 'environment', 'environment_id', 'id');
-- PIPELINE GROUP
select create_foreign_key('FK_PIPELINE_GROUP_PIPELINE', 'pipeline_group', 'pipeline', 'pipeline_id', 'id');
select create_foreign_key('FK_PIPELINE_GROUP', 'pipeline_group', 'group', 'group_id', 'id');
-- PIPELINE HISTORY
select create_foreign_key('FK_PIPELINE_HISTORY_PIPELINE', 'pipeline_history', 'pipeline', 'pipeline_id', 'id');
select create_foreign_key('FK_PIPELINE_HISTORY_ENVIRONMENT', 'pipeline_history', 'environment', 'environment_id', 'id');
-- PIPELINE STAGE
select create_foreign_key('FK_PIPELINE_STAGE_PIPELINE', 'pipeline_stage', 'pipeline', 'pipeline_id', 'id');
-- PIPELINE STAGE PREREQUISITE
select create_foreign_key('FK_PIPELINE_STAGE_PREREQUISITE_PIPELINE_STAGE', 'pipeline_stage_prerequisite', 'pipeline_stage', 'pipeline_stage_id', 'id');
-- PIPELINE PARAMETER
select create_foreign_key('FK_PIPELINE_PARAMETER_PIPELINE', 'pipeline_parameter', 'pipeline', 'pipeline_id', 'id');
-- PIPELINE SCHEDULER
SELECT create_foreign_key('FK_PIPELINE_SCHEDULER_APPLICATION', 'pipeline_scheduler', 'application', 'application_id', 'id');
SELECT create_foreign_key('FK_PIPELINE_SCHEDULER_PIPELINE', 'pipeline_scheduler', 'pipeline', 'pipeline_id', 'id');
SELECT create_foreign_key('FK_PIPELINE_SCHEDULER_ENVIRONMENT', 'pipeline_scheduler', 'environment', 'environment_id', 'id');
SELECT create_foreign_key('FK_PIPELINE_SCHEDULER_EXECUTION_PIPELINE_SCHEDULER', 'pipeline_scheduler_execution', 'pipeline_scheduler', 'pipeline_scheduler_id', 'id');
-- PIPELINE TRIGGER
select create_foreign_key('FK_PIPELINE_TRIGGER_SRC_APPLICATION', 'pipeline_trigger', 'application', 'src_application_id', 'id');
select create_foreign_key('FK_PIPELINE_TRIGGER_DEST_APPLICATION', 'pipeline_trigger', 'application', 'dest_application_id', 'id');
select create_foreign_key('FK_PIPELINE_TRIGGER_SRC_PIPELINE', 'pipeline_trigger', 'pipeline', 'src_pipeline_id', 'id');
select create_foreign_key('FK_PIPELINE_TRIGGER_DEST_PIPELINE', 'pipeline_trigger', 'pipeline', 'dest_pipeline_id', 'id');
select create_foreign_key('FK_PIPELINE_TRIGGER_SRC_ENVIRONMENT', 'pipeline_trigger', 'environment', 'src_environment_id', 'id');
select create_foreign_key('FK_PIPELINE_TRIGGER_DEST_ENVIRONMENT', 'pipeline_trigger', 'environment', 'dest_environment_id', 'id');
-- PIPELINE TRIGGER PARAMETER
select create_foreign_key('FK_PIPELINE_TRIGGER_PARAMETER_PIPELINE', 'pipeline_trigger_parameter', 'pipeline_trigger', 'pipeline_trigger_id', 'id');
-- PIPELINE TRIGGER PREREQUISITE
select create_foreign_key('FK_PIPELINE_TRIGGER_PREREQUISITE_PIPELINE_TRIGGER', 'pipeline_trigger_prerequisite', 'pipeline_trigger', 'pipeline_trigger_id', 'id');
-- POLLER
select create_foreign_key('FK_POLLER_APPLICATION', 'poller', 'application', 'application_id', 'id');
select create_foreign_key('FK_POLLER_PIPELINE', 'poller', 'pipeline', 'pipeline_id', 'id');
-- POLLER EXECUTION
select create_foreign_key('FK_POLLER_EXECUTION_APPLICATION', 'poller_execution', 'application', 'application_id', 'id');
select create_foreign_key('FK_POLLER_EXECUTION_PIPELINE', 'poller_execution', 'pipeline', 'pipeline_id', 'id');
-- PROJECT GROUP
select create_foreign_key('FK_PROJECT_GROUP_PIPELINE', 'project_group', 'project', 'project_id', 'id');
select create_foreign_key('FK_PROJECT_GROUP', 'project_group', 'group', 'group_id', 'id');
-- PROJECT VARIABLE
select create_foreign_key('FK_PROJECT_VARIABLE_PIPELINE', 'project_variable', 'project', 'project_id', 'id');
-- USER KEY
select create_foreign_key('FK_USER_KEY_USER', 'user_key', 'user', 'user_id', 'id');
-- WORKER CAPABILITY
select create_foreign_key('FK_WORKER_CAPABILITY_WORKER_MODEL', 'worker_capability', 'worker_model', 'worker_model_id', 'id');
-- WORKER
select create_foreign_key('FK_WORKER_ACTION_BUILD', 'worker', 'action_build', 'action_build_id', 'id');
-- WORKER MODEL
select create_foreign_key('FK_WORKER_MODEL_GROUP', 'worker_model', 'group', 'group_id', 'id');
-- HATCHERY MODEL
select create_foreign_key('FK_HATCHERY_MODEL_HATCHERY_ID', 'hatchery_model', 'hatchery', 'hatchery_id', 'id');
select create_foreign_key('FK_HATCHERY_MODEL_WORKER_MODEL_ID', 'hatchery_model', 'worker_model', 'worker_model_id', 'id');
-- repositories_manager_project
select create_foreign_key('fk_repositories_manager_project_repositories_manager_id', 'repositories_manager_project', 'repositories_manager', 'id_repositories_manager', 'id');
select create_foreign_key('fk_repositories_manager_project_project_id', 'repositories_manager_project', 'project', 'id_project', 'id');
-- warning
ALTER TABLE warning ADD CONSTRAINT fk_application FOREIGN KEY (app_id) references application (id) ON delete cascade;
ALTER TABLE warning ADD CONSTRAINT fk_pipeline FOREIGN KEY (pip_id) references pipeline (id) ON delete cascade;
ALTER TABLE warning ADD CONSTRAINT fk_environment FOREIGN KEY (env_id) references environment (id) ON delete cascade;
ALTER TABLE warning ADD CONSTRAINT fk_action FOREIGN KEY (action_id) references action (id) ON delete cascade;
-- AUDIT
ALTER TABLE project_variable_audit ADD CONSTRAINT fk_project FOREIGN KEY (project_id) references project (id) ON delete cascade;
ALTER TABLE application_variable_audit ADD CONSTRAINT fk_application FOREIGN KEY (application_id) references application (id) ON delete cascade;
ALTER TABLE environment_variable_audit ADD CONSTRAINT fk_environment FOREIGN KEY (environment_id) references environment (id) ON delete cascade;
-- TEMPLATES
SELECT create_foreign_key('FK_TEMPLATE_PARAMS_TEMPLATE', 'template_params', 'template', 'template_id', 'id');
SELECT create_foreign_key('FK_TEMPLATE_ACTIONS_TEMPLATE', 'template_params', 'template', 'template_id', 'id');
SELECT create_foreign_key('FK_TEMPLATE_ACTIONS_ACTION', 'template_action', 'action', 'action_id', 'id');
-- +migrate Down
-- nothing to downgrade, it's a creation ! | the_stack |
-- 2019-11-19T10:59:02.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,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,569631,620,0,10,253,'Value',TO_TIMESTAMP('2019-11-19 12:59:02','YYYY-MM-DD HH24:MI:SS'),100,'N','Suchschlüssel für den Eintrag im erforderlichen Format - muss eindeutig sein','D',250,'A search key allows you a fast method of finding a particular record.
If you leave the search key empty, the system automatically creates an integer number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','Y','N','Y','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','Y','Suchschlüssel',0,0,TO_TIMESTAMP('2019-11-19 12:59:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2019-11-19T10:59:02.717Z
-- 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=569631 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-11-19T10:59:02.722Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(620)
;
-- 2019-11-19T10:59:18.098Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('M_Shipper','ALTER TABLE public.M_Shipper ADD COLUMN Value VARCHAR(250)')
;
Update M_Shipper set Value = Name;
-- 2019-11-19T11:00:49.397Z
-- 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,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,569631,591806,0,185,0,TO_TIMESTAMP('2019-11-19 13:00:49','YYYY-MM-DD HH24:MI:SS'),100,'Suchschlüssel für den Eintrag im erforderlichen Format - muss eindeutig sein',0,'D','A search key allows you a fast method of finding a particular record.
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',0,'Y','Y','Y','N','N','N','N','N','Suchschlüssel',110,100,0,1,1,TO_TIMESTAMP('2019-11-19 13:00:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-19T11:00:49.402Z
-- 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=591806 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)
;
-- 2019-11-19T11:00:49.407Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(620)
;
-- 2019-11-19T11:00:49.479Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591806
;
-- 2019-11-19T11:00:49.482Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591806)
;
-- 2019-11-19T11:01:22.443Z
-- 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,Help,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,591806,0,185,563994,541019,'F',TO_TIMESTAMP('2019-11-19 13:01:22','YYYY-MM-DD HH24:MI:SS'),100,'Suchschlüssel für den Eintrag im erforderlichen Format - muss eindeutig sein','A search key allows you a fast method of finding a particular record.
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','Y','N','N','Y','N','N','N',0,'Suchschlüssel',20,0,0,TO_TIMESTAMP('2019-11-19 13:01:22','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-19T11:01:25.474Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2019-11-19 13:01:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547690
;
-- 2019-11-19T11:01:41.345Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=563994
;
-- 2019-11-19T11:01:41.353Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547690
;
-- 2019-11-19T11:01:41.361Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547697
;
-- 2019-11-19T11:01:41.366Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547694
;
-- 2019-11-19T11:01:41.370Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547692
;
-- 2019-11-19T11:01:41.374Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547693
;
-- 2019-11-19T11:01:41.377Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2019-11-19 13:01:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547695
;
-- 2019-11-21T10:40:47.621Z
-- 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,WhereClause) VALUES (0,540510,0,253,TO_TIMESTAMP('2019-11-21 12:40:47','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Y','M_Shipper_UniqueValue','N',TO_TIMESTAMP('2019-11-21 12:40:47','YYYY-MM-DD HH24:MI:SS'),100,'IsActive = ''Y''')
;
-- 2019-11-21T10:40:47.641Z
-- 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=540510 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)
;
-- 2019-11-21T10:41:01.792Z
-- 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,569631,540976,540510,0,TO_TIMESTAMP('2019-11-21 12:41:01','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',10,TO_TIMESTAMP('2019-11-21 12:41:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-21T10:41:46.635Z
-- 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,2079,540977,540510,0,TO_TIMESTAMP('2019-11-21 12:41:46','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',20,TO_TIMESTAMP('2019-11-21 12:41:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-21T10:41:47.980Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
CREATE UNIQUE INDEX M_Shipper_UniqueValue ON M_Shipper (Value,AD_Org_ID) WHERE IsActive = 'Y'
; | the_stack |
-- 12.11.2015 14:53
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET ColorLogic='select case when (select C_Flatrate_Term_ID from M_Material_Tracking where M_Material_Tracking_ID=@M_Material_Tracking_ID@) IS NULL then (select ad_color_id from ad_color where name = ''Rot'') else -1 end as ad_color_id',Updated=TO_TIMESTAMP('2015-11-12 14:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556387
;
-- 12.11.2015 17:00
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions c where c.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and (
c.M_QualityInsp_LagerKonf_ID =(select lkv.M_QualityInsp_LagerKonf_ID from M_QualityInsp_LagerKonf_Version lkv where lkv.M_QualityInsp_LagerKonf_Version_ID = @M_QualityInsp_LagerKonf_Version_ID/-1@)
)
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 17:00:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 17:01
-- 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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,541423,0,540541,540821,18,540280,'C_Flatrate_Conditions_ID',TO_TIMESTAMP('2015-11-12 17:01:42','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.flatrate',0,'Y','N','Y','N','Y','N','Vertragsbedingungen',10,TO_TIMESTAMP('2015-11-12 17:01:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 12.11.2015 17:01
-- 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=540821 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 12.11.2015 17:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=540821
;
-- 12.11.2015 17:02
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=540821
;
-- 12.11.2015 17:02
-- 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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,541423,0,540626,540822,18,540280,'C_Flatrate_Conditions_ID',TO_TIMESTAMP('2015-11-12 17:02:33','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.flatrate',0,'Y','N','Y','N','Y','N','Vertragsbedingungen',10,TO_TIMESTAMP('2015-11-12 17:02:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 12.11.2015 17:02
-- 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=540822 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 12.11.2015 17:25
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,540312,' exists
(
select 1
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf_Version lkv on fc.M_QualityInsp_LagerKonf_Version_ID = lvk.M_QualityInsp_LagerKonf_Version
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@))
and lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
)',TO_TIMESTAMP('2015-11-12 17:25:13','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.materialtracking','Y','C_Flatrate_Conditions_For_Material_Tracking','S',TO_TIMESTAMP('2015-11-12 17:25:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 12.11.2015 17:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf_Version lkv on fc.M_QualityInsp_LagerKonf_Version_ID = lvk.M_QualityInsp_LagerKonf_Version
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 17:37:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 17:37
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET AD_Val_Rule_ID=540312,Updated=TO_TIMESTAMP('2015-11-12 17:37:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=540822
;
-- 12.11.2015 18:06
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code=' exists
(
select 1
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@))
and lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:06:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:11:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:12
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk._QualityInsp_LagerKonf_ID = lkv._QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:12:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:13
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv._QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:13:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:16
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ or fm.M_Product_Category_ID = (select p.M_Product_Category_ID from M_Product p where p.M_Product_ID = @M_Product_ID/-1@)) and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:16:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:20
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID/-1@ ) and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:20:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:22
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code=' exists
(
select 1
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID/-1@ )
and lk.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:22:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:27
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code=' exists
(
select 1
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID/-1@ )
and lkv.M_QualityInsp_LagerKonf_Version_ID = @M_QualityInsp_LagerKonf_Version_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code=' exists
(
select 1
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID@ )
and lkv.M_QualityInsp_LagerKonf_Version_ID = @M_QualityInsp_LagerKonf_Version_ID@
)',Updated=TO_TIMESTAMP('2015-11-12 18:29:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:29
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
(fm.M_Product_ID = @M_Product_ID@ ) and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
)',Updated=TO_TIMESTAMP('2015-11-12 18:29:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 18:40
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
select fc.C_Flatrate_Conditions_ID
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID@ )
and lkv.M_QualityInsp_LagerKonf_Version_ID = @M_QualityInsp_LagerKonf_Version_ID@
',Updated=TO_TIMESTAMP('2015-11-12 18:40:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists(
select fc.C_Flatrate_Conditions_ID
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
where
(fm.M_Product_ID = @M_Product_ID@ )
and lkv.M_QualityInsp_LagerKonf_Version_ID = @M_QualityInsp_LagerKonf_Version_ID@
)
',Updated=TO_TIMESTAMP('2015-11-12 18:43:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:49
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists(
select fc.C_Flatrate_Conditions_ID
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
join M_Material_Tracking mt on mt.M_Material_Tracking_ID = @M_Material_Tracking_ID@
where
(fm.M_Product_ID = mt.M_Product_ID )
and lkv.M_QualityInsp_LagerKonf_Version_ID = mt.M_QualityInsp_LagerKonf_Version_ID
)
',Updated=TO_TIMESTAMP('2015-11-12 18:49:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:57
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists(
select fc.C_Flatrate_Conditions_ID
from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join C_Flatrate_Matching fm on fc.C_Flatrate_Conditions_ID = fm.C_Flatrate_Conditions_ID
join M_Material_Tracking mt on mt.M_Material_Tracking_ID = @M_Material_Tracking_ID@
where
(fm.M_Product_ID = mt.M_Product_ID )
and lkv.M_QualityInsp_LagerKonf_Version_ID = mt.M_QualityInsp_LagerKonf_Version_ID
and fc.C_Flatrate_Conditions_ID = C_Flatrate_Conditions.C_Flatrate_Conditions_ID
)
',Updated=TO_TIMESTAMP('2015-11-12 18:57:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540312
;
-- 12.11.2015 18:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code=' select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@',Updated=TO_TIMESTAMP('2015-11-12 18:59:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 19:01
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join C_Flatrate_Matching fm on fm.C_Flatrate_Conditions_ID = fc.C_Flatrate_Conditions_ID
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
and t.C_Flatrate_Term_ID = C_Flatrate_Term.C_Flatrate_Term_ID
)',Updated=TO_TIMESTAMP('2015-11-12 19:01:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 19:04
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_ID = @M_QualityInsp_LagerKonf_ID@
))
and t.M_Product_ID = @M_Product_ID/-1@
and t.Bill_BPartner_ID = @C_BPartner_ID/-1@
and t.C_Flatrate_Term_ID = C_Flatrate_Term.C_Flatrate_Term_ID
)',Updated=TO_TIMESTAMP('2015-11-12 19:04:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 19:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join M_Material_Tracking mt on mt.M_Material_Tracking_ID = @M_Material_Tracking_ID@
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_ID = mt.M_QualityInsp_LagerKonf_ID
))
and t.M_Product_ID = mt.M_Product_ID
and t.Bill_BPartner_ID = mt.C_BPartner_ID
and t.C_Flatrate_Term_ID = C_Flatrate_Term.C_Flatrate_Term_ID
)',Updated=TO_TIMESTAMP('2015-11-12 19:47:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 19:50
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
join M_Material_Tracking mt on mt.M_Material_Tracking_ID = @M_Material_Tracking_ID@
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_Version_ID = mt.M_QualityInsp_LagerKonf_Version_ID
))
and t.M_Product_ID = mt.M_Product_ID
and t.Bill_BPartner_ID = mt.C_BPartner_ID
and t.C_Flatrate_Term_ID = C_Flatrate_Term.C_Flatrate_Term_ID
)
',Updated=TO_TIMESTAMP('2015-11-12 19:50:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
;
-- 12.11.2015 19:52
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Val_Rule SET Code='
exists
(
select 1
from C_FLatrate_Term t
join M_Material_Tracking mt on mt.M_Material_Tracking_ID = @M_Material_Tracking_ID@
where (exists (select 1 from C_Flatrate_Conditions fc
join M_QualityInsp_LagerKonf lk on fc.M_QualityInsp_LagerKonf_ID = lk.M_QualityInsp_LagerKonf_ID
join M_QualityInsp_LagerKonf_Version lkv on lk.M_QualityInsp_LagerKonf_ID = lkv.M_QualityInsp_LagerKonf_ID
where fc.C_Flatrate_Conditions_ID = t.C_Flatrate_Conditions_ID and
lkv.M_QualityInsp_LagerKonf_Version_ID = mt.M_QualityInsp_LagerKonf_Version_ID
))
and t.M_Product_ID = mt.M_Product_ID
and t.Bill_BPartner_ID = mt.C_BPartner_ID
and t.C_Flatrate_Term_ID = C_Flatrate_Term.C_Flatrate_Term_ID
)
',Updated=TO_TIMESTAMP('2015-11-12 19:52:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=540311
; | the_stack |
-------------------------------------------------------------------------------
-- get tag id
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.get_tag_id(_tag_map ps_trace.tag_map, _key ps_trace.tag_k)
RETURNS bigint
AS $func$
SELECT (_tag_map->(SELECT k.id::text from _ps_trace.tag_key k WHERE k.key = _key LIMIT 1))::bigint
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.get_tag_id(ps_trace.tag_map, ps_trace.tag_k) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.get_tag_id IS $$This function supports the # operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.# (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_trace.tag_k,
FUNCTION = _ps_trace.get_tag_id
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- has tag
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_tags_by_key(_key ps_trace.tag_k)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _key
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_tags_by_key(ps_trace.tag_k) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.has_tag(_tag_map ps_trace.tag_map, _key ps_trace.tag_k)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_tags_by_key(_key))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.has_tag(ps_trace.tag_map, ps_trace.tag_k) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.has_tag IS $$This function supports the #? operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.#? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_trace.tag_k,
FUNCTION = _ps_trace.has_tag
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- jsonb path exists
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_jsonb_path_exists(_op ps_tag.tag_op_jsonb_path_exists)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND jsonb_path_exists(a.value, _op.value)
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_jsonb_path_exists(ps_tag.tag_op_jsonb_path_exists) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_jsonb_path_exists(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_jsonb_path_exists)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_jsonb_path_exists(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_jsonb_path_exists(ps_trace.tag_map, ps_tag.tag_op_jsonb_path_exists) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_jsonb_path_exists IS $$This function supports the @? operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_jsonb_path_exists,
FUNCTION = _ps_trace.match_jsonb_path_exists
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- regexp matches
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_regexp_matches(_op ps_tag.tag_op_regexp_matches)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
-- if the jsonb value is a string, apply the regex directly
-- otherwise, convert the value to a text representation, back to a jsonb string, and then apply
AND CASE jsonb_typeof(a.value)
WHEN 'string' THEN jsonb_path_exists(a.value, format('$?(@ like_regex "%s")', _op.value)::jsonpath)
ELSE jsonb_path_exists(to_jsonb(a.value#>>'{}'), format('$?(@ like_regex "%s")', _op.value)::jsonpath)
END
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_regexp_matches(ps_tag.tag_op_regexp_matches) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_regexp_matches(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_regexp_matches)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_regexp_matches(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_regexp_matches(ps_trace.tag_map, ps_tag.tag_op_regexp_matches) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_regexp_matches IS $$This function supports the ==~ operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_regexp_matches,
FUNCTION = _ps_trace.match_regexp_matches
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- regexp not matches
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_regexp_not_matches(_op ps_tag.tag_op_regexp_not_matches)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
-- if the jsonb value is a string, apply the regex directly
-- otherwise, convert the value to a text representation, back to a jsonb string, and then apply
AND CASE jsonb_typeof(a.value)
WHEN 'string' THEN jsonb_path_exists(a.value, format('$?(!(@ like_regex "%s"))', _op.value)::jsonpath)
ELSE jsonb_path_exists(to_jsonb(a.value#>>'{}'), format('$?(!(@ like_regex "%s"))', _op.value)::jsonpath)
END
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_regexp_not_matches(ps_tag.tag_op_regexp_not_matches) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_regexp_not_matches(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_regexp_not_matches)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_regexp_not_matches(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_regexp_not_matches(ps_trace.tag_map, ps_tag.tag_op_regexp_not_matches) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_regexp_not_matches IS $$This function supports the !=~ operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_regexp_not_matches,
FUNCTION = _ps_trace.match_regexp_not_matches
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- equals
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_equals(_op ps_tag.tag_op_equals)
RETURNS jsonb
AS $func$
SELECT jsonb_build_object(a.key_id, a.id)
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND a.value = _op.value
LIMIT 1
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_equals(ps_tag.tag_op_equals) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_equals(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_equals)
RETURNS boolean
AS $func$
SELECT _tag_map @> (_ps_trace.eval_equals(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_equals(ps_trace.tag_map, ps_tag.tag_op_equals) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_equals IS $$This function supports the == operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_equals,
FUNCTION = _ps_trace.match_equals
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- not equals
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_not_equals(_op ps_tag.tag_op_not_equals)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND a.value != _op.value
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_not_equals(ps_tag.tag_op_not_equals) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_not_equals(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_not_equals)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_not_equals(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_not_equals(ps_trace.tag_map, ps_tag.tag_op_not_equals) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_not_equals IS $$This function supports the !== operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_not_equals,
FUNCTION = _ps_trace.match_not_equals
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- less than
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_less_than(_op ps_tag.tag_op_less_than)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND jsonb_path_exists(a.value, '$?(@ < $x)'::jsonpath, jsonb_build_object('x', _op.value))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_less_than(ps_tag.tag_op_less_than) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_less_than(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_less_than)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_less_than(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_less_than(ps_trace.tag_map, ps_tag.tag_op_less_than) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_less_than IS $$This function supports the #< operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_less_than,
FUNCTION = _ps_trace.match_less_than
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- less than or equal
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_less_than_or_equal(_op ps_tag.tag_op_less_than_or_equal)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND jsonb_path_exists(a.value, '$?(@ <= $x)'::jsonpath, jsonb_build_object('x', _op.value))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_less_than_or_equal(ps_tag.tag_op_less_than_or_equal) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_less_than_or_equal(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_less_than_or_equal)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_less_than_or_equal(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_less_than_or_equal(ps_trace.tag_map, ps_tag.tag_op_less_than_or_equal) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_less_than_or_equal IS $$This function supports the #<= operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_less_than_or_equal,
FUNCTION = _ps_trace.match_less_than_or_equal
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- greater than
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_greater_than(_op ps_tag.tag_op_greater_than)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND jsonb_path_exists(a.value, '$?(@ > $x)'::jsonpath, jsonb_build_object('x', _op.value))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_greater_than(ps_tag.tag_op_greater_than) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_greater_than(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_greater_than)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_greater_than(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_greater_than(ps_trace.tag_map, ps_tag.tag_op_greater_than) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_greater_than IS $$This function supports the #> operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_greater_than,
FUNCTION = _ps_trace.match_greater_than
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- greater than or equal
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ps_trace.eval_greater_than_or_equal(_op ps_tag.tag_op_greater_than_or_equal)
RETURNS jsonb[]
AS $func$
SELECT coalesce(array_agg(jsonb_build_object(a.key_id, a.id)), array[]::jsonb[])
FROM _ps_trace.tag a
WHERE a.key = _op.tag_key
AND jsonb_path_exists(a.value, '$?(@ >= $x)'::jsonpath, jsonb_build_object('x', _op.value))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.eval_greater_than_or_equal(ps_tag.tag_op_greater_than_or_equal) TO prom_reader;
CREATE OR REPLACE FUNCTION _ps_trace.match_greater_than_or_equal(_tag_map ps_trace.tag_map, _op ps_tag.tag_op_greater_than_or_equal)
RETURNS boolean
AS $func$
SELECT _tag_map @> ANY(_ps_trace.eval_greater_than_or_equal(_op))
$func$
LANGUAGE SQL STABLE PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION _ps_trace.match_greater_than_or_equal(ps_trace.tag_map, ps_tag.tag_op_greater_than_or_equal) TO prom_reader;
COMMENT ON FUNCTION _ps_trace.match_greater_than_or_equal IS $$This function supports the #>= operator.$$;
DO $do$
BEGIN
CREATE OPERATOR ps_trace.? (
LEFTARG = ps_trace.tag_map,
RIGHTARG = ps_tag.tag_op_greater_than_or_equal,
FUNCTION = _ps_trace.match_greater_than_or_equal
);
EXCEPTION
WHEN SQLSTATE '42723' THEN -- operator already exists
null;
END;
$do$;
-------------------------------------------------------------------------------
-- jsonb
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ps_trace.jsonb(_tag_map ps_trace.tag_map)
RETURNS jsonb
AS $func$
/*
takes an tag_map which is a map of tag_key.id to tag.id
and returns a jsonb object containing the key value pairs of tags
*/
SELECT jsonb_object_agg(a.key, a.value)
FROM jsonb_each(_tag_map) x -- key is tag_key.id, value is tag.id
INNER JOIN LATERAL -- inner join lateral enables partition elimination at execution time
(
SELECT
a.key,
a.value
FROM _ps_trace.tag a
WHERE a.id = x.value::text::bigint
-- filter on a.key to eliminate all but one partition of the tag table
AND a.key = (SELECT k.key from _ps_trace.tag_key k WHERE k.id = x.key::bigint)
LIMIT 1
) a on (true)
$func$
LANGUAGE SQL STABLE PARALLEL SAFE STRICT;
GRANT EXECUTE ON FUNCTION ps_trace.jsonb(ps_trace.tag_map) TO prom_reader;
-------------------------------------------------------------------------------
-- jsonb
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ps_trace.jsonb(_tag_map ps_trace.tag_map, VARIADIC _keys ps_trace.tag_k[])
RETURNS jsonb
AS $func$
/*
takes an tag_map which is a map of tag_key.id to tag.id
and returns a jsonb object containing the key value pairs of tags
only the key/value pairs with keys passed as arguments are included in the output
*/
SELECT jsonb_object_agg(a.key, a.value)
FROM jsonb_each(_tag_map) x -- key is tag_key.id, value is tag.id
INNER JOIN LATERAL -- inner join lateral enables partition elimination at execution time
(
SELECT
a.key,
a.value
FROM _ps_trace.tag a
WHERE a.id = x.value::text::bigint
AND a.key = ANY(_keys) -- ANY works with partition elimination
) a on (true)
$func$
LANGUAGE SQL STABLE PARALLEL SAFE STRICT;
GRANT EXECUTE ON FUNCTION ps_trace.jsonb(ps_trace.tag_map) TO prom_reader;
-------------------------------------------------------------------------------
-- val
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ps_trace.val(_tag_map ps_trace.tag_map, _key ps_trace.tag_k)
RETURNS ps_trace.tag_v
AS $func$
SELECT a.value
FROM _ps_trace.tag a
WHERE a.key = _key -- partition elimination
AND a.id = (_tag_map->>(SELECT id::text FROM _ps_trace.tag_key WHERE key = _key))::bigint
LIMIT 1
$func$
LANGUAGE SQL STABLE PARALLEL SAFE STRICT;
GRANT EXECUTE ON FUNCTION ps_trace.val(ps_trace.tag_map, ps_trace.tag_k) TO prom_reader;
-------------------------------------------------------------------------------
-- val_text
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ps_trace.val_text(_tag_map ps_trace.tag_map, _key ps_trace.tag_k)
RETURNS text
AS $func$
SELECT a.value#>>'{}'
FROM _ps_trace.tag a
WHERE a.key = _key -- partition elimination
AND a.id = (_tag_map->>(SELECT id::text FROM _ps_trace.tag_key WHERE key = _key))::bigint
LIMIT 1
$func$
LANGUAGE SQL STABLE PARALLEL SAFE STRICT;
GRANT EXECUTE ON FUNCTION ps_trace.val_text(ps_trace.tag_map, ps_trace.tag_k) TO prom_reader; | the_stack |
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsActive='N',Updated=TO_TIMESTAMP('2016-06-23 13:28:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=617
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET AD_Column_ID=11059, Parent_Column_ID=11079,Updated=TO_TIMESTAMP('2016-06-23 13:28:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=615
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9322
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9348
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10317
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9343
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9324
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9332
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9334
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10045
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9330
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9345
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9328
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9350
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9349
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9342
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9346
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=160,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9340
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=170,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9344
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=180,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9320
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9321
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=200,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9323
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=210,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9341
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=220,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10193
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=230,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9347
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=240,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9325
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=250,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9335
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=260,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9339
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=270,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9333
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=280,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=290,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9338
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=300,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10068
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=310,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9337
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=320,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9329
;
-- 23.06.2016 13:28
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=330,Updated=TO_TIMESTAMP('2016-06-23 13:28:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9331
;
-- 23.06.2016 13:30
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Included_Tab_ID=615, IncludedTabHeight=800,Updated=TO_TIMESTAMP('2016-06-23 13:30:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9331
;
-- 23.06.2016 13:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsSingleRow='N',Updated=TO_TIMESTAMP('2016-06-23 13:31:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=615
;
-- 23.06.2016 13:31
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsGridModeOnly='Y', IsSearchActive='N',Updated=TO_TIMESTAMP('2016-06-23 13:31:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=615
;
-- 23.06.2016 13:42
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-06-23 13:42:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336
;
-- 23.06.2016 13:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Included_Tab_ID=615, IncludedTabHeight=800,Updated=TO_TIMESTAMP('2016-06-23 13:43:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336
;
-- 23.06.2016 13:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Included_Tab_ID=NULL,Updated=TO_TIMESTAMP('2016-06-23 13:43:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336
;
-- 23.06.2016 13:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-23 13:43:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9336
;
-- 23.06.2016 13:43
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=190,Updated=TO_TIMESTAMP('2016-06-23 13:43:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9331
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9380
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9383
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556958
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556950
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556949
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2016-06-23 13:45:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9381
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9380
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9381
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9383
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556948
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556949
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556950
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2016-06-23 13:45:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556958
;
-- 23.06.2016 13:45
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-06-23 13:45:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556949
;
-- 23.06.2016 13:47
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Val_Rule_ID=540327,Updated=TO_TIMESTAMP('2016-06-23 13:47:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554427
;
-- 23.06.2016 14:06
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2016-06-23 14:06:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=556952
;
-- 23.06.2016 14:06
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsInsertRecord='N',Updated=TO_TIMESTAMP('2016-06-23 14:06:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=614
;
-- 23.06.2016 14:07
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsInsertRecord='N',Updated=TO_TIMESTAMP('2016-06-23 14:07:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=616
; | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for auth_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_role_permission`;
CREATE TABLE `qualitis_auth_role_permission` (
`role_id` bigint(20) NOT NULL,
`permission_id` bigint(20) NOT NULL,
KEY `FK5mgu2qwy6vgke5w8ds63it2ni` (`permission_id`),
KEY `FKmsro136xvh0q33x68slqluhdf` (`role_id`),
CONSTRAINT `FK5mgu2qwy6vgke5w8ds63it2ni` FOREIGN KEY (`permission_id`) REFERENCES `qualitis_auth_permission` (`id`),
CONSTRAINT `FKmsro136xvh0q33x68slqluhdf` FOREIGN KEY (`role_id`) REFERENCES `qualitis_auth_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for auth_user_permission
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user_permission`;
CREATE TABLE `qualitis_auth_user_permission` (
`user_id` bigint(20) NOT NULL,
`permission_id` bigint(20) NOT NULL,
PRIMARY KEY (`user_id`,`permission_id`),
KEY `FK8d46965lnl53mk5qqxvdky89u` (`permission_id`),
CONSTRAINT `FK8d46965lnl53mk5qqxvdky89u` FOREIGN KEY (`permission_id`) REFERENCES `qualitis_auth_permission` (`id`),
CONSTRAINT `FKbctborxhgbh1e1cw2eq2rej18` FOREIGN KEY (`user_id`) REFERENCES `qualitis_auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for auth_user_role
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user_role`;
CREATE TABLE `qualitis_auth_user_role` (
`user_id` bigint(20) NOT NULL,
`role_id` bigint(20) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
KEY `FK2bte4mk8xumyi6mxhjpfqljhk` (`role_id`),
CONSTRAINT `FK2bte4mk8xumyi6mxhjpfqljhk` FOREIGN KEY (`role_id`) REFERENCES `qualitis_auth_role` (`id`),
CONSTRAINT `FKfxumv6vh4o8pewtsr7lsdn33y` FOREIGN KEY (`user_id`) REFERENCES `qualitis_auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application`;
CREATE TABLE `qualitis_application` (
`id` varchar(40) NOT NULL,
`abnormal_task_num` int(11) DEFAULT NULL,
`create_user` varchar(150) DEFAULT NULL,
`exception_message` varchar(10000) DEFAULT NULL,
`execute_user` varchar(150) DEFAULT NULL,
`fail_task_num` int(11) DEFAULT NULL,
`finish_task_num` int(11) DEFAULT NULL,
`finish_time` varchar(25) DEFAULT NULL,
`invoke_type` int(11) DEFAULT NULL,
`not_pass_task_num` int(11) DEFAULT NULL,
`rule_size` int(11) DEFAULT NULL,
`saved_db` varchar(100) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`submit_time` varchar(25) DEFAULT NULL,
`total_task_num` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application_task
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application_task`;
CREATE TABLE `qualitis_application_task` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`begin_time` varchar(25) DEFAULT NULL,
`cluster_id` varchar(100) DEFAULT NULL,
`end_time` varchar(25) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`submit_address` varchar(255) DEFAULT NULL,
`task_remote_id` int(11) DEFAULT NULL,
`application_id` varchar(40) DEFAULT NULL,
`abort_on_failure` bit(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `FK8vt8tfuq1jlqofdsl2bfx602d` (`application_id`),
CONSTRAINT `FK8vt8tfuq1jlqofdsl2bfx602d` FOREIGN KEY (`application_id`) REFERENCES `qualitis_application` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application_task_datasource
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application_task_datasource`;
CREATE TABLE `qualitis_application_task_datasource` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cluster_name` varchar(100) DEFAULT NULL,
`col_name` varchar(1000) DEFAULT NULL,
`create_user` varchar(150) DEFAULT NULL,
`database_name` varchar(100) DEFAULT NULL,
`datasource_index` int(11) DEFAULT NULL,
`execute_user` varchar(150) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
`table_name` varchar(100) DEFAULT NULL,
`task_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKeru6qjd5gwkkm1a58g290g18o` (`task_id`),
CONSTRAINT `FKeru6qjd5gwkkm1a58g290g18o` FOREIGN KEY (`task_id`) REFERENCES `qualitis_application_task` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application_task_result
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application_task_result`;
CREATE TABLE `qualitis_application_task_result` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`application_id` varchar(255) DEFAULT NULL,
`create_time` varchar(255) DEFAULT NULL,
`result_type` varchar(255) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
`value` double DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application_task_rule_alarm_config
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application_task_rule_alarm_config`;
CREATE TABLE `qualitis_application_task_rule_alarm_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`check_template` int(11) DEFAULT NULL,
`compare_type` int(11) DEFAULT NULL,
`output_name` varchar(500) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`threshold` double DEFAULT NULL,
`task_rule_simple_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKrhyx3i15dja1ipm81v3biges` (`task_rule_simple_id`),
CONSTRAINT `FKrhyx3i15dja1ipm81v3biges` FOREIGN KEY (`task_rule_simple_id`) REFERENCES `qualitis_application_task_rule_simple` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_application_task_rule_simple
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_application_task_rule_simple`;
CREATE TABLE `qualitis_application_task_rule_simple` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`application_id` varchar(40) DEFAULT NULL,
`execute_user` varchar(20) DEFAULT NULL,
`mid_table_name` varchar(200) DEFAULT NULL,
`project_creator` varchar(50) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`project_name` varchar(170) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
`rule_name` varchar(200) DEFAULT NULL,
`rule_type` int(11) DEFAULT NULL,
`submit_time` varchar(20) DEFAULT NULL,
`parent_rule_simple_id` bigint(20) DEFAULT NULL,
`task_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKiciivreqw0dltknemgrqis9tv` (`parent_rule_simple_id`),
KEY `FK8nr2cvnqp4pg0q2ftp26v0wnw` (`task_id`),
CONSTRAINT `FK8nr2cvnqp4pg0q2ftp26v0wnw` FOREIGN KEY (`task_id`) REFERENCES `qualitis_application_task` (`id`),
CONSTRAINT `FKiciivreqw0dltknemgrqis9tv` FOREIGN KEY (`parent_rule_simple_id`) REFERENCES `qualitis_application_task_rule_simple` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_list
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_list`;
CREATE TABLE `qualitis_auth_list` (
`app_id` varchar(255) NOT NULL,
`app_token` varchar(255) DEFAULT NULL,
PRIMARY KEY (`app_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_permission
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_permission`;
CREATE TABLE `qualitis_auth_permission` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`method` varchar(6) DEFAULT NULL,
`url` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_proxy_user
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_proxy_user`;
CREATE TABLE `qualitis_auth_proxy_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`proxy_user_name` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_role
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_role`;
CREATE TABLE `qualitis_auth_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(15) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_d6h6ies9p214yj1lmwkegdcdc` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_role_permission`;
CREATE TABLE `qualitis_auth_role_permission` (
`id` varchar(32) NOT NULL,
`permission_id` bigint(20) DEFAULT NULL,
`role_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKs9v745h3b0ekhibqipbj84scv` (`permission_id`),
KEY `FKjricuk1yv825s34s0cy10x3ns` (`role_id`),
CONSTRAINT `FKjricuk1yv825s34s0cy10x3ns` FOREIGN KEY (`role_id`) REFERENCES `qualitis_auth_role` (`id`),
CONSTRAINT `FKs9v745h3b0ekhibqipbj84scv` FOREIGN KEY (`permission_id`) REFERENCES `qualitis_auth_permission` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_user
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user`;
CREATE TABLE `qualitis_auth_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`chinese_name` varchar(255) DEFAULT NULL,
`department` varchar(255) DEFAULT NULL,
`password` varchar(64) DEFAULT NULL,
`username` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_jsqqcjes14hjorfqihq8i10wr` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_user_permission
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user_permission`;
CREATE TABLE `qualitis_auth_user_permission` (
`id` varchar(32) NOT NULL,
`permission_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKfh74vev3awmabhwonewr5oogp` (`permission_id`),
KEY `FK6yvgd2emno63qw1ecnxl77ipa` (`user_id`),
CONSTRAINT `FK6yvgd2emno63qw1ecnxl77ipa` FOREIGN KEY (`user_id`) REFERENCES `qualitis_auth_user` (`id`),
CONSTRAINT `FKfh74vev3awmabhwonewr5oogp` FOREIGN KEY (`permission_id`) REFERENCES `qualitis_auth_permission` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_user_proxy_user
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user_proxy_user`;
CREATE TABLE `qualitis_auth_user_proxy_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`proxy_user_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKpmln0snv5mkc203umorgcjf05` (`proxy_user_id`),
KEY `FKjrpgawp7y8srylpamisntf34y` (`user_id`),
CONSTRAINT `FKjrpgawp7y8srylpamisntf34y` FOREIGN KEY (`user_id`) REFERENCES `qualitis_auth_user` (`id`),
CONSTRAINT `FKpmln0snv5mkc203umorgcjf05` FOREIGN KEY (`proxy_user_id`) REFERENCES `qualitis_auth_proxy_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_auth_user_role
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_auth_user_role`;
CREATE TABLE `qualitis_auth_user_role` (
`id` varchar(32) NOT NULL,
`role_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKta8a7krobg79tw41od6tdsex0` (`role_id`),
KEY `FKeifs7mfg3qs5igw023vta8e7b` (`user_id`),
CONSTRAINT `FKeifs7mfg3qs5igw023vta8e7b` FOREIGN KEY (`user_id`) REFERENCES `qualitis_auth_user` (`id`),
CONSTRAINT `FKta8a7krobg79tw41od6tdsex0` FOREIGN KEY (`role_id`) REFERENCES `qualitis_auth_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_config_cluster_info
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_config_cluster_info`;
CREATE TABLE `qualitis_config_cluster_info` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cluster_name` varchar(100) DEFAULT NULL,
`cluster_type` varchar(100) DEFAULT NULL,
`hive_server2_address` varchar(100) DEFAULT NULL,
`linkis_address` varchar(100) DEFAULT NULL,
`linkis_token` varchar(500) DEFAULT NULL,
`meta_store_address` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_config_system
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_config_system`;
CREATE TABLE `qualitis_config_system` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key_name` varchar(50) DEFAULT NULL,
`value` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UK_665kcle6t77m5lbm48gohcyyg` (`key_name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_project
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_project`;
CREATE TABLE `qualitis_project` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`create_user` varchar(50) DEFAULT NULL,
`create_user_full_name` varchar(50) DEFAULT NULL,
`create_time` varchar(25) DEFAULT NULL,
`description` varchar(1700) DEFAULT NULL,
`name` varchar(170) DEFAULT NULL,
`project_type` int(11) DEFAULT NULL,
`user_department` varchar(50) DEFAULT NULL,
`modify_user` varchar(50) DEFAULT NULL,
`modify_time` varchar(25) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_project_label
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_project_label`;
CREATE TABLE `qualitis_project_label` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`label_name` varchar(25) not null,
`project_id` bigint(20) not null,
PRIMARY KEY (`id`),
CONSTRAINT `UK_project_id_label_name` UNIQUE KEY (`label_name`, `project_id`),
CONSTRAINT `FK_qualitis_project_label_project_id` FOREIGN KEY (`project_id`) REFERENCES `qualitis_project` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_project_user
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_project_user`;
CREATE TABLE `qualitis_project_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`permission` int(11) DEFAULT NULL,
`user_full_name` varchar(30) DEFAULT NULL,
`user_name` varchar(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK383dxni31ohf4rl00v5l981ny` (`project_id`),
CONSTRAINT `FK383dxni31ohf4rl00v5l981ny` FOREIGN KEY (`project_id`) REFERENCES `qualitis_project` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule`;
CREATE TABLE `qualitis_rule` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`alarm` bit(1) DEFAULT NULL,
`from_content` varchar(3010) DEFAULT NULL,
`function_content` varchar(3010) DEFAULT NULL,
`function_type` int(11) DEFAULT NULL,
`name` varchar(170) DEFAULT NULL,
`output_name` varchar(170) DEFAULT NULL,
`rule_template_name` varchar(180) DEFAULT NULL,
`rule_type` int(11) DEFAULT NULL,
`where_content` varchar(3010) DEFAULT NULL,
`parent_rule_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`rule_group_id` bigint(20) DEFAULT NULL,
`template_id` bigint(20) DEFAULT NULL,
`abort_on_failure` bit(1) DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `UK29l9s1h04gntnqv4eje2f93n4` (`project_id`,`name`),
KEY `FKltabc4x1omja141lo9la6dg4k` (`parent_rule_id`),
KEY `FK7hv5yh1en46cfwxkqdmixyrn1` (`rule_group_id`),
KEY `FKf769w3wjl2ywbue7hft6aq8c4` (`template_id`),
CONSTRAINT `FK7hv5yh1en46cfwxkqdmixyrn1` FOREIGN KEY (`rule_group_id`) REFERENCES `qualitis_rule_group` (`id`),
CONSTRAINT `FK9tcl2mktybw44ue89mk47sejs` FOREIGN KEY (`project_id`) REFERENCES `qualitis_project` (`id`),
CONSTRAINT `FKf769w3wjl2ywbue7hft6aq8c4` FOREIGN KEY (`template_id`) REFERENCES `qualitis_template` (`id`),
CONSTRAINT `FKltabc4x1omja141lo9la6dg4k` FOREIGN KEY (`parent_rule_id`) REFERENCES `qualitis_rule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule_alarm_config
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule_alarm_config`;
CREATE TABLE `qualitis_rule_alarm_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`check_template` int(11) DEFAULT NULL,
`compare_type` int(11) DEFAULT NULL,
`threshold` double DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
`template_output_meta_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKh2hr5kere1f15udbtkk7cc97n` (`rule_id`),
KEY `FKjq2m5wga1kmck2haw1o867un6` (`template_output_meta_id`),
CONSTRAINT `FKh2hr5kere1f15udbtkk7cc97n` FOREIGN KEY (`rule_id`) REFERENCES `qualitis_rule` (`id`),
CONSTRAINT `FKjq2m5wga1kmck2haw1o867un6` FOREIGN KEY (`template_output_meta_id`) REFERENCES `qualitis_template_output_meta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule_datasource
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule_datasource`;
CREATE TABLE `qualitis_rule_datasource` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cluster_name` varchar(100) DEFAULT NULL,
`col_name` varchar(500) DEFAULT NULL,
`datasource_index` int(11) DEFAULT NULL,
`db_name` varchar(100) DEFAULT NULL,
`filter` varchar(3200) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`table_name` varchar(100) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKcbr5lp3b6wuh669qglf3dnc6r` (`rule_id`),
CONSTRAINT `FKcbr5lp3b6wuh669qglf3dnc6r` FOREIGN KEY (`rule_id`) REFERENCES `qualitis_rule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule_datasource_mapping
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule_datasource_mapping`;
CREATE TABLE `qualitis_rule_datasource_mapping` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`left_column_names` varchar(2000) DEFAULT NULL,
`left_statement` varchar(3000) DEFAULT NULL,
`operation` int(11) DEFAULT NULL,
`right_column_names` varchar(2000) DEFAULT NULL,
`right_statement` varchar(3000) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKnooevousm8ai6i1b82407cq4x` (`rule_id`),
CONSTRAINT `FKnooevousm8ai6i1b82407cq4x` FOREIGN KEY (`rule_id`) REFERENCES `qualitis_rule` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule_group
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule_group`;
CREATE TABLE `qualitis_rule_group` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`rule_group_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_rule_variable
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_rule_variable`;
CREATE TABLE `qualitis_rule_variable` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`cluster_name` varchar(50) DEFAULT NULL,
`db_name` varchar(50) DEFAULT NULL,
`input_action_step` int(11) DEFAULT NULL,
`origin_value` varchar(100) DEFAULT NULL,
`table_name` varchar(50) DEFAULT NULL,
`value` varchar(500) DEFAULT NULL,
`rule_id` bigint(20) DEFAULT NULL,
`template_mid_table_input_meta_id` bigint(20) DEFAULT NULL,
`template_statistics_input_meta_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKgvkh60999kiv1hfc5qtr2b7rt` (`rule_id`),
KEY `FK9cipdyq5a9xmwfdvybhcw2i8d` (`template_mid_table_input_meta_id`),
KEY `FKkl4loc3y5qpb618cwglvhyd5h` (`template_statistics_input_meta_id`),
CONSTRAINT `FK9cipdyq5a9xmwfdvybhcw2i8d` FOREIGN KEY (`template_mid_table_input_meta_id`) REFERENCES `qualitis_template_mid_table_input_meta` (`id`),
CONSTRAINT `FKgvkh60999kiv1hfc5qtr2b7rt` FOREIGN KEY (`rule_id`) REFERENCES `qualitis_rule` (`id`),
CONSTRAINT `FKkl4loc3y5qpb618cwglvhyd5h` FOREIGN KEY (`template_statistics_input_meta_id`) REFERENCES `qualitis_template_statistic_input_meta` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template`;
CREATE TABLE `qualitis_template` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`action_type` int(11) DEFAULT NULL,
`cluster_num` int(11) DEFAULT NULL,
`datasource_type` int(11) DEFAULT NULL,
`db_num` int(11) DEFAULT NULL,
`field_num` int(11) DEFAULT NULL,
`mid_table_action` varchar(5000) DEFAULT NULL,
`name` varchar(180) DEFAULT NULL,
`save_mid_table` bit(1) DEFAULT NULL,
`show_sql` varchar(5000) DEFAULT NULL,
`table_num` int(11) DEFAULT NULL,
`template_type` int(11) DEFAULT NULL,
`parent_template_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKpwhmy0wvpm0ycoifta3nh0fyc` (`parent_template_id`),
CONSTRAINT `FKpwhmy0wvpm0ycoifta3nh0fyc` FOREIGN KEY (`parent_template_id`) REFERENCES `qualitis_template` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template_mid_table_input_meta
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template_mid_table_input_meta`;
CREATE TABLE `qualitis_template_mid_table_input_meta` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`concat_template` varchar(3000) DEFAULT NULL,
`field_type` int(11) DEFAULT NULL,
`input_type` int(11) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`placeholder` varchar(30) DEFAULT NULL,
`placeholder_description` varchar(300) DEFAULT NULL,
`regexp_type` int(11) DEFAULT NULL,
`replace_by_request` bit(1) DEFAULT NULL,
`parent_id` bigint(20) DEFAULT NULL,
`template_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK15rlx42bkg7syh6apwnsss18r` (`parent_id`),
KEY `FK7antueilfq1itsq2cx29q3xlf` (`template_id`),
CONSTRAINT `FK15rlx42bkg7syh6apwnsss18r` FOREIGN KEY (`parent_id`) REFERENCES `qualitis_template_mid_table_input_meta` (`id`),
CONSTRAINT `FK7antueilfq1itsq2cx29q3xlf` FOREIGN KEY (`template_id`) REFERENCES `qualitis_template` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30005 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template_output_meta
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template_output_meta`;
CREATE TABLE `qualitis_template_output_meta` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`field_name` varchar(50) DEFAULT NULL,
`field_type` int(11) DEFAULT NULL,
`output_name` varchar(150) DEFAULT NULL,
`template_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKia38171mjfi5ix7esd968c0s5` (`template_id`),
CONSTRAINT `FKia38171mjfi5ix7esd968c0s5` FOREIGN KEY (`template_id`) REFERENCES `qualitis_template` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template_regexp_expr
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template_regexp_expr`;
CREATE TABLE `qualitis_template_regexp_expr` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key_name` varchar(255) DEFAULT NULL,
`regexp_type` int(11) DEFAULT NULL,
`regexp_value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template_statistic_input_meta
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template_statistic_input_meta`;
CREATE TABLE `qualitis_template_statistic_input_meta` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`func_name` varchar(5) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`result_type` varchar(255) DEFAULT NULL,
`value` varchar(50) DEFAULT NULL,
`value_type` int(11) DEFAULT NULL,
`template_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKi1irb2fkjcu16pe7jdwsr7h11` (`template_id`),
CONSTRAINT `FKi1irb2fkjcu16pe7jdwsr7h11` FOREIGN KEY (`template_id`) REFERENCES `qualitis_template` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for qualitis_template_user
-- ----------------------------
DROP TABLE IF EXISTS `qualitis_template_user`;
CREATE TABLE `qualitis_template_user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`template_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKp4il6ga20u8v6yoyibplo971i` (`template_id`),
CONSTRAINT `FKp4il6ga20u8v6yoyibplo971i` FOREIGN KEY (`template_id`) REFERENCES `qualitis_template` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- -------------------------- 插入数据库预先数据 -------------------------
-- 管理员账户
insert into qualitis_auth_user(id, username, password, chinese_name, department) values(1, "admin", "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918", "管理员", "管理员");
-- 管理员角色
insert into qualitis_auth_role(id, name) values(1, "ADMIN");
insert into qualitis_auth_role(id, name) values(2, "PROJECTOR");
-- 管理员权限
insert into qualitis_auth_permission(id, url, method) values(1, "/qualitis/**", "GET"), (2, "/qualitis/**", "POST"), (3, "/qualitis/**", "DELETE"), (4, "/qualitis/**", "PUT");
insert into qualitis_auth_permission(id, url, method) values(5, "/qualitis/api/v1/projector/**", "GET"), (6, "/qualitis/api/v1/projector/**", "POST"), (7, "/qualitis/api/v1/projector/**", "DELETE"), (8, "/qualitis/api/v1/projector/**", "PUT");
insert into qualitis_auth_user_role(id, user_id, role_id) values("5932425efdfe49949587f51a54e0affa", 1, 1);
insert into qualitis_auth_role_permission(id, role_id, permission_id) values("5932425efdfe49949587f51a54e0affb", 1, 1), ("5932425efdfe49949587f51a54e0affc", 1, 2), ("5932425efdfe49949587f51a54e0affd", 1, 3), ("5932425efdfe49949587f51a54e0affe", 1, 4);
insert into qualitis_auth_role_permission(id, role_id, permission_id) values("5932425efdfe49949587f51a54e0afaa", 2, 5), ("5932425efdfe49949587f51a54e0afab", 2, 6), ("5932425efdfe49949587f51a54e0afac", 2, 7), ("5932425efdfe49949587f51a54e0afad", 2, 8);
-- 规则模版
-- 字段非空检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(1, "{&NULL_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} is null)", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} is null)");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 1, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 1, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 1, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, name, func_name, value, value_type, result_type)
values(1, "{&RECORD_NUMBER_OF_NULL}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, id, output_name, field_name, field_type)
values(1, 1, "{&RECORD_NUMBER_OF_NULL}", "count", 1);
-- 主键检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(2, "{&PRIMARY_KEY_VERIFICATION}", 1, 1, 1, -1, 1, "select * from ${db}.${table} where ${filter} and (${field_concat}) in (select ${field_concat} from ${db}.${table} where ${filter} group by ${field_concat} having count(*) > 1)", 1, 1, true,
"select count(*) from ${db}.${table} where ${filter} and (${field_concat}) in (select ${field_concat} from ${db}.${table} where ${filter} group by ${field_concat} having count(*) > 1)");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 2, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 2, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD_CONCAT}", 2, "field_concat", 6, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field_concat}");
insert into qualitis_template_statistic_input_meta(template_id, name, func_name, value, value_type, result_type)
values(2, "{&PRIMARY_KEY_MULTIPLE_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, id, output_name, field_name, field_type)
values(2, 2, "{&PRIMARY_KEY_MULTIPLE_NUMBER}", "count", 1);
-- 表行数检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(3, "{&TABLE_RECORD_NUMBER_VERIFICATION}", 1, 1, 1, 0, 1, "select count(*) as myCount from ${db}.${table} where ${filter}", 1, 1, false,
"select count(*) from ${db}.${table} where ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 3, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 3, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_statistic_input_meta(template_id, name, func_name, value, value_type, result_type)
values(3, "{&TABLE_RECORD_NUMBER}", "max", "myCount", 1, "Long");
insert into qualitis_template_output_meta(template_id, id, output_name, field_name, field_type)
values(3, 3, "{&TABLE_RECORD_NUMBER}", "max", 1);
-- 平均值检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(4, "{&AVERAGE_VALUE_VERIFICATION}", 1, 1, 1, 1, 1, "select avg(${field}) as myAvg from ${db}.${table} where ${filter}", 1, 1, false,
"select avg(${field}) from ${db}.${table} where ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 4, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 4, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 4, "field", 4, 1, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(4, 4, "{&AVERAGE_VALUE}", "max", "myAvg", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(4, "{&AVERAGE_VALUE}", "max", 1);
-- 总和检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(5, "{&SUM_VALUE_VERIFICATION}", 1, 1, 1, 1, 1, "select sum(${field}) as mySum from ${db}.${table} where ${filter}", 1, 1, false,
"select sum(${field}) from ${db}.${table} where ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 5, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 5, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 5, "field", 4, 1, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(5, 5, "{&SUM_VALUE}", "max", "mySum", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(5, "{&SUM_VALUE}", "max", 1);
-- 最大值检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(6, "{&MAX_VALUE_VERIFICATION}", 1, 1, 1, 1, 1, "select max(${field}) as myMax from ${db}.${table} where ${filter}", 1, 1, false,
"select max(${field}) from ${db}.${table} where ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 6, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 6, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 6, "field", 4, 1, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(6, 6, "{&MAX_VALUE}", "max", "myMax", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(6, "{&MAX_VALUE}", "max", 1);
-- 最小值检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(7, "{&MIN_VALUE_VERIFICATION}", 1, 1, 1, 1, 1, "select min(${field}) as myMin from ${db}.${table} where ${filter}", 1, 1, false,
"select min(${field}) from ${db}.${table} where ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 7, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 7, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 7, "field", 4, 1, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(7, 7, "{&MIN_VALUE}", "max", "myMin", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(7, "{&MIN_VALUE}", "max", 1);
-- 正则表达式检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(8, "{®EXP_EXPRESSION_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 8, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 8, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 8, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{®EXP_EXPRESSION}", 8, "regexp", 7, null, true, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${regexp},{&PLEASE_TYPE_IN_REGEXP_EXPRESSION}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(8, 8, "{&MISMATCH_RECORD_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(8, "{&MISMATCH_RECORD_NUMBER}", "count", 1);
-- 时间格式检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(9, "{&DATE_FORMAT_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 9, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 9, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 9, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATE_FORMAT}", 9, "regexp", 7, null, false, 1, "{&REPLACE_PLACEHOLDER_IN_SQL}${regexp},{&CHOOSE_APPROPRIATE}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(9, 9, "{&MISMATCH_DATE_FORMAT_RECORD_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(9, "{&MISMATCH_DATE_FORMAT_RECORD_NUMBER}", "count", 1);
insert into qualitis_template_regexp_expr(key_name, regexp_type, regexp_value) values("yyyyMMdd", 1, "^(?:(?!0000)[0-9]{4}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)0229)$");
insert into qualitis_template_regexp_expr(key_name, regexp_type, regexp_value) values("yyyy-MM-dd", 1, "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$");
insert into qualitis_template_regexp_expr(key_name, regexp_type, regexp_value) values("yyyyMMddHH", 1, "^(?:(?!0000)[0-9]{4}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)0229)([01][0-9]|2[0-3])$");
-- 数值格式检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(10, "{&NUMBER_FORMAT_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 10, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 10, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 10, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&NUMBER_FORMAT_REGEXP_EXPRESSION}", 10, "regexp", 7, null, false, 2, "{&REPLACE_PLACEHOLDER_IN_SQL}${regexp}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(10, 10, "{&RECORD_NUMBER_OF_MISMATCH_NUMBER_FORMAT}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(10, "{&RECORD_NUMBER_OF_MISMATCH_NUMBER_FORMAT}", "count", 1);
insert into qualitis_template_regexp_expr(regexp_type, regexp_value) values(2, "-?[0-9]+(\\\\.[0-9])?[0-9]*$");
-- 枚举值检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(11, "{&ENUM_VALUE_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} not in ( ${list} ) or ${field} is null)", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} not in ( ${list} ) or ${field} is null)");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 11, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 11, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 11, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&ENUM_VALUE}", 11, "list", 8, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${list},示例:'1,2,3,4'");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(11, 11, "{&RECORD_NUMBER_OF_NOT_IN_ENUM_VALUE}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(11, "{&RECORD_NUMBER_OF_NOT_IN_ENUM_VALUE}", "count", 1);
-- 数值范围检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(12, "{&NUMBER_RANGE_VERIFICATION}", 1, 1, 1, 0, 1, "select * from ${db}.${table} where (${filter}) and (not (${filter2}))", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (not (${filter2}))");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 12, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 12, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&NUMBER_RANGE}", 12, "filter2", 1, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${filter2},{&PLEASE_TYPE_IN_NUMBER_RANGE}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(12, 12, "{&RECORD_NUMBER_OF_NOT_NUMBER_RANGE}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(12, "{&RECORD_NUMBER_OF_NOT_NUMBER_RANGE}", "count", 1);
-- 身份证检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(13, "{&IDENTITY_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} not regexp '${regexp}')");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 13, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 13, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 13, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&IDENTITY_REGEXP_EXPRESSION}", 13, "regexp", 7, null, false, 3, "{&REPLACE_PLACEHOLDER_IN_SQL}${regexp}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(13, 13, "{&MISMATCH_IDENTITY_RECORD_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(13, "{&MISMATCH_IDENTITY_RECORD_NUMBER}", "count", 1);
insert into qualitis_template_regexp_expr(regexp_type, regexp_value) values(3, "^[1-9][0-9]{5}(18|19|20)[0-9]{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$");
-- 逻辑类检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(14, "{&LOGIC_VERIFICATION}", 1, 1, 1, 0, 1, "select * from ${db}.${table} where (${filter}) and ( (${condition1}) and not (${condition2}) )", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and ( (${condition1}) and not (${condition2}) )");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 14, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 14, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&PRE_CONDITION}", 14, "condition1", 9, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${condition1},{&PLEASE_TYPE_IN_PRE_CONDITION}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&POST_CONDITION}", 14, "condition2", 9, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${condition2},{&PLEASE_TYPE_IN_POST_CONDITION}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(14, 14, "{&RECORD_NUMBER_OF_MISMATCH_LOGIC_VERIFICATION}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(14, "{&RECORD_NUMBER_OF_MISMATCH_LOGIC_VERIFICATION}", "count", 1);
-- 空字符串检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(15, "{&EMPTY_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (trim(${field}) = '' )", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (trim(${field}) = '' )");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 15, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 15, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 15, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(15, id, "{&NULL_AND_EMPTY_RECORD_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(15, "{&NULL_AND_EMPTY_RECORD_NUMBER}", "count", 1);
-- 空值或空字符串检测
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(16, "{&NULL_AND_EMPTY_VERIFICATION}", 1, 1, 1, 1, 1, "select * from ${db}.${table} where (${filter}) and (${field} is null or trim(${field}) = '' )", 1, 1, true,
"select count(*) from ${db}.${table} where (${filter}) and (${field} is null or trim(${field}) = '' )");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&DATABASE}", 16, "db", 5, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TABLE}", 16, "table", 3, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FIELD}", 16, "field", 4, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${field}");
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(16, 16, "{&NULL_AND_EMPTY_RECORD_NUMBER}", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(16, "{&NULL_AND_EMPTY_RECORD_NUMBER}", "count", 1);
-- 跨表模版
-- 跨表准确性校验
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(17, "{&MULTI-TABLE_ACCURACY_VERIFICATION}", 1, 2, 2, 0, 1, "SELECT tmp1.* FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ( NOT (${source_column_is_null}) AND (${target_column_is_null}) )", 3, 1, true,
"SELECT count(tmp1.*) FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ( NOT (${source_column_is_null}) AND (${target_column_is_null}) )");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_DATABASE}", 17, "source_db", 11, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_TABLE}", 17, "source_table", 12, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_DATABASE}", 17, "target_db", 13, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_TABLE}", 17, "target_table", 14, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_table}");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(10000, "{&JOIN_CONDITION}", 17, "mapping_argument", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${mapping_argument}", "(${left_statement} ${operation} ${right_statement})");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(10001, "{&SOURCE_TABLE_COLUMN_IS_NULL}", 17, "source_column_is_null", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_column_is_null}", "${source_column} IS NULL");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(10002, "{&TARGET_TABLE_COLUMN_IS_NULL}", 17, "target_column_is_null", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_column_is_null}", "${target_column} IS NULL");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_LEFT_EXPRESSION}", null, "left_statement", 15, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${left_statement}", 10000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_OPERATION}", null, "operation", 16, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${operation}", 10000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_RIGHT_EXPRESSION}", null, "right_statement", 17, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${right_statement}", 10000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_LEFT_FILED}", null, "source_column", 18, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_column}", 10001);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_RIGHT_FILED}", null, "target_column", 19, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_column}", 10002);
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(17, 17, "", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(17, "{&DIFFERENT_RECORD_BETWEEN_SOURCE_AND_TARGET_TABLE}", "count", 1);
-- 附属模版
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql, parent_template_id)
values(18, "{&MULTI-TABLE_ACCURACY_VERIFICATION_CHILD_TEMPLATE}", 1, 2, 2, 0, 1, "SELECT tmp1.* FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ( NOT (${source_column_is_null}) AND (${target_column_is_null}) )", 3, 1, true,
"SELECT count(tmp1.*) FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ( NOT (${source_column_is_null}) AND (${target_column_is_null}) )", 17);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_DATABASE}", 18, "source_db", 11, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_TABLE}", 18, "source_table", 12, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_DATABASE}", 18, "target_db", 13, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_TABLE}", 18, "target_table", 14, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_table}");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(20000, "{&JOIN_OPERATION}", 18, "mapping_argument", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${mapping_argument}", "(${left_statement} ${operation} ${right_statement})");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(20001, "{&SOURCE_TABLE_COLUMN_IS_NULL}", 18, "source_column_is_null", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_column_is_null}", "${source_column} IS NULL");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(20002, "{&TARGET_TABLE_COLUMN_IS_NULL}", 18, "target_column_is_null", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_column_is_null}", "${target_column} IS NULL");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_LEFT_EXPRESSION}", null, "left_statement", 15, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${left_statement}", 20000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_OPERATION}", null, "operation", 16, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${operation}", 20000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_RIGHT_EXPRESSION}", null, "right_statement", 17, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${right_statement}", 20000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_LEFT_FILED}", null, "source_column", 18, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_column}", 20001);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_RIGHT_FILED}", null, "target_column", 19, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_column}", 20002);
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(18, 18, "", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(18, "{&DIFFERENT_RECORD_BETWEEN_TARGET_AND_SOURCE_TABLE}", "count", 1);
-- 跨表通用校验
insert into qualitis_template(id, name, cluster_num, db_num, table_num, field_num, datasource_type, mid_table_action, template_type, action_type, save_mid_table, show_sql)
values(19, "{&MULTI-TABLE_COMMON_VERIFICATION}", 1, 2, 2, 0, 1, "SELECT tmp1.* FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ${filter}", 3, 1, true,
"SELECT count(tmp1.*) FROM (SELECT * FROM ${source_db}.${source_table} WHERE ${filter_left}) tmp1 LEFT JOIN (SELECT * FROM ${target_db}.${target_table} WHERE ${filter_right}) tmp2 ON ${mapping_argument} WHERE ${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_DATABASE}", 19, "source_db", 11, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&SOURCE_TABLE}", 19, "source_table", 12, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${source_table}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_DATABASE}", 19, "target_db", 13, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_db}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&TARGET_TABLE}", 19, "target_table", 14, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${target_table}");
insert into qualitis_template_mid_table_input_meta(id, name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, concat_template)
values(30000, "{&JOIN_OPERATION}", 19, "mapping_argument", 10, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${mapping_argument}", "(${left_statement} ${operation} ${right_statement})");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description)
values("{&FILTER_IN_RESULT}", 19, "filter", 9, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${filter}");
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_LEFT_EXPRESSION}", null, "left_statement", 15, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${left_statement}", 30000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_OPERATION}", null, "operation", 16, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${operation}", 30000);
insert into qualitis_template_mid_table_input_meta(name, template_id, placeholder, input_type, field_type, replace_by_request, regexp_type, placeholder_description, parent_id)
values("{&JOIN_RIGHT_EXPRESSION}", null, "right_statement", 17, null, false, null, "{&REPLACE_PLACEHOLDER_IN_SQL}${right_statement}", 30000);
insert into qualitis_template_statistic_input_meta(template_id, id, name, func_name, value, value_type, result_type)
values(19, 19, "", "count", "*", 1, "Long");
insert into qualitis_template_output_meta(template_id, output_name, field_name, field_type)
values(19, "{&NOT_PASS_VERIFICATION_RECORD_NUMBER}", "count", 1);
insert into qualitis_config_system(id, key_name, `value`) values(1, "save_database_pattern", "${USERNAME}_ind");
insert into qualitis_auth_list(app_id, app_token) values("linkis_id", "a33693de51"); | the_stack |
-- WARNING: this database is shared with graphile-utils, don't run the tests in parallel!
drop schema if exists
a,
b,
c,
d,
inheritence,
smart_comment_relations,
ranges,
index_expressions,
simple_collections,
live_test,
large_bigint,
network_types,
named_query_builder,
enum_tables,
geometry
cascade;
drop extension if exists tablefunc;
drop extension if exists intarray;
drop extension if exists hstore;
create schema a;
create schema b;
create schema c;
create schema d;
create schema large_bigint;
alter default privileges revoke execute on functions from public;
-- Troublesome extensions install annoying things in our schema; we want to
-- ensure this doesn't make us crash.
create extension tablefunc with schema a;
create extension hstore;
create extension intarray;
comment on schema a is 'The a schema.';
comment on schema b is 'qwerty';
create domain b.not_null_url as character varying(2048) not null;
create type b.wrapped_url as (
url b.not_null_url
);
create domain b.email as text
check (value ~* '^.+@.+\..+$');
create table a.no_primary_key (
id int not null unique,
str text not null
);
create table c.person (
id serial primary key,
person_full_name varchar not null,
aliases text[] not null default '{}',
about text,
email b.email not null unique,
site b.wrapped_url default null,
config hstore,
last_login_from_ip inet,
last_login_from_subnet cidr,
user_mac macaddr,
created_at timestamp default current_timestamp
);
do $_$
begin
if current_setting('server_version_num')::int >= 90500 then
-- JSONB supported
-- current_setting(x, true) supported
create function c.current_user_id() returns int as $$
select nullif(current_setting('jwt.claims.user_id', true), '')::int;
$$ language sql stable;
else
execute 'alter database ' || quote_ident(current_database()) || ' set jwt.claims.user_id to ''''';
create function c.current_user_id() returns int as $$
select nullif(current_setting('jwt.claims.user_id'), '')::int;
$$ language sql stable;
end if;
end;
$_$ language plpgsql;
-- This is to test that "one-to-one" relationships work on primary keys
create table c.person_secret (
person_id int not null primary key references c.person on delete cascade,
sekrit text
);
comment on column c.person_secret.sekrit is E'@name secret\r\nA secret held by the associated Person';
comment on constraint person_secret_person_id_fkey on c.person_secret is E'@forwardDescription The `Person` this `PersonSecret` belongs to.\n@backwardDescription This `Person`''s `PersonSecret`.';
comment on table c.person_secret is E'@deprecated This is deprecated (comment on table c.person_secret).\nTracks the person''s secret';
-- This is to test that "one-to-one" relationships also work on unique keys
create table c.left_arm (
id serial primary key,
person_id int not null default c.current_user_id() unique references c.person on delete cascade,
length_in_metres float,
mood text not null default 'neutral'
);
comment on table c.left_arm is 'Tracks metadata about the left arms of various people';
-- This should not add a query to the schema
create unique index uniq_person__email_id_3 on c.person (email) where (id = 3);
comment on table c.person is 'Person test comment';
comment on column c.person.id is 'The primary unique identifier for the person';
comment on column c.person.person_full_name is E'@name name\nThe person’s name';
comment on column c.person.site is '@deprecated Don’t use me';
create function c.person_exists(person c.person, email b.email) returns boolean as $$
select exists(select 1 from c.person where person.email = person_exists.email);
$$ language sql stable;
comment on function c.person_exists(person c.person, email b.email) is '@deprecated This is deprecated (comment on function c.person_exists).';
create type a.an_enum as enum('awaiting',
'rejected',
'published',
'*',
'**',
'***',
'foo*',
'foo*_',
'_foo*',
'*bar',
'*bar_',
'_*bar_',
'*baz*',
'_*baz*_',
'%',
'>=',
'~~',
'$'
);
create type a.comptype as (
schedule timestamptz,
is_optimised boolean
);
create domain b.guid
as character varying(15)
default '000000000000000'::character varying
constraint guid_conformity check (value::text ~ '^[a-zA-Z0-9]{15}$'::text);
create or replace function b.guid_fn(g b.guid) returns b.guid as $$
select g;
$$ language sql volatile;
create table a.post (
id serial primary key,
headline text not null,
body text,
author_id int4 default c.current_user_id() references c.person(id) on delete cascade,
enums a.an_enum[],
comptypes a.comptype[]
);
CREATE INDEX ON "a"."post"("author_id");
-- This should not add a query to the schema
create unique index uniq_post__headline_author_3 on a.post (headline) where (author_id = 3);
create type a.letter as enum ('a', 'b', 'c', 'd');
create type b.color as enum ('red', 'green', 'blue');
create type b.enum_caps as enum ('FOO_BAR', 'BAR_FOO', 'BAZ_QUX', '0_BAR');
create type b.enum_with_empty_string as enum ('', 'one', 'two');
create type c.compound_type as (
a int,
b text,
c b.color,
d uuid,
e b.enum_caps,
f b.enum_with_empty_string,
g interval,
foo_bar int
);
create type b.nested_compound_type as (
a c.compound_type,
b c.compound_type,
baz_buz int
);
create type c.floatrange as range (subtype = float8, subtype_diff = float8mi);
comment on type c.compound_type is 'Awesome feature!';
create view b.updatable_view as
select
id as x,
person_full_name as name,
about as description,
2 as constant
from
c.person;
comment on view b.updatable_view is E'@uniqueKey x\nYOYOYO!!';
comment on column b.updatable_view.constant is 'This is constantly 2';
create view a.non_updatable_view as select 2;
create table c.compound_key (
person_id_2 int references c.person(id) on delete cascade,
person_id_1 int references c.person(id) on delete cascade,
extra boolean,
primary key (person_id_1, person_id_2)
);
create table a.foreign_key (
person_id int references c.person(id) on delete cascade,
compound_key_1 int,
compound_key_2 int,
foreign key (compound_key_1, compound_key_2) references c.compound_key(person_id_1, person_id_2) on delete cascade
);
alter table a.foreign_key add constraint second_fkey
foreign key (compound_key_1, compound_key_2) references c.compound_key(person_id_1, person_id_2) on delete cascade;
create table a.unique_foreign_key (
compound_key_1 int,
compound_key_2 int,
foreign key (compound_key_1, compound_key_2) references c.compound_key(person_id_1, person_id_2) on delete cascade,
unique(compound_key_1, compound_key_2)
);
alter table a.unique_foreign_key add constraint second_fkey
foreign key (compound_key_1, compound_key_2) references c.compound_key(person_id_1, person_id_2) on delete cascade;
-- We're just testing the relations work as expected, we don't need everything else.
comment on table a.unique_foreign_key is E'@omit create,update,delete,all,order,filter';
create table c.edge_case (
not_null_has_default boolean not null default false,
wont_cast_easy smallint,
drop_me text,
row_id integer
);
alter table c.edge_case drop column drop_me;
create function c.edge_case_computed(edge_case c.edge_case) returns text as $$ select 'hello world'::text $$ language sql stable;
create domain a.an_int as integer;
create domain b.another_int as a.an_int;
create type a.an_int_range as range (
subtype = a.an_int
);
create domain c.text_array_domain as text[];
create domain c.int8_array_domain as int8[];
create table b.types (
id serial primary key,
"smallint" smallint not null,
"bigint" bigint not null,
"numeric" numeric not null,
"decimal" decimal not null,
"boolean" boolean not null,
"varchar" varchar not null,
"enum" b.color not null,
"enum_array" b.color[] not null,
"domain" a.an_int not null,
"domain2" b.another_int not null,
"text_array" text[] not null,
"json" json not null,
"jsonb" jsonb not null,
"nullable_range" numrange,
"numrange" numrange not null,
"daterange" daterange not null,
"an_int_range" a.an_int_range not null,
"timestamp" timestamp not null,
"timestamptz" timestamptz not null,
"date" date not null,
"time" time not null,
"timetz" timetz not null,
"interval" interval not null,
"interval_array" interval[] not null,
"money" money not null,
"compound_type" c.compound_type not null,
"nested_compound_type" b.nested_compound_type not null,
"nullable_compound_type" c.compound_type,
"nullable_nested_compound_type" b.nested_compound_type,
"point" point not null,
"nullablePoint" point,
"inet" inet,
"cidr" cidr,
"macaddr" macaddr,
"regproc" regproc,
"regprocedure" regprocedure,
"regoper" regoper,
"regoperator" regoperator,
"regclass" regclass,
"regtype" regtype,
"regconfig" regconfig,
"regdictionary" regdictionary,
"text_array_domain" c.text_array_domain,
"int8_array_domain" c.int8_array_domain
);
comment on table b.types is E'@foreignKey (smallint) references a.post\n@foreignKey (id) references a.post';
create function b.throw_error() returns trigger as $$
begin
raise exception 'Nope.';
return new;
end;
$$ language plpgsql;
create trigger dont_delete before delete on b.types for each row execute procedure b.throw_error();
create function a.add_1_mutation(int, int) returns int as $$ select $1 + $2 $$ language sql volatile strict;
create function a.add_2_mutation(a int, b int default 2) returns int as $$ select $1 + $2 $$ language sql strict;
create function a.add_3_mutation(a int, int) returns int as $$ select $1 + $2 $$ language sql volatile;
create function a.add_4_mutation(int, b int default 2) returns int as $$ select $1 + $2 $$ language sql;
create function a.add_4_mutation_error(int, b int default 2) returns int as $$ begin raise exception 'Deliberate error'; end $$ language plpgsql;
create function a.add_1_query(int, int) returns int as $$ select $1 + $2 $$ language sql immutable strict;
create function a.add_2_query(a int, b int default 2) returns int as $$ select $1 + $2 $$ language sql stable strict;
create function a.add_3_query(a int, int) returns int as $$ select $1 + $2 $$ language sql immutable;
create function a.add_4_query(int, b int default 2) returns int as $$ select $1 + $2 $$ language sql stable;
create function a.optional_missing_middle_1(int, b int default 2, c int default 3) returns int as $$ select $1 + $2 + $3 $$ language sql immutable strict;
create function a.optional_missing_middle_2(a int, b int default 2, c int default 3) returns int as $$ select $1 + $2 + $3 $$ language sql immutable strict;
create function a.optional_missing_middle_3(a int, int default 2, c int default 3) returns int as $$ select $1 + $2 + $3 $$ language sql immutable strict;
create function a.optional_missing_middle_4(int, b int default 2, int default 3) returns int as $$ select $1 + $2 + $3 $$ language sql immutable strict;
create function a.optional_missing_middle_5(a int, int default 2, int default 3) returns int as $$ select $1 + $2 + $3 $$ language sql immutable strict;
comment on function a.add_1_mutation(int, int) is 'lol, add some stuff 1 mutation';
comment on function a.add_2_mutation(int, int) is 'lol, add some stuff 2 mutation';
comment on function a.add_3_mutation(int, int) is 'lol, add some stuff 3 mutation';
comment on function a.add_4_mutation(int, int) is 'lol, add some stuff 4 mutation';
comment on function a.add_1_query(int, int) is 'lol, add some stuff 1 query';
comment on function a.add_2_query(int, int) is 'lol, add some stuff 2 query';
comment on function a.add_3_query(int, int) is 'lol, add some stuff 3 query';
comment on function a.add_4_query(int, int) is 'lol, add some stuff 4 query';
create function b.mult_1(int, int) returns int as $$ select $1 * $2 $$ language sql;
create function b.mult_2(int, int) returns int as $$ select $1 * $2 $$ language sql called on null input;
create function b.mult_3(int, int) returns int as $$ select $1 * $2 $$ language sql returns null on null input;
create function b.mult_4(int, int) returns int as $$ select $1 * $2 $$ language sql strict;
create function c.json_identity(json json) returns json as $$ select json $$ language sql immutable;
create function c.json_identity_mutation(json json) returns json as $$ select json $$ language sql;
create function c.jsonb_identity(json jsonb) returns jsonb as $$ select json $$ language sql immutable;
create function c.jsonb_identity_mutation(json jsonb) returns jsonb as $$ select json $$ language sql;
create function c.jsonb_identity_mutation_plpgsql(_the_json jsonb) returns jsonb as $$ declare begin return _the_json; end; $$ language plpgsql strict security definer;
create function c.jsonb_identity_mutation_plpgsql_with_default(_the_json jsonb default '[]') returns jsonb as $$ declare begin return _the_json; end; $$ language plpgsql strict security definer;
create function c.types_query(a bigint, b boolean, c varchar, d integer[], e json, f c.floatrange) returns boolean as $$ select false $$ language sql stable strict;
create function c.types_mutation(a bigint, b boolean, c varchar, d integer[], e json, f c.floatrange) returns boolean as $$ select false $$ language sql strict;
create function b.compound_type_query(object c.compound_type) returns c.compound_type as $$ select (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type $$ language sql stable;
create function c.compound_type_set_query() returns setof c.compound_type as $$ select (1, '2', 'blue', null, '0_BAR', '', interval '18 seconds', 7)::c.compound_type $$ language sql stable;
create function b.compound_type_array_query(object c.compound_type) returns c.compound_type[] as $$ select ARRAY[object, (null, null, null, null, null, null, null, null)::c.compound_type, (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type]; $$ language sql stable;
create function b.compound_type_mutation(object c.compound_type) returns c.compound_type as $$ select (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type $$ language sql;
create function b.compound_type_set_mutation(object c.compound_type) returns setof c.compound_type as $$ begin return next object; return next (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type; end; $$ language plpgsql volatile;
create function b.compound_type_array_mutation(object c.compound_type) returns c.compound_type[] as $$ select ARRAY[object, (null, null, null, null, null, null, null, null)::c.compound_type, (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type]; $$ language sql volatile;
create function c.table_query(id int) returns a.post as $$ select * from a.post where id = $1 $$ language sql stable;
create function c.table_mutation(id int) returns a.post as $$ select * from a.post where id = $1 $$ language sql;
create function c.table_set_query() returns setof c.person as $$ select * from c.person $$ language sql stable;
create function c.table_set_query_plpgsql() returns setof c.person as $$ begin return query select * from c.person; end $$ language plpgsql stable;
comment on function c.table_set_query() is E'@sortable\n@filterable';
create function c.table_set_mutation() returns setof c.person as $$ select * from c.person order by id asc $$ language sql;
create function c.int_set_query(x int, y int, z int) returns setof integer as $$ values (1), (2), (3), (4), (x), (y), (z) $$ language sql stable;
create function c.int_set_mutation(x int, y int, z int) returns setof integer as $$ values (1), (2), (3), (4), (x), (y), (z) $$ language sql;
create function c.no_args_query() returns int as $$ select 2 $$ language sql stable;
create function c.no_args_mutation() returns int as $$ select 2 $$ language sql;
create function a.return_void_mutation() returns void as $$ begin return; end; $$ language plpgsql;
create function c.person_first_name(person c.person) returns text as $$ select split_part(person.person_full_name, ' ', 1) $$ language sql stable;
comment on function c.person_first_name(c.person) is E'@sortable';
create function c.person_friends(person c.person) returns setof c.person as $$ select friend.* from c.person as friend where friend.id in (person.id + 1, person.id + 2) $$ language sql stable;
comment on function c.person_friends(c.person) is E'@sortable';
create function c.person_first_post(person c.person) returns a.post as $$ select * from a.post where a.post.author_id = person.id order by id asc limit 1 $$ language sql stable;
create function c.compound_type_computed_field(compound_type c.compound_type) returns integer as $$ select compound_type.a + compound_type.foo_bar $$ language sql stable;
create function a.post_headline_trimmed(post a.post, length int default 10, omission text default '…') returns text as $$ select substr(post.headline, 0, length) || omission $$ language sql stable;
create function a.post_headline_trimmed_strict(post a.post, length int default 10, omission text default '…') returns text as $$ select substr(post.headline, 0, length) || omission $$ language sql stable strict;
create function a.post_headline_trimmed_no_defaults(post a.post, length int, omission text) returns text as $$ select substr(post.headline, 0, length) || omission $$ language sql stable;
create function a.post_many(posts a.post[]) returns setof a.post as $$ declare current_post a.post; begin foreach current_post in array posts loop return next current_post; end loop; end; $$ language plpgsql;
create function c.left_arm_identity(left_arm c.left_arm) returns c.left_arm as $$ select left_arm.*; $$ language sql volatile;
comment on function c.left_arm_identity(left_arm c.left_arm) is E'@arg0variant base\n@resultFieldName leftArm';
-- Procs -> custom queries
create function a.query_compound_type_array(object c.compound_type) returns c.compound_type[] as $$ select ARRAY[object, (null, null, null, null, null, null, null, null)::c.compound_type, (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type]; $$ language sql stable;
create function a.query_text_array() returns text[] as $$ select ARRAY['str1','str2','str3']; $$ language sql stable;
create function a.query_interval_array() returns interval[] as $$ select ARRAY[interval '12 seconds', interval '3 hours', interval '34567 seconds']; $$ language sql stable;
create function a.query_interval_set() returns setof interval as $$ begin return next interval '12 seconds'; return next interval '3 hours'; return next interval '34567 seconds'; end; $$ language plpgsql stable;
-- Procs -> computed columns
-- (NOTE: these are on 'post' not 'person' due to PL/pgSQL issue with person's 'site' column.)
create function a.post_computed_compound_type_array(post a.post, object c.compound_type) returns c.compound_type[] as $$ select ARRAY[object, (null, null, null, null, null, null, null, null)::c.compound_type, (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type]; $$ language sql stable;
create function a.post_computed_text_array(post a.post) returns text[] as $$ select ARRAY['str1','str2','str3']; $$ language sql stable;
create function a.post_computed_interval_array(post a.post) returns interval[] as $$ select ARRAY[interval '12 seconds', interval '3 hours', interval '34567 seconds']; $$ language sql stable;
create function a.post_computed_interval_set(post a.post) returns setof interval as $$ begin return next interval '12 seconds'; return next interval '3 hours'; return next interval '34567 seconds'; end; $$ language plpgsql stable;
create function a.post_computed_with_required_arg(post a.post, i int) returns int as $$ select 1; $$ language sql stable strict;
comment on function a.post_computed_with_required_arg(post a.post, i int) is E'@sortable\n@filterable';
create function a.post_computed_with_optional_arg(post a.post, i int = 1) returns int as $$ select 1; $$ language sql stable strict;
comment on function a.post_computed_with_optional_arg(post a.post, i int) is E'@sortable\n@filterable';
-- Procs -> custom mutations
create function a.mutation_compound_type_array(object c.compound_type) returns c.compound_type[] as $$ select ARRAY[object, (null, null, null, null, null, null, null, null)::c.compound_type, (object.a + 1, object.b, object.c, object.d, object.e, object.f, object.g, object.foo_bar)::c.compound_type]; $$ language sql volatile;
create function a.mutation_text_array() returns text[] as $$ select ARRAY['str1','str2','str3']; $$ language sql volatile;
create function a.mutation_interval_array() returns interval[] as $$ select ARRAY[interval '12 seconds', interval '3 hours', interval '34567 seconds']; $$ language sql volatile;
create function a.mutation_interval_set() returns setof interval as $$ begin return next interval '12 seconds'; return next interval '3 hours'; return next interval '34567 seconds'; end; $$ language plpgsql volatile;
-- Procs returning `type` record (to test JSON encoding)
create function b.type_function(id int) returns b.types as $$ select * from b.types where types.id = $1; $$ language sql stable;
create function b.type_function_list() returns b.types[] as $$ select array_agg(types) from b.types $$ language sql stable;
create function b.type_function_connection() returns setof b.types as $$ select * from b.types $$ language sql stable;
create function c.person_type_function(p c.person, id int) returns b.types as $$ select * from b.types where types.id = $2; $$ language sql stable;
create function c.person_type_function_list(p c.person) returns b.types[] as $$ select array_agg(types) from b.types $$ language sql stable;
create function c.person_type_function_connection(p c.person) returns setof b.types as $$ select * from b.types $$ language sql stable;
create function b.type_function_mutation(id int) returns b.types as $$ select * from b.types where types.id = $1; $$ language sql;
create function b.type_function_list_mutation() returns b.types[] as $$ select array_agg(types) from b.types $$ language sql;
create function b.type_function_connection_mutation() returns setof b.types as $$ select * from b.types $$ language sql;
create type b.jwt_token as (
role text,
exp bigint,
a integer,
b numeric,
c bigint
);
create function b.authenticate(a integer, b numeric, c bigint) returns b.jwt_token as $$ select ('yay', extract(epoch from '2037-07-12'::timestamp), a, b, c)::b.jwt_token $$ language sql;
create function b.authenticate_many(a integer, b numeric, c bigint) returns b.jwt_token[] as $$ select array[('foo', 1, a, b, c)::b.jwt_token, ('bar', 2, a + 1, b + 1, c + 1)::b.jwt_token, ('baz', 3, a + 2, b + 2, c + 2)::b.jwt_token] $$ language sql;
create function b.authenticate_fail() returns b.jwt_token as $$ select null::b.jwt_token $$ language sql;
create type b.auth_payload as (
jwt b.jwt_token,
id int,
admin bool
);
comment on type b.auth_payload is E'@foreignKey (id) references c.person';
create function b.authenticate_payload(a integer, b numeric, c bigint) returns b.auth_payload as $$ select (('yay', extract(epoch from '2037-07-12'::timestamp), a, b, c)::b.jwt_token, 1, true)::b.auth_payload $$ language sql;
create table a.similar_table_1 (
id serial primary key,
col1 int,
col2 int,
col3 int not null
);
create table a.similar_table_2 (
id serial primary key,
col3 int not null,
col4 int,
col5 int
);
CREATE TABLE a.default_value (
id serial primary key,
null_value text DEFAULT 'defaultValue!'
);
create table a.view_table (
id serial primary key,
col1 int,
col2 int
);
create view a.testview as
select id as testviewid, col1, col2
from a.view_table;
create function a.post_with_suffix(post a.post,suffix text) returns a.post as $$
insert into a.post(id,headline,body,author_id,enums,comptypes) values
(post.id,post.headline || suffix,post.body,post.author_id,post.enums,post.comptypes)
returning *;
$$ language sql volatile;
comment on function a.post_with_suffix(post a.post,suffix text) is '@deprecated This is deprecated (comment on function a.post_with_suffix).';
create function a.static_big_integer() returns setof int8 as $$
-- See https://github.com/graphile/postgraphile/issues/678#issuecomment-363659705
select generate_series(30894622507013190, 30894622507013200);
$$ language sql stable security definer;
create table a.inputs (
id serial primary key
);
comment on table a.inputs is 'Should output as Input';
create table a.patchs (
id serial primary key
);
comment on table a.patchs is 'Should output as Patch';
create table a.reserved (
id serial primary key
);
create table a.reserved_input (
id serial primary key
);
comment on table a.reserved_input is '`reserved_input` table should get renamed to ReservedInputRecord to prevent clashes with ReservedInput from `reserved` table';
create table a."reservedPatchs" (
id serial primary key
);
comment on table a."reservedPatchs" is '`reservedPatchs` table should get renamed to ReservedPatchRecord to prevent clashes with ReservedPatch from `reserved` table';
create function c.badly_behaved_function() returns setof c.person as $$
begin
return query select * from c.person order by id asc limit 1;
return next null;
return query select * from c.person order by id desc limit 1;
end;
$$ language plpgsql stable;
comment on function c.badly_behaved_function() is '@deprecated This is deprecated (comment on function c.badly_behaved_function).';
create table c.my_table (
id serial primary key,
json_data jsonb
);
-- https://github.com/graphile/postgraphile/issues/756
create domain c.not_null_timestamp timestamptz not null default '1999-06-11T00:00:00Z';
create table c.issue756 (
id serial primary key,
ts c.not_null_timestamp
);
create table c.null_test_record (
id serial primary key,
nullable_text text,
nullable_int int,
non_null_text text not null
);
create function c.issue756_mutation() returns c.issue756 as $$
begin
return null;
end;
$$ language plpgsql volatile;
create function c.issue756_set_mutation() returns setof c.issue756 as $$
begin
return query insert into c.issue756 default values returning *;
return next null;
return query insert into c.issue756 default values returning *;
end;
$$ language plpgsql volatile;
create function c.return_table_without_grants() returns c.compound_key as $$
select * from c.compound_key order by person_id_1, person_id_2 limit 1
$$ language sql stable security definer;
-- This should not add a query to the schema; return type is undefined
create function c.func_returns_untyped_record() returns record as $$
select 42;
$$ language sql stable;
-- This should not add a query to the schema; return type is undefined
create function c.func_with_input_returns_untyped_record(i int) returns record as $$
select 42;
$$ language sql stable;
-- This should not add a query to the schema; uses a record argument
create function c.func_with_record_arg(out r record) as $$
select 42;
$$ language sql stable;
create function c.func_out(out o int) as $$
select 42 as o;
$$ language sql stable;
create function c.func_out_unnamed(out int) as $$
select 42;
$$ language sql stable;
create function c.func_out_setof(out o int) returns setof int as $$
select 42 as o
union
select 43 as o;
$$ language sql stable;
create function c.func_out_out(out first_out int, out second_out text) as $$
select 42 as first_out, 'out'::text as second_out;
$$ language sql stable;
create function c.func_out_out_unnamed(out int, out text) as $$
select 42, 'out'::text;
$$ language sql stable;
create function c.func_out_out_setof(out o1 int, out o2 text) returns setof record as $$
select 42 as o1, 'out'::text as o2
union
select 43 as o1, 'out2'::text as o2
$$ language sql stable;
create function c.func_out_table(out c.person) as $$
select * from c.person where id = 1;
$$ language sql stable;
create function c.func_out_table_setof(out c.person) returns setof c.person as $$
select * from c.person;
$$ language sql stable;
create function c.func_out_out_compound_type(i1 int, out o1 int, out o2 c.compound_type) as $$
select i1 + 10 as o1, compound_type as o2 from b.types limit 1;
$$ language sql stable;
create function c.person_computed_out (person c.person, out o1 text) as $$
select 'o1 ' || person.person_full_name;
$$ language sql stable;
comment on function c.person_computed_out (person c.person, out o1 text) is E'@notNull\n@sortable\n@filterable';
create function c.person_computed_out_out (person c.person, out o1 text, out o2 text) as $$
select 'o1 ' || person.person_full_name, 'o2 ' || person.person_full_name;
$$ language sql stable;
create function c.person_computed_inout (person c.person, inout ino text) as $$
select ino || ' ' || person.person_full_name as ino;
$$ language sql stable;
create function c.person_computed_inout_out (person c.person, inout ino text, out o text) as $$
select ino || ' ' || person.person_full_name as ino, 'o ' || person.person_full_name as o;
$$ language sql stable;
create function c.person_computed_complex (person c.person, in a int, in b text, out x int, out y c.compound_type, out z c.person) as $$
select
a + 1 as x,
b.types.compound_type as y,
person as z
from c.person
inner join b.types on c.person.id = (b.types.id - 10)
limit 1;
$$ language sql stable;
create function c.person_computed_first_arg_inout (inout person c.person) as $$
select person;
$$ language sql stable;
create function c.person_computed_first_arg_inout_out (inout person c.person, out o int) as $$
select person, 42 as o;
$$ language sql stable;
create function c.func_out_unnamed_out_out_unnamed(out int, out o2 text, out int) as $$
select 42, 'out2'::text, 3;
$$ language sql stable;
create function c.func_in_out(i int, out o int) as $$
select i + 42 as o;
$$ language sql stable;
create function c.func_in_inout(i int, inout ino int) as $$
select i + ino as ino;
$$ language sql stable;
create function c.func_out_complex(in a int, in b text, out x int, out y c.compound_type, out z c.person) as $$
select
a + 1 as x,
b.types.compound_type as y,
person as z
from c.person
inner join b.types on c.person.id = (b.types.id - 10)
limit 1;
$$ language sql stable;
create function c.func_out_complex_setof(in a int, in b text, out x int, out y c.compound_type, out z c.person) returns setof record as $$
select
a + 1 as x,
b.types.compound_type as y,
person as z
from c.person
inner join b.types on c.person.id = (b.types.id - 10)
limit 1;
$$ language sql stable;
create function c.func_returns_table_one_col(i int) returns table (col1 int) as $$
select i + 42 as col1
union
select i + 43 as col1;
$$ language sql stable;
create function c.func_returns_table_multi_col(i int) returns table (col1 int, col2 text) as $$
select i + 42 as col1, 'out'::text as col2
union
select i + 43 as col1, 'out2'::text as col2;
$$ language sql stable;
create function c.mutation_in_inout(i int, inout ino int) as $$
select i + ino as ino;
$$ language sql volatile;
create function c.mutation_in_out(i int, out o int) as $$
select i + 42 as o;
$$ language sql volatile;
create function c.mutation_out(out o int) as $$
select 42 as o;
$$ language sql volatile;
create function c.mutation_out_complex(in a int, in b text, out x int, out y c.compound_type, out z c.person) as $$
select
a + 1 as x,
b.types.compound_type as y,
person as z
from c.person
inner join b.types on c.person.id = (b.types.id - 10)
limit 1;
$$ language sql volatile;
create function c.mutation_out_complex_setof(in a int, in b text, out x int, out y c.compound_type, out z c.person) returns setof record as $$
select
a + 1 as x,
b.types.compound_type as y,
person as z
from c.person
inner join b.types on c.person.id = (b.types.id - 10)
limit 1;
$$ language sql volatile;
create function c.mutation_out_out(out first_out int, out second_out text) as $$
select 42 as first_out, 'out'::text as second_out;
$$ language sql volatile;
create function c.mutation_out_out_compound_type(i1 int, out o1 int, out o2 c.compound_type) as $$
select i1 + 10 as o1, compound_type as o2 from b.types limit 1;
$$ language sql volatile;
create function c.mutation_out_out_setof(out o1 int, out o2 text) returns setof record as $$
select 42 as o1, 'out'::text as o2
union
select 43 as o1, 'out2'::text as o2
$$ language sql volatile;
create function c.mutation_out_out_unnamed(out int, out text) as $$
select 42, 'out'::text;
$$ language sql volatile;
create function c.mutation_out_setof(out o int) returns setof int as $$
select 42 as o
union
select 43 as o;
$$ language sql volatile;
create function c.mutation_out_table(out c.person) as $$
select * from c.person where id = 1;
$$ language sql volatile;
create function c.mutation_out_table_setof(out c.person) returns setof c.person as $$
select * from c.person order by id;
$$ language sql volatile;
create function c.mutation_out_unnamed(out int) as $$
select 42;
$$ language sql volatile;
create function c.mutation_out_unnamed_out_out_unnamed(out int, out o2 text, out int) as $$
select 42, 'out2'::text, 3;
$$ language sql volatile;
create function c.mutation_returns_table_multi_col(i int) returns table (col1 int, col2 text) as $$
select i + 42 as col1, 'out'::text as col2
union
select i + 43 as col1, 'out2'::text as col2;
$$ language sql volatile;
create function c.mutation_returns_table_one_col(i int) returns table (col1 int) as $$
select i + 42 as col1
union
select i + 43 as col1;
$$ language sql volatile;
create function c.query_output_two_rows(in left_arm_id int, in post_id int, inout txt text, out left_arm c.left_arm, out post a.post) as $$
begin
txt = txt || left_arm_id::text || post_id::text;
select * into $4 from c.left_arm where id = left_arm_id;
select * into $5 from a.post where id = post_id;
end;
$$ language plpgsql stable;
-- Issue #666 from graphile-engine
CREATE FUNCTION c.search_test_summaries() RETURNS TABLE (
id integer,
total_duration interval
) AS $$
WITH foo(id, total_duration) AS (
VALUES
(1, '02:01:00'::interval),
(2, '03:01:00'::interval)
) SELECT * FROM foo;
$$
LANGUAGE SQL STABLE;
COMMENT ON FUNCTION c.search_test_summaries() IS E'@simpleCollections only';
-- Begin tests for smart comments
-- Rename table and columns
create table d.original_table (
col1 int
);
comment on table d.original_table is E'@name renamed_table';
comment on column d.original_table.col1 is E'@name colA';
create function d.original_function() returns int as $$
select 1;
$$ language sql stable;
comment on function d.original_function() is E'@name renamed_function';
-- Rename relations and computed column
create table d.person (
id serial primary key,
first_name varchar,
last_name varchar,
col_no_create text default 'col_no_create',
col_no_update text default 'col_no_update',
col_no_order text default 'col_no_order',
col_no_filter text default 'col_no_filter',
col_no_create_update text default 'col_no_create_update',
col_no_create_update_order_filter text default 'col_no_create_update_order_filter',
col_no_anything text default 'col_no_anything'
);
comment on column d.person.col_no_create is E'@omit create';
comment on column d.person.col_no_update is E'@omit update';
comment on column d.person.col_no_order is E'@omit order';
comment on column d.person.col_no_filter is E'@omit filter';
comment on column d.person.col_no_create_update is E'@omit create,update';
comment on column d.person.col_no_create_update_order_filter is E'@omit create,update,order,filter';
comment on column d.person.col_no_anything is E'@omit';
create function d.person_full_name(n d.person)
returns varchar as $$
select n.first_name || ' ' || n.last_name;
$$ language sql stable;
create index full_name_idx on d.person ((first_name || ' ' || last_name));
create table d.post (
id serial primary key,
body text,
author_id int4 references d.person(id) on delete cascade
);
comment on constraint post_author_id_fkey on d.post is E'@foreignFieldName posts\n@fieldName author';
comment on constraint person_pkey on d.person is E'@fieldName findPersonById';
comment on function d.person_full_name(d.person) is E'@fieldName name';
-- Rename custom queries
create function d.search_posts(search text)
returns setof d.post as $$
select *
from d.post
where
body ilike ('%' || search || '%')
$$ language sql stable;
comment on function d.search_posts(text) is E'@name returnPostsMatching';
-- rename custom mutations
create type d.jwt_token as (
role text,
exp integer,
a integer
);
create function d.authenticate(a integer)
returns d.jwt_token as $$
select ('yay', extract(epoch from '2037-07-12'::timestamp), a)::d.jwt_token
$$ language sql;
comment on function d.authenticate(a integer) is E'@name login\n@resultFieldName token';
-- rename type
create type d.flibble as (f text);
create function d.getflamble() returns SETOF d.flibble as $$
select body from d.post
$$ language sql;
comment on type d.flibble is E'@name flamble';
-- Begin tests for omit actions
-- Omit actions on a table
create table d.films (
code integer PRIMARY KEY,
title varchar(40)
);
create table d.studios (
id integer PRIMARY KEY,
name text
);
create table d.tv_shows (
code integer PRIMARY KEY,
title varchar(40),
studio_id integer references d.studios on delete cascade
);
create table d.tv_episodes (
code integer PRIMARY KEY,
title varchar(40),
show_id integer references d.tv_shows on delete cascade
);
/*
Here's the missing indexes:
CREATE INDEX ON "a"."foreign_key"("compound_key_1", "compound_key_2");
CREATE INDEX ON "a"."foreign_key"("person_id");
CREATE INDEX ON "a"."unique_foreign_key"("compound_key_1", "compound_key_2");
CREATE INDEX ON "c"."compound_key"("person_id_1");
CREATE INDEX ON "c"."compound_key"("person_id_2");
CREATE INDEX ON "c"."left_arm"("person_id");
CREATE INDEX ON "c"."person_secret"("person_id");
*/
create schema inheritence;
create table inheritence.user (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL
);
create table inheritence.file (
id SERIAL PRIMARY KEY,
filename TEXT NOT NULL
);
create table inheritence.user_file (
user_id INTEGER NOT NULL REFERENCES inheritence.user(id)
) inherits (inheritence.file);
create schema smart_comment_relations;
create table smart_comment_relations.streets (
id serial primary key,
name text not null
);
create table smart_comment_relations.properties (
id serial primary key,
street_id int not null references smart_comment_relations.streets on delete cascade,
name_or_number text not null
);
create table smart_comment_relations.street_property (
str_id int not null references smart_comment_relations.streets on delete cascade,
prop_id int not null references smart_comment_relations.properties on delete cascade,
current_owner text,
primary key (str_id, prop_id)
);
create table smart_comment_relations.buildings (
id serial primary key,
property_id int not null references smart_comment_relations.properties on delete cascade,
name text not null,
floors int not null default 1,
is_primary boolean not null default true
);
comment on table smart_comment_relations.buildings is E'@foreignKey (name) references streets (name)|@fieldName namedAfterStreet|@foreignFieldName buildingsNamedAfterStreet|@foreignSimpleFieldName buildingsNamedAfterStreetList';
-- Only one primary building
create unique index on smart_comment_relations.buildings (property_id) where is_primary is true;
create view smart_comment_relations.houses as (
select
buildings.name as building_name,
properties.name_or_number as property_name_or_number,
streets.name as street_name,
streets.id as street_id,
buildings.id as building_id,
properties.id as property_id,
buildings.floors
from smart_comment_relations.properties
inner join smart_comment_relations.streets
on (properties.street_id = streets.id)
left join smart_comment_relations.buildings
on (buildings.property_id = properties.id and buildings.is_primary is true)
);
comment on view smart_comment_relations.houses is E'@primaryKey street_id,property_id
@foreignKey (street_id) references smart_comment_relations.streets
@foreignKey (building_id) references smart_comment_relations.buildings (id)
@foreignKey (property_id) references properties
@foreignKey (street_id, property_id) references street_property (str_id, prop_id)
';
comment on column smart_comment_relations.houses.property_name_or_number is E'@notNull';
comment on column smart_comment_relations.houses.street_name is E'@notNull';
create table smart_comment_relations.post (
id text primary key
);
comment on table smart_comment_relations.post is E'@name post_table
@omit';
create table smart_comment_relations.offer (
id serial primary key,
post_id text references smart_comment_relations.post(id) not null
);
comment on table smart_comment_relations.offer is E'@name offer_table
@omit';
create view smart_comment_relations.post_view as
SELECT
post.id
FROM smart_comment_relations.post post;
comment on view smart_comment_relations.post_view is E'@name posts
@primaryKey id';
create view smart_comment_relations.offer_view as
SELECT
offer.id,
offer.post_id
FROM smart_comment_relations.offer offer;
comment on view smart_comment_relations.offer_view is E'@name offers
@primaryKey id
@foreignKey (post_id) references post_view (id)';
create schema ranges;
create table ranges.range_test (
id serial primary key,
num numrange default null,
int8 int8range default null,
ts tsrange default null,
tstz tstzrange default null
);
create schema index_expressions;
create table index_expressions.employee (
id serial primary key,
first_name text not null,
last_name text not null
);
create unique index employee_name on index_expressions.employee ((first_name || ' ' || last_name));
create index employee_lower_name on index_expressions.employee (lower(first_name));
create index employee_first_name_idx on index_expressions.employee (first_name);
create schema simple_collections;
create table simple_collections.people (
id serial primary key,
name text
);
create table simple_collections.pets (
id serial primary key,
owner_id int not null references simple_collections.people,
name text
);
create function simple_collections.people_odd_pets(p simple_collections.people) returns setof simple_collections.pets as $$
select * from simple_collections.pets where owner_id = p.id and id % 2 = 1;
$$ language sql stable;
create schema live_test;
create table live_test.users (
id serial primary key,
name text not null,
favorite_color text
);
create table live_test.todos (
id serial primary key,
user_id int not null references live_test.users on delete cascade,
task text not null,
completed boolean not null default false
);
create table live_test.todos_log (
todo_id int not null references live_test.todos on delete cascade,
user_id int not null references live_test.users on delete cascade,
action text not null,
PRIMARY KEY ("todo_id","user_id")
);
create table live_test.todos_log_viewed (
id serial primary key,
user_id int not null,
todo_id int not null,
viewed_at timestamp not null default now(),
foreign key (user_id, todo_id) references live_test.todos_log(user_id, todo_id) on delete cascade
);
create table large_bigint.large_node_id (
id bigint primary key,
text text
);
create schema network_types;
create table network_types.network (
id serial primary key,
inet inet,
cidr cidr,
macaddr macaddr
);
/******************************************************************************/
create schema named_query_builder;
create table named_query_builder.toys (
id serial primary key,
name text not null
);
create table named_query_builder.categories (
id serial primary key,
name text not null
);
create table named_query_builder.toy_categories (
toy_id int not null references named_query_builder.toys,
category_id int not null references named_query_builder.categories,
approved boolean not null
);
--------------------------------------------------------------------------------
create schema enum_tables;
create table enum_tables.abcd (letter text primary key, description text);
comment on column enum_tables.abcd.description is E'@enumDescription';
comment on table enum_tables.abcd is E'@enum\n@enumName LetterAToD';
create view enum_tables.abcd_view as (select * from enum_tables.abcd);
comment on view enum_tables.abcd_view is E'@primaryKey letter\n@enum\n@enumName LetterAToDViaView';
create table enum_tables.letter_descriptions(
id serial primary key,
letter text not null references enum_tables.abcd unique,
letter_via_view text not null unique,
description text
);
comment on table enum_tables.letter_descriptions is '@foreignKey (letter_via_view) references enum_tables.abcd_view';
create table enum_tables.lots_of_enums (
id serial primary key,
enum_1 text,
enum_2 varchar(3),
enum_3 char(2),
enum_4 text,
description text,
constraint enum_1 unique(enum_1),
constraint enum_2 unique(enum_2),
constraint enum_3 unique(enum_3),
constraint enum_4 unique(enum_4)
);
comment on table enum_tables.lots_of_enums is E'@omit';
comment on constraint enum_1 on enum_tables.lots_of_enums is E'@enum\n@enumName EnumTheFirst';
comment on constraint enum_2 on enum_tables.lots_of_enums is E'@enum\n@enumName EnumTheSecond';
comment on constraint enum_3 on enum_tables.lots_of_enums is E'@enum';
comment on constraint enum_4 on enum_tables.lots_of_enums is E'@enum';
-- Enum table needs values added as part of the migration, not as part of the
-- data.
insert into enum_tables.abcd (letter, description) values
('A', 'The letter A'),
('B', 'The letter B'),
('C', 'The letter C'),
('D', 'The letter D');
insert into enum_tables.lots_of_enums (enum_1, description) values
('a1', 'Desc A1'),
('a2', 'Desc A2'),
('a3', 'Desc A3'),
('a4', 'Desc A4');
insert into enum_tables.lots_of_enums (enum_2, description) values
('b1', 'Desc B1'),
('b2', 'Desc B2'),
('b3', 'Desc B3'),
('b4', 'Desc B4');
insert into enum_tables.lots_of_enums (enum_3, description) values
('c1', 'Desc C1'),
('c2', 'Desc C2'),
('c3', 'Desc C3'),
('c4', 'Desc C4');
insert into enum_tables.lots_of_enums (enum_4, description) values
('d1', 'Desc D1'),
('d2', 'Desc D2'),
('d3', 'Desc D3'),
('d4', 'Desc D4');
create table enum_tables.referencing_table(
id serial primary key,
enum_1 text references enum_tables.lots_of_enums(enum_1),
enum_2 varchar(3) references enum_tables.lots_of_enums(enum_2),
enum_3 char(2) references enum_tables.lots_of_enums(enum_3)
);
-- Relates to https://github.com/graphile/postgraphile/issues/1365
create function enum_tables.referencing_table_mutation(t enum_tables.referencing_table)
returns int as $$
declare
v_out int;
begin
insert into enum_tables.referencing_table (enum_1, enum_2, enum_3) values (t.enum_1, t.enum_2, t.enum_3)
returning id into v_out;
return v_out;
end;
$$ language plpgsql volatile;
--------------------------------------------------------------------------------
create schema geometry;
create table geometry.geom (
id serial primary key,
point point,
line line,
lseg lseg,
box box,
open_path path,
closed_path path,
polygon polygon,
circle circle
); | the_stack |
-------------------------------------------
-- version 0.0.0-1006
-- update hash index bucket counts based on scale factor. The script was created for scale factor 100, which corresponds to an in-memory footprint ~20GB.
-------------------------------------------
USE InMemDB
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- CUSTOMER Table
CREATE TABLE dbo.Customer(
C_ID bigint NOT NULL PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 2000000),
C_L_NAME varchar(25) COLLATE Latin1_General_100_BIN2,
C_F_NAME varchar(20) COLLATE Latin1_General_100_BIN2,
C_EMAIL varchar(50) NULL
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
-- FULFILLMENT Table
CREATE TABLE dbo.Fulfillment(
FM_ID bigint IDENTITY(1,1) NOT NULL PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 10000000),
FM_O_ID bigint NOT NULL,
FM_C_ID bigint NOT NULL,
FM_DTS datetime NOT NULL
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
-- ORDERLINES Table
CREATE TABLE dbo.OrderLines(
OL_O_ID bigint NOT NULL,
OL_SEQ int NOT NULL,
OL_PR_ID bigint NOT NULL,
OL_QTY int NOT NULL,
OL_PRICE decimal(9,2) NOT NULL,
OL_DTS datetime NOT NULL,
CONSTRAINT PK_OrderLInes PRIMARY KEY NONCLUSTERED HASH ( OL_O_ID, OL_SEQ )
WITH (BUCKET_COUNT = 50000000),
INDEX IX_OrderLinesOL_O_ID HASH (OL_O_ID) WITH (BUCKET_COUNT = 50000000)
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
-- ORDERS Table
CREATE TABLE dbo.Orders(
O_ID bigint IDENTITY(1,1) NOT NULL,
O_C_ID bigint NOT NULL INDEX IX_Orders_O_C_ID HASH WITH (BUCKET_COUNT = 10000000),
O_TOTAL decimal(9,2) NOT NULL,
O_DTS datetime NOT NULL,
O_FM_DTS datetime NOT NULL,
CONSTRAINT PK_Orders PRIMARY KEY NONCLUSTERED HASH ( O_ID )
WITH (BUCKET_COUNT = 10000000),
INDEX IX_Orders_DTS (O_FM_DTS, O_DTS ASC)
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
-- PRODUCTs Table
CREATE TABLE dbo.Products(
PR_ID bigint NOT NULL,
PR_NAME varchar(50) COLLATE Latin1_General_100_BIN2 NOT NULL,
PR_TYPE int NOT NULL,
PR_DESC varchar(1000) COLLATE Latin1_General_100_BIN2 NOT NULL,
PR_PRICE decimal(9,2) NOT NULL,
PR_DEC1 float NOT NULL,
PR_DEC2 float NOT NULL,
PR_DEC3 float NOT NULL,
PR_DEC4 float NOT NULL,
PR_DEC5 float NOT NULL,
PR_DEC6 float NOT NULL,
PR_DEC7 float NOT NULL,
PR_DEC8 float NOT NULL,
PR_DEC9 float NOT NULL,
PR_DEC10 float NOT NULL,
PR_DEC11 float NOT NULL,
PR_DEC12 float NOT NULL,
PR_DEC13 float NOT NULL,
PR_DEC14 float NOT NULL,
PR_DEC15 float NOT NULL,
PR_DEC16 float NOT NULL,
PR_DEC17 float NOT NULL,
PR_DEC18 float NOT NULL,
PR_DEC19 float NOT NULL,
PR_DEC20 float NOT NULL,
PR_DEC21 float NOT NULL,
PR_DEC22 float NOT NULL,
PR_DEC23 float NOT NULL,
PR_DEC24 float NOT NULL,
PR_DEC25 float NOT NULL,
PR_DEC26 float NOT NULL,
PR_DEC27 float NOT NULL,
PR_DEC28 float NOT NULL,
PR_DEC29 float NOT NULL,
PR_DEC30 float NOT NULL,
PR_DEC31 float NOT NULL,
PR_DEC32 float NOT NULL,
PR_DEC33 float NOT NULL,
PR_DEC34 float NOT NULL,
PR_DEC35 float NOT NULL,
PR_DEC36 float NOT NULL,
PR_DEC37 float NOT NULL,
PR_DEC38 float NOT NULL,
PR_DEC39 float NOT NULL,
PR_DEC40 float NOT NULL,
PR_DEC41 float NOT NULL,
PR_DEC42 float NOT NULL,
PR_DEC43 float NOT NULL,
PR_DEC44 float NOT NULL,
PR_DEC45 float NOT NULL,
PR_DEC46 float NOT NULL,
PR_DEC47 float NOT NULL,
PR_DEC48 float NOT NULL,
PR_DEC49 float NOT NULL,
PR_DEC50 float NOT NULL,
PR_DEC51 float NOT NULL,
PR_DEC52 float NOT NULL,
PR_DEC53 float NOT NULL,
PR_DEC54 float NOT NULL,
PR_DEC55 float NOT NULL,
PR_DEC56 float NOT NULL,
PR_DEC57 float NOT NULL,
PR_DEC58 float NOT NULL,
PR_DEC59 float NOT NULL,
PR_DEC60 float NOT NULL,
PR_DEC61 float NOT NULL,
PR_DEC62 float NOT NULL,
PR_DEC63 float NOT NULL,
PR_DEC64 float NOT NULL,
PR_DEC65 float NOT NULL,
PR_DEC66 float NOT NULL,
PR_DEC67 float NOT NULL,
PR_DEC68 float NOT NULL,
PR_DEC69 float NOT NULL,
PR_DEC70 float NOT NULL,
PR_DEC71 float NOT NULL,
PR_DEC72 float NOT NULL,
PR_DEC73 float NOT NULL,
PR_DEC74 float NOT NULL,
PR_DEC75 float NOT NULL,
PR_DEC76 float NOT NULL,
PR_DEC77 float NOT NULL,
PR_DEC78 float NOT NULL,
PR_DEC79 float NOT NULL,
PR_DEC80 float NOT NULL,
PR_DEC81 float NOT NULL,
PR_DEC82 float NOT NULL,
PR_DEC83 float NOT NULL,
PR_DEC84 float NOT NULL,
PR_DEC85 float NOT NULL,
PR_DEC86 float NOT NULL,
PR_DEC87 float NOT NULL,
PR_DEC88 float NOT NULL,
PR_DEC89 float NOT NULL,
PR_DEC90 float NOT NULL,
PR_DEC91 float NOT NULL,
PR_DEC92 float NOT NULL,
PR_DEC93 float NOT NULL,
PR_DEC94 float NOT NULL,
PR_DEC95 float NOT NULL,
PR_DEC96 float NOT NULL,
PR_DEC97 float NOT NULL,
PR_DEC98 float NOT NULL,
PR_DEC99 float NOT NULL,
PR_DEC100 float NOT NULL,
CONSTRAINT PK_Products PRIMARY KEY NONCLUSTERED HASH ( PR_ID )
WITH (BUCKET_COUNT = 20000000),
INDEX IX_Products_PR_ID NONCLUSTERED (PR_ID),
INDEX Products_TYPE (PR_TYPE ASC)
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
-- PURCHASE_CRITERIA Table
CREATE TABLE dbo.Purchase_Criteria(
PC_ID bigint NOT NULL,
PC_DEC1 float NOT NULL,
PC_DEC2 float NOT NULL,
PC_DEC3 float NOT NULL,
PC_DEC4 float NOT NULL,
PC_DEC5 float NOT NULL,
PC_DEC6 float NOT NULL,
PC_DEC7 float NOT NULL,
PC_DEC8 float NOT NULL,
PC_DEC9 float NOT NULL,
PC_DEC10 float NOT NULL,
PC_DEC11 float NOT NULL,
PC_DEC12 float NOT NULL,
PC_DEC13 float NOT NULL,
PC_DEC14 float NOT NULL,
PC_DEC15 float NOT NULL,
PC_DEC16 float NOT NULL,
PC_DEC17 float NOT NULL,
PC_DEC18 float NOT NULL,
PC_DEC19 float NOT NULL,
PC_DEC20 float NOT NULL,
PC_DEC21 float NOT NULL,
PC_DEC22 float NOT NULL,
PC_DEC23 float NOT NULL,
PC_DEC24 float NOT NULL,
PC_DEC25 float NOT NULL,
PC_DEC26 float NOT NULL,
PC_DEC27 float NOT NULL,
PC_DEC28 float NOT NULL,
PC_DEC29 float NOT NULL,
PC_DEC30 float NOT NULL,
PC_DEC31 float NOT NULL,
PC_DEC32 float NOT NULL,
PC_DEC33 float NOT NULL,
PC_DEC34 float NOT NULL,
PC_DEC35 float NOT NULL,
PC_DEC36 float NOT NULL,
PC_DEC37 float NOT NULL,
PC_DEC38 float NOT NULL,
PC_DEC39 float NOT NULL,
PC_DEC40 float NOT NULL,
PC_DEC41 float NOT NULL,
PC_DEC42 float NOT NULL,
PC_DEC43 float NOT NULL,
PC_DEC44 float NOT NULL,
PC_DEC45 float NOT NULL,
PC_DEC46 float NOT NULL,
PC_DEC47 float NOT NULL,
PC_DEC48 float NOT NULL,
PC_DEC49 float NOT NULL,
PC_DEC50 float NOT NULL,
PC_DEC51 float NOT NULL,
PC_DEC52 float NOT NULL,
PC_DEC53 float NOT NULL,
PC_DEC54 float NOT NULL,
PC_DEC55 float NOT NULL,
PC_DEC56 float NOT NULL,
PC_DEC57 float NOT NULL,
PC_DEC58 float NOT NULL,
PC_DEC59 float NOT NULL,
PC_DEC60 float NOT NULL,
PC_DEC61 float NOT NULL,
PC_DEC62 float NOT NULL,
PC_DEC63 float NOT NULL,
PC_DEC64 float NOT NULL,
PC_DEC65 float NOT NULL,
PC_DEC66 float NOT NULL,
PC_DEC67 float NOT NULL,
PC_DEC68 float NOT NULL,
PC_DEC69 float NOT NULL,
PC_DEC70 float NOT NULL,
PC_DEC71 float NOT NULL,
PC_DEC72 float NOT NULL,
PC_DEC73 float NOT NULL,
PC_DEC74 float NOT NULL,
PC_DEC75 float NOT NULL,
PC_DEC76 float NOT NULL,
PC_DEC77 float NOT NULL,
PC_DEC78 float NOT NULL,
PC_DEC79 float NOT NULL,
PC_DEC80 float NOT NULL,
PC_DEC81 float NOT NULL,
PC_DEC82 float NOT NULL,
PC_DEC83 float NOT NULL,
PC_DEC84 float NOT NULL,
PC_DEC85 float NOT NULL,
PC_DEC86 float NOT NULL,
PC_DEC87 float NOT NULL,
PC_DEC88 float NOT NULL,
PC_DEC89 float NOT NULL,
PC_DEC90 float NOT NULL,
PC_DEC91 float NOT NULL,
PC_DEC92 float NOT NULL,
PC_DEC93 float NOT NULL,
PC_DEC94 float NOT NULL,
PC_DEC95 float NOT NULL,
PC_DEC96 float NOT NULL,
PC_DEC97 float NOT NULL,
PC_DEC98 float NOT NULL,
PC_DEC99 float NOT NULL,
PC_DEC100 float NOT NULL,
CONSTRAINT PK_Purchase_Criteria PRIMARY KEY NONCLUSTERED HASH ( PC_ID )
WITH (BUCKET_COUNT = 2000000)
) WITH ( MEMORY_OPTIMIZED = ON, DURABILITY = SCHEMA_AND_DATA )
GO
SET ANSI_PADDING OFF
GO | 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$oneSidedConnection; Type: SCHEMA; Schema: -; Owner: -
--
CREATE SCHEMA "schema-generator$oneSidedConnection";
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: A; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."A" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: B; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."B" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: C; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."C" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: D; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."D" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: E; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."E" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: F; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."F" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: TypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."TypeWithId" (
id character varying(25) NOT NULL,
field text NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: TypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."TypeWithoutId" (
id character varying(25) NOT NULL,
field text NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: _AToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_AToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _AToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_AToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _BToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_BToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _BToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_BToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _CToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_CToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _CToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_CToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _DToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_DToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _DToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_DToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _EToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_EToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _EToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_EToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _FToTypeWithId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_FToTypeWithId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _FToTypeWithoutId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_FToTypeWithoutId" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _RelayId; Type: TABLE; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE TABLE "schema-generator$oneSidedConnection"."_RelayId" (
id character varying(36) NOT NULL,
"stableModelIdentifier" character varying(25) NOT NULL
);
--
-- Name: A A_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."A"
ADD CONSTRAINT "A_pkey" PRIMARY KEY (id);
--
-- Name: B B_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."B"
ADD CONSTRAINT "B_pkey" PRIMARY KEY (id);
--
-- Name: C C_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."C"
ADD CONSTRAINT "C_pkey" PRIMARY KEY (id);
--
-- Name: D D_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."D"
ADD CONSTRAINT "D_pkey" PRIMARY KEY (id);
--
-- Name: E E_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."E"
ADD CONSTRAINT "E_pkey" PRIMARY KEY (id);
--
-- Name: F F_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."F"
ADD CONSTRAINT "F_pkey" PRIMARY KEY (id);
--
-- Name: TypeWithId TypeWithId_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."TypeWithId"
ADD CONSTRAINT "TypeWithId_pkey" PRIMARY KEY (id);
--
-- Name: TypeWithoutId TypeWithoutId_pkey; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."TypeWithoutId"
ADD CONSTRAINT "TypeWithoutId_pkey" PRIMARY KEY (id);
--
-- Name: _RelayId pk_RelayId; Type: CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_RelayId"
ADD CONSTRAINT "pk_RelayId" PRIMARY KEY (id);
--
-- Name: _AToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_AToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_AToTypeWithId" USING btree ("A");
--
-- Name: _AToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_AToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_AToTypeWithId" USING btree ("A", "B");
--
-- Name: _AToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_AToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_AToTypeWithId" USING btree ("B");
--
-- Name: _AToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_AToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_AToTypeWithoutId" USING btree ("A");
--
-- Name: _AToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_AToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_AToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _AToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_AToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_AToTypeWithoutId" USING btree ("B");
--
-- Name: _BToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_BToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_BToTypeWithId" USING btree ("A");
--
-- Name: _BToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_BToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_BToTypeWithId" USING btree ("A", "B");
--
-- Name: _BToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_BToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_BToTypeWithId" USING btree ("B");
--
-- Name: _BToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_BToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_BToTypeWithoutId" USING btree ("A");
--
-- Name: _BToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_BToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_BToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _BToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_BToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_BToTypeWithoutId" USING btree ("B");
--
-- Name: _CToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_CToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_CToTypeWithId" USING btree ("A");
--
-- Name: _CToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_CToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_CToTypeWithId" USING btree ("A", "B");
--
-- Name: _CToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_CToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_CToTypeWithId" USING btree ("B");
--
-- Name: _CToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_CToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_CToTypeWithoutId" USING btree ("A");
--
-- Name: _CToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_CToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_CToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _CToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_CToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_CToTypeWithoutId" USING btree ("B");
--
-- Name: _DToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_DToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_DToTypeWithId" USING btree ("A");
--
-- Name: _DToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_DToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_DToTypeWithId" USING btree ("A", "B");
--
-- Name: _DToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_DToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_DToTypeWithId" USING btree ("B");
--
-- Name: _DToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_DToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_DToTypeWithoutId" USING btree ("A");
--
-- Name: _DToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_DToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_DToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _DToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_DToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_DToTypeWithoutId" USING btree ("B");
--
-- Name: _EToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_EToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_EToTypeWithId" USING btree ("A");
--
-- Name: _EToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_EToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_EToTypeWithId" USING btree ("A", "B");
--
-- Name: _EToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_EToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_EToTypeWithId" USING btree ("B");
--
-- Name: _EToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_EToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_EToTypeWithoutId" USING btree ("A");
--
-- Name: _EToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_EToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_EToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _EToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_EToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_EToTypeWithoutId" USING btree ("B");
--
-- Name: _FToTypeWithId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_FToTypeWithId_A" ON "schema-generator$oneSidedConnection"."_FToTypeWithId" USING btree ("A");
--
-- Name: _FToTypeWithId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_FToTypeWithId_AB_unique" ON "schema-generator$oneSidedConnection"."_FToTypeWithId" USING btree ("A", "B");
--
-- Name: _FToTypeWithId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_FToTypeWithId_B" ON "schema-generator$oneSidedConnection"."_FToTypeWithId" USING btree ("B");
--
-- Name: _FToTypeWithoutId_A; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_FToTypeWithoutId_A" ON "schema-generator$oneSidedConnection"."_FToTypeWithoutId" USING btree ("A");
--
-- Name: _FToTypeWithoutId_AB_unique; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE UNIQUE INDEX "_FToTypeWithoutId_AB_unique" ON "schema-generator$oneSidedConnection"."_FToTypeWithoutId" USING btree ("A", "B");
--
-- Name: _FToTypeWithoutId_B; Type: INDEX; Schema: schema-generator$oneSidedConnection; Owner: -
--
CREATE INDEX "_FToTypeWithoutId_B" ON "schema-generator$oneSidedConnection"."_FToTypeWithoutId" USING btree ("B");
--
-- Name: _AToTypeWithId _AToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_AToTypeWithId"
ADD CONSTRAINT "_AToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."A"(id) ON DELETE CASCADE;
--
-- Name: _AToTypeWithId _AToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_AToTypeWithId"
ADD CONSTRAINT "_AToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _AToTypeWithoutId _AToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_AToTypeWithoutId"
ADD CONSTRAINT "_AToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."A"(id) ON DELETE CASCADE;
--
-- Name: _AToTypeWithoutId _AToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_AToTypeWithoutId"
ADD CONSTRAINT "_AToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- Name: _BToTypeWithId _BToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_BToTypeWithId"
ADD CONSTRAINT "_BToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."B"(id) ON DELETE CASCADE;
--
-- Name: _BToTypeWithId _BToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_BToTypeWithId"
ADD CONSTRAINT "_BToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _BToTypeWithoutId _BToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_BToTypeWithoutId"
ADD CONSTRAINT "_BToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."B"(id) ON DELETE CASCADE;
--
-- Name: _BToTypeWithoutId _BToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_BToTypeWithoutId"
ADD CONSTRAINT "_BToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- Name: _CToTypeWithId _CToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_CToTypeWithId"
ADD CONSTRAINT "_CToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."C"(id) ON DELETE CASCADE;
--
-- Name: _CToTypeWithId _CToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_CToTypeWithId"
ADD CONSTRAINT "_CToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _CToTypeWithoutId _CToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_CToTypeWithoutId"
ADD CONSTRAINT "_CToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."C"(id) ON DELETE CASCADE;
--
-- Name: _CToTypeWithoutId _CToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_CToTypeWithoutId"
ADD CONSTRAINT "_CToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- Name: _DToTypeWithId _DToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_DToTypeWithId"
ADD CONSTRAINT "_DToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."D"(id) ON DELETE CASCADE;
--
-- Name: _DToTypeWithId _DToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_DToTypeWithId"
ADD CONSTRAINT "_DToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _DToTypeWithoutId _DToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_DToTypeWithoutId"
ADD CONSTRAINT "_DToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."D"(id) ON DELETE CASCADE;
--
-- Name: _DToTypeWithoutId _DToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_DToTypeWithoutId"
ADD CONSTRAINT "_DToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- Name: _EToTypeWithId _EToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_EToTypeWithId"
ADD CONSTRAINT "_EToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."E"(id) ON DELETE CASCADE;
--
-- Name: _EToTypeWithId _EToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_EToTypeWithId"
ADD CONSTRAINT "_EToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _EToTypeWithoutId _EToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_EToTypeWithoutId"
ADD CONSTRAINT "_EToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."E"(id) ON DELETE CASCADE;
--
-- Name: _EToTypeWithoutId _EToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_EToTypeWithoutId"
ADD CONSTRAINT "_EToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- Name: _FToTypeWithId _FToTypeWithId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_FToTypeWithId"
ADD CONSTRAINT "_FToTypeWithId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."F"(id) ON DELETE CASCADE;
--
-- Name: _FToTypeWithId _FToTypeWithId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_FToTypeWithId"
ADD CONSTRAINT "_FToTypeWithId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithId"(id) ON DELETE CASCADE;
--
-- Name: _FToTypeWithoutId _FToTypeWithoutId_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_FToTypeWithoutId"
ADD CONSTRAINT "_FToTypeWithoutId_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$oneSidedConnection"."F"(id) ON DELETE CASCADE;
--
-- Name: _FToTypeWithoutId _FToTypeWithoutId_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$oneSidedConnection; Owner: -
--
ALTER TABLE ONLY "schema-generator$oneSidedConnection"."_FToTypeWithoutId"
ADD CONSTRAINT "_FToTypeWithoutId_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$oneSidedConnection"."TypeWithoutId"(id) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
-- | the_stack |
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET default_tablespace = '';
SET default_with_oids = false;
---
--- drop tables
---
DROP TABLE IF EXISTS customer_customer_demo;
DROP TABLE IF EXISTS customer_demographics;
DROP TABLE IF EXISTS employee_territories;
DROP TABLE IF EXISTS order_details;
DROP TABLE IF EXISTS orders;
DROP TABLE IF EXISTS customers;
DROP TABLE IF EXISTS products;
DROP TABLE IF EXISTS shippers;
DROP TABLE IF EXISTS suppliers;
DROP TABLE IF EXISTS territories;
DROP TABLE IF EXISTS categories;
DROP TABLE IF EXISTS region;
DROP TABLE IF EXISTS employees;
--
-- Name: categories; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE categories (
category_id smallint NOT NULL,
category_name character varying(15) NOT NULL,
description text,
picture bytea
);
--
-- Name: customer_customer_demo; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE customer_customer_demo (
customer_id bpchar NOT NULL,
customer_type_id bpchar NOT NULL
);
--
-- Name: customer_demographics; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE customer_demographics (
customer_type_id bpchar NOT NULL,
customer_desc text
);
--
-- Name: customers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE customers (
customer_id bpchar NOT NULL,
company_name character varying(40) NOT NULL,
contact_name character varying(30),
contact_title character varying(30),
address character varying(60),
city character varying(15),
region character varying(15),
postal_code character varying(10),
country character varying(15),
phone character varying(24),
fax character varying(24)
);
--
-- Name: employees; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE employees (
employee_id smallint NOT NULL,
last_name character varying(20) NOT NULL,
first_name character varying(10) NOT NULL,
title character varying(30),
title_of_courtesy character varying(25),
birth_date date,
hire_date date,
address character varying(60),
city character varying(15),
region character varying(15),
postal_code character varying(10),
country character varying(15),
home_phone character varying(24),
extension character varying(4),
photo bytea,
notes text,
reports_to smallint,
photo_path character varying(255)
);
--
-- Name: employee_territories; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE employee_territories (
employee_id smallint NOT NULL,
territory_id character varying(20) NOT NULL
);
--
-- Name: order_details; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE order_details (
order_id smallint NOT NULL,
product_id smallint NOT NULL,
unit_price real NOT NULL,
quantity smallint NOT NULL,
discount real NOT NULL
);
--
-- Name: orders; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE orders (
order_id smallint NOT NULL,
customer_id bpchar,
employee_id smallint,
order_date date,
required_date date,
shipped_date date,
ship_via smallint,
freight real,
ship_name character varying(40),
ship_address character varying(60),
ship_city character varying(15),
ship_region character varying(15),
ship_postal_code character varying(10),
ship_country character varying(15)
);
--
-- Name: products; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE products (
product_id smallint NOT NULL,
product_name character varying(40) NOT NULL,
supplier_id smallint,
category_id smallint,
quantity_per_unit character varying(20),
unit_price real,
units_in_stock smallint,
units_on_order smallint,
reorder_level smallint,
discontinued integer NOT NULL
);
--
-- Name: region; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE region (
region_id smallint NOT NULL,
region_description bpchar NOT NULL
);
--
-- Name: shippers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE shippers (
shipper_id smallint NOT NULL,
company_name character varying(40) NOT NULL,
phone character varying(24)
);
--
-- Name: suppliers; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE suppliers (
supplier_id smallint NOT NULL,
company_name character varying(40) NOT NULL,
contact_name character varying(30),
contact_title character varying(30),
address character varying(60),
city character varying(15),
region character varying(15),
postal_code character varying(10),
country character varying(15),
phone character varying(24),
fax character varying(24),
homepage text
);
--
-- Name: territories; Type: TABLE; Schema: public; Owner: -; Tablespace:
--
CREATE TABLE territories (
territory_id character varying(20) NOT NULL,
territory_description bpchar NOT NULL,
region_id smallint NOT NULL
);
--
-- Name: pk_categories; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY categories
ADD CONSTRAINT pk_categories PRIMARY KEY (category_id);
--
-- Name: pk_customer_customer_demo; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY customer_customer_demo
ADD CONSTRAINT pk_customer_customer_demo PRIMARY KEY (customer_id, customer_type_id);
--
-- Name: pk_customer_demographics; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY customer_demographics
ADD CONSTRAINT pk_customer_demographics PRIMARY KEY (customer_type_id);
--
-- Name: pk_customers; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY customers
ADD CONSTRAINT pk_customers PRIMARY KEY (customer_id);
--
-- Name: pk_employees; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY employees
ADD CONSTRAINT pk_employees PRIMARY KEY (employee_id);
--
-- Name: pk_employee_territories; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY employee_territories
ADD CONSTRAINT pk_employee_territories PRIMARY KEY (employee_id, territory_id);
--
-- Name: pk_order_details; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY order_details
ADD CONSTRAINT pk_order_details PRIMARY KEY (order_id, product_id);
--
-- Name: pk_orders; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY orders
ADD CONSTRAINT pk_orders PRIMARY KEY (order_id);
--
-- Name: pk_products; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY products
ADD CONSTRAINT pk_products PRIMARY KEY (product_id);
--
-- Name: pk_region; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY region
ADD CONSTRAINT pk_region PRIMARY KEY (region_id);
--
-- Name: pk_shippers; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY shippers
ADD CONSTRAINT pk_shippers PRIMARY KEY (shipper_id);
--
-- Name: pk_suppliers; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY suppliers
ADD CONSTRAINT pk_suppliers PRIMARY KEY (supplier_id);
--
-- Name: pk_territories; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace:
--
ALTER TABLE ONLY territories
ADD CONSTRAINT pk_territories PRIMARY KEY (territory_id);
--
-- Name: fk_orders_customers; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY orders
ADD CONSTRAINT fk_orders_customers FOREIGN KEY (customer_id) REFERENCES customers;
--
-- Name: fk_orders_employees; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY orders
ADD CONSTRAINT fk_orders_employees FOREIGN KEY (employee_id) REFERENCES employees;
--
-- Name: fk_orders_shippers; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY orders
ADD CONSTRAINT fk_orders_shippers FOREIGN KEY (ship_via) REFERENCES shippers;
--
-- Name: fk_order_details_products; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY order_details
ADD CONSTRAINT fk_order_details_products FOREIGN KEY (product_id) REFERENCES products;
--
-- Name: fk_order_details_orders; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY order_details
ADD CONSTRAINT fk_order_details_orders FOREIGN KEY (order_id) REFERENCES orders;
--
-- Name: fk_products_categories; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY products
ADD CONSTRAINT fk_products_categories FOREIGN KEY (category_id) REFERENCES categories;
--
-- Name: fk_products_suppliers; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY products
ADD CONSTRAINT fk_products_suppliers FOREIGN KEY (supplier_id) REFERENCES suppliers;
--
-- Name: fk_territories_region; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY territories
ADD CONSTRAINT fk_territories_region FOREIGN KEY (region_id) REFERENCES region;
--
-- Name: fk_employee_territories_territories; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY employee_territories
ADD CONSTRAINT fk_employee_territories_territories FOREIGN KEY (territory_id) REFERENCES territories;
--
-- Name: fk_employee_territories_employees; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY employee_territories
ADD CONSTRAINT fk_employee_territories_employees FOREIGN KEY (employee_id) REFERENCES employees;
--
-- Name: fk_customer_customer_demo_customer_demographics; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY customer_customer_demo
ADD CONSTRAINT fk_customer_customer_demo_customer_demographics FOREIGN KEY (customer_type_id) REFERENCES customer_demographics;
--
-- Name: fk_customer_customer_demo_customers; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY customer_customer_demo
ADD CONSTRAINT fk_customer_customer_demo_customers FOREIGN KEY (customer_id) REFERENCES customers;
--
-- Name: fk_employees_employees; Type: Constraint; Schema: -; Owner: -
--
ALTER TABLE ONLY employees
ADD CONSTRAINT fk_employees_employees FOREIGN KEY (reports_to) REFERENCES employees (employee_id);
--
-- PostgreSQL database dump complete
-- | 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.
--
-- webSphere Portal Server Development test cases
CREATE TABLE ID_TABLE (
TABLE_NAME VARCHAR(128) NOT NULL,
LAST_ID INTEGER NOT NULL,
CONSTRAINT PK10 PRIMARY KEY (TABLE_NAME)
);
CREATE TABLE APP_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
RESOURCE_ROOT VARCHAR(255),
CONTEXT_ROOT VARCHAR(255),
IS_ACTIVE CHAR(1) NOT NULL,
IS_REMOVABLE CHAR(1) DEFAULT 'Y' NOT NULL,
SYSTEM_ACCESS CHAR(1) NOT NULL,
GUID VARCHAR(255),
MAJOR_VERSION INTEGER,
MINOR_VERSION INTEGER,
PARENT_OID INTEGER,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK20 PRIMARY KEY ( OID ),
CONSTRAINT FK20 FOREIGN KEY ( PARENT_OID ) REFERENCES APP_DESC ( OID ) ON DELETE CASCADE
);
CREATE INDEX IX20A ON APP_DESC ( OID, NAME );
CREATE INDEX IX20B ON APP_DESC ( GUID );
CREATE INDEX IX20C ON APP_DESC ( PARENT_OID );
CREATE TABLE APP_DESC_DD (
APP_DESC_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
IS_LARGE CHAR(1) DEFAULT 'N' NOT NULL,
IS_STRING CHAR(1) DEFAULT 'Y' NOT NULL,
VALUE VARCHAR(255) FOR BIT DATA,
LARGE_VALUE LONG VARCHAR FOR BIT DATA,
CONSTRAINT PK30 PRIMARY KEY ( APP_DESC_OID , NAME ),
CONSTRAINT FK30 FOREIGN KEY ( APP_DESC_OID ) REFERENCES APP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE PORT_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
SERVLET_MAPPING VARCHAR(255),
IS_ACTIVE CHAR(1) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
WINDOW_STATES INTEGER NOT NULL,
LISTENERS INTEGER NOT NULL,
SM_ICON_URL VARCHAR(255),
LG_ICON_URL VARCHAR(255),
EXPIRES INTEGER NOT NULL,
IS_SHARED CHAR(1) NOT NULL,
APP_DESC_OID INTEGER NOT NULL,
DEFAULT_LOCALE VARCHAR(64),
IS_REMOTE CHAR(1) DEFAULT 'N' NOT NULL,
IS_PUBLISHED CHAR(1) DEFAULT 'N' NOT NULL,
REFERENCE_ID VARCHAR(64),
MAJOR_VERSION INTEGER,
MINOR_VERSION INTEGER,
PARENT_OID INTEGER,
CONSTRAINT PK40 PRIMARY KEY (OID),
CONSTRAINT FK40A FOREIGN KEY ( APP_DESC_OID ) REFERENCES APP_DESC (OID) ON DELETE CASCADE,
CONSTRAINT FK40B FOREIGN KEY ( PARENT_OID ) REFERENCES PORT_DESC (OID) ON DELETE CASCADE
);
CREATE INDEX IX40A ON PORT_DESC ( OID, NAME );
CREATE INDEX IX40D ON PORT_DESC ( REFERENCE_ID, APP_DESC_OID );
CREATE INDEX IX40E ON PORT_DESC ( APP_DESC_OID );
CREATE TABLE PORT_DESC_LOD (
PORT_DESC_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255),
TITLE_SHORT VARCHAR(128),
DESCRIPTION VARCHAR(1024),
KEYWORDS VARCHAR(1024),
CONSTRAINT PK50 PRIMARY KEY ( PORT_DESC_OID, LOCALE ),
CONSTRAINT FK50 FOREIGN KEY (PORT_DESC_OID) REFERENCES PORT_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE PORT_DESC_MAD (
PORT_DESC_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
MODES INTEGER NOT NULL,
CONSTRAINT PK60 PRIMARY KEY ( PORT_DESC_OID, MARKUP ),
CONSTRAINT FK60 FOREIGN KEY (PORT_DESC_OID) REFERENCES PORT_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE PORT_DESC_DD (
PORT_DESC_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
IS_LARGE CHAR(1) DEFAULT 'N' NOT NULL,
IS_STRING CHAR(1) DEFAULT 'Y' NOT NULL,
VALUE VARCHAR(255) FOR BIT DATA,
LARGE_VALUE LONG VARCHAR FOR BIT DATA,
CONSTRAINT PK70 PRIMARY KEY ( PORT_DESC_OID , NAME ),
CONSTRAINT FK70 FOREIGN KEY ( PORT_DESC_OID ) REFERENCES PORT_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CLASS_NAME VARCHAR(128) NOT NULL,
IS_ACTIVE CHAR(1) NOT NULL,
IS_HIDDEN CHAR(1) NOT NULL,
SM_ICON_URL VARCHAR(255),
LG_ICON_URL VARCHAR(255),
CONSTRAINT PK100 PRIMARY KEY (OID)
);
CREATE TABLE COMP_DESC_LOD (
COMP_DESC_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255),
CONSTRAINT PK110 PRIMARY KEY ( COMP_DESC_OID , LOCALE ),
CONSTRAINT FK110 FOREIGN KEY ( COMP_DESC_OID ) REFERENCES COMP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_DESC_MAD (
COMP_DESC_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
MODES INTEGER NOT NULL,
CONSTRAINT PK120 PRIMARY KEY ( COMP_DESC_OID , MARKUP ),
CONSTRAINT FK120 FOREIGN KEY ( COMP_DESC_OID ) REFERENCES COMP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_DESC_DD (
COMP_DESC_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
CONSTRAINT PK130 PRIMARY KEY ( COMP_DESC_OID , NAME ),
CONSTRAINT FK130 FOREIGN KEY ( COMP_DESC_OID ) REFERENCES COMP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE SKIN_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
RESOURCE_ROOT VARCHAR(255) NOT NULL,
IS_ACTIVE CHAR(1) NOT NULL,
IS_SYSTEM CHAR(1) DEFAULT 'N' NOT NULL,
IS_DEFAULT CHAR(1) DEFAULT 'N' NOT NULL,
DEFAULT_LOCALE VARCHAR(64),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK140 PRIMARY KEY (OID)
);
CREATE INDEX IX140 ON SKIN_DESC ( OID, NAME );
CREATE TABLE SKIN_DESC_LOD (
SKIN_DESC_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255) NOT NULL,
DESCRIPTION VARCHAR(1024),
CONSTRAINT PK150 PRIMARY KEY ( SKIN_DESC_OID, LOCALE ),
CONSTRAINT FK150 FOREIGN KEY (SKIN_DESC_OID) REFERENCES SKIN_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE SKIN_DESC_MAD (
SKIN_DESC_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
CONSTRAINT PK160 PRIMARY KEY ( SKIN_DESC_OID, MARKUP ),
CONSTRAINT FK160 FOREIGN KEY (SKIN_DESC_OID) REFERENCES SKIN_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE THEME_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
RESOURCE_ROOT VARCHAR(255) NOT NULL,
IS_ACTIVE CHAR(1) NOT NULL,
IS_SYSTEM CHAR(1) DEFAULT 'N' NOT NULL,
IS_DEFAULT CHAR(1) DEFAULT 'N' NOT NULL,
DEFAULT_LOCALE VARCHAR(64),
DEFAULT_SKIN INTEGER,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK170 PRIMARY KEY (OID),
CONSTRAINT FK170 FOREIGN KEY (DEFAULT_SKIN) REFERENCES SKIN_DESC (OID) ON DELETE SET NULL
);
CREATE INDEX IX170 ON THEME_DESC ( OID, NAME );
CREATE TABLE THEME_DESC_LOD (
THEME_DESC_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255) NOT NULL,
DESCRIPTION VARCHAR(1024),
CONSTRAINT PK180 PRIMARY KEY ( THEME_DESC_OID, LOCALE ),
CONSTRAINT FK180 FOREIGN KEY (THEME_DESC_OID) REFERENCES THEME_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE THEME_DESC_MAD (
THEME_DESC_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
CONSTRAINT PK190 PRIMARY KEY ( THEME_DESC_OID, MARKUP ),
CONSTRAINT FK190 FOREIGN KEY (THEME_DESC_OID) REFERENCES THEME_DESC (OID) ON DELETE CASCADE
);
CREATE TABLE PAGE_INST (
OID INTEGER NOT NULL,
OWNERID VARCHAR(255) NOT NULL,
NAME VARCHAR(255) NOT NULL,
IS_ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
IS_SYSTEM CHAR(1) DEFAULT 'N' NOT NULL,
ALL_PORT_ALLOWED CHAR(1) DEFAULT 'N' NOT NULL,
PARENT_OID INTEGER,
SKIN_DESC_OID INTEGER,
THEME_DESC_OID INTEGER,
CREATE_TYPE CHAR(1) DEFAULT 'E' NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK280 PRIMARY KEY (OID),
CONSTRAINT FK280B FOREIGN KEY ( PARENT_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK280C FOREIGN KEY ( SKIN_DESC_OID) REFERENCES SKIN_DESC ( OID ) ON DELETE SET NULL,
CONSTRAINT FK280D FOREIGN KEY ( THEME_DESC_OID) REFERENCES THEME_DESC ( OID ) ON DELETE SET NULL
);
CREATE INDEX IX280A ON PAGE_INST ( OID, NAME );
CREATE TABLE PAGE_INST_LOD (
PAGE_INST_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255) NOT NULL,
DESCRIPTION VARCHAR(1024),
CONSTRAINT PK281 PRIMARY KEY ( PAGE_INST_OID , LOCALE ),
CONSTRAINT FK281 FOREIGN KEY ( PAGE_INST_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE PAGE_INST_MAD (
PAGE_INST_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
CONSTRAINT PK260 PRIMARY KEY ( PAGE_INST_OID , MARKUP ),
CONSTRAINT FK260 FOREIGN KEY ( PAGE_INST_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE PAGE_INST_DD (
PAGE_INST_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
CONSTRAINT PK282 PRIMARY KEY ( PAGE_INST_OID , NAME ),
CONSTRAINT FK282 FOREIGN KEY ( PAGE_INST_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE PAGE_INST_ALIAS (
PAGE_INST_OID INTEGER NOT NULL,
ALIAS VARCHAR(255) NOT NULL,
CONSTRAINT PK283 PRIMARY KEY ( PAGE_INST_OID , ALIAS ),
CONSTRAINT FK283 FOREIGN KEY ( PAGE_INST_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT UN283 UNIQUE ( ALIAS )
);
CREATE TABLE APP_INST (
OID INTEGER NOT NULL,
APP_DESC_OID INTEGER NOT NULL,
NAME VARCHAR(255),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK290 PRIMARY KEY (OID),
CONSTRAINT FK290 FOREIGN KEY ( APP_DESC_OID) REFERENCES APP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE PORT_INST (
OID INTEGER NOT NULL,
PORT_DESC_OID INTEGER NOT NULL,
APP_INST_OID INTEGER NOT NULL,
NAME VARCHAR(255),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK300 PRIMARY KEY (OID),
CONSTRAINT FK300A FOREIGN KEY ( PORT_DESC_OID) REFERENCES PORT_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT FK300B FOREIGN KEY ( APP_INST_OID) REFERENCES APP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE PORT_INST_DD (
PORT_INST_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
IS_LARGE CHAR(1) DEFAULT 'N' NOT NULL,
IS_STRING CHAR(1) DEFAULT 'Y' NOT NULL,
VALUE VARCHAR(255) FOR BIT DATA,
LARGE_VALUE LONG VARCHAR FOR BIT DATA,
CONSTRAINT PK310 PRIMARY KEY ( PORT_INST_OID , NAME ),
CONSTRAINT FK310 FOREIGN KEY ( PORT_INST_OID ) REFERENCES PORT_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_INST (
OID INTEGER NOT NULL,
NAME VARCHAR(255),
COMP_DESC_OID INTEGER NOT NULL,
PORT_INST_OID INTEGER,
PAGE_INST_OID INTEGER NOT NULL,
COMPOS_REF INTEGER,
PARENT_OID INTEGER,
ORIENTATION CHAR(1),
EXPAND_STATE CHAR(1),
URL VARCHAR(255),
ALL_MARK_ALLOWED CHAR(1) DEFAULT 'Y' NOT NULL,
ORDINAL INTEGER,
MAX_SIZE INTEGER,
SHADOW_OID INTEGER,
IS_EDITABLE CHAR(1),
IS_DELETABLE CHAR(1),
IS_MODIFIABLE CHAR(1),
IS_NESTABLE CHAR(1),
IS_MOVABLE CHAR(1),
IS_ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
WIDTH VARCHAR(32),
ICON_URL VARCHAR(255),
THEME_DESC_OID INTEGER,
SKIN_DESC_OID INTEGER,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK320 PRIMARY KEY (OID),
CONSTRAINT FK320A FOREIGN KEY ( COMP_DESC_OID) REFERENCES COMP_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT FK320B FOREIGN KEY ( PAGE_INST_OID) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK320C FOREIGN KEY ( PORT_INST_OID) REFERENCES PORT_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK320D FOREIGN KEY ( PARENT_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK320E FOREIGN KEY ( SHADOW_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK320F FOREIGN KEY ( THEME_DESC_OID) REFERENCES THEME_DESC ( OID ) ON DELETE SET NULL,
CONSTRAINT FK320G FOREIGN KEY ( SKIN_DESC_OID) REFERENCES SKIN_DESC ( OID ) ON DELETE SET NULL,
CONSTRAINT FK320H FOREIGN KEY ( COMPOS_REF ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE
);
CREATE INDEX IX320A ON COMP_INST ( PAGE_INST_OID );
CREATE INDEX IX320B ON COMP_INST ( PORT_INST_OID );
CREATE TABLE COMP_INST_LOD (
COMP_INST_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255),
TITLE_SHORT VARCHAR(128),
DESCRIPTION VARCHAR(1024),
KEYWORDS VARCHAR(1024),
CONSTRAINT PK331 PRIMARY KEY ( COMP_INST_OID , LOCALE ),
CONSTRAINT FK331 FOREIGN KEY ( COMP_INST_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_INST_DD (
COMP_INST_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
CONSTRAINT PK330 PRIMARY KEY ( COMP_INST_OID , NAME ),
CONSTRAINT FK330 FOREIGN KEY ( COMP_INST_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_INST_MAD (
COMP_INST_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
URL VARCHAR(255),
CONSTRAINT PK333 PRIMARY KEY ( COMP_INST_OID , MARKUP ),
CONSTRAINT FK333 FOREIGN KEY ( COMP_INST_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_INST_ALIAS (
COMP_INST_OID INTEGER NOT NULL,
ALIAS VARCHAR(255) NOT NULL,
CONSTRAINT PK332 PRIMARY KEY ( COMP_INST_OID , ALIAS ),
CONSTRAINT FK332 FOREIGN KEY ( COMP_INST_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT UN332 UNIQUE ( ALIAS )
);
CREATE TABLE USER_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
TYPE INTEGER NOT NULL,
LAST_LOGIN BIGINT,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK340 PRIMARY KEY ( OID ),
CONSTRAINT UN340 UNIQUE ( NAME, TYPE )
);
CREATE INDEX IX340 ON USER_DESC ( OID, NAME );
CREATE TABLE USER_DESC_DD (
USER_DESC_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
CONSTRAINT PK350 PRIMARY KEY ( USER_DESC_OID, NAME ),
CONSTRAINT FK350 FOREIGN KEY ( USER_DESC_OID ) REFERENCES USER_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE USER_SESSION (
OID INTEGER NOT NULL,
USER_DESC_OID INTEGER NOT NULL,
MARKUP VARCHAR(128) NOT NULL,
USER_LOGGED_OUT CHAR(1) DEFAULT 'Y' NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK360 PRIMARY KEY ( OID ),
CONSTRAINT UN360 UNIQUE ( USER_DESC_OID, MARKUP ),
CONSTRAINT FK360 FOREIGN KEY ( USER_DESC_OID ) REFERENCES USER_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE SELECTION_STATE (
USER_SESSION_OID INTEGER NOT NULL,
ROOT_OID INTEGER NOT NULL,
SELECTION_OID INTEGER NOT NULL,
CONSTRAINT PK370 PRIMARY KEY ( USER_SESSION_OID , ROOT_OID ),
CONSTRAINT FK370A FOREIGN KEY ( USER_SESSION_OID ) REFERENCES USER_SESSION ( OID ) ON DELETE CASCADE,
CONSTRAINT FK370B FOREIGN KEY ( ROOT_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK370C FOREIGN KEY ( SELECTION_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE PORT_INST_STATE (
USER_SESSION_OID INTEGER NOT NULL,
PORT_INST_OID INTEGER NOT NULL,
MODES INTEGER NOT NULL,
CONSTRAINT PK380 PRIMARY KEY ( USER_SESSION_OID , PORT_INST_OID ),
CONSTRAINT FK380A FOREIGN KEY ( USER_SESSION_OID ) REFERENCES USER_SESSION ( OID ) ON DELETE CASCADE,
CONSTRAINT FK380B FOREIGN KEY ( PORT_INST_OID ) REFERENCES PORT_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE COMP_INST_STATE (
USER_SESSION_OID INTEGER NOT NULL,
COMP_INST_OID INTEGER NOT NULL,
STATE INTEGER NOT NULL,
CONSTRAINT PK390 PRIMARY KEY ( USER_SESSION_OID , COMP_INST_OID ),
CONSTRAINT FK390A FOREIGN KEY ( USER_SESSION_OID ) REFERENCES USER_SESSION ( OID ) ON DELETE CASCADE,
CONSTRAINT FK390B FOREIGN KEY ( COMP_INST_OID ) REFERENCES COMP_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE CRED_SEGMENT (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
DESCRIPTION VARCHAR(255),
USER_MAPPED CHAR(1) NOT NULL,
ADAPTER_TYPE VARCHAR(255),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK400 PRIMARY KEY ( OID ),
CONSTRAINT UN400 UNIQUE ( NAME )
);
CREATE INDEX IX400 ON CRED_SEGMENT ( OID, NAME );
CREATE TABLE CRED_SLOT (
OID INTEGER NOT NULL,
SLOT_KEY VARCHAR(255) NOT NULL,
IS_ACTIVE CHAR(1) NOT NULL,
IS_SYSTEM CHAR(1) NOT NULL,
SECRET_TYPE INTEGER NOT NULL,
RESOURCE_NAME VARCHAR(255),
SEGMENT_OID INTEGER NOT NULL,
USER_DESC_OID INTEGER,
PORT_INST_OID INTEGER,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK410 PRIMARY KEY ( OID ),
CONSTRAINT UN410 UNIQUE ( SLOT_KEY ),
CONSTRAINT FK410A FOREIGN KEY ( SEGMENT_OID ) REFERENCES CRED_SEGMENT ( OID ) ON DELETE CASCADE,
CONSTRAINT FK410B FOREIGN KEY ( USER_DESC_OID ) REFERENCES USER_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT FK410C FOREIGN KEY ( PORT_INST_OID ) REFERENCES PORT_INST ( OID ) ON DELETE CASCADE
);
CREATE INDEX IX410A ON CRED_SLOT ( USER_DESC_OID, PORT_INST_OID );
CREATE INDEX IX410B ON CRED_SLOT ( RESOURCE_NAME );
CREATE INDEX IX410C ON CRED_SLOT ( SEGMENT_OID );
CREATE TABLE CRED_SLOT_LOD (
CRED_SLOT_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
DESCRIPTION VARCHAR(255),
KEYWORDS VARCHAR(1024),
CONSTRAINT PK420 PRIMARY KEY ( CRED_SLOT_OID , LOCALE ),
CONSTRAINT FK420 FOREIGN KEY ( CRED_SLOT_OID ) REFERENCES CRED_SLOT ( OID ) ON DELETE CASCADE
);
CREATE TABLE LNK_PAGE_PORT (
PAGE_INST_OID INTEGER NOT NULL,
PORT_DESC_OID INTEGER NOT NULL,
CONSTRAINT PK430 PRIMARY KEY ( PAGE_INST_OID, PORT_DESC_OID ),
CONSTRAINT FK430A FOREIGN KEY ( PAGE_INST_OID ) REFERENCES PAGE_INST ( OID ) ON DELETE CASCADE,
CONSTRAINT FK430B FOREIGN KEY ( PORT_DESC_OID ) REFERENCES PORT_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE LNK_THEME_SKIN (
THEME_DESC_OID INTEGER NOT NULL,
SKIN_DESC_OID INTEGER NOT NULL,
CONSTRAINT PK450 PRIMARY KEY ( THEME_DESC_OID, SKIN_DESC_OID ),
CONSTRAINT FK450A FOREIGN KEY ( THEME_DESC_OID ) REFERENCES THEME_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT FK450B FOREIGN KEY ( SKIN_DESC_OID ) REFERENCES SKIN_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE MARKUP_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
IS_ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
MIMETYPE VARCHAR(255) NOT NULL,
DEFAULT_CHARSET VARCHAR(64) DEFAULT 'UTF-8' NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK470 PRIMARY KEY ( OID ),
CONSTRAINT UN470 UNIQUE ( NAME )
);
CREATE TABLE MARKUP_DESC_LOD (
MARKUP_DESC_OID INTEGER NOT NULL,
LOCALE VARCHAR(64) NOT NULL,
TITLE VARCHAR(255),
CHARSET VARCHAR(64),
CONSTRAINT PK480 PRIMARY KEY ( MARKUP_DESC_OID , LOCALE ),
CONSTRAINT FK480 FOREIGN KEY ( MARKUP_DESC_OID ) REFERENCES MARKUP_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE CLIENT_DESC (
OID INTEGER NOT NULL,
ORDINAL INTEGER NOT NULL,
MANUFACTURER VARCHAR(64),
MODEL VARCHAR(255),
VERSION VARCHAR(16),
USERAGENT_PATTERN VARCHAR(255) NOT NULL,
MARKUP_NAME VARCHAR(255) NOT NULL,
MARKUP_VERSION VARCHAR(16),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK490 PRIMARY KEY (OID)
);
CREATE INDEX IX490 ON CLIENT_DESC ( ORDINAL );
CREATE TABLE CLIENT_DESC_CAPS (
CLIENT_DESC_OID INTEGER NOT NULL,
CAPABILITY VARCHAR(255) NOT NULL,
CONSTRAINT PK500 PRIMARY KEY ( CLIENT_DESC_OID , CAPABILITY ),
CONSTRAINT FK500 FOREIGN KEY ( CLIENT_DESC_OID ) REFERENCES CLIENT_DESC ( OID ) ON DELETE CASCADE
);
CREATE TABLE UDDI_REG_DESC (
OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
PUBLISH_URL VARCHAR(255),
INQUIRY_URL VARCHAR(255) NOT NULL,
PORTLET_TMODEL VARCHAR(255),
URL_TMODEL VARCHAR(255),
CRED_SLOT_ID VARCHAR(255),
IS_DELETED CHAR(1) DEFAULT 'N' NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK510 PRIMARY KEY ( OID )
);
CREATE INDEX IX510 ON UDDI_REG_DESC ( IS_DELETED );
CREATE TABLE UDDI_REG_DESC_PD (
UDDI_REG_DESC_OID INTEGER NOT NULL,
REMOTE_ID VARCHAR(255) NOT NULL,
NAME VARCHAR(255) NOT NULL,
PORT_DESC_OID INTEGER,
CONSTRAINT PK520 PRIMARY KEY ( UDDI_REG_DESC_OID , REMOTE_ID ),
CONSTRAINT FK520A FOREIGN KEY ( UDDI_REG_DESC_OID ) REFERENCES UDDI_REG_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT FK520B FOREIGN KEY ( PORT_DESC_OID ) REFERENCES PORT_DESC ( OID ) ON DELETE SET NULL,
CONSTRAINT UN520 UNIQUE ( REMOTE_ID )
);
CREATE INDEX IX520 ON UDDI_REG_DESC_PD ( REMOTE_ID, PORT_DESC_OID );
CREATE TABLE BIND_CTX (
OID INTEGER NOT NULL,
HANDLE_ID VARCHAR(255) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK530 PRIMARY KEY ( OID )
);
CREATE INDEX IX530 ON BIND_CTX ( HANDLE_ID );
CREATE TABLE BIND_CTX_DD (
BIND_CTX_OID INTEGER NOT NULL,
NAME VARCHAR(255) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
CONSTRAINT PK540 PRIMARY KEY ( BIND_CTX_OID , NAME ),
CONSTRAINT FK540 FOREIGN KEY ( BIND_CTX_OID ) REFERENCES BIND_CTX ( OID ) ON DELETE CASCADE
);
CREATE TABLE BIND_CTX_PI (
BIND_CTX_OID INTEGER NOT NULL,
PORT_INST_OID INTEGER NOT NULL,
LAST_USED BIGINT NOT NULL,
CONSTRAINT PK550 PRIMARY KEY ( BIND_CTX_OID , PORT_INST_OID ),
CONSTRAINT FK550A FOREIGN KEY ( BIND_CTX_OID ) REFERENCES BIND_CTX ( OID ) ON DELETE CASCADE,
CONSTRAINT FK550B FOREIGN KEY ( PORT_INST_OID ) REFERENCES PORT_INST ( OID ) ON DELETE CASCADE
);
CREATE TABLE CLI_BIND (
OID INTEGER NOT NULL,
ACCESS_POINT_URL VARCHAR(255) NOT NULL,
HANDLE_ID VARCHAR(255) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK560 PRIMARY KEY ( OID ),
CONSTRAINT UN560 UNIQUE ( ACCESS_POINT_URL )
);
CREATE TABLE CLI_BIND_HANDLES (
CLI_BIND_OID INTEGER NOT NULL,
HANDLE_ID VARCHAR(255) NOT NULL,
PORT_INST_OID INTEGER,
CONSTRAINT PK570 PRIMARY KEY ( CLI_BIND_OID , HANDLE_ID ),
CONSTRAINT FK570A FOREIGN KEY ( CLI_BIND_OID ) REFERENCES CLI_BIND ( OID ) ON DELETE CASCADE,
CONSTRAINT FK570B FOREIGN KEY ( PORT_INST_OID ) REFERENCES PORT_INST ( OID ) ON DELETE SET NULL
);
CREATE TABLE MAG_DATA (
OID INTEGER NOT NULL,
USERID VARCHAR(255) NOT NULL,
SUBNO VARCHAR(255),
CLID VARCHAR(255),
FORCE_PROMPT CHAR(1) DEFAULT 'N' NOT NULL,
CONSTRAINT PK580 PRIMARY KEY ( USERID )
);
CREATE INDEX IX580A ON MAG_DATA ( SUBNO );
CREATE INDEX IX580B ON MAG_DATA ( CLID );
CREATE TABLE PUB_CLIP_DEF (
OID INTEGER NOT NULL,
UDDI_REG_DESC_OID INTEGER NOT NULL,
REMOTE_ID VARCHAR(255) NOT NULL,
CLIP_DEF VARCHAR(1024) NOT NULL,
SERVICE_KEY VARCHAR(255),
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK650 PRIMARY KEY (OID),
CONSTRAINT FK650 FOREIGN KEY ( UDDI_REG_DESC_OID) REFERENCES UDDI_REG_DESC ( OID ) ON DELETE CASCADE,
CONSTRAINT UN650 UNIQUE ( REMOTE_ID )
);
CREATE TABLE ACL (
SUBJECTTYPE INTEGER NOT NULL,
SUBJECTID INTEGER NOT NULL,
ACTIONS INTEGER NOT NULL,
OBJECTTYPE INTEGER NOT NULL,
OBJECTID INTEGER NOT NULL
);
CREATE INDEX IX2000A ON ACL ( OBJECTTYPE, SUBJECTTYPE, SUBJECTID, OBJECTID, ACTIONS );
CREATE INDEX IX2000B ON ACL ( SUBJECTTYPE, OBJECTTYPE, OBJECTID );
CREATE TABLE VAULT_RESOURCES (
RESOURCE_NAME VARCHAR(255) NOT NULL,
CONSTRAINT PK2010 PRIMARY KEY (RESOURCE_NAME)
);
CREATE TABLE VAULT_DATA (
RESOURCE_NAME VARCHAR(255) NOT NULL,
USER_DN VARCHAR(255) NOT NULL,
USERID VARCHAR(255),
PWD VARCHAR(255),
BINARY_DATA LONG VARCHAR FOR BIT DATA,
CONSTRAINT PK2020 PRIMARY KEY (RESOURCE_NAME, USER_DN),
CONSTRAINT FK2020 FOREIGN KEY (RESOURCE_NAME) REFERENCES VAULT_RESOURCES (RESOURCE_NAME) ON DELETE CASCADE
);
CREATE SCHEMA WPSPCO;
CREATE TABLE WPSPCO.FORMAT (
OID INTEGER NOT NULL,
NAME VARCHAR(100) NOT NULL,
IS_INDEX_CONTENT CHAR(1) DEFAULT 'N' NOT NULL,
USE_SMODE_PLUGIN CHAR(1) DEFAULT 'N' NOT NULL,
MGR_CLASSNAME VARCHAR(255) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK1000 PRIMARY KEY (OID),
CONSTRAINT UN1000 UNIQUE (NAME)
);
CREATE TABLE WPSPCO.FORMAT_TAG (
FORMAT_OID INTEGER NOT NULL,
TAG_NAME VARCHAR(255) NOT NULL,
COLUMN_NAME VARCHAR(255) NOT NULL,
METHOD_NAME VARCHAR(255) NOT NULL,
CONSTRAINT PK1010 PRIMARY KEY (FORMAT_OID, TAG_NAME),
CONSTRAINT FK1010 FOREIGN KEY ( FORMAT_OID ) REFERENCES WPSPCO.FORMAT ( OID ) ON DELETE CASCADE
);
CREATE TABLE WPSPCO.FORMAT_ATTR (
FORMAT_OID INTEGER NOT NULL,
ATTRIBUTE_NAME VARCHAR(255) NOT NULL,
IS_INITIAL CHAR(1) DEFAULT 'N' NOT NULL,
VIEWABLE_SMODE CHAR(1) DEFAULT 'N' NOT NULL,
VIEWABLE_TMODE CHAR(1) DEFAULT 'N' NOT NULL,
IS_INDEXED CHAR(1) DEFAULT 'N' NOT NULL,
CONSTRAINT PK1020 PRIMARY KEY (FORMAT_OID, ATTRIBUTE_NAME),
CONSTRAINT FK1020 FOREIGN KEY ( FORMAT_OID ) REFERENCES WPSPCO.FORMAT ( OID ) ON DELETE CASCADE
);
CREATE TABLE WPSPCO.RES_COLLECTION (
OID INTEGER NOT NULL,
NAME VARCHAR(64) NOT NULL,
STATE INTEGER NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK1030 PRIMARY KEY (OID)
);
CREATE INDEX WPSPCO.IX1030A ON WPSPCO.RES_COLLECTION ( OID, NAME );
CREATE INDEX WPSPCO.IX1030B ON WPSPCO.RES_COLLECTION ( NAME );
CREATE TABLE WPSPCO.WORKINGSET (
URI VARCHAR(255) NOT NULL,
RESOURCEID VARCHAR(155) NOT NULL,
TITLE VARCHAR(100),
DESCRIPTION VARCHAR(1000),
CREATOR VARCHAR(100),
CONTRIBUTOR VARCHAR(100),
SOURCE VARCHAR(100),
DCDATE DATE,
COVERAGE VARCHAR(100),
IDENTIFIER VARCHAR(255),
LANG VARCHAR(100),
PUBLISHER VARCHAR(100),
RELATION VARCHAR(100),
RIGHTS VARCHAR(100),
SUBJECT VARCHAR(100),
FORMAT VARCHAR(100),
DCTYPE VARCHAR(100),
CONTENTSIZE BIGINT,
FULLCONTENT LONG VARCHAR FOR BIT DATA,
ISINDEXED CHAR(1) DEFAULT '0' NOT NULL,
MARKEDFORDEL CHAR(1) DEFAULT '0' NOT NULL,
CONSTRAINT PK1040 PRIMARY KEY (URI)
);
CREATE TABLE WPSPCO.URI_LIST (
URI VARCHAR(255) NOT NULL,
CONTENTURI VARCHAR(255) NOT NULL,
CONSTRAINT FK1050 FOREIGN KEY (URI) REFERENCES WPSPCO.WORKINGSET (URI) ON DELETE CASCADE
);
CREATE TABLE WPSPCO.RSS_ITEM (
TITLE VARCHAR(155) NOT NULL,
DESCRIPTION VARCHAR(1000),
LINK VARCHAR(512),
CHANNELTITLE VARCHAR(512),
CONTENT VARCHAR(1000),
ISINDEXED CHAR(1) DEFAULT '0',
MARKEDFORDEL CHAR(1) DEFAULT '0',
CONSTRAINT PK1060 PRIMARY KEY (TITLE)
);
CREATE TABLE WPSPCO.RES_UPDATES (
RESCOLLNAME VARCHAR(100),
RESOURCEID VARCHAR(155) NOT NULL,
STATE INTEGER NOT NULL,
CONTENTFORMAT VARCHAR(100) NOT NULL
);
CREATE TABLE WPSPCO.PATH (
PATH VARCHAR(105) NOT NULL,
RESCOLLNAME VARCHAR(100) NOT NULL
);
CREATE TABLE WPSPCO.RES_INFO (
OID INTEGER NOT NULL,
URI VARCHAR(255) NOT NULL,
RESOURCE_ID VARCHAR(155) NOT NULL,
CONTENT_FORMAT VARCHAR(100) NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK1090 PRIMARY KEY (OID),
CONSTRAINT UN1090 UNIQUE (URI)
);
CREATE TABLE WPSPCO.RES_INFO_CAT (
RESOURCE_INFO_OID INTEGER NOT NULL,
CATEGORY_NUMBER INTEGER NOT NULL,
IS_MEMBER CHAR(1) DEFAULT 'N' NOT NULL,
CONSTRAINT PK1100 PRIMARY KEY (RESOURCE_INFO_OID, CATEGORY_NUMBER),
CONSTRAINT FK1100 FOREIGN KEY (RESOURCE_INFO_OID) REFERENCES WPSPCO.RES_INFO (OID) ON DELETE CASCADE
);
CREATE TABLE WPSPCO.CONTENT_CAT (
OID INTEGER NOT NULL,
CATEGORY_NUMBER INTEGER NOT NULL,
CATEGORY_NAME VARCHAR(100) NOT NULL,
IS_ACTIVE CHAR(1) DEFAULT 'Y' NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK1110 PRIMARY KEY (OID),
CONSTRAINT UN1110 UNIQUE (CATEGORY_NUMBER)
);
CREATE TABLE WPSPCO.PUBLISH_STATUS (
OID INTEGER NOT NULL,
N_PUBLISHED INTEGER NOT NULL,
N_DOCUMENTS INTEGER NOT NULL,
CREATED BIGINT NOT NULL,
MODIFIED BIGINT NOT NULL,
CONSTRAINT PK1120 PRIMARY KEY (OID)
);
--END OF WEBSPERE PORTTAL CASES
---SOME TEST CASES GOT FROM DB2 TESTS.
--some test cases got from db2 tests.
CREATE SCHEMA refint;
set schema refint ;
CREATE TABLE refint.E010_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3) ,
C2 CHAR(3) ,
C3 INTEGER NOT NULL,
C4 INTEGER,
C5 DECIMAL(9,3) NOT NULL,
C6 FLOAT,
C7 VARCHAR(20) NOT NULL,
C8 LONG VARCHAR,
C9 DATE NOT NULL,
C10 TIME,
C11 TIMESTAMP,
PRIMARY KEY (C0, C1, C3, C9),
CONSTRAINT E010_T1_SELFREF
FOREIGN KEY (C0b, C2, C4, C9)
REFERENCES refint.E010_T1 ON DELETE SET NULL);
CREATE VIEW refint.E010_V1 AS SELECT * FROM refint.E010_T1;
CREATE TABLE refint.E020_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
C0c CHAR(3),
C3 CHAR(3),
PRIMARY KEY (C0, C1),
CONSTRAINT E020_T1_SELFREF FOREIGN KEY (C0b, C2)
REFERENCES refint.E020_T1 ON DELETE RESTRICT);
CREATE TABLE refint.E030_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0, C1),
CONSTRAINT E030_T1_SELFREF FOREIGN KEY (C0b, C2)
REFERENCES refint.E030_T1 ON DELETE CASCADE);
CREATE TABLE refint.E110_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0, C1));
CREATE TABLE refint.E110_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3) ,
CONSTRAINT E110_T1_T2 FOREIGN KEY (C0b, C2)
REFERENCES refint.E110_T1 ON DELETE CASCADE);
CREATE VIEW refint.E110_V1 AS SELECT * FROM refint.E110_T1;
CREATE VIEW refint.E110_V2 AS SELECT * FROM refint.E110_T2;
CREATE TABLE refint.E210_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E210_T2 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3) ,
C2 CHAR(3) ,
PRIMARY KEY (C0,C1),
CONSTRAINT E210_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E210_T1 ON DELETE CASCADE);
CREATE TABLE refint.E210_T3 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3) ,
C2 CHAR(3) ,
CONSTRAINT FK12 FOREIGN KEY (C0b, C2)
REFERENCES refint.E210_T1 ON DELETE CASCADE);
CREATE VIEW refint.E210_V1 AS SELECT * FROM refint.E210_T1;
CREATE VIEW refint.E210_V2 (C1, C2) AS
SELECT refint.E210_T2.C1, refint.E210_T3.C1
FROM refint.E210_T2, refint.E210_T3
WHERE refint.E210_T2.C1 = refint.E210_T3.C1;
CREATE TABLE refint.E120_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3),
PRIMARY KEY (C0, C1));
CREATE TABLE refint.E120_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT E120_T1_T2 FOREIGN KEY (C0b, C2)
REFERENCES refint.E120_T1 ON DELETE RESTRICT);
CREATE VIEW refint.E120_V1 AS SELECT * FROM refint.E120_T1;
CREATE VIEW refint.E120_V2 AS SELECT * FROM refint.E120_V1;
CREATE TABLE refint.RJCE120_T1 (C0 INTEGER NOT NULL,
C1 INTEGER NOT NULL,
C2 INTEGER,
PRIMARY KEY (C0, C1));
CREATE TABLE refint.RJCE120_T2 (C0 INTEGER NOT NULL,
C1 INTEGER NOT NULL,
C0b INTEGER,
C2 INTEGER,
PRIMARY KEY (C0, C1),
CONSTRAINT RJCE120_T1_T2 FOREIGN KEY (C0b, C2)
REFERENCES refint.RJCE120_T1 ON DELETE RESTRICT);
CREATE VIEW refint.RJCE120_V1 AS SELECT * FROM refint.RJCE120_T1;
CREATE VIEW refint.RJCE120_V2 AS SELECT * FROM refint.RJCE120_V1;
CREATE TABLE refint.E130_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0, C1));
CREATE TABLE refint.E130_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT E130_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E130_T1 ON DELETE SET NULL);
CREATE VIEW refint.E130_V1 AS SELECT * FROM refint.E130_T1;
CREATE TABLE refint.E140_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E140_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT E140_T1_T2 FOREIGN KEY (C0b, C2)
REFERENCES refint.E140_T1 ON UPDATE RESTRICT);
CREATE VIEW refint.E140_V1 AS SELECT * FROM refint.E140_T1;
CREATE TABLE refint.E220_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0, C1));
CREATE TABLE refint.E220_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT FK13 FOREIGN KEY (C0b, C2)
REFERENCES refint.E220_T1 ON DELETE RESTRICT);
CREATE TABLE refint.E220_T3 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT FK32 FOREIGN KEY (C0b,C2)
REFERENCES refint.E220_T1 ON DELETE CASCADE);
CREATE TABLE refint.E230_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E230_T2 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3) ,
C2 CHAR(3) ,
PRIMARY KEY (C0,C1),
CONSTRAINT FK14 FOREIGN KEY (C0b,C2)
REFERENCES refint.E230_T1 ON DELETE SET NULL);
CREATE TABLE refint.E230_T3 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT FK33 FOREIGN KEY (C0b,C2)
REFERENCES refint.E230_T1 ON DELETE CASCADE);
CREATE VIEW refint.E230_V1 AS SELECT * FROM refint.E230_T1;
CREATE VIEW refint.E230_V2 (C1, C2) AS
SELECT refint.E230_T2.C1, refint.E230_T3.C2
FROM refint.E230_T2, refint.E230_T3;
CREATE TABLE refint.E240_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3),
C2 CHAR(3) NOT NULL,
C3 SMALLINT NOT NULL,
C4 INTEGER,
C5 DECIMAL(9,3) NOT NULL,
C6 VARCHAR(20) NOT NULL,
C7 DATE NOT NULL,
PRIMARY KEY (C0, C2, C6, C7));
CREATE TABLE refint.E240_T2 (C0 CHAR(3) NOT NULL,
C0a CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3) ,
C3 SMALLINT NOT NULL,
C4 DECIMAL(9,3) NOT NULL,
C5 VARCHAR(20),
C6 TIME,
C7 DATE NOT NULL,
PRIMARY KEY (C0,C1,C3),
CONSTRAINT E240_T1_T2_A FOREIGN KEY (C0a,C1,C5,C7)
REFERENCES refint.E240_T1 ON DELETE SET NULL);
CREATE TABLE refint.E240_T3 (C0 CHAR(3),
C0a CHAR(3),
C1 CHAR(3),
C2 CHAR(3) ,
C3 SMALLINT NOT NULL,
C4 DECIMAL(9,3) NOT NULL,
C5 VARCHAR(20),
C6 TIME,
C7 DATE NOT NULL,
CONSTRAINT E240_T1_T2_B
FOREIGN KEY (C0a, C1, C5, C7)
REFERENCES refint.E240_T1 ON DELETE SET NULL);
CREATE VIEW refint.E240_V1 AS SELECT * FROM refint.E240_T1;
CREATE VIEW refint.E240_V2 (C1,C2,C3,C4,C5,C6,C7) AS
SELECT refint.E240_T2.C1, refint.E240_T2.C2, refint.E240_T3.C3,
refint.E240_T3.C4, refint.E240_T3.C5, refint.E240_T2.C6,
refint.E240_T2.C7
FROM refint.E240_T2,refint.E240_T3;
CREATE TABLE refint.E250_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E250_T2 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E250_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E250_T1 ON DELETE RESTRICT);
CREATE TABLE refint.E250_T3 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E250_T1_T3 FOREIGN KEY (C0b,C2)
REFERENCES refint.E250_T1 ON DELETE RESTRICT);
CREATE VIEW refint.E250_V1 AS SELECT * FROM refint.E250_T1;
CREATE VIEW refint.E250_V2 (C1 ,C2) AS
SELECT refint.E250_T2.C1, refint.E250_T3.C2
FROM refint.E250_T2, refint.E250_T3
WHERE refint.E250_T2.C1 = refint.E250_T3.C1;
CREATE TABLE refint.E260_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E260_T2 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT E260_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E260_T1);
CREATE TABLE refint.E260_T3 (C0 CHAR(3),
C1 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
CONSTRAINT E260_T1_T3 FOREIGN KEY (C0b,C2)
REFERENCES refint.E260_T1);
CREATE VIEW refint.E260_V1 AS SELECT * FROM refint.E260_T1;
CREATE TABLE refint.E310_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E310_T2 (C0 INTEGER NOT NULL,
C1 INTEGER NOT NULL,
C2 CHAR(3) ,
C0b CHAR(3) ,
PRIMARY KEY (C0,C1),
CONSTRAINT FK15 FOREIGN KEY (C0b,C2)
REFERENCES refint.E310_T1 ON DELETE CASCADE);
CREATE TABLE refint.E310_T3 (C0 CHAR(3),
C1 CHAR(3),
C0b INTEGER,
C2 INTEGER,
CONSTRAINT FK34 FOREIGN KEY (C0b,C2)
REFERENCES refint.E310_T2 ON DELETE CASCADE);
CREATE VIEW refint.E310_V1 AS SELECT * FROM refint.E310_T1;
CREATE TABLE refint.E360_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E360_T2 (C0 INT NOT NULL,
C1 DECIMAL(9,3) NOT NULL,
C0b CHAR(3) ,
C2 CHAR(3) ,
PRIMARY KEY (C0,C1),
CONSTRAINT E360_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E360_T1 ON DELETE CASCADE);
CREATE TABLE refint.E360_T3 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b INT,
C2 DECIMAL(9,3),
CONSTRAINT E360_T2_T3 FOREIGN KEY (C0b,C2)
REFERENCES refint.E360_T2 ON DELETE RESTRICT);
CREATE VIEW refint.E360_V1 AS SELECT * FROM refint.E360_T1;
CREATE TABLE refint.E370_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E370_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT FK16 FOREIGN KEY (C0b,C2)
REFERENCES refint.E370_T1 ON DELETE CASCADE);
CREATE TABLE refint.E370_T3 (C1 CHAR(3),
C0 CHAR(3),
C2 CHAR(3),
C0b CHAR(3),
CONSTRAINT FK35 FOREIGN KEY (C0b,C2)
REFERENCES refint.E370_T2 ON DELETE SET NULL);
CREATE VIEW refint.E370_V1 AS SELECT * FROM refint.E370_T1;
CREATE TABLE refint.E340_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E340_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT FK17 FOREIGN KEY (C0b,C2)
REFERENCES refint.E340_T1 ON DELETE SET NULL);
CREATE TABLE refint.E340_T3 (C1 CHAR(3),
C0 CHAR(3),
C2 CHAR(3),
C0b CHAR(3),
CONSTRAINT FK36 FOREIGN KEY (C0b,C2)
REFERENCES refint.E340_T2 ON DELETE RESTRICT);
CREATE TABLE refint.E410_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E410_T2 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3) NOT NULL,
C0b CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1,C2),
CONSTRAINT FK18 FOREIGN KEY (C0b,C2)
REFERENCES refint.E410_T1 ON DELETE CASCADE);
CREATE TABLE refint.E410_T3 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C0a CHAR(3),
C2 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1,C2),
CONSTRAINT FK37 FOREIGN KEY (C0a,C1)
REFERENCES refint.E410_T1 ON DELETE CASCADE);
CREATE TABLE refint.E410_T4 (C0a CHAR(3),
C1 CHAR(3),
C0 CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
C3 CHAR(3),
CONSTRAINT FK7 FOREIGN KEY (C0b,C2,C3)
REFERENCES refint.E410_T2 ON DELETE CASCADE,
CONSTRAINT FK8 FOREIGN KEY (C0a,C1,C2)
REFERENCES refint.E410_T3 ON DELETE CASCADE);
CREATE TABLE refint.E450_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E450_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3) NOT NULL,
C0c CHAR(3),
C3 CHAR(3),
PRIMARY KEY (C0,C1,C2),
CONSTRAINT FK20 FOREIGN KEY (C0c,C3)
REFERENCES refint.E450_T1 ON DELETE SET NULL);
CREATE TABLE refint.E450_T3 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3) NOT NULL,
C0c CHAR(3),
C3 CHAR(3),
PRIMARY KEY (C0,C1,C2),
CONSTRAINT FK38 FOREIGN KEY (C0c,C3)
REFERENCES refint.E450_T1 ON DELETE CASCADE);
CREATE TABLE refint.E450_T4 (C1 CHAR(3),
C0 CHAR(3),
C0a CHAR(3),
C0b CHAR(3),
C2 CHAR(3),
C3 CHAR(3),
CONSTRAINT FK3 FOREIGN KEY (C0b,C2,C3)
REFERENCES refint.E450_T2 ON DELETE SET NULL,
CONSTRAINT FK4 FOREIGN KEY (C0a,C1,C2)
REFERENCES refint.E450_T3 ON DELETE CASCADE);
CREATE TABLE refint.E510_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C0a CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E510_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT FK21 FOREIGN KEY (c0b,C2)
REFERENCES refint.E510_T1 ON DELETE SET NULL);
CREATE TABLE refint.E510_T3 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY(C0,C1),
CONSTRAINT FK39 FOREIGN KEY (C0b,C2)
REFERENCES refint.E510_T2 ON DELETE SET NULL);
alter table refint.E510_T1 add CONSTRAINT CYC FOREIGN KEY (C0a,C1)
REFERENCES refint.E510_T3 ON DELETE CASCADE;
CREATE VIEW refint.E510_V1 AS SELECT * FROM refint.E510_T3;
CREATE TABLE refint.E540_T1 (C0 CHAR(3) NOT NULL,
C0a CHAR(3),
C1 CHAR(3) NOT NULL,
C2 CHAR(3),
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E540_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E540_T1_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E540_T1 ON DELETE RESTRICT);
CREATE TABLE refint.E540_T3 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E540_T2_T3 FOREIGN KEY (C0b,C2)
REFERENCES refint.E540_T2 ON DELETE RESTRICT);
alter table refint.E540_T1 add CONSTRAINT E540_T3_T1 FOREIGN KEY (C0a,C1)
REFERENCES refint.E540_T3 ON DELETE RESTRICT;
CREATE TABLE refint.E560_T1 (C1 CHAR(3) NOT NULL,
C0a CHAR(3),
C0 CHAR(3) NOT NULL,
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E560_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E560_T2_T1 FOREIGN KEY (C0b,C2)
REFERENCES refint.E560_T1 ON DELETE RESTRICT);
CREATE TABLE refint.E560_T3 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
CONSTRAINT E560_T3_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E560_T2 ON DELETE RESTRICT);
alter table refint.E560_T1 add CONSTRAINT E560_T1_T3 FOREIGN KEY (C0a,C1)
REFERENCES refint.E560_T3 ON DELETE CASCADE;
CREATE TABLE refint.E550_T1 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E550_T2 (C0 CHAR(3) NOT NULL,
C1 CHAR(3) NOT NULL,
C0b CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1),
FOREIGN KEY (C0b,C2)
REFERENCES refint.E550_T1 ON DELETE SET NULL);
CREATE TABLE refint.E550_T3 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
FOREIGN KEY (C0b,C2)
REFERENCES refint.E550_T2 ON DELETE SET NULL);
alter table refint.E550_T1 add CONSTRAINT F550 FOREIGN KEY (C0b,C2)
REFERENCES refint.E550_T3 ON DELETE SET NULL;
CREATE TABLE refint.E570_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C0a CHAR(3),
C2 CHAR(3),
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E570_T2 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1));
CREATE TABLE refint.E570_T3 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1));
alter table refint.E570_T1 add CONSTRAINT E570_T1_T3 FOREIGN KEY (C0a,C1)
REFERENCES refint.E570_T3 ON DELETE CASCADE;
alter table refint.E570_T2 add CONSTRAINT E570_T2_T1 FOREIGN KEY (C0b,C2)
REFERENCES refint.E570_T1 ON DELETE RESTRICT;
alter table refint.E570_T3 add CONSTRAINT E570_T3_T2 FOREIGN KEY (C0b,C2)
REFERENCES refint.E570_T2 ON DELETE SET NULL;
CREATE VIEW refint.E570_V1 AS SELECT * FROM refint.E570_T3;
CREATE TABLE refint.E710_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
C3 CHAR(3),
C0c CHAR(3),
PRIMARY KEY (C0,C1),
FOREIGN KEY (C0b,C2)
REFERENCES refint.E710_T1 ON DELETE CASCADE,
FOREIGN KEY (C0c,C3)
REFERENCES refint.E710_T1 ON DELETE CASCADE);
CREATE TABLE refint.E720_T1 (C1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
C2 CHAR(3),
C0b CHAR(3),
PRIMARY KEY (C0,C1),
FOREIGN KEY (C0b,C2)
REFERENCES refint.E720_T1 ON DELETE CASCADE);
CREATE TABLE refint.E720_T2 (X1 CHAR(3) NOT NULL,
C0 CHAR(3) NOT NULL,
X3 CHAR(3),
C0d CHAR(3),
C3 CHAR(3),
C0c CHAR(3),
PRIMARY KEY (C0,X1),
FOREIGN KEY (C0d,X3)
REFERENCES refint.E720_T2 ON DELETE CASCADE,
FOREIGN KEY (C0c,C3)
REFERENCES refint.E720_T1 ON DELETE CASCADE);
CREATE TABLE refint.E610_T1 (C0 CHAR(3) NOT NULL,
P1 CHAR(3) NOT NULL,
P2 CHAR(3) NOT NULL,
PRIMARY KEY (C0,P1,P2));
CREATE TABLE refint.E610_T2 (P1 CHAR(3),
C0 CHAR(3) NOT NULL,
P4 CHAR(3) NOT NULL,
P5 CHAR(3) NOT NULL,
PRIMARY KEY (C0,P4,P5));
CREATE TABLE refint.E610_T3 (F1 CHAR(3),
C0 CHAR(3),
C0e CHAR(3),
F2 CHAR(3),
C0g CHAR(3),
F3 CHAR(3),
CONSTRAINT E610_T1_T3 FOREIGN KEY (C0e,F1,F2)
REFERENCES refint.E610_T1,
CONSTRAINT E610_T2_T3 FOREIGN KEY (C0g,F2,F3)
REFERENCES refint.E610_T2)
;
---END OF TEST CASES GOT FROM DB2 Tests.
--START RANDOM COMPLEX LINKS
create table t1( a int not null primary key, b int);
create table t2(x int, y int not null unique, z int);
create table t3(l int, m int not null unique , k int );
create table t4(c1 int not null unique , c2 int);
create table t5(c1 int not null unique , c2 int);
create table t6(c1 int not null unique , c2 int);
--cycle
alter table t2 add constraint c3 foreign key (z)
references t4(c1) on delete cascade;
alter table t4 add constraint c4 foreign key (c2)
references t5(c1) on delete cascade;
alter table t5 add constraint c5 foreign key (c2)
references t6(c1) on delete cascade;
alter table t1 add constraint c1 foreign key (b)
references t3(m) on delete cascade;
alter table t2 add constraint c2 foreign key (x)
references t1(a) on delete cascade;
alter table t3 add constraint c6 foreign key (k)
references t2(y) on delete cascade;
--link a self referencing table to above cycle with a SET NULL
create table t7( a int not null primary key, b int not null unique,
x int references t7(a) ON DELETE CASCADE,
z int references t7(b) ON DELETE CASCADE,
w int references t6(c1) ON DELETE SET NULL);
--valide multiple paths
create table t8( a int not null primary key, b int);
create table t9(x int, y int not null unique, z int);
create table t10(l int, m int not null unique , k int );
create table t11(c1 int not null unique , c2 int);
alter table t9 add constraint c7 foreign key (x)
references t8(a) on delete set null;
alter table t9 add constraint c8 foreign key (z)
references t11(c1) on delete set null;
alter table t10 add constraint c9 foreign key (l)
references t8(a) on delete set null;
alter table t11 add constraint c10 foreign key (c1)
references t10(m) on delete cascade;
--link this one first cycle case
alter table t9 add constraint c11 foreign key (z)
references t5(c1) on delete SET NULL;
--valide multiple paths
create table t12( a int not null primary key, b int);
create table t13(x int, y int not null unique, z int);
create table t14(l int, m int not null unique , k int );
create table t15(c1 int not null unique , c2 int);
alter table t13 add constraint c12 foreign key (x)
references t12(a) on delete SET NULL;
alter table t13 add constraint c13 foreign key (z)
references t15(c1) on delete SET NULL;
alter table t14 add constraint c14 foreign key (l)
references t12(a) on delete CASCADE;
alter table t15 add constraint c15 foreign key (c2)
references t14(m) on delete SET NULL;
--link this one to first cycle case
alter table t12 add constraint c16 foreign key (b)
references t2(y) on delete CASCADE;
alter table t2 drop constraint c2;
alter table t3 drop constraint c6;
alter table t12 drop constraint c16;
alter table t9 drop constraint c11;
alter table t9 drop constraint c7;
alter table t10 drop constraint c9;
alter table t11 drop constraint c10;
alter table t13 drop constraint c12;
alter table t14 drop constraint c14;
alter table t15 drop constraint c15;
drop table t1;
drop table t2;
drop table t3;
drop table t4;
drop table t5;
drop table t7;
drop table t6;
drop table t8;
drop table t9;
drop table t10;
drop table t11;
drop table t12;
drop table t13;
drop table t14;
drop table t15;
--END OF RANDOM COMPLEX CASE
--FOLLOWING SQL SHOULD PASS
CREATE TABLE Employee (
ssn INTEGER NOT NULL,
name VARCHAR(30),
salary INTEGER,
address VARCHAR(50),
constraint EmployeeKey PRIMARY KEY (ssn)
);
CREATE TABLE Manages (manager_ssn INTEGER NOT NULL unique,
employee_ssn INTEGER NOT NULL,
constraint ManagesKey PRIMARY KEY (manager_ssn,employee_ssn),
FOREIGN KEY (employee_ssn) REFERENCES Employee(ssn)
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (manager_ssn) REFERENCES Employee(ssn)
ON DELETE CASCADE ON UPDATE NO ACTION);
CREATE TABLE Shop(
shop_name VARCHAR(20)NOT NULL,
open_closed_times TIME,
department VARCHAR(20),
location INTEGER CHECK(location BETWEEN 1 AND 50),
floor INTEGER CHECK(floor BETWEEN 1 AND 4),
shift char(20),
rent INTEGER,
tel_no INTEGER,
income INTEGER,
expenditure INTEGER,
manager_ssn INTEGER,
FOREIGN KEY (manager_ssn) REFERENCES Manages(manager_ssn)
ON DELETE SET NULL ON UPDATE NO ACTION,
constraint ShopKey PRIMARY KEY (shop_name));
CREATE TABLE Works_in (
ssn INTEGER NOT NULL,
shop_name VARCHAR(20)NOT NULL,
since DATE,
task VARCHAR(20),
constraint WorksInKey PRIMARY KEY (ssn, shop_name),
constraint fkey1 FOREIGN KEY (ssn) REFERENCES Employee
ON DELETE CASCADE ON UPDATE RESTRICT,
constraint fkey2 FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE NO ACTION ON UPDATE NO ACTION);
CREATE TABLE Owns(ssn INTEGER NOT NULL,
shop_name VARCHAR(20)NOT NULL,
date1 DATE,
constraint OwnsKey PRIMARY KEY (ssn, shop_name),
FOREIGN KEY (ssn) REFERENCES Employee
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE CASCADE ON UPDATE NO ACTION);
CREATE TABLE Item(item_id INTEGER NOT NULL,
Supplier VARCHAR(20),
price INTEGER,
department VARCHAR(20),
constraint ItemKey PRIMARY KEY (item_id));
CREATE TABLE Producer(producer_name VARCHAR(20) NOT NULL,
city VARCHAR(20),
address VARCHAR(50),
department VARCHAR(20),
constraint ProducerKey PRIMARY KEY (producer_name));
CREATE TABLE Supplies (producer_name VARCHAR(20) NOT NULL,
item_id INTEGER NOT NULL,
constraint SuppliesKey PRIMARY KEY (producer_name, item_id),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (producer_name) REFERENCES Producer
ON DELETE RESTRICT ON UPDATE NO ACTION);
CREATE TABLE Sells( item_id INTEGER NOT NULL,
shop_name VARCHAR(20)NOT NULL,
constraint SellsKey PRIMARY KEY (item_id, shop_name),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE NO ACTION ON UPDATE NO ACTION,
FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE CASCADE ON UPDATE NO ACTION);
CREATE TABLE Commerce(item_id INTEGER NOT NULL,
shop_name VARCHAR(20)NOT NULL,
cost INTEGER,
date1 DATE,
constraint CommerceKey PRIMARY KEY (item_id, shop_name),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE RESTRICT ON UPDATE NO ACTION);
CREATE TABLE Stocks( item_id INTEGER NOT NULL,
shop_name VARCHAR(20) NOT NULL,
available INTEGER,
purchased_date DATE,
ordered INTEGER,
constraint StocksKey PRIMARY KEY (item_id, shop_name),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE RESTRICT ON UPDATE NO ACTION);
CREATE TABLE Orders(
producer_name VARCHAR(20) NOT NULL,
shop_name VARCHAR(20)NOT NULL,
item_id INTEGER NOT NULL,
receival_date DATE,
order_date DATE,
item_amount INTEGER,
cost INTEGER,
constraint OrdersKey PRIMARY KEY (item_id, shop_name, producer_name),
FOREIGN KEY (shop_name) REFERENCES Shop
ON DELETE RESTRICT ON UPDATE NO ACTION,
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE ON UPDATE NO ACTION );
CREATE TABLE Food(
item_id INTEGER NOT NULL,
type VARCHAR(20),
expiration_date DATE,
constraint FoodKey PRIMARY KEY (item_id),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE);
CREATE TABLE Media(
item_id INTEGER NOT NULL,
type VARCHAR(20),
author VARCHAR(50),
publisher VARCHAR(50),
title VARCHAR(20),
published_date DATE,
constraint MediaKey PRIMARY KEY (item_id),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE);
CREATE TABLE Clothing(
item_id INTEGER NOT NULL,
type VARCHAR(20),
color VARCHAR(20),
cloth_size char(2),
brand VARCHAR(30),
constraint ClothingKey PRIMARY KEY (item_id),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE);
CREATE TABLE Accessories(
item_id INTEGER NOT NULL,
type VARCHAR(20),
constraint AccessoriesKey PRIMARY KEY (item_id),
FOREIGN KEY (item_id) REFERENCES Item
ON DELETE CASCADE);
---END | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for app_api_address
-- ----------------------------
DROP TABLE IF EXISTS `app_api_address`;
CREATE TABLE `app_api_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`area` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`postcode` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`isDefault` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_address
-- ----------------------------
BEGIN;
INSERT INTO `app_api_address` VALUES (10, '', '汪图南', '18277776666', '广东省广州市', '天河区xxx路xxx号xxx公司', '000000', 0);
INSERT INTO `app_api_address` VALUES (11, '4', '12', '1', '1', '1', '1', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_answer
-- ----------------------------
DROP TABLE IF EXISTS `app_api_answer`;
CREATE TABLE `app_api_answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`content` varchar(1000) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_answer
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_article
-- ----------------------------
DROP TABLE IF EXISTS `app_api_article`;
CREATE TABLE `app_api_article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`views` int(11) NOT NULL,
`author` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`tag` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_article_type_id_35065149` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=955 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_article
-- ----------------------------
BEGIN;
INSERT INTO `app_api_article` VALUES (796, '怎样学习 SpringBoot', 'https://img1.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 3537, '张勤一', 'Java', '07.31', 118);
INSERT INTO `app_api_article` VALUES (797, '【干货合辑】都2019年下半年了, 抓紧上车 ,今年新热技术都在这里!', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '慕课网官方_运营中心', 'Node.js', '06.12', 118);
INSERT INTO `app_api_article` VALUES (798, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 2210, 'Cap', 'Go', '08.26', 118);
INSERT INTO `app_api_article` VALUES (799, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 261, '袁霄', 'python', '08.25', 118);
INSERT INTO `app_api_article` VALUES (800, '怎样学习 SpringBoot', 'https://img1.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 3537, '张勤一', 'Java', '07.31', 118);
INSERT INTO `app_api_article` VALUES (801, '【干货合辑】都2019年下半年了, 抓紧上车 ,今年新热技术都在这里!', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '慕课网官方_运营中心', 'Node.js', '06.12', 118);
INSERT INTO `app_api_article` VALUES (802, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 2210, 'Cap', 'Go', '08.26', 118);
INSERT INTO `app_api_article` VALUES (803, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 261, '袁霄', 'python', '08.25', 118);
INSERT INTO `app_api_article` VALUES (804, '怎样学习 SpringBoot', 'https://img1.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 3537, '张勤一', 'Java', '07.31', 118);
INSERT INTO `app_api_article` VALUES (805, '【干货合辑】都2019年下半年了, 抓紧上车 ,今年新热技术都在这里!', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '慕课网官方_运营中心', 'Node.js', '06.12', 118);
INSERT INTO `app_api_article` VALUES (806, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 2210, 'Cap', 'Go', '08.26', 118);
INSERT INTO `app_api_article` VALUES (807, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 261, '袁霄', 'python', '08.25', 118);
INSERT INTO `app_api_article` VALUES (808, '首届清华智班30人名单公布:贵校第一批AI本科生,状元金牌云集,与姚班', 'https://img.mukewang.com/5d6125c800011ebe06880155-200-200.jpg', 105, '量子位', '人工智能', '08.24', 119);
INSERT INTO `app_api_article` VALUES (809, '百度Q2扭亏为盈,市值一夜大涨300亿,李彦宏:呼唤猛将雄兵,要再上行', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '量子位', '资讯', '08.21', 119);
INSERT INTO `app_api_article` VALUES (810, '国产AI框架再进化!百度Paddle Lite发布:率先支持华为NPU', 'https://img3.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 119);
INSERT INTO `app_api_article` VALUES (811, '首届清华智班30人名单公布:贵校第一批AI本科生,状元金牌云集,与姚班', 'https://img.mukewang.com/5d6125c800011ebe06880155-200-200.jpg', 105, '量子位', '人工智能', '08.24', 119);
INSERT INTO `app_api_article` VALUES (812, '百度Q2扭亏为盈,市值一夜大涨300亿,李彦宏:呼唤猛将雄兵,要再上行', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '量子位', '资讯', '08.21', 119);
INSERT INTO `app_api_article` VALUES (813, '国产AI框架再进化!百度Paddle Lite发布:率先支持华为NPU', 'https://img3.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 119);
INSERT INTO `app_api_article` VALUES (814, '首届清华智班30人名单公布:贵校第一批AI本科生,状元金牌云集,与姚班', 'https://img.mukewang.com/5d6125c800011ebe06880155-200-200.jpg', 105, '量子位', '人工智能', '08.24', 119);
INSERT INTO `app_api_article` VALUES (815, '百度Q2扭亏为盈,市值一夜大涨300亿,李彦宏:呼唤猛将雄兵,要再上行', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '量子位', '资讯', '08.21', 119);
INSERT INTO `app_api_article` VALUES (816, '国产AI框架再进化!百度Paddle Lite发布:率先支持华为NPU', 'https://img3.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 119);
INSERT INTO `app_api_article` VALUES (817, '首届清华智班30人名单公布:贵校第一批AI本科生,状元金牌云集,与姚班', 'https://img.mukewang.com/5d6125c800011ebe06880155-200-200.jpg', 105, '量子位', '人工智能', '08.24', 119);
INSERT INTO `app_api_article` VALUES (818, '百度Q2扭亏为盈,市值一夜大涨300亿,李彦宏:呼唤猛将雄兵,要再上行', 'https://img3.mukewang.com/5d006f600001620802500250-200-200.jpg', 12400, '量子位', '资讯', '08.21', 119);
INSERT INTO `app_api_article` VALUES (819, '国产AI框架再进化!百度Paddle Lite发布:率先支持华为NPU', 'https://img3.mukewang.com/5bf3a0670001160b02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 119);
INSERT INTO `app_api_article` VALUES (820, '微服务架构之分布式数据管理', 'https://img3.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 120);
INSERT INTO `app_api_article` VALUES (821, '数说成龙电影|数据告诉你,成龙大哥真的老了吗', 'https://img1.mukewang.com/5d65243c0001629506000440-200-200.jpg', 12400, '量子位', '资讯', '08.21', 120);
INSERT INTO `app_api_article` VALUES (822, '脑门贴张纸,骗过最强人脸识别系统!华为莫斯科研究院出品,FaceID已', 'https://img3.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 120);
INSERT INTO `app_api_article` VALUES (823, '微服务架构之分布式数据管理', 'https://img3.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 120);
INSERT INTO `app_api_article` VALUES (824, '数说成龙电影|数据告诉你,成龙大哥真的老了吗', 'https://img1.mukewang.com/5d65243c0001629506000440-200-200.jpg', 12400, '量子位', '资讯', '08.21', 120);
INSERT INTO `app_api_article` VALUES (825, '脑门贴张纸,骗过最强人脸识别系统!华为莫斯科研究院出品,FaceID已', 'https://img3.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 120);
INSERT INTO `app_api_article` VALUES (826, '微服务架构之分布式数据管理', 'https://img3.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 120);
INSERT INTO `app_api_article` VALUES (827, '数说成龙电影|数据告诉你,成龙大哥真的老了吗', 'https://img1.mukewang.com/5d65243c0001629506000440-200-200.jpg', 12400, '量子位', '资讯', '08.21', 120);
INSERT INTO `app_api_article` VALUES (828, '脑门贴张纸,骗过最强人脸识别系统!华为莫斯科研究院出品,FaceID已', 'https://img3.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 120);
INSERT INTO `app_api_article` VALUES (829, '微服务架构之分布式数据管理', 'https://img3.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 120);
INSERT INTO `app_api_article` VALUES (830, '数说成龙电影|数据告诉你,成龙大哥真的老了吗', 'https://img1.mukewang.com/5d65243c0001629506000440-200-200.jpg', 12400, '量子位', '资讯', '08.21', 120);
INSERT INTO `app_api_article` VALUES (831, '脑门贴张纸,骗过最强人脸识别系统!华为莫斯科研究院出品,FaceID已', 'https://img3.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 120);
INSERT INTO `app_api_article` VALUES (832, '遇到洋妞不敢搭讪,程序员的羞涩你不懂', 'https://img1.mukewang.com/5d540db20001227105530311-200-200.jpg', 105, '量子位', '人工智能', '08.24', 121);
INSERT INTO `app_api_article` VALUES (833, '学习Filecoin开发一个自己的公链(一)共识 - LearnDap', 'https://img4.mukewang.com/5d3d2f880001946802000200-200-200.jpg', 12400, '量子位', '资讯', '08.21', 121);
INSERT INTO `app_api_article` VALUES (834, '一入币圈深似海,浮浮沉沉走人生', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 121);
INSERT INTO `app_api_article` VALUES (835, '遇到洋妞不敢搭讪,程序员的羞涩你不懂', 'https://img1.mukewang.com/5d540db20001227105530311-200-200.jpg', 105, '量子位', '人工智能', '08.24', 121);
INSERT INTO `app_api_article` VALUES (836, '学习Filecoin开发一个自己的公链(一)共识 - LearnDap', 'https://img4.mukewang.com/5d3d2f880001946802000200-200-200.jpg', 12400, '量子位', '资讯', '08.21', 121);
INSERT INTO `app_api_article` VALUES (837, '一入币圈深似海,浮浮沉沉走人生', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 121);
INSERT INTO `app_api_article` VALUES (838, '遇到洋妞不敢搭讪,程序员的羞涩你不懂', 'https://img1.mukewang.com/5d540db20001227105530311-200-200.jpg', 105, '量子位', '人工智能', '08.24', 121);
INSERT INTO `app_api_article` VALUES (839, '学习Filecoin开发一个自己的公链(一)共识 - LearnDap', 'https://img4.mukewang.com/5d3d2f880001946802000200-200-200.jpg', 12400, '量子位', '资讯', '08.21', 121);
INSERT INTO `app_api_article` VALUES (840, '一入币圈深似海,浮浮沉沉走人生', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 121);
INSERT INTO `app_api_article` VALUES (841, '遇到洋妞不敢搭讪,程序员的羞涩你不懂', 'https://img1.mukewang.com/5d540db20001227105530311-200-200.jpg', 105, '量子位', '人工智能', '08.24', 121);
INSERT INTO `app_api_article` VALUES (842, '学习Filecoin开发一个自己的公链(一)共识 - LearnDap', 'https://img4.mukewang.com/5d3d2f880001946802000200-200-200.jpg', 12400, '量子位', '资讯', '08.21', 121);
INSERT INTO `app_api_article` VALUES (843, '一入币圈深似海,浮浮沉沉走人生', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 121);
INSERT INTO `app_api_article` VALUES (844, '华为算力最强AI芯片商用:2倍于英伟达V100!开源AI框架,对标Te', 'https://img1.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 122);
INSERT INTO `app_api_article` VALUES (845, '项目说明文档编写规范', 'https://img3.mukewang.com/5d5bea3e0001300005000333-200-200.jpg', 12400, '量子位', '资讯', '08.21', 122);
INSERT INTO `app_api_article` VALUES (846, 'Huffman编码使用介绍', 'https://img1.mukewang.com/5d63a46c000136ef08450715-200-200.jpg', 199, '量子位', '人工智能', '08.20', 122);
INSERT INTO `app_api_article` VALUES (847, '华为算力最强AI芯片商用:2倍于英伟达V100!开源AI框架,对标Te', 'https://img1.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 122);
INSERT INTO `app_api_article` VALUES (848, '项目说明文档编写规范', 'https://img3.mukewang.com/5d5bea3e0001300005000333-200-200.jpg', 12400, '量子位', '资讯', '08.21', 122);
INSERT INTO `app_api_article` VALUES (849, 'Huffman编码使用介绍', 'https://img1.mukewang.com/5d63a46c000136ef08450715-200-200.jpg', 199, '量子位', '人工智能', '08.20', 122);
INSERT INTO `app_api_article` VALUES (850, '华为算力最强AI芯片商用:2倍于英伟达V100!开源AI框架,对标Te', 'https://img1.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 122);
INSERT INTO `app_api_article` VALUES (851, '项目说明文档编写规范', 'https://img3.mukewang.com/5d5bea3e0001300005000333-200-200.jpg', 12400, '量子位', '资讯', '08.21', 122);
INSERT INTO `app_api_article` VALUES (852, 'Huffman编码使用介绍', 'https://img1.mukewang.com/5d63a46c000136ef08450715-200-200.jpg', 199, '量子位', '人工智能', '08.20', 122);
INSERT INTO `app_api_article` VALUES (853, '华为算力最强AI芯片商用:2倍于英伟达V100!开源AI框架,对标Te', 'https://img1.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 122);
INSERT INTO `app_api_article` VALUES (854, '项目说明文档编写规范', 'https://img3.mukewang.com/5d5bea3e0001300005000333-200-200.jpg', 12400, '量子位', '资讯', '08.21', 122);
INSERT INTO `app_api_article` VALUES (855, 'Huffman编码使用介绍', 'https://img1.mukewang.com/5d63a46c000136ef08450715-200-200.jpg', 199, '量子位', '人工智能', '08.20', 122);
INSERT INTO `app_api_article` VALUES (856, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 123);
INSERT INTO `app_api_article` VALUES (857, '微服务架构之服务注册中心', 'https://img1.mukewang.com/5bf3a0870001f33c02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 123);
INSERT INTO `app_api_article` VALUES (858, 'Kafka实战(四) -Kafka门派知多少', 'https://img.mukewang.com/5d641d5a000139f106000390-200-200.jpg', 199, '量子位', '人工智能', '08.20', 123);
INSERT INTO `app_api_article` VALUES (859, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 123);
INSERT INTO `app_api_article` VALUES (860, '微服务架构之服务注册中心', 'https://img1.mukewang.com/5bf3a0870001f33c02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 123);
INSERT INTO `app_api_article` VALUES (861, 'Kafka实战(四) -Kafka门派知多少', 'https://img.mukewang.com/5d641d5a000139f106000390-200-200.jpg', 199, '量子位', '人工智能', '08.20', 123);
INSERT INTO `app_api_article` VALUES (862, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 123);
INSERT INTO `app_api_article` VALUES (863, '微服务架构之服务注册中心', 'https://img1.mukewang.com/5bf3a0870001f33c02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 123);
INSERT INTO `app_api_article` VALUES (864, 'Kafka实战(四) -Kafka门派知多少', 'https://img.mukewang.com/5d641d5a000139f106000390-200-200.jpg', 199, '量子位', '人工智能', '08.20', 123);
INSERT INTO `app_api_article` VALUES (865, 'Python进阶量化交易专栏场外篇13-TA-Lib库量价指标分析', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 123);
INSERT INTO `app_api_article` VALUES (866, '微服务架构之服务注册中心', 'https://img1.mukewang.com/5bf3a0870001f33c02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 123);
INSERT INTO `app_api_article` VALUES (867, 'Kafka实战(四) -Kafka门派知多少', 'https://img.mukewang.com/5d641d5a000139f106000390-200-200.jpg', 199, '量子位', '人工智能', '08.20', 123);
INSERT INTO `app_api_article` VALUES (868, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (869, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (870, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (871, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (872, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (873, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (874, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (875, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (876, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (877, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (878, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (879, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (880, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (881, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (882, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (883, '怎么理清自己的编程思路', 'https://img4.mukewang.com/5bf39fdb0001ba0702720272-200-200.jpg', 105, '量子位', '人工智能', '08.24', 124);
INSERT INTO `app_api_article` VALUES (884, '从零开始配置React全家桶', 'https://img4.mukewang.com/5bf3a0b100015d1e02720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 124);
INSERT INTO `app_api_article` VALUES (885, '你必须要掌握的微信小程序云开发', 'https://img3.mukewang.com/5bf3a0570001e5fb02720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 124);
INSERT INTO `app_api_article` VALUES (886, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (887, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (888, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (889, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (890, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (891, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (892, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (893, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (894, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (895, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (896, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (897, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (898, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (899, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (900, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (901, 'Go高并发秒杀实践', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 125);
INSERT INTO `app_api_article` VALUES (902, '学完这100多技术,能当架构师么?(非广告)', 'https://www.imooc.com/static/img/article/cover/pic18.jpg', 12400, '量子位', '资讯', '08.21', 125);
INSERT INTO `app_api_article` VALUES (903, '如何写优雅的SQL原生语句?', 'https://img3.mukewang.com/5bf3a1460001f88002720272-200-200.jpg', 199, '量子位', '人工智能', '08.20', 125);
INSERT INTO `app_api_article` VALUES (904, '你从未见过的EditText属性详解', 'https://www.imooc.com/static/img/article/cover/pic24.jpg', 105, '量子位', '人工智能', '08.24', 126);
INSERT INTO `app_api_article` VALUES (905, '让你的布局滚动起来—ScrollView', 'https://www.imooc.com/static/img/article/cover/pic10.jpg', 12400, '量子位', '资讯', '08.21', 126);
INSERT INTO `app_api_article` VALUES (906, '你不能错过的RadioButton实践', 'https://www.imooc.com/static/img/article/cover/pic20.jpg', 199, '量子位', '人工智能', '08.20', 126);
INSERT INTO `app_api_article` VALUES (907, '你从未见过的EditText属性详解', 'https://www.imooc.com/static/img/article/cover/pic24.jpg', 105, '量子位', '人工智能', '08.24', 126);
INSERT INTO `app_api_article` VALUES (908, '让你的布局滚动起来—ScrollView', 'https://www.imooc.com/static/img/article/cover/pic10.jpg', 12400, '量子位', '资讯', '08.21', 126);
INSERT INTO `app_api_article` VALUES (909, '你不能错过的RadioButton实践', 'https://www.imooc.com/static/img/article/cover/pic20.jpg', 199, '量子位', '人工智能', '08.20', 126);
INSERT INTO `app_api_article` VALUES (910, '你从未见过的EditText属性详解', 'https://www.imooc.com/static/img/article/cover/pic24.jpg', 105, '量子位', '人工智能', '08.24', 126);
INSERT INTO `app_api_article` VALUES (911, '让你的布局滚动起来—ScrollView', 'https://www.imooc.com/static/img/article/cover/pic10.jpg', 12400, '量子位', '资讯', '08.21', 126);
INSERT INTO `app_api_article` VALUES (912, '你不能错过的RadioButton实践', 'https://www.imooc.com/static/img/article/cover/pic20.jpg', 199, '量子位', '人工智能', '08.20', 126);
INSERT INTO `app_api_article` VALUES (913, '你从未见过的EditText属性详解', 'https://www.imooc.com/static/img/article/cover/pic24.jpg', 105, '量子位', '人工智能', '08.24', 126);
INSERT INTO `app_api_article` VALUES (914, '让你的布局滚动起来—ScrollView', 'https://www.imooc.com/static/img/article/cover/pic10.jpg', 12400, '量子位', '资讯', '08.21', 126);
INSERT INTO `app_api_article` VALUES (915, '你不能错过的RadioButton实践', 'https://www.imooc.com/static/img/article/cover/pic20.jpg', 199, '量子位', '人工智能', '08.20', 126);
INSERT INTO `app_api_article` VALUES (916, '你从未见过的EditText属性详解', 'https://www.imooc.com/static/img/article/cover/pic24.jpg', 105, '量子位', '人工智能', '08.24', 126);
INSERT INTO `app_api_article` VALUES (917, '让你的布局滚动起来—ScrollView', 'https://www.imooc.com/static/img/article/cover/pic10.jpg', 12400, '量子位', '资讯', '08.21', 126);
INSERT INTO `app_api_article` VALUES (918, '你不能错过的RadioButton实践', 'https://www.imooc.com/static/img/article/cover/pic20.jpg', 199, '量子位', '人工智能', '08.20', 126);
INSERT INTO `app_api_article` VALUES (919, '如何选择一个性能测试工具(LoadRunner和Locust的一次对比', 'https://www.imooc.com/static/img/article/cover/pic9.jpg', 105, '量子位', '人工智能', '08.24', 127);
INSERT INTO `app_api_article` VALUES (920, 'Spread.NET 表格控件 V12.0 Update2 发布更新', 'https://img4.mukewang.com/5bf3a0ce0001f11102720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 127);
INSERT INTO `app_api_article` VALUES (921, '使用Typora+docsify+GitHub Pages搭建团队知识', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 127);
INSERT INTO `app_api_article` VALUES (922, '培训班出身如何构建自己的知识体系?', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 128);
INSERT INTO `app_api_article` VALUES (923, '【一元福利】程序员的高数入门课', 'https://www.imooc.com/static/img/article/cover/pic4.jpg', 12400, '量子位', '资讯', '08.21', 128);
INSERT INTO `app_api_article` VALUES (924, '程序员是最好的产品经理', 'https://img3.mukewang.com/5d5dff6600017e9711990674-200-200.jpg', 199, '量子位', '人工智能', '08.20', 128);
INSERT INTO `app_api_article` VALUES (925, '牛郎决定去学编程', 'https://img4.mukewang.com/5d5411e00001007e05190300-200-200.jpg', 105, '量子位', '人工智能', '08.24', 129);
INSERT INTO `app_api_article` VALUES (926, '程序员在理发时悟出的真理', 'https://img1.mukewang.com/5d20841a0001118d05000375-200-200.jpg', 12400, '量子位', '资讯', '08.21', 129);
INSERT INTO `app_api_article` VALUES (927, '程序员的江湖梦', 'https://img4.mukewang.com/5d2082170001e05105000336-200-200.jpg', 199, '量子位', '人工智能', '08.20', 129);
INSERT INTO `app_api_article` VALUES (928, 'Jmeter如何设置线程数,ramp-up period,循环次数', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 130);
INSERT INTO `app_api_article` VALUES (929, '长安十二时辰大结局一段时间了', 'https://img3.mukewang.com/5bf3a1620001b65902720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 130);
INSERT INTO `app_api_article` VALUES (930, '开发电商购物直播系统是直播公会的出路吗?我个人这么觉得', 'https://www.imooc.com/static/img/article/cover/pic12.jpg', 199, '量子位', '人工智能', '08.20', 130);
INSERT INTO `app_api_article` VALUES (931, '如何选择一个性能测试工具(LoadRunner和Locust的一次对比', 'https://www.imooc.com/static/img/article/cover/pic9.jpg', 105, '量子位', '人工智能', '08.24', 127);
INSERT INTO `app_api_article` VALUES (932, 'Spread.NET 表格控件 V12.0 Update2 发布更新', 'https://img4.mukewang.com/5bf3a0ce0001f11102720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 127);
INSERT INTO `app_api_article` VALUES (933, '使用Typora+docsify+GitHub Pages搭建团队知识', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 127);
INSERT INTO `app_api_article` VALUES (934, '培训班出身如何构建自己的知识体系?', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 128);
INSERT INTO `app_api_article` VALUES (935, '【一元福利】程序员的高数入门课', 'https://www.imooc.com/static/img/article/cover/pic4.jpg', 12400, '量子位', '资讯', '08.21', 128);
INSERT INTO `app_api_article` VALUES (936, '程序员是最好的产品经理', 'https://img3.mukewang.com/5d5dff6600017e9711990674-200-200.jpg', 199, '量子位', '人工智能', '08.20', 128);
INSERT INTO `app_api_article` VALUES (937, '牛郎决定去学编程', 'https://img4.mukewang.com/5d5411e00001007e05190300-200-200.jpg', 105, '量子位', '人工智能', '08.24', 129);
INSERT INTO `app_api_article` VALUES (938, '程序员在理发时悟出的真理', 'https://img1.mukewang.com/5d20841a0001118d05000375-200-200.jpg', 12400, '量子位', '资讯', '08.21', 129);
INSERT INTO `app_api_article` VALUES (939, '程序员的江湖梦', 'https://img4.mukewang.com/5d2082170001e05105000336-200-200.jpg', 199, '量子位', '人工智能', '08.20', 129);
INSERT INTO `app_api_article` VALUES (940, 'Jmeter如何设置线程数,ramp-up period,循环次数', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 130);
INSERT INTO `app_api_article` VALUES (941, '长安十二时辰大结局一段时间了', 'https://img3.mukewang.com/5bf3a1620001b65902720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 130);
INSERT INTO `app_api_article` VALUES (942, '开发电商购物直播系统是直播公会的出路吗?我个人这么觉得', 'https://www.imooc.com/static/img/article/cover/pic12.jpg', 199, '量子位', '人工智能', '08.20', 130);
INSERT INTO `app_api_article` VALUES (943, '如何选择一个性能测试工具(LoadRunner和Locust的一次对比', 'https://www.imooc.com/static/img/article/cover/pic9.jpg', 105, '量子位', '人工智能', '08.24', 127);
INSERT INTO `app_api_article` VALUES (944, 'Spread.NET 表格控件 V12.0 Update2 发布更新', 'https://img4.mukewang.com/5bf3a0ce0001f11102720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 127);
INSERT INTO `app_api_article` VALUES (945, '使用Typora+docsify+GitHub Pages搭建团队知识', 'https://www.imooc.com/static/img/article/cover/pic5.jpg', 199, '量子位', '人工智能', '08.20', 127);
INSERT INTO `app_api_article` VALUES (946, '培训班出身如何构建自己的知识体系?', 'https://www.imooc.com/static/img/article/cover/pic28.jpg', 105, '量子位', '人工智能', '08.24', 128);
INSERT INTO `app_api_article` VALUES (947, '【一元福利】程序员的高数入门课', 'https://www.imooc.com/static/img/article/cover/pic4.jpg', 12400, '量子位', '资讯', '08.21', 128);
INSERT INTO `app_api_article` VALUES (948, '程序员是最好的产品经理', 'https://img3.mukewang.com/5d5dff6600017e9711990674-200-200.jpg', 199, '量子位', '人工智能', '08.20', 128);
INSERT INTO `app_api_article` VALUES (949, '牛郎决定去学编程', 'https://img4.mukewang.com/5d5411e00001007e05190300-200-200.jpg', 105, '量子位', '人工智能', '08.24', 129);
INSERT INTO `app_api_article` VALUES (950, '程序员在理发时悟出的真理', 'https://img1.mukewang.com/5d20841a0001118d05000375-200-200.jpg', 12400, '量子位', '资讯', '08.21', 129);
INSERT INTO `app_api_article` VALUES (951, '程序员的江湖梦', 'https://img4.mukewang.com/5d2082170001e05105000336-200-200.jpg', 199, '量子位', '人工智能', '08.20', 129);
INSERT INTO `app_api_article` VALUES (952, 'Jmeter如何设置线程数,ramp-up period,循环次数', 'https://www.imooc.com/static/img/article/cover/pic8.jpg', 105, '量子位', '人工智能', '08.24', 130);
INSERT INTO `app_api_article` VALUES (953, '长安十二时辰大结局一段时间了', 'https://img3.mukewang.com/5bf3a1620001b65902720272-200-200.jpg', 12400, '量子位', '资讯', '08.21', 130);
INSERT INTO `app_api_article` VALUES (954, '开发电商购物直播系统是直播公会的出路吗?我个人这么觉得', 'https://www.imooc.com/static/img/article/cover/pic12.jpg', 199, '量子位', '人工智能', '08.20', 130);
COMMIT;
-- ----------------------------
-- Table structure for app_api_articletype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_articletype`;
CREATE TABLE `app_api_articletype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_articletype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_articletype` VALUES (118, '推荐', 0);
INSERT INTO `app_api_articletype` VALUES (119, '资讯', 1);
INSERT INTO `app_api_articletype` VALUES (120, '最新文章', 2);
INSERT INTO `app_api_articletype` VALUES (121, '区块链', 3);
INSERT INTO `app_api_articletype` VALUES (122, '人工智能', 4);
INSERT INTO `app_api_articletype` VALUES (123, '云计算/大数据', 5);
INSERT INTO `app_api_articletype` VALUES (124, '前端开发', 6);
INSERT INTO `app_api_articletype` VALUES (125, '后端开发', 7);
INSERT INTO `app_api_articletype` VALUES (126, '移动端开发', 8);
INSERT INTO `app_api_articletype` VALUES (127, '工具资源', 9);
INSERT INTO `app_api_articletype` VALUES (128, '职场生活', 10);
INSERT INTO `app_api_articletype` VALUES (129, '幽默段子', 11);
INSERT INTO `app_api_articletype` VALUES (130, '其它', 12);
COMMIT;
-- ----------------------------
-- Table structure for app_api_bill
-- ----------------------------
DROP TABLE IF EXISTS `app_api_bill`;
CREATE TABLE `app_api_bill` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`orderno` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`cost` int(11) NOT NULL,
`way_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `app_api_bill_way_id_d9e97a89` (`way_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_bill
-- ----------------------------
BEGIN;
INSERT INTO `app_api_bill` VALUES (1, '', '', '基于TypeScript从零重构axios', '2019-04-24 10:36:38', 32800, 1);
INSERT INTO `app_api_bill` VALUES (2, '', '', 'Vue 2.0开发企业级移动端音乐Web APP', '2019-04-24 10:36:38', 30579, 1);
INSERT INTO `app_api_bill` VALUES (3, '', '', 'Get全栈技能点 Vue2.0 / Node.js / MongoDB 打造商城系统', '2019-03-15 19:26:01', 26670, 1);
INSERT INTO `app_api_bill` VALUES (4, '', '', '纯正商业级应用-微信小程序开发实战', '2019-03-15 19:26:01', 28050, 1);
INSERT INTO `app_api_bill` VALUES (5, '', '', '基于TypeScript从零重构axios', '2019-04-24 10:36:38', 32800, 1);
INSERT INTO `app_api_bill` VALUES (6, '', '', 'Vue 2.0开发企业级移动端音乐Web APP', '2019-04-24 10:36:38', 30579, 4);
INSERT INTO `app_api_bill` VALUES (7, '', '', 'Get全栈技能点 Vue2.0 / Node.js / MongoDB 打造商城系统', '2019-03-15 19:26:01', 26670, 4);
INSERT INTO `app_api_bill` VALUES (8, '', '', '纯正商业级应用-微信小程序开发实战', '2019-03-15 19:26:01', 28050, 4);
INSERT INTO `app_api_bill` VALUES (9, '', '', '基于TypeScript从零重构axios', '2019-04-24 10:36:38', 32800, 4);
INSERT INTO `app_api_bill` VALUES (10, '', '', 'Vue 2.0开发企业级移动端音乐Web APP', '2019-04-24 10:36:38', 30579, 4);
INSERT INTO `app_api_bill` VALUES (11, '', '', 'Get全栈技能点 Vue2.0 / Node.js / MongoDB 打造商城系统', '2019-03-15 19:26:01', 26670, 4);
INSERT INTO `app_api_bill` VALUES (12, '', '', '纯正商业级应用-微信小程序开发实战', '2019-03-15 19:26:01', 28050, 4);
INSERT INTO `app_api_bill` VALUES (13, '4', '', '基于TypeScript从零重构axios', '2019-04-24 10:36:38', 32800, 4);
COMMIT;
-- ----------------------------
-- Table structure for app_api_cart
-- ----------------------------
DROP TABLE IF EXISTS `app_api_cart`;
CREATE TABLE `app_api_cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`price` int(11) NOT NULL,
`isDiscount` tinyint(1) NOT NULL,
`discountPrice` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_cart
-- ----------------------------
BEGIN;
INSERT INTO `app_api_cart` VALUES (1, '4', '145', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 266, 1, 216);
COMMIT;
-- ----------------------------
-- Table structure for app_api_catalog
-- ----------------------------
DROP TABLE IF EXISTS `app_api_catalog`;
CREATE TABLE `app_api_catalog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`introduction` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`isComplete` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_catalog
-- ----------------------------
BEGIN;
INSERT INTO `app_api_catalog` VALUES (39, '198', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (40, '199', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (41, '200', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (42, '201', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (43, '202', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (44, '203', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (45, '204', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (46, '205', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (47, '206', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (48, '207', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (49, '208', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (50, '209', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (51, '210', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (52, '211', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (53, '212', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (54, '213', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (55, '214', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (56, '215', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
INSERT INTO `app_api_catalog` VALUES (57, '216', '简介:对于很多刚接触Vue的同学,最难做到的就是编程思路的切换,这门课程,我们将通过形象的例子给大家讲解Vue的基础语法及编程思路,带大家快速的上手Vue的基础开发,这门课也包含了关于组件话和vue-cli等内容的基础讲解。', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_chapter
-- ----------------------------
DROP TABLE IF EXISTS `app_api_chapter`;
CREATE TABLE `app_api_chapter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`introduce` varchar(800) COLLATE utf8mb4_general_ci NOT NULL,
`lesson_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_chapter_lesson_id_abe252fd` (`lesson_id`)
) ENGINE=InnoDB AUTO_INCREMENT=229 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_chapter
-- ----------------------------
BEGIN;
INSERT INTO `app_api_chapter` VALUES (153, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 198);
INSERT INTO `app_api_chapter` VALUES (154, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 198);
INSERT INTO `app_api_chapter` VALUES (155, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 198);
INSERT INTO `app_api_chapter` VALUES (156, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 198);
INSERT INTO `app_api_chapter` VALUES (157, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 199);
INSERT INTO `app_api_chapter` VALUES (158, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 199);
INSERT INTO `app_api_chapter` VALUES (159, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 199);
INSERT INTO `app_api_chapter` VALUES (160, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 199);
INSERT INTO `app_api_chapter` VALUES (161, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 200);
INSERT INTO `app_api_chapter` VALUES (162, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 200);
INSERT INTO `app_api_chapter` VALUES (163, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 200);
INSERT INTO `app_api_chapter` VALUES (164, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 200);
INSERT INTO `app_api_chapter` VALUES (165, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 201);
INSERT INTO `app_api_chapter` VALUES (166, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 201);
INSERT INTO `app_api_chapter` VALUES (167, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 201);
INSERT INTO `app_api_chapter` VALUES (168, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 201);
INSERT INTO `app_api_chapter` VALUES (169, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 202);
INSERT INTO `app_api_chapter` VALUES (170, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 202);
INSERT INTO `app_api_chapter` VALUES (171, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 202);
INSERT INTO `app_api_chapter` VALUES (172, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 202);
INSERT INTO `app_api_chapter` VALUES (173, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 203);
INSERT INTO `app_api_chapter` VALUES (174, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 203);
INSERT INTO `app_api_chapter` VALUES (175, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 203);
INSERT INTO `app_api_chapter` VALUES (176, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 203);
INSERT INTO `app_api_chapter` VALUES (177, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 204);
INSERT INTO `app_api_chapter` VALUES (178, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 204);
INSERT INTO `app_api_chapter` VALUES (179, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 204);
INSERT INTO `app_api_chapter` VALUES (180, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 204);
INSERT INTO `app_api_chapter` VALUES (181, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 205);
INSERT INTO `app_api_chapter` VALUES (182, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 205);
INSERT INTO `app_api_chapter` VALUES (183, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 205);
INSERT INTO `app_api_chapter` VALUES (184, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 205);
INSERT INTO `app_api_chapter` VALUES (185, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 206);
INSERT INTO `app_api_chapter` VALUES (186, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 206);
INSERT INTO `app_api_chapter` VALUES (187, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 206);
INSERT INTO `app_api_chapter` VALUES (188, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 206);
INSERT INTO `app_api_chapter` VALUES (189, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 207);
INSERT INTO `app_api_chapter` VALUES (190, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 207);
INSERT INTO `app_api_chapter` VALUES (191, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 207);
INSERT INTO `app_api_chapter` VALUES (192, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 207);
INSERT INTO `app_api_chapter` VALUES (193, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 208);
INSERT INTO `app_api_chapter` VALUES (194, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 208);
INSERT INTO `app_api_chapter` VALUES (195, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 208);
INSERT INTO `app_api_chapter` VALUES (196, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 208);
INSERT INTO `app_api_chapter` VALUES (197, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 209);
INSERT INTO `app_api_chapter` VALUES (198, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 209);
INSERT INTO `app_api_chapter` VALUES (199, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 209);
INSERT INTO `app_api_chapter` VALUES (200, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 209);
INSERT INTO `app_api_chapter` VALUES (201, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 210);
INSERT INTO `app_api_chapter` VALUES (202, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 210);
INSERT INTO `app_api_chapter` VALUES (203, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 210);
INSERT INTO `app_api_chapter` VALUES (204, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 210);
INSERT INTO `app_api_chapter` VALUES (205, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 211);
INSERT INTO `app_api_chapter` VALUES (206, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 211);
INSERT INTO `app_api_chapter` VALUES (207, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 211);
INSERT INTO `app_api_chapter` VALUES (208, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 211);
INSERT INTO `app_api_chapter` VALUES (209, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 212);
INSERT INTO `app_api_chapter` VALUES (210, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 212);
INSERT INTO `app_api_chapter` VALUES (211, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 212);
INSERT INTO `app_api_chapter` VALUES (212, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 212);
INSERT INTO `app_api_chapter` VALUES (213, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 213);
INSERT INTO `app_api_chapter` VALUES (214, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 213);
INSERT INTO `app_api_chapter` VALUES (215, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 213);
INSERT INTO `app_api_chapter` VALUES (216, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 213);
INSERT INTO `app_api_chapter` VALUES (217, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 214);
INSERT INTO `app_api_chapter` VALUES (218, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 214);
INSERT INTO `app_api_chapter` VALUES (219, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 214);
INSERT INTO `app_api_chapter` VALUES (220, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 214);
INSERT INTO `app_api_chapter` VALUES (221, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 215);
INSERT INTO `app_api_chapter` VALUES (222, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 215);
INSERT INTO `app_api_chapter` VALUES (223, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 215);
INSERT INTO `app_api_chapter` VALUES (224, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 215);
INSERT INTO `app_api_chapter` VALUES (225, '第1章 课程介绍', '对课程讲解内容做完整陈述,帮助大家理清学习思路。', 216);
INSERT INTO `app_api_chapter` VALUES (226, '第2章 Vue基础语法', '本章节通过浅显易懂的实例来给大家讲解Vue2.0的基本语法,包含计算属性,侦听器,基础模版指令等。', 216);
INSERT INTO `app_api_chapter` VALUES (227, '第3章 Vue中的组件', '本章节讲解Vue中组件的概念和使用,结合对组件的完整理解,我们还将做一个TodoList功能模块。', 216);
INSERT INTO `app_api_chapter` VALUES (228, '第4章 Vue-cli的使用', '本章节我们讲给大家介绍如何使用Vue-cli脚手架工具构建项目,并讲解单文件组件和局部全局样式的知识。', 216);
COMMIT;
-- ----------------------------
-- Table structure for app_api_comment
-- ----------------------------
DROP TABLE IF EXISTS `app_api_comment`;
CREATE TABLE `app_api_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`avatar` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`content_score` double NOT NULL,
`easy_score` double NOT NULL,
`logic_score` double NOT NULL,
`time` datetime(6) NOT NULL,
`comment` varchar(1000) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1141 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_comment
-- ----------------------------
BEGIN;
INSERT INTO `app_api_comment` VALUES (761, '198', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.390509', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (762, '198', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.391263', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (763, '198', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.392311', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (764, '198', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.392991', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (765, '198', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.393562', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (766, '198', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.394160', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (767, '198', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.394738', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (768, '198', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.395302', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (769, '198', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.395829', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (770, '198', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.396342', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (771, '198', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.396963', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (772, '198', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.397480', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (773, '198', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.398021', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (774, '198', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.398474', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (775, '198', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.398963', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (776, '198', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.399442', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (777, '198', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.399976', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (778, '198', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.400434', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (779, '198', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.400866', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (780, '198', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.401325', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (781, '199', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.401751', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (782, '199', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.402167', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (783, '199', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.402704', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (784, '199', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.403222', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (785, '199', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.403817', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (786, '199', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.404298', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (787, '199', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.404786', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (788, '199', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.405284', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (789, '199', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.405749', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (790, '199', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.406168', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (791, '199', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.406628', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (792, '199', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.407189', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (793, '199', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.407660', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (794, '199', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.408122', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (795, '199', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.408540', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (796, '199', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.409011', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (797, '199', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.409503', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (798, '199', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.409996', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (799, '199', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.410437', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (800, '199', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.410981', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (801, '200', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.411433', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (802, '200', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.411898', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (803, '200', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.412315', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (804, '200', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.412768', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (805, '200', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.413223', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (806, '200', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.413678', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (807, '200', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.414153', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (808, '200', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.414607', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (809, '200', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.415060', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (810, '200', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.415507', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (811, '200', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.415920', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (812, '200', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.416347', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (813, '200', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.416789', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (814, '200', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.417330', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (815, '200', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.417726', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (816, '200', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.418195', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (817, '200', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.418708', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (818, '200', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.419160', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (819, '200', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.419700', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (820, '200', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.420132', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (821, '201', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.420685', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (822, '201', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.421234', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (823, '201', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.421710', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (824, '201', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.422183', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (825, '201', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.422649', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (826, '201', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.423093', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (827, '201', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.423629', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (828, '201', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.424104', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (829, '201', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.424526', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (830, '201', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.424986', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (831, '201', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.425407', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (832, '201', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.425827', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (833, '201', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.426374', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (834, '201', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.426968', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (835, '201', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.427449', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (836, '201', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.427886', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (837, '201', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.428329', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (838, '201', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.428833', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (839, '201', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.429346', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (840, '201', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.429784', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (841, '202', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.430368', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (842, '202', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.430852', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (843, '202', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.431335', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (844, '202', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.431937', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (845, '202', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.432396', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (846, '202', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.432867', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (847, '202', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.433338', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (848, '202', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.433804', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (849, '202', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.434245', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (850, '202', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.434701', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (851, '202', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.435149', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (852, '202', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.435634', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (853, '202', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.436076', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (854, '202', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.436524', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (855, '202', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.436960', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (856, '202', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.437397', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (857, '202', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.437839', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (858, '202', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.438238', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (859, '202', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.438670', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (860, '202', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.439107', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (861, '203', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.439545', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (862, '203', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.440320', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (863, '203', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.440836', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (864, '203', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.441321', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (865, '203', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.441807', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (866, '203', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.442345', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (867, '203', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.442878', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (868, '203', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.443449', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (869, '203', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.443909', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (870, '203', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.444318', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (871, '203', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.444820', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (872, '203', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.445312', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (873, '203', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.445774', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (874, '203', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.446248', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (875, '203', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.446749', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (876, '203', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.447231', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (877, '203', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.447705', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (878, '203', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.448211', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (879, '203', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.448638', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (880, '203', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.449119', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (881, '204', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.449603', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (882, '204', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.450181', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (883, '204', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.450629', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (884, '204', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.451141', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (885, '204', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.451586', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (886, '204', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.452054', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (887, '204', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.452523', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (888, '204', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.453000', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (889, '204', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.453577', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (890, '204', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.454014', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (891, '204', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.454478', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (892, '204', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.454909', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (893, '204', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.455375', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (894, '204', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.455834', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (895, '204', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.456245', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (896, '204', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.456795', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (897, '204', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.457248', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (898, '204', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.457719', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (899, '204', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.458155', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (900, '204', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.458631', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (901, '205', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.459124', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (902, '205', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.459619', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (903, '205', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.460198', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (904, '205', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.460618', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (905, '205', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.461088', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (906, '205', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.461544', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (907, '205', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.461961', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (908, '205', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.462419', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (909, '205', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.462888', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (910, '205', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.463419', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (911, '205', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.463887', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (912, '205', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.464409', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (913, '205', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.464957', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (914, '205', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.465417', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (915, '205', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.465841', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (916, '205', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.466261', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (917, '205', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.466853', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (918, '205', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.467296', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (919, '205', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.467784', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (920, '205', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.468224', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (921, '206', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.468672', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (922, '206', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.469097', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (923, '206', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.469556', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (924, '206', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.470126', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (925, '206', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.470543', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (926, '206', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.471003', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (927, '206', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.471580', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (928, '206', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.472096', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (929, '206', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.472533', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (930, '206', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.472989', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (931, '206', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.473539', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (932, '206', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.474000', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (933, '206', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.474463', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (934, '206', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.474954', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (935, '206', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.475419', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (936, '206', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.476062', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (937, '206', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.476747', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (938, '206', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.477369', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (939, '206', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.477852', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (940, '206', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.478301', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (941, '207', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.478764', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (942, '207', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.479264', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (943, '207', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.479734', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (944, '207', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.480240', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (945, '207', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.480667', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (946, '207', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.481116', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (947, '207', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.481570', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (948, '207', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.482026', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (949, '207', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.482520', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (950, '207', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.482952', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (951, '207', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.483424', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (952, '207', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.483997', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (953, '207', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.484498', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (954, '207', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.484984', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (955, '207', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.485479', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (956, '207', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.485925', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (957, '207', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.486377', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (958, '207', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.486822', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (959, '207', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.487378', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (960, '207', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.487839', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (961, '208', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.488296', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (962, '208', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.488782', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (963, '208', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.489256', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (964, '208', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.489721', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (965, '208', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.490145', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (966, '208', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.490708', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (967, '208', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.491177', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (968, '208', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.491626', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (969, '208', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.492111', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (970, '208', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.492545', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (971, '208', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.493010', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (972, '208', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.493540', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (973, '208', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.494085', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (974, '208', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.494562', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (975, '208', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.494977', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (976, '208', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.495395', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (977, '208', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.495895', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (978, '208', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.496359', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (979, '208', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.496854', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (980, '208', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.497341', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (981, '209', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.497913', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (982, '209', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.498551', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (983, '209', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.499051', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (984, '209', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.499495', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (985, '209', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.500079', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (986, '209', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.500598', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (987, '209', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.501062', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (988, '209', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.501620', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (989, '209', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.502182', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (990, '209', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.502804', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (991, '209', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.503275', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (992, '209', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.503827', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (993, '209', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.504617', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (994, '209', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.505377', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (995, '209', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.505997', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (996, '209', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.506530', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (997, '209', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.506998', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (998, '209', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.507524', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (999, '209', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.508026', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1000, '209', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.508481', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1001, '210', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.508979', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1002, '210', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.509465', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1003, '210', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.509967', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1004, '210', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.510456', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1005, '210', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.510982', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1006, '210', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.511575', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1007, '210', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.512192', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1008, '210', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.512822', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1009, '210', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.513307', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1010, '210', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.513749', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1011, '210', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.514353', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1012, '210', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.514878', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1013, '210', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.515370', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1014, '210', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.515908', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1015, '210', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.516373', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1016, '210', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.516781', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1017, '210', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.517286', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1018, '210', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.517754', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1019, '210', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.518217', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1020, '210', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.518628', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1021, '211', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.519175', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1022, '211', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.519656', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1023, '211', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.520136', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1024, '211', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.520641', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1025, '211', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.521089', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1026, '211', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.521574', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1027, '211', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.522299', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1028, '211', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.522919', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1029, '211', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.523369', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1030, '211', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.523952', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1031, '211', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.524429', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1032, '211', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.524981', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1033, '211', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.525576', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1034, '211', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.526080', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1035, '211', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.526685', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1036, '211', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.527177', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1037, '211', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.527666', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1038, '211', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.528080', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1039, '211', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.528519', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1040, '211', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.528956', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1041, '212', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.529404', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1042, '212', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.529837', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1043, '212', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.530294', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1044, '212', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.530781', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1045, '212', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.531281', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1046, '212', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.531721', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1047, '212', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.532192', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1048, '212', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.532750', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1049, '212', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.533202', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1050, '212', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.533616', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1051, '212', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.534068', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1052, '212', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.534496', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1053, '212', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.534945', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1054, '212', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.535369', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1055, '212', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.536056', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1056, '212', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.536530', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1057, '212', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.536996', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1058, '212', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.537446', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1059, '212', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.537865', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1060, '212', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.538349', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1061, '213', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.538860', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1062, '213', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.539390', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1063, '213', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.539805', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1064, '213', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.540261', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1065, '213', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.540828', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1066, '213', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.541295', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1067, '213', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.541757', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1068, '213', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.542221', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1069, '213', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.542698', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1070, '213', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.543121', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1071, '213', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.543576', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1072, '213', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.544044', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1073, '213', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.544578', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1074, '213', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.545033', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1075, '213', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.545475', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1076, '213', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.546068', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1077, '213', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.546736', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1078, '213', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.547215', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1079, '213', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.547639', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1080, '213', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.548099', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1081, '214', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.548527', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1082, '214', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.548946', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1083, '214', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.549497', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1084, '214', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.549910', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1085, '214', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.550364', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1086, '214', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.550776', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1087, '214', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.551183', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1088, '214', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.551739', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1089, '214', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.552324', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1090, '214', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.552906', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1091, '214', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.553333', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1092, '214', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.553829', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1093, '214', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.554292', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1094, '214', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.554716', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1095, '214', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.555167', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1096, '214', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.555583', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1097, '214', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.556057', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1098, '214', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.556513', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1099, '214', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.556935', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1100, '214', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.557461', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1101, '215', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.557918', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1102, '215', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.558372', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1103, '215', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.558823', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1104, '215', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.559377', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1105, '215', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.559822', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1106, '215', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.560290', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1107, '215', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.560755', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1108, '215', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.561230', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1109, '215', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.561709', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1110, '215', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.562149', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1111, '215', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.562731', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1112, '215', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.563202', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1113, '215', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.563660', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1114, '215', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.564158', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1115, '215', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.564660', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1116, '215', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.565167', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1117, '215', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.565612', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1118, '215', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.566080', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1119, '215', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.566551', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1120, '215', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.567031', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1121, '216', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.567457', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1122, '216', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.567963', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1123, '216', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.568447', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1124, '216', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.568933', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1125, '216', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.569409', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1126, '216', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.569837', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1127, '216', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.570290', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1128, '216', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.570765', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1129, '216', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.571309', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1130, '216', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.571765', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1131, '216', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9.6, 9.5, 9.7, '2020-10-07 01:42:47.572259', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1132, '216', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9.6, 9.2, 9.8, '2020-10-07 01:42:47.572854', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1133, '216', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 9.9, 9.3, 9.4, '2020-10-07 01:42:47.573330', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1134, '216', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 8, 9.3, 9.4, '2020-10-07 01:42:47.573749', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1135, '216', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 7, 8.3, 8.4, '2020-10-07 01:42:47.574215', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
INSERT INTO `app_api_comment` VALUES (1136, '216', '网络侦探', 'https://img.mukewang.com/5599e8e100010c2110800960-40-40.jpg', 9, 8.3, 8.4, '2020-10-07 01:42:47.574658', '就弱基础Vue入门来说真的是很不错的入门课程,html引入Vue的写法和Vue的工程化开发方式也有介绍,认真学完再去学官方文档会轻松不少。');
INSERT INTO `app_api_comment` VALUES (1137, '216', 'Cassie_MC', 'https://img3.mukewang.com/58f85af900019f2102240224-40-40.jpg', 9, 9.3, 9.4, '2020-10-07 01:42:47.575087', '非常适合入门了,没有上来就搭环境,而是深入浅出的结合小demo,把Vue的基础知识结构快速搭建起来,让入学者没有负担,还能有所收获。');
INSERT INTO `app_api_comment` VALUES (1138, '216', '凌晨晚餐', 'https://img.mukewang.com/5a3f4e1c0001b4bf02500250-40-40.jpg', 8.5, 9, 9, '2020-10-07 01:42:47.575486', '之前只用过react,看这个课程,对vue有了初步的了解,挺好的');
INSERT INTO `app_api_comment` VALUES (1139, '216', '慕丝3222080', 'https://img1.mukewang.com/5458655200013d9802200220-40-40.jpg', 9.9, 9, 9, '2020-10-07 01:42:47.575972', '感谢老师,入门很有帮助!');
INSERT INTO `app_api_comment` VALUES (1140, '216', '熬夜会牙痛_代码打多会掉头发', 'https://img2.mukewang.com/545862fe00017c2602200220-40-40.jpg', 6.6, 8, 8, '2020-10-07 01:42:47.576478', '老师讲的很细,思路清晰,视频时长也不算长,学起来很轻松');
COMMIT;
-- ----------------------------
-- Table structure for app_api_commonpathconfig
-- ----------------------------
DROP TABLE IF EXISTS `app_api_commonpathconfig`;
CREATE TABLE `app_api_commonpathconfig` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`icon` varchar(500) COLLATE utf8mb4_general_ci NOT NULL,
`type` varchar(500) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=141 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_commonpathconfig
-- ----------------------------
BEGIN;
INSERT INTO `app_api_commonpathconfig` VALUES (127, '企业合作', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (128, '人才招聘', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (129, '联系我们', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (130, '讲师招募', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (131, '帮助中心', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (132, '意见反馈', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (133, '慕课大学', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (134, '代码托管', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (135, '友情链接', '', '', 'f');
INSERT INTO `app_api_commonpathconfig` VALUES (136, '免费课程', '/course', '', 'h');
INSERT INTO `app_api_commonpathconfig` VALUES (137, '实战课程', '/lesson', '', 'h');
INSERT INTO `app_api_commonpathconfig` VALUES (138, '专栏', '/read', 'https://www.imooc.com/static/img/common/new.png', 'h');
INSERT INTO `app_api_commonpathconfig` VALUES (139, '猿问', '/question', '', 'h');
INSERT INTO `app_api_commonpathconfig` VALUES (140, '手记', '/article', '', 'h');
COMMIT;
-- ----------------------------
-- Table structure for app_api_consult
-- ----------------------------
DROP TABLE IF EXISTS `app_api_consult`;
CREATE TABLE `app_api_consult` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`like` tinyint(1) NOT NULL,
`number` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`answer` varchar(1000) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
`course_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`userid` varchar(255) COLLATE utf8mb4_general_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_consult
-- ----------------------------
BEGIN;
INSERT INTO `app_api_consult` VALUES (1, 0, 0, '课程有效期是多久呢?', '亲,您好~课程无限期的,您可以根据自己的时间安排学习进度。祝您学习愉快~', '2019-07-18 00:00:00.000000', 'Flutter从入门到进阶 实战携程网App', '1');
INSERT INTO `app_api_consult` VALUES (2, 1, 99, '试听一节课', '亲,您好~课程界面上有课程的导学试听。祝您学习愉快~', '2019-07-18 00:00:00.000000', 'Flutter从入门到进阶 实战携程网App', '1');
INSERT INTO `app_api_consult` VALUES (3, 1, 30, '老师除了视频,还会有辅助资料吗,遇到不懂的,可以问您吗?', '亲,您好~每一小节的代码,我都会提供给大家,另外我为大家建立了git仓库,一些高级的webpack内容,我会不断向仓库中新增。我们还有群,大家可以互相探讨Webpack的最佳实践,是非常好的学习沟通资源。同学们有问题,随时可以在慕课留言区提问,我会及时给大家解答。祝您学习愉快~', '2019-07-18 00:00:00.000000', '从基础到实战 手把手带你掌握新版Webpack4.0', '1');
INSERT INTO `app_api_consult` VALUES (4, 1, 44, '课程中讲到的内容,是否是目前企业中常用的解决方案,能够直接应用到实际工作中吗?', '亲,您好~课程中的问题,都是在业务中非常常见的配置,你可以直接应用在实际工作中,帮助你解决配置问题。祝您学习愉快~', '2019-07-18 00:00:00.000000', '从基础到实战 手把手带你掌握新版Webpack4.0', '1');
INSERT INTO `app_api_consult` VALUES (5, 1, 12, '最近VUE的课程络绎不绝,这个课程对于其他来说特点在哪里呢?', '亲,您好~这门课程是vue入门的课程,针对没有vue基础,学要学习vue的用户人群。所以课程的前部分是讲解vue的入门基础语法,后半部分是一个实战的项目,所以是入门到实战的完美过渡的课程。学习完成这门课程再学习其它的vue高级课程其实是最好的学习路径了。祝您学习愉快~', '2019-07-18 00:00:00.000000', 'Vue2.5开发去哪儿网App 从零基础入门到实战项目', '1');
INSERT INTO `app_api_consult` VALUES (6, 1, 30, '有关于通过路由控制权限的讲解吗', '亲,您好~这部分内容课程中没有讲, 但是很简单 可以随时问我,在qq群@我,或者在平台问答区提问。祝您学习愉快~', '2019-07-18 00:00:00.000000', 'Vue2.5开发去哪儿网App 从零基础入门到实战项目', '4');
COMMIT;
-- ----------------------------
-- Table structure for app_api_coupon
-- ----------------------------
DROP TABLE IF EXISTS `app_api_coupon`;
CREATE TABLE `app_api_coupon` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`orderid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`number` int(11) NOT NULL,
`limit` int(11) NOT NULL,
`starttime` datetime(6) NOT NULL,
`endtime` datetime(6) NOT NULL,
`usetime` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`range_id` int(11) NOT NULL,
`status_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_coupon_range_id_66f00ed0` (`range_id`),
KEY `app_api_coupon_status_id_071fcbb7` (`status_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_coupon
-- ----------------------------
BEGIN;
INSERT INTO `app_api_coupon` VALUES (1, '4', '', 10, 50, '2020-10-01 00:00:00.000000', '2020-10-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (2, '', '', 30, 99, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (3, '', '', 60, 199, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (4, '', '', 90, 399, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (5, '', '', 120, 599, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (6, '', '', 30, 99, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 1);
INSERT INTO `app_api_coupon` VALUES (7, '', '', 30, 99, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 7);
INSERT INTO `app_api_coupon` VALUES (8, '', '', 60, 199, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 7);
INSERT INTO `app_api_coupon` VALUES (9, '', '', 60, 299, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 7);
INSERT INTO `app_api_coupon` VALUES (10, '', '', 90, 399, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 7);
INSERT INTO `app_api_coupon` VALUES (11, '', '', 120, 599, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 7);
INSERT INTO `app_api_coupon` VALUES (12, '', '', 30, 99, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 12);
INSERT INTO `app_api_coupon` VALUES (13, '', '', 60, 199, '2020-05-01 00:00:00.000000', '2020-05-15 00:00:00.000000', '', 1, 12);
INSERT INTO `app_api_coupon` VALUES (14, '', '', 60, 299, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 12);
INSERT INTO `app_api_coupon` VALUES (15, '', '', 90, 399, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 12);
INSERT INTO `app_api_coupon` VALUES (16, '', '', 120, 599, '2019-03-01 00:00:00.000000', '2019-07-01 00:00:00.000000', '', 1, 12);
COMMIT;
-- ----------------------------
-- Table structure for app_api_couponrange
-- ----------------------------
DROP TABLE IF EXISTS `app_api_couponrange`;
CREATE TABLE `app_api_couponrange` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_couponrange
-- ----------------------------
BEGIN;
INSERT INTO `app_api_couponrange` VALUES (1, '实战课程', 0);
COMMIT;
-- ----------------------------
-- Table structure for app_api_couponstatus
-- ----------------------------
DROP TABLE IF EXISTS `app_api_couponstatus`;
CREATE TABLE `app_api_couponstatus` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_couponstatus
-- ----------------------------
BEGIN;
INSERT INTO `app_api_couponstatus` VALUES (1, '未使用', 0);
INSERT INTO `app_api_couponstatus` VALUES (7, '已使用', 1);
INSERT INTO `app_api_couponstatus` VALUES (12, '已过期', 2);
COMMIT;
-- ----------------------------
-- Table structure for app_api_emailverifyrecord
-- ----------------------------
DROP TABLE IF EXISTS `app_api_emailverifyrecord`;
CREATE TABLE `app_api_emailverifyrecord` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
`email` varchar(50) COLLATE utf8mb4_general_ci NOT NULL,
`send_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
`send_time` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_emailverifyrecord
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_footer
-- ----------------------------
DROP TABLE IF EXISTS `app_api_footer`;
CREATE TABLE `app_api_footer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`url` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_footer
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_history
-- ----------------------------
DROP TABLE IF EXISTS `app_api_history`;
CREATE TABLE `app_api_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_history
-- ----------------------------
BEGIN;
INSERT INTO `app_api_history` VALUES (26, 'canvas', '2020-10-07 01:42:41.214927');
INSERT INTO `app_api_history` VALUES (27, '去哪儿网', '2020-10-07 01:42:41.215326');
INSERT INTO `app_api_history` VALUES (28, 'webpack', '2020-10-07 01:42:41.215699');
INSERT INTO `app_api_history` VALUES (29, 'flutter', '2020-10-07 01:42:41.216191');
INSERT INTO `app_api_history` VALUES (30, 'rn', '2020-10-07 01:42:41.216626');
COMMIT;
-- ----------------------------
-- Table structure for app_api_hot
-- ----------------------------
DROP TABLE IF EXISTS `app_api_hot`;
CREATE TABLE `app_api_hot` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_hot
-- ----------------------------
BEGIN;
INSERT INTO `app_api_hot` VALUES (73, 'React', '2020-10-07 01:42:40.477173');
INSERT INTO `app_api_hot` VALUES (74, '面试', '2020-10-07 01:42:40.477725');
INSERT INTO `app_api_hot` VALUES (75, '算法', '2020-10-07 01:42:40.478205');
INSERT INTO `app_api_hot` VALUES (76, 'Vue.js', '2020-10-07 01:42:40.478632');
INSERT INTO `app_api_hot` VALUES (77, 'Python', '2020-10-07 01:42:40.479108');
INSERT INTO `app_api_hot` VALUES (78, 'GO语言', '2020-10-07 01:42:40.479508');
INSERT INTO `app_api_hot` VALUES (79, '小程序', '2020-10-07 01:42:40.479876');
INSERT INTO `app_api_hot` VALUES (80, '毕设', '2020-10-07 01:42:40.480226');
COMMIT;
-- ----------------------------
-- Table structure for app_api_integral
-- ----------------------------
DROP TABLE IF EXISTS `app_api_integral`;
CREATE TABLE `app_api_integral` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`integral` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_integral_type_id_f4742337` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_integral
-- ----------------------------
BEGIN;
INSERT INTO `app_api_integral` VALUES (73, 'https://img3.sycdn.imooc.com/5d312ea3000161d102820282-200-200.jpg', '15元全站课程优惠券', 50, 7);
INSERT INTO `app_api_integral` VALUES (74, 'https://img1.sycdn.imooc.com/5d312f7d00018c3c02820282-200-200.jpg', '30元全站课程优惠券', 100, 7);
INSERT INTO `app_api_integral` VALUES (75, 'https://img3.sycdn.imooc.com/5d312f8700019e4b02820282-200-200.jpg', '50元全站课程优惠券', 150, 7);
INSERT INTO `app_api_integral` VALUES (76, 'https://img3.sycdn.imooc.com/5d312f8700019e4b02820282-200-200.jpg', '魔性贪吃蛇小游戏', 1, 7);
INSERT INTO `app_api_integral` VALUES (77, 'https://img1.sycdn.imooc.com/5678c7e600019c8303600360-200-200.jpg', '2048技术人生定制版', 1, 7);
INSERT INTO `app_api_integral` VALUES (78, 'https://img3.sycdn.imooc.com/565d1a920001244403600360-200-200.jpg', '慕烟花', 1, 7);
INSERT INTO `app_api_integral` VALUES (79, 'https://img3.sycdn.imooc.com/5bd0410f0001524703440400-200-200.jpg', '基于iOS8正式版全面修订 Swift开发指南', 395, 8);
INSERT INTO `app_api_integral` VALUES (80, 'https://img3.sycdn.imooc.com/5bd0402e000132bd04300430-200-200.jpg', 'Scala与Clojure函数式编程模式', 295, 8);
INSERT INTO `app_api_integral` VALUES (81, 'https://img4.sycdn.imooc.com/5bd03ee40001539304300430-200-200.jpg', 'Druid实时大数据分析原理与实践', 445, 8);
INSERT INTO `app_api_integral` VALUES (82, 'https://img1.sycdn.imooc.com/5bd03db700012a7403500350-200-200.jpg', 'POSTGRESQL 9', 445, 8);
INSERT INTO `app_api_integral` VALUES (83, 'https://img3.sycdn.imooc.com/5bd03cd70001db9503500350-200-200.jpg', 'Kotlin程序开发入门精要', 395, 8);
INSERT INTO `app_api_integral` VALUES (84, 'https://img3.sycdn.imooc.com/5bd03c890001e77602730304-200-200.jpg', '创世学说 游戏系统设计指南', 545, 8);
INSERT INTO `app_api_integral` VALUES (85, 'https://img1.sycdn.imooc.com/5bd03db700012a7403500350-200-200.jpg', 'Elixir 程序设计', 425, 8);
INSERT INTO `app_api_integral` VALUES (86, 'https://img3.sycdn.imooc.com/5bd03cd70001db9503500350-200-200.jpg', '疯狂Java讲义 第4版 附光盘', 545, 8);
INSERT INTO `app_api_integral` VALUES (87, 'https://img3.sycdn.imooc.com/5bd03c890001e77602730304-200-200.jpg', '创世学说 MySQL管理之道 性能调优、高可用与监控', 395, 8);
INSERT INTO `app_api_integral` VALUES (88, 'https://img3.sycdn.imooc.com/5bd0410f0001524703440400-200-200.jpg', '基于iOS8正式版全面修订 Swift开发指南', 395, 8);
INSERT INTO `app_api_integral` VALUES (89, 'https://img3.sycdn.imooc.com/5bd0402e000132bd04300430-200-200.jpg', 'Scala与Clojure函数式编程模式', 295, 8);
INSERT INTO `app_api_integral` VALUES (90, 'https://img4.sycdn.imooc.com/5bd03ee40001539304300430-200-200.jpg', 'Druid实时大数据分析原理与实践', 445, 8);
INSERT INTO `app_api_integral` VALUES (91, 'https://img1.sycdn.imooc.com/5bd03db700012a7403500350-200-200.jpg', 'POSTGRESQL 9', 445, 8);
INSERT INTO `app_api_integral` VALUES (92, 'https://img3.sycdn.imooc.com/5bd03cd70001db9503500350-200-200.jpg', 'Kotlin程序开发入门精要', 395, 8);
INSERT INTO `app_api_integral` VALUES (93, 'https://img3.sycdn.imooc.com/5bd03c890001e77602730304-200-200.jpg', '创世学说 游戏系统设计指南', 545, 8);
INSERT INTO `app_api_integral` VALUES (94, 'https://img1.sycdn.imooc.com/5bd03db700012a7403500350-200-200.jpg', 'Elixir 程序设计', 425, 8);
INSERT INTO `app_api_integral` VALUES (95, 'https://img3.sycdn.imooc.com/5bd03cd70001db9503500350-200-200.jpg', '疯狂Java讲义 第4版 附光盘', 545, 8);
INSERT INTO `app_api_integral` VALUES (96, 'https://img3.sycdn.imooc.com/5bd03c890001e77602730304-200-200.jpg', '创世学说 MySQL管理之道 性能调优、高可用与监控', 395, 8);
COMMIT;
-- ----------------------------
-- Table structure for app_api_integraltype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_integraltype`;
CREATE TABLE `app_api_integraltype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_integraltype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_integraltype` VALUES (7, '0', '虚拟商品');
INSERT INTO `app_api_integraltype` VALUES (8, '1', '实体商品');
COMMIT;
-- ----------------------------
-- Table structure for app_api_label
-- ----------------------------
DROP TABLE IF EXISTS `app_api_label`;
CREATE TABLE `app_api_label` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sort` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_label_type_id_4ede89be` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_label
-- ----------------------------
BEGIN;
INSERT INTO `app_api_label` VALUES (137, 'HTML/CSS', 0, 28);
INSERT INTO `app_api_label` VALUES (138, 'JavaScript', 1, 28);
INSERT INTO `app_api_label` VALUES (139, 'TypeScript', 2, 28);
INSERT INTO `app_api_label` VALUES (140, 'Vue.js', 2, 28);
INSERT INTO `app_api_label` VALUES (141, 'React.js', 3, 28);
INSERT INTO `app_api_label` VALUES (142, 'Angular', 4, 28);
INSERT INTO `app_api_label` VALUES (143, 'Node.js', 5, 28);
INSERT INTO `app_api_label` VALUES (144, 'jQuery', 6, 28);
INSERT INTO `app_api_label` VALUES (145, 'Sass/Less', 7, 28);
INSERT INTO `app_api_label` VALUES (146, 'WebApp', 8, 28);
INSERT INTO `app_api_label` VALUES (147, '小程序', 9, 28);
INSERT INTO `app_api_label` VALUES (148, '前端工具', 10, 28);
INSERT INTO `app_api_label` VALUES (149, 'Java', 0, 29);
INSERT INTO `app_api_label` VALUES (150, 'SpringBoot', 1, 29);
INSERT INTO `app_api_label` VALUES (151, 'Spring Cloud', 2, 29);
INSERT INTO `app_api_label` VALUES (152, 'SSM', 3, 29);
INSERT INTO `app_api_label` VALUES (153, 'Python', 4, 29);
INSERT INTO `app_api_label` VALUES (154, '爬虫', 5, 29);
INSERT INTO `app_api_label` VALUES (155, 'Django', 6, 29);
INSERT INTO `app_api_label` VALUES (156, 'Flask', 7, 29);
INSERT INTO `app_api_label` VALUES (157, 'Tornado', 8, 29);
INSERT INTO `app_api_label` VALUES (158, 'Go', 9, 29);
INSERT INTO `app_api_label` VALUES (159, 'PHP', 10, 29);
INSERT INTO `app_api_label` VALUES (160, 'Swoole', 11, 29);
INSERT INTO `app_api_label` VALUES (161, 'C', 12, 29);
INSERT INTO `app_api_label` VALUES (162, 'C++', 13, 29);
INSERT INTO `app_api_label` VALUES (163, 'Android', 0, 30);
INSERT INTO `app_api_label` VALUES (164, 'iOS', 1, 30);
INSERT INTO `app_api_label` VALUES (165, 'React native', 2, 30);
INSERT INTO `app_api_label` VALUES (166, 'Ionic', 3, 30);
INSERT INTO `app_api_label` VALUES (167, 'Flutter', 4, 30);
INSERT INTO `app_api_label` VALUES (168, 'Weex', 5, 30);
INSERT INTO `app_api_label` VALUES (169, '计算机网络', 0, 31);
INSERT INTO `app_api_label` VALUES (170, '算法与数据结构', 1, 31);
INSERT INTO `app_api_label` VALUES (171, '数学', 2, 31);
INSERT INTO `app_api_label` VALUES (172, '微服务', 0, 32);
INSERT INTO `app_api_label` VALUES (173, '区块链', 1, 32);
INSERT INTO `app_api_label` VALUES (174, '机器学习', 2, 32);
INSERT INTO `app_api_label` VALUES (175, '深度学习', 3, 32);
INSERT INTO `app_api_label` VALUES (176, '计算机视觉', 5, 32);
INSERT INTO `app_api_label` VALUES (177, '自然语言处理', 6, 32);
INSERT INTO `app_api_label` VALUES (178, '数据分析&挖掘', 7, 32);
INSERT INTO `app_api_label` VALUES (179, '大数据', 0, 33);
INSERT INTO `app_api_label` VALUES (180, 'Hadoop', 1, 33);
INSERT INTO `app_api_label` VALUES (181, 'Spark', 2, 33);
INSERT INTO `app_api_label` VALUES (182, 'Hbase', 3, 33);
INSERT INTO `app_api_label` VALUES (183, 'Flink', 4, 33);
INSERT INTO `app_api_label` VALUES (184, 'Storm', 5, 33);
INSERT INTO `app_api_label` VALUES (185, '阿里云', 6, 33);
INSERT INTO `app_api_label` VALUES (186, 'Docker', 7, 33);
INSERT INTO `app_api_label` VALUES (187, 'Kubernetes', 8, 33);
INSERT INTO `app_api_label` VALUES (188, '运维', 0, 34);
INSERT INTO `app_api_label` VALUES (189, '自动化运维', 1, 34);
INSERT INTO `app_api_label` VALUES (190, '中间件', 2, 34);
INSERT INTO `app_api_label` VALUES (191, 'Linux', 3, 34);
INSERT INTO `app_api_label` VALUES (192, '测试', 4, 34);
INSERT INTO `app_api_label` VALUES (193, '功能测试', 5, 34);
INSERT INTO `app_api_label` VALUES (194, '性能测试', 6, 34);
INSERT INTO `app_api_label` VALUES (195, '自动化测试', 7, 34);
INSERT INTO `app_api_label` VALUES (196, '接口测试', 8, 34);
INSERT INTO `app_api_label` VALUES (197, 'MySQL', 0, 35);
INSERT INTO `app_api_label` VALUES (198, 'Redis', 1, 35);
INSERT INTO `app_api_label` VALUES (199, 'MongoDB', 2, 35);
INSERT INTO `app_api_label` VALUES (200, '动效动画', 0, 36);
INSERT INTO `app_api_label` VALUES (201, '设计基础', 1, 36);
INSERT INTO `app_api_label` VALUES (202, '设计工具', 2, 36);
INSERT INTO `app_api_label` VALUES (203, 'APPUI设计', 3, 36);
INSERT INTO `app_api_label` VALUES (204, '产品交互', 4, 36);
COMMIT;
-- ----------------------------
-- Table structure for app_api_labelfollow
-- ----------------------------
DROP TABLE IF EXISTS `app_api_labelfollow`;
CREATE TABLE `app_api_labelfollow` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` int(11) NOT NULL,
`labelid` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_api_labelfollow_userid_labelid_b4d2cd2a_uniq` (`userid`,`labelid`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_labelfollow
-- ----------------------------
BEGIN;
INSERT INTO `app_api_labelfollow` VALUES (1, 1, 137, 'HTML/CSS');
INSERT INTO `app_api_labelfollow` VALUES (2, 1, 138, 'JavaScript');
INSERT INTO `app_api_labelfollow` VALUES (3, 4, 137, 'HTML/CSS');
INSERT INTO `app_api_labelfollow` VALUES (4, 4, 138, 'JavaScript');
COMMIT;
-- ----------------------------
-- Table structure for app_api_labeltype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_labeltype`;
CREATE TABLE `app_api_labeltype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_labeltype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_labeltype` VALUES (28, '前端开发', 0, 0);
INSERT INTO `app_api_labeltype` VALUES (29, '后端开发', 1, 1);
INSERT INTO `app_api_labeltype` VALUES (30, '移动端开发', 2, 2);
INSERT INTO `app_api_labeltype` VALUES (31, '计算机基础', 3, 3);
INSERT INTO `app_api_labeltype` VALUES (32, '前沿技术', 4, 4);
INSERT INTO `app_api_labeltype` VALUES (33, '云计算&大数据', 5, 5);
INSERT INTO `app_api_labeltype` VALUES (34, '运维&测试', 6, 6);
INSERT INTO `app_api_labeltype` VALUES (35, '数据库', 7, 7);
INSERT INTO `app_api_labeltype` VALUES (36, 'UI设计&多媒体', 8, 8);
COMMIT;
-- ----------------------------
-- Table structure for app_api_lesson
-- ----------------------------
DROP TABLE IF EXISTS `app_api_lesson`;
CREATE TABLE `app_api_lesson` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`introduction` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`banner` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`price` int(11) NOT NULL,
`isDiscount` tinyint(1) NOT NULL,
`discountPrice` int(11) NOT NULL,
`time` datetime(6) NOT NULL,
`persons` int(11) NOT NULL,
`comments` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`hard_id` int(11) NOT NULL,
`script_id` int(11) DEFAULT NULL,
`teacher_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`),
KEY `app_api_lesson_category_id_b3f7501d` (`category_id`),
KEY `app_api_lesson_hard_id_430e4731` (`hard_id`),
KEY `app_api_lesson_script_id_b115974a` (`script_id`),
KEY `app_api_lesson_teacher_id_4105c9e3` (`teacher_id`),
KEY `app_api_lesson_type_id_5b18e75f` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=217 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_lesson
-- ----------------------------
BEGIN;
INSERT INTO `app_api_lesson` VALUES (145, 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 'Dell老师专为TypeScript小白打造的,全栈式教学TS入门课程', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5e1d991809c5318e40000800.jpg', 266, 1, 216, '2020-10-07 01:42:46.623680', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (146, '前端要学的测试课 从Jest入门到 TDD/BDD双实战', '以Vue/React项目进行自动化测试实战,让你技术水平和架构思维双提升', 'https://img.mukewang.com/szimg/5d36a6000837a91d06000338-360-202.jpg', 'https://img.mukewang.com/szimg/5d36a60709f5666320000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.630327', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (147, '从基础到实战 手把手带你掌握新版Webpack4.0', '知识点+项目实例+原理讲解 全方位解析Webpack4最新版本', 'https://img.mukewang.com/szimg/5c6bdb3e08e4674a06000338-360-202.jpg', 'https://img.mukewang.com/szimg/5c6bdb4f09c2401020000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.636258', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (148, 'React服务器渲染原理解析与实践', '从零开始,带你搭建属于自己的React SSR框架,从根本上解决客户端渲染问题 。', 'https://img.mukewang.com/szimg/5ba07190000135b505400300-360-202.jpg', 'https://img.mukewang.com/szimg/5c6bdb4f09c2401020000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.641665', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (149, 'React开发简书项目 从零基础入门到实战 ', '主流新技术 React-redux,React-router4,贯穿基础语法及项目实战。', 'https://img.mukewang.com/szimg/5b3082da0001d7e905400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b508ba90001116220000560.jpg', 299, 0, 0, '2020-10-07 01:42:46.647418', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (150, '经典再升级-新版Vue2.6开发去哪儿网App 从零基础入门到实战项目', '基于Vue最新版本,从基础语法到完整项目,一课掌握Vue基础知识点', 'https://img.mukewang.com/szimg/5b3082da0001d7e905400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b50858100011b9220000560.jpg', 266, 0, 0, '2020-10-07 01:42:46.652674', 0, 0, 28, 145, NULL, 246, 145);
INSERT INTO `app_api_lesson` VALUES (151, '下一代前端开发语言 TypeScript从零重构axios', '掌握TS,学习vue3.0源码必备基础!课程从零开始重构功能完整的JS库,是学习造轮子的不二之选!', 'https://img.mukewang.com/szimg/5cbf00c608f52a3b06000338-360-202.jpg', 'https://img.mukewang.com/szimg/5cbf00cb092626c820000400.jpg', 388, 1, 348, '2020-10-07 01:42:46.657815', 0, 0, 28, 145, NULL, 228, 145);
INSERT INTO `app_api_lesson` VALUES (152, 'Vue.js2.5+cube-ui重构饿了么App(经典再升级)', '掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp', 'https://img.mukewang.com/szimg/5becd5ad0001b89306000338-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5becd5bc0001d45120000560.jpg', 198, 0, 0, '2020-10-07 01:42:46.663109', 0, 0, 28, 145, NULL, 228, 145);
INSERT INTO `app_api_lesson` VALUES (153, 'Vue.js源码全方位深入解析 (含Vue3.0源码分析)', '全方位讲解 Vue.js 源码,学精学透 Vue 原理实现,进阶高级工程师', 'https://img.mukewang.com/szimg/5b17bad10001535305400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5b508b4200014f8a20000560.jpg', 488, 0, 0, '2020-10-07 01:42:46.668403', 0, 0, 28, 153, NULL, 228, 145);
INSERT INTO `app_api_lesson` VALUES (154, 'Python Flask高级编程之RESTFul API前后端分离精讲', 'RESTFul+权限管理+token令牌+扩展flask=提升编程思维', 'https://img.mukewang.com/szimg/5b061fe30001db4505400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5be39cb6000127a520000559.jpg', 148, 0, 0, '2020-10-07 01:42:46.673813', 0, 0, 29, 145, NULL, 255, 145);
INSERT INTO `app_api_lesson` VALUES (155, 'Python Flask高级编程之从0到1开发《鱼书》精品项目', '7月老师深入浅出剖析Flask核心机制,和你一起探讨Python高级编程', 'https://img.mukewang.com/szimg/5ab84f650001f0b005400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b51c78300015e0220000560.jpg', 399, 0, 0, '2020-10-07 01:42:46.678875', 0, 0, 29, 145, NULL, 255, 145);
INSERT INTO `app_api_lesson` VALUES (156, '全面系统Python3.8入门+进阶 (程序员必备第二语言)', '语法精讲/配套练习+思考题/原生爬虫实战', 'https://img.mukewang.com/szimg/59b8a486000107fb05400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b51c78300015e0220000560.jpg', 366, 0, 0, '2020-10-07 01:42:46.684093', 0, 0, 29, 156, NULL, 255, 145);
INSERT INTO `app_api_lesson` VALUES (157, 'Spring Cloud微服务实战 打造企业级优惠券系统', '面试、毕设、升职优选:从0开始,Java主流框架,构建电商都在用的优惠券系统', 'https://img.mukewang.com/szimg/5d5f7da0093eb24212000676-360-202.jpg', 'https://img.mukewang.com/szimg/5d5f7da709b71ad320000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.689602', 0, 0, 29, 145, NULL, 258, 145);
INSERT INTO `app_api_lesson` VALUES (158, '基于Spring Cloud微服务架构 广告系统设计与实现(2020新版)', '掌握互联网广告系统,学会为公司创收,你自然就是最抢手的人才。可用于毕设。', 'https://img.mukewang.com/szimg/5d2e7ada09946f6f12000676-360-202.jpg', 'https://img.mukewang.com/szimg/5d2e7ae20942ca4d20000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.695529', 0, 0, 29, 145, NULL, 258, 145);
INSERT INTO `app_api_lesson` VALUES (159, 'Java分布式后台开发 Spring Boot+Kafka+HBase', '从零到一完整搭建企业级架构的通用卡包工程,让你开发技迈向到百度T4+ 。', 'https://img1.sycdn.imooc.com/szimg/5b55356c0001af0105400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b5535400001b72e20000560.jpg', 299, 0, 0, '2020-10-07 01:42:46.701491', 0, 0, 29, 145, NULL, 258, 145);
INSERT INTO `app_api_lesson` VALUES (160, 'Flutter从入门到进阶 实战携程网App', '从入门到进阶,系统掌握Flutter开发核心技术', 'https://img.mukewang.com/szimg/5c7e6835087ef3d806000338-360-202.jpg', 'https://img.mukewang.com/szimg/5c9304cd097d093d20000400.jpg', 348, 0, 0, '2020-10-07 01:42:46.707252', 0, 0, 30, 145, NULL, 261, 145);
INSERT INTO `app_api_lesson` VALUES (161, '新版React Native从入门到实战打造高质量上线App(再升级)', '解锁React Native开发应用新姿势,一网打尽React Native新版本热门技术', 'https://img.mukewang.com/szimg/5db6916d08d81b8b12000676-360-202.jpg', 'https://img.mukewang.com/szimg/5db69b9c086653ff40001120.jpg', 399, 0, 0, '2020-10-07 01:42:46.713409', 0, 0, 30, 145, 9, 261, 145);
INSERT INTO `app_api_lesson` VALUES (162, '实战企业级项目 践行App重构之路', '真实还原大厂App重构过程,以组件化和插件化为核心,进击高级工程师必备', 'https://img.mukewang.com/szimg/5e4f4f66098b14c512000676-360-202.jpg', 'https://img.mukewang.com/szimg/5e4f4f7009aeb1a920000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.719657', 0, 0, 30, 145, 9, 263, 145);
INSERT INTO `app_api_lesson` VALUES (163, '企业级Android应用架构设计与开发', '一门能助你掌握企业级架构设计、功能开发,冲击大厂Android中高级工程师职位的课程', 'https://img.mukewang.com/szimg/5d5e6d1f0983ee0112000676-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5d5e6d2809b8706c20000400.jpg', 299, 0, 0, '2020-10-07 01:42:46.725496', 0, 0, 30, 145, 9, 263, 145);
INSERT INTO `app_api_lesson` VALUES (164, 'Gradle3.0自动化项目构建技术精讲+实战', '全面覆盖Gradle核心知识和高级用法,高级工程师必备技能!', 'https://img.mukewang.com/szimg/5acf37460001aa3405400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b5085f900017de520000560.jpg', 199, 0, 0, '2020-10-07 01:42:46.731880', 0, 0, 30, 145, 9, 263, 145);
INSERT INTO `app_api_lesson` VALUES (165, '玩转算法系列--图论精讲 面试升职必备(Java版)', '由于图论算法本身的复杂性和抽象性,让同学们头疼不已,这次bobo带你彻底玩转图论,克服对图论问题的恐惧心理', 'https://img1.sycdn.imooc.com/szimg/5d31765d08c90cba06000338-360-202.jpg', 'https://img.mukewang.com/szimg/5d3176630945ccf020000288.jpg', 348, 0, 0, '2020-10-07 01:42:46.737051', 0, 0, 31, 145, NULL, 227, 145);
INSERT INTO `app_api_lesson` VALUES (166, '玩转算法系列--数据结构精讲 更适合0算法基础入门到进阶(java版)', '体系完整,细致入微,0基础入门:动态数组/栈/队列/链表/BST/堆/线段树/Trie/并查集/AVL/红黑树…', 'https://img1.sycdn.imooc.com/szimg/5ad05dc00001eae705400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b5086220001ef9420000560.jpg', 299, 0, 0, '2020-10-07 01:42:46.742882', 0, 0, 31, 145, NULL, 227, 145);
INSERT INTO `app_api_lesson` VALUES (167, '结合编程学数学 专为程序员设计的线性代数', '创新设计,通俗易懂。用编程的方式学数学。这一次,bobo老师带你彻底征服线性代数', 'https://img1.sycdn.imooc.com/szimg/5b5835a60001907e05400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5b5835cb0001d0c120000560.jpg', 348, 0, 0, '2020-10-07 01:42:46.748284', 0, 0, 31, 156, NULL, 227, 145);
INSERT INTO `app_api_lesson` VALUES (168, '看的见的算法 7个经典应用诠释算法精髓', '课程重应用、重实践、重思维,真正应用于实际工作开发中,也可作为毕设作品、面试项目。', 'https://img1.sycdn.imooc.com/szimg/59b2766f000190d505400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b4f355a0001852520000520.jpg', 248, 0, 0, '2020-10-07 01:42:46.753296', 0, 0, 31, 156, NULL, 227, 145);
INSERT INTO `app_api_lesson` VALUES (169, '看的见的算法 Zookeeper源码分析', '“分而治之”逐一攻克Zookeeper框架各个组件的源码', 'https://img.mukewang.com/szimg/5d1ad17f08cd16e800000000-360-202.jpg', 'https://img.mukewang.com/szimg/5b4f355a0001852520000520.jpg', 388, 0, 0, '2020-10-07 01:42:46.758739', 0, 0, 32, 145, NULL, 231, 145);
INSERT INTO `app_api_lesson` VALUES (170, '学习Hyperledger Fabric实战联盟链', '兼顾区块链应用层和底层 进击区块链工程师', 'https://img.mukewang.com/szimg/5b73d7f60001dc1e05400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5b73d7fc0001e07720000560.jpg', 266, 0, 0, '2020-10-07 01:42:46.764201', 0, 0, 32, 153, NULL, 271, 145);
INSERT INTO `app_api_lesson` VALUES (171, '深度学习之目标检测常用算法原理+实践精讲', '从原理(YOLO / Faster RCNN / SSD / 文本检测 / 多任务网络)到场景实战,掌握目标检测核心技术', 'https://img1.sycdn.imooc.com/szimg/5bfb523c0001290905400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5bfb52480001858920000559.jpg', 499, 0, 0, '2020-10-07 01:42:46.769553', 0, 0, 32, 153, NULL, 272, 145);
INSERT INTO `app_api_lesson` VALUES (181, 'SparkSQL极速入门 整合Kudu实现广告业务数据分析', '大数据工程师干货课程 带你从入门到实战掌握SparkSQL', 'https://img1.sycdn.imooc.com/szimg/5d844ae7089e674906000338-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5d844af609893ec140000800.jpg', 388, 0, 0, '2020-10-07 01:42:46.799504', 0, 0, 33, 145, NULL, 282, 145);
INSERT INTO `app_api_lesson` VALUES (182, 'Spark进阶 大数据离线与实时项目实战', '大数据生态圈中多个框架(Spark/Hbase/Redis/Hadoop)的整合应用及调优', 'https://img1.sycdn.imooc.com/szimg/59f85ec90001103405400300-360-202.jpg', 'https://img1.sycdn.imooc.com/szimg/5d844af609893ec140000800.jpg', 399, 0, 0, '2020-10-07 01:42:46.805147', 0, 0, 33, 145, NULL, 282, 145);
INSERT INTO `app_api_lesson` VALUES (183, 'Spark Streaming实时流处理项目实战 ', 'Flume+Kafka+Spark Streaming 构建通用实时流处理平台', 'https://img1.sycdn.imooc.com/szimg/5c203a4b0001dcf306000338-360-202.jpg', 'https://img.mukewang.com/szimg/5c203a520001d14320000560.jpg', 288, 0, 0, '2020-10-07 01:42:46.810363', 0, 0, 33, 145, NULL, 282, 145);
INSERT INTO `app_api_lesson` VALUES (184, '跟着360架构师 学习Shell脚本编程', '30%知识讲解+70%实例操作 掌握Shell脚本编程能力', 'https://img1.sycdn.imooc.com/szimg/5c46c4a308ad3b3406000338-360-202.jpg', 'https://img.mukewang.com/szimg/5c46c4ae099dc71320000560.jpg', 366, 0, 0, '2020-10-07 01:42:46.815758', 0, 0, 34, 145, NULL, 285, 145);
INSERT INTO `app_api_lesson` VALUES (185, '企业级开源四层负载均衡解决方案-LVS', '轻松应对负载均衡,深刻理解网络系统架构,真正解决工作中的实际问题', 'https://img1.sycdn.imooc.com/szimg/5b99c15f0001ca0206000338-360-202.jpg', 'https://img.mukewang.com/szimg/5b99d1e90001903240001120.jpg', 199, 0, 0, '2020-10-07 01:42:46.821291', 0, 0, 34, 145, NULL, 285, 145);
INSERT INTO `app_api_lesson` VALUES (188, '零基础入门 全角度解读企业主流数据库MySQL8.0', '掌握SQL优化与慢查询优化,具备独当一面的能力,彰显更多个人价值', 'https://img.mukewang.com/szimg/5ca5e266085019b306000338-360-202.jpg', 'https://img.mukewang.com/szimg/5ca5e26e09568dbc20000400.jpg', 266, 0, 0, '2020-10-07 01:42:46.831506', 0, 0, 35, 188, NULL, 289, 145);
INSERT INTO `app_api_lesson` VALUES (190, '中高级开发晋升利器 MySQL面试指南', '9大类常见问题详解,切实提升数据库应用和管理能力,升职加薪必备佳品!', 'https://img.mukewang.com/szimg/5bdc3b81000178e812000676-360-202.jpg', 'https://img.mukewang.com/szimg/5bdc3b8a0001583240001120.jpg', 288, 0, 0, '2020-10-07 01:42:46.839618', 0, 0, 35, 145, NULL, 289, 145);
INSERT INTO `app_api_lesson` VALUES (193, '玩转MongoDB4.0(最新版) 从入门到实践', '30%理论+70%实战,让你用实操去检验真理,一门让你事半功倍的入门进阶课', 'https://img.mukewang.com/szimg/5c90dc020849c59a06000338-360-202.jpg', 'https://img.mukewang.com/szimg/5b4f355a0001852520000520.jpg', 288, 0, 0, '2020-10-07 01:42:46.850254', 0, 0, 35, 188, NULL, 294, 145);
INSERT INTO `app_api_lesson` VALUES (194, '高薪设计师必修课 AE移动UI动效设计从入门到实战', '20多个商业实用案例,轻松Get√到AE动效核心技术,让你的作品脱颖而出!', 'https://img.mukewang.com/szimg/5aa9d2c1000104d510800600-360-202.jpg', 'https://img.mukewang.com/szimg/5b51c7100001351220000560.jpg', 199, 0, 0, '2020-10-07 01:42:46.855445', 0, 0, 36, 145, NULL, 295, 145);
INSERT INTO `app_api_lesson` VALUES (195, '移动端App UI设计入门与实战', '涉及多项实用设计技能训练,成为一名具有“产品思维”的设计师!', 'https://img.mukewang.com/szimg/5a123d7e00011fa705400300-360-202.jpg', 'https://img.mukewang.com/szimg/5b51c7100001351220000560.jpg', 199, 0, 0, '2020-10-07 01:42:46.861096', 0, 0, 36, 145, NULL, 295, 145);
INSERT INTO `app_api_lesson` VALUES (198, '初识HTML(5)+CSS(3)-2020升级版', 'HTML(5)+CSS(3)基础教程8小时带领大家步步深入学习标签用法和意义', 'https://img4.mukewang.com/529dc3380001379906000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.871556', 0, 0, 28, 188, NULL, 299, 198);
INSERT INTO `app_api_lesson` VALUES (199, 'JavaScript入门篇', 'JavaScript做为一名Web工程师的必备技术,本教程让您快速入门', 'https://img2.mukewang.com/53e1d0470001ad1e06000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.876890', 0, 0, 28, 188, NULL, 229, 198);
INSERT INTO `app_api_lesson` VALUES (200, 'JavaScript进阶篇', '本课程从如何插入JS代码开始,带您进入网页动态交互世界', 'https://img2.mukewang.com/574678bd00010a7206000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.882173', 0, 0, 28, 188, NULL, 229, 198);
INSERT INTO `app_api_lesson` VALUES (201, 'vue2.5入门', '快速理解Vue编程理念上手Vue2.0开发。', 'https://img2.mukewang.com/5ad5cc490001e53006000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.887408', 0, 0, 28, 145, NULL, 246, 198);
INSERT INTO `app_api_lesson` VALUES (202, 'Vue+Webpack打造todo应用', '用前端最热门框架Vue+最火打包工具Webpack打造todo应用', 'https://img1.mukewang.com/5a56fdb400017d0306000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.892548', 0, 0, 28, 153, NULL, 303, 198);
INSERT INTO `app_api_lesson` VALUES (203, 'Vue+node.js调试入门', '理论实践相结合学习使用 Inspector 调试 Node.js。', 'https://img3.sycdn.imooc.com/5c3eaa0a08d7052706000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.897845', 0, 0, 28, 188, NULL, 304, 198);
INSERT INTO `app_api_lesson` VALUES (204, 'Nodejs全栈入门', '基于node+mysql+react全栈实战', 'https://img3.sycdn.imooc.com/5dd7561309f8ae4806000338-240-135.png', '', 0, 0, 0, '2020-10-07 01:42:46.903185', 0, 0, 28, 145, NULL, 305, 198);
INSERT INTO `app_api_lesson` VALUES (205, '使用Prometheus实践基于Spring Boot监控告警体系', '基于Spring Boot2.X使用Prometheus实现监控大盘及微服务告警功能。', 'https://img2.mukewang.com/5e82b5b8099dc26405400300-240-135.png', '', 0, 0, 0, '2020-10-07 01:42:46.908217', 0, 0, 29, 145, NULL, 306, 198);
INSERT INTO `app_api_lesson` VALUES (206, '二进制与Java中的基本数据类型', '从认识二进制开始,逐步理解Java是如何存储和处理数据的。', 'https://img.mukewang.com/5e646d5708f882d512000676-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.913559', 0, 0, 29, 188, NULL, 307, 198);
INSERT INTO `app_api_lesson` VALUES (207, '自己动手实现RPC框架', '自己动手实现一个完整的RPC框架,So Easy!', 'https://img.mukewang.com/5e37d120082e7c7c06000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.918955', 0, 0, 29, 145, NULL, 308, 198);
INSERT INTO `app_api_lesson` VALUES (208, 'MUI+个推实现安卓与ios移动端推送', '结合慕信轻聊Netty实战,整合个推到前端与后端,实现安卓与ios移动端推送', 'https://img4.mukewang.com/5bebce6b0001bd6106000336-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.924824', 0, 0, 29, 156, NULL, 309, 198);
INSERT INTO `app_api_lesson` VALUES (209, 'Springboot 微信小程序 – 微信登录功能实战', '简单实现在小程序中对使用微信登录的方式来登录小程序应用', 'https://img2.mukewang.com/5bbf2def000118ab06000336-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.930103', 0, 0, 29, 156, NULL, 309, 198);
INSERT INTO `app_api_lesson` VALUES (210, 'Numpy基础入门', '从基本数组入手全面讲解Numpy中的核心知识', 'https://img.mukewang.com/5e9683f808f03af912000676-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.935138', 0, 0, 29, 188, NULL, 311, 198);
INSERT INTO `app_api_lesson` VALUES (211, 'Python数据预处理(四)- 特征降维与可视化', '教会你使用Python数据预处理', 'https://img2.mukewang.com/5ce4b199083e469306000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.940548', 0, 0, 29, 156, NULL, 312, 198);
INSERT INTO `app_api_lesson` VALUES (212, 'MultiDex从基础原理到实践优化', 'Android进阶学习必备,带你从基础用法到实践优化一站式掌握MultiDex。', 'https://img.mukewang.com/5e6098b409a0151406000338-240-135.png', '', 0, 0, 0, '2020-10-07 01:42:46.946101', 0, 0, 30, 145, NULL, 313, 198);
INSERT INTO `app_api_lesson` VALUES (213, 'Android网络安全之加解密', '在不安全的网络环境中,如何安全的传输敏感数据', 'https://img4.mukewang.com/5dfc2e870902f80d06000338-240-135.png', '', 0, 0, 0, '2020-10-07 01:42:46.951531', 0, 0, 30, 145, NULL, 313, 198);
INSERT INTO `app_api_lesson` VALUES (214, 'Android CMake以及NDK实践基础', 'Android底层开发入门必备,CMake动态库编译和使用,NDK的各种开发技巧。 ', 'https://img1.mukewang.com/5de8a5740989152106000338-240-135.png', '', 0, 0, 0, '2020-10-07 01:42:46.956726', 0, 0, 30, 145, NULL, 315, 198);
INSERT INTO `app_api_lesson` VALUES (215, 'Android 机器学习中的统计学基础', '机器学习中的常用统计学知识点 ', 'https://img4.mukewang.com/5b470bfe0001cdbf06000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.961990', 0, 0, 31, 156, NULL, 316, 198);
INSERT INTO `app_api_lesson` VALUES (216, 'Javascript实现二叉树算法', '感受JS与数据结构的魅力。 ', 'https://img3.mukewang.com/59ae0e2a0001307706000338-240-135.jpg', '', 0, 0, 0, '2020-10-07 01:42:46.967398', 0, 0, 31, 145, NULL, 317, 198);
COMMIT;
-- ----------------------------
-- Table structure for app_api_lesson_labels
-- ----------------------------
DROP TABLE IF EXISTS `app_api_lesson_labels`;
CREATE TABLE `app_api_lesson_labels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lesson_id` int(11) NOT NULL,
`label_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_api_lesson_labels_lesson_id_label_id_05b2f65c_uniq` (`lesson_id`,`label_id`),
KEY `app_api_lesson_labels_lesson_id_8aa66f9f` (`lesson_id`),
KEY `app_api_lesson_labels_label_id_339c345c` (`label_id`)
) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_lesson_labels
-- ----------------------------
BEGIN;
INSERT INTO `app_api_lesson_labels` VALUES (131, 145, 139);
INSERT INTO `app_api_lesson_labels` VALUES (132, 146, 140);
INSERT INTO `app_api_lesson_labels` VALUES (133, 146, 141);
INSERT INTO `app_api_lesson_labels` VALUES (134, 147, 140);
INSERT INTO `app_api_lesson_labels` VALUES (135, 147, 141);
INSERT INTO `app_api_lesson_labels` VALUES (136, 148, 141);
INSERT INTO `app_api_lesson_labels` VALUES (137, 149, 141);
INSERT INTO `app_api_lesson_labels` VALUES (138, 150, 140);
INSERT INTO `app_api_lesson_labels` VALUES (139, 151, 139);
INSERT INTO `app_api_lesson_labels` VALUES (140, 152, 140);
INSERT INTO `app_api_lesson_labels` VALUES (141, 153, 140);
INSERT INTO `app_api_lesson_labels` VALUES (142, 154, 153);
INSERT INTO `app_api_lesson_labels` VALUES (143, 155, 153);
INSERT INTO `app_api_lesson_labels` VALUES (144, 156, 153);
INSERT INTO `app_api_lesson_labels` VALUES (145, 157, 149);
INSERT INTO `app_api_lesson_labels` VALUES (146, 157, 151);
INSERT INTO `app_api_lesson_labels` VALUES (147, 158, 149);
INSERT INTO `app_api_lesson_labels` VALUES (148, 158, 151);
INSERT INTO `app_api_lesson_labels` VALUES (149, 159, 149);
INSERT INTO `app_api_lesson_labels` VALUES (150, 159, 150);
INSERT INTO `app_api_lesson_labels` VALUES (151, 160, 165);
INSERT INTO `app_api_lesson_labels` VALUES (152, 160, 167);
INSERT INTO `app_api_lesson_labels` VALUES (153, 161, 165);
INSERT INTO `app_api_lesson_labels` VALUES (154, 162, 163);
INSERT INTO `app_api_lesson_labels` VALUES (155, 163, 163);
INSERT INTO `app_api_lesson_labels` VALUES (156, 164, 163);
INSERT INTO `app_api_lesson_labels` VALUES (157, 167, 171);
INSERT INTO `app_api_lesson_labels` VALUES (158, 169, 172);
INSERT INTO `app_api_lesson_labels` VALUES (159, 170, 173);
INSERT INTO `app_api_lesson_labels` VALUES (160, 171, 174);
INSERT INTO `app_api_lesson_labels` VALUES (161, 181, 179);
INSERT INTO `app_api_lesson_labels` VALUES (162, 182, 179);
INSERT INTO `app_api_lesson_labels` VALUES (163, 183, 179);
INSERT INTO `app_api_lesson_labels` VALUES (164, 184, 188);
INSERT INTO `app_api_lesson_labels` VALUES (165, 185, 188);
INSERT INTO `app_api_lesson_labels` VALUES (166, 188, 197);
INSERT INTO `app_api_lesson_labels` VALUES (167, 190, 197);
INSERT INTO `app_api_lesson_labels` VALUES (168, 193, 199);
INSERT INTO `app_api_lesson_labels` VALUES (169, 194, 201);
INSERT INTO `app_api_lesson_labels` VALUES (170, 195, 201);
INSERT INTO `app_api_lesson_labels` VALUES (171, 195, 203);
INSERT INTO `app_api_lesson_labels` VALUES (172, 198, 137);
INSERT INTO `app_api_lesson_labels` VALUES (173, 199, 138);
INSERT INTO `app_api_lesson_labels` VALUES (174, 200, 138);
INSERT INTO `app_api_lesson_labels` VALUES (175, 201, 140);
INSERT INTO `app_api_lesson_labels` VALUES (176, 202, 140);
INSERT INTO `app_api_lesson_labels` VALUES (177, 203, 143);
INSERT INTO `app_api_lesson_labels` VALUES (178, 204, 143);
INSERT INTO `app_api_lesson_labels` VALUES (179, 205, 149);
INSERT INTO `app_api_lesson_labels` VALUES (180, 206, 149);
INSERT INTO `app_api_lesson_labels` VALUES (181, 207, 149);
INSERT INTO `app_api_lesson_labels` VALUES (182, 208, 149);
INSERT INTO `app_api_lesson_labels` VALUES (183, 208, 150);
INSERT INTO `app_api_lesson_labels` VALUES (184, 209, 149);
INSERT INTO `app_api_lesson_labels` VALUES (185, 209, 150);
INSERT INTO `app_api_lesson_labels` VALUES (186, 210, 153);
INSERT INTO `app_api_lesson_labels` VALUES (187, 211, 153);
INSERT INTO `app_api_lesson_labels` VALUES (188, 211, 177);
INSERT INTO `app_api_lesson_labels` VALUES (189, 212, 163);
INSERT INTO `app_api_lesson_labels` VALUES (190, 213, 163);
INSERT INTO `app_api_lesson_labels` VALUES (191, 214, 163);
INSERT INTO `app_api_lesson_labels` VALUES (192, 215, 169);
INSERT INTO `app_api_lesson_labels` VALUES (193, 215, 170);
INSERT INTO `app_api_lesson_labels` VALUES (195, 216, 138);
INSERT INTO `app_api_lesson_labels` VALUES (194, 216, 170);
COMMIT;
-- ----------------------------
-- Table structure for app_api_lessonhardtype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_lessonhardtype`;
CREATE TABLE `app_api_lessonhardtype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=217 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_lessonhardtype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_lessonhardtype` VALUES (145, '2', '中级');
INSERT INTO `app_api_lessonhardtype` VALUES (153, '3', '高级');
INSERT INTO `app_api_lessonhardtype` VALUES (156, '1', '初级');
INSERT INTO `app_api_lessonhardtype` VALUES (188, '0', '入门');
COMMIT;
-- ----------------------------
-- Table structure for app_api_lessonscript
-- ----------------------------
DROP TABLE IF EXISTS `app_api_lessonscript`;
CREATE TABLE `app_api_lessonscript` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_lessonscript
-- ----------------------------
BEGIN;
INSERT INTO `app_api_lessonscript` VALUES (9, '升级', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_lessontype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_lessontype`;
CREATE TABLE `app_api_lessontype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=217 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_lessontype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_lessontype` VALUES (145, '1', '实战');
INSERT INTO `app_api_lessontype` VALUES (198, '0', '免费');
COMMIT;
-- ----------------------------
-- Table structure for app_api_log
-- ----------------------------
DROP TABLE IF EXISTS `app_api_log`;
CREATE TABLE `app_api_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`ip` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`device` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`city` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`type_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `app_api_log_type_id_7225d783` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_log
-- ----------------------------
BEGIN;
INSERT INTO `app_api_log` VALUES (1, '', '2019-10-11 08:08:08', '192.168.0.1', 'web', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (2, '', '2019-09-11 08:08:08', '192.168.0.1', 'web', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (3, '', '2019-08-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (4, '', '2019-07-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (5, '', '2019-06-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 5);
INSERT INTO `app_api_log` VALUES (6, '', '2019-05-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 5);
INSERT INTO `app_api_log` VALUES (7, '', '2019-04-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (8, '', '2019-03-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (9, '', '2019-02-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (10, '', '2019-01-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (11, '', '2019-10-11 08:08:08', '192.168.0.1', 'web', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (12, '', '2019-09-11 08:08:08', '192.168.0.1', 'web', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (13, '', '2019-08-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (14, '', '2019-07-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (15, '', '2019-06-11 08:08:08', '192.168.0.1', 'ipad', '广东省广州市天河区', 5);
INSERT INTO `app_api_log` VALUES (16, '', '2019-05-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 5);
INSERT INTO `app_api_log` VALUES (17, '', '2019-04-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (18, '', '2019-03-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 1);
INSERT INTO `app_api_log` VALUES (19, '', '2019-02-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (20, '', '2019-01-11 08:08:08', '192.168.0.1', 'APP', '广东省广州市天河区', 3);
INSERT INTO `app_api_log` VALUES (21, '4', '2020-10-07 21:21:15.588800', '127.0.0.1', 'web', '四川省成都市', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_logtype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_logtype`;
CREATE TABLE `app_api_logtype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_logtype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_logtype` VALUES (1, '账号登陆', 0);
INSERT INTO `app_api_logtype` VALUES (3, '短信验证码登陆', 1);
INSERT INTO `app_api_logtype` VALUES (5, '二维码登陆', 2);
COMMIT;
-- ----------------------------
-- Table structure for app_api_nav
-- ----------------------------
DROP TABLE IF EXISTS `app_api_nav`;
CREATE TABLE `app_api_nav` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`icon` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_nav
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_navigation
-- ----------------------------
DROP TABLE IF EXISTS `app_api_navigation`;
CREATE TABLE `app_api_navigation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_navigation
-- ----------------------------
BEGIN;
INSERT INTO `app_api_navigation` VALUES (64, '前沿 / 区块链 / 人工智能', '4', 0);
INSERT INTO `app_api_navigation` VALUES (65, '前端 / 小程序 / JS', '0', 0);
INSERT INTO `app_api_navigation` VALUES (66, '后端 / JAVA / Python', '1', 0);
INSERT INTO `app_api_navigation` VALUES (67, '移动 / Android / iOS', '2', 0);
INSERT INTO `app_api_navigation` VALUES (68, '云计算 / 大数据 / 容器', '3,5', 0);
INSERT INTO `app_api_navigation` VALUES (69, '运维 / 测试 / 数据库', '6,7', 0);
INSERT INTO `app_api_navigation` VALUES (70, 'UI设计 / 3D动画 / 游戏', '8', 0);
COMMIT;
-- ----------------------------
-- Table structure for app_api_notice
-- ----------------------------
DROP TABLE IF EXISTS `app_api_notice`;
CREATE TABLE `app_api_notice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` int(11) NOT NULL,
`time` datetime(6) NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_notice
-- ----------------------------
BEGIN;
INSERT INTO `app_api_notice` VALUES (49, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,慕丝2069084诚恳的向你抛来了一个问题,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (50, 1, '2019-08-12 13:36:45.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧');
INSERT INTO `app_api_notice` VALUES (51, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,qq_慕尼黑1028606诚恳的向你抛来了一个问题,,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (52, 1, '2019-08-13 16:32:01.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧!');
INSERT INTO `app_api_notice` VALUES (53, 2, '2019-08-13 16:32:01.000000', '您于07月18日14时27分收到支付宝充值余额1000元');
INSERT INTO `app_api_notice` VALUES (54, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (55, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (56, 1, '2019-08-13 16:32:01.000000', '你购买的“前端下一代开发语言TypeScript 从基础到axios实战”课程又更新了,一如既往的坚持学习吧');
INSERT INTO `app_api_notice` VALUES (57, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,慕丝2069084诚恳的向你抛来了一个问题,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (58, 1, '2019-08-12 13:36:45.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧');
INSERT INTO `app_api_notice` VALUES (59, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,qq_慕尼黑1028606诚恳的向你抛来了一个问题,,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (60, 1, '2019-08-13 16:32:01.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧!');
INSERT INTO `app_api_notice` VALUES (61, 2, '2019-08-13 16:32:01.000000', '您于07月18日14时27分收到支付宝充值余额1000元');
INSERT INTO `app_api_notice` VALUES (62, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (63, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (64, 1, '2019-08-13 16:32:01.000000', '你购买的“前端下一代开发语言TypeScript 从基础到axios实战”课程又更新了,一如既往的坚持学习吧');
INSERT INTO `app_api_notice` VALUES (65, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,慕丝2069084诚恳的向你抛来了一个问题,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (66, 1, '2019-08-12 13:36:45.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧');
INSERT INTO `app_api_notice` VALUES (67, 1, '2019-08-13 16:32:01.000000', '多知多懂的程序猿,qq_慕尼黑1028606诚恳的向你抛来了一个问题,,不要吝惜你的才华,帮帮他吧!');
INSERT INTO `app_api_notice` VALUES (68, 1, '2019-08-13 16:32:01.000000', '你购买的“前端要学的测试课 从Jest入门到 TDD/BDD双实战”课程又更新了,一如既往的坚持学习吧!');
INSERT INTO `app_api_notice` VALUES (69, 2, '2019-08-13 16:32:01.000000', '您于07月18日14时27分收到支付宝充值余额1000元');
INSERT INTO `app_api_notice` VALUES (70, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (71, 2, '2019-08-13 16:32:01.000000', '尊敬的用户,您有8张优惠券即将过期,机不可失,来选一门心仪的课程吧!');
INSERT INTO `app_api_notice` VALUES (72, 1, '2019-08-13 16:32:01.000000', '你购买的“前端下一代开发语言TypeScript 从基础到axios实战”课程又更新了,一如既往的坚持学习吧');
COMMIT;
-- ----------------------------
-- Table structure for app_api_order
-- ----------------------------
DROP TABLE IF EXISTS `app_api_order`;
CREATE TABLE `app_api_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
`expired` int(11) NOT NULL,
`coupon` int(11) NOT NULL,
`status_id` int(11) NOT NULL,
`way_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `app_api_order_status_id_a6b1a192` (`status_id`),
KEY `app_api_order_way_id_8005bd2c` (`way_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_order
-- ----------------------------
BEGIN;
INSERT INTO `app_api_order` VALUES (2, '4', '202010071602079282', '2020-10-07 22:01:22.151040', 1800000, 0, 1, NULL);
COMMIT;
-- ----------------------------
-- Table structure for app_api_orderitem
-- ----------------------------
DROP TABLE IF EXISTS `app_api_orderitem`;
CREATE TABLE `app_api_orderitem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`price` int(11) NOT NULL,
`isDiscount` tinyint(1) NOT NULL,
`discountPrice` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_orderitem_order_id_f7b99dde` (`order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_orderitem
-- ----------------------------
BEGIN;
INSERT INTO `app_api_orderitem` VALUES (1, '145', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 266, 1, 216, 1);
INSERT INTO `app_api_orderitem` VALUES (2, '145', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 266, 1, 216, 2);
COMMIT;
-- ----------------------------
-- Table structure for app_api_orderstatus
-- ----------------------------
DROP TABLE IF EXISTS `app_api_orderstatus`;
CREATE TABLE `app_api_orderstatus` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_orderstatus
-- ----------------------------
BEGIN;
INSERT INTO `app_api_orderstatus` VALUES (1, '未支付', 0);
INSERT INTO `app_api_orderstatus` VALUES (2, '已完成', 1);
INSERT INTO `app_api_orderstatus` VALUES (3, '已关闭', 2);
COMMIT;
-- ----------------------------
-- Table structure for app_api_qa
-- ----------------------------
DROP TABLE IF EXISTS `app_api_qa`;
CREATE TABLE `app_api_qa` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`avatar` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`answers` int(11) NOT NULL,
`views` int(11) NOT NULL,
`chapter` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
`comment` varchar(1000) COLLATE utf8mb4_general_ci NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_qa_type_id_06ad19b1` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_qa
-- ----------------------------
BEGIN;
INSERT INTO `app_api_qa` VALUES (229, '198', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.604766', '', 13);
INSERT INTO `app_api_qa` VALUES (230, '199', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.606086', '', 13);
INSERT INTO `app_api_qa` VALUES (231, '200', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.607447', '', 13);
INSERT INTO `app_api_qa` VALUES (232, '201', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.608586', '', 13);
INSERT INTO `app_api_qa` VALUES (233, '202', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.609699', '', 13);
INSERT INTO `app_api_qa` VALUES (234, '203', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.610936', '', 13);
INSERT INTO `app_api_qa` VALUES (235, '204', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.612066', '', 13);
INSERT INTO `app_api_qa` VALUES (236, '205', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.613101', '', 13);
INSERT INTO `app_api_qa` VALUES (237, '206', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.614054', '', 13);
INSERT INTO `app_api_qa` VALUES (238, '207', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.615203', '', 13);
INSERT INTO `app_api_qa` VALUES (239, '208', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.616367', '', 13);
INSERT INTO `app_api_qa` VALUES (240, '209', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.617445', '', 13);
INSERT INTO `app_api_qa` VALUES (241, '210', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.618484', '', 13);
INSERT INTO `app_api_qa` VALUES (242, '211', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.619408', '', 13);
INSERT INTO `app_api_qa` VALUES (243, '212', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.620400', '', 13);
INSERT INTO `app_api_qa` VALUES (244, '213', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.621540', '', 13);
INSERT INTO `app_api_qa` VALUES (245, '214', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.622523', '', 13);
INSERT INTO `app_api_qa` VALUES (246, '215', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.623467', '', 13);
INSERT INTO `app_api_qa` VALUES (247, '216', 'jest-enzyme支持typescript吗,根据官网怎么配都不行。', 'https://img.mukewang.com/user/577220cf00016fe902790279-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.624577', '', 13);
INSERT INTO `app_api_qa` VALUES (248, '198', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.625555', '', 14);
INSERT INTO `app_api_qa` VALUES (249, '199', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.626493', '', 14);
INSERT INTO `app_api_qa` VALUES (250, '200', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.627540', '', 14);
INSERT INTO `app_api_qa` VALUES (251, '201', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.628607', '', 14);
INSERT INTO `app_api_qa` VALUES (252, '202', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.629509', '', 14);
INSERT INTO `app_api_qa` VALUES (253, '203', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.630406', '', 14);
INSERT INTO `app_api_qa` VALUES (254, '204', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.631304', '', 14);
INSERT INTO `app_api_qa` VALUES (255, '205', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.632292', '', 14);
INSERT INTO `app_api_qa` VALUES (256, '206', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.633400', '', 14);
INSERT INTO `app_api_qa` VALUES (257, '207', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.634336', '', 14);
INSERT INTO `app_api_qa` VALUES (258, '208', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.635233', '', 14);
INSERT INTO `app_api_qa` VALUES (259, '209', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.636174', '', 14);
INSERT INTO `app_api_qa` VALUES (260, '210', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.637209', '', 14);
INSERT INTO `app_api_qa` VALUES (261, '211', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.638131', '', 14);
INSERT INTO `app_api_qa` VALUES (262, '212', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.639065', '', 14);
INSERT INTO `app_api_qa` VALUES (263, '213', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.640132', '', 14);
INSERT INTO `app_api_qa` VALUES (264, '214', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.641081', '', 14);
INSERT INTO `app_api_qa` VALUES (265, '215', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.642064', '', 14);
INSERT INTO `app_api_qa` VALUES (266, '216', '老师,能不能把前几节课的代码上传一下', 'https://img.mukewang.com/user/545847c10001f40702200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.643125', '', 14);
INSERT INTO `app_api_qa` VALUES (267, '198', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.644147', '', 14);
INSERT INTO `app_api_qa` VALUES (268, '199', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.645561', '', 14);
INSERT INTO `app_api_qa` VALUES (269, '200', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.646790', '', 14);
INSERT INTO `app_api_qa` VALUES (270, '201', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.647780', '', 14);
INSERT INTO `app_api_qa` VALUES (271, '202', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.648850', '', 14);
INSERT INTO `app_api_qa` VALUES (272, '203', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.649889', '', 14);
INSERT INTO `app_api_qa` VALUES (273, '204', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.650774', '', 14);
INSERT INTO `app_api_qa` VALUES (274, '205', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.651859', '', 14);
INSERT INTO `app_api_qa` VALUES (275, '206', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.652940', '', 14);
INSERT INTO `app_api_qa` VALUES (276, '207', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.653894', '', 14);
INSERT INTO `app_api_qa` VALUES (277, '208', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.654830', '', 14);
INSERT INTO `app_api_qa` VALUES (278, '209', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.655766', '', 14);
INSERT INTO `app_api_qa` VALUES (279, '210', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.656708', '', 14);
INSERT INTO `app_api_qa` VALUES (280, '211', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.657639', '', 14);
INSERT INTO `app_api_qa` VALUES (281, '212', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.658744', '', 14);
INSERT INTO `app_api_qa` VALUES (282, '213', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.659866', '', 14);
INSERT INTO `app_api_qa` VALUES (283, '214', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.660875', '', 14);
INSERT INTO `app_api_qa` VALUES (284, '215', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.661816', '', 14);
INSERT INTO `app_api_qa` VALUES (285, '216', '这一节课有个小问题', 'https://img.mukewang.com/user/5a01401500018d9903000300-100-100.jpg', 1, 30, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.662768', '', 14);
INSERT INTO `app_api_qa` VALUES (286, '198', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.663864', '', 14);
INSERT INTO `app_api_qa` VALUES (287, '199', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.664888', '', 14);
INSERT INTO `app_api_qa` VALUES (288, '200', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.665899', '', 14);
INSERT INTO `app_api_qa` VALUES (289, '201', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.666875', '', 14);
INSERT INTO `app_api_qa` VALUES (290, '202', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.667978', '', 14);
INSERT INTO `app_api_qa` VALUES (291, '203', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.669019', '', 14);
INSERT INTO `app_api_qa` VALUES (292, '204', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.669984', '', 14);
INSERT INTO `app_api_qa` VALUES (293, '205', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.671017', '', 14);
INSERT INTO `app_api_qa` VALUES (294, '206', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.672053', '', 14);
INSERT INTO `app_api_qa` VALUES (295, '207', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.672972', '', 14);
INSERT INTO `app_api_qa` VALUES (296, '208', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.673933', '', 14);
INSERT INTO `app_api_qa` VALUES (297, '209', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.674884', '', 14);
INSERT INTO `app_api_qa` VALUES (298, '210', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.675826', '', 14);
INSERT INTO `app_api_qa` VALUES (299, '211', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.676805', '', 14);
INSERT INTO `app_api_qa` VALUES (300, '212', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.677826', '', 14);
INSERT INTO `app_api_qa` VALUES (301, '213', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.679113', '', 14);
INSERT INTO `app_api_qa` VALUES (302, '214', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.680207', '', 14);
INSERT INTO `app_api_qa` VALUES (303, '215', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.681189', '', 14);
INSERT INTO `app_api_qa` VALUES (304, '216', 'jest coverage配置问题', 'https://img.mukewang.com/user/545863080001255902200220-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.682211', '', 14);
INSERT INTO `app_api_qa` VALUES (305, '198', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.683309', '', 14);
INSERT INTO `app_api_qa` VALUES (306, '199', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.684385', '', 14);
INSERT INTO `app_api_qa` VALUES (307, '200', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.685597', '', 14);
INSERT INTO `app_api_qa` VALUES (308, '201', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.686732', '', 14);
INSERT INTO `app_api_qa` VALUES (309, '202', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.687927', '', 14);
INSERT INTO `app_api_qa` VALUES (310, '203', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.689055', '', 14);
INSERT INTO `app_api_qa` VALUES (311, '204', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.690037', '', 14);
INSERT INTO `app_api_qa` VALUES (312, '205', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.691070', '', 14);
INSERT INTO `app_api_qa` VALUES (313, '206', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.692027', '', 14);
INSERT INTO `app_api_qa` VALUES (314, '207', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.693030', '', 14);
INSERT INTO `app_api_qa` VALUES (315, '208', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.693967', '', 14);
INSERT INTO `app_api_qa` VALUES (316, '209', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.695044', '', 14);
INSERT INTO `app_api_qa` VALUES (317, '210', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.696040', '', 14);
INSERT INTO `app_api_qa` VALUES (318, '211', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.696970', '', 14);
INSERT INTO `app_api_qa` VALUES (319, '212', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.698111', '', 14);
INSERT INTO `app_api_qa` VALUES (320, '213', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.699171', '', 14);
INSERT INTO `app_api_qa` VALUES (321, '214', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.700104', '', 14);
INSERT INTO `app_api_qa` VALUES (322, '215', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.701103', '', 14);
INSERT INTO `app_api_qa` VALUES (323, '216', 'jQuery requires a window with a document', 'https://img.mukewang.com/user/5405241d00010c6501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.702077', '', 14);
INSERT INTO `app_api_qa` VALUES (324, '198', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.702991', '', 13);
INSERT INTO `app_api_qa` VALUES (325, '199', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.703927', '', 13);
INSERT INTO `app_api_qa` VALUES (326, '200', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.704949', '', 13);
INSERT INTO `app_api_qa` VALUES (327, '201', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.705847', '', 13);
INSERT INTO `app_api_qa` VALUES (328, '202', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.706877', '', 13);
INSERT INTO `app_api_qa` VALUES (329, '203', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.707796', '', 13);
INSERT INTO `app_api_qa` VALUES (330, '204', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.708871', '', 13);
INSERT INTO `app_api_qa` VALUES (331, '205', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.709876', '', 13);
INSERT INTO `app_api_qa` VALUES (332, '206', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.710908', '', 13);
INSERT INTO `app_api_qa` VALUES (333, '207', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.712239', '', 13);
INSERT INTO `app_api_qa` VALUES (334, '208', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.713312', '', 13);
INSERT INTO `app_api_qa` VALUES (335, '209', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.714342', '', 13);
INSERT INTO `app_api_qa` VALUES (336, '210', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.715248', '', 13);
INSERT INTO `app_api_qa` VALUES (337, '211', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.716256', '', 13);
INSERT INTO `app_api_qa` VALUES (338, '212', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.717190', '', 13);
INSERT INTO `app_api_qa` VALUES (339, '213', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.718225', '', 13);
INSERT INTO `app_api_qa` VALUES (340, '214', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.719123', '', 13);
INSERT INTO `app_api_qa` VALUES (341, '215', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.720054', '', 13);
INSERT INTO `app_api_qa` VALUES (342, '216', '老师,做UI测试用哪个库比较好,主要就是测试一下是否精确的还原UI给的设计稿', 'https://img.mukewang.com/user/57613b890001cba501000100-100-100.jpg', 1, 5, '5-4 Enzyme 的配置及使用', '2020-10-07 01:42:47.720927', '', 13);
COMMIT;
-- ----------------------------
-- Table structure for app_api_qatype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_qatype`;
CREATE TABLE `app_api_qatype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_qatype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_qatype` VALUES (13, '待解决', 0);
INSERT INTO `app_api_qatype` VALUES (14, '已采纳', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_question
-- ----------------------------
DROP TABLE IF EXISTS `app_api_question`;
CREATE TABLE `app_api_question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`answers` int(11) NOT NULL,
`views` int(11) NOT NULL,
`icon` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`isResolve` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_question
-- ----------------------------
BEGIN;
INSERT INTO `app_api_question` VALUES (1, 'Chrome59到底支不支持forEach函数?', 23, 11519, 'https://img.mukewang.com/59e96f340001faac02400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (2, '慕课网适合非计算机专业的人学习吗', 56, 15635, 'https://img.mukewang.com/59e96ff90001ab0402400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (3, '我是网页设计从业者,怎么入门前端', 57, 11053, 'https://img.mukewang.com/59e96ff90001ab0402400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (4, '大三暑假没有实习,这段时间应该怎么安排来提高前端水平?', 29, 5971, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (5, '貌似整个函数都没有调用?', 15, 3972, 'https://img.mukewang.com/59e96f340001faac02400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (6, '怎么用html 或CSS写出下列的表单样子', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (7, '/* margin:0;padding:0(消除文本与div边框之间的间隙)*/', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (8, '关于VUE路由单页面使用JQUERY第三方插件的问题?跳转过去插件部分就不起作用了', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (9, 'HTML 打印机', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (10, '【花式填坑第9期】解密高级前端攻城狮の极速进化', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (11, 'transform-style:preserve-3d', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (12, '大佬们 请问在HTML中<input/>标签和<input></input>有什么区别?', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (13, '盒子1下边界30px 盒子2的上边界50px 那盒子1的下边界还会30px吗', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (14, '把sum放到前面初始化 ,运行是合计为空,是不是js按循序运行的??求解', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (15, 'Chrome59到底支不支持forEach函数?', 23, 11519, 'https://img.mukewang.com/59e96f340001faac02400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (16, '慕课网适合非计算机专业的人学习吗', 56, 15635, 'https://img.mukewang.com/59e96ff90001ab0402400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (17, '我是网页设计从业者,怎么入门前端', 57, 11053, 'https://img.mukewang.com/59e96ff90001ab0402400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (18, '大三暑假没有实习,这段时间应该怎么安排来提高前端水平?', 29, 5971, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (19, '貌似整个函数都没有调用?', 15, 3972, 'https://img.mukewang.com/59e96f340001faac02400240.jpg', 1);
INSERT INTO `app_api_question` VALUES (20, '怎么用html 或CSS写出下列的表单样子', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (21, '/* margin:0;padding:0(消除文本与div边框之间的间隙)*/', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (22, '关于VUE路由单页面使用JQUERY第三方插件的问题?跳转过去插件部分就不起作用了', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (23, 'HTML 打印机', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (24, '【花式填坑第9期】解密高级前端攻城狮の极速进化', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (25, 'transform-style:preserve-3d', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (26, '大佬们 请问在HTML中<input/>标签和<input></input>有什么区别?', 20, 6987, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (27, '盒子1下边界30px 盒子2的上边界50px 那盒子1的下边界还会30px吗', 4, 2278, 'https://img.mukewang.com/59e96ebe0001a9ad02400240.jpg', 0);
INSERT INTO `app_api_question` VALUES (28, '把sum放到前面初始化 ,运行是合计为空,是不是js按循序运行的??求解', 7, 6805, 'https://img.mukewang.com/59e96deb0001f9d302400240.jpg', 0);
COMMIT;
-- ----------------------------
-- Table structure for app_api_question_tags
-- ----------------------------
DROP TABLE IF EXISTS `app_api_question_tags`;
CREATE TABLE `app_api_question_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question_id` int(11) NOT NULL,
`label_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_api_question_tags_question_id_label_id_cfec20a6_uniq` (`question_id`,`label_id`),
KEY `app_api_question_tags_question_id_0f222b22` (`question_id`),
KEY `app_api_question_tags_label_id_de0c82b7` (`label_id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_question_tags
-- ----------------------------
BEGIN;
INSERT INTO `app_api_question_tags` VALUES (1, 1, 138);
INSERT INTO `app_api_question_tags` VALUES (2, 2, 137);
INSERT INTO `app_api_question_tags` VALUES (3, 2, 138);
INSERT INTO `app_api_question_tags` VALUES (4, 3, 137);
INSERT INTO `app_api_question_tags` VALUES (5, 3, 138);
INSERT INTO `app_api_question_tags` VALUES (6, 4, 140);
INSERT INTO `app_api_question_tags` VALUES (7, 5, 138);
INSERT INTO `app_api_question_tags` VALUES (8, 6, 137);
INSERT INTO `app_api_question_tags` VALUES (9, 6, 141);
INSERT INTO `app_api_question_tags` VALUES (11, 8, 140);
INSERT INTO `app_api_question_tags` VALUES (10, 8, 148);
INSERT INTO `app_api_question_tags` VALUES (12, 9, 137);
INSERT INTO `app_api_question_tags` VALUES (13, 9, 141);
INSERT INTO `app_api_question_tags` VALUES (15, 11, 140);
INSERT INTO `app_api_question_tags` VALUES (14, 11, 148);
INSERT INTO `app_api_question_tags` VALUES (16, 12, 137);
INSERT INTO `app_api_question_tags` VALUES (17, 12, 141);
INSERT INTO `app_api_question_tags` VALUES (19, 14, 140);
INSERT INTO `app_api_question_tags` VALUES (18, 14, 148);
INSERT INTO `app_api_question_tags` VALUES (20, 15, 138);
INSERT INTO `app_api_question_tags` VALUES (21, 16, 137);
INSERT INTO `app_api_question_tags` VALUES (22, 16, 138);
INSERT INTO `app_api_question_tags` VALUES (23, 17, 137);
INSERT INTO `app_api_question_tags` VALUES (24, 17, 138);
INSERT INTO `app_api_question_tags` VALUES (25, 18, 140);
INSERT INTO `app_api_question_tags` VALUES (26, 19, 138);
INSERT INTO `app_api_question_tags` VALUES (27, 20, 137);
INSERT INTO `app_api_question_tags` VALUES (28, 20, 141);
INSERT INTO `app_api_question_tags` VALUES (30, 22, 140);
INSERT INTO `app_api_question_tags` VALUES (29, 22, 148);
INSERT INTO `app_api_question_tags` VALUES (31, 23, 137);
INSERT INTO `app_api_question_tags` VALUES (32, 23, 141);
INSERT INTO `app_api_question_tags` VALUES (34, 25, 140);
INSERT INTO `app_api_question_tags` VALUES (33, 25, 148);
INSERT INTO `app_api_question_tags` VALUES (35, 26, 137);
INSERT INTO `app_api_question_tags` VALUES (36, 26, 141);
INSERT INTO `app_api_question_tags` VALUES (38, 28, 140);
INSERT INTO `app_api_question_tags` VALUES (37, 28, 148);
COMMIT;
-- ----------------------------
-- Table structure for app_api_read
-- ----------------------------
DROP TABLE IF EXISTS `app_api_read`;
CREATE TABLE `app_api_read` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`detailImg` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`desc` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`price` int(11) NOT NULL,
`persons` int(11) NOT NULL,
`term` int(11) NOT NULL,
`isRecommend` tinyint(1) NOT NULL,
`author_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`),
KEY `app_api_read_author_id_2cfb3836` (`author_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_read
-- ----------------------------
BEGIN;
INSERT INTO `app_api_read` VALUES (1, '前端开发', '从0到1 实战朋友圈移动Web App开发', 'https://img3.mukewang.com/5d5bd52600016bbc02940333.jpg', 'https://img3.sycdn.imooc.com/5d3138f000015f4c05400720.jpg', '全栈开发进阶系列课', 48, 472, 36, 1, 318);
INSERT INTO `app_api_read` VALUES (2, '前端开发', '你不知道的前端性能优化技巧', 'https://img2.mukewang.com/5d5bd510000104f102940333.jpg', 'https://img4.sycdn.imooc.com/5d283a2c0001b89205400720.jpg', '前端进阶必修系列课', 48, 508, 27, 1, 319);
INSERT INTO `app_api_read` VALUES (3, '前端开发', '零基础实现微信电商小程序开发', 'https://img.mukewang.com/5d5bd4fe0001e01602940333.jpg', 'https://img1.sycdn.imooc.com/5d22a6be0001d12805400720.jpg', '小程序开发一线战地笔记', 68, 491, 50, 1, 320);
INSERT INTO `app_api_read` VALUES (4, '后端开发', 'Python入门指南', 'https://img2.mukewang.com/5d5bd56b00012afd02940333.jpg', 'https://img3.sycdn.imooc.com/5d5510fa00011fa605400720.jpg', '无门槛快速学Python', 46, 86, 33, 0, 321);
INSERT INTO `app_api_read` VALUES (5, '后端开发', 'Spring Cloud微服务开发实践', 'https://img.mukewang.com/5d5bd44a0001fa2902940333.jpg', 'https://img2.sycdn.imooc.com/5d12d7e500013ada03600480.jpg', 'Java工程师晋升必学', 88, 299, 39, 1, 322);
INSERT INTO `app_api_read` VALUES (6, '数据库', '一线数据库工程师带你深入理解 MySQL', 'https://img.mukewang.com/5d5bd53d00019b5302940333.jpg', 'https://img2.sycdn.imooc.com/5d3ac78f0001b10a05400720.jpg', '你的数据库优化管理第一课', 35, 621, 32, 1, 323);
INSERT INTO `app_api_read` VALUES (7, '面试', '面试高频算法习题精讲', 'https://img4.mukewang.com/5d5bd54f0001e41902940333.jpg', 'https://img2.sycdn.imooc.com/5d424c5800015b5c05400720.jpg', '一网打尽面试官最喜欢的算法习题', 49, 350, 44, 0, 324);
INSERT INTO `app_api_read` VALUES (8, '其它', '用技术人的眼光看世界 • 程序员技术指北', 'https://img3.mukewang.com/5d5bd3f9000130dd02940333.jpg', 'https://img2.sycdn.imooc.com/5cd10384000145f305400720.jpg', 'bobo老师出品必是精品', 99, 824, 62, 0, 227);
COMMIT;
-- ----------------------------
-- Table structure for app_api_readchapter
-- ----------------------------
DROP TABLE IF EXISTS `app_api_readchapter`;
CREATE TABLE `app_api_readchapter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`read_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_readchapter_read_id_e49b33a4` (`read_id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_readchapter
-- ----------------------------
BEGIN;
INSERT INTO `app_api_readchapter` VALUES (1, '第1章 优化的概念', 1);
INSERT INTO `app_api_readchapter` VALUES (2, '第2章 性能工具介绍', 1);
INSERT INTO `app_api_readchapter` VALUES (3, '第3章 网络部分', 1);
INSERT INTO `app_api_readchapter` VALUES (4, '第4章 缓存部分', 1);
INSERT INTO `app_api_readchapter` VALUES (5, '第1章 优化的概念', 2);
INSERT INTO `app_api_readchapter` VALUES (6, '第2章 性能工具介绍', 2);
INSERT INTO `app_api_readchapter` VALUES (7, '第3章 网络部分', 2);
INSERT INTO `app_api_readchapter` VALUES (8, '第4章 缓存部分', 2);
INSERT INTO `app_api_readchapter` VALUES (9, '第1章 优化的概念', 3);
INSERT INTO `app_api_readchapter` VALUES (10, '第2章 性能工具介绍', 3);
INSERT INTO `app_api_readchapter` VALUES (11, '第3章 网络部分', 3);
INSERT INTO `app_api_readchapter` VALUES (12, '第4章 缓存部分', 3);
INSERT INTO `app_api_readchapter` VALUES (13, '第1章 优化的概念', 4);
INSERT INTO `app_api_readchapter` VALUES (14, '第2章 性能工具介绍', 4);
INSERT INTO `app_api_readchapter` VALUES (15, '第3章 网络部分', 4);
INSERT INTO `app_api_readchapter` VALUES (16, '第4章 缓存部分', 4);
INSERT INTO `app_api_readchapter` VALUES (17, '第1章 优化的概念', 5);
INSERT INTO `app_api_readchapter` VALUES (18, '第2章 性能工具介绍', 5);
INSERT INTO `app_api_readchapter` VALUES (19, '第3章 网络部分', 5);
INSERT INTO `app_api_readchapter` VALUES (20, '第4章 缓存部分', 5);
INSERT INTO `app_api_readchapter` VALUES (21, '第1章 优化的概念', 6);
INSERT INTO `app_api_readchapter` VALUES (22, '第2章 性能工具介绍', 6);
INSERT INTO `app_api_readchapter` VALUES (23, '第3章 网络部分', 6);
INSERT INTO `app_api_readchapter` VALUES (24, '第4章 缓存部分', 6);
INSERT INTO `app_api_readchapter` VALUES (25, '第1章 优化的概念', 7);
INSERT INTO `app_api_readchapter` VALUES (26, '第2章 性能工具介绍', 7);
INSERT INTO `app_api_readchapter` VALUES (27, '第3章 网络部分', 7);
INSERT INTO `app_api_readchapter` VALUES (28, '第4章 缓存部分', 7);
INSERT INTO `app_api_readchapter` VALUES (29, '第1章 优化的概念', 8);
INSERT INTO `app_api_readchapter` VALUES (30, '第2章 性能工具介绍', 8);
INSERT INTO `app_api_readchapter` VALUES (31, '第3章 网络部分', 8);
INSERT INTO `app_api_readchapter` VALUES (32, '第4章 缓存部分', 8);
COMMIT;
-- ----------------------------
-- Table structure for app_api_readchapteritem
-- ----------------------------
DROP TABLE IF EXISTS `app_api_readchapteritem`;
CREATE TABLE `app_api_readchapteritem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`isTry` tinyint(1) NOT NULL,
`time` datetime(6) NOT NULL,
`read_chapter_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_readchapteritem_read_chapter_id_88505c74` (`read_chapter_id`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_readchapteritem
-- ----------------------------
BEGIN;
INSERT INTO `app_api_readchapteritem` VALUES (1, '01 导读:移动 web 的趋势', 1, '2019-07-01 00:00:00.000000', 1);
INSERT INTO `app_api_readchapteritem` VALUES (2, '02 项目技术栈介绍', 1, '2019-07-01 00:00:00.000000', 1);
INSERT INTO `app_api_readchapteritem` VALUES (3, '03 开发环境准备', 1, '2019-07-01 00:00:00.000000', 1);
INSERT INTO `app_api_readchapteritem` VALUES (4, '04 使用 PWA 改造真正的 webApp', 1, '2019-07-01 00:00:00.000000', 1);
INSERT INTO `app_api_readchapteritem` VALUES (5, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 2);
INSERT INTO `app_api_readchapteritem` VALUES (6, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 2);
INSERT INTO `app_api_readchapteritem` VALUES (7, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 3);
INSERT INTO `app_api_readchapteritem` VALUES (8, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 3);
INSERT INTO `app_api_readchapteritem` VALUES (9, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 3);
INSERT INTO `app_api_readchapteritem` VALUES (10, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 3);
INSERT INTO `app_api_readchapteritem` VALUES (11, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 4);
INSERT INTO `app_api_readchapteritem` VALUES (12, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 4);
INSERT INTO `app_api_readchapteritem` VALUES (13, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 4);
INSERT INTO `app_api_readchapteritem` VALUES (14, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 4);
INSERT INTO `app_api_readchapteritem` VALUES (15, '1 你的前端性能还能再抢救一下', 1, '2019-07-01 00:00:00.000000', 5);
INSERT INTO `app_api_readchapteritem` VALUES (16, '2 解读雅虎35条军规(上)', 1, '2019-07-01 00:00:00.000000', 5);
INSERT INTO `app_api_readchapteritem` VALUES (17, '3 解读雅虎35条军规(下)', 1, '2019-07-01 00:00:00.000000', 5);
INSERT INTO `app_api_readchapteritem` VALUES (18, '4 你要不要看这些优化指标?', 0, '2019-07-01 00:00:00.000000', 5);
INSERT INTO `app_api_readchapteritem` VALUES (19, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 6);
INSERT INTO `app_api_readchapteritem` VALUES (20, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 6);
INSERT INTO `app_api_readchapteritem` VALUES (21, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 7);
INSERT INTO `app_api_readchapteritem` VALUES (22, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 7);
INSERT INTO `app_api_readchapteritem` VALUES (23, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 7);
INSERT INTO `app_api_readchapteritem` VALUES (24, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 7);
INSERT INTO `app_api_readchapteritem` VALUES (25, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 8);
INSERT INTO `app_api_readchapteritem` VALUES (26, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 8);
INSERT INTO `app_api_readchapteritem` VALUES (27, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 8);
INSERT INTO `app_api_readchapteritem` VALUES (28, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 8);
INSERT INTO `app_api_readchapteritem` VALUES (29, '01 为什么你觉得学编程好难?', 1, '2019-07-01 00:00:00.000000', 9);
INSERT INTO `app_api_readchapteritem` VALUES (30, '02 分类拆解法简介: 助你马上起飞的编程方法论', 1, '2019-07-01 00:00:00.000000', 9);
INSERT INTO `app_api_readchapteritem` VALUES (31, '03 专栏使用指南:他们都说一开始就要敲重点', 1, '2019-07-01 00:00:00.000000', 9);
INSERT INTO `app_api_readchapteritem` VALUES (32, '04 解剖分类拆解法详解', 1, '2019-07-01 00:00:00.000000', 9);
INSERT INTO `app_api_readchapteritem` VALUES (33, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 10);
INSERT INTO `app_api_readchapteritem` VALUES (34, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 10);
INSERT INTO `app_api_readchapteritem` VALUES (35, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 11);
INSERT INTO `app_api_readchapteritem` VALUES (36, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 11);
INSERT INTO `app_api_readchapteritem` VALUES (37, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 11);
INSERT INTO `app_api_readchapteritem` VALUES (38, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 11);
INSERT INTO `app_api_readchapteritem` VALUES (39, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 12);
INSERT INTO `app_api_readchapteritem` VALUES (40, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 12);
INSERT INTO `app_api_readchapteritem` VALUES (41, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 12);
INSERT INTO `app_api_readchapteritem` VALUES (42, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 12);
INSERT INTO `app_api_readchapteritem` VALUES (43, '01 你为什么要学 Python ?', 1, '2019-07-01 00:00:00.000000', 13);
INSERT INTO `app_api_readchapteritem` VALUES (44, '02 我会怎样带你学 Python?', 1, '2019-07-01 00:00:00.000000', 13);
INSERT INTO `app_api_readchapteritem` VALUES (45, '03 让 Python 在你的电脑上安家落户', 1, '2019-07-01 00:00:00.000000', 13);
INSERT INTO `app_api_readchapteritem` VALUES (46, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 14);
INSERT INTO `app_api_readchapteritem` VALUES (47, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 14);
INSERT INTO `app_api_readchapteritem` VALUES (48, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 15);
INSERT INTO `app_api_readchapteritem` VALUES (49, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 15);
INSERT INTO `app_api_readchapteritem` VALUES (50, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 15);
INSERT INTO `app_api_readchapteritem` VALUES (51, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 15);
INSERT INTO `app_api_readchapteritem` VALUES (52, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 16);
INSERT INTO `app_api_readchapteritem` VALUES (53, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 16);
INSERT INTO `app_api_readchapteritem` VALUES (54, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 16);
INSERT INTO `app_api_readchapteritem` VALUES (55, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 16);
INSERT INTO `app_api_readchapteritem` VALUES (56, '01 Spring Cloud专栏介绍', 1, '2019-07-01 00:00:00.000000', 17);
INSERT INTO `app_api_readchapteritem` VALUES (57, '02 为什么要使用微服务架构?', 1, '2019-07-01 00:00:00.000000', 17);
INSERT INTO `app_api_readchapteritem` VALUES (58, '03 Spring Cloud 介绍以及发展前景', 1, '2019-07-01 00:00:00.000000', 17);
INSERT INTO `app_api_readchapteritem` VALUES (59, '04 Spring Boot 的设计理念和简单实践', 1, '2019-07-01 00:00:00.000000', 17);
INSERT INTO `app_api_readchapteritem` VALUES (60, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 18);
INSERT INTO `app_api_readchapteritem` VALUES (61, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 18);
INSERT INTO `app_api_readchapteritem` VALUES (62, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 19);
INSERT INTO `app_api_readchapteritem` VALUES (63, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 19);
INSERT INTO `app_api_readchapteritem` VALUES (64, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 19);
INSERT INTO `app_api_readchapteritem` VALUES (65, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 19);
INSERT INTO `app_api_readchapteritem` VALUES (66, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 20);
INSERT INTO `app_api_readchapteritem` VALUES (67, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 20);
INSERT INTO `app_api_readchapteritem` VALUES (68, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 20);
INSERT INTO `app_api_readchapteritem` VALUES (69, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 20);
INSERT INTO `app_api_readchapteritem` VALUES (70, '01 开篇词', 1, '2019-07-01 00:00:00.000000', 21);
INSERT INTO `app_api_readchapteritem` VALUES (71, '02 快速学会分析SQL执行效率(上)', 1, '2019-07-01 00:00:00.000000', 21);
INSERT INTO `app_api_readchapteritem` VALUES (72, '02 快速学会分析SQL执行效率(下)', 1, '2019-07-01 00:00:00.000000', 21);
INSERT INTO `app_api_readchapteritem` VALUES (73, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 22);
INSERT INTO `app_api_readchapteritem` VALUES (74, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 22);
INSERT INTO `app_api_readchapteritem` VALUES (75, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 23);
INSERT INTO `app_api_readchapteritem` VALUES (76, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 23);
INSERT INTO `app_api_readchapteritem` VALUES (77, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 23);
INSERT INTO `app_api_readchapteritem` VALUES (78, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 23);
INSERT INTO `app_api_readchapteritem` VALUES (79, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 24);
INSERT INTO `app_api_readchapteritem` VALUES (80, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 24);
INSERT INTO `app_api_readchapteritem` VALUES (81, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 24);
INSERT INTO `app_api_readchapteritem` VALUES (82, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 24);
INSERT INTO `app_api_readchapteritem` VALUES (83, '01 开篇:这个专栏能给你带来什么?', 1, '2019-07-01 00:00:00.000000', 25);
INSERT INTO `app_api_readchapteritem` VALUES (84, '02 online judge 的原理', 1, '2019-07-01 00:00:00.000000', 25);
INSERT INTO `app_api_readchapteritem` VALUES (85, '03 时间复杂度与空间复杂度分析', 1, '2019-07-01 00:00:00.000000', 25);
INSERT INTO `app_api_readchapteritem` VALUES (86, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 26);
INSERT INTO `app_api_readchapteritem` VALUES (87, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 26);
INSERT INTO `app_api_readchapteritem` VALUES (88, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 27);
INSERT INTO `app_api_readchapteritem` VALUES (89, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 27);
INSERT INTO `app_api_readchapteritem` VALUES (90, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 27);
INSERT INTO `app_api_readchapteritem` VALUES (91, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 27);
INSERT INTO `app_api_readchapteritem` VALUES (92, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 28);
INSERT INTO `app_api_readchapteritem` VALUES (93, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 28);
INSERT INTO `app_api_readchapteritem` VALUES (94, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 28);
INSERT INTO `app_api_readchapteritem` VALUES (95, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 28);
INSERT INTO `app_api_readchapteritem` VALUES (96, '01 开篇词', 1, '2019-07-01 00:00:00.000000', 29);
INSERT INTO `app_api_readchapteritem` VALUES (97, '02 编程语言的发展趋势:从没有分号,到DSL', 1, '2019-07-01 00:00:00.000000', 29);
INSERT INTO `app_api_readchapteritem` VALUES (98, '03 科技,死亡,和永生', 1, '2019-07-01 00:00:00.000000', 29);
INSERT INTO `app_api_readchapteritem` VALUES (99, '04 新西兰恐袭,疯狂删帖的小编,背锅的算法工程师', 1, '2019-07-01 00:00:00.000000', 29);
INSERT INTO `app_api_readchapteritem` VALUES (100, '5 性能优化百宝箱(上)', 0, '2019-07-01 00:00:00.000000', 30);
INSERT INTO `app_api_readchapteritem` VALUES (101, '6 性能优化百宝箱(下)', 0, '2019-07-01 00:00:00.000000', 30);
INSERT INTO `app_api_readchapteritem` VALUES (102, '7 聊聊 DNS Prefetch', 0, '2019-07-01 00:00:00.000000', 31);
INSERT INTO `app_api_readchapteritem` VALUES (103, '8 Webpack 性能优化两三事', 0, '2019-07-01 00:00:00.000000', 31);
INSERT INTO `app_api_readchapteritem` VALUES (104, '9 图片加载优化(上)', 0, '2019-07-01 00:00:00.000000', 31);
INSERT INTO `app_api_readchapteritem` VALUES (105, '10 图片加载优化(下)', 0, '2019-07-01 00:00:00.000000', 31);
INSERT INTO `app_api_readchapteritem` VALUES (106, '11 十八般缓存', 0, '2019-07-01 00:00:00.000000', 32);
INSERT INTO `app_api_readchapteritem` VALUES (107, '12 CDN 缓存', 0, '2019-07-01 00:00:00.000000', 32);
INSERT INTO `app_api_readchapteritem` VALUES (108, '13 本地缓存(Web Storage)', 0, '2019-07-01 00:00:00.000000', 32);
INSERT INTO `app_api_readchapteritem` VALUES (109, '14 浏览器缓存(上)', 0, '2019-07-01 00:00:00.000000', 32);
COMMIT;
-- ----------------------------
-- Table structure for app_api_readtype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_readtype`;
CREATE TABLE `app_api_readtype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_readtype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_readtype` VALUES (1, '前端开发', 0);
INSERT INTO `app_api_readtype` VALUES (2, '后端开发', 0);
INSERT INTO `app_api_readtype` VALUES (3, '数据库', 0);
INSERT INTO `app_api_readtype` VALUES (4, '面试', 0);
INSERT INTO `app_api_readtype` VALUES (5, '其它', 0);
COMMIT;
-- ----------------------------
-- Table structure for app_api_recharge
-- ----------------------------
DROP TABLE IF EXISTS `app_api_recharge`;
CREATE TABLE `app_api_recharge` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`time` datetime(6) NOT NULL,
`money` int(11) NOT NULL,
`remark` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`action_id` int(11) NOT NULL,
`way_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_recharge_action_id_c00eb3bf` (`action_id`),
KEY `app_api_recharge_way_id_6e2cc3f4` (`way_id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_recharge
-- ----------------------------
BEGIN;
INSERT INTO `app_api_recharge` VALUES (1, '', '2020-10-07 01:42:47.871878', 100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (2, '', '2020-10-07 01:42:47.875329', 900, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (3, '', '2020-10-07 01:42:47.877782', 3000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (4, '', '2020-10-07 01:42:47.880062', 5000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (5, '', '2020-10-07 01:42:47.882094', 90000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (6, '', '2020-10-07 01:42:47.884002', 100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (7, '', '2020-10-07 01:42:47.885826', 900, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (8, '', '2020-10-07 01:42:47.887542', 3000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (9, '', '2020-10-07 01:42:47.889217', 5000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (10, '', '2020-10-07 01:42:47.890817', 90000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (11, '', '2020-10-07 01:42:47.892327', 100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (12, '', '2020-10-07 01:42:47.893880', 900, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (13, '', '2020-10-07 01:42:47.895424', 3000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (14, '', '2020-10-07 01:42:47.896918', 5000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (15, '', '2020-10-07 01:42:47.898508', 90000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (16, '', '2020-10-07 01:42:47.899844', 100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (17, '', '2020-10-07 01:42:47.901324', 900, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (18, '', '2020-10-07 01:42:47.902692', 3000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (19, '', '2020-10-07 01:42:47.904015', 5000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (20, '', '2020-10-07 01:42:47.905543', 90000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (21, '', '2020-10-07 01:42:47.906850', 100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (22, '', '2020-10-07 01:42:47.908309', 900, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (23, '', '2020-10-07 01:42:47.909821', 3000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (24, '', '2020-10-07 01:42:47.911175', 5000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (25, '', '2020-10-07 01:42:47.912705', 90000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (26, '4', '2020-10-07 21:48:29.791911', 30000, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (27, '4', '2020-10-07 21:48:36.361138', 100000, '微信充值', 1, 4);
INSERT INTO `app_api_recharge` VALUES (28, '4', '2020-10-07 21:58:28.196009', 1100, '支付宝充值', 1, 1);
INSERT INTO `app_api_recharge` VALUES (29, '4', '2020-10-07 21:58:32.581324', 11100, '微信充值', 1, 4);
COMMIT;
-- ----------------------------
-- Table structure for app_api_rechargeaction
-- ----------------------------
DROP TABLE IF EXISTS `app_api_rechargeaction`;
CREATE TABLE `app_api_rechargeaction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_rechargeaction
-- ----------------------------
BEGIN;
INSERT INTO `app_api_rechargeaction` VALUES (1, '转入', 0);
COMMIT;
-- ----------------------------
-- Table structure for app_api_rechargepay
-- ----------------------------
DROP TABLE IF EXISTS `app_api_rechargepay`;
CREATE TABLE `app_api_rechargepay` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_rechargepay
-- ----------------------------
BEGIN;
INSERT INTO `app_api_rechargepay` VALUES (1, '支付宝', 0);
INSERT INTO `app_api_rechargepay` VALUES (4, '微信', 1);
COMMIT;
-- ----------------------------
-- Table structure for app_api_slider
-- ----------------------------
DROP TABLE IF EXISTS `app_api_slider`;
CREATE TABLE `app_api_slider` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sort` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_slider
-- ----------------------------
BEGIN;
INSERT INTO `app_api_slider` VALUES (55, 'https://img.mukewang.com/5d1e0a1800013ca916000540.jpg', '', 1);
INSERT INTO `app_api_slider` VALUES (56, 'https://img.mukewang.com/5d1c5aec00011c1016000540.jpg', '', 2);
INSERT INTO `app_api_slider` VALUES (57, 'https://img.mukewang.com/5d108b1500010bfe18720632.jpg', '', 3);
INSERT INTO `app_api_slider` VALUES (58, 'https://img.mukewang.com/5d1466c5000172a516000540.jpg', '', 4);
INSERT INTO `app_api_slider` VALUES (59, 'https://img.mukewang.com/5cb833cf0001efb716000540.jpg', '', 5);
INSERT INTO `app_api_slider` VALUES (60, 'https://img.mukewang.com/5c0fd2630001ef2118720632.jpg', '', 6);
COMMIT;
-- ----------------------------
-- Table structure for app_api_student
-- ----------------------------
DROP TABLE IF EXISTS `app_api_student`;
CREATE TABLE `app_api_student` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`avatar` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`number` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_student_type_id_a495c9fc` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_student
-- ----------------------------
BEGIN;
INSERT INTO `app_api_student` VALUES (89, 'https://img1.sycdn.imooc.com/5d0d7a6c0001aa9a09760976-100-100.jpg', '梨不开的桃子', 0, 94);
INSERT INTO `app_api_student` VALUES (90, 'https://img2.sycdn.imooc.com/545850200001359c02200220-100-100.jpg', 'EnchantF', 0, 95);
INSERT INTO `app_api_student` VALUES (91, 'https://img2.sycdn.imooc.com/5bd113ec00019d0003000300-100-100.jpg', '安晓辉', 0, 96);
INSERT INTO `app_api_student` VALUES (92, 'https://www.imooc.com/static/img/index/tuhao.png', 'ml320', 0, 97);
INSERT INTO `app_api_student` VALUES (93, 'https://img3.sycdn.imooc.com/5b60202f000159e305330300-100-100.jpg', '灰灰520', 72, 94);
INSERT INTO `app_api_student` VALUES (94, 'https://img2.sycdn.imooc.com/59f190ea00018f9101000100-100-100.jpg', 'qq_花开花落又是雨季_2', 75, 94);
INSERT INTO `app_api_student` VALUES (95, 'https://img3.sycdn.imooc.com/5d121c7f00014baf02190218-100-100.jpg', '码农故事汇', 7, 96);
INSERT INTO `app_api_student` VALUES (96, 'https://img3.sycdn.imooc.com/5cbbfae10001ce5d14402560-100-100.jpg', 'JavaEdge', 14, 96);
INSERT INTO `app_api_student` VALUES (97, 'https://img2.sycdn.imooc.com/5b7ec6890001625a09700970-100-100.jpg', '橋本奈奈未', 1, 95);
INSERT INTO `app_api_student` VALUES (98, 'https://img3.sycdn.imooc.com/533e4ca50001117901990200-100-100.jpg', 'pardon110', 7, 95);
INSERT INTO `app_api_student` VALUES (99, 'https://img2.sycdn.imooc.com/5d19c00b0001843208000800-100-100.jpg', '爱写bug', 16, 96);
INSERT INTO `app_api_student` VALUES (100, 'https://img3.sycdn.imooc.com/5cc9bb2c00018e8709600960-100-100.jpg', '猪哥66', 18, 96);
INSERT INTO `app_api_student` VALUES (101, 'https://img3.sycdn.imooc.com/5d0c3944000142ec10241024-100-100.jpg', '慕课网官方_运营中心', 7, 96);
INSERT INTO `app_api_student` VALUES (102, 'https://img2.sycdn.imooc.com/5a4ae8860001f12903260326-100-100.jpg', '猪哥66', 75, 94);
INSERT INTO `app_api_student` VALUES (103, 'https://img1.sycdn.imooc.com/5d1eaf680001576f07000722-100-100.jpg', '唐唐师傅', 1, 95);
INSERT INTO `app_api_student` VALUES (104, 'https://img1.sycdn.imooc.com/533e4cf4000151f602000200-100-100.jpg', '柯南一号呀', 72, 94);
INSERT INTO `app_api_student` VALUES (105, 'https://img3.sycdn.imooc.com/545862b90001ab4c02200220-100-100.jpg', '妹妹的姐姐', 78, 94);
INSERT INTO `app_api_student` VALUES (106, 'https://img3.sycdn.imooc.com/5cee919c000182b504400440-100-100.jpg', '李红红', 7, 96);
INSERT INTO `app_api_student` VALUES (107, 'https://img1.sycdn.imooc.com/5c53bb070001ba6804000400-100-100.jpg', '慕猿梦', 75, 94);
INSERT INTO `app_api_student` VALUES (108, 'https://img2.sycdn.imooc.com/545867340001101702200220-100-100.jpg', 'xyr0601', 75, 94);
INSERT INTO `app_api_student` VALUES (109, 'https://img3.sycdn.imooc.com/5b4e66620001dd4703500350-100-100.jpg', '侠客岛的含笑', 9, 96);
INSERT INTO `app_api_student` VALUES (110, 'https://img2.sycdn.imooc.com/5b8cede40001b96c02000198-100-100.jpg', '南山搬瓦工', 1, 95);
COMMIT;
-- ----------------------------
-- Table structure for app_api_studenttype
-- ----------------------------
DROP TABLE IF EXISTS `app_api_studenttype`;
CREATE TABLE `app_api_studenttype` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`code` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_studenttype
-- ----------------------------
BEGIN;
INSERT INTO `app_api_studenttype` VALUES (94, '风骚课程学霸', 1);
INSERT INTO `app_api_studenttype` VALUES (95, '神秘解疑大神', 2);
INSERT INTO `app_api_studenttype` VALUES (96, '智慧文章王者', 3);
INSERT INTO `app_api_studenttype` VALUES (97, '慕课第一土豪', 4);
COMMIT;
-- ----------------------------
-- Table structure for app_api_syslog
-- ----------------------------
DROP TABLE IF EXISTS `app_api_syslog`;
CREATE TABLE `app_api_syslog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`ip_addr` varchar(39) COLLATE utf8mb4_general_ci DEFAULT NULL,
`action_flag` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
`message` longtext COLLATE utf8mb4_general_ci NOT NULL,
`log_type` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
`user_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_syslog
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_teacher
-- ----------------------------
DROP TABLE IF EXISTS `app_api_teacher`;
CREATE TABLE `app_api_teacher` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`avatar` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`job` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`introduction` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=334 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_teacher
-- ----------------------------
BEGIN;
INSERT INTO `app_api_teacher` VALUES (226, '七月', 'https://img1.mukewang.com/54584e2c00010a2c02200220-100-100.jpg', '全栈工程师', '十年研发及团队管理经验,对程序员面临的各种问题深有体会;精通Python、Java、Node.js、JavaScript等语言,对Web的基础研发、高并发处理与分布式有非常深入的理解。课程讲解深入浅出,极为擅长培养学生的编程思维。');
INSERT INTO `app_api_teacher` VALUES (227, 'liuyubobobo', 'https://img1.mukewang.com/5347593e00010cfb01400140-100-100.jpg', '全栈工程师', '创业者,全栈工程师,持续学习者。对技术开发,产品设计、前后端,ios,html5,智能算法等领域均有接触;拥有多款独立App作品;对一切可编程的东西有浓厚兴趣,对游戏编程格外感兴趣。相信编程改变一切。');
INSERT INTO `app_api_teacher` VALUES (228, 'ustbhuangyi', 'https://img2.mukewang.com/577baef700019c4501400140-100-100.jpg', '前端架构师', '北京科技大学毕业,计算机专业硕士。对前端工程化,前后端性能优化有丰富的经验。曾任职百度、滴滴,现担任Zoom前端架构师。慕课网明星讲师,Vue.js 布道者,《Vue.js 技术揭秘》独立作者,《Vue.js 权威指南》主要作者。开源项目 better-scroll 作者,并主导滴滴开源项目 cube-ui,建立团队技术博客。');
INSERT INTO `app_api_teacher` VALUES (229, '慕课官方号', 'https://img.mukewang.com/5b88f1f50001688401500150-100-100.jpg', '页面重构设计', '慕课,Massive(大规模)Open(开放)Online(在线)Course(课程)。专注做好IT技能教育的MOOC,符合互联网发展潮流接地气儿的MOOC。我们有更多免费资源,我们只教有用的,我们专心做教育。');
INSERT INTO `app_api_teacher` VALUES (230, 'Oeasy', 'https://img3.mukewang.com/53855e6f0001034501400140-100-100.jpg', '页面重构设计', '他,授课风趣幽默,激情四射,自称屌丝青年,中国传媒大学计算机教师;他,专注于网页制作、平面设计、多媒体等多个领域的软件以及应用的挖掘与创新,热爱分享,是新鲜热门软件和应用的导航标,他就是众粉丝心中的“Oeasy老湿”');
INSERT INTO `app_api_teacher` VALUES (231, '城南大师兄', 'https://img2.mukewang.com/5cac7e810001fe7705270698-100-100.jpg', 'JAVA开发工程师', '目前主要负责后端架构设计,具有十多年一线开发和架构经验,拥有丰富的高性能、高并发处理以及大型服务器软件设计架构经验。深谙各种源码。工作中常常和千万级高并发的问题“正面硬钢” ,因此在高并发调优等方面积累了丰富的实战经验。十几年的架构经验,让讲师早已将理论和实践锻造的炉火纯青。如果你想学习他密不外传的工作‘渡劫’经验,讲师等你打Call~');
INSERT INTO `app_api_teacher` VALUES (232, 'bobby', 'https://img4.mukewang.com/58d9c48f0001ad0304070270-100-100.jpg', '全栈工程师', 'python全栈工程师,五年工作经验,喜欢钻研python技术,对爬虫、web开发以及机器学习有浓厚的兴趣,关注前沿技术以及发展趋势。');
INSERT INTO `app_api_teacher` VALUES (233, '大目', 'https://img1.mukewang.com/5d142f090804929712361209-100-100.jpg', 'JAVA开发工程师', '阿里技术专家,9年软件系统开发经验,多年系统架构经验。参与开发/架构多个大型项目,Spring Cloud、微服务、持续集成、持续交付、Cloud Native生态均有涉猎。热爱技术交流,代表公司参加全球微服务架构高峰论坛、QCon等技术沙龙。拥抱开源,多个项目开源在Github与Gitee上,也是多个项目的Contributor,为多个开源项目提交PR。');
INSERT INTO `app_api_teacher` VALUES (234, 'hyman', 'https://img.mukewang.com/54169c430001face18403264-100-100.jpg', '移动开发工程师', '同大千攻城狮般无异,本狮有着巨大的火热的不灭的技术热情,痴迷于Android开发。乐于分享,善于将技术生活化,唯愿与大千男女攻城狮共同进步');
INSERT INTO `app_api_teacher` VALUES (235, 'PegasusWang', 'https://img3.mukewang.com/5bfba2490001457005750575-100-100.jpg', 'Python工程师', '从事web开发4年,工作中以 Python 作为主力语言,代码控,实践经验丰富,乐于分享技术知识,知乎专栏作者。');
INSERT INTO `app_api_teacher` VALUES (246, 'Dell', 'https://img1.sycdn.imooc.com/user/5abe468b0001664107390741-100-100.jpg', 'Web前端工程师', 'BAT资深前端工程师,负责数据平台技术研发。曾任去哪儿网高级前端工程师,主导去哪儿网内部前端监控系统设计,负责去哪儿网门票用户端的前端设计开发。曾任国内知名培训机构高级前端讲师,负责React,Angular,Vue,Hybrid,RN的课程讲授,具备丰富前端授课经验。对优雅编程及工程化有深度思考及见解,教会你写代码,同时帮助你把代码写的更漂亮!');
INSERT INTO `app_api_teacher` VALUES (255, '7七月', 'https://img.mukewang.com/user/54584e2c00010a2c02200220-100-100.jpg', '全栈工程师', '十年研发及团队管理经验,对程序员面临的各种问题深有体会;精通Python、Java、Node.js、JavaScript等语言,对Web的基础研发、高并发处理与分布式有非常深入的理解。课程讲解深入浅出,极为擅长培养学生的编程思维。');
INSERT INTO `app_api_teacher` VALUES (258, '勤一', 'https://img.mukewang.com/user/5c36c432000158e609600960-100-100.jpg', 'Java开发工程师', '高级技术专家,曾就职于微软、腾讯,目前就职于知名电商互联网公司,拥有丰富的大型项目开发经验。多年IT从业经验,一线软件设计、研发,熟悉C、CPP、Java等开发语言,对Web框架、数据存储、架构设计等有深入的理解和实践。');
INSERT INTO `app_api_teacher` VALUES (261, 'CrazyCodeBoy', 'https://img.mukewang.com/user/545847e20001163c02200220-100-100.jpg', '移动端开发工程师', '深耕移动端领域8年有余,全栈技术专家,CSDN 博客专家,擅长Android、iOS、Flutter、React Native以及小程序项目开发,负责过前端、Java、Android、iOS等多平台项目的研发,有多款React Native App上线及管理经验。他享受编程、热爱开源、酷爱分享,平时除了写写博客外,也分享一些开源技术干货 · Github');
INSERT INTO `app_api_teacher` VALUES (263, 'qndroid', 'http://img3.sycdn.imooc.com/5333a0350001692e02200220-160-160.jpg', '移动开发工程师', '多年Android开发经验,曾任职于优酷等一线互联网企业,现就职于快手基础架构部,有丰富的Android应用架构和SDK开发经验,喜欢分享,授课风格循序渐进,擅长培养学生的编程思维,深受学员好评。');
INSERT INTO `app_api_teacher` VALUES (271, '自游蜗牛', 'https://img.mukewang.com/user/5b6949e20001c6bf10801080-100-100.jpg', '区块链底层工程师', '现就职于某世界500强区块链团队,从事区块链底层研究以及BAAS平台搭建。精通区块链底层存储、共识等技术,职业方向偏重联盟链体系。');
INSERT INTO `app_api_teacher` VALUES (272, '会写代码的好厨师', 'https://img1.sycdn.imooc.com/user/5b8618950001cd9101440146-100-100.jpg', '资深机器学习工程师', '现就职于某世界500强区块链团队,从事区块链底层研究以及BAAS平台搭建。精通区块链底层存储、共识等技术,职业方向偏重联盟链体系。');
INSERT INTO `app_api_teacher` VALUES (282, 'Michael_PK', 'https://img1.sycdn.imooc.com/user/533e4d510001c2ad02000200-100-100.jpg', '资深大数据架构师', '八年互联网公司一线研发经验,担任大数据架构师。主要从事基于Spark/Flink为核心打造的大数据公有云、私有云数据平台产品的研发。改造过Hadoop、Spark等框架的源码为云平台提供更高的执行性能。集群规模过万,有丰富的大数据项目实战经验以及授课经验(授课数千小时,深受学员好评)。');
INSERT INTO `app_api_teacher` VALUES (285, '酷田', 'http://img2.sycdn.imooc.com/5c297bb600013f6d11100834-160-160.jpg', '全栈工程师', '360企业安全集团资深工程师,曾就职于中国移动、亚信科技 ,等知名大型公司,多年工作经验积累,所传授的知识技能可以让你在实际工作中有的放矢,游刃有余。');
INSERT INTO `app_api_teacher` VALUES (289, 'sqlercn', 'http://img3.sycdn.imooc.com/5ad7144100017a5e07410741-160-160.jpg', '数据库工程师', '高级数据库工程师(DBA),从事数据库管理工作多年,曾就职于聚美优品、猫扑、TOM等多家大型互联网公司,进行过千万级的数据处理,对大数据业务、高并发时数据优化积累了大量丰富的经验。');
INSERT INTO `app_api_teacher` VALUES (294, 'Stannum', 'https://img1.sycdn.imooc.com/user/5b558fd00001ca6207410741-100-100.jpg', 'Java/C++敏捷开发专家', '目前在财经界俗称的“大摩”,一家成立于美国纽约的国际金融服务公司-摩根士丹利担任软件工程师和敏捷开发专家。 主攻Event Sourcing架构模式的应用。是一个“只有男同事,没有女同事”的程序媛一枚,先后就职于多家投资银行,负责开发“每一个bug都很贵”的内部交易系统,主导了股票交易执行系统和衍生品交易风险控制系统。');
INSERT INTO `app_api_teacher` VALUES (295, '墨染ART', 'http://img4.sycdn.imooc.com/5b1c1e530001c06c07410719-160-160.jpg', 'UI设计师', '站酷推荐设计师,UI中国推荐设计师。热门UI动效实战系列教程作者,对UI设计、动效设计、多终端响应式设计有深入的研究和经验。');
INSERT INTO `app_api_teacher` VALUES (299, '丶五月的夏天', 'https://img2.mukewang.com/54584f6d0001759002200220-80-80.jpg', 'Web前端工程师', '');
INSERT INTO `app_api_teacher` VALUES (303, 'Jokcy', 'https://img1.sycdn.imooc.com/5a697c950001262b05790578-80-80.jpg', 'Web前端工程师', '');
INSERT INTO `app_api_teacher` VALUES (304, 'lewis', 'https://img.mukewang.com/5c3ea1f10001b55908070807-80-80.jpg', 'Web前端工程师', '');
INSERT INTO `app_api_teacher` VALUES (305, '一缕孤烟', 'https://img4.mukewang.com/54a2bf390001593c01000100-80-80.jpg', 'Web前端工程师', '');
INSERT INTO `app_api_teacher` VALUES (306, '龙猪GG', 'https://img1.mukewang.com/5b8cd6cb000114e702000112-80-80.jpg', '架构师', '');
INSERT INTO `app_api_teacher` VALUES (307, '舞马', 'https://img.mukewang.com/5e3c0b840001796401500124-80-80.jpg', '软件工程师', '');
INSERT INTO `app_api_teacher` VALUES (308, '司马极客', 'https://img4.mukewang.com/5b8cdb710001d95c02000200-80-80.jpg', '软件工程师', '');
INSERT INTO `app_api_teacher` VALUES (309, '风间影月', 'https://img4.mukewang.com/5a0c5df20001a1cb05800580-80-80.jpg', '全栈工程师', '');
INSERT INTO `app_api_teacher` VALUES (311, '夏正东', 'https://img2.mukewang.com/5da6841d0001f79409600960-80-80.jpg', 'Python工程师', '');
INSERT INTO `app_api_teacher` VALUES (312, '伏草惟存', 'https://img3.mukewang.com/545863cd0001b72a02200220-80-80.jpg', '算法工程师', '');
INSERT INTO `app_api_teacher` VALUES (313, '凡諾', 'https://img.mukewang.com/5e57662a00012deb11111109-80-80.jpg', '移动开发工程师', '');
INSERT INTO `app_api_teacher` VALUES (315, 'glumes', 'https://img3.mukewang.com/5462e44b0001421501800180-80-80.jpg', '移动开发工程师', '');
INSERT INTO `app_api_teacher` VALUES (316, '北极小琪', 'https://img4.mukewang.com/5bcd983c0001264203500350-80-80.jpg', '算法工程师', '');
INSERT INTO `app_api_teacher` VALUES (317, 'coding迪斯尼', 'https://img.mukewang.com/57a333b400010f6006400478-80-80.jpg', '全栈工程师', '');
INSERT INTO `app_api_teacher` VALUES (318, '吕小鸣', 'https://img1.mukewang.com/5a6f01bc0001a6f405680495-100-100.jpg', '高级web前端工程师', '');
INSERT INTO `app_api_teacher` VALUES (319, 'BinaryCoding', 'https://img3.mukewang.com/54584dad0001dd7802200220-100-100.jpg', '前端性能优化极客', '');
INSERT INTO `app_api_teacher` VALUES (320, '刘捷Jay', 'https://img1.mukewang.com/5d23fb440001901e11111081-100-100.jpg', '首批微信开发从业者', '');
INSERT INTO `app_api_teacher` VALUES (321, '黄浮云', 'https://img3.mukewang.com/5d5496f200014b7e11001100-100-100.jpg', '资深云计算工程师', '');
INSERT INTO `app_api_teacher` VALUES (322, '江南一点雨', 'https://img4.mukewang.com/533e4d7c0001828702000200-100-100.jpg', '资深Java工程师', '');
INSERT INTO `app_api_teacher` VALUES (323, '马听老师', 'https://img2.mukewang.com/5d30228f00016ccc19201080-100-100.jpg', '一线数据库工程师', '');
INSERT INTO `app_api_teacher` VALUES (324, 'Lisanaaa', 'https://img4.mukewang.com/5d4146160001d2b803500350-100-100.jpg', 'GitHub 开源算法项目万星作者', '');
COMMIT;
-- ----------------------------
-- Table structure for app_api_term
-- ----------------------------
DROP TABLE IF EXISTS `app_api_term`;
CREATE TABLE `app_api_term` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`seconds` int(11) NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`chapter_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_term_chapter_id_6224437b` (`chapter_id`)
) ENGINE=InnoDB AUTO_INCREMENT=856 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_term
-- ----------------------------
BEGIN;
INSERT INTO `app_api_term` VALUES (571, 145, '1-1 课程介绍', '', 153);
INSERT INTO `app_api_term` VALUES (572, 558, '2-1 创建第一个Vue实例', '', 154);
INSERT INTO `app_api_term` VALUES (573, 264, '2-2 挂载点,模版与实例', '', 154);
INSERT INTO `app_api_term` VALUES (574, 746, '2-3 Vue实例中的数据,事件和方法', '', 154);
INSERT INTO `app_api_term` VALUES (575, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 154);
INSERT INTO `app_api_term` VALUES (576, 540, '2-5 Vue中的计算属性和侦听器', '', 154);
INSERT INTO `app_api_term` VALUES (577, 541, '2-6 v-if, v-show与v-for指令', '', 154);
INSERT INTO `app_api_term` VALUES (578, 410, '3-1 todolist功能开发', '', 155);
INSERT INTO `app_api_term` VALUES (579, 669, '3-2 todolist组件拆分', '', 155);
INSERT INTO `app_api_term` VALUES (580, 303, '3-3 组件与实例的关系', '', 155);
INSERT INTO `app_api_term` VALUES (581, 691, '3-4 实现todolist的删除功能', '', 155);
INSERT INTO `app_api_term` VALUES (582, 999, '4-1 vue-cli的简介与使用', '', 156);
INSERT INTO `app_api_term` VALUES (583, 1044, '4-2 使用vue-cli开发TodoList', '', 156);
INSERT INTO `app_api_term` VALUES (584, 258, '4-3 全局样式与局部样式', '', 156);
INSERT INTO `app_api_term` VALUES (585, 244, '4-4 课程总结', '', 156);
INSERT INTO `app_api_term` VALUES (586, 145, '1-1 课程介绍', '', 157);
INSERT INTO `app_api_term` VALUES (587, 558, '2-1 创建第一个Vue实例', '', 158);
INSERT INTO `app_api_term` VALUES (588, 264, '2-2 挂载点,模版与实例', '', 158);
INSERT INTO `app_api_term` VALUES (589, 746, '2-3 Vue实例中的数据,事件和方法', '', 158);
INSERT INTO `app_api_term` VALUES (590, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 158);
INSERT INTO `app_api_term` VALUES (591, 540, '2-5 Vue中的计算属性和侦听器', '', 158);
INSERT INTO `app_api_term` VALUES (592, 541, '2-6 v-if, v-show与v-for指令', '', 158);
INSERT INTO `app_api_term` VALUES (593, 410, '3-1 todolist功能开发', '', 159);
INSERT INTO `app_api_term` VALUES (594, 669, '3-2 todolist组件拆分', '', 159);
INSERT INTO `app_api_term` VALUES (595, 303, '3-3 组件与实例的关系', '', 159);
INSERT INTO `app_api_term` VALUES (596, 691, '3-4 实现todolist的删除功能', '', 159);
INSERT INTO `app_api_term` VALUES (597, 999, '4-1 vue-cli的简介与使用', '', 160);
INSERT INTO `app_api_term` VALUES (598, 1044, '4-2 使用vue-cli开发TodoList', '', 160);
INSERT INTO `app_api_term` VALUES (599, 258, '4-3 全局样式与局部样式', '', 160);
INSERT INTO `app_api_term` VALUES (600, 244, '4-4 课程总结', '', 160);
INSERT INTO `app_api_term` VALUES (601, 145, '1-1 课程介绍', '', 161);
INSERT INTO `app_api_term` VALUES (602, 558, '2-1 创建第一个Vue实例', '', 162);
INSERT INTO `app_api_term` VALUES (603, 264, '2-2 挂载点,模版与实例', '', 162);
INSERT INTO `app_api_term` VALUES (604, 746, '2-3 Vue实例中的数据,事件和方法', '', 162);
INSERT INTO `app_api_term` VALUES (605, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 162);
INSERT INTO `app_api_term` VALUES (606, 540, '2-5 Vue中的计算属性和侦听器', '', 162);
INSERT INTO `app_api_term` VALUES (607, 541, '2-6 v-if, v-show与v-for指令', '', 162);
INSERT INTO `app_api_term` VALUES (608, 410, '3-1 todolist功能开发', '', 163);
INSERT INTO `app_api_term` VALUES (609, 669, '3-2 todolist组件拆分', '', 163);
INSERT INTO `app_api_term` VALUES (610, 303, '3-3 组件与实例的关系', '', 163);
INSERT INTO `app_api_term` VALUES (611, 691, '3-4 实现todolist的删除功能', '', 163);
INSERT INTO `app_api_term` VALUES (612, 999, '4-1 vue-cli的简介与使用', '', 164);
INSERT INTO `app_api_term` VALUES (613, 1044, '4-2 使用vue-cli开发TodoList', '', 164);
INSERT INTO `app_api_term` VALUES (614, 258, '4-3 全局样式与局部样式', '', 164);
INSERT INTO `app_api_term` VALUES (615, 244, '4-4 课程总结', '', 164);
INSERT INTO `app_api_term` VALUES (616, 145, '1-1 课程介绍', '', 165);
INSERT INTO `app_api_term` VALUES (617, 558, '2-1 创建第一个Vue实例', '', 166);
INSERT INTO `app_api_term` VALUES (618, 264, '2-2 挂载点,模版与实例', '', 166);
INSERT INTO `app_api_term` VALUES (619, 746, '2-3 Vue实例中的数据,事件和方法', '', 166);
INSERT INTO `app_api_term` VALUES (620, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 166);
INSERT INTO `app_api_term` VALUES (621, 540, '2-5 Vue中的计算属性和侦听器', '', 166);
INSERT INTO `app_api_term` VALUES (622, 541, '2-6 v-if, v-show与v-for指令', '', 166);
INSERT INTO `app_api_term` VALUES (623, 410, '3-1 todolist功能开发', '', 167);
INSERT INTO `app_api_term` VALUES (624, 669, '3-2 todolist组件拆分', '', 167);
INSERT INTO `app_api_term` VALUES (625, 303, '3-3 组件与实例的关系', '', 167);
INSERT INTO `app_api_term` VALUES (626, 691, '3-4 实现todolist的删除功能', '', 167);
INSERT INTO `app_api_term` VALUES (627, 999, '4-1 vue-cli的简介与使用', '', 168);
INSERT INTO `app_api_term` VALUES (628, 1044, '4-2 使用vue-cli开发TodoList', '', 168);
INSERT INTO `app_api_term` VALUES (629, 258, '4-3 全局样式与局部样式', '', 168);
INSERT INTO `app_api_term` VALUES (630, 244, '4-4 课程总结', '', 168);
INSERT INTO `app_api_term` VALUES (631, 145, '1-1 课程介绍', '', 169);
INSERT INTO `app_api_term` VALUES (632, 558, '2-1 创建第一个Vue实例', '', 170);
INSERT INTO `app_api_term` VALUES (633, 264, '2-2 挂载点,模版与实例', '', 170);
INSERT INTO `app_api_term` VALUES (634, 746, '2-3 Vue实例中的数据,事件和方法', '', 170);
INSERT INTO `app_api_term` VALUES (635, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 170);
INSERT INTO `app_api_term` VALUES (636, 540, '2-5 Vue中的计算属性和侦听器', '', 170);
INSERT INTO `app_api_term` VALUES (637, 541, '2-6 v-if, v-show与v-for指令', '', 170);
INSERT INTO `app_api_term` VALUES (638, 410, '3-1 todolist功能开发', '', 171);
INSERT INTO `app_api_term` VALUES (639, 669, '3-2 todolist组件拆分', '', 171);
INSERT INTO `app_api_term` VALUES (640, 303, '3-3 组件与实例的关系', '', 171);
INSERT INTO `app_api_term` VALUES (641, 691, '3-4 实现todolist的删除功能', '', 171);
INSERT INTO `app_api_term` VALUES (642, 999, '4-1 vue-cli的简介与使用', '', 172);
INSERT INTO `app_api_term` VALUES (643, 1044, '4-2 使用vue-cli开发TodoList', '', 172);
INSERT INTO `app_api_term` VALUES (644, 258, '4-3 全局样式与局部样式', '', 172);
INSERT INTO `app_api_term` VALUES (645, 244, '4-4 课程总结', '', 172);
INSERT INTO `app_api_term` VALUES (646, 145, '1-1 课程介绍', '', 173);
INSERT INTO `app_api_term` VALUES (647, 558, '2-1 创建第一个Vue实例', '', 174);
INSERT INTO `app_api_term` VALUES (648, 264, '2-2 挂载点,模版与实例', '', 174);
INSERT INTO `app_api_term` VALUES (649, 746, '2-3 Vue实例中的数据,事件和方法', '', 174);
INSERT INTO `app_api_term` VALUES (650, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 174);
INSERT INTO `app_api_term` VALUES (651, 540, '2-5 Vue中的计算属性和侦听器', '', 174);
INSERT INTO `app_api_term` VALUES (652, 541, '2-6 v-if, v-show与v-for指令', '', 174);
INSERT INTO `app_api_term` VALUES (653, 410, '3-1 todolist功能开发', '', 175);
INSERT INTO `app_api_term` VALUES (654, 669, '3-2 todolist组件拆分', '', 175);
INSERT INTO `app_api_term` VALUES (655, 303, '3-3 组件与实例的关系', '', 175);
INSERT INTO `app_api_term` VALUES (656, 691, '3-4 实现todolist的删除功能', '', 175);
INSERT INTO `app_api_term` VALUES (657, 999, '4-1 vue-cli的简介与使用', '', 176);
INSERT INTO `app_api_term` VALUES (658, 1044, '4-2 使用vue-cli开发TodoList', '', 176);
INSERT INTO `app_api_term` VALUES (659, 258, '4-3 全局样式与局部样式', '', 176);
INSERT INTO `app_api_term` VALUES (660, 244, '4-4 课程总结', '', 176);
INSERT INTO `app_api_term` VALUES (661, 145, '1-1 课程介绍', '', 177);
INSERT INTO `app_api_term` VALUES (662, 558, '2-1 创建第一个Vue实例', '', 178);
INSERT INTO `app_api_term` VALUES (663, 264, '2-2 挂载点,模版与实例', '', 178);
INSERT INTO `app_api_term` VALUES (664, 746, '2-3 Vue实例中的数据,事件和方法', '', 178);
INSERT INTO `app_api_term` VALUES (665, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 178);
INSERT INTO `app_api_term` VALUES (666, 540, '2-5 Vue中的计算属性和侦听器', '', 178);
INSERT INTO `app_api_term` VALUES (667, 541, '2-6 v-if, v-show与v-for指令', '', 178);
INSERT INTO `app_api_term` VALUES (668, 410, '3-1 todolist功能开发', '', 179);
INSERT INTO `app_api_term` VALUES (669, 669, '3-2 todolist组件拆分', '', 179);
INSERT INTO `app_api_term` VALUES (670, 303, '3-3 组件与实例的关系', '', 179);
INSERT INTO `app_api_term` VALUES (671, 691, '3-4 实现todolist的删除功能', '', 179);
INSERT INTO `app_api_term` VALUES (672, 999, '4-1 vue-cli的简介与使用', '', 180);
INSERT INTO `app_api_term` VALUES (673, 1044, '4-2 使用vue-cli开发TodoList', '', 180);
INSERT INTO `app_api_term` VALUES (674, 258, '4-3 全局样式与局部样式', '', 180);
INSERT INTO `app_api_term` VALUES (675, 244, '4-4 课程总结', '', 180);
INSERT INTO `app_api_term` VALUES (676, 145, '1-1 课程介绍', '', 181);
INSERT INTO `app_api_term` VALUES (677, 558, '2-1 创建第一个Vue实例', '', 182);
INSERT INTO `app_api_term` VALUES (678, 264, '2-2 挂载点,模版与实例', '', 182);
INSERT INTO `app_api_term` VALUES (679, 746, '2-3 Vue实例中的数据,事件和方法', '', 182);
INSERT INTO `app_api_term` VALUES (680, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 182);
INSERT INTO `app_api_term` VALUES (681, 540, '2-5 Vue中的计算属性和侦听器', '', 182);
INSERT INTO `app_api_term` VALUES (682, 541, '2-6 v-if, v-show与v-for指令', '', 182);
INSERT INTO `app_api_term` VALUES (683, 410, '3-1 todolist功能开发', '', 183);
INSERT INTO `app_api_term` VALUES (684, 669, '3-2 todolist组件拆分', '', 183);
INSERT INTO `app_api_term` VALUES (685, 303, '3-3 组件与实例的关系', '', 183);
INSERT INTO `app_api_term` VALUES (686, 691, '3-4 实现todolist的删除功能', '', 183);
INSERT INTO `app_api_term` VALUES (687, 999, '4-1 vue-cli的简介与使用', '', 184);
INSERT INTO `app_api_term` VALUES (688, 1044, '4-2 使用vue-cli开发TodoList', '', 184);
INSERT INTO `app_api_term` VALUES (689, 258, '4-3 全局样式与局部样式', '', 184);
INSERT INTO `app_api_term` VALUES (690, 244, '4-4 课程总结', '', 184);
INSERT INTO `app_api_term` VALUES (691, 145, '1-1 课程介绍', '', 185);
INSERT INTO `app_api_term` VALUES (692, 558, '2-1 创建第一个Vue实例', '', 186);
INSERT INTO `app_api_term` VALUES (693, 264, '2-2 挂载点,模版与实例', '', 186);
INSERT INTO `app_api_term` VALUES (694, 746, '2-3 Vue实例中的数据,事件和方法', '', 186);
INSERT INTO `app_api_term` VALUES (695, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 186);
INSERT INTO `app_api_term` VALUES (696, 540, '2-5 Vue中的计算属性和侦听器', '', 186);
INSERT INTO `app_api_term` VALUES (697, 541, '2-6 v-if, v-show与v-for指令', '', 186);
INSERT INTO `app_api_term` VALUES (698, 410, '3-1 todolist功能开发', '', 187);
INSERT INTO `app_api_term` VALUES (699, 669, '3-2 todolist组件拆分', '', 187);
INSERT INTO `app_api_term` VALUES (700, 303, '3-3 组件与实例的关系', '', 187);
INSERT INTO `app_api_term` VALUES (701, 691, '3-4 实现todolist的删除功能', '', 187);
INSERT INTO `app_api_term` VALUES (702, 999, '4-1 vue-cli的简介与使用', '', 188);
INSERT INTO `app_api_term` VALUES (703, 1044, '4-2 使用vue-cli开发TodoList', '', 188);
INSERT INTO `app_api_term` VALUES (704, 258, '4-3 全局样式与局部样式', '', 188);
INSERT INTO `app_api_term` VALUES (705, 244, '4-4 课程总结', '', 188);
INSERT INTO `app_api_term` VALUES (706, 145, '1-1 课程介绍', '', 189);
INSERT INTO `app_api_term` VALUES (707, 558, '2-1 创建第一个Vue实例', '', 190);
INSERT INTO `app_api_term` VALUES (708, 264, '2-2 挂载点,模版与实例', '', 190);
INSERT INTO `app_api_term` VALUES (709, 746, '2-3 Vue实例中的数据,事件和方法', '', 190);
INSERT INTO `app_api_term` VALUES (710, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 190);
INSERT INTO `app_api_term` VALUES (711, 540, '2-5 Vue中的计算属性和侦听器', '', 190);
INSERT INTO `app_api_term` VALUES (712, 541, '2-6 v-if, v-show与v-for指令', '', 190);
INSERT INTO `app_api_term` VALUES (713, 410, '3-1 todolist功能开发', '', 191);
INSERT INTO `app_api_term` VALUES (714, 669, '3-2 todolist组件拆分', '', 191);
INSERT INTO `app_api_term` VALUES (715, 303, '3-3 组件与实例的关系', '', 191);
INSERT INTO `app_api_term` VALUES (716, 691, '3-4 实现todolist的删除功能', '', 191);
INSERT INTO `app_api_term` VALUES (717, 999, '4-1 vue-cli的简介与使用', '', 192);
INSERT INTO `app_api_term` VALUES (718, 1044, '4-2 使用vue-cli开发TodoList', '', 192);
INSERT INTO `app_api_term` VALUES (719, 258, '4-3 全局样式与局部样式', '', 192);
INSERT INTO `app_api_term` VALUES (720, 244, '4-4 课程总结', '', 192);
INSERT INTO `app_api_term` VALUES (721, 145, '1-1 课程介绍', '', 193);
INSERT INTO `app_api_term` VALUES (722, 558, '2-1 创建第一个Vue实例', '', 194);
INSERT INTO `app_api_term` VALUES (723, 264, '2-2 挂载点,模版与实例', '', 194);
INSERT INTO `app_api_term` VALUES (724, 746, '2-3 Vue实例中的数据,事件和方法', '', 194);
INSERT INTO `app_api_term` VALUES (725, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 194);
INSERT INTO `app_api_term` VALUES (726, 540, '2-5 Vue中的计算属性和侦听器', '', 194);
INSERT INTO `app_api_term` VALUES (727, 541, '2-6 v-if, v-show与v-for指令', '', 194);
INSERT INTO `app_api_term` VALUES (728, 410, '3-1 todolist功能开发', '', 195);
INSERT INTO `app_api_term` VALUES (729, 669, '3-2 todolist组件拆分', '', 195);
INSERT INTO `app_api_term` VALUES (730, 303, '3-3 组件与实例的关系', '', 195);
INSERT INTO `app_api_term` VALUES (731, 691, '3-4 实现todolist的删除功能', '', 195);
INSERT INTO `app_api_term` VALUES (732, 999, '4-1 vue-cli的简介与使用', '', 196);
INSERT INTO `app_api_term` VALUES (733, 1044, '4-2 使用vue-cli开发TodoList', '', 196);
INSERT INTO `app_api_term` VALUES (734, 258, '4-3 全局样式与局部样式', '', 196);
INSERT INTO `app_api_term` VALUES (735, 244, '4-4 课程总结', '', 196);
INSERT INTO `app_api_term` VALUES (736, 145, '1-1 课程介绍', '', 197);
INSERT INTO `app_api_term` VALUES (737, 558, '2-1 创建第一个Vue实例', '', 198);
INSERT INTO `app_api_term` VALUES (738, 264, '2-2 挂载点,模版与实例', '', 198);
INSERT INTO `app_api_term` VALUES (739, 746, '2-3 Vue实例中的数据,事件和方法', '', 198);
INSERT INTO `app_api_term` VALUES (740, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 198);
INSERT INTO `app_api_term` VALUES (741, 540, '2-5 Vue中的计算属性和侦听器', '', 198);
INSERT INTO `app_api_term` VALUES (742, 541, '2-6 v-if, v-show与v-for指令', '', 198);
INSERT INTO `app_api_term` VALUES (743, 410, '3-1 todolist功能开发', '', 199);
INSERT INTO `app_api_term` VALUES (744, 669, '3-2 todolist组件拆分', '', 199);
INSERT INTO `app_api_term` VALUES (745, 303, '3-3 组件与实例的关系', '', 199);
INSERT INTO `app_api_term` VALUES (746, 691, '3-4 实现todolist的删除功能', '', 199);
INSERT INTO `app_api_term` VALUES (747, 999, '4-1 vue-cli的简介与使用', '', 200);
INSERT INTO `app_api_term` VALUES (748, 1044, '4-2 使用vue-cli开发TodoList', '', 200);
INSERT INTO `app_api_term` VALUES (749, 258, '4-3 全局样式与局部样式', '', 200);
INSERT INTO `app_api_term` VALUES (750, 244, '4-4 课程总结', '', 200);
INSERT INTO `app_api_term` VALUES (751, 145, '1-1 课程介绍', '', 201);
INSERT INTO `app_api_term` VALUES (752, 558, '2-1 创建第一个Vue实例', '', 202);
INSERT INTO `app_api_term` VALUES (753, 264, '2-2 挂载点,模版与实例', '', 202);
INSERT INTO `app_api_term` VALUES (754, 746, '2-3 Vue实例中的数据,事件和方法', '', 202);
INSERT INTO `app_api_term` VALUES (755, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 202);
INSERT INTO `app_api_term` VALUES (756, 540, '2-5 Vue中的计算属性和侦听器', '', 202);
INSERT INTO `app_api_term` VALUES (757, 541, '2-6 v-if, v-show与v-for指令', '', 202);
INSERT INTO `app_api_term` VALUES (758, 410, '3-1 todolist功能开发', '', 203);
INSERT INTO `app_api_term` VALUES (759, 669, '3-2 todolist组件拆分', '', 203);
INSERT INTO `app_api_term` VALUES (760, 303, '3-3 组件与实例的关系', '', 203);
INSERT INTO `app_api_term` VALUES (761, 691, '3-4 实现todolist的删除功能', '', 203);
INSERT INTO `app_api_term` VALUES (762, 999, '4-1 vue-cli的简介与使用', '', 204);
INSERT INTO `app_api_term` VALUES (763, 1044, '4-2 使用vue-cli开发TodoList', '', 204);
INSERT INTO `app_api_term` VALUES (764, 258, '4-3 全局样式与局部样式', '', 204);
INSERT INTO `app_api_term` VALUES (765, 244, '4-4 课程总结', '', 204);
INSERT INTO `app_api_term` VALUES (766, 145, '1-1 课程介绍', '', 205);
INSERT INTO `app_api_term` VALUES (767, 558, '2-1 创建第一个Vue实例', '', 206);
INSERT INTO `app_api_term` VALUES (768, 264, '2-2 挂载点,模版与实例', '', 206);
INSERT INTO `app_api_term` VALUES (769, 746, '2-3 Vue实例中的数据,事件和方法', '', 206);
INSERT INTO `app_api_term` VALUES (770, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 206);
INSERT INTO `app_api_term` VALUES (771, 540, '2-5 Vue中的计算属性和侦听器', '', 206);
INSERT INTO `app_api_term` VALUES (772, 541, '2-6 v-if, v-show与v-for指令', '', 206);
INSERT INTO `app_api_term` VALUES (773, 410, '3-1 todolist功能开发', '', 207);
INSERT INTO `app_api_term` VALUES (774, 669, '3-2 todolist组件拆分', '', 207);
INSERT INTO `app_api_term` VALUES (775, 303, '3-3 组件与实例的关系', '', 207);
INSERT INTO `app_api_term` VALUES (776, 691, '3-4 实现todolist的删除功能', '', 207);
INSERT INTO `app_api_term` VALUES (777, 999, '4-1 vue-cli的简介与使用', '', 208);
INSERT INTO `app_api_term` VALUES (778, 1044, '4-2 使用vue-cli开发TodoList', '', 208);
INSERT INTO `app_api_term` VALUES (779, 258, '4-3 全局样式与局部样式', '', 208);
INSERT INTO `app_api_term` VALUES (780, 244, '4-4 课程总结', '', 208);
INSERT INTO `app_api_term` VALUES (781, 145, '1-1 课程介绍', '', 209);
INSERT INTO `app_api_term` VALUES (782, 558, '2-1 创建第一个Vue实例', '', 210);
INSERT INTO `app_api_term` VALUES (783, 264, '2-2 挂载点,模版与实例', '', 210);
INSERT INTO `app_api_term` VALUES (784, 746, '2-3 Vue实例中的数据,事件和方法', '', 210);
INSERT INTO `app_api_term` VALUES (785, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 210);
INSERT INTO `app_api_term` VALUES (786, 540, '2-5 Vue中的计算属性和侦听器', '', 210);
INSERT INTO `app_api_term` VALUES (787, 541, '2-6 v-if, v-show与v-for指令', '', 210);
INSERT INTO `app_api_term` VALUES (788, 410, '3-1 todolist功能开发', '', 211);
INSERT INTO `app_api_term` VALUES (789, 669, '3-2 todolist组件拆分', '', 211);
INSERT INTO `app_api_term` VALUES (790, 303, '3-3 组件与实例的关系', '', 211);
INSERT INTO `app_api_term` VALUES (791, 691, '3-4 实现todolist的删除功能', '', 211);
INSERT INTO `app_api_term` VALUES (792, 999, '4-1 vue-cli的简介与使用', '', 212);
INSERT INTO `app_api_term` VALUES (793, 1044, '4-2 使用vue-cli开发TodoList', '', 212);
INSERT INTO `app_api_term` VALUES (794, 258, '4-3 全局样式与局部样式', '', 212);
INSERT INTO `app_api_term` VALUES (795, 244, '4-4 课程总结', '', 212);
INSERT INTO `app_api_term` VALUES (796, 145, '1-1 课程介绍', '', 213);
INSERT INTO `app_api_term` VALUES (797, 558, '2-1 创建第一个Vue实例', '', 214);
INSERT INTO `app_api_term` VALUES (798, 264, '2-2 挂载点,模版与实例', '', 214);
INSERT INTO `app_api_term` VALUES (799, 746, '2-3 Vue实例中的数据,事件和方法', '', 214);
INSERT INTO `app_api_term` VALUES (800, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 214);
INSERT INTO `app_api_term` VALUES (801, 540, '2-5 Vue中的计算属性和侦听器', '', 214);
INSERT INTO `app_api_term` VALUES (802, 541, '2-6 v-if, v-show与v-for指令', '', 214);
INSERT INTO `app_api_term` VALUES (803, 410, '3-1 todolist功能开发', '', 215);
INSERT INTO `app_api_term` VALUES (804, 669, '3-2 todolist组件拆分', '', 215);
INSERT INTO `app_api_term` VALUES (805, 303, '3-3 组件与实例的关系', '', 215);
INSERT INTO `app_api_term` VALUES (806, 691, '3-4 实现todolist的删除功能', '', 215);
INSERT INTO `app_api_term` VALUES (807, 999, '4-1 vue-cli的简介与使用', '', 216);
INSERT INTO `app_api_term` VALUES (808, 1044, '4-2 使用vue-cli开发TodoList', '', 216);
INSERT INTO `app_api_term` VALUES (809, 258, '4-3 全局样式与局部样式', '', 216);
INSERT INTO `app_api_term` VALUES (810, 244, '4-4 课程总结', '', 216);
INSERT INTO `app_api_term` VALUES (811, 145, '1-1 课程介绍', '', 217);
INSERT INTO `app_api_term` VALUES (812, 558, '2-1 创建第一个Vue实例', '', 218);
INSERT INTO `app_api_term` VALUES (813, 264, '2-2 挂载点,模版与实例', '', 218);
INSERT INTO `app_api_term` VALUES (814, 746, '2-3 Vue实例中的数据,事件和方法', '', 218);
INSERT INTO `app_api_term` VALUES (815, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 218);
INSERT INTO `app_api_term` VALUES (816, 540, '2-5 Vue中的计算属性和侦听器', '', 218);
INSERT INTO `app_api_term` VALUES (817, 541, '2-6 v-if, v-show与v-for指令', '', 218);
INSERT INTO `app_api_term` VALUES (818, 410, '3-1 todolist功能开发', '', 219);
INSERT INTO `app_api_term` VALUES (819, 669, '3-2 todolist组件拆分', '', 219);
INSERT INTO `app_api_term` VALUES (820, 303, '3-3 组件与实例的关系', '', 219);
INSERT INTO `app_api_term` VALUES (821, 691, '3-4 实现todolist的删除功能', '', 219);
INSERT INTO `app_api_term` VALUES (822, 999, '4-1 vue-cli的简介与使用', '', 220);
INSERT INTO `app_api_term` VALUES (823, 1044, '4-2 使用vue-cli开发TodoList', '', 220);
INSERT INTO `app_api_term` VALUES (824, 258, '4-3 全局样式与局部样式', '', 220);
INSERT INTO `app_api_term` VALUES (825, 244, '4-4 课程总结', '', 220);
INSERT INTO `app_api_term` VALUES (826, 145, '1-1 课程介绍', '', 221);
INSERT INTO `app_api_term` VALUES (827, 558, '2-1 创建第一个Vue实例', '', 222);
INSERT INTO `app_api_term` VALUES (828, 264, '2-2 挂载点,模版与实例', '', 222);
INSERT INTO `app_api_term` VALUES (829, 746, '2-3 Vue实例中的数据,事件和方法', '', 222);
INSERT INTO `app_api_term` VALUES (830, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 222);
INSERT INTO `app_api_term` VALUES (831, 540, '2-5 Vue中的计算属性和侦听器', '', 222);
INSERT INTO `app_api_term` VALUES (832, 541, '2-6 v-if, v-show与v-for指令', '', 222);
INSERT INTO `app_api_term` VALUES (833, 410, '3-1 todolist功能开发', '', 223);
INSERT INTO `app_api_term` VALUES (834, 669, '3-2 todolist组件拆分', '', 223);
INSERT INTO `app_api_term` VALUES (835, 303, '3-3 组件与实例的关系', '', 223);
INSERT INTO `app_api_term` VALUES (836, 691, '3-4 实现todolist的删除功能', '', 223);
INSERT INTO `app_api_term` VALUES (837, 999, '4-1 vue-cli的简介与使用', '', 224);
INSERT INTO `app_api_term` VALUES (838, 1044, '4-2 使用vue-cli开发TodoList', '', 224);
INSERT INTO `app_api_term` VALUES (839, 258, '4-3 全局样式与局部样式', '', 224);
INSERT INTO `app_api_term` VALUES (840, 244, '4-4 课程总结', '', 224);
INSERT INTO `app_api_term` VALUES (841, 145, '1-1 课程介绍', '', 225);
INSERT INTO `app_api_term` VALUES (842, 558, '2-1 创建第一个Vue实例', '', 226);
INSERT INTO `app_api_term` VALUES (843, 264, '2-2 挂载点,模版与实例', '', 226);
INSERT INTO `app_api_term` VALUES (844, 746, '2-3 Vue实例中的数据,事件和方法', '', 226);
INSERT INTO `app_api_term` VALUES (845, 518, '2-4 Vue中的属性绑定和双向数据绑定', '', 226);
INSERT INTO `app_api_term` VALUES (846, 540, '2-5 Vue中的计算属性和侦听器', '', 226);
INSERT INTO `app_api_term` VALUES (847, 541, '2-6 v-if, v-show与v-for指令', '', 226);
INSERT INTO `app_api_term` VALUES (848, 410, '3-1 todolist功能开发', '', 227);
INSERT INTO `app_api_term` VALUES (849, 669, '3-2 todolist组件拆分', '', 227);
INSERT INTO `app_api_term` VALUES (850, 303, '3-3 组件与实例的关系', '', 227);
INSERT INTO `app_api_term` VALUES (851, 691, '3-4 实现todolist的删除功能', '', 227);
INSERT INTO `app_api_term` VALUES (852, 999, '4-1 vue-cli的简介与使用', '', 228);
INSERT INTO `app_api_term` VALUES (853, 1044, '4-2 使用vue-cli开发TodoList', '', 228);
INSERT INTO `app_api_term` VALUES (854, 258, '4-3 全局样式与局部样式', '', 228);
INSERT INTO `app_api_term` VALUES (855, 244, '4-4 课程总结', '', 228);
COMMIT;
-- ----------------------------
-- Table structure for app_api_user
-- ----------------------------
DROP TABLE IF EXISTS `app_api_user`;
CREATE TABLE `app_api_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`first_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,
`last_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`username` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`nickname` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`avatar` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`sex` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`job` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`city` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`signature` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`hour` int(11) NOT NULL,
`exp` int(11) NOT NULL,
`integral` int(11) NOT NULL,
`follow` int(11) NOT NULL,
`fans` int(11) NOT NULL,
`email` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`qq` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`wechat` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`weibo` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`create_time` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_user
-- ----------------------------
BEGIN;
INSERT INTO `app_api_user` VALUES (2, '2020-10-07 20:21:18.292240', 0, '', '', 0, 1, '2020-10-07 01:42:49.143508', 'mtianyan', 'pbkdf2_sha256$216000$LukuhZQAgMio$Q9xnmFxBYrrfYljf99qCnQ7RfBxJFMWQRSC2S3Iy0yU=', '天涯明月笙', 'https://img3.sycdn.imooc.com/5a5d1f3a0001cab806380638-140-140.jpg', 'male', 'Python工程师', '四川省成都市', 'funpython(qq付费群): 211599322', 887, 28439, 6, 27, 2721, '1147727180@qq.com', '1147727180', '173xxxx1458', 'wechat', 'weibo', '2020-10-07 01:42:49.143884');
INSERT INTO `app_api_user` VALUES (3, NULL, 0, '', '', 0, 1, '2020-10-07 19:46:20.552910', '1147727180@qq.com', 'pbkdf2_sha256$216000$GXkUjq64Q0rK$39lbd6XvJ0dkoYSP0v6Og/0ti6v6o/o1vQgTMGw9J+M=', '', 'https://img3.sycdn.imooc.com/5a5d1f3a0001cab806380638-140-140.jpg', 'male', '', '', '', 0, 0, 0, 0, 0, '', '', '', '', '', '2020-10-07 19:46:20.566677');
INSERT INTO `app_api_user` VALUES (4, '2020-10-07 21:21:16.997426', 0, '', '', 0, 1, '2020-10-07 20:20:57.752511', '447742468@qq.com', 'pbkdf2_sha256$216000$uhMtGSKc9r0i$VBhrqiM7JqxcMrYbvrrFRKO0irLfeH71TcWqDjS1E+w=', '1', 'https://img3.sycdn.imooc.com/5a5d1f3a0001cab806380638-140-140.jpg', 'male', '我', '我', '我', 0, 0, 0, 0, 0, '1147727180@qq.com', '1147727180', '1147727180', '1147727180', '', '2020-10-07 20:46:32.444410');
COMMIT;
-- ----------------------------
-- Table structure for app_api_user_groups
-- ----------------------------
DROP TABLE IF EXISTS `app_api_user_groups`;
CREATE TABLE `app_api_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_api_user_groups_user_id_group_id_52951211_uniq` (`user_id`,`group_id`),
KEY `app_api_user_groups_group_id_2284c97f_fk_auth_group_id` (`group_id`),
CONSTRAINT `app_api_user_groups_group_id_2284c97f_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `app_api_user_groups_user_id_7897c141_fk_app_api_user_id` FOREIGN KEY (`user_id`) REFERENCES `app_api_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_user_groups
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_user_user_permissions
-- ----------------------------
DROP TABLE IF EXISTS `app_api_user_user_permissions`;
CREATE TABLE `app_api_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `app_api_user_user_permis_user_id_permission_id_ae7de441_uniq` (`user_id`,`permission_id`),
KEY `app_api_user_user_pe_permission_id_2b1f98fa_fk_auth_perm` (`permission_id`),
CONSTRAINT `app_api_user_user_pe_permission_id_2b1f98fa_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `app_api_user_user_pe_user_id_c137b0fb_fk_app_api_u` FOREIGN KEY (`user_id`) REFERENCES `app_api_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_user_user_permissions
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for app_api_userlesson
-- ----------------------------
DROP TABLE IF EXISTS `app_api_userlesson`;
CREATE TABLE `app_api_userlesson` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`lessonid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`img` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`percent` int(11) NOT NULL,
`isFollow` tinyint(1) NOT NULL,
`exp` int(11) NOT NULL,
`hours` int(11) NOT NULL,
`notes` int(11) NOT NULL,
`codes` int(11) NOT NULL,
`questions` int(11) NOT NULL,
`lastChapter` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`type_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_userlesson_type_id_3cbce00c` (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_userlesson
-- ----------------------------
BEGIN;
INSERT INTO `app_api_userlesson` VALUES (1, '1', '145', 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 0, 0, 0, 0, 0, 0, 0, '', 145);
INSERT INTO `app_api_userlesson` VALUES (2, '1', '146', '前端要学的测试课 从Jest入门到 TDD/BDD双实战', 'https://img.mukewang.com/szimg/5d36a6000837a91d06000338-360-202.jpg', 0, 0, 0, 0, 0, 0, 0, '', 145);
INSERT INTO `app_api_userlesson` VALUES (3, '1', '145', 'TypeScript 系统入门到项目实战 趁早学习提高职场竞争力', 'https://img.mukewang.com/szimg/5e1d990f0885d97306000338-360-202.jpg', 0, 0, 0, 0, 0, 0, 0, '', 145);
INSERT INTO `app_api_userlesson` VALUES (4, '1', '146', '前端要学的测试课 从Jest入门到 TDD/BDD双实战', 'https://img.mukewang.com/szimg/5d36a6000837a91d06000338-360-202.jpg', 0, 0, 0, 0, 0, 0, 0, '', 145);
COMMIT;
-- ----------------------------
-- Table structure for app_api_usernotice
-- ----------------------------
DROP TABLE IF EXISTS `app_api_usernotice`;
CREATE TABLE `app_api_usernotice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userid` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`isRead` tinyint(1) NOT NULL,
`isDelete` tinyint(1) NOT NULL,
`messageid_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `app_api_usernotice_messageid_id_71262ff9` (`messageid_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of app_api_usernotice
-- ----------------------------
BEGIN;
INSERT INTO `app_api_usernotice` VALUES (1, '1', 1, 0, 49);
INSERT INTO `app_api_usernotice` VALUES (2, '1', 1, 0, 50);
INSERT INTO `app_api_usernotice` VALUES (3, '1', 1, 0, 51);
INSERT INTO `app_api_usernotice` VALUES (4, '1', 1, 0, 52);
INSERT INTO `app_api_usernotice` VALUES (5, '1', 1, 0, 53);
INSERT INTO `app_api_usernotice` VALUES (6, '1', 1, 0, 54);
INSERT INTO `app_api_usernotice` VALUES (7, '1', 1, 0, 55);
INSERT INTO `app_api_usernotice` VALUES (8, '1', 1, 0, 56);
INSERT INTO `app_api_usernotice` VALUES (9, '1', 1, 0, 57);
INSERT INTO `app_api_usernotice` VALUES (10, '1', 1, 0, 58);
INSERT INTO `app_api_usernotice` VALUES (11, '1', 1, 0, 59);
INSERT INTO `app_api_usernotice` VALUES (12, '1', 1, 0, 60);
INSERT INTO `app_api_usernotice` VALUES (13, '1', 1, 0, 61);
INSERT INTO `app_api_usernotice` VALUES (14, '1', 1, 0, 62);
INSERT INTO `app_api_usernotice` VALUES (15, '1', 1, 0, 63);
INSERT INTO `app_api_usernotice` VALUES (16, '1', 1, 0, 64);
INSERT INTO `app_api_usernotice` VALUES (17, '1', 1, 0, 65);
INSERT INTO `app_api_usernotice` VALUES (18, '1', 1, 0, 66);
INSERT INTO `app_api_usernotice` VALUES (19, '1', 1, 0, 67);
INSERT INTO `app_api_usernotice` VALUES (20, '1', 1, 0, 68);
INSERT INTO `app_api_usernotice` VALUES (21, '1', 1, 0, 69);
INSERT INTO `app_api_usernotice` VALUES (22, '1', 1, 0, 70);
INSERT INTO `app_api_usernotice` VALUES (23, '1', 1, 0, 71);
INSERT INTO `app_api_usernotice` VALUES (24, '1', 1, 0, 72);
COMMIT;
-- ----------------------------
-- Table structure for auth_group
-- ----------------------------
DROP TABLE IF EXISTS `auth_group`;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of auth_group
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for auth_group_permissions
-- ----------------------------
DROP TABLE IF EXISTS `auth_group_permissions`;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of auth_group_permissions
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for auth_permission
-- ----------------------------
DROP TABLE IF EXISTS `auth_permission`;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=489 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of auth_permission
-- ----------------------------
BEGIN;
INSERT INTO `auth_permission` VALUES (245, 'Can add permission', 62, 'add_permission');
INSERT INTO `auth_permission` VALUES (246, 'Can change permission', 62, 'change_permission');
INSERT INTO `auth_permission` VALUES (247, 'Can delete permission', 62, 'delete_permission');
INSERT INTO `auth_permission` VALUES (248, 'Can view permission', 62, 'view_permission');
INSERT INTO `auth_permission` VALUES (249, 'Can add group', 63, 'add_group');
INSERT INTO `auth_permission` VALUES (250, 'Can change group', 63, 'change_group');
INSERT INTO `auth_permission` VALUES (251, 'Can delete group', 63, 'delete_group');
INSERT INTO `auth_permission` VALUES (252, 'Can view group', 63, 'view_group');
INSERT INTO `auth_permission` VALUES (253, 'Can add content type', 64, 'add_contenttype');
INSERT INTO `auth_permission` VALUES (254, 'Can change content type', 64, 'change_contenttype');
INSERT INTO `auth_permission` VALUES (255, 'Can delete content type', 64, 'delete_contenttype');
INSERT INTO `auth_permission` VALUES (256, 'Can view content type', 64, 'view_contenttype');
INSERT INTO `auth_permission` VALUES (257, 'Can add session', 65, 'add_session');
INSERT INTO `auth_permission` VALUES (258, 'Can change session', 65, 'change_session');
INSERT INTO `auth_permission` VALUES (259, 'Can delete session', 65, 'delete_session');
INSERT INTO `auth_permission` VALUES (260, 'Can view session', 65, 'view_session');
INSERT INTO `auth_permission` VALUES (261, 'Can add TyAdmin邮箱验证码', 66, 'add_tyadminemailverifyrecord');
INSERT INTO `auth_permission` VALUES (262, 'Can change TyAdmin邮箱验证码', 66, 'change_tyadminemailverifyrecord');
INSERT INTO `auth_permission` VALUES (263, 'Can delete TyAdmin邮箱验证码', 66, 'delete_tyadminemailverifyrecord');
INSERT INTO `auth_permission` VALUES (264, 'Can view TyAdmin邮箱验证码', 66, 'view_tyadminemailverifyrecord');
INSERT INTO `auth_permission` VALUES (265, 'Can add 系统日志', 67, 'add_tyadminsyslog');
INSERT INTO `auth_permission` VALUES (266, 'Can change 系统日志', 67, 'change_tyadminsyslog');
INSERT INTO `auth_permission` VALUES (267, 'Can delete 系统日志', 67, 'delete_tyadminsyslog');
INSERT INTO `auth_permission` VALUES (268, 'Can view 系统日志', 67, 'view_tyadminsyslog');
INSERT INTO `auth_permission` VALUES (269, 'Can add 地址信息', 68, 'add_address');
INSERT INTO `auth_permission` VALUES (270, 'Can change 地址信息', 68, 'change_address');
INSERT INTO `auth_permission` VALUES (271, 'Can delete 地址信息', 68, 'delete_address');
INSERT INTO `auth_permission` VALUES (272, 'Can view 地址信息', 68, 'view_address');
INSERT INTO `auth_permission` VALUES (273, 'Can add 回答', 69, 'add_answer');
INSERT INTO `auth_permission` VALUES (274, 'Can change 回答', 69, 'change_answer');
INSERT INTO `auth_permission` VALUES (275, 'Can delete 回答', 69, 'delete_answer');
INSERT INTO `auth_permission` VALUES (276, 'Can view 回答', 69, 'view_answer');
INSERT INTO `auth_permission` VALUES (277, 'Can add 文章类型', 70, 'add_articletype');
INSERT INTO `auth_permission` VALUES (278, 'Can change 文章类型', 70, 'change_articletype');
INSERT INTO `auth_permission` VALUES (279, 'Can delete 文章类型', 70, 'delete_articletype');
INSERT INTO `auth_permission` VALUES (280, 'Can view 文章类型', 70, 'view_articletype');
INSERT INTO `auth_permission` VALUES (281, 'Can add 购物车', 71, 'add_cart');
INSERT INTO `auth_permission` VALUES (282, 'Can change 购物车', 71, 'change_cart');
INSERT INTO `auth_permission` VALUES (283, 'Can delete 购物车', 71, 'delete_cart');
INSERT INTO `auth_permission` VALUES (284, 'Can view 购物车', 71, 'view_cart');
INSERT INTO `auth_permission` VALUES (285, 'Can add 课程目录信息', 72, 'add_catalog');
INSERT INTO `auth_permission` VALUES (286, 'Can change 课程目录信息', 72, 'change_catalog');
INSERT INTO `auth_permission` VALUES (287, 'Can delete 课程目录信息', 72, 'delete_catalog');
INSERT INTO `auth_permission` VALUES (288, 'Can view 课程目录信息', 72, 'view_catalog');
INSERT INTO `auth_permission` VALUES (289, 'Can add 章节', 73, 'add_chapter');
INSERT INTO `auth_permission` VALUES (290, 'Can change 章节', 73, 'change_chapter');
INSERT INTO `auth_permission` VALUES (291, 'Can delete 章节', 73, 'delete_chapter');
INSERT INTO `auth_permission` VALUES (292, 'Can view 章节', 73, 'view_chapter');
INSERT INTO `auth_permission` VALUES (293, 'Can add 评论', 74, 'add_comment');
INSERT INTO `auth_permission` VALUES (294, 'Can change 评论', 74, 'change_comment');
INSERT INTO `auth_permission` VALUES (295, 'Can delete 评论', 74, 'delete_comment');
INSERT INTO `auth_permission` VALUES (296, 'Can view 评论', 74, 'view_comment');
INSERT INTO `auth_permission` VALUES (297, 'Can add 公共头部脚部配置', 75, 'add_commonpathconfig');
INSERT INTO `auth_permission` VALUES (298, 'Can change 公共头部脚部配置', 75, 'change_commonpathconfig');
INSERT INTO `auth_permission` VALUES (299, 'Can delete 公共头部脚部配置', 75, 'delete_commonpathconfig');
INSERT INTO `auth_permission` VALUES (300, 'Can view 公共头部脚部配置', 75, 'view_commonpathconfig');
INSERT INTO `auth_permission` VALUES (301, 'Can add 用户咨询', 76, 'add_consult');
INSERT INTO `auth_permission` VALUES (302, 'Can change 用户咨询', 76, 'change_consult');
INSERT INTO `auth_permission` VALUES (303, 'Can delete 用户咨询', 76, 'delete_consult');
INSERT INTO `auth_permission` VALUES (304, 'Can view 用户咨询', 76, 'view_consult');
INSERT INTO `auth_permission` VALUES (305, 'Can add 充值方式', 77, 'add_couponrange');
INSERT INTO `auth_permission` VALUES (306, 'Can change 充值方式', 77, 'change_couponrange');
INSERT INTO `auth_permission` VALUES (307, 'Can delete 充值方式', 77, 'delete_couponrange');
INSERT INTO `auth_permission` VALUES (308, 'Can view 充值方式', 77, 'view_couponrange');
INSERT INTO `auth_permission` VALUES (309, 'Can add 充值方式', 78, 'add_couponstatus');
INSERT INTO `auth_permission` VALUES (310, 'Can change 充值方式', 78, 'change_couponstatus');
INSERT INTO `auth_permission` VALUES (311, 'Can delete 充值方式', 78, 'delete_couponstatus');
INSERT INTO `auth_permission` VALUES (312, 'Can view 充值方式', 78, 'view_couponstatus');
INSERT INTO `auth_permission` VALUES (313, 'Can add 邮箱验证码', 79, 'add_emailverifyrecord');
INSERT INTO `auth_permission` VALUES (314, 'Can change 邮箱验证码', 79, 'change_emailverifyrecord');
INSERT INTO `auth_permission` VALUES (315, 'Can delete 邮箱验证码', 79, 'delete_emailverifyrecord');
INSERT INTO `auth_permission` VALUES (316, 'Can view 邮箱验证码', 79, 'view_emailverifyrecord');
INSERT INTO `auth_permission` VALUES (317, 'Can add 底部配置', 80, 'add_footer');
INSERT INTO `auth_permission` VALUES (318, 'Can change 底部配置', 80, 'change_footer');
INSERT INTO `auth_permission` VALUES (319, 'Can delete 底部配置', 80, 'delete_footer');
INSERT INTO `auth_permission` VALUES (320, 'Can view 底部配置', 80, 'view_footer');
INSERT INTO `auth_permission` VALUES (321, 'Can add 搜索历史', 81, 'add_history');
INSERT INTO `auth_permission` VALUES (322, 'Can change 搜索历史', 81, 'change_history');
INSERT INTO `auth_permission` VALUES (323, 'Can delete 搜索历史', 81, 'delete_history');
INSERT INTO `auth_permission` VALUES (324, 'Can view 搜索历史', 81, 'view_history');
INSERT INTO `auth_permission` VALUES (325, 'Can add 热搜', 82, 'add_hot');
INSERT INTO `auth_permission` VALUES (326, 'Can change 热搜', 82, 'change_hot');
INSERT INTO `auth_permission` VALUES (327, 'Can delete 热搜', 82, 'delete_hot');
INSERT INTO `auth_permission` VALUES (328, 'Can view 热搜', 82, 'view_hot');
INSERT INTO `auth_permission` VALUES (329, 'Can add 积分商品类别', 83, 'add_integraltype');
INSERT INTO `auth_permission` VALUES (330, 'Can change 积分商品类别', 83, 'change_integraltype');
INSERT INTO `auth_permission` VALUES (331, 'Can delete 积分商品类别', 83, 'delete_integraltype');
INSERT INTO `auth_permission` VALUES (332, 'Can view 积分商品类别', 83, 'view_integraltype');
INSERT INTO `auth_permission` VALUES (333, 'Can add Label小项', 84, 'add_label');
INSERT INTO `auth_permission` VALUES (334, 'Can change Label小项', 84, 'change_label');
INSERT INTO `auth_permission` VALUES (335, 'Can delete Label小项', 84, 'delete_label');
INSERT INTO `auth_permission` VALUES (336, 'Can view Label小项', 84, 'view_label');
INSERT INTO `auth_permission` VALUES (337, 'Can add Label类型', 85, 'add_labeltype');
INSERT INTO `auth_permission` VALUES (338, 'Can change Label类型', 85, 'change_labeltype');
INSERT INTO `auth_permission` VALUES (339, 'Can delete Label类型', 85, 'delete_labeltype');
INSERT INTO `auth_permission` VALUES (340, 'Can view Label类型', 85, 'view_labeltype');
INSERT INTO `auth_permission` VALUES (341, 'Can add 课程难度类型', 86, 'add_lessonhardtype');
INSERT INTO `auth_permission` VALUES (342, 'Can change 课程难度类型', 86, 'change_lessonhardtype');
INSERT INTO `auth_permission` VALUES (343, 'Can delete 课程难度类型', 86, 'delete_lessonhardtype');
INSERT INTO `auth_permission` VALUES (344, 'Can view 课程难度类型', 86, 'view_lessonhardtype');
INSERT INTO `auth_permission` VALUES (345, 'Can add 课程角标类型', 87, 'add_lessonscript');
INSERT INTO `auth_permission` VALUES (346, 'Can change 课程角标类型', 87, 'change_lessonscript');
INSERT INTO `auth_permission` VALUES (347, 'Can delete 课程角标类型', 87, 'delete_lessonscript');
INSERT INTO `auth_permission` VALUES (348, 'Can view 课程角标类型', 87, 'view_lessonscript');
INSERT INTO `auth_permission` VALUES (349, 'Can add 课程类型', 88, 'add_lessontype');
INSERT INTO `auth_permission` VALUES (350, 'Can change 课程类型', 88, 'change_lessontype');
INSERT INTO `auth_permission` VALUES (351, 'Can delete 课程类型', 88, 'delete_lessontype');
INSERT INTO `auth_permission` VALUES (352, 'Can view 课程类型', 88, 'view_lessontype');
INSERT INTO `auth_permission` VALUES (353, 'Can add 登录类型', 89, 'add_logtype');
INSERT INTO `auth_permission` VALUES (354, 'Can change 登录类型', 89, 'change_logtype');
INSERT INTO `auth_permission` VALUES (355, 'Can delete 登录类型', 89, 'delete_logtype');
INSERT INTO `auth_permission` VALUES (356, 'Can view 登录类型', 89, 'view_logtype');
INSERT INTO `auth_permission` VALUES (357, 'Can add 首页左侧菜单', 90, 'add_nav');
INSERT INTO `auth_permission` VALUES (358, 'Can change 首页左侧菜单', 90, 'change_nav');
INSERT INTO `auth_permission` VALUES (359, 'Can delete 首页左侧菜单', 90, 'delete_nav');
INSERT INTO `auth_permission` VALUES (360, 'Can view 首页左侧菜单', 90, 'view_nav');
INSERT INTO `auth_permission` VALUES (361, 'Can add 首页左侧菜单', 91, 'add_navigation');
INSERT INTO `auth_permission` VALUES (362, 'Can change 首页左侧菜单', 91, 'change_navigation');
INSERT INTO `auth_permission` VALUES (363, 'Can delete 首页左侧菜单', 91, 'delete_navigation');
INSERT INTO `auth_permission` VALUES (364, 'Can view 首页左侧菜单', 91, 'view_navigation');
INSERT INTO `auth_permission` VALUES (365, 'Can add 通知', 92, 'add_notice');
INSERT INTO `auth_permission` VALUES (366, 'Can change 通知', 92, 'change_notice');
INSERT INTO `auth_permission` VALUES (367, 'Can delete 通知', 92, 'delete_notice');
INSERT INTO `auth_permission` VALUES (368, 'Can view 通知', 92, 'view_notice');
INSERT INTO `auth_permission` VALUES (369, 'Can add 订单', 93, 'add_order');
INSERT INTO `auth_permission` VALUES (370, 'Can change 订单', 93, 'change_order');
INSERT INTO `auth_permission` VALUES (371, 'Can delete 订单', 93, 'delete_order');
INSERT INTO `auth_permission` VALUES (372, 'Can view 订单', 93, 'view_order');
INSERT INTO `auth_permission` VALUES (373, 'Can add 订单状态', 94, 'add_orderstatus');
INSERT INTO `auth_permission` VALUES (374, 'Can change 订单状态', 94, 'change_orderstatus');
INSERT INTO `auth_permission` VALUES (375, 'Can delete 订单状态', 94, 'delete_orderstatus');
INSERT INTO `auth_permission` VALUES (376, 'Can view 订单状态', 94, 'view_orderstatus');
INSERT INTO `auth_permission` VALUES (377, 'Can add 文章类型', 95, 'add_qatype');
INSERT INTO `auth_permission` VALUES (378, 'Can change 文章类型', 95, 'change_qatype');
INSERT INTO `auth_permission` VALUES (379, 'Can delete 文章类型', 95, 'delete_qatype');
INSERT INTO `auth_permission` VALUES (380, 'Can view 文章类型', 95, 'view_qatype');
INSERT INTO `auth_permission` VALUES (381, 'Can add 专栏', 96, 'add_read');
INSERT INTO `auth_permission` VALUES (382, 'Can change 专栏', 96, 'change_read');
INSERT INTO `auth_permission` VALUES (383, 'Can delete 专栏', 96, 'delete_read');
INSERT INTO `auth_permission` VALUES (384, 'Can view 专栏', 96, 'view_read');
INSERT INTO `auth_permission` VALUES (385, 'Can add 专栏章节', 97, 'add_readchapter');
INSERT INTO `auth_permission` VALUES (386, 'Can change 专栏章节', 97, 'change_readchapter');
INSERT INTO `auth_permission` VALUES (387, 'Can delete 专栏章节', 97, 'delete_readchapter');
INSERT INTO `auth_permission` VALUES (388, 'Can view 专栏章节', 97, 'view_readchapter');
INSERT INTO `auth_permission` VALUES (389, 'Can add 专栏分类', 98, 'add_readtype');
INSERT INTO `auth_permission` VALUES (390, 'Can change 专栏分类', 98, 'change_readtype');
INSERT INTO `auth_permission` VALUES (391, 'Can delete 专栏分类', 98, 'delete_readtype');
INSERT INTO `auth_permission` VALUES (392, 'Can view 专栏分类', 98, 'view_readtype');
INSERT INTO `auth_permission` VALUES (393, 'Can add 充值类型', 99, 'add_rechargeaction');
INSERT INTO `auth_permission` VALUES (394, 'Can change 充值类型', 99, 'change_rechargeaction');
INSERT INTO `auth_permission` VALUES (395, 'Can delete 充值类型', 99, 'delete_rechargeaction');
INSERT INTO `auth_permission` VALUES (396, 'Can view 充值类型', 99, 'view_rechargeaction');
INSERT INTO `auth_permission` VALUES (397, 'Can add 充值方式', 100, 'add_rechargepay');
INSERT INTO `auth_permission` VALUES (398, 'Can change 充值方式', 100, 'change_rechargepay');
INSERT INTO `auth_permission` VALUES (399, 'Can delete 充值方式', 100, 'delete_rechargepay');
INSERT INTO `auth_permission` VALUES (400, 'Can view 充值方式', 100, 'view_rechargepay');
INSERT INTO `auth_permission` VALUES (401, 'Can add 首页Banner', 101, 'add_slider');
INSERT INTO `auth_permission` VALUES (402, 'Can change 首页Banner', 101, 'change_slider');
INSERT INTO `auth_permission` VALUES (403, 'Can delete 首页Banner', 101, 'delete_slider');
INSERT INTO `auth_permission` VALUES (404, 'Can view 首页Banner', 101, 'view_slider');
INSERT INTO `auth_permission` VALUES (405, 'Can add 学生类型', 102, 'add_studenttype');
INSERT INTO `auth_permission` VALUES (406, 'Can change 学生类型', 102, 'change_studenttype');
INSERT INTO `auth_permission` VALUES (407, 'Can delete 学生类型', 102, 'delete_studenttype');
INSERT INTO `auth_permission` VALUES (408, 'Can view 学生类型', 102, 'view_studenttype');
INSERT INTO `auth_permission` VALUES (409, 'Can add 系统日志', 103, 'add_syslog');
INSERT INTO `auth_permission` VALUES (410, 'Can change 系统日志', 103, 'change_syslog');
INSERT INTO `auth_permission` VALUES (411, 'Can delete 系统日志', 103, 'delete_syslog');
INSERT INTO `auth_permission` VALUES (412, 'Can view 系统日志', 103, 'view_syslog');
INSERT INTO `auth_permission` VALUES (413, 'Can add 讲师', 104, 'add_teacher');
INSERT INTO `auth_permission` VALUES (414, 'Can change 讲师', 104, 'change_teacher');
INSERT INTO `auth_permission` VALUES (415, 'Can delete 讲师', 104, 'delete_teacher');
INSERT INTO `auth_permission` VALUES (416, 'Can view 讲师', 104, 'view_teacher');
INSERT INTO `auth_permission` VALUES (417, 'Can add 用户通知', 105, 'add_usernotice');
INSERT INTO `auth_permission` VALUES (418, 'Can change 用户通知', 105, 'change_usernotice');
INSERT INTO `auth_permission` VALUES (419, 'Can delete 用户通知', 105, 'delete_usernotice');
INSERT INTO `auth_permission` VALUES (420, 'Can view 用户通知', 105, 'view_usernotice');
INSERT INTO `auth_permission` VALUES (421, 'Can add 用户学习的课程', 106, 'add_userlesson');
INSERT INTO `auth_permission` VALUES (422, 'Can change 用户学习的课程', 106, 'change_userlesson');
INSERT INTO `auth_permission` VALUES (423, 'Can delete 用户学习的课程', 106, 'delete_userlesson');
INSERT INTO `auth_permission` VALUES (424, 'Can view 用户学习的课程', 106, 'view_userlesson');
INSERT INTO `auth_permission` VALUES (425, 'Can add 小节', 107, 'add_term');
INSERT INTO `auth_permission` VALUES (426, 'Can change 小节', 107, 'change_term');
INSERT INTO `auth_permission` VALUES (427, 'Can delete 小节', 107, 'delete_term');
INSERT INTO `auth_permission` VALUES (428, 'Can view 小节', 107, 'view_term');
INSERT INTO `auth_permission` VALUES (429, 'Can add 学生', 108, 'add_student');
INSERT INTO `auth_permission` VALUES (430, 'Can change 学生', 108, 'change_student');
INSERT INTO `auth_permission` VALUES (431, 'Can delete 学生', 108, 'delete_student');
INSERT INTO `auth_permission` VALUES (432, 'Can view 学生', 108, 'view_student');
INSERT INTO `auth_permission` VALUES (433, 'Can add 充值记录', 109, 'add_recharge');
INSERT INTO `auth_permission` VALUES (434, 'Can change 充值记录', 109, 'change_recharge');
INSERT INTO `auth_permission` VALUES (435, 'Can delete 充值记录', 109, 'delete_recharge');
INSERT INTO `auth_permission` VALUES (436, 'Can view 充值记录', 109, 'view_recharge');
INSERT INTO `auth_permission` VALUES (437, 'Can add 专栏章节小节', 110, 'add_readchapteritem');
INSERT INTO `auth_permission` VALUES (438, 'Can change 专栏章节小节', 110, 'change_readchapteritem');
INSERT INTO `auth_permission` VALUES (439, 'Can delete 专栏章节小节', 110, 'delete_readchapteritem');
INSERT INTO `auth_permission` VALUES (440, 'Can view 专栏章节小节', 110, 'view_readchapteritem');
INSERT INTO `auth_permission` VALUES (441, 'Can add 问题', 111, 'add_question');
INSERT INTO `auth_permission` VALUES (442, 'Can change 问题', 111, 'change_question');
INSERT INTO `auth_permission` VALUES (443, 'Can delete 问题', 111, 'delete_question');
INSERT INTO `auth_permission` VALUES (444, 'Can view 问题', 111, 'view_question');
INSERT INTO `auth_permission` VALUES (445, 'Can add Qa', 112, 'add_qa');
INSERT INTO `auth_permission` VALUES (446, 'Can change Qa', 112, 'change_qa');
INSERT INTO `auth_permission` VALUES (447, 'Can delete Qa', 112, 'delete_qa');
INSERT INTO `auth_permission` VALUES (448, 'Can view Qa', 112, 'view_qa');
INSERT INTO `auth_permission` VALUES (449, 'Can add 订单小项', 113, 'add_orderitem');
INSERT INTO `auth_permission` VALUES (450, 'Can change 订单小项', 113, 'change_orderitem');
INSERT INTO `auth_permission` VALUES (451, 'Can delete 订单小项', 113, 'delete_orderitem');
INSERT INTO `auth_permission` VALUES (452, 'Can view 订单小项', 113, 'view_orderitem');
INSERT INTO `auth_permission` VALUES (453, 'Can add 访问日志', 114, 'add_log');
INSERT INTO `auth_permission` VALUES (454, 'Can change 访问日志', 114, 'change_log');
INSERT INTO `auth_permission` VALUES (455, 'Can delete 访问日志', 114, 'delete_log');
INSERT INTO `auth_permission` VALUES (456, 'Can view 访问日志', 114, 'view_log');
INSERT INTO `auth_permission` VALUES (457, 'Can add 课程', 115, 'add_lesson');
INSERT INTO `auth_permission` VALUES (458, 'Can change 课程', 115, 'change_lesson');
INSERT INTO `auth_permission` VALUES (459, 'Can delete 课程', 115, 'delete_lesson');
INSERT INTO `auth_permission` VALUES (460, 'Can view 课程', 115, 'view_lesson');
INSERT INTO `auth_permission` VALUES (461, 'Can add 关注Label', 116, 'add_labelfollow');
INSERT INTO `auth_permission` VALUES (462, 'Can change 关注Label', 116, 'change_labelfollow');
INSERT INTO `auth_permission` VALUES (463, 'Can delete 关注Label', 116, 'delete_labelfollow');
INSERT INTO `auth_permission` VALUES (464, 'Can view 关注Label', 116, 'view_labelfollow');
INSERT INTO `auth_permission` VALUES (465, 'Can add 积分商品', 117, 'add_integral');
INSERT INTO `auth_permission` VALUES (466, 'Can change 积分商品', 117, 'change_integral');
INSERT INTO `auth_permission` VALUES (467, 'Can delete 积分商品', 117, 'delete_integral');
INSERT INTO `auth_permission` VALUES (468, 'Can view 积分商品', 117, 'view_integral');
INSERT INTO `auth_permission` VALUES (469, 'Can add 优惠券', 118, 'add_coupon');
INSERT INTO `auth_permission` VALUES (470, 'Can change 优惠券', 118, 'change_coupon');
INSERT INTO `auth_permission` VALUES (471, 'Can delete 优惠券', 118, 'delete_coupon');
INSERT INTO `auth_permission` VALUES (472, 'Can view 优惠券', 118, 'view_coupon');
INSERT INTO `auth_permission` VALUES (473, 'Can add Bill', 119, 'add_bill');
INSERT INTO `auth_permission` VALUES (474, 'Can change Bill', 119, 'change_bill');
INSERT INTO `auth_permission` VALUES (475, 'Can delete Bill', 119, 'delete_bill');
INSERT INTO `auth_permission` VALUES (476, 'Can view Bill', 119, 'view_bill');
INSERT INTO `auth_permission` VALUES (477, 'Can add 文章', 120, 'add_article');
INSERT INTO `auth_permission` VALUES (478, 'Can change 文章', 120, 'change_article');
INSERT INTO `auth_permission` VALUES (479, 'Can delete 文章', 120, 'delete_article');
INSERT INTO `auth_permission` VALUES (480, 'Can view 文章', 120, 'view_article');
INSERT INTO `auth_permission` VALUES (481, 'Can add 用户', 121, 'add_user');
INSERT INTO `auth_permission` VALUES (482, 'Can change 用户', 121, 'change_user');
INSERT INTO `auth_permission` VALUES (483, 'Can delete 用户', 121, 'delete_user');
INSERT INTO `auth_permission` VALUES (484, 'Can view 用户', 121, 'view_user');
INSERT INTO `auth_permission` VALUES (485, 'Can add captcha store', 122, 'add_captchastore');
INSERT INTO `auth_permission` VALUES (486, 'Can change captcha store', 122, 'change_captchastore');
INSERT INTO `auth_permission` VALUES (487, 'Can delete captcha store', 122, 'delete_captchastore');
INSERT INTO `auth_permission` VALUES (488, 'Can view captcha store', 122, 'view_captchastore');
COMMIT;
-- ----------------------------
-- Table structure for captcha_captchastore
-- ----------------------------
DROP TABLE IF EXISTS `captcha_captchastore`;
CREATE TABLE `captcha_captchastore` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`challenge` varchar(32) COLLATE utf8mb4_general_ci NOT NULL,
`response` varchar(32) COLLATE utf8mb4_general_ci NOT NULL,
`hashkey` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
`expiration` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `hashkey` (`hashkey`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of captcha_captchastore
-- ----------------------------
BEGIN;
INSERT INTO `captcha_captchastore` VALUES (12, 'VQCO', 'vqco', 'aa739246f24728ee60cf710bf81c160a89ec22f9', '2020-10-07 01:48:16.067811');
INSERT INTO `captcha_captchastore` VALUES (13, 'QFNT', 'qfnt', 'a2b8e1ec176859fa4610168b2278133fc3378d5b', '2020-10-07 01:48:23.860539');
INSERT INTO `captcha_captchastore` VALUES (14, 'ZPOZ', 'zpoz', 'c1345e49c97e6810825eded5c13baddb73c37bc2', '2020-10-07 01:48:28.105083');
INSERT INTO `captcha_captchastore` VALUES (15, 'YIYN', 'yiyn', 'f9a33e4d0d419607e2bb8f6017d2b5ce949d54bc', '2020-10-07 01:48:30.351402');
INSERT INTO `captcha_captchastore` VALUES (18, 'YNAJ', 'ynaj', '9a508fc1d0dc05c1856b81183f78c2199b3c3eff', '2020-10-07 01:48:43.966125');
INSERT INTO `captcha_captchastore` VALUES (19, 'IQCM', 'iqcm', '53e6470ac57a6ba316bd376f662090f39079a6bb', '2020-10-07 18:29:21.061982');
INSERT INTO `captcha_captchastore` VALUES (20, 'CIKN', 'cikn', 'f321650d6df907d72446902638cee72533dc9707', '2020-10-07 18:29:28.079052');
INSERT INTO `captcha_captchastore` VALUES (22, 'HTZQ', 'htzq', '84ddb046b3dc482bb3e85dc62db4a956a9a077ef', '2020-10-07 18:29:35.586410');
COMMIT;
-- ----------------------------
-- Table structure for django_content_type
-- ----------------------------
DROP TABLE IF EXISTS `django_content_type`;
CREATE TABLE `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
`model` varchar(100) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of django_content_type
-- ----------------------------
BEGIN;
INSERT INTO `django_content_type` VALUES (68, 'app_api', 'address');
INSERT INTO `django_content_type` VALUES (69, 'app_api', 'answer');
INSERT INTO `django_content_type` VALUES (120, 'app_api', 'article');
INSERT INTO `django_content_type` VALUES (70, 'app_api', 'articletype');
INSERT INTO `django_content_type` VALUES (119, 'app_api', 'bill');
INSERT INTO `django_content_type` VALUES (71, 'app_api', 'cart');
INSERT INTO `django_content_type` VALUES (72, 'app_api', 'catalog');
INSERT INTO `django_content_type` VALUES (73, 'app_api', 'chapter');
INSERT INTO `django_content_type` VALUES (74, 'app_api', 'comment');
INSERT INTO `django_content_type` VALUES (75, 'app_api', 'commonpathconfig');
INSERT INTO `django_content_type` VALUES (76, 'app_api', 'consult');
INSERT INTO `django_content_type` VALUES (118, 'app_api', 'coupon');
INSERT INTO `django_content_type` VALUES (77, 'app_api', 'couponrange');
INSERT INTO `django_content_type` VALUES (78, 'app_api', 'couponstatus');
INSERT INTO `django_content_type` VALUES (79, 'app_api', 'emailverifyrecord');
INSERT INTO `django_content_type` VALUES (80, 'app_api', 'footer');
INSERT INTO `django_content_type` VALUES (81, 'app_api', 'history');
INSERT INTO `django_content_type` VALUES (82, 'app_api', 'hot');
INSERT INTO `django_content_type` VALUES (117, 'app_api', 'integral');
INSERT INTO `django_content_type` VALUES (83, 'app_api', 'integraltype');
INSERT INTO `django_content_type` VALUES (84, 'app_api', 'label');
INSERT INTO `django_content_type` VALUES (116, 'app_api', 'labelfollow');
INSERT INTO `django_content_type` VALUES (85, 'app_api', 'labeltype');
INSERT INTO `django_content_type` VALUES (115, 'app_api', 'lesson');
INSERT INTO `django_content_type` VALUES (86, 'app_api', 'lessonhardtype');
INSERT INTO `django_content_type` VALUES (87, 'app_api', 'lessonscript');
INSERT INTO `django_content_type` VALUES (88, 'app_api', 'lessontype');
INSERT INTO `django_content_type` VALUES (114, 'app_api', 'log');
INSERT INTO `django_content_type` VALUES (89, 'app_api', 'logtype');
INSERT INTO `django_content_type` VALUES (90, 'app_api', 'nav');
INSERT INTO `django_content_type` VALUES (91, 'app_api', 'navigation');
INSERT INTO `django_content_type` VALUES (92, 'app_api', 'notice');
INSERT INTO `django_content_type` VALUES (93, 'app_api', 'order');
INSERT INTO `django_content_type` VALUES (113, 'app_api', 'orderitem');
INSERT INTO `django_content_type` VALUES (94, 'app_api', 'orderstatus');
INSERT INTO `django_content_type` VALUES (112, 'app_api', 'qa');
INSERT INTO `django_content_type` VALUES (95, 'app_api', 'qatype');
INSERT INTO `django_content_type` VALUES (111, 'app_api', 'question');
INSERT INTO `django_content_type` VALUES (96, 'app_api', 'read');
INSERT INTO `django_content_type` VALUES (97, 'app_api', 'readchapter');
INSERT INTO `django_content_type` VALUES (110, 'app_api', 'readchapteritem');
INSERT INTO `django_content_type` VALUES (98, 'app_api', 'readtype');
INSERT INTO `django_content_type` VALUES (109, 'app_api', 'recharge');
INSERT INTO `django_content_type` VALUES (99, 'app_api', 'rechargeaction');
INSERT INTO `django_content_type` VALUES (100, 'app_api', 'rechargepay');
INSERT INTO `django_content_type` VALUES (101, 'app_api', 'slider');
INSERT INTO `django_content_type` VALUES (108, 'app_api', 'student');
INSERT INTO `django_content_type` VALUES (102, 'app_api', 'studenttype');
INSERT INTO `django_content_type` VALUES (103, 'app_api', 'syslog');
INSERT INTO `django_content_type` VALUES (104, 'app_api', 'teacher');
INSERT INTO `django_content_type` VALUES (107, 'app_api', 'term');
INSERT INTO `django_content_type` VALUES (121, 'app_api', 'user');
INSERT INTO `django_content_type` VALUES (106, 'app_api', 'userlesson');
INSERT INTO `django_content_type` VALUES (105, 'app_api', 'usernotice');
INSERT INTO `django_content_type` VALUES (63, 'auth', 'group');
INSERT INTO `django_content_type` VALUES (62, 'auth', 'permission');
INSERT INTO `django_content_type` VALUES (122, 'captcha', 'captchastore');
INSERT INTO `django_content_type` VALUES (64, 'contenttypes', 'contenttype');
INSERT INTO `django_content_type` VALUES (65, 'sessions', 'session');
INSERT INTO `django_content_type` VALUES (66, 'xadmin_api', 'tyadminemailverifyrecord');
INSERT INTO `django_content_type` VALUES (67, 'xadmin_api', 'tyadminsyslog');
COMMIT;
-- ----------------------------
-- Table structure for django_migrations
-- ----------------------------
DROP TABLE IF EXISTS `django_migrations`;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of django_migrations
-- ----------------------------
BEGIN;
INSERT INTO `django_migrations` VALUES (38, 'contenttypes', '0001_initial', '2020-10-07 20:18:25.836112');
INSERT INTO `django_migrations` VALUES (39, 'contenttypes', '0002_remove_content_type_name', '2020-10-07 20:18:25.837783');
INSERT INTO `django_migrations` VALUES (40, 'auth', '0001_initial', '2020-10-07 20:18:25.839274');
INSERT INTO `django_migrations` VALUES (41, 'auth', '0002_alter_permission_name_max_length', '2020-10-07 20:18:25.840864');
INSERT INTO `django_migrations` VALUES (42, 'auth', '0003_alter_user_email_max_length', '2020-10-07 20:18:25.842490');
INSERT INTO `django_migrations` VALUES (43, 'auth', '0004_alter_user_username_opts', '2020-10-07 20:18:25.844063');
INSERT INTO `django_migrations` VALUES (44, 'auth', '0005_alter_user_last_login_null', '2020-10-07 20:18:25.845677');
INSERT INTO `django_migrations` VALUES (45, 'auth', '0006_require_contenttypes_0002', '2020-10-07 20:18:25.847151');
INSERT INTO `django_migrations` VALUES (46, 'auth', '0007_alter_validators_add_error_messages', '2020-10-07 20:18:25.848864');
INSERT INTO `django_migrations` VALUES (47, 'auth', '0008_alter_user_username_max_length', '2020-10-07 20:18:25.850746');
INSERT INTO `django_migrations` VALUES (48, 'auth', '0009_alter_user_last_name_max_length', '2020-10-07 20:18:25.852028');
INSERT INTO `django_migrations` VALUES (49, 'auth', '0010_alter_group_name_max_length', '2020-10-07 20:18:25.853473');
INSERT INTO `django_migrations` VALUES (50, 'auth', '0011_update_proxy_permissions', '2020-10-07 20:18:25.855490');
INSERT INTO `django_migrations` VALUES (51, 'auth', '0012_alter_user_first_name_max_length', '2020-10-07 20:18:25.857107');
INSERT INTO `django_migrations` VALUES (52, 'app_api', '0001_initial', '2020-10-07 20:18:25.858500');
INSERT INTO `django_migrations` VALUES (53, 'app_api', '0002_auto_20201007_0140', '2020-10-07 20:18:25.859836');
INSERT INTO `django_migrations` VALUES (54, 'app_api', '0003_auto_20201007_2018', '2020-10-07 20:18:25.861118');
INSERT INTO `django_migrations` VALUES (55, 'captcha', '0001_initial', '2020-10-07 20:18:25.862356');
INSERT INTO `django_migrations` VALUES (56, 'sessions', '0001_initial', '2020-10-07 20:18:25.863766');
INSERT INTO `django_migrations` VALUES (57, 'xadmin_api', '0001_initial', '2020-10-07 20:18:25.865197');
INSERT INTO `django_migrations` VALUES (58, 'app_api', '0004_auto_20201007_2140', '2020-10-07 21:41:04.886189');
INSERT INTO `django_migrations` VALUES (59, 'app_api', '0005_consult_userid', '2020-10-07 22:07:19.333967');
COMMIT;
-- ----------------------------
-- Table structure for django_session
-- ----------------------------
DROP TABLE IF EXISTS `django_session`;
CREATE TABLE `django_session` (
`session_key` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
`session_data` longtext COLLATE utf8mb4_general_ci NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of django_session
-- ----------------------------
BEGIN;
INSERT INTO `django_session` VALUES ('7wtvcn77cdvbbtb7e6wn6wjq7jnrqa3k', '.eJxVjDsOwjAQBe_iGln-YS-U9JzBWu8uOIAcKU4qxN1JpBTQvpl5b5VxmWteukx5YHVWTh1-t4L0lLYBfmC7j5rGNk9D0Zuid9r1dWR5XXb376Bir2ttyViQZIAYkgnOpgKRE7GFAJGQ0QJH8Texp5V5OboAnr0rmIJ4oz5f0OA3cA:1kQ8Ra:_0shmut0Q0SzQCCSjhV8UZCN6QP-GX9ZvDRBE8Cl_5M', '2020-10-21 20:21:18.311866');
INSERT INTO `django_session` VALUES ('h10ugenouc8ysaeg3mj62eyibneel3kf', '.eJxVjDsOwjAQBe_iGln-YS-U9JzBWu8uOIAcKU4qxN1JpBTQvpl5b5VxmWteukx5YHVWTh1-t4L0lLYBfmC7j5rGNk9D0Zuid9r1dWR5XXb376Bir2ttyViQZIAYkgnOpgKRE7GFAJGQ0QJH8Texp5V5OboAnr0rmIJ4oz5f0OA3cA:1kPr04:NSwzO-GSkO0XoVWRnb30W4gen0Q6JR5ffzdK6vQu-4s', '2020-10-21 01:43:44.092839');
INSERT INTO `django_session` VALUES ('tu2uo1bj3wrdk9k2o3zts4c7u2m727jv', '.eJxVjDsOwjAQBe_iGln-b0xJnzNY3vWCA8iR4qRC3B0ipYD2zcx7iZS3taat85KmIs7CidPvhpke3HZQ7rndZklzW5cJ5a7Ig3Y5zoWfl8P9O6i51289OMik2IF1pDCYqE0A471HRPDRwuDclaJGFTmi0oYKkAoFNVtrcxDvD7zHNw4:1kQ8RZ:SYEH9ATPwgV884wvNEE_5zWE4CuyyB-Ywi7T9HTK7Uo', '2020-10-21 20:21:17.213229');
COMMIT;
-- ----------------------------
-- Table structure for xadmin_api_tyadminemailverifyrecord
-- ----------------------------
DROP TABLE IF EXISTS `xadmin_api_tyadminemailverifyrecord`;
CREATE TABLE `xadmin_api_tyadminemailverifyrecord` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
`email` varchar(50) COLLATE utf8mb4_general_ci NOT NULL,
`send_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL,
`send_time` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of xadmin_api_tyadminemailverifyrecord
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for xadmin_api_tyadminsyslog
-- ----------------------------
DROP TABLE IF EXISTS `xadmin_api_tyadminsyslog`;
CREATE TABLE `xadmin_api_tyadminsyslog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`ip_addr` varchar(39) COLLATE utf8mb4_general_ci DEFAULT NULL,
`action_flag` varchar(32) COLLATE utf8mb4_general_ci DEFAULT NULL,
`message` longtext COLLATE utf8mb4_general_ci NOT NULL,
`log_type` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
`user_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Records of xadmin_api_tyadminsyslog
-- ----------------------------
BEGIN;
INSERT INTO `xadmin_api_tyadminsyslog` VALUES (4, '2020-10-07 01:43:16.189855', '127.0.0.1', '登录', '登录成功', 'login', '');
INSERT INTO `xadmin_api_tyadminsyslog` VALUES (5, '2020-10-07 01:43:35.410381', '127.0.0.1', '登录', '登录成功', 'login', '');
INSERT INTO `xadmin_api_tyadminsyslog` VALUES (6, '2020-10-07 01:43:44.088352', '127.0.0.1', '登录', '登录成功', 'login', '');
INSERT INTO `xadmin_api_tyadminsyslog` VALUES (7, '2020-10-07 18:24:35.712628', '127.0.0.1', '登录', '登录成功', 'login', '');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1; | 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$enum; Type: SCHEMA; Schema: -; Owner: -
--
CREATE SCHEMA "schema-generator$enum";
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: A; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."A" (
id character varying(25) NOT NULL,
"fieldA" text,
"fieldB" text NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: AWithId; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."AWithId" (
id character varying(25) NOT NULL,
"fieldA" text,
"fieldB" text NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: AWithId_fieldC; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."AWithId_fieldC" (
"nodeId" character varying(25) NOT NULL,
"position" integer NOT NULL,
value text NOT NULL
);
--
-- Name: A_fieldC; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."A_fieldC" (
"nodeId" character varying(25) NOT NULL,
"position" integer NOT NULL,
value text NOT NULL
);
--
-- Name: B; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."B" (
id character varying(25) NOT NULL,
field text NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: C; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."C" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: C_field; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."C_field" (
"nodeId" character varying(25) NOT NULL,
"position" integer NOT NULL,
value integer NOT NULL
);
--
-- Name: D; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."D" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: D_field; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."D_field" (
"nodeId" character varying(25) NOT NULL,
"position" integer NOT NULL,
value timestamp(3) without time zone NOT NULL
);
--
-- Name: E; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."E" (
id character varying(25) NOT NULL,
field text,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: _AToB; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."_AToB" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _AToE; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."_AToE" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _AWithIdToC; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."_AWithIdToC" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _AWithIdToD; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."_AWithIdToD" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _RelayId; Type: TABLE; Schema: schema-generator$enum; Owner: -
--
CREATE TABLE "schema-generator$enum"."_RelayId" (
id character varying(36) NOT NULL,
"stableModelIdentifier" character varying(25) NOT NULL
);
--
-- Name: AWithId_fieldC AWithId_fieldC_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."AWithId_fieldC"
ADD CONSTRAINT "AWithId_fieldC_pkey" PRIMARY KEY ("nodeId", "position");
--
-- Name: AWithId AWithId_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."AWithId"
ADD CONSTRAINT "AWithId_pkey" PRIMARY KEY (id);
--
-- Name: A_fieldC A_fieldC_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."A_fieldC"
ADD CONSTRAINT "A_fieldC_pkey" PRIMARY KEY ("nodeId", "position");
--
-- Name: A A_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."A"
ADD CONSTRAINT "A_pkey" PRIMARY KEY (id);
--
-- Name: B B_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."B"
ADD CONSTRAINT "B_pkey" PRIMARY KEY (id);
--
-- Name: C_field C_field_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."C_field"
ADD CONSTRAINT "C_field_pkey" PRIMARY KEY ("nodeId", "position");
--
-- Name: C C_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."C"
ADD CONSTRAINT "C_pkey" PRIMARY KEY (id);
--
-- Name: D_field D_field_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."D_field"
ADD CONSTRAINT "D_field_pkey" PRIMARY KEY ("nodeId", "position");
--
-- Name: D D_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."D"
ADD CONSTRAINT "D_pkey" PRIMARY KEY (id);
--
-- Name: E E_pkey; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."E"
ADD CONSTRAINT "E_pkey" PRIMARY KEY (id);
--
-- Name: _RelayId pk_RelayId; Type: CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_RelayId"
ADD CONSTRAINT "pk_RelayId" PRIMARY KEY (id);
--
-- Name: _AToB_A; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AToB_A" ON "schema-generator$enum"."_AToB" USING btree ("A");
--
-- Name: _AToB_AB_unique; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE UNIQUE INDEX "_AToB_AB_unique" ON "schema-generator$enum"."_AToB" USING btree ("A", "B");
--
-- Name: _AToB_B; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AToB_B" ON "schema-generator$enum"."_AToB" USING btree ("B");
--
-- Name: _AToE_A; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AToE_A" ON "schema-generator$enum"."_AToE" USING btree ("A");
--
-- Name: _AToE_AB_unique; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE UNIQUE INDEX "_AToE_AB_unique" ON "schema-generator$enum"."_AToE" USING btree ("A", "B");
--
-- Name: _AToE_B; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AToE_B" ON "schema-generator$enum"."_AToE" USING btree ("B");
--
-- Name: _AWithIdToC_A; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AWithIdToC_A" ON "schema-generator$enum"."_AWithIdToC" USING btree ("A");
--
-- Name: _AWithIdToC_AB_unique; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE UNIQUE INDEX "_AWithIdToC_AB_unique" ON "schema-generator$enum"."_AWithIdToC" USING btree ("A", "B");
--
-- Name: _AWithIdToC_B; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AWithIdToC_B" ON "schema-generator$enum"."_AWithIdToC" USING btree ("B");
--
-- Name: _AWithIdToD_A; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AWithIdToD_A" ON "schema-generator$enum"."_AWithIdToD" USING btree ("A");
--
-- Name: _AWithIdToD_AB_unique; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE UNIQUE INDEX "_AWithIdToD_AB_unique" ON "schema-generator$enum"."_AWithIdToD" USING btree ("A", "B");
--
-- Name: _AWithIdToD_B; Type: INDEX; Schema: schema-generator$enum; Owner: -
--
CREATE INDEX "_AWithIdToD_B" ON "schema-generator$enum"."_AWithIdToD" USING btree ("B");
--
-- Name: AWithId_fieldC AWithId_fieldC_nodeId_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."AWithId_fieldC"
ADD CONSTRAINT "AWithId_fieldC_nodeId_fkey" FOREIGN KEY ("nodeId") REFERENCES "schema-generator$enum"."AWithId"(id);
--
-- Name: A_fieldC A_fieldC_nodeId_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."A_fieldC"
ADD CONSTRAINT "A_fieldC_nodeId_fkey" FOREIGN KEY ("nodeId") REFERENCES "schema-generator$enum"."A"(id);
--
-- Name: C_field C_field_nodeId_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."C_field"
ADD CONSTRAINT "C_field_nodeId_fkey" FOREIGN KEY ("nodeId") REFERENCES "schema-generator$enum"."C"(id);
--
-- Name: D_field D_field_nodeId_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."D_field"
ADD CONSTRAINT "D_field_nodeId_fkey" FOREIGN KEY ("nodeId") REFERENCES "schema-generator$enum"."D"(id);
--
-- Name: _AToB _AToB_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AToB"
ADD CONSTRAINT "_AToB_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$enum"."A"(id) ON DELETE CASCADE;
--
-- Name: _AToB _AToB_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AToB"
ADD CONSTRAINT "_AToB_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$enum"."B"(id) ON DELETE CASCADE;
--
-- Name: _AToE _AToE_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AToE"
ADD CONSTRAINT "_AToE_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$enum"."A"(id) ON DELETE CASCADE;
--
-- Name: _AToE _AToE_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AToE"
ADD CONSTRAINT "_AToE_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$enum"."E"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToC _AWithIdToC_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AWithIdToC"
ADD CONSTRAINT "_AWithIdToC_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$enum"."AWithId"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToC _AWithIdToC_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AWithIdToC"
ADD CONSTRAINT "_AWithIdToC_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$enum"."C"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToD _AWithIdToD_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AWithIdToD"
ADD CONSTRAINT "_AWithIdToD_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$enum"."AWithId"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToD _AWithIdToD_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$enum; Owner: -
--
ALTER TABLE ONLY "schema-generator$enum"."_AWithIdToD"
ADD CONSTRAINT "_AWithIdToD_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$enum"."D"(id) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
-- | the_stack |
DECLARE @databaseName SYSNAME = N'AdventureWorks2017';
DECLARE @schemaName SYSNAME = N'Person';
DECLARE @tableName SYSNAME = N'CountryRegion';
DECLARE @_msparam_0 INT = 2;
DECLARE @TROW50000 NVARCHAR(1000) = N'Table ' + @schemaName + '.' + @tableName+ N' is not exists in database ' + QUOTENAME(@databaseName) + N'!!!';
IF OBJECT_ID(CASE WHEN @databaseName <> '' THEN QUOTENAME(@databaseName) + '.' ELSE '' END + QUOTENAME(@schemaName) + '.' + QUOTENAME(@tableName)) IS NULL
THROW 50000, @TROW50000, 1;
IF LEFT(@databaseName, 1) = N'[' OR
LEFT(@tableName, 1) = N'[' OR
LEFT(@schemaName, 1) = N'['
THROW 50001, 'Please do not use square quotes in Database, Table or Schema names! In the code it is alredy done with QUOTENAME function.', 1;
IF OBJECT_ID('tempdb..#tmp_extended_remote_data_archive_tables', 'U') IS NOT NULL DROP TABLE #tmp_extended_remote_data_archive_tables;
CREATE TABLE #tmp_extended_remote_data_archive_tables(
object_id INT NOT NULL
, remote_table_name NVARCHAR(128) NULL
, filter_predicate NVARCHAR(max) NULL
, migration_state TINYINT NULL
);
DECLARE @productMajorVersion INT = CAST(SERVERPROPERTY('ProductMajorVersion') AS INT);
IF @productMajorVersion > 12
BEGIN
IF EXISTS(SELECT 1 FROM master.sys.syscolumns WHERE [name] = N'remote_data_archive_migration_state' AND [id]= Object_ID(N'sys.tables'))
EXECUTE(N'
INSERT INTO #tmp_extended_remote_data_archive_tables
SELECT rdat.object_id, rdat.remote_table_name,
SUBSTRING(rdat.filter_predicate, 2, LEN(rdat.filter_predicate) - 2) AS filter_predicate,
CASE WHEN tbl.remote_data_archive_migration_state_desc = N''PAUSED'' THEN 1
WHEN tbl.remote_data_archive_migration_state_desc = N''OUTBOUND'' THEN 3
WHEN tbl.remote_data_archive_migration_state_desc = N''INBOUND'' THEN 4
WHEN tbl.remote_data_archive_migration_state_desc = N''DISABLED'' THEN 0
ELSE 0
END AS migration_state
FROM sys.tables tbl LEFT JOIN sys.remote_data_archive_tables rdat ON rdat.object_id = tbl.object_id
WHERE rdat.object_id IS NOT NULL;
')
ELSE
EXECUTE(N'
INSERT INTO #tmp_extended_remote_data_archive_tables
SELECT rdat.object_id, rdat.remote_table_name,
SUBSTRING(rdat.filter_predicate, 2, LEN(rdat.filter_predicate) - 2) AS filter_predicate,
CASE WHEN rdat.is_migration_paused = 1 AND rdat.migration_direction_desc = N''OUTBOUND'' THEN 1
WHEN rdat.is_migration_paused = 1 AND rdat.migration_direction_desc = N''INBOUND'' THEN 2
WHEN rdat.is_migration_paused = 0 AND rdat.migration_direction_desc = N''OUTBOUND'' THEN 3
WHEN rdat.is_migration_paused = 0 AND rdat.migration_direction_desc = N''INBOUND'' THEN 4
ELSE 0
END AS migration_state
FROM sys.tables tbl LEFT JOIN sys.remote_data_archive_tables rdat ON rdat.object_id = tbl.object_id
WHERE rdat.object_id IS NOT NULL
');
END;
SELECT tbl.name AS [Name]
,SCHEMA_NAME(tbl.schema_id) AS [Schema]
,tbl.object_id
,tbl.create_date AS [CreateDate]
,tbl.modify_date AS [DateLastModified]
,ISNULL(stbl.name, N'') AS [Owner]
,CAST(CASE WHEN tbl.principal_id IS NULL THEN 1 ELSE 0 END AS BIT) AS [IsSchemaOwned]
,CAST(CASE
WHEN tbl.is_ms_shipped = 1 THEN 1
WHEN (SELECT major_id
FROM sys.extended_properties
WHERE major_id = tbl.object_id
AND minor_id = 0
AND class = 1
AND name = N'microsoft_database_tools_support') IS
NOT NULL
THEN 1
ELSE 0
END AS BIT) AS [IsSystemObject]
,CAST(Objectproperty(tbl.object_id, N'HasAfterTrigger') AS BIT) AS [HasAfterTrigger]
,CAST(Objectproperty(tbl.object_id, N'HasInsertTrigger') AS BIT) AS [HasInsertTrigger]
,CAST(Objectproperty(tbl.object_id, N'HasDeleteTrigger') AS BIT) AS [HasDeleteTrigger]
,CAST(Objectproperty(tbl.object_id, N'HasInsteadOfTrigger') AS BIT) AS [HasInsteadOfTrigger]
,CAST(Objectproperty(tbl.object_id, N'HasUpdateTrigger') AS BIT) AS [HasUpdateTrigger]
,CAST(Objectproperty(tbl.object_id, N'IsIndexed') AS BIT) AS [HasIndex]
,CAST(Objectproperty(tbl.object_id, N'IsIndexable') AS BIT) AS [IsIndexable]
,CAST(CASE idx.index_id WHEN 1 THEN 1 ELSE 0 END AS BIT) AS [HasClusteredIndex]
,CAST(CASE idx.type WHEN 0 THEN 1 ELSE 0 END AS BIT) AS [HasHeapIndex]
,tbl.uses_ansi_nulls AS [AnsiNullsStatus]
,CAST(ISNULL(Objectproperty(tbl.object_id, N'IsQuotedIdentOn'), 0) AS BIT) AS [QuotedIdentifierStatus]
,CAST(0 AS BIT) AS [FakeSystemTable]
,ISNULL(dstext.name, N'') AS [TextFileGroup]
,CAST(tbl.is_memory_optimized AS BIT) AS [IsMemoryOptimized]
,CASE WHEN ( tbl.durability = 1 ) THEN 0 ELSE 1 END AS [Durability]
,tbl.is_replicated AS [Replicated]
,tbl.lock_escalation AS [LockEscalation]
,CAST(CASE
WHEN ctt.object_id IS NULL THEN 0
ELSE 1
END AS BIT)
AS [ChangeTrackingEnabled]
,CAST(ISNULL(ctt.is_track_columns_updated_on, 0) AS BIT) AS [TrackColumnsUpdatedEnabled]
,tbl.is_filetable AS [IsFileTable]
,ISNULL(ft.directory_name, N'') AS [FileTableDirectoryName]
,ISNULL(ft.filename_collation_name, N'')
AS [FileTableNameColumnCollation]
,CAST(ISNULL(ft.is_enabled, 0) AS BIT)
AS [FileTableNamespaceEnabled]
,CASE
WHEN 'PS' = dsidx.type THEN dsidx.name
ELSE N''
END
AS [PartitionScheme]
,CAST(CASE
WHEN 'PS' = dsidx.type THEN 1
ELSE 0
END AS BIT)
AS [IsPartitioned]
,CASE
WHEN 'FD' = dstbl.type THEN dstbl.name
ELSE N''
END
AS [FileStreamFileGroup]
,CASE
WHEN 'PS' = dstbl.type THEN dstbl.name
ELSE N''
END
AS [FileStreamPartitionScheme]
,CAST(CASE idx.type
WHEN 5 THEN 1
ELSE 0
END AS BIT)
AS [HasClusteredColumnStoreIndex]
--,CAST(CASE tbl.temporal_type
-- WHEN 2 THEN 1
-- ELSE 0
-- END AS BIT)
--AS [IsSystemVersioned]
--,CAST(ISNULL(historyTable.name, N'') AS SYSNAME) AS [HistoryTableName]
--,CAST(ISNULL(SCHEMA_NAME(historyTable.schema_id), N'') AS SYSNAME) AS [HistoryTableSchema]
--,CAST(ISNULL(historyTable.object_id, 0) AS INT) AS [HistoryTableID]
--,CAST(CASE WHEN periods.start_column_id IS NULL THEN 0
-- ELSE 1
-- END AS BIT) AS [HasSystemTimePeriod]
--,CAST(ISNULL((SELECT cols.NAME
-- FROM sys.columns cols
-- WHERE periods.object_id = tbl.object_id
-- AND cols.object_id = tbl.object_id
-- AND cols.column_id = periods.start_column_id), N'')
-- AS
-- SYSNAME)
-- AS [SystemTimePeriodStartColumn]
--,CAST(ISNULL((SELECT cols.NAME
-- FROM sys.columns cols
-- WHERE periods.object_id = tbl.object_id
-- AND cols.object_id = tbl.object_id
-- AND cols.column_id = periods.end_column_id), N'') AS
-- SYSNAME
-- )
-- AS [SystemTimePeriodEndColumn]
--,tbl.temporal_type AS [TemporalType]
--,CAST(tbl.is_remote_data_archive_enabled AS BIT) AS [RemoteDataArchiveEnabled]
,CAST(ISNULL(rdat.migration_state, 0) AS TINYINT) AS [RemoteDataArchiveDataMigrationState]
,CAST(rdat.filter_predicate AS VARCHAR(4000)) AS [RemoteDataArchiveFilterPredicate]
,CAST(rdat.remote_table_name AS SYSNAME) AS [RemoteTableName]
,CAST(CASE
WHEN rdat.remote_table_name IS NULL THEN 0
ELSE 1
END AS BIT)
AS [RemoteTableProvisioned]
--,CAST(tbl.is_external AS BIT) AS [IsExternal]
,eds.name AS [DataSourceName]
,ISNULL(eff.name, N'') AS [FileFormatName]
,ISNULL(et.location, N'') AS [Location]
,CASE et.reject_type
WHEN 'VALUE' THEN 0
WHEN 'PERCENTAGE' THEN 1
ELSE -1
END
AS [RejectType]
,ISNULL(et.reject_value, 0)
AS [RejectValue]
,ISNULL(et.reject_sample_value, -1)
AS [RejectSampleValue]
FROM sys.tables AS tbl
--LEFT OUTER JOIN sys.periods AS periods ON periods.object_id = tbl.object_id
--LEFT OUTER JOIN sys.tables AS historyTable ON historyTable.object_id = tbl.history_table_id
LEFT OUTER JOIN sys.database_principals AS stbl
ON stbl.principal_id = ISNULL(tbl.principal_id, (
Objectproperty(tbl.object_id,
'OwnerId') ))
INNER JOIN sys.indexes AS idx
ON idx.object_id = tbl.object_id
AND ( idx.index_id < @_msparam_0
OR ( tbl.is_memory_optimized = 1
AND idx.index_id = (SELECT Min(index_id)
FROM sys.indexes
WHERE
object_id = tbl.object_id) ) )
LEFT OUTER JOIN sys.data_spaces AS dstext
ON tbl.lob_data_space_id = dstext.data_space_id
LEFT OUTER JOIN sys.change_tracking_tables AS ctt
ON ctt.object_id = tbl.object_id
LEFT OUTER JOIN sys.filetables AS ft
ON ft.object_id = tbl.object_id
LEFT OUTER JOIN sys.data_spaces AS dsidx
ON dsidx.data_space_id = idx.data_space_id
LEFT OUTER JOIN sys.tables AS t
ON t.object_id = idx.object_id
LEFT OUTER JOIN sys.data_spaces AS dstbl
ON dstbl.data_space_id = t.filestream_data_space_id
AND ( idx.index_id < 2
OR ( idx.type = 7
AND idx.index_id < 3 ) )
LEFT OUTER JOIN #tmp_extended_remote_data_archive_tables AS rdat
ON rdat.object_id = tbl.object_id
LEFT OUTER JOIN sys.external_tables AS et
ON et.object_id = tbl.object_id
LEFT OUTER JOIN sys.external_data_sources AS eds
ON eds.data_source_id = et.data_source_id
LEFT OUTER JOIN sys.external_file_formats AS eff
ON eff.file_format_id = et.file_format_id
--WHERE tbl.name = @tableName
-- AND SCHEMA_NAME(tbl.schema_id) = @schemaName; | the_stack |
/*
Refactoring of WorkFlowStatus to improve speed of content version lookups and open
the door to future workflow features and improvements.
*/
-- Old WorkFlowStatusIds:
-- 1 Draft
-- 2 approval
-- 3 Rejected
-- 4 Published
-- 5 Approved
-- ** ValidateData **
if (exists (
select * from Cofoundry.[Page] p
left outer join Cofoundry.PageVersion pv on pv.PageId = p.PageId
where pv.WorkFlowStatusId in (1, 4) and PageVersionId is null
)) throw 50000, 'Invalid page version data. Pages must have at least one draft or published version', 1
if (exists (
select * from Cofoundry.CustomEntity e
left outer join Cofoundry.CustomEntityVersion ev on ev.CustomEntityId = e.CustomEntityId
where ev.WorkFlowStatusId in (1, 4) and CustomEntityVersionId is null
)) throw 50000, 'Invalid custom entity version data. Custom entities must have at least one draft or published version', 1
-- ** PublishStatus **
create table Cofoundry.PublishStatus (
PublishStatusCode char(1) not null,
[Name] varchar(20) not null,
constraint PK_PublishStatus primary key (PublishStatusCode)
)
go
create unique index UIX_PublishStatus_Name on Cofoundry.PublishStatus ([Name])
go
insert into Cofoundry.PublishStatus (PublishStatusCode, [Name]) values ('U', 'Unpublished')
insert into Cofoundry.PublishStatus (PublishStatusCode, [Name]) values ('P', 'Published')
go
alter table Cofoundry.[Page] add PublishStatusCode char(1) null
alter table Cofoundry.[Page] add PublishDate datetime2(7) null
alter table Cofoundry.[Page] add constraint FK_Page_PublishStatus foreign key (PublishStatusCode) references Cofoundry.PublishStatus (PublishStatusCode)
alter table Cofoundry.[CustomEntity] add PublishStatusCode char(1) null
alter table Cofoundry.[CustomEntity] add PublishDate datetime2(7) null
alter table Cofoundry.[CustomEntity] add constraint FK_CustomEntity_PublishStatus foreign key (PublishStatusCode) references Cofoundry.PublishStatus (PublishStatusCode)
go
-- ** Update PublishStatus: Pages **
;with CTE_LatestPageVersions as
(
select PageId, WorkFlowStatusId, CreateDate,
row_number() over (partition by PageId order by WorkFlowStatusId desc) as RowNumber
from Cofoundry.PageVersion
where WorkFlowStatusId in (1,4) and IsDeleted = 0
)
update Cofoundry.[Page]
set PublishStatusCode = case when WorkFlowStatusId = 4 then 'P' else 'U' end,
PublishDate = case when WorkFlowStatusId = 4 then pv.CreateDate else null end
from Cofoundry.[Page] p
left outer join CTE_LatestPageVersions pv on p.PageId = pv.PageId
where RowNumber = 1
-- ** Update PublishStatus: CustomEntities **
;with CTE_LatestCustomEntityVersions as
(
select CustomEntityId, WorkFlowStatusId, CreateDate,
row_number() over (partition by CustomEntityId order by WorkFlowStatusId desc) as RowNumber
from Cofoundry.CustomEntityVersion
where WorkFlowStatusId in (1,4)
)
update Cofoundry.CustomEntity
set PublishStatusCode = case when WorkFlowStatusId = 4 then 'P' else 'U' end,
PublishDate = case when WorkFlowStatusId = 4 then ev.CreateDate else null end
from Cofoundry.CustomEntity e
left outer join CTE_LatestCustomEntityVersions ev on e.CustomEntityId = ev.CustomEntityId
where RowNumber = 1
go
alter table Cofoundry.[Page] alter column PublishStatusCode char(1) not null
alter table Cofoundry.[CustomEntity] alter column PublishStatusCode char(1) not null
alter table Cofoundry.[Page] add constraint CK_Page_PublishDate_SetWhenPublished check ((PublishStatusCode = 'P' and PublishDate is not null) or PublishStatusCode = 'U')
alter table Cofoundry.[CustomEntity] add constraint CK_CustomEntity_PublishDate_SetWhenPublished check ((PublishStatusCode = 'P' and PublishDate is not null) or PublishStatusCode = 'U')
go
-- ** Prepare for WorkFlowStatus table changes **
-- Cutting down to only Draft/Publish status, which will be expanded upon in a future version
-- At some point you coud see other status in here like approved/rejected etc
-- drop this index, we're only ever concerned with the latest published version so Published/approved status is the same
drop index UIX_PageVersion_PublishedVersion on Cofoundry.PageVersion
drop index UIX_CustomEntityVersion_PublishedVersion on Cofoundry.CustomEntityVersion
go
update Cofoundry.PageVersion set WorkFlowStatusId = 4 where WorkFlowStatusId = 5
update Cofoundry.PageVersion set WorkFlowStatusId = 1 where WorkFlowStatusId in (2, 3) -- unused, but just to be sure
update Cofoundry.CustomEntityVersion set WorkFlowStatusId = 4 where WorkFlowStatusId = 5
update Cofoundry.CustomEntityVersion set WorkFlowStatusId = 1 where WorkFlowStatusId in (2, 3) -- unused, but just to be sure
delete from Cofoundry.WorkFlowStatus where WorkFlowStatusId not in (1, 4)
go
-- ** WorkFlowStatus changes **
-- WorkFlowStatus like Approved, Rejected etc are ultimately still considered unpublished/draft so we link the workflow status back to the base PublishStatus
alter table Cofoundry.WorkFlowStatus add PublishStatusCode char(1) null
alter table Cofoundry.WorkFlowStatus add constraint FK_WorkFlowStatus_PublishStatus foreign key (PublishStatusCode) references Cofoundry.PublishStatus (PublishStatusCode)
go
update Cofoundry.WorkFlowStatus set PublishStatusCode = 'U' where WorkFlowStatusId = 1
update Cofoundry.WorkFlowStatus set PublishStatusCode = 'P' where WorkFlowStatusId = 4
go
alter table Cofoundry.WorkFlowStatus alter column PublishStatusCode char(1) not null
go
-- ** PublishStatusQuery **
create table Cofoundry.PublishStatusQuery (
PublishStatusQueryId smallint not null,
[Name] varchar(20) not null,
constraint PK_PublishStatusQuery primary key (PublishStatusQueryId)
)
go
create unique index UIX_PublishStatusQuery_Name on Cofoundry.PublishStatusQuery ([Name])
go
-- ** EntityPublishStatusQuery **
create table Cofoundry.PagePublishStatusQuery (
PageId int not null,
PublishStatusQueryId smallint not null,
PageVersionId int not null,
constraint PK_PagePublishStatusQuery primary key (PageId, PublishStatusQueryId),
constraint FK_PagePublishStatusQuery_Page foreign key (PageId) references Cofoundry.[Page] (PageId),
constraint FK_PagePublishStatusQuery_PageVersion foreign key (PageVersionId) references Cofoundry.PageVersion (PageVersionId),
constraint FK_PagePublishStatusQuery_PublishStatusQuery foreign key (PublishStatusQueryId) references Cofoundry.PublishStatusQuery (PublishStatusQueryId)
)
create table Cofoundry.CustomEntityPublishStatusQuery (
CustomEntityId int not null,
PublishStatusQueryId smallint not null,
CustomEntityVersionId int not null,
constraint PK_CustomEntityPublishStatusQuery primary key (CustomEntityId, PublishStatusQueryId),
constraint FK_CustomEntityPublishStatusQuery_Page foreign key (CustomEntityId) references Cofoundry.CustomEntity (CustomEntityId),
constraint FK_CustomEntityPublishStatusQuery_PageVersion foreign key (CustomEntityVersionId) references Cofoundry.CustomEntityVersion (CustomEntityVersionId),
constraint FK_CustomEntityPublishStatusQuery_PublishStatusQuery foreign key (PublishStatusQueryId) references Cofoundry.PublishStatusQuery (PublishStatusQueryId)
)
go
insert into Cofoundry.PublishStatusQuery (PublishStatusQueryId, [Name]) values (0, 'Published')
insert into Cofoundry.PublishStatusQuery (PublishStatusQueryId, [Name]) values (1, 'Latest')
insert into Cofoundry.PublishStatusQuery (PublishStatusQueryId, [Name]) values (2, 'Draft')
insert into Cofoundry.PublishStatusQuery (PublishStatusQueryId, [Name]) values (3, 'PreferPublished')
-- PublishStatusQuery.Published
;with CTE_LatestPublishedPageVersions as
(
select v.PageId, v.PageVersionId,
row_number() over (partition by v.PageId order by v.CreateDate desc) as RowNumber
from Cofoundry.PageVersion v
inner join Cofoundry.[Page] p on p.PageId = v.PageId
where WorkFlowStatusId = 4 and p.PublishStatusCode = 'P' and v.IsDeleted = 0 and p.IsDeleted = 0
)
insert into Cofoundry.PagePublishStatusQuery (PageId, PublishStatusQueryId, PageVersionId)
select PageId, 0, PageVersionId
from CTE_LatestPublishedPageVersions
where RowNumber = 1
;with CTE_LatestPublishedCustomEntityVersions as
(
select v.CustomEntityId, v.CustomEntityVersionId,
row_number() over (partition by v.CustomEntityId order by v.CreateDate desc) as RowNumber
from Cofoundry.CustomEntityVersion v
inner join Cofoundry.CustomEntity e on e.CustomEntityId = v.CustomEntityId and e.PublishStatusCode = 'P'
where WorkFlowStatusId = 4
)
insert into Cofoundry.CustomEntityPublishStatusQuery (CustomEntityId, PublishStatusQueryId, CustomEntityVersionId)
select CustomEntityId, 0, CustomEntityVersionId
from CTE_LatestPublishedCustomEntityVersions
where RowNumber = 1
-- PublishStatusQuery.Latest
;with CTE_LatestPageVersions as
(
select v.PageId, v.PageVersionId,
row_number() over (partition by v.PageId order by v.WorkFlowStatusId, v.CreateDate desc) as RowNumber
from Cofoundry.PageVersion v
inner join Cofoundry.[Page] p on p.PageId = v.PageId
where v.IsDeleted = 0 and p.IsDeleted = 0
)
insert into Cofoundry.PagePublishStatusQuery (PageId, PublishStatusQueryId, PageVersionId)
select PageId, 1, PageVersionId
from CTE_LatestPageVersions
where RowNumber = 1
;with CTE_LatestCustomEntityVersions as
(
select CustomEntityId, CustomEntityVersionId,
row_number() over (partition by CustomEntityId order by WorkFlowStatusId, CreateDate desc) as RowNumber
from Cofoundry.CustomEntityVersion
)
insert into Cofoundry.CustomEntityPublishStatusQuery (CustomEntityId, PublishStatusQueryId, CustomEntityVersionId)
select CustomEntityId, 1, CustomEntityVersionId
from CTE_LatestCustomEntityVersions
where RowNumber = 1
-- PublishStatusQuery.Draft
;with CTE_LatestDraftPageVersions as
(
select v.PageId, v.PageVersionId,
row_number() over (partition by v.PageId order by v.CreateDate desc) as RowNumber
from Cofoundry.PageVersion v
inner join Cofoundry.[Page] p on p.PageId = v.PageId
where WorkFlowStatusId = 1 and v.IsDeleted = 0 and p.IsDeleted = 0
)
insert into Cofoundry.PagePublishStatusQuery (PageId, PublishStatusQueryId, PageVersionId)
select PageId, 2, PageVersionId
from CTE_LatestDraftPageVersions
where RowNumber = 1
;with CTE_LatestDraftCustomEntityVersions as
(
select CustomEntityId, CustomEntityVersionId,
row_number() over (partition by CustomEntityId order by CreateDate desc) as RowNumber
from Cofoundry.CustomEntityVersion
where WorkFlowStatusId = 1
)
insert into Cofoundry.CustomEntityPublishStatusQuery (CustomEntityId, PublishStatusQueryId, CustomEntityVersionId)
select CustomEntityId, 2, CustomEntityVersionId
from CTE_LatestDraftCustomEntityVersions
where RowNumber = 1
-- PublishStatusQuery.PreferPublished
;with CTE_PreferPublishedPageVersions as
(
select v.PageId, v.PageVersionId,
row_number() over (partition by v.PageId order by v.WorkFlowStatusId desc, v.CreateDate desc) as RowNumber
from Cofoundry.PageVersion v
inner join Cofoundry.[Page] p on p.PageId = v.PageId
where WorkFlowStatusId in (1, 4) and v.IsDeleted = 0 and p.IsDeleted = 0
)
insert into Cofoundry.PagePublishStatusQuery (PageId, PublishStatusQueryId, PageVersionId)
select PageId, 3, PageVersionId
from CTE_PreferPublishedPageVersions
where RowNumber = 1
;with CTE_PreferPublishedCustomEntityVersions as
(
select CustomEntityId, CustomEntityVersionId,
row_number() over (partition by CustomEntityId order by WorkFlowStatusId desc, CreateDate desc) as RowNumber
from Cofoundry.CustomEntityVersion
where WorkFlowStatusId in (1, 4)
)
insert into Cofoundry.CustomEntityPublishStatusQuery (CustomEntityId, PublishStatusQueryId, CustomEntityVersionId)
select CustomEntityId, 3, CustomEntityVersionId
from CTE_PreferPublishedCustomEntityVersions
where RowNumber = 1
update Cofoundry.[Page]
set PublishDate = pv.CreateDate
from Cofoundry.[Page] p
inner join Cofoundry.PagePublishStatusQuery q on p.PageId = q.PageId and q.PublishStatusQueryId = 4
inner join Cofoundry.PageVersion pv on pv.PageVersionId = q.PageVersionId | the_stack |
;
/*!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' */;
# config values:
UPDATE `config` SET `value`='140' WHERE `path`='objects/actions/interactionsDistance';
UPDATE `config` SET `value`='100' WHERE `path`='players/initialStats/atk';
UPDATE `config` SET `value`='100' WHERE `path`='players/initialStats/def';
UPDATE `config` SET `value`='100' WHERE `path`='enemies/initialStats/atk';
UPDATE `config` SET `value`='100' WHERE `path`='enemies/initialStats/def';
UPDATE `config` SET `path`='ui/chat/x' WHERE `path`='chat/position/x';
UPDATE `config` SET `path`='ui/chat/y' WHERE `path`='chat/position/y';
UPDATE `config` SET `value`='430' WHERE `path`='ui/playerStats/x';
UPDATE `config` SET `value`='20' WHERE `path`='ui/playerStats/y';
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/screen/responsive', '1', 'b');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/uiTarget/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/uiTarget/responsiveX', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/inventory/enabled', '1', 'b');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/inventory/x', '380', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/inventory/y', '450', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/inventory/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/inventory/responsiveX', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/equipment/enabled', '1', 'b');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/equipment/x', '430', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/equipment/y', '90', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/equipment/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/equipment/responsiveX', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/uiLifeBar/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/uiLifeBar/responsiveX', '40', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/sceneLabel/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/sceneLabel/responsiveX', '50', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/playerStats/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/playerStats/responsiveX', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/playerName/responsiveY', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/playerName/responsiveX', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/controls/responsiveY', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/controls/responsiveX', '0', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/chat/responsiveY', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/chat/responsiveX', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/chat/enabled', '1', 'b');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/npcDialog/x', '120', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/npcDialog/y', '100', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/npcDialog/responsiveX', '10', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/npcDialog/responsiveY', '10', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/maximum/x', '1280', 'i');
INSERT INTO `config` (`scope`, `path`, `value`, `type`) VALUES ('client', 'ui/maximum/y', '720', 'i');
# player stats update:
UPDATE players_stats SET atk=100, def=100;
# rooms updates:
UPDATE `rooms_change_points` SET `tile_index`='816' WHERE `id`=1;
UPDATE `rooms_change_points` SET `tile_index`='817' WHERE `id`=2;
UPDATE `rooms_return_points` SET `x`='548', `y`='615' WHERE `id`=1;
UPDATE `rooms_return_points` SET `x`='548', `y`='615' WHERE `id`=1;
UPDATE `rooms_change_points` SET `tile_index`='778' WHERE `id`=3;
UPDATE `rooms_return_points` SET `x`='640', `y`='600' WHERE `id`=2;
# new objects:
/*!40000 ALTER TABLE `objects` DISABLE KEYS */;
INSERT INTO `objects` (`id`, `room_id`, `layer_name`, `tile_index`, `object_class_key`, `client_key`, `title`, `private_params`, `client_params`, `enabled`) VALUES
(10, 4, 'house-collisions-over-player', 560, 'npc_3', 'merchant_1', 'Gimly', NULL, NULL, 1),
(12, 4, 'house-collisions-over-player', 562, 'npc_4', 'weapons_master_1', 'Barrik', NULL, NULL, 1);
/*!40000 ALTER TABLE `objects` ENABLE KEYS */;
/*!40000 ALTER TABLE `objects_assets` DISABLE KEYS */;
INSERT INTO `objects_assets` (`object_asset_id`, `object_id`, `asset_type`, `asset_key`, `file_1`, `file_2`, `extra_params`) VALUES
(9, 10, 'spritesheet', 'merchant_1', 'people-d-x2', NULL, '{"frameWidth":52,"frameHeight":71}'),
(10, 12, 'spritesheet', 'weapons_master_1', 'people-c-x2', NULL, '{"frameWidth":52,"frameHeight":71}');
/*!40000 ALTER TABLE `objects_assets` ENABLE KEYS */;
# inventory first deploy:
INSERT INTO `features` (`code`, `title`, `is_enabled`) VALUES ('inventory', 'Inventory', 1);
CREATE TABLE IF NOT EXISTS `items_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`sort` int(11) DEFAULT NULL,
`items_limit` int(1) NOT NULL DEFAULT '0',
`limit_per_item` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The group table is to save the groups settings.';
-- Dumping data for table reldens.items_group: ~6 rows (approximately)
/*!40000 ALTER TABLE `items_group` DISABLE KEYS */;
INSERT INTO `items_group` (`id`, `key`, `label`, `description`, `sort`, `items_limit`, `limit_per_item`) VALUES
(1, 'weapon', 'Weapon', 'All kinds of weapons.', 2, 1, 0),
(2, 'shield', 'Shield', 'Protect with these items.', 3, 1, 0),
(3, 'armor', 'Armor', '', 4, 1, 0),
(4, 'boots', 'Boots', '', 6, 1, 0),
(5, 'gauntlets', 'Gauntlets', '', 5, 1, 0),
(6, 'helmet', 'Helmet', '', 1, 1, 0);
/*!40000 ALTER TABLE `items_group` ENABLE KEYS */;
-- Dumping structure for table reldens.items_inventory
CREATE TABLE IF NOT EXISTS `items_inventory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_id` int(11) NOT NULL,
`item_id` int(11) NOT NULL,
`qty` int(11) NOT NULL DEFAULT '0',
`remaining_uses` int(11) DEFAULT NULL,
`is_active` int(1) DEFAULT NULL COMMENT 'For example equipped or not equipped items.',
PRIMARY KEY (`id`),
KEY `FK_items_inventory_items_item` (`item_id`),
CONSTRAINT `FK_items_inventory_items_item` FOREIGN KEY (`item_id`) REFERENCES `items_item` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Inventory table is to save the items for each owner.';
-- Dumping data for table reldens.items_inventory: ~10 rows (approximately)
/*!40000 ALTER TABLE `items_inventory` DISABLE KEYS */;
INSERT INTO `items_inventory` (`id`, `owner_id`, `item_id`, `qty`, `remaining_uses`, `is_active`) VALUES
(1, 1, 1, 143, NULL, NULL),
(2, 2, 1, 7, NULL, NULL),
(3, 2, 2, 1, NULL, NULL),
(4, 2, 2, 1, NULL, NULL),
(76, 1, 2, 1, NULL, NULL),
(91, 1, 3, 20, NULL, NULL),
(92, 3, 3, 1, NULL, NULL),
(93, 1, 5, 1, NULL, 0),
(94, 1, 4, 1, NULL, 0),
(95, 2, 4, 1, 0, 1),
(96, 2, 5, 1, 0, 0);
/*!40000 ALTER TABLE `items_inventory` ENABLE KEYS */;
-- Dumping structure for table reldens.items_item
CREATE TABLE IF NOT EXISTS `items_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`group_id` int(11) DEFAULT NULL,
`label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`qty_limit` int(11) NOT NULL DEFAULT '0' COMMENT 'Default 0 to unlimited qty.',
`uses_limit` int(11) NOT NULL DEFAULT '1' COMMENT 'Default 1 use per item (0 = unlimited).',
`useTimeOut` int(11) DEFAULT NULL,
`execTimeOut` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `key` (`key`),
KEY `group_id` (`group_id`),
CONSTRAINT `FK_items_item_items_group` FOREIGN KEY (`group_id`) REFERENCES `items_group` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='List of all available items in the system.';
-- Dumping data for table reldens.items_item: ~5 rows (approximately)
/*!40000 ALTER TABLE `items_item` DISABLE KEYS */;
INSERT INTO `items_item` (`id`, `key`, `group_id`, `label`, `description`, `qty_limit`, `uses_limit`, `useTimeOut`, `execTimeOut`) VALUES
(1, 'coins', NULL, 'Coins', NULL, 0, 1, NULL, NULL),
(2, 'branch', NULL, 'Tree branch', 'An useless tree branch (for now)', 0, 1, NULL, NULL),
(3, 'heal_potion_20', NULL, 'Heal Potion', 'A heal potion that will restore 20 HP.', 0, 1, NULL, NULL),
(4, 'axe', 1, 'Axe', 'A short distance but powerful weapon.', 0, 0, NULL, NULL),
(5, 'spear', 1, 'Spear', 'A short distance but powerful weapon.', 0, 0, NULL, NULL);
/*!40000 ALTER TABLE `items_item` ENABLE KEYS */;
-- Dumping structure for table reldens.items_item_modifiers
CREATE TABLE IF NOT EXISTS `items_item_modifiers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_id` int(11) NOT NULL,
`property_key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`operation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `item_id` (`item_id`),
CONSTRAINT `FK_items_item_modifiers_items_item` FOREIGN KEY (`item_id`) REFERENCES `items_item` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Modifiers is the way we will affect the item owner.';
-- Dumping data for table reldens.items_item_modifiers: ~0 rows (approximately)
/*!40000 ALTER TABLE `items_item_modifiers` DISABLE KEYS */;
/*!40000 ALTER TABLE `items_item_modifiers` 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 |
--CMS DE-SynPUF 100,000 person dataset in OMOP v5.3.1 schema
--SET search_path assigns the SCHEMA for this data, which must be the same at the filename of this file.
--The end of every copy statement must contain iam_role 'RS_ROLE_ARN'; This will be replaced with the actual IAM Role used by Redshift.
--Patient Level Tables
SET search_path to CMSDESynPUF100kpostgres;
CREATE TABLE public.temp();
COPY public.temp FROM PROGRAM 'mkdir /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/care_site.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/care_site.csv.gz';
COPY CARE_SITE FROM '/tmp/tempdata/care_site.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/care_site.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/condition_occurrence.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/condition_occurrence.csv.gz';
COPY CONDITION_OCCURRENCE(condition_occurrence_id,person_id,condition_concept_id,condition_start_date,condition_start_datetime,condition_end_date,condition_end_datetime,condition_type_concept_id,stop_reason,provider_id,visit_occurrence_id,condition_source_value,condition_source_concept_id,condition_status_source_value,condition_status_concept_id) FROM '/tmp/tempdata/condition_occurrence.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/condition_occurrence.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/death.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/death.csv.gz';
COPY DEATH FROM '/tmp/tempdata/death.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/death.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/device_exposure.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/device_exposure.csv.gz';
COPY DEVICE_EXPOSURE(DEVICE_EXPOSURE_ID,PERSON_ID,DEVICE_CONCEPT_ID,DEVICE_EXPOSURE_START_DATE,DEVICE_EXPOSURE_START_DATETIME,DEVICE_EXPOSURE_END_DATE,DEVICE_EXPOSURE_END_DATETIME,DEVICE_TYPE_CONCEPT_ID,UNIQUE_DEVICE_ID,QUANTITY,PROVIDER_ID,VISIT_OCCURRENCE_ID,DEVICE_SOURCE_VALUE,DEVICE_SOURCE_CONCEPT_ID) FROM '/tmp/tempdata/device_exposure.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/device_exposure.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/drug_exposure.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/drug_exposure.csv.gz';
COPY DRUG_EXPOSURE(drug_exposure_id,person_id,drug_concept_id,drug_exposure_start_date,drug_exposure_start_datetime,drug_exposure_end_date,drug_exposure_end_datetime,verbatim_end_date,drug_type_concept_id,stop_reason,refills,quantity,days_supply,sig,route_concept_id,lot_number,provider_id,visit_occurrence_id,drug_source_value,drug_source_concept_id,route_source_value,dose_unit_source_value) FROM '/tmp/tempdata/drug_exposure.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/drug_exposure.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/location.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/location.csv.gz';
COPY LOCATION FROM '/tmp/tempdata/location.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/location.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/measurement.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/measurement.csv.gz';
COPY MEASUREMENT(measurement_id,person_id,measurement_concept_id,measurement_date,measurement_datetime,measurement_type_concept_id,operator_concept_id,value_as_number,value_as_concept_id,unit_concept_id,range_low,range_high,measurement_source_value,measurement_source_concept_id,unit_source_value,value_source_value) FROM '/tmp/tempdata/measurement.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/measurement.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/observation.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/observation.csv.gz';
COPY OBSERVATION(OBSERVATION_ID,PERSON_ID,OBSERVATION_CONCEPT_ID,OBSERVATION_DATE,OBSERVATION_DATETIME,OBSERVATION_TYPE_CONCEPT_ID,VALUE_AS_NUMBER,VALUE_AS_STRING,VALUE_AS_CONCEPT_ID,QUALIFIER_CONCEPT_ID,UNIT_CONCEPT_ID,PROVIDER_ID,VISIT_OCCURRENCE_ID,OBSERVATION_SOURCE_VALUE,OBSERVATION_SOURCE_CONCEPT_ID,UNIT_SOURCE_VALUE,QUALIFIER_SOURCE_VALUE) FROM '/tmp/tempdata/observation.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/observation.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/observation_period.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/observation_period.csv.gz';
COPY OBSERVATION_PERIOD FROM '/tmp/tempdata/observation_period.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/observation_period.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/payer_plan_period.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/payer_plan_period.csv.gz';
COPY PAYER_PLAN_PERIOD(PAYER_PLAN_PERIOD_ID,PERSON_ID,PAYER_PLAN_PERIOD_START_DATE,PAYER_PLAN_PERIOD_END_DATE,PAYER_SOURCE_VALUE,PLAN_SOURCE_VALUE,FAMILY_SOURCE_VALUE) FROM '/tmp/tempdata/payer_plan_period.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/payer_plan_period.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/person.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/person.csv.gz';
COPY PERSON FROM '/tmp/tempdata/person.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/person.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/procedure_occurrence.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/procedure_occurrence.csv.gz';
COPY PROCEDURE_OCCURRENCE(PROCEDURE_OCCURRENCE_ID,PERSON_ID,PROCEDURE_CONCEPT_ID,PROCEDURE_DATE,PROCEDURE_DATETIME,PROCEDURE_TYPE_CONCEPT_ID,MODIFIER_CONCEPT_ID,QUANTITY,PROVIDER_ID,VISIT_OCCURRENCE_ID,PROCEDURE_SOURCE_VALUE,PROCEDURE_SOURCE_CONCEPT_ID,MODIFIER_SOURCE_VALUE) FROM '/tmp/tempdata/procedure_occurrence.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/procedure_occurrence.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/provider.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/provider.csv.gz';
COPY PROVIDER FROM '/tmp/tempdata/procedure_occurrence.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/provider.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/visit_occurrence.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/visit_occurrence.csv.gz';
COPY VISIT_OCCURRENCE FROM '/tmp/tempdata/visit_occurrence.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/visit_occurrence.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/condition_era.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/condition_era.csv.gz';
COPY CONDITION_ERA(CONDITION_ERA_ID,PERSON_ID,CONDITION_CONCEPT_ID,CONDITION_ERA_START_DATE,CONDITION_ERA_END_DATE,CONDITION_OCCURRENCE_COUNT) FROM '/tmp/tempdata/condition_era.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/condition_era.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/cmsdesynpuf100k/drug_era.csv.gz /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'gzip -d /tmp/tempdata/drug_era.csv.gz';
COPY DRUG_ERA(person_id,drug_concept_id,drug_era_start_date,drug_era_end_date,drug_exposure_count,gap_days,drug_era_id) FROM '/tmp/tempdata/drug_era.csv' WITH DELIMITER ',' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/drug_era.csv';
--Vocabulary Tables
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/CONCEPT_ANCESTOR.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/CONCEPT_ANCESTOR.csv.bz2';
COPY CONCEPT_ANCESTOR FROM '/tmp/tempdata/CONCEPT_ANCESTOR.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/CONCEPT_ANCESTOR.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/CONCEPT_CLASS.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/CONCEPT_CLASS.csv.bz2';
COPY CONCEPT_CLASS FROM '/tmp/tempdata/CONCEPT_CLASS.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/CONCEPT_CLASS.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/CONCEPT.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/CONCEPT.csv.bz2';
COPY CONCEPT FROM '/tmp/tempdata/CONCEPT.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/CONCEPT.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/CONCEPT_RELATIONSHIP.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/CONCEPT_RELATIONSHIP.csv.bz2';
COPY CONCEPT_RELATIONSHIP FROM '/tmp/tempdata/CONCEPT_RELATIONSHIP.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/CONCEPT_RELATIONSHIP.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/CONCEPT_SYNONYM.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/CONCEPT_SYNONYM.csv.bz2';
COPY CONCEPT_SYNONYM FROM '/tmp/tempdata/CONCEPT_SYNONYM.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/CONCEPT_SYNONYM.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/DOMAIN.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/DOMAIN.csv.bz2';
COPY DOMAIN FROM '/tmp/tempdata/DOMAIN.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/DOMAIN.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/RELATIONSHIP.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/RELATIONSHIP.csv.bz2';
COPY RELATIONSHIP FROM '/tmp/tempdata/RELATIONSHIP.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/RELATIONSHIP.csv';
COPY public.temp FROM PROGRAM 'aws s3 cp s3://ohdsi-sample-data/vocab/VOCABULARY.csv.bz2 /tmp/tempdata/';
COPY public.temp FROM PROGRAM 'bzip2 -d /tmp/tempdata/VOCABULARY.csv.bz2';
COPY VOCABULARY FROM '/tmp/tempdata/VOCABULARY.csv' WITH DELIMITER E'\t' CSV HEADER QUOTE E'\b';
COPY public.temp FROM PROGRAM 'rm /tmp/tempdata/VOCABULARY.csv'; | the_stack |
-- 2017-07-20T14:24:40.563
-- 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,540900,0,540353,TO_TIMESTAMP('2017-07-20 14:24:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.handlingunits','_M_HU_Trace','Y','N','N','N','N','HU-Rückverfolgung',TO_TIMESTAMP('2017-07-20 14:24:40','YYYY-MM-DD HH24:MI:SS'),100,'HU-Rückverfolgung')
;
-- 2017-07-20T14:24:40.565
-- 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=540900 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-07-20T14:24:40.566
-- 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, 540900, 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=540900)
;
-- 2017-07-20T14:24:41.117
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540479 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.118
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540481 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.119
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540893 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.120
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540482 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.120
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540489 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.121
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540490 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.122
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540520 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.123
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540545 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.123
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540546 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.124
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540555 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.125
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540561 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.125
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540600 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.126
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540659 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.126
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540597 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:41.127
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=540478, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540900 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.193
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540796 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.194
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540798 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.195
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540797 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.196
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540829 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.196
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540830 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.197
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540831 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.197
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540844 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.198
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540846 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.199
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540900 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.199
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540856 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.200
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540857 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.201
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540860 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.201
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540866 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.201
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000057 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.202
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000065 AND AD_Tree_ID=10
;
-- 2017-07-20T14:24:46.202
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000075 AND AD_Tree_ID=10
;
-- 2017-07-20T14:25:18.229
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 14:25:18','YYYY-MM-DD HH24:MI:SS'),Name='Handling Unit Trace',WEBUI_NameBrowse='Handling Unit Trace' WHERE AD_Menu_ID=540900 AND AD_Language='en_US'
;
-- 2017-07-20T14:25:22.048
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 14:25:22','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Menu_ID=540900 AND AD_Language='en_US'
;
-- 2017-07-20T14:29:53.493
-- 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,540842,540380,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2017-07-20T14:29:53.494
-- 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=540380 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-20T14:29:53.531
-- 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,540514,540380,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.562
-- 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,540515,540380,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.599
-- 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,540514,540884,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.639
-- 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,558810,0,540842,540884,546751,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','Y','N','Produkt',10,10,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.669
-- 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,558811,0,540842,540884,546752,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Menge','Menge bezeichnet die Anzahl eines bestimmten Produktes oder Artikels für dieses Dokument.','Y','N','Y','Y','N','Menge',20,20,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.699
-- 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,558795,0,540842,540884,546753,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Rückverfolgbarkeit',30,30,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.730
-- 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,558801,0,540842,540884,546754,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Zeitpunkt',40,40,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.759
-- 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,558805,0,540842,540884,546755,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Typ',50,50,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.792
-- 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,558796,0,540842,540884,546756,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Handling Units',60,60,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.828
-- 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,558806,0,540842,540884,546757,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','CU Handling Unit (VHU)',70,70,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.858
-- 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,558807,0,540842,540884,546758,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','CU (VHU) Gebindestatus',80,80,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.889
-- 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,558803,0,540842,540884,546759,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Belegart oder Verarbeitungsvorgaben','Die Belegart bestimmt den Nummernkreis und die Vorgaben für die Belegverarbeitung.','Y','N','Y','Y','N','Belegart',90,90,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.919
-- 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,558804,0,540842,540884,546760,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'The current status of the document','The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','N','Y','Y','N','Belegstatus',100,100,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.948
-- 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,558798,0,540842,540884,546761,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Material Shipment Document','The Material Shipment / Receipt ','Y','N','Y','Y','N','Lieferung/Wareneingang',110,110,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:53.979
-- 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,558799,0,540842,540884,546762,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Bewegung von Warenbestand','"Warenbewegung" bezeichnet eindeutig eine Gruppe von Warenbewegungspositionen.','Y','N','Y','Y','N','Warenbewegung',120,120,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:54.008
-- 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,558808,0,540842,540884,546763,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','HU-Transaktionszeile',130,130,0,TO_TIMESTAMP('2017-07-20 14:29:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:54.039
-- 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,558797,0,540842,540884,546764,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Lieferdisposition',140,140,0,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:54.071
-- 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,558802,0,540842,540884,546765,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Manufacturing Cost Collector',150,150,0,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:54.109
-- 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,558809,0,540842,540884,546766,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Produktionsauftrag',160,160,0,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:29:54.140
-- 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,558800,0,540842,540884,546767,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','Y','N','Ursprungs-VHU',170,170,0,TO_TIMESTAMP('2017-07-20 14:29:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:43:53.774
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Column SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 14:43:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Column_ID=540514
;
-- 2017-07-20T14:43:56.140
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Column SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-20 14:43:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Column_ID=540515
;
-- 2017-07-20T14:44:18.181
-- 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,540515,540885,TO_TIMESTAMP('2017-07-20 14:44:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-07-20 14:44:18','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:45:06.008
-- 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,558810,0,540842,540885,546768,TO_TIMESTAMP('2017-07-20 14:45:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produkt',10,0,0,TO_TIMESTAMP('2017-07-20 14:45:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T14:45:43.049
-- 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,558811,0,540842,540885,546769,TO_TIMESTAMP('2017-07-20 14:45:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Menge',20,0,0,TO_TIMESTAMP('2017-07-20 14:45:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:05:05.990
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='product',Updated=TO_TIMESTAMP('2017-07-20 15:05:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540885
;
-- 2017-07-20T15:05:20.651
-- 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,540515,540886,TO_TIMESTAMP('2017-07-20 15:05:20','YYYY-MM-DD HH24:MI:SS'),100,'Y','hu',20,'primary',TO_TIMESTAMP('2017-07-20 15:05:20','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:06:01.313
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 15:06:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546768
;
-- 2017-07-20T15:06:05.599
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 15:06:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546769
;
-- 2017-07-20T15:06:27.897
-- 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,558805,0,540842,540885,546770,TO_TIMESTAMP('2017-07-20 15:06:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Typ',10,0,0,TO_TIMESTAMP('2017-07-20 15:06:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:07:14.132
-- 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,558796,0,540842,540886,546771,TO_TIMESTAMP('2017-07-20 15:07:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Handling Unit',10,0,0,TO_TIMESTAMP('2017-07-20 15:07:14','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:07:33.665
-- 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,558806,0,540842,540886,546772,TO_TIMESTAMP('2017-07-20 15:07:33','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Virtual Handling Unit ',20,0,0,TO_TIMESTAMP('2017-07-20 15:07:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:07:47.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,558807,0,540842,540886,546773,TO_TIMESTAMP('2017-07-20 15:07:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Gebindestatus',30,0,0,TO_TIMESTAMP('2017-07-20 15:07:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:08:58.215
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=90, UIStyle='',Updated=TO_TIMESTAMP('2017-07-20 15:08:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540884
;
-- 2017-07-20T15:09:13.509
-- 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,540514,540887,TO_TIMESTAMP('2017-07-20 15:09:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','active',10,TO_TIMESTAMP('2017-07-20 15:09:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:09:27.056
-- 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,558794,0,540842,540887,546774,TO_TIMESTAMP('2017-07-20 15:09:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Aktiv',10,0,0,TO_TIMESTAMP('2017-07-20 15:09:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:09:48.017
-- 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,558801,0,540842,540887,546775,TO_TIMESTAMP('2017-07-20 15:09:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Zeitpunkt',20,0,0,TO_TIMESTAMP('2017-07-20 15:09:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:10:29.372
-- 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,540514,540888,TO_TIMESTAMP('2017-07-20 15:10:29','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-07-20 15:10:29','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:10:40.827
-- 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,558793,0,540842,540888,546776,TO_TIMESTAMP('2017-07-20 15:10:40','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-07-20 15:10:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:10:48.514
-- 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,558792,0,540842,540888,546777,TO_TIMESTAMP('2017-07-20 15:10:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-07-20 15:10:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:19:06.107
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546770
;
-- 2017-07-20T15:19:48.040
-- 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,558805,0,540842,540887,546778,TO_TIMESTAMP('2017-07-20 15:19:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Typ',30,0,0,TO_TIMESTAMP('2017-07-20 15:19:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:19:55.449
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 15:19:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546778
;
-- 2017-07-20T15:19:59.427
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 15:19:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546775
;
-- 2017-07-20T15:20:55.619
-- 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,540515,540889,TO_TIMESTAMP('2017-07-20 15:20:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','details',30,TO_TIMESTAMP('2017-07-20 15:20:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:22:01.473
-- 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,558803,0,540842,540887,546779,TO_TIMESTAMP('2017-07-20 15:22:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Belegart',40,0,0,TO_TIMESTAMP('2017-07-20 15:22:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:22:18.163
-- 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,558804,0,540842,540887,546780,TO_TIMESTAMP('2017-07-20 15:22:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Belegstatus',50,0,0,TO_TIMESTAMP('2017-07-20 15:22:18','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:22:39.976
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 15:22:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540888
;
-- 2017-07-20T15:22:48.444
-- 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,540514,540890,TO_TIMESTAMP('2017-07-20 15:22:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','doc',20,TO_TIMESTAMP('2017-07-20 15:22:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:23:40.089
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540890, SeqNo=10,Updated=TO_TIMESTAMP('2017-07-20 15:23:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546779
;
-- 2017-07-20T15:23:54.769
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540890, SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 15:23:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546780
;
-- 2017-07-20T15:25:21.088
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='detailsHU',Updated=TO_TIMESTAMP('2017-07-20 15:25:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540889
;
-- 2017-07-20T15:25:43.044
-- 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,558808,0,540842,540889,546781,TO_TIMESTAMP('2017-07-20 15:25:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Transaktionszeile',10,0,0,TO_TIMESTAMP('2017-07-20 15:25:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:26:01.269
-- 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,558800,0,540842,540889,546782,TO_TIMESTAMP('2017-07-20 15:26:01','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Quell-HU',20,0,0,TO_TIMESTAMP('2017-07-20 15:26:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:26:38.690
-- 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,540515,540891,TO_TIMESTAMP('2017-07-20 15:26:38','YYYY-MM-DD HH24:MI:SS'),100,'Y','details document',40,TO_TIMESTAMP('2017-07-20 15:26:38','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:26:57.879
-- 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,558798,0,540842,540891,546783,TO_TIMESTAMP('2017-07-20 15:26:57','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Lieferung/Wareneingang',10,0,0,TO_TIMESTAMP('2017-07-20 15:26:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:27:09.057
-- 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,558799,0,540842,540891,546784,TO_TIMESTAMP('2017-07-20 15:27:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Warenbewegung',20,0,0,TO_TIMESTAMP('2017-07-20 15:27:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:27:30.844
-- 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,558797,0,540842,540891,546785,TO_TIMESTAMP('2017-07-20 15:27:30','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Lieferdisposition',30,0,0,TO_TIMESTAMP('2017-07-20 15:27:30','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:27:55.719
-- 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,558802,0,540842,540891,546786,TO_TIMESTAMP('2017-07-20 15:27:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Manufacturing Cost Collector',40,0,0,TO_TIMESTAMP('2017-07-20 15:27:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:28:18.656
-- 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,558809,0,540842,540891,546787,TO_TIMESTAMP('2017-07-20 15:28:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produktionsauftrag',50,0,0,TO_TIMESTAMP('2017-07-20 15:28:18','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T15:29:25.422
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546751
;
-- 2017-07-20T15:29:25.440
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546752
;
-- 2017-07-20T15:29:25.452
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546753
;
-- 2017-07-20T15:29:25.460
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546754
;
-- 2017-07-20T15:29:25.471
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546755
;
-- 2017-07-20T15:29:25.479
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546756
;
-- 2017-07-20T15:29:25.487
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546757
;
-- 2017-07-20T15:29:25.495
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546758
;
-- 2017-07-20T15:29:25.506
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546759
;
-- 2017-07-20T15:29:25.527
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546760
;
-- 2017-07-20T15:29:25.534
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546761
;
-- 2017-07-20T15:29:25.546
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546762
;
-- 2017-07-20T15:29:25.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546763
;
-- 2017-07-20T15:29:25.560
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546764
;
-- 2017-07-20T15:29:25.567
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546765
;
-- 2017-07-20T15:29:25.573
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546766
;
-- 2017-07-20T15:29:25.580
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=546767
;
-- 2017-07-20T15:30:51.302
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=40,Updated=TO_TIMESTAMP('2017-07-20 15:30:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540889
;
-- 2017-07-20T15:30:55.476
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 15:30:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540891
;
-- 2017-07-20T15:35:06.792
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546775
;
-- 2017-07-20T15:35:06.795
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546778
;
-- 2017-07-20T15:35:06.796
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546771
;
-- 2017-07-20T15:35:06.798
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546772
;
-- 2017-07-20T15:35:06.799
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546773
;
-- 2017-07-20T15:35:06.800
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546779
;
-- 2017-07-20T15:35:06.801
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-07-20 15:35:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546780
;
-- 2017-07-20T15:36:47.928
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546783
;
-- 2017-07-20T15:36:47.932
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546784
;
-- 2017-07-20T15:36:47.934
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546781
;
-- 2017-07-20T15:36:47.947
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546785
;
-- 2017-07-20T15:36:47.949
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546786
;
-- 2017-07-20T15:36:47.950
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546787
;
-- 2017-07-20T15:36:47.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546782
;
-- 2017-07-20T15:36:47.952
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546768
;
-- 2017-07-20T15:36:47.953
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=160,Updated=TO_TIMESTAMP('2017-07-20 15:36:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546769
;
-- 2017-07-20T15:41:30.020
-- 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-20 15:41:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546771
;
-- 2017-07-20T15:41:30.021
-- 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-20 15:41:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546775
;
-- 2017-07-20T15:41:30.021
-- 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-20 15:41:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546778
;
-- 2017-07-20T15:56:03.903
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:56:03','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Event Time',PrintName='Event Time' WHERE AD_Element_ID=543324 AND AD_Language='en_US'
;
-- 2017-07-20T15:56:03.924
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543324,'en_US')
;
-- 2017-07-20T15:56:42.313
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:56:42','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='HU Trace Type',PrintName='HU Trace Type' WHERE AD_Element_ID=543378 AND AD_Language='en_US'
;
-- 2017-07-20T15:56:42.317
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543378,'en_US')
;
-- 2017-07-20T15:57:52.944
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:57:52','YYYY-MM-DD HH24:MI:SS'),Name='HU Transaction Line',PrintName='HU Transaction Line' WHERE AD_Element_ID=542139 AND AD_Language='en_US'
;
-- 2017-07-20T15:57:52.953
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(542139,'en_US')
;
-- 2017-07-20T15:58:34.525
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:58:34','YYYY-MM-DD HH24:MI:SS'),Name='Material Shipment Document' WHERE AD_Column_ID=556993 AND AD_Language='en_US'
;
-- 2017-07-20T15:58:48.347
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:58:48','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Column_ID=556993 AND AD_Language='en_US'
;
-- 2017-07-20T15:59:02.333
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:59:02','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Element_ID=542139 AND AD_Language='en_US'
;
-- 2017-07-20T15:59:02.342
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(542139,'en_US')
;
-- 2017-07-20T15:59:21.297
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 15:59:21','YYYY-MM-DD HH24:MI:SS'),Name='Movement Document',IsTranslated='Y' WHERE AD_Column_ID=556994 AND AD_Language='en_US'
;
-- 2017-07-20T16:03:07.063
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:03:07','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Handling Unit Trace' WHERE AD_Field_ID=558795 AND AD_Language='en_US'
;
-- 2017-07-20T16:03:52.162
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:03:52','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Handling Unit' WHERE AD_Field_ID=558796 AND AD_Language='en_US'
;
-- 2017-07-20T16:04:11.071
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:04:11','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Virtual Handling Unit' WHERE AD_Field_ID=558806 AND AD_Language='en_US'
;
-- 2017-07-20T16:04:30.038
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:04:30','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='VHU Status' WHERE AD_Field_ID=558807 AND AD_Language='en_US'
;
-- 2017-07-20T16:05:00.182
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:05:00','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Document Type',Description='',Help='' WHERE AD_Field_ID=558803 AND AD_Language='en_US'
;
-- 2017-07-20T16:05:23.453
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:05:23','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Document Status',Description='',Help='' WHERE AD_Field_ID=558804 AND AD_Language='en_US'
;
-- 2017-07-20T16:05:39.182
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:05:39','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Material Shipment Document' WHERE AD_Field_ID=558798 AND AD_Language='en_US'
;
-- 2017-07-20T16:05:54.901
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:05:54','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Movement Document',Description='',Help='' WHERE AD_Field_ID=558799 AND AD_Language='en_US'
;
-- 2017-07-20T16:06:14.926
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:06:14','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Shipment Schedule' WHERE AD_Field_ID=558797 AND AD_Language='en_US'
;
-- 2017-07-20T16:06:27.816
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:06:27','YYYY-MM-DD HH24:MI:SS') WHERE AD_Field_ID=558802 AND AD_Language='nl_NL'
;
-- 2017-07-20T16:06:33.164
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:06:33','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Field_ID=558802 AND AD_Language='en_US'
;
-- 2017-07-20T16:06:56.262
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:06:56','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Manufacturing Order' WHERE AD_Field_ID=558809 AND AD_Language='en_US'
;
-- 2017-07-20T16:07:13.565
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:07:13','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Virtual Handling Unit Source' WHERE AD_Field_ID=558800 AND AD_Language='en_US'
;
-- 2017-07-20T16:07:36.805
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:07:36','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Quantity',Description='Product quantity',Help='' WHERE AD_Field_ID=558811 AND AD_Language='en_US'
;
-- 2017-07-20T16:07:50.040
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:07:50','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Product',Description='',Help='' WHERE AD_Field_ID=558810 AND AD_Language='en_US'
;
-- 2017-07-20T16:08:11.262
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:08:11','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=558793 AND AD_Language='en_US'
;
-- 2017-07-20T16:08:23.868
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:08:23','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client',Description='',Help='' WHERE AD_Field_ID=558792 AND AD_Language='en_US'
;
-- 2017-07-20T16:08:47.066
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-20 16:08:47','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Active',Description='',Help='' WHERE AD_Field_ID=558794 AND AD_Language='en_US'
;
-- 2017-07-20T16:25:35.865
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 16:25:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540885
;
-- 2017-07-20T16:25:38.705
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 16:25:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540886
;
-- 2017-07-20T16:29:31.595
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=50,Updated=TO_TIMESTAMP('2017-07-20 16:29:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540891
;
-- 2017-07-20T16:29:44.021
-- 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,540515,540892,TO_TIMESTAMP('2017-07-20 16:29:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','type',10,'primary',TO_TIMESTAMP('2017-07-20 16:29:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-07-20T16:30:39.420
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=10,Updated=TO_TIMESTAMP('2017-07-20 16:30:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546778
;
-- 2017-07-20T16:30:48.293
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 16:30:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546775
;
-- 2017-07-20T16:31:40.901
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 16:31:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546768
;
-- 2017-07-20T16:31:46.953
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=40,Updated=TO_TIMESTAMP('2017-07-20 16:31:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546769
;
-- 2017-07-20T16:31:54.857
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540885
;
-- 2017-07-20T16:32:07.519
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=50,Updated=TO_TIMESTAMP('2017-07-20 16:32:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546771
;
-- 2017-07-20T16:32:13.643
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=60,Updated=TO_TIMESTAMP('2017-07-20 16:32:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546772
;
-- 2017-07-20T16:32:18.311
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540892, SeqNo=70,Updated=TO_TIMESTAMP('2017-07-20 16:32:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546773
;
-- 2017-07-20T16:32:24.194
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540886
;
-- 2017-07-20T16:32:32.999
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=20,Updated=TO_TIMESTAMP('2017-07-20 16:32:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540889
;
-- 2017-07-20T16:32:38.614
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=30,Updated=TO_TIMESTAMP('2017-07-20 16:32:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540891
;
-- 2017-07-20T16:32:49.223
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540884
;
-- 2017-07-21T10:02:43.284
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540890, SeqNo=30,Updated=TO_TIMESTAMP('2017-07-21 10:02:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546781
;
-- 2017-07-21T10:02:51.109
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=540890, SeqNo=40,Updated=TO_TIMESTAMP('2017-07-21 10:02:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546782
; | the_stack |
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 5.7.24 - MySQL Community Server (GPL)
-- 服务器OS: Win32
-- 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,
`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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='文章表';
-- Dumping data for table think.article: ~0 rows (大约)
/*!40000 ALTER TABLE `article` DISABLE KEYS */;
/*!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,
`name` 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`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 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`, `name`, `pid`, `disable`, `create_time`, `update_time`, `delete_time`) VALUES
(1, '顶级分类', 0, 0, 1590593923, 1590593923, 0),
(2, '测试', 1, 0, 1590593923, 1590593923, 0);
/*!40000 ALTER TABLE `article_category` ENABLE KEYS */;
-- Dumping structure for table think.db_log
CREATE TABLE IF NOT EXISTS `db_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型名',
`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '访问地址',
`action` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作',
`sql` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'sql',
`user_id` int(11) NOT NULL COMMENT '操作员id',
`create_time` int(11) NOT NULL COMMENT '创建时间',
`update_time` int(11) NOT NULL,
`delete_time` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.db_log: ~0 rows (大约)
/*!40000 ALTER TABLE `db_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `db_log` ENABLE KEYS */;
-- Dumping structure for table think.dept
CREATE TABLE IF NOT EXISTS `dept` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '部门名称',
`pid` int(11) NOT NULL COMMENT '上级部门',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
`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=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.dept: ~7 rows (大约)
/*!40000 ALTER TABLE `dept` DISABLE KEYS */;
INSERT INTO `dept` (`id`, `name`, `pid`, `status`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 'Ant-Design', 0, 1, 1590510869, 1590510869, 0),
(2, '深圳总公司', 1, 1, 1590510869, 1590510869, 0),
(3, '北京总公司', 1, 1, 1590510869, 1590510869, 0),
(4, '设计部', 2, 1, 1590510869, 1590510869, 0),
(5, '运营部', 2, 1, 1590510869, 1590510869, 0),
(6, '研发部', 3, 1, 1590510869, 1590510869, 0),
(7, '销售部', 3, 1, 1590510869, 1590510869, 0);
/*!40000 ALTER TABLE `dept` ENABLE KEYS */;
-- Dumping structure for table think.log
CREATE TABLE IF NOT EXISTS `log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户标识',
`action` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '操作',
`url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '访问地址',
`ip` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '访问ip',
`user_agent` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '访问者user_agnet',
`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`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.log: ~3 rows (大约)
/*!40000 ALTER TABLE `log` DISABLE KEYS */;
INSERT INTO `log` (`id`, `user_id`, `action`, `url`, `ip`, `user_agent`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 3, '登录', '/admin/auth/login', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', 1593931059, 1593931059, 0),
(2, 1, '登录', '/admin/auth/login', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', 1593931867, 1593931867, 0),
(3, 1, '登录', '/admin/auth/login', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36', 1597729649, 1597729649, 0);
/*!40000 ALTER TABLE `log` ENABLE KEYS */;
-- Dumping structure for table think.member
CREATE TABLE IF NOT EXISTS `member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`openid` varchar(255) COLLATE utf8mb4_unicode_ci 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`),
UNIQUE KEY `openid` (`openid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.member: ~0 rows (大约)
/*!40000 ALTER TABLE `member` DISABLE KEYS */;
/*!40000 ALTER TABLE `member` ENABLE KEYS */;
-- Dumping structure for table think.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`version` bigint(20) NOT NULL,
`migration_name` varchar(100) DEFAULT NULL,
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`end_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`breakpoint` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table think.migrations: ~11 rows (大约)
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` (`version`, `migration_name`, `start_time`, `end_time`, `breakpoint`) VALUES
(20191217060229, 'Permission', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060230, 'Dept', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060256, 'Role', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060327, 'RolePermissionAccess', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060357, 'User', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060458, 'UserRoleAccess', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060620, 'Log', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20191217060648, 'DbLog', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20200109074431, 'RoleDeptAccess', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20200119055958, 'Post', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0),
(20200119060019, 'UserPostAccess', '2020-05-17 15:18:22', '2020-05-17 15:18:22', 0);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Dumping structure for table think.permission
CREATE TABLE IF NOT EXISTS `permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '规则名称',
`title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
`pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级标识',
`type` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '类别',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
`path` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'path',
`redirect` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'redirect',
`component` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'component',
`icon` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'icon',
`permission` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' 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',
`action_type` int(11) NOT NULL DEFAULT '0',
`button_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`blank` int(11) NOT NULL DEFAULT '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`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.permission: ~70 rows (大约)
/*!40000 ALTER TABLE `permission` DISABLE KEYS */;
INSERT INTO `permission` (`id`, `name`, `title`, `pid`, `type`, `status`, `path`, `redirect`, `component`, `icon`, `permission`, `keepAlive`, `hidden`, `hideChildrenInMenu`, `action_type`, `button_type`, `blank`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 'Index', '首页', 0, 'path', 1, '/', '/dashboard/workplace', 'BasicLayout', '', '', 0, 0, 0, 0, NULL, 0, 0, 1593875048, 0),
(2, 'Dashboard', '仪表盘', 1, 'path', 1, '/dashboard', '/dashboard/workplace', 'RouteView', 'dashboard', 'Analysis,Workspace', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(3, 'Analysis', '分析页', 2, 'menu', 1, '/dashboard/analysis', '', 'Analysis', '', 'Analysis', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(4, 'InfoAnalysis', '详情', 3, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Info', 0, 0, 1593876265, 0),
(5, 'Workspace', '工作台', 2, 'menu', 1, '/dashboard/workplace', '', 'Workplace', '', 'Workspace', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(6, 'InfoWorkspace', '详情', 5, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Info', 0, 0, 1593876276, 0),
(7, 'System', '系统管理', 1, 'path', 1, '/system', '/system/permission', 'PageView', 'slack', 'Permission,Role,Account,Dept', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(8, 'Permission', '菜单管理', 7, 'menu', 1, '/system/permission', '', 'Permission', '', 'Permission', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(9, 'FetchPermission', '列表', 8, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593876286, 0),
(10, 'CreatePermission', '新增', 8, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 0, 1593876297, 0),
(11, 'UpdatePermission', '修改', 8, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Update', 0, 0, 1593876310, 0),
(12, 'DeletePermission', '删除', 8, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593876563, 0),
(13, 'Role', '角色管理', 7, 'menu', 1, '/system/role', '', 'Role', '', 'Role', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(14, 'FetchRole', '列表', 13, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593876522, 0),
(15, 'CreateRole', '新增', 13, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 0, 1593876533, 0),
(16, 'UpdateRole', '修改', 13, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Update', 0, 0, 1593876552, 0),
(17, 'DeleteRole', '删除', 13, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593930465, 0),
(18, 'AccountManager', '管理员管理', 7, 'path', 1, '/system/user', '/system/user/list', 'RouteView', '', '', 0, 0, 1, 0, NULL, 0, 0, 1593927984, 0),
(19, 'Account', '管理员列表', 18, 'menu', 1, '/system/user/list', '', 'Account', '', 'Account', 0, 0, 0, 0, NULL, 0, 0, 1593930375, 0),
(20, 'FetchAccount', '列表', 19, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593930200, 0),
(21, 'CreateAccount', '新增', 19, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 0, 1593930241, 0),
(22, 'UpdateAccount', '修改', 19, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Update', 0, 0, 1593930249, 0),
(23, 'Dept', '部门管理', 7, 'menu', 1, '/system/Dept', '', 'Dept', '', 'Dept', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(24, 'FetchDept', '列表', 23, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593928144, 0),
(25, 'CreateDept', '新增', 23, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 0, 1593928222, 0),
(26, 'UpdateDept', '修改', 23, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Update', 0, 0, 1593929061, 0),
(27, 'DeleteDept', '删除', 23, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593928304, 0),
(28, 'Post', '岗位管理', 7, 'menu', 1, '/system/post', '', 'Post', '', 'Post', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(29, 'FetchPost', '列表', 28, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593928260, 0),
(30, 'CreatePost', '新增', 28, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 0, 1593928268, 0),
(31, 'UpdatePost', '修改', 28, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Update', 0, 0, 1593929051, 0),
(32, 'DeletePost', '删除', 28, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593928341, 0),
(33, 'Log', '日志管理', 1, 'path', 1, '/log', '/log/account', 'PageView', 'file-text', 'LogAccount,LogDb', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(34, 'LogAccount', '管理员日志', 33, 'menu', 1, '/log/account', '', 'LogAccount', '', 'LogAccount', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(35, 'FetchLogAccount', '列表', 34, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593928379, 0),
(36, 'DeleteLogAccount', '删除', 34, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593928390, 0),
(37, 'LogDb', '数据库日志', 33, 'menu', 1, '/log/db', '', 'LogDb', '', 'LogDb', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(38, 'FetchLogDb', '列表', 37, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 0, 1593928401, 0),
(39, 'DeleteLogDb', '删除', 37, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 0, 1593928425, 0),
(40, 'Profile', '个人页', 1, 'path', 1, '/account', '/account/center', 'RouteView', 'user', 'BaseSettings,SecuritySettings', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(41, 'ProfileAccount', '个人中心', 40, 'menu', 1, '/account/center', '', 'Center', '', '', 0, 0, 0, 0, NULL, 0, 0, 0, 0),
(42, 'ProfileSetting', '个人设置', 40, 'menu', 1, '/account/settings', '/account/settings/base', 'Settings', '', 'BaseSettings,SecuritySettings', 0, 0, 1, 0, NULL, 0, 0, 0, 0),
(43, 'BaseSettings', '基本设置', 42, 'menu', 1, '/account/settings/base', '', 'BaseSettings', '', 'BaseSettings', 0, 0, 0, 0, NULL, 0, 0, 1593932353, 0),
(44, 'SaveProfile', '更新信息', 43, 'action', 1, '', '', '', '', '', 0, 0, 0, 2, NULL, 0, 0, 1593928517, 0),
(45, 'SaveAvatar', '更新头像', 43, 'action', 1, '', '', '', '', '', 0, 0, 0, 2, NULL, 0, 0, 1593928524, 0),
(46, 'SecuritySettings', '安全设置', 42, 'menu', 1, '/account/settings/security', '', 'SecuritySettings', '', 'BaseSettings', 0, 0, 0, 0, NULL, 0, 1590511221, 1593932359, 0),
(47, 'UpdateSecurityPassword', '更新密码', 46, 'action', 1, '', '', '', '', '', 0, 0, 0, 2, NULL, 0, 0, 1593928532, 0),
(48, 'CreateAccountView', '创建用户', 18, 'menu', 1, '/user/create', '', 'AccountForm', '', 'CreateAccountView', 0, 1, 0, 0, NULL, 0, 1590589427, 1593930974, 0),
(49, 'UpdateAccountView', '更新用户', 18, 'menu', 1, '/user/:id/update', '', 'AccountForm', '', 'UpdateAccountView', 0, 1, 0, 0, NULL, 0, 1590590048, 1593930651, 0),
(50, 'ArticleManager', '文章管理', 1, 'path', 1, '/article', '/article/list', 'PageView', 'smile-o', '', 0, 0, 0, 0, NULL, 0, 1590593923, 1590593975, 0),
(51, 'Article', '文章列表', 50, 'menu', 1, '/article/list', '', 'Article', '', 'Article', 0, 0, 1, 0, NULL, 0, 1590594018, 1593875062, 0),
(52, 'CreateArticleView', '创建文章', 50, 'menu', 1, '/article/create', '', 'ArticleForm', '', 'CreateArticleView', 0, 1, 0, 0, NULL, 0, 1590594348, 1593854847, 0),
(53, 'UpdateArticleView', '更新文章', 50, 'menu', 1, '/article/:id/update', '', 'ArticleForm', '', 'UpdateArticleView', 0, 1, 0, 0, NULL, 0, 1590594384, 1593854857, 0),
(54, 'ArticleCategory', '分类列表', 50, 'menu', 1, '/article/category', '', 'ArticleCategory', '', '', 0, 0, 0, 0, NULL, 0, 1590594754, 1593928587, 0),
(55, 'Picture', '图片管理', 1, 'path', 1, '/picture', '/picture/folder', 'RouteView', 'smile-o', '', 0, 0, 0, 0, NULL, 0, 1593834567, 1593928681, 1593928681),
(56, 'Folder', '文件夹', 55, 'menu', 1, '/picture/floder', '', 'Article', '', '', 0, 0, 0, 0, NULL, 0, 1593834647, 1593928676, 1593928676),
(69, 'FetchArticle', '列表', 51, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 1593873606, 1593875445, 0),
(70, 'CreateArticle', '新增', 51, 'action', 1, '', '', '', '', '', 0, 0, 0, 0, NULL, 0, 1593873625, 1593873625, 0),
(71, 'UpdateArticle', '修改', 51, 'action', 1, '', '', '', '', '', 0, 0, 0, 0, NULL, 0, 1593873660, 1593873660, 0),
(72, 'DeleteArticle', '删除', 51, 'action', 1, '', '', '', '', '', 0, 0, 0, 0, NULL, 0, 1593873673, 1593873673, 0),
(73, 'SaveCreateArticleView', '保存', 52, 'action', 1, '', '', '', '', '', 0, 0, 0, 0, NULL, 0, 1593873696, 1593873696, 0),
(74, 'SaveUpdateArticleView', '保存', 53, 'action', 1, '', '', '', '', '', 0, 0, 0, 0, NULL, 0, 1593873734, 1593873734, 0),
(75, 'DeleteAccount', '删除', 19, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 1593928021, 1593930257, 0),
(76, 'SaveCreateAccountView', '保存', 48, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Save', 0, 1593928100, 1593928100, 0),
(77, 'SaveUpdateAccountView', '保存', 49, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Save', 0, 1593928120, 1593928120, 0),
(78, 'FetchArticleCategory', '列表', 54, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Fetch', 0, 1593928570, 1593928601, 0),
(79, 'CreateArticleCategory', '新增', 54, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Create', 0, 1593928623, 1593928623, 0),
(80, 'SaveArticleCategory', '保存', 54, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Save', 0, 1593928635, 1593928635, 0),
(81, 'DeleteArticleCategory', '删除', 54, 'action', 1, '', '', '', '', '', 0, 0, 0, 1, 'Delete', 0, 1593928665, 1593928665, 0),
(82, 'UpdateRoleAccess', '编辑数据权限', 13, 'action', 1, '', '', '', '', '', 0, 0, 0, 2, NULL, 0, 1593929218, 1593929218, 0);
/*!40000 ALTER TABLE `permission` ENABLE KEYS */;
-- Dumping structure for table think.post
CREATE TABLE IF NOT EXISTS `post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '岗位名称',
`code` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '岗位标识',
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
`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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.post: ~0 rows (大约)
/*!40000 ALTER TABLE `post` DISABLE KEYS */;
/*!40000 ALTER TABLE `post` ENABLE KEYS */;
-- Dumping structure for table think.role
CREATE TABLE IF NOT EXISTS `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '角色唯一标识',
`title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '角色名称',
`pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级标识',
`mode` int(11) NOT NULL DEFAULT '3' COMMENT '数据权限类型',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
`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`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 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`, `name`, `title`, `pid`, `mode`, `status`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 'root', '顶级角色', 0, 0, 1, 0, 0, 0),
(3, 'test', '普通分组 只有查看权限', 1, 3, 1, 1593930146, 1593930275, 0);
/*!40000 ALTER TABLE `role` ENABLE KEYS */;
-- Dumping structure for table think.role_dept_access
CREATE TABLE IF NOT EXISTS `role_dept_access` (
`role_id` int(11) NOT NULL COMMENT '角色主键',
`dept_id` int(11) NOT NULL COMMENT '部门主键',
PRIMARY KEY (`role_id`,`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.role_dept_access: ~0 rows (大约)
/*!40000 ALTER TABLE `role_dept_access` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_dept_access` ENABLE KEYS */;
-- Dumping structure for table think.role_permission_access
CREATE TABLE IF NOT EXISTS `role_permission_access` (
`role_id` int(11) NOT NULL COMMENT '角色主键',
`permission_id` int(11) NOT NULL COMMENT '规则主键',
PRIMARY KEY (`role_id`,`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.role_permission_access: ~11 rows (大约)
/*!40000 ALTER TABLE `role_permission_access` DISABLE KEYS */;
INSERT INTO `role_permission_access` (`role_id`, `permission_id`) VALUES
(3, 4),
(3, 6),
(3, 9),
(3, 14),
(3, 20),
(3, 24),
(3, 29),
(3, 35),
(3, 38),
(3, 69),
(3, 78);
/*!40000 ALTER TABLE `role_permission_access` ENABLE KEYS */;
-- Dumping structure for table think.user
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户唯一标识(登录名)',
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '登录密码',
`hash` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '加密hash',
`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 '邮箱',
`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` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.user: ~2 rows (大约)
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` (`id`, `name`, `password`, `hash`, `nickname`, `dept_id`, `status`, `avatar`, `email`, `create_time`, `update_time`, `delete_time`) VALUES
(1, 'admin', '$2y$10$NivWBgBTy8f/Sfghr3Bch.38kDb/WL7cncBF7iLG4f8KumkGQeo56', 'US%qMfOqun4', 'Serati Ma', 0, 1, 'storage/topic/avatar.png', 'SeratiMa@aliyun.com', 1589699902, 1589699902, 0),
(3, 'test', '$2y$10$QPI203ILGnMlCbC16hWUye8DJRJXIby7EDW2yJE5MrPw6IL3vEb/m', '8anGvp7hT30', '测试', 4, 1, '', '', 1593931035, 1593931035, 0);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
-- Dumping structure for table think.user_post_access
CREATE TABLE IF NOT EXISTS `user_post_access` (
`user_id` int(11) NOT NULL COMMENT '用户主键',
`post_id` int(11) NOT NULL COMMENT '岗位主键',
PRIMARY KEY (`user_id`,`post_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.user_post_access: ~0 rows (大约)
/*!40000 ALTER TABLE `user_post_access` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_post_access` ENABLE KEYS */;
-- Dumping structure for table think.user_role_access
CREATE TABLE IF NOT EXISTS `user_role_access` (
`user_id` int(11) NOT NULL COMMENT '用户主键',
`role_id` int(11) NOT NULL COMMENT '角色主键',
PRIMARY KEY (`user_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dumping data for table think.user_role_access: ~0 rows (大约)
/*!40000 ALTER TABLE `user_role_access` DISABLE KEYS */;
INSERT INTO `user_role_access` (`user_id`, `role_id`) VALUES
(3, 3);
/*!40000 ALTER TABLE `user_role_access` 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 |
SET check_function_bodies = false;
SET search_path = public, pg_catalog;
--
-- Name: add_index_suffix(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION add_index_suffix(p_table_name text, suffix text) RETURNS void
LANGUAGE plpgsql
AS $_$
DECLARE
indexes_cursor CURSOR FOR
SELECT indexname AS name
FROM pg_indexes
WHERE tablename = p_table_name;
BEGIN
FOR index_name IN indexes_cursor LOOP
EXECUTE format('ALTER INDEX %1$I RENAME TO %2$I', index_name.name, index_name.name || suffix);
END LOOP;
END
$_$;
ALTER FUNCTION public.add_index_suffix(p_table_name text, suffix text) OWNER TO fec;
--
-- Name: add_partition_cycles(numeric, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION add_partition_cycles(start_year numeric, amount numeric) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
first_cycle_end_year NUMERIC = get_cycle(start_year);
last_cycle_end_year NUMERIC = first_cycle_end_year + (amount - 1) * 2;
master_table_name TEXT;
child_table_name TEXT;
schedule TEXT;
BEGIN
FOR cycle IN first_cycle_end_year..last_cycle_end_year BY 2 LOOP
FOREACH schedule IN ARRAY ARRAY['a', 'b'] LOOP
master_table_name = format('ofec_sched_%s_master', schedule);
child_table_name = format('ofec_sched_%s_%s_%s', schedule, cycle - 1, cycle);
EXECUTE format('CREATE TABLE %I (
CHECK ( two_year_transaction_period in (%s, %s) )
) INHERITS (%I)', child_table_name, cycle - 1, cycle, master_table_name);
END LOOP;
END LOOP;
PERFORM finalize_itemized_schedule_a_tables(first_cycle_end_year, last_cycle_end_year, FALSE, TRUE);
PERFORM finalize_itemized_schedule_b_tables(first_cycle_end_year, last_cycle_end_year, FALSE, TRUE);
END
$$;
ALTER FUNCTION public.add_partition_cycles(start_year numeric, amount numeric) OWNER TO fec;
--
-- Name: add_reporting_states(text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION add_reporting_states(election_state text[], report_type text) RETURNS text[]
LANGUAGE plpgsql
AS $$
begin
return case
when
report_type in ('M10', 'M11', 'M12', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M7S', 'M8', 'M9', 'MSA', 'MSY', 'MY', 'MYS', 'Q1', 'Q2', 'Q2S', 'Q3', 'QMS', 'QSA', 'QYE', 'QYS') then
array['AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MP', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY']
else
array_remove(election_state::text[], null)
end;
end
$$;
ALTER FUNCTION public.add_reporting_states(election_state text[], report_type text) OWNER TO fec;
--
-- Name: clean_party(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION clean_party(party text) RETURNS text
LANGUAGE plpgsql
AS $_$
begin
return regexp_replace(party, '\s*(Added|Removed|\(.*?)\)$', '');
end
$_$;
ALTER FUNCTION public.clean_party(party text) OWNER TO fec;
--
-- Name: clean_repeated(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION clean_repeated(first anyelement, second anyelement) RETURNS anyelement
LANGUAGE plpgsql
AS $$
begin
return case
when first = second then null
else first
end;
end
$$;
ALTER FUNCTION public.clean_repeated(first anyelement, second anyelement) OWNER TO fec;
--
-- Name: clean_report(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION clean_report(report text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return trim(both from regexp_replace(report, ' {.*}', ''));
end
$$;
ALTER FUNCTION public.clean_report(report text) OWNER TO fec;
--
-- Name: contribution_size(numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION contribution_size(value numeric) RETURNS integer
LANGUAGE plpgsql
AS $$
begin
return case
when abs(value) <= 200 then 0
when abs(value) < 500 then 200
when abs(value) < 1000 then 500
when abs(value) < 2000 then 1000
else 2000
end;
end
$$;
ALTER FUNCTION public.contribution_size(value numeric) OWNER TO fec;
--
-- Name: contributor_type(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION contributor_type(value text) RETURNS boolean
LANGUAGE plpgsql
AS $$
begin
return upper(value) in ('11AI', '17A');
end
$$;
ALTER FUNCTION public.contributor_type(value text) OWNER TO fec;
--
-- Name: create_24hr_text(text, date); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_24hr_text(rp_election_text text, ie_24hour_end date) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when
rp_election_text like '%Runoff%' then array_to_string(
array[
'24-Hour Report Period of Independent Expenditures begins for the',
rp_election_text,
'(if necessary). Ends on',
to_char(ie_24hour_end, 'Mon DD, YYYY') || '.'
], ' ')
else
array_to_string(
array[
'24-Hour Report Period of Independent Expenditures begins for the',
rp_election_text || '. Ends on',
to_char(ie_24hour_end, 'Mon DD, YYYY') || '.'
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_24hr_text(rp_election_text text, ie_24hour_end date) OWNER TO fec;
--
-- Name: create_48hr_text(text, date); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_48hr_text(rp_election_text text, ie_48hour_end date) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when
rp_election_text like '%Runoff%' then array_to_string(
array[
'48-Hour Report Period of Independent Expenditures begins for the',
rp_election_text,
'(if necessary). Ends on',
to_char(ie_48hour_end, 'Mon DD, YYYY') || '.'
], ' ')
else
array_to_string(
array[
'48-Hour Report Period of Independent Expenditures begins for the',
rp_election_text || '. Ends on',
to_char(ie_48hour_end, 'Mon DD, YYYY') || '.'
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_48hr_text(rp_election_text text, ie_48hour_end date) OWNER TO fec;
--
-- Name: create_election_description(text, text, text[], text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_election_description(election_type text, office_sought text, contest text[], party text, election_notes text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(contest, 1) >= 3 then array_to_string(
array[
party,
office_sought,
expand_election_type_plurals(election_type),
election_notes,
'in multiple states'
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
party,
office_sought,
expand_election_type(election_type),
election_notes
], ' ')
when array_length(contest, 1) = 1 then array_to_string(
array[
array_to_string(contest, ', '),
party,
office_sought,
expand_election_type(election_type),
election_notes
], ' ')
else array_to_string(
array[
array_to_string(contest, ', '),
party,
office_sought,
expand_election_type_plurals(election_type),
election_notes
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_election_description(election_type text, office_sought text, contest text[], party text, election_notes text) OWNER TO fec;
--
-- Name: create_election_summary(text, text, text[], text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_election_summary(election_type text, office_sought text, contest text[], party text, election_notes text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(contest, 1) >= 3 then array_to_string(
array[
party,
office_sought,
expand_election_type_plurals(election_type),
election_notes,
'in',
array_to_string(contest, ', ')
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
party,
office_sought,
expand_election_type(election_type),
election_notes
], ' ')
when array_length(contest, 1) = 1 then array_to_string(
array[
contest[0],
party,
office_sought,
expand_election_type(election_type),
election_notes
], ' ')
else array_to_string(
array[
array_to_string(contest, ', '),
party,
office_sought,
expand_election_type_plurals(election_type),
election_notes
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_election_summary(election_type text, office_sought text, contest text[], party text, election_notes text) OWNER TO fec;
--
-- Name: create_electioneering_text(text, date); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_electioneering_text(rp_election_text text, ec_end date) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when
rp_election_text like '%Runoff%' then array_to_string(
array[
'Electioneering Communications Period begins for the',
rp_election_text,
', if needed. Ends on Election Day-',
to_char(ec_end, 'Day, Mon DD, YYYY') || '.'
], ' ')
else
array_to_string(
array[
'Electioneering Communications Period begins for the',
rp_election_text || '. Ends on Election Day-',
to_char(ec_end, 'Day, Mon DD, YYYY') || '.'
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_electioneering_text(rp_election_text text, ec_end date) OWNER TO fec;
--
-- Name: create_itemized_schedule_partition(text, numeric, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_itemized_schedule_partition(schedule text, start_year numeric, end_year numeric) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
child_table_name TEXT;
master_table_name TEXT = format('ofec_sched_%s_master_tmp', schedule);
BEGIN
FOR cycle IN start_year..end_year BY 2 LOOP
child_table_name = format('ofec_sched_%s_%s_%s_tmp', schedule, cycle - 1, cycle);
EXECUTE format('CREATE TABLE %I (
CHECK ( two_year_transaction_period in (%s, %s) )
) INHERITS (%I)', child_table_name, cycle - 1, cycle, master_table_name);
END LOOP;
END
$$;
ALTER FUNCTION public.create_itemized_schedule_partition(schedule text, start_year numeric, end_year numeric) OWNER TO fec;
--
-- Name: create_report_description(text, text, text, text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_report_description(office_sought text, report_type text, rpt_tp_desc text, contest text[], election_notes text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null and array_length(contest, 1) = 0 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
election_notes,
'Report in Multiple States is Due'
], ' ')
when rpt_tp_desc is null and array_length(contest, 1) > 4 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
election_notes,
'Report is Due'
], ' ')
when rpt_tp_desc is null then
array_to_string(
array[
array_to_string(contest, ', ') || ':',
expand_office_description(office_sought),
report_type,
election_notes,
'Report is Due'
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due'
], ' ')
when array_length(contest, 1) > 4 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report (for Multiple States) is Due'
], ' ')
else
array_to_string(
array[
array_to_string(contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due'
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_report_description(office_sought text, report_type text, rpt_tp_desc text, contest text[], election_notes text) OWNER TO fec;
--
-- Name: create_report_summary(text, text, text, text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_report_summary(office_sought text, report_type text, rpt_tp_desc text, report_contest text[], election_notes text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null and array_length(report_contest, 1) = 0 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
election_notes,
'Report is Due'
], ' ')
when rpt_tp_desc is null and array_length(report_contest, 1) < 3 and array_length(report_contest, 1) >= 1 then
array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
report_type,
election_notes,
'Report is Due'
], ' ')
when rpt_tp_desc is null then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
election_notes,
'Report is Due. States:',
array_to_string(report_contest, ', ')
], ' ')
when array_length(report_contest, 1) = 1 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due'
], ' ')
when array_length(report_contest, 1) <= 3 then array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due'
], ' ')
when array_length(report_contest, 1) > 4 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due. States:',
array_to_string(report_contest, ', ')
], ' ')
else
array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
election_notes,
'Report is Due'
], ' ')
end;
end
$$;
ALTER FUNCTION public.create_report_summary(office_sought text, report_type text, rpt_tp_desc text, report_contest text[], election_notes text) OWNER TO fec;
--
-- Name: create_reporting_link(timestamp without time zone); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION create_reporting_link(due_date timestamp without time zone) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when extract (year from due_date) > 2010 and
extract (year from due_date) <= extract (year from current_date) then
'http://www.fec.gov/info/report_dates_' || extract (year from due_date::timestamp) || '.shtml'
else
null::text
end;
end
$$;
ALTER FUNCTION public.create_reporting_link(due_date timestamp without time zone) OWNER TO fec;
--
-- Name: date_or_null(integer); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION date_or_null(value integer) RETURNS date
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return to_date(value::text, 'YYYYMMDD');
exception
when others then return null::date;
end
$$;
ALTER FUNCTION public.date_or_null(value integer) OWNER TO fec;
--
-- Name: date_or_null(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION date_or_null(value text, format text) RETURNS date
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return to_date(value, format);
exception
when others then return null::date;
end
$$;
ALTER FUNCTION public.date_or_null(value text, format text) OWNER TO fec;
--
-- Name: describe_cal_event(text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION describe_cal_event(event_name text, summary text, description text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when event_name in ('Litigation', 'AOs and Rules', 'Conferences') then
summary || ' ' || description
else
description
end;
end
$$;
ALTER FUNCTION public.describe_cal_event(event_name text, summary text, description text) OWNER TO fec;
--
-- Name: disbursement_purpose(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION disbursement_purpose(code text, description text) RETURNS character varying
LANGUAGE plpgsql IMMUTABLE
AS $$
declare
cleaned varchar = regexp_replace(description, '[^a-zA-Z0-9]+', ' ');
begin
return case
when code in ('24G') then 'TRANSFERS'
when code in ('24K') then 'CONTRIBUTIONS'
when code in ('20C', '20F', '20G', '20R', '22J', '22K', '22L', '22U') then 'LOAN-REPAYMENTS'
when code in ('17R', '20Y', '21Y', '22R', '22Y', '22Z', '23Y', '28L', '40T', '40Y', '40Z', '41T', '41Y', '41Z', '42T', '42Y', '42Z') then 'REFUNDS'
when cleaned ~* 'salary|overhead|rent|postage|office supplies|office equipment|furniture|ballot access fees|petition drive|party fee|legal fee|accounting fee' then 'ADMINISTRATIVE'
when cleaned ~* 'travel reimbursement|commercial carrier ticket|reimbursement for use of private vehicle|advance payments? for corporate aircraft|lodging|meal' then 'TRAVEL'
when cleaned ~* 'direct mail|fundraising event|mailing list|consultant fee|call list|invitations including printing|catering|event space rental' then 'FUNDRAISING'
when cleaned ~* 'general public advertising|radio|television|print|related production costs|media' then 'ADVERTISING'
when cleaned ~* 'opinion poll' then 'POLLING'
when cleaned ~* 'button|bumper sticker|brochure|mass mailing|pen|poster|balloon' then 'MATERIALS'
when cleaned ~* 'candidate appearance|campaign rall(y|ies)|town meeting|phone bank|catering|get out the vote|canvassing|driving voters to polls' then 'EVENTS'
when cleaned ~* 'contributions? to federal candidate|contributions? to federal political committee|donations? to nonfederal candidate|donations? to nonfederal committee' then 'CONTRIBUTIONS'
else 'OTHER'
end;
end
$$;
ALTER FUNCTION public.disbursement_purpose(code text, description text) OWNER TO fec;
--
-- Name: disbursement_purpose(character varying, character varying); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION disbursement_purpose(code character varying, description character varying) RETURNS character varying
LANGUAGE plpgsql
AS $$
declare
cleaned varchar = regexp_replace(description, '[^a-zA-Z0-9]+', ' ');
begin
return case
when code in ('24G') then 'TRANSFERS'
when code in ('24K') then 'CONTRIBUTIONS'
when code in ('20C', '20F', '20G', '20R', '22J', '22K', '22L', '22U') then 'LOAN-REPAYMENTS'
when code in ('17R', '20Y', '21Y', '22R', '22Y', '22Z', '23Y', '28L', '40T', '40Y', '40Z', '41T', '41Y', '41Z', '42T', '42Y', '42Z') then 'REFUNDS'
when cleaned ~* 'salary|overhead|rent|postage|office supplies|office equipment|furniture|ballot access fees|petition drive|party fee|legal fee|accounting fee' then 'ADMINISTRATIVE'
when cleaned ~* 'travel reimbursement|commercial carrier ticket|reimbursement for use of private vehicle|advance payments? for corporate aircraft|lodging|meal' then 'TRAVEL'
when cleaned ~* 'direct mail|fundraising event|mailing list|consultant fee|call list|invitations including printing|catering|event space rental' then 'FUNDRAISING'
when cleaned ~* 'general public advertising|radio|television|print|related production costs|media' then 'ADVERTISING'
when cleaned ~* 'opinion poll' then 'POLLING'
when cleaned ~* 'button|bumper sticker|brochure|mass mailing|pen|poster|balloon' then 'MATERIALS'
when cleaned ~* 'candidate appearance|campaign rall(y|ies)|town meeting|phone bank|catering|get out the vote|canvassing|driving voters to polls' then 'EVENTS'
when cleaned ~* 'contributions? to federal candidate|contributions? to federal political committee|donations? to nonfederal candidate|donations? to nonfederal committee' then 'CONTRIBUTIONS'
else 'OTHER'
end;
end
$$;
ALTER FUNCTION public.disbursement_purpose(code character varying, description character varying) OWNER TO fec;
--
-- Name: drop_old_itemized_schedule_a_indexes(numeric, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION drop_old_itemized_schedule_a_indexes(start_year numeric, end_year numeric) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
child_table_root TEXT;
BEGIN
FOR cycle in start_year..end_year BY 2 LOOP
child_table_root = format('ofec_sched_a_%s_%s', cycle - 1, cycle);
EXECUTE format('DROP INDEX IF EXISTS idx_%s_contributor_employer_text', child_table_root);
EXECUTE format('DROP INDEX IF EXISTS idx_%s_contributor_name_text', child_table_root);
EXECUTE format('DROP INDEX IF EXISTS idx_%s_contributor_occupation_text', child_table_root);
END LOOP;
END
$$;
ALTER FUNCTION public.drop_old_itemized_schedule_a_indexes(start_year numeric, end_year numeric) OWNER TO fec;
--
-- Name: drop_old_itemized_schedule_b_indexes(numeric, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION drop_old_itemized_schedule_b_indexes(start_year numeric, end_year numeric) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
child_table_root TEXT;
BEGIN
FOR cycle in start_year..end_year BY 2 LOOP
child_table_root = format('ofec_sched_a_%s_%s', cycle - 1, cycle);
EXECUTE format('DROP INDEX IF EXISTS idx_%s_recipient_name_text', child_table_root);
EXECUTE format('DROP INDEX IF EXISTS idx_%s_disbursement_description_text', child_table_root);
END LOOP;
END
$$;
ALTER FUNCTION public.drop_old_itemized_schedule_b_indexes(start_year numeric, end_year numeric) OWNER TO fec;
--
-- Name: election_duration(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION election_duration(office text) RETURNS integer
LANGUAGE plpgsql
AS $$
begin
return case office
when 'S' then 6
when 'P' then 4
else 2
end;
end
$$;
ALTER FUNCTION public.election_duration(office text) OWNER TO fec;
--
-- Name: expand_candidate_incumbent(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_candidate_incumbent(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'I' then 'Incumbent'
when 'C' then 'Challenger'
when 'O' then 'Open seat'
else null
end;
end
$$;
ALTER FUNCTION public.expand_candidate_incumbent(acronym text) OWNER TO fec;
--
-- Name: expand_candidate_status(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_candidate_status(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'C' then 'Candidate'
when 'F' then 'Future candidate'
when 'N' then 'Not yet a candidate'
when 'P' then 'Prior candidate'
else null
end;
end
$$;
ALTER FUNCTION public.expand_candidate_status(acronym text) OWNER TO fec;
--
-- Name: expand_committee_designation(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_committee_designation(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'A' then 'Authorized by a candidate'
when 'J' then 'Joint fundraising committee'
when 'P' then 'Principal campaign committee'
when 'U' then 'Unauthorized'
when 'B' then 'Lobbyist/Registrant PAC'
when 'D' then 'Leadership PAC'
else null
end;
end
$$;
ALTER FUNCTION public.expand_committee_designation(acronym text) OWNER TO fec;
--
-- Name: expand_committee_type(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_committee_type(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'P' then 'Presidential'
when 'H' then 'House'
when 'S' then 'Senate'
when 'C' then 'Communication Cost'
when 'D' then 'Delegate Committee'
when 'E' then 'Electioneering Communication'
when 'I' then 'Independent Expenditor (Person or Group)'
when 'N' then 'PAC - Nonqualified'
when 'O' then 'Super PAC (Independent Expenditure-Only)'
when 'Q' then 'PAC - Qualified'
when 'U' then 'Single Candidate Independent Expenditure'
when 'V' then 'PAC with Non-Contribution Account - Nonqualified'
when 'W' then 'PAC with Non-Contribution Account - Qualified'
when 'X' then 'Party - Nonqualified'
when 'Y' then 'Party - Qualified'
when 'Z' then 'National Party Nonfederal Account'
else null
end;
end
$$;
ALTER FUNCTION public.expand_committee_type(acronym text) OWNER TO fec;
--
-- Name: expand_document(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_document(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when '2' then '24 Hour Contribution Notice'
when '4' then '48 Hour Contribution Notice'
when 'A' then 'Debt Settlement Statement'
when 'B' then 'Acknowledgment of Receipt of Debt Settlement Statement'
when 'C' then 'RFAI: Debt Settlement First Notice'
when 'D' then 'Commission Debt Settlement Review'
when 'E' then 'Commission Response TO Debt Settlement Request'
when 'F' then 'Administrative Termination'
when 'G' then 'Debt Settlement Plan Amendment'
when 'H' then 'Disavowal Notice'
when 'I' then 'Disavowal Response'
when 'J' then 'Conduit Report'
when 'K' then 'Termination Approval'
when 'L' then 'Repeat Non-Filer Notice'
when 'M' then 'Filing Frequency Change Notice'
when 'N' then 'Paper Amendment to Electronic Report'
when 'O' then 'Acknowledgment of Filing Frequency Change'
when 'S' then 'RFAI: Debt Settlement Second'
when 'T' then 'Miscellaneous Report TO FEC'
when 'V' then 'Repeat Violation Notice (441A OR 441B)'
when 'P' then 'Notice of Paper Filing'
when 'R' then 'F3L Filing Frequency Change Notice'
when 'Q' then 'Acknowledgment of F3L Filing Frequency Change'
when 'U' then 'Unregistered Committee Notice'
else null
end;
end
$$;
ALTER FUNCTION public.expand_document(acronym text) OWNER TO fec;
--
-- Name: expand_election_type(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_election_type(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'P' then 'Primary Election'
when 'PR' then 'Primary Runoff Election'
when 'SP' then 'Special Primary Election'
when 'SPR' then 'Special Primary Runoff Election'
when 'G' then 'General Election'
when 'GR' then 'General Runoff Election'
when 'SG' then 'Special General Election'
when 'SGR' then 'Special General Runoff Election'
when 'O' then 'Other'
when 'C' then 'Caucus or Convention'
when 'CAU' then 'Caucus'
when 'CON' then 'Convention'
when 'SC' then 'Special Convention'
when 'R' then 'Runoff Election'
when 'SR' then 'Special Runoff Election'
when 'S' then 'Special Election'
when 'E' then 'Recount Election'
else null
end;
end
$$;
ALTER FUNCTION public.expand_election_type(acronym text) OWNER TO fec;
--
-- Name: expand_election_type_caucus_convention_clean(text, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_election_type_caucus_convention_clean(trc_election_type_id text, trc_election_id numeric) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when trc_election_id in (1978, 1987, 2020, 2023, 2032, 2041, 2052, 2065, 2100, 2107, 2144, 2157, 2310, 2313, 2314, 2316, 2321, 2323, 2325, 2326, 2328, 2338, 2339, 2341)
then 'CAU'
when trc_election_id in (2322, 2329, 2330, 2331, 2334, 2335, 2336, 2337, 2340)
then 'CON'
else
trc_election_type_id
end;
end
$$;
ALTER FUNCTION public.expand_election_type_caucus_convention_clean(trc_election_type_id text, trc_election_id numeric) OWNER TO fec;
--
-- Name: expand_election_type_plurals(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_election_type_plurals(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'P' then 'Primary Elections'
when 'PR' then 'Primary Runoff Elections'
when 'SP' then 'Special Primary Elections'
when 'SPR' then 'Special Primary Runoff Elections'
when 'G' then 'General Elections'
when 'GR' then 'General Runoff Elections'
when 'SG' then 'Special General Elections'
when 'SGR' then 'Special General Runoff Elections'
when 'O' then 'Other'
when 'C' then 'Caucuses or Conventions'
when 'CAU' then 'Caucuses'
when 'CON' then 'Conventions'
when 'SC' then 'Special Conventions'
when 'R' then 'Runoff Elections'
when 'SR' then 'Special Runoff Elections'
when 'S' then 'Special Elections'
when 'E' then 'Recount Elections'
else null
end;
end
$$;
ALTER FUNCTION public.expand_election_type_plurals(acronym text) OWNER TO fec;
--
-- Name: expand_line_number(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_line_number(form_type text, line_number text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case form_type
when 'F3X' then expand_line_number_f3x(line_number)
when 'F3P' then expand_line_number_f3p(line_number)
when 'F3' then expand_line_number_f3(line_number)
else null
end;
end
$$;
ALTER FUNCTION public.expand_line_number(form_type text, line_number text) OWNER TO fec;
--
-- Name: expand_line_number_f3(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_line_number_f3(line_number text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case line_number
when '11A1' then 'Contributions From Individuals/Persons Other Than Political Committees'
when '11AI' then 'Contributions From Individuals/Persons Other Than Political Committees'
when '11B' then 'Contributions From Political Party Committees'
when '11C' then 'Contributions From Other Political Committees'
when '11D' then 'Contributions From the Candidate'
when '12' then 'Transfers from authorized committees'
when '13' then 'Loans Received'
when '13A' then 'Loans Received from the Candidate'
when '13B' then 'All Other Loans Received'
when '14' then 'Offsets to Operating Expenditures'
when '15' then 'Total Amount of Other Receipts'
when '17' then 'Operating Expenditures'
when '18' then 'Transfers to Other Authorized Committees'
when '19' then 'Loan Repayments'
when '19A' then 'Loan Repayments Made or Guaranteed by Candidate'
when '19B' then 'Other Loan Repayments'
when '20A' then 'Refunds of Contributions to Individuals/Persons Other Than Political Committees'
when '20B' then 'Refunds of Contributions to Political Party Committees'
when '20C' then 'Refunds of Contributions to Other Political Committees'
when '21' then 'Other Disbursements'
else null
end;
end
$$;
ALTER FUNCTION public.expand_line_number_f3(line_number text) OWNER TO fec;
--
-- Name: expand_line_number_f3p(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_line_number_f3p(line_number text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case line_number
when '16' then 'Federal Funds'
when '17A' then 'Contributions From Individuals/Persons Other Than Political Committees'
when '17B' then 'Contributions From Political Party Committees'
when '17C' then 'Contributions From Other Political Committees'
when '17D' then 'Contributions From the Candidate'
when '18' then 'Transfers From Other Authorized Committees'
when '19A' then 'Loans Received From or Guaranteed by Candidate'
when '19B' then 'Other Loans'
when '20A' then 'Offsets To Expenditures - Operating'
when '20B' then 'Offsets To Expenditures - Fundraising'
when '20C' then 'Offsets To Expenditures - Legal and Accounting'
when '21' then 'Other Receipts'
when '23' then 'Operating Expenditures'
when '24' then 'Transfers to Other Authorized Committees'
when '25' then 'Fundraising Disbursements'
when '26' then 'Exempt Legal and Accounting Disbursements'
when '27A' then 'Loan Repayments Made or Guaranteed by Candidate'
when '27B' then 'Other Loan Repayments'
when '28A' then 'Refunds of Contributions to Individuals/Persons Other Than Political Committees'
when '28B' then 'Refunds of Contributions to Political Party Committees'
when '28C' then 'Refunds of Contributions to Other Political Committees'
when '29' then 'Other Disbursements'
else null
end;
end
$$;
ALTER FUNCTION public.expand_line_number_f3p(line_number text) OWNER TO fec;
--
-- Name: expand_line_number_f3x(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_line_number_f3x(line_number text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case line_number
when '11A1' then 'Contributions From Individuals/Persons Other Than Political Committees'
when '11AI' then 'Contributions From Individuals/Persons Other Than Political Committees'
when '11B' then 'Contributions From Political Party Committees'
when '11C' then 'Contributions From Other Political Committees'
when '11D' then 'Contributions From the Candidate'
when '12' then 'Transfers from Authorized Committees'
when '13' then 'Loans Received'
when '14' then 'Loan Repayments Received'
when '15' then 'Offsets To Operating Expenditures '
when '16' then 'Refunds of Contributions Made to Federal Candidates and Other Political Committees'
when '17' then 'Other Federal Receipts (Dividends, Interest, etc.).'
when 'SL1A' then 'Non-Federal Receipts from Persons Levin (L-1A)'
when 'SL2' then 'Non-Federal Other Receipt Levin (L-2)'
when '21' then 'Operating Expenditures'
when '21B' then 'Other Federal Operating Expenditures'
when '22' then 'Transfers to Affiliated/Other Party Committees'
when '23' then 'Contributions to Federal Candidates/Committees and Other Political Committees'
when '24' then 'Independent Expenditures'
when '25' then 'Coordinated Party Expenditures'
when '26' then 'Loan Repayments Made'
when '27' then 'Loans Made'
when '28A' then 'Refunds of Contributions Made to Individuals/Persons Other Than Political Committees'
when '28B' then 'Refunds of Contributions to Political Party Committees'
when '28C' then 'Refunds of Contributions to Other Political Committees'
when '28D' then 'Total Contributions Refunds'
when '29' then 'Other Disbursements'
when '30' then 'Federal Election Activity'
when '30A' then 'Allocated Federal Election Activity'
when '30B' then 'Federal Election Activity Paid Entirely With Federal Funds'
when 'SL4A' then 'Levin Funds'
when 'SL4B' then 'Levin Funds'
when 'SL4C' then 'Levin Funds'
when 'SL4D' then 'Levin Funds'
when 'SL5' then 'Levin Funds'
else null
end;
end
$$;
ALTER FUNCTION public.expand_line_number_f3x(line_number text) OWNER TO fec;
--
-- Name: expand_office(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_office(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'P' then 'President'
when 'S' then 'Senate'
when 'H' then 'House'
end;
end
$$;
ALTER FUNCTION public.expand_office(acronym text) OWNER TO fec;
--
-- Name: expand_office_description(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_office_description(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'P' then 'Presidential'
when 'S' then 'Senate'
when 'H' then 'House'
else null
end;
end
$$;
ALTER FUNCTION public.expand_office_description(acronym text) OWNER TO fec;
--
-- Name: expand_organization_type(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_organization_type(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'C' then 'Corporation'
when 'L' then 'Labor Organization'
when 'M' then 'Membership Organization'
when 'T' then 'Trade Association'
when 'V' then 'Cooperative'
when 'W' then 'Corporation w/o capital stock'
else null
end;
end
$$;
ALTER FUNCTION public.expand_organization_type(acronym text) OWNER TO fec;
--
-- Name: expand_state(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION expand_state(acronym text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case acronym
when 'AK' then 'Alaska'
when 'AL' then 'Alabama'
when 'AS' then 'American Samoa'
when 'AR' then 'Arkansas'
when 'AZ' then 'Arizona'
when 'CA' then 'California'
when 'CO' then 'Colorado'
when 'CT' then 'Connecticut'
when 'DC' then 'District Of Columbia'
when 'DE' then 'Delaware'
when 'FL' then 'Florida'
when 'GA' then 'Georgia'
when 'GU' then 'Guam'
when 'HI' then 'Hawaii'
when 'IA' then 'Iowa'
when 'ID' then 'Idaho'
when 'IL' then 'Illinois'
when 'IN' then 'Indiana'
when 'KS' then 'Kansas'
when 'KY' then 'Kentucky'
when 'LA' then 'Louisiana'
when 'MA' then 'Massachusetts'
when 'MD' then 'Maryland'
when 'ME' then 'Maine'
when 'MI' then 'Michigan'
when 'MN' then 'Minnesota'
when 'MO' then 'Missouri'
when 'MS' then 'Mississippi'
when 'MT' then 'Montana'
when 'NC' then 'North Carolina'
when 'ND' then 'North Dakota'
when 'NE' then 'Nebraska'
when 'NH' then 'New Hampshire'
when 'NJ' then 'New Jersey'
when 'NM' then 'New Mexico'
when 'NV' then 'Nevada'
when 'NY' then 'New York'
when 'MP' then 'Northern Mariana Islands'
when 'OH' then 'Ohio'
when 'OK' then 'Oklahoma'
when 'OR' then 'Oregon'
when 'PA' then 'Pennsylvania'
when 'PR' then 'Puerto Rico'
when 'RI' then 'Rhode Island'
when 'SC' then 'South Carolina'
when 'SD' then 'South Dakota'
when 'TN' then 'Tennessee'
when 'TX' then 'Texas'
when 'UT' then 'Utah'
when 'VI' then 'Virgin Islands'
when 'VA' then 'Virginia'
when 'VT' then 'Vermont'
when 'WA' then 'Washington'
when 'WI' then 'Wisconsin'
when 'WV' then 'West Virginia'
when 'WY' then 'Wyoming'
else null
end;
end
$$;
ALTER FUNCTION public.expand_state(acronym text) OWNER TO fec;
--
-- Name: fec_vsum_f57_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION fec_vsum_f57_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
if tg_op = 'INSERT' then
delete from fec_vsum_f57_queue_new where sub_id = new.sub_id;
insert into fec_vsum_f57_queue_new values (new.*);
return new;
elsif tg_op = 'UPDATE' then
delete from fec_vsum_f57_queue_new where sub_id = new.sub_id;
delete from fec_vsum_f57_queue_old where sub_id = old.sub_id;
insert into fec_vsum_f57_queue_new values (new.*);
insert into fec_vsum_f57_queue_old values (old.*);
return new;
elsif tg_op = 'DELETE' then
delete from fec_vsum_f57_queue_old where sub_id = old.sub_id;
insert into fec_vsum_f57_queue_old values (old.*);
return old;
end if;
end
$$;
ALTER FUNCTION public.fec_vsum_f57_update_queues() OWNER TO fec;
--
-- Name: filings_year(numeric, date); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION filings_year(report_year numeric, receipt_date date) RETURNS integer
LANGUAGE plpgsql
AS $$
begin
return case
when report_year != 0 then report_year
else date_part('year', receipt_date)
end;
end
$$;
ALTER FUNCTION public.filings_year(report_year numeric, receipt_date date) OWNER TO fec;
--
-- Name: finalize_itemized_schedule_a_tables(numeric, numeric, boolean, boolean); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION finalize_itemized_schedule_a_tables(start_year numeric, end_year numeric, p_use_tmp boolean, p_create_primary_key boolean) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
child_table_root TEXT;
child_table_name TEXT;
index_name_suffix TEXT;
BEGIN
FOR cycle in start_year..end_year BY 2 LOOP
child_table_root = format('ofec_sched_a_%s_%s', cycle - 1, cycle);
IF p_use_tmp THEN
child_table_name = format('ofec_sched_a_%s_%s_tmp', cycle - 1, cycle);
index_name_suffix = '_tmp';
ELSE
child_table_name = format('ofec_sched_a_%s_%s', cycle - 1, cycle);
index_name_suffix = '';
END IF;
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_image_num_dt%s ON %I (image_num, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_st_dt%s ON %I (contbr_st, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_city_dt%s ON %I (contbr_city, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_zip_dt%s ON %I (contbr_zip, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_is_individual_dt%s ON %I (is_individual, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_clean_contbr_id_dt%s ON %I (clean_contbr_id, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_amount_dt%s ON %I (contb_receipt_amt, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_cmte_id_dt%s ON %I (cmte_id, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_line_num_dt%s ON %I (line_num, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_two_year_transaction_period_dt%s ON %I (two_year_transaction_period, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_name_text_dt%s ON %I USING GIN (contributor_name_text, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_emp_text_dt%s ON %I USING GIN (contributor_employer_text, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_occ_text_dt%s ON %I USING GIN (contributor_occupation_text, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_image_num_amt%s ON %I (image_num, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_st_amt%s ON %I (contbr_st, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_city_amt%s ON %I (contbr_city, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contbr_zip_amt%s ON %I (contbr_zip, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_is_individual_amt%s ON %I (is_individual, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_clean_contbr_id_amt%s ON %I (clean_contbr_id, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_date_amt%s ON %I (contb_receipt_dt, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_cmte_id_amt%s ON %I (cmte_id, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_line_num_amt%s ON %I (line_num, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_two_year_transaction_period_amt%s ON %I (two_year_transaction_period, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_name_text_amt%s ON %I USING GIN (contributor_name_text, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_emp_text_amt%s ON %I USING GIN (contributor_employer_text, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_contrib_occ_text_amt%s ON %I USING GIN (contributor_occupation_text, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_rpt_yr%s ON %I (rpt_yr)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_pg_date%s ON %I (pg_date)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_entity_tp%s ON %I (entity_tp)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_amount%s ON %I (contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_cmte_id_amount%s ON %I (cmte_id, contb_receipt_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_cmte_id_date%s ON %I (cmte_id, contb_receipt_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE UNIQUE INDEX IF NOT EXISTS idx_%s_sub_id%s ON %I (sub_id)', child_table_root, index_name_suffix, child_table_name);
IF p_create_primary_key THEN
EXECUTE format('ALTER TABLE %I ADD PRIMARY KEY USING INDEX idx_%s_sub_id%s', child_table_name, child_table_root, index_name_suffix);
END IF;
EXECUTE format('ALTER TABLE %I ALTER COLUMN contbr_st SET STATISTICS 1000', child_table_name);
EXECUTE format('ANALYZE %I', child_table_name);
END LOOP;
END
$$;
ALTER FUNCTION public.finalize_itemized_schedule_a_tables(start_year numeric, end_year numeric, p_use_tmp boolean, p_create_primary_key boolean) OWNER TO fec;
--
-- Name: finalize_itemized_schedule_b_tables(numeric, numeric, boolean, boolean); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION finalize_itemized_schedule_b_tables(start_year numeric, end_year numeric, p_use_tmp boolean, p_create_primary_key boolean) RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
child_table_root TEXT;
child_table_name TEXT;
index_name_suffix TEXT;
BEGIN
FOR cycle in start_year..end_year BY 2 LOOP
child_table_root = format('ofec_sched_b_%s_%s', cycle - 1, cycle);
IF p_use_tmp THEN
child_table_name = format('ofec_sched_b_%s_%s_tmp', cycle - 1, cycle);
index_name_suffix = '_tmp';
ELSE
child_table_name = format('ofec_sched_b_%s_%s', cycle - 1, cycle);
index_name_suffix = '';
END IF;
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_image_num_dt%s ON %I (image_num, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_clean_recipient_cmte_id_dt%s ON %I (clean_recipient_cmte_id, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recipient_city_dt%s ON %I (recipient_city, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recipient_st_dt%s ON %I (recipient_st, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_rpt_yr_dt%s ON %I (rpt_yr, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_two_year_transaction_period_dt%s ON %I (two_year_transaction_period, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_line_num_dt%s ON %I (line_num, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_amount_dt%s ON %I (disb_amt, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_cmte_id_dt%s ON %I (cmte_id, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recip_name_text_dt%s ON %I USING GIN (recipient_name_text, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_disb_desc_text_dt%s ON %I USING GIN (disbursement_description_text, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_image_num_amt%s ON %I (image_num, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_clean_recipient_cmte_id_amt%s ON %I (clean_recipient_cmte_id, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recipient_city_amt%s ON %I (recipient_city, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recipient_st_amt%s ON %I (recipient_st, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_rpt_yr_amt%s ON %I (rpt_yr, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_two_year_transaction_period_amt%s ON %I (two_year_transaction_period, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_line_num_amt%s ON %I (line_num, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_sub_id_date_amt%s ON %I (disb_dt, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_cmte_id_amt%s ON %I (cmte_id, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_recip_name_text_amt%s ON %I USING GIN (recipient_name_text, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_disb_desc_text_amt%s ON %I USING GIN (disbursement_description_text, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_cmte_id_disb_amt_sub_id%s ON %I (cmte_id, disb_amt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_cmte_id_disb_dt_sub_id%s ON %I (cmte_id, disb_dt, sub_id)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE INDEX IF NOT EXISTS idx_%s_pg_date%s ON %I (pg_date)', child_table_root, index_name_suffix, child_table_name);
EXECUTE format('CREATE UNIQUE INDEX IF NOT EXISTS idx_%s_sub_id%s ON %I (sub_id)', child_table_root, index_name_suffix, child_table_name);
IF p_create_primary_key THEN
EXECUTE format('ALTER TABLE %I ADD PRIMARY KEY USING INDEX idx_%s_sub_id%s', child_table_name, child_table_root, index_name_suffix);
END IF;
EXECUTE format('ALTER TABLE %I ALTER COLUMN recipient_st SET STATISTICS 1000', child_table_name);
EXECUTE format('ANALYZE %I', child_table_name);
END LOOP;
END
$$;
ALTER FUNCTION public.finalize_itemized_schedule_b_tables(start_year numeric, end_year numeric, p_use_tmp boolean, p_create_primary_key boolean) OWNER TO fec;
--
-- Name: first_agg(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: openfec_read
--
CREATE FUNCTION first_agg(anyelement, anyelement) RETURNS anyelement
LANGUAGE sql IMMUTABLE STRICT
AS $_$
SELECT $1;
$_$;
ALTER FUNCTION public.first_agg(anyelement, anyelement) OWNER TO openfec_read;
--
-- Name: fix_party_spelling(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION fix_party_spelling(branch text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case branch
when 'Party/Non Pary' then 'Party/Non Party'
else branch
end;
end
$$;
ALTER FUNCTION public.fix_party_spelling(branch text) OWNER TO fec;
--
-- Name: generate_election_description(text, text, text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_election_description(election_type text, office_sought text, contest text[], party text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(contest, 1) >= 3 then array_to_string(
array[
party,
office_sought,
election_type,
'(for Multiple States)',
'is Held Today'
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
party,
office_sought,
election_type,
'is Held Today'
], ' ')
else array_to_string(
array[
array_to_string(contest, ', ') || ':',
party,
office_sought,
election_type,
'is Held Today'
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_election_description(election_type text, office_sought text, contest text[], party text) OWNER TO fec;
--
-- Name: generate_election_summary(text, text, text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_election_summary(election_type text, office_sought text, contest text[], party text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(contest, 1) >= 3 then array_to_string(
array[
party,
office_sought,
election_type,
'is Held Today',
'States:',
array_to_string(contest, ', ')
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
party,
office_sought,
election_type,
'is Held Today'
], ' ')
else array_to_string(
array[
array_to_string(contest, ', ') || ':',
party,
office_sought,
election_type,
'is Held Today'
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_election_summary(election_type text, office_sought text, contest text[], party text) OWNER TO fec;
--
-- Name: generate_election_title(text, text, text[], text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_election_title(trc_election_type_id text, office_sought text, election_states text[], party text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(election_states, 1) > 1 then array_to_string(
array[
party,
office_sought,
expand_election_type(trc_election_type_id),
'Multi-state'::text
], ' ')
else array_to_string(
array[
party,
office_sought,
expand_election_type(trc_election_type_id),
array_to_string(election_states, ', ')
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_election_title(trc_election_type_id text, office_sought text, election_states text[], party text) OWNER TO fec;
--
-- Name: generate_election_title(text, text, text[], text, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_election_title(trc_election_type_id text, office_sought text, contest text[], party text, trc_election_id numeric) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when array_length(contest, 1) > 1 then array_to_string(
array[
party,
office_sought,
expand_election_type_caucus_convention_clean(trc_election_type_id::text, trc_election_id::numeric),
'Multi-state'::text
], ' ')
else array_to_string(
array[
array_to_string(contest, ', '),
party,
office_sought,
expand_election_type_caucus_convention_clean(trc_election_type_id::text, trc_election_id::numeric)
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_election_title(trc_election_type_id text, office_sought text, contest text[], party text, trc_election_id numeric) OWNER TO fec;
--
-- Name: generate_report_description(text, text, text, text[]); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_report_description(office_sought text, report_type text, rpt_tp_desc text, contest text[]) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null and array_length(contest, 1) = 0 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report (for Multiple States) is Due Today'
], ' ')
when rpt_tp_desc is null and array_length(contest, 1) > 4 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report is Due Today'
], ' ')
when rpt_tp_desc is null then
array_to_string(
array[
array_to_string(contest, ', ') || ':',
expand_office_description(office_sought),
report_type,
'Report is Due Today'
], ' ')
when array_length(contest, 1) = 0 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today'
], ' ')
when array_length(contest, 1) > 4 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report (for Multiple States) is Due Today'
], ' ')
else
array_to_string(
array[
array_to_string(contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today'
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_report_description(office_sought text, report_type text, rpt_tp_desc text, contest text[]) OWNER TO fec;
--
-- Name: generate_report_summary(text, text, text, text[]); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION generate_report_summary(office_sought text, report_type text, rpt_tp_desc text, report_contest text[]) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null and array_length(report_contest, 1) = 0 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report is Due Today'
], ' ')
when rpt_tp_desc is null and array_length(report_contest, 1) < 3 and array_length(report_contest, 1) >= 1 then
array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
report_type,
'Report is Due Today'
], ' ')
when rpt_tp_desc is null then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report is Due Today. States:',
array_to_string(report_contest, ', ')
], ' ')
when array_length(report_contest, 1) = 1 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today'
], ' ')
when array_length(report_contest, 1) <= 3 then array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today'
], ' ')
when array_length(report_contest, 1) > 4 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today. States:',
array_to_string(report_contest, ', ')
], ' ')
else
array_to_string(
array[
array_to_string(report_contest, ', ') || ':',
expand_office_description(office_sought),
rpt_tp_desc,
'Report is Due Today'
], ' ')
end;
end
$$;
ALTER FUNCTION public.generate_report_summary(office_sought text, report_type text, rpt_tp_desc text, report_contest text[]) OWNER TO fec;
--
-- Name: get_cycle(numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION get_cycle(year numeric) RETURNS integer
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return year + year % 2;
end
$$;
ALTER FUNCTION public.get_cycle(year numeric) OWNER TO fec;
--
-- Name: get_partition_suffix(numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION get_partition_suffix(year numeric) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $$
BEGIN
IF year % 2 = 0 THEN
RETURN (year - 1)::TEXT || '_' || year::TEXT;
ELSE
RETURN year::TEXT || '_' || (year + 1)::TEXT;
END IF;
END
$$;
ALTER FUNCTION public.get_partition_suffix(year numeric) OWNER TO fec;
--
-- Name: get_projected_weekly_itemized_total(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION get_projected_weekly_itemized_total(schedule text) RETURNS integer
LANGUAGE plpgsql
AS $$
declare
weekly_total integer;
begin
execute 'select
(select count(*) from ofec_sched_' || schedule || '_master where pg_date > current_date - interval ''7 days'') +
(select count(*) from ofec_sched_' || schedule || '_queue_new) -
(select count(*) from ofec_sched_' || schedule || '_queue_old)'
into weekly_total;
return weekly_total;
end
$$;
ALTER FUNCTION public.get_projected_weekly_itemized_total(schedule text) OWNER TO fec;
--
-- Name: get_transaction_year(date, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION get_transaction_year(transaction_date date, report_year numeric) RETURNS smallint
LANGUAGE plpgsql IMMUTABLE
AS $$
declare
transaction_year numeric = coalesce(extract(year from transaction_date), report_year);
begin
return get_cycle(transaction_year);
end
$$;
ALTER FUNCTION public.get_transaction_year(transaction_date date, report_year numeric) OWNER TO fec;
--
-- Name: get_transaction_year(timestamp without time zone, numeric); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION get_transaction_year(transaction_date timestamp without time zone, report_year numeric) RETURNS smallint
LANGUAGE plpgsql IMMUTABLE
AS $$
declare
dah_date date = date(transaction_date);
begin
return get_transaction_year(dah_date, report_year);
end
$$;
ALTER FUNCTION public.get_transaction_year(transaction_date timestamp without time zone, report_year numeric) OWNER TO fec;
--
-- Name: image_pdf_url(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION image_pdf_url(image_number text) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return 'http://docquery.fec.gov/cgi-bin/fecimg/?' || image_number;
end
$$;
ALTER FUNCTION public.image_pdf_url(image_number text) OWNER TO fec;
--
-- Name: insert_sched_master(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION insert_sched_master() RETURNS trigger
LANGUAGE plpgsql
AS $_$
DECLARE
transaction_period_lower_guard SMALLINT = TG_ARGV[0]::SMALLINT - 1;
child_table_name TEXT;
BEGIN
IF new.two_year_transaction_period >= transaction_period_lower_guard THEN
child_table_name = replace(TG_TABLE_NAME, 'master', get_partition_suffix(new.two_year_transaction_period));
EXECUTE format('INSERT INTO %I VALUES ($1.*)', child_table_name)
USING new;
END IF;
RETURN NULL;
END
$_$;
ALTER FUNCTION public.insert_sched_master() OWNER TO fec;
--
-- Name: is_amended(integer, integer); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_amended(most_recent_file_number integer, file_number integer) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return not is_most_recent(most_recent_file_number, file_number);
end
$$;
ALTER FUNCTION public.is_amended(most_recent_file_number integer, file_number integer) OWNER TO fec;
--
-- Name: is_amended(integer, integer, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_amended(most_recent_file_number integer, file_number integer, form_type text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return case
when form_type = 'F99' then false
when form_type = 'FRQ' then false
else not is_most_recent(most_recent_file_number, file_number)
end;
end
$$;
ALTER FUNCTION public.is_amended(most_recent_file_number integer, file_number integer, form_type text) OWNER TO fec;
--
-- Name: is_coded_individual(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_coded_individual(receipt_type text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return coalesce(receipt_type, '') in ('10', '15', '15E', '15J', '30', '30T', '31', '31T', '32', '10J', '11', '11J', '30J', '31J', '32T', '32J');
end
$$;
ALTER FUNCTION public.is_coded_individual(receipt_type text) OWNER TO fec;
--
-- Name: is_earmark(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_earmark(memo_code text, memo_text text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (
coalesce(memo_code, '') = 'X' and
coalesce(memo_text, '') ~* 'earmark|earmk|ermk'
);
end
$$;
ALTER FUNCTION public.is_earmark(memo_code text, memo_text text) OWNER TO fec;
--
-- Name: is_electronic(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_electronic(image_number text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return case
when char_length(image_number) = 18 and substring(image_number from 9 for 1) = '9' then true
when char_length(image_number) = 11 and substring(image_number from 3 for 1) = '9' then true
when char_length(image_number) = 11 and substring(image_number from 3 for 2) = '02' then false
when char_length(image_number) = 11 and substring(image_number from 3 for 2) = '03' then false
else false
end;
end
$$;
ALTER FUNCTION public.is_electronic(image_number text) OWNER TO fec;
--
-- Name: is_individual(numeric, text, text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_individual(amount numeric, receipt_type text, line_number text, memo_code text, memo_text text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (
is_coded_individual(receipt_type) or
is_inferred_individual(amount, line_number, memo_code, memo_text)
);
end
$$;
ALTER FUNCTION public.is_individual(amount numeric, receipt_type text, line_number text, memo_code text, memo_text text) OWNER TO fec;
--
-- Name: is_individual(numeric, text, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_individual(amount numeric, receipt_type text, line_number text, memo_code text, memo_text text, contbr_id text, cmte_id text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (
(
is_coded_individual(receipt_type) or
is_inferred_individual(amount, line_number, memo_code, memo_text, contbr_id, cmte_id)
) and
is_not_committee(contbr_id, cmte_id, line_number)
);
end
$$;
ALTER FUNCTION public.is_individual(amount numeric, receipt_type text, line_number text, memo_code text, memo_text text, contbr_id text, cmte_id text) OWNER TO fec;
--
-- Name: is_inferred_individual(numeric, text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_inferred_individual(amount numeric, line_number text, memo_code text, memo_text text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (
amount < 200 and
coalesce(line_number, '') in ('11AI', '12', '17', '17A', '18') and
not is_earmark(memo_code, memo_text)
);
end
$$;
ALTER FUNCTION public.is_inferred_individual(amount numeric, line_number text, memo_code text, memo_text text) OWNER TO fec;
--
-- Name: is_inferred_individual(numeric, text, text, text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_inferred_individual(amount numeric, line_number text, memo_code text, memo_text text, contbr_id text, cmte_id text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (
amount < 200 and
coalesce(line_number, '') in ('11AI', '12', '17', '17A', '18') and
not is_earmark(memo_code, memo_text)
);
end
$$;
ALTER FUNCTION public.is_inferred_individual(amount numeric, line_number text, memo_code text, memo_text text, contbr_id text, cmte_id text) OWNER TO fec;
--
-- Name: is_most_recent(integer, integer); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_most_recent(most_recent_file_number integer, file_number integer) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return most_recent_file_number = file_number;
end
$$;
ALTER FUNCTION public.is_most_recent(most_recent_file_number integer, file_number integer) OWNER TO fec;
--
-- Name: is_most_recent(integer, integer, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_most_recent(most_recent_file_number integer, file_number integer, form_type text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return case
when form_type = 'F99' then true
when form_type = 'FRQ' then true
else most_recent_file_number = file_number
end;
end
$$;
ALTER FUNCTION public.is_most_recent(most_recent_file_number integer, file_number integer, form_type text) OWNER TO fec;
--
-- Name: is_not_committee(text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_not_committee(contbr_id text, cmte_id text, line_number text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return(
(
coalesce(contbr_id, '') != '' or
(coalesce(contbr_id, '') != '' and contbr_id = cmte_id)
) or
(not coalesce(line_number, '') in ('15E', '15J', '17'))
);
end
$$;
ALTER FUNCTION public.is_not_committee(contbr_id text, cmte_id text, line_number text) OWNER TO fec;
--
-- Name: is_unitemized(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION is_unitemized(memo_text text) RETURNS boolean
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return (coalesce(memo_text, '') ~* 'UNITEM');
end
$$;
ALTER FUNCTION public.is_unitemized(memo_text text) OWNER TO fec;
--
-- Name: last_agg(anyelement, anyelement); Type: FUNCTION; Schema: public; Owner: openfec_read
--
CREATE FUNCTION last_agg(anyelement, anyelement) RETURNS anyelement
LANGUAGE sql IMMUTABLE STRICT
AS $_$
SELECT $2;
$_$;
ALTER FUNCTION public.last_agg(anyelement, anyelement) OWNER TO openfec_read;
--
-- Name: last_day_of_month(timestamp without time zone); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION last_day_of_month(timestamp without time zone) RETURNS timestamp without time zone
LANGUAGE plpgsql
AS $_$
begin
return date_trunc('month', $1) + (interval '1 month - 1 day');
end
$_$;
ALTER FUNCTION public.last_day_of_month(timestamp without time zone) OWNER TO fec;
--
-- Name: means_filed(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION means_filed(image_number text) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return case
when is_electronic(image_number) then 'e-file'
else 'paper'
end;
end
$$;
ALTER FUNCTION public.means_filed(image_number text) OWNER TO fec;
--
-- Name: name_reports(text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION name_reports(office_sought text, report_type text, rpt_tp_desc text) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report'
], ' ')
else array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report'
], ' ')
end;
end
$$;
ALTER FUNCTION public.name_reports(office_sought text, report_type text, rpt_tp_desc text) OWNER TO fec;
--
-- Name: name_reports(text, text, text, text[]); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION name_reports(office_sought text, report_type text, rpt_tp_desc text, election_state text[]) RETURNS text
LANGUAGE plpgsql
AS $$
begin
return case
when rpt_tp_desc is null and array_length(election_state, 1) > 1 then
array_to_string(
array[
expand_office_description(office_sought),
report_type,
'Report Multi-state'
], ' ')
when rpt_tp_desc is null then
array_to_string(
array[
array_to_string(election_state, ', '),
expand_office_description(office_sought),
report_type
], ' ')
when array_length(election_state, 1) > 1 then array_to_string(
array[
expand_office_description(office_sought),
rpt_tp_desc,
'Report Multi-state'
], ' ')
else
array_to_string(
array[
array_to_string(election_state, ', '),
expand_office_description(office_sought),
rpt_tp_desc
], ' ')
end;
end
$$;
ALTER FUNCTION public.name_reports(office_sought text, report_type text, rpt_tp_desc text, election_state text[]) OWNER TO fec;
--
-- Name: ofec_f57_update_notice_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_f57_update_notice_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
if tg_op = 'INSERT' then
delete from public.ofec_f57_queue_new where sub_id = new.sub_id;
insert into public.ofec_f57_queue_new values (new.*);
return new;
elsif tg_op = 'UPDATE' then
delete from public.ofec_f57_queue_new where sub_id = new.sub_id;
delete from public.ofec_f57_queue_old where sub_id = old.sub_id;
insert into public.ofec_f57_queue_new values (new.*);
insert into public.ofec_f57_queue_old values (old.*);
return new;
elsif tg_op = 'DELETE' then
delete from public.ofec_f57_queue_old where sub_id = old.sub_id;
insert into public.ofec_f57_queue_old values (old.*);
return old;
end if;
end
$$;
ALTER FUNCTION public.ofec_f57_update_notice_queues() OWNER TO fec;
--
-- Name: ofec_sched_a_delete_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_delete_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
view_row public.fec_fitem_sched_a_vw%ROWTYPE;
begin
select into view_row * from public.fec_fitem_sched_a_vw where sub_id = old.sub_id;
if FOUND then
if view_row.election_cycle >= start_year then
delete from ofec_sched_a_queue_old where sub_id = view_row.sub_id;
insert into ofec_sched_a_queue_old values (view_row.*, current_timestamp, view_row.election_cycle);
end if;
end if;
if tg_op = 'DELETE' then
return old;
elsif tg_op = 'UPDATE' then
return new;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_a_delete_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_a_insert_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_insert_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
view_row public.fec_fitem_sched_a_vw%ROWTYPE;
begin
select into view_row * from public.fec_fitem_sched_a_vw where sub_id = new.sub_id;
if FOUND then
if view_row.election_cycle >= start_year then
delete from ofec_sched_a_queue_new where sub_id = view_row.sub_id;
insert into ofec_sched_a_queue_new values (view_row.*, current_timestamp, view_row.election_cycle);
end if;
end if;
RETURN NULL; -- result is ignored since this is an AFTER trigger
end
$$;
ALTER FUNCTION public.ofec_sched_a_insert_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_a_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_a
where sched_a_sk = any(select sched_a_sk from ofec_sched_a_queue_old)
;
insert into ofec_sched_a(
select distinct on (sched_a_sk)
new.*,
image_pdf_url(new.image_num) as pdf_url,
to_tsvector(new.contbr_nm) || to_tsvector(coalesce(new.contbr_id, ''))
as contributor_name_text,
to_tsvector(new.contbr_employer) as contributor_employer_text,
to_tsvector(new.contbr_occupation) as contributor_occupation_text,
is_individual(new.contb_receipt_amt, new.receipt_tp, new.line_num, new.memo_cd, new.memo_text)
as is_individual,
clean_repeated(new.contbr_id, new.cmte_id) as clean_contbr_id
from ofec_sched_a_queue_new new
left join ofec_sched_a_queue_old old on new.sched_a_sk = old.sched_a_sk and old.timestamp > new.timestamp
where old.sched_a_sk is null
order by new.sched_a_sk, new.timestamp desc
);
end
$$;
ALTER FUNCTION public.ofec_sched_a_update() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_contributor(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_contributor() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, *
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, *
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
clean_repeated(contbr_id, cmte_id) as contbr_id,
max(contbr_nm) as contbr_nm,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and clean_repeated(contbr_id, cmte_id) is not null
and coalesce(entity_tp, '') != 'IND'
and (memo_cd != 'X' or memo_cd is null)
group by cmte_id, cycle, clean_repeated(contbr_id, cmte_id)
),
inc as (
update ofec_sched_a_aggregate_contributor ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.contbr_id) = (patch.cmte_id, patch.cycle, patch.contbr_id)
)
insert into ofec_sched_a_aggregate_contributor (
select patch.* from patch
left join ofec_sched_a_aggregate_contributor ag using (cmte_id, cycle, contbr_id)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_contributor() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_contributor_type(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_contributor_type() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, *
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, *
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contributor_type(line_num) as individual,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and (memo_cd != 'X' or memo_cd is null)
group by cmte_id, cycle, individual
),
inc as (
update ofec_sched_a_aggregate_contributor_type ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.individual) = (patch.cmte_id, patch.cycle, patch.individual)
)
insert into ofec_sched_a_aggregate_contributor_type (
select patch.* from patch
left join ofec_sched_a_aggregate_contributor_type ag using (cmte_id, cycle, individual)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_contributor_type() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_employer(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_employer() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, contbr_employer, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, contbr_employer, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contbr_employer as employer,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and is_individual(contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id, cmte_id)
group by cmte_id, cycle, employer
),
inc as (
update ofec_sched_a_aggregate_employer ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.employer) = (patch.cmte_id, patch.cycle, patch.employer)
)
insert into ofec_sched_a_aggregate_employer (
select patch.* from patch
left join ofec_sched_a_aggregate_employer ag using (cmte_id, cycle, employer)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_employer() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_occupation(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_occupation() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, contbr_occupation, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, contbr_occupation, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contbr_occupation as occupation,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and is_individual(contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id, cmte_id)
group by cmte_id, cycle, occupation
),
inc as (
update ofec_sched_a_aggregate_occupation ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.occupation) = (patch.cmte_id, patch.cycle, patch.occupation)
)
insert into ofec_sched_a_aggregate_occupation (
select patch.* from patch
left join ofec_sched_a_aggregate_occupation ag using (cmte_id, cycle, occupation)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_occupation() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_size(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_size() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contribution_size(contb_receipt_amt) as size,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and is_individual(contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id, cmte_id)
group by cmte_id, cycle, size
),
inc as (
update ofec_sched_a_aggregate_size ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.size) = (patch.cmte_id, patch.cycle, patch.size)
)
insert into ofec_sched_a_aggregate_size (
select patch.* from patch
left join ofec_sched_a_aggregate_size ag using (cmte_id, cycle, size)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_size() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_state(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_state() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, contbr_st, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, contbr_st, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contbr_st as state,
expand_state(contbr_st) as state_full,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and is_individual(contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id, cmte_id)
group by cmte_id, cycle, state
),
inc as (
update ofec_sched_a_aggregate_state ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.state) = (patch.cmte_id, patch.cycle, patch.state)
)
insert into ofec_sched_a_aggregate_state (
select patch.* from patch
left join ofec_sched_a_aggregate_state ag using (cmte_id, cycle, state)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_state() OWNER TO fec;
--
-- Name: ofec_sched_a_update_aggregate_zip(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_aggregate_zip() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, contbr_zip, contbr_st, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, contbr_zip, contbr_st, contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id
from ofec_sched_a_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
contbr_zip as zip,
max(contbr_st) as state,
expand_state(max(contbr_st)) as state_full,
sum(contb_receipt_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where contb_receipt_amt is not null
and is_individual(contb_receipt_amt, receipt_tp, line_num, memo_cd, memo_text, contbr_id, cmte_id)
group by cmte_id, cycle, zip
),
inc as (
update ofec_sched_a_aggregate_zip ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.zip) = (patch.cmte_id, patch.cycle, patch.zip)
)
insert into ofec_sched_a_aggregate_zip (
select patch.* from patch
left join ofec_sched_a_aggregate_zip ag using (cmte_id, cycle, zip)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_aggregate_zip() OWNER TO fec;
--
-- Name: ofec_sched_a_update_fulltext(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_fulltext() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_a_fulltext
where sched_a_sk = any(select sched_a_sk from ofec_sched_a_queue_old)
;
insert into ofec_sched_a_fulltext (
select
sched_a_sk,
to_tsvector(contbr_nm) as contributor_name_text,
to_tsvector(contbr_employer) as contributor_employer_text
from ofec_sched_a_queue_new
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_fulltext() OWNER TO fec;
--
-- Name: ofec_sched_a_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_a_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
timestamp timestamp = current_timestamp;
two_year_transaction_period_new smallint;
two_year_transaction_period_old smallint;
begin
if tg_op = 'INSERT' then
two_year_transaction_period_new = get_transaction_year(new.contb_receipt_dt, new.rpt_yr);
if two_year_transaction_period_new >= start_year then
delete from ofec_sched_a_queue_new where sub_id = new.sub_id;
insert into ofec_sched_a_queue_new values (new.*, timestamp, two_year_transaction_period_new);
end if;
return new;
elsif tg_op = 'UPDATE' then
two_year_transaction_period_new = get_transaction_year(new.contb_receipt_dt, new.rpt_yr);
two_year_transaction_period_old = get_transaction_year(old.contb_receipt_dt, old.rpt_yr);
if two_year_transaction_period_new >= start_year then
delete from ofec_sched_a_queue_new where sub_id = new.sub_id;
delete from ofec_sched_a_queue_old where sub_id = old.sub_id;
insert into ofec_sched_a_queue_new values (new.*, timestamp, two_year_transaction_period_new);
insert into ofec_sched_a_queue_old values (old.*, timestamp, two_year_transaction_period_old);
end if;
return new;
elsif tg_op = 'DELETE' then
two_year_transaction_period_old = get_transaction_year(old.contb_receipt_dt, old.rpt_yr);
if two_year_transaction_period_old >= start_year then
delete from ofec_sched_a_queue_old where sub_id = old.sub_id;
insert into ofec_sched_a_queue_old values (old.*, timestamp, two_year_transaction_period_old);
end if;
return old;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_a_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_b_delete_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_delete_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
view_row public.fec_fitem_sched_b_vw%ROWTYPE;
begin
select into view_row * from public.fec_fitem_sched_b_vw where sub_id = old.sub_id;
if FOUND then
if view_row.election_cycle >= start_year then
delete from ofec_sched_b_queue_old where sub_id = view_row.sub_id;
insert into ofec_sched_b_queue_old values (view_row.*, current_timestamp, view_row.election_cycle);
end if;
end if;
if tg_op = 'DELETE' then
return old;
elsif tg_op = 'UPDATE' then
return new;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_b_delete_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_b_insert_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_insert_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
view_row public.fec_fitem_sched_b_vw%ROWTYPE;
begin
select into view_row * from public.fec_fitem_sched_b_vw where sub_id = new.sub_id;
if FOUND then
if view_row.election_cycle >= start_year then
delete from ofec_sched_b_queue_new where sub_id = view_row.sub_id;
insert into ofec_sched_b_queue_new values (view_row.*, current_timestamp, view_row.election_cycle);
end if;
end if;
RETURN NULL; -- result is ignored since this is an AFTER trigger
end
$$;
ALTER FUNCTION public.ofec_sched_b_insert_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_b_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_b
where sched_b_sk = any(select sched_b_sk from ofec_sched_b_queue_old)
;
insert into ofec_sched_b(
select distinct on(sched_b_sk)
new.*,
image_pdf_url(new.image_num) as pdf_url,
to_tsvector(new.recipient_nm) || to_tsvector(coalesce(clean_repeated(new.recipient_cmte_id, new.cmte_id), ''))
as recipient_name_text,
to_tsvector(new.disb_desc) as disbursement_description_text,
disbursement_purpose(new.disb_tp, new.disb_desc) as disbursement_purpose_category,
clean_repeated(new.recipient_cmte_id, new.cmte_id) as clean_recipient_cmte_id
from ofec_sched_b_queue_new new
left join ofec_sched_b_queue_old old on new.sched_b_sk = old.sched_b_sk and old.timestamp > new.timestamp
where old.sched_b_sk is null
order by new.sched_b_sk, new.timestamp desc
);
end
$$;
ALTER FUNCTION public.ofec_sched_b_update() OWNER TO fec;
--
-- Name: ofec_sched_b_update_aggregate_purpose(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update_aggregate_purpose() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, disb_tp, disb_desc, disb_amt, memo_cd
from ofec_sched_b_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, disb_tp, disb_desc, disb_amt, memo_cd
from ofec_sched_b_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
disbursement_purpose(disb_tp, disb_desc) as purpose,
sum(disb_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where disb_amt is not null
and (memo_cd != 'X' or memo_cd is null)
group by cmte_id, cycle, purpose
),
inc as (
update ofec_sched_b_aggregate_purpose ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.purpose) = (patch.cmte_id, patch.cycle, patch.purpose)
)
insert into ofec_sched_b_aggregate_purpose (
select patch.* from patch
left join ofec_sched_b_aggregate_purpose ag using (cmte_id, cycle, purpose)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_b_update_aggregate_purpose() OWNER TO fec;
--
-- Name: ofec_sched_b_update_aggregate_recipient(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update_aggregate_recipient() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, recipient_nm, disb_amt, memo_cd
from ofec_sched_b_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, recipient_nm, disb_amt, memo_cd
from ofec_sched_b_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
recipient_nm,
sum(disb_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where disb_amt is not null
and (memo_cd != 'X' or memo_cd is null)
group by cmte_id, cycle, recipient_nm
),
inc as (
update ofec_sched_b_aggregate_recipient ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.recipient_nm) = (patch.cmte_id, patch.cycle, patch.recipient_nm)
)
insert into ofec_sched_b_aggregate_recipient (
select patch.* from patch
left join ofec_sched_b_aggregate_recipient ag using (cmte_id, cycle, recipient_nm)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_b_update_aggregate_recipient() OWNER TO fec;
--
-- Name: ofec_sched_b_update_aggregate_recipient_id(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update_aggregate_recipient_id() RETURNS void
LANGUAGE plpgsql
AS $$
begin
with new as (
select 1 as multiplier, cmte_id, rpt_yr, recipient_cmte_id, recipient_nm, disb_amt, memo_cd
from ofec_sched_b_queue_new
),
old as (
select -1 as multiplier, cmte_id, rpt_yr, recipient_cmte_id, recipient_nm, disb_amt, memo_cd
from ofec_sched_b_queue_old
),
patch as (
select
cmte_id,
rpt_yr + rpt_yr % 2 as cycle,
clean_repeated(recipient_cmte_id, cmte_id) as recipient_cmte_id,
max(recipient_nm) as recipient_nm,
sum(disb_amt * multiplier) as total,
sum(multiplier) as count
from (
select * from new
union all
select * from old
) t
where disb_amt is not null
and (memo_cd != 'X' or memo_cd is null)
and clean_repeated(recipient_cmte_id, cmte_id) is not null
group by cmte_id, cycle, clean_repeated(recipient_cmte_id, cmte_id)
),
inc as (
update ofec_sched_b_aggregate_recipient_id ag
set
total = ag.total + patch.total,
count = ag.count + patch.count
from patch
where (ag.cmte_id, ag.cycle, ag.recipient_cmte_id) = (patch.cmte_id, patch.cycle, patch.recipient_cmte_id)
)
insert into ofec_sched_b_aggregate_recipient_id (
select patch.* from patch
left join ofec_sched_b_aggregate_recipient_id ag using (cmte_id, cycle, recipient_cmte_id)
where ag.cmte_id is null
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_b_update_aggregate_recipient_id() OWNER TO fec;
--
-- Name: ofec_sched_b_update_fulltext(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update_fulltext() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_b_fulltext
where sched_b_sk = any(select sched_b_sk from ofec_sched_b_queue_old)
;
insert into ofec_sched_b_fulltext (
select
sched_b_sk,
to_tsvector(recipient_nm) as recipient_name_text,
to_tsvector(disb_desc) as disbursement_description_text
from ofec_sched_b_queue_new
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_b_update_fulltext() OWNER TO fec;
--
-- Name: ofec_sched_b_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_b_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
timestamp timestamp = current_timestamp;
two_year_transaction_period_new smallint;
two_year_transaction_period_old smallint;
begin
if tg_op = 'INSERT' then
two_year_transaction_period_new = get_transaction_year(new.disb_dt, new.rpt_yr);
if two_year_transaction_period_new >= start_year then
delete from ofec_sched_b_queue_new where sub_id = new.sub_id;
insert into ofec_sched_b_queue_new values (new.*, timestamp, two_year_transaction_period_new);
end if;
return new;
elsif tg_op = 'UPDATE' then
two_year_transaction_period_new = get_transaction_year(new.disb_dt, new.rpt_yr);
two_year_transaction_period_old = get_transaction_year(old.disb_dt, old.rpt_yr);
if two_year_transaction_period_new >= start_year then
delete from ofec_sched_b_queue_new where sub_id = new.sub_id;
delete from ofec_sched_b_queue_old where sub_id = old.sub_id;
insert into ofec_sched_b_queue_new values (new.*, timestamp, two_year_transaction_period_new);
insert into ofec_sched_b_queue_old values (old.*, timestamp, two_year_transaction_period_old);
end if;
return new;
elsif tg_op = 'DELETE' then
two_year_transaction_period_old = get_transaction_year(old.disb_dt, old.rpt_yr);
if two_year_transaction_period_old >= start_year then
delete from ofec_sched_b_queue_old where sub_id = old.sub_id;
insert into ofec_sched_b_queue_old values (old.*, timestamp, two_year_transaction_period_old);
end if;
return old;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_b_update_queues() OWNER TO fec;
--
-- Name: ofec_sched_c_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_c_update() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
new.loan_source_name_text := to_tsvector(new.loan_src_nm);
new.candidate_name_text := to_tsvector(new.cand_nm);
return new;
end
$$;
ALTER FUNCTION public.ofec_sched_c_update() OWNER TO fec;
--
-- Name: ofec_sched_d_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_d_update() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
new.creditor_debtor_name_text := to_tsvector(new.cred_dbtr_nm);
return new;
end
$$;
ALTER FUNCTION public.ofec_sched_d_update() OWNER TO fec;
--
-- Name: ofec_sched_e_f57_notice_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_f57_notice_update() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_e
where sub_id = any(select sub_id from ofec_f57_queue_old)
;
insert into ofec_sched_e (cmte_id, pye_nm, payee_l_nm, payee_f_nm, payee_m_nm, payee_prefix, payee_suffix,pye_st1, pye_st2, pye_city, pye_st,
pye_zip, entity_tp, entity_tp_desc, catg_cd, catg_cd_desc, s_o_cand_id, s_o_cand_nm, s_o_cand_nm_first,
s_o_cand_nm_last, s_o_cand_m_nm, s_o_cand_prefix, s_o_cand_suffix, s_o_cand_office, s_o_cand_office_desc,
s_o_cand_office_st, s_o_cand_office_st_desc, s_o_cand_office_district, s_o_ind, s_o_ind_desc, election_tp,
fec_election_tp_desc, cal_ytd_ofc_sought, exp_amt, exp_dt, exp_tp, exp_tp_desc, conduit_cmte_id, conduit_cmte_nm,
conduit_cmte_st1, conduit_cmte_st2, conduit_cmte_city, conduit_cmte_st, conduit_cmte_zip, action_cd, action_cd_desc,
tran_id, filing_form, schedule_type, schedule_type_desc, image_num, file_num, link_id, orig_sub_id, sub_id,
rpt_tp, rpt_yr, election_cycle, timestamp, pdf_url, is_notice, payee_name_text)
select f57.filer_cmte_id,
f57.pye_nm,
f57.pye_l_nm,
f57.pye_f_nm,
f57.pye_m_nm,
f57.pye_prefix,
f57.pye_suffix,
f57.pye_st1,
f57.pye_st2,
f57.pye_city,
f57.pye_st,
f57.pye_zip,
f57.entity_tp,
f57.entity_tp_desc,
f57.catg_cd,
f57.catg_cd_desc,
f57.s_o_cand_id,
f57.s_o_cand_nm,
f57.s_o_cand_f_nm,
f57.s_o_cand_l_nm,
f57.s_o_cand_m_nm,
f57.s_o_cand_prefix,
f57.s_o_cand_suffix,
f57.s_o_cand_office,
f57.s_o_cand_office_desc,
f57.s_o_cand_office_st,
f57.s_o_cand_office_state_desc,
f57.s_o_cand_office_district,
f57.s_o_ind,
f57.s_o_ind_desc,
f57.election_tp,
f57.fec_election_tp_desc,
f57.cal_ytd_ofc_sought,
f57.exp_amt,
f57.exp_dt,
f57.exp_tp,
f57.exp_tp_desc,
f57.conduit_cmte_id,
f57.conduit_cmte_nm,
f57.conduit_cmte_st1,
f57.conduit_cmte_st2,
f57.conduit_cmte_city,
f57.conduit_cmte_st,
f57.conduit_cmte_zip,
f57.amndt_ind AS action_cd,
f57.amndt_ind_desc AS action_cd_desc,
CASE
WHEN "substring"(f57.sub_id::character varying::text, 1, 1) = '4'::text THEN f57.tran_id
ELSE NULL::character varying
END AS tran_id,
'F5' as filing_form,
'SE-F57' AS schedule_type,
f57.form_tp_desc AS schedule_type_desc,
f57.image_num,
f57.file_num,
f57.link_id,
f57.orig_sub_id,
f57.sub_id,
f5.rpt_tp,
f5.rpt_yr,
f5.rpt_yr + mod(f5.rpt_yr, 2::numeric) AS cycle,
cast(null as timestamp) as TIMESTAMP,
image_pdf_url(f57.image_num) as pdf_url,
True,
to_tsvector(f57.pye_nm)
from ofec_f57_queue_new f57, disclosure.nml_form_5 f5
where f57.link_id = f5.sub_id AND (f5.rpt_tp::text = ANY (ARRAY['24'::character varying, '48'::character varying]::text[])) AND f57.amndt_ind::text <> 'D'::text AND f57.delete_ind IS NULL AND f5.delete_ind IS NULL;
end
$$;
ALTER FUNCTION public.ofec_sched_e_f57_notice_update() OWNER TO fec;
--
-- Name: ofec_sched_e_notice_update_from_f24(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_notice_update_from_f24() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_e
where sub_id = any(select sub_id from public.ofec_nml_24_queue_old)
;
insert into ofec_sched_e (cmte_id, pye_nm, payee_l_nm, payee_f_nm, payee_m_nm, payee_prefix, payee_suffix,pye_st1, pye_st2, pye_city, pye_st,
pye_zip, entity_tp, entity_tp_desc, catg_cd, catg_cd_desc, s_o_cand_id, s_o_cand_nm, s_o_cand_nm_first,
s_o_cand_nm_last, s_o_cand_m_nm, s_o_cand_prefix, s_o_cand_suffix, s_o_cand_office, s_o_cand_office_desc,
s_o_cand_office_st, s_o_cand_office_st_desc, s_o_cand_office_district, memo_cd, memo_cd_desc, s_o_ind, s_o_ind_desc, election_tp,
fec_election_tp_desc, cal_ytd_ofc_sought, exp_amt, exp_dt, exp_tp, exp_tp_desc, memo_text, conduit_cmte_id, conduit_cmte_nm,
conduit_cmte_st1, conduit_cmte_st2, conduit_cmte_city, conduit_cmte_st, conduit_cmte_zip, action_cd, action_cd_desc,
tran_id, filing_form, schedule_type, schedule_type_desc, image_num, file_num, link_id, orig_sub_id, sub_id,
rpt_tp, rpt_yr, election_cycle, timestamp, pdf_url, is_notice, payee_name_text)
select se.cmte_id,
se.pye_nm,
se.payee_l_nm as pye_l_nm,
se.payee_f_nm as pye_f_nm,
se.payee_m_nm as pye_m_nm,
se.payee_prefix as pye_prefix,
se.payee_suffix as pye_suffix,
se.pye_st1,
se.pye_st2,
se.pye_city,
se.pye_st,
se.pye_zip,
se.entity_tp,
se.entity_tp_desc,
se.catg_cd,
se.catg_cd_desc,
se.s_o_cand_id,
se.s_o_cand_nm,
se.s_o_cand_nm_first,
se.s_o_cand_nm_last,
se.s_0_cand_m_nm AS s_o_cand_m_nm,
se.s_0_cand_prefix AS s_o_cand_prefix,
se.s_0_cand_suffix AS s_o_cand_suffix,
se.s_o_cand_office,
se.s_o_cand_office_desc,
se.s_o_cand_office_st,
se.s_o_cand_office_st_desc,
se.s_o_cand_office_district,
se.memo_cd,
se.memo_cd_desc,
se.s_o_ind,
se.s_o_ind_desc,
se.election_tp,
se.fec_election_tp_desc,
se.cal_ytd_ofc_sought,
se.exp_amt,
se.exp_dt,
se.exp_tp,
se.exp_tp_desc,
se.memo_text,
se.conduit_cmte_id,
se.conduit_cmte_nm,
se.conduit_cmte_st1,
se.conduit_cmte_st2,
se.conduit_cmte_city,
se.conduit_cmte_st,
se.conduit_cmte_zip,
se.amndt_ind AS action_cd,
se.amndt_ind_desc AS action_cd_desc,
CASE
WHEN "substring"(se.sub_id::character varying::text, 1, 1) = '4'::text THEN se.tran_id
ELSE NULL::character varying
END AS tran_id,
'F24' AS filing_form,
'SE' AS schedule_type,
se.form_tp_desc AS schedule_type_desc,
se.image_num,
se.file_num,
se.link_id,
se.orig_sub_id,
se.sub_id,
f24.rpt_tp,
f24.rpt_yr,
f24.rpt_yr + mod(f24.rpt_yr, 2::numeric) AS cycle,
cast(null as timestamp) as TIMESTAMP,
image_pdf_url(se.image_num) as pdf_url,
True,
to_tsvector(se.pye_nm)
from disclosure.nml_form_24 f24, public.ofec_nml_24_queue_new se
where se.link_id = f24.sub_id and f24.delete_ind is null and se.delete_ind is null and se.amndt_ind::text <> 'D'::text;
end
$$;
ALTER FUNCTION public.ofec_sched_e_notice_update_from_f24() OWNER TO fec;
--
-- Name: ofec_sched_e_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_update() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_e
where sub_id = any(select sub_id from ofec_sched_e_queue_old)
;
insert into ofec_sched_e (
select
new.*,
image_pdf_url(new.image_num) as pdf_url,
coalesce(new.rpt_tp, '') in ('24', '48') as is_notice,
to_tsvector(new.pye_nm) as payee_name_text,
now() as pg_date
from ofec_sched_e_queue_new new
left join ofec_sched_e_queue_old old on new.sub_id = old.sub_id and old.timestamp > new.timestamp
where old.sub_id is null
order by new.sub_id, new.timestamp desc
);
end
$$;
ALTER FUNCTION public.ofec_sched_e_update() OWNER TO fec;
--
-- Name: ofec_sched_e_update_from_f57(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_update_from_f57() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_e
where sub_id = any(select sub_id from fec_vsum_f57_queue_old)
;
insert into ofec_sched_e (cmte_id, pye_nm, payee_l_nm, payee_f_nm, payee_m_nm, payee_prefix, payee_suffix,pye_st1, pye_st2, pye_city, pye_st,
pye_zip, entity_tp, entity_tp_desc, catg_cd, catg_cd_desc, s_o_cand_id, s_o_cand_nm, s_o_cand_nm_first,
s_o_cand_nm_last, s_o_cand_m_nm, s_o_cand_prefix, s_o_cand_suffix, s_o_cand_office, s_o_cand_office_desc,
s_o_cand_office_st, s_o_cand_office_st_desc, s_o_cand_office_district, s_o_ind, s_o_ind_desc, election_tp,
fec_election_tp_desc, cal_ytd_ofc_sought, exp_amt, exp_dt, exp_tp, exp_tp_desc, conduit_cmte_id, conduit_cmte_nm,
conduit_cmte_st1, conduit_cmte_st2, conduit_cmte_city, conduit_cmte_st, conduit_cmte_zip,tran_id, filing_form,
schedule_type, image_num, file_num, link_id, orig_sub_id, sub_id,
timestamp, pdf_url, is_notice, payee_name_text)
select f57.filer_cmte_id,
f57.pye_nm,
f57.pye_l_nm,
f57.pye_f_nm,
f57.pye_m_nm,
f57.pye_prefix,
f57.pye_suffix,
f57.pye_st1,
f57.pye_st2,
f57.pye_city,
f57.pye_st,
f57.pye_zip,
f57.entity_tp,
f57.entity_tp_desc,
f57.catg_cd,
f57.catg_cd_desc,
f57.s_o_cand_id,
f57.s_o_cand_nm,
f57.s_o_cand_f_nm,
f57.s_o_cand_l_nm,
f57.s_o_cand_m_nm,
f57.s_o_cand_prefix,
f57.s_o_cand_suffix,
f57.s_o_cand_office,
f57.s_o_cand_office_desc,
f57.s_o_cand_office_st,
f57.s_o_cand_office_state_desc,
f57.s_o_cand_office_district,
f57.s_o_ind,
f57.s_o_ind_desc,
f57.election_tp,
f57.fec_election_tp_desc,
f57.cal_ytd_ofc_sought,
f57.exp_amt,
f57.exp_dt,
f57.exp_tp,
f57.exp_tp_desc,
f57.conduit_cmte_id,
f57.conduit_cmte_nm,
f57.conduit_cmte_st1,
f57.conduit_cmte_st2,
f57.conduit_cmte_city,
f57.conduit_cmte_st,
f57.conduit_cmte_zip,
f57.tran_id,
f57.filing_form,
f57.schedule_type,
f57.image_num,
f57.file_num,
f57.link_id,
f57.orig_sub_id,
f57.sub_id,
cast(null as timestamp) as TIMESTAMP,
image_pdf_url(f57.image_num) as pdf_url,
False,
to_tsvector(f57.pye_nm)
from fec_vsum_f57_queue_new f57;
end
$$;
ALTER FUNCTION public.ofec_sched_e_update_from_f57() OWNER TO fec;
--
-- Name: ofec_sched_e_update_fulltext(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_update_fulltext() RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete from ofec_sched_e_fulltext
where sched_e_sk = any(select sched_e_sk from ofec_sched_e_queue_old)
;
insert into ofec_sched_e_fulltext (
select
sched_e_sk,
to_tsvector(pye_nm) as payee_name_text
from ofec_sched_e_queue_new
)
;
end
$$;
ALTER FUNCTION public.ofec_sched_e_update_fulltext() OWNER TO fec;
--
-- Name: ofec_sched_e_update_notice_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_update_notice_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
if tg_op = 'INSERT' then
delete from public.ofec_nml_24_queue_new where sub_id = new.sub_id;
insert into public.ofec_nml_24_queue_new values (new.*);
return new;
elsif tg_op = 'UPDATE' then
delete from public.ofec_nml_24_queue_new where sub_id = new.sub_id;
delete from public.ofec_nml_24_queue_old where sub_id = old.sub_id;
insert into public.ofec_nml_24_queue_new values (new.*);
insert into public.ofec_nml_24_queue_old values (old.*);
return new;
elsif tg_op = 'DELETE' then
delete from public.ofec_nml_24_queue_old where sub_id = old.sub_id;
insert into public.ofec_nml_24_queue_old values (old.*);
return old;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_e_update_notice_queues() OWNER TO fec;
--
-- Name: ofec_sched_e_update_queues(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION ofec_sched_e_update_queues() RETURNS trigger
LANGUAGE plpgsql
AS $$
declare
start_year int = TG_ARGV[0]::int;
begin
if tg_op = 'INSERT' then
delete from ofec_sched_e_queue_new where sub_id = new.sub_id;
insert into ofec_sched_e_queue_new values (new.*);
return new;
elsif tg_op = 'UPDATE' then
delete from ofec_sched_e_queue_new where sub_id = new.sub_id;
delete from ofec_sched_e_queue_old where sub_id = old.sub_id;
insert into ofec_sched_e_queue_new values (new.*);
insert into ofec_sched_e_queue_old values (old.*);
return new;
elsif tg_op = 'DELETE' then
delete from ofec_sched_e_queue_old where sub_id = old.sub_id;
insert into ofec_sched_e_queue_old values (old.*);
return old;
end if;
end
$$;
ALTER FUNCTION public.ofec_sched_e_update_queues() OWNER TO fec;
--
-- Name: real_efile_sa7_update(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION real_efile_sa7_update() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
new.contributor_name_text := to_tsvector(concat_ws(',', new.fname, new.name, new.mname));
return new;
end
$$;
ALTER FUNCTION public.real_efile_sa7_update() OWNER TO fec;
--
-- Name: refresh_materialized(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION refresh_materialized(schema_arg text DEFAULT 'public'::text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
view RECORD;
BEGIN
RAISE NOTICE 'Refreshing materialized views in schema %', schema_arg;
FOR view IN SELECT matviewname FROM pg_matviews WHERE schemaname = schema_arg
LOOP
RAISE NOTICE 'Refreshing %.%', schema_arg, view.matviewname;
EXECUTE 'REFRESH MATERIALIZED VIEW CONCURRENTLY ' || schema_arg || '.' || view.matviewname;
END LOOP;
RETURN 1;
END
$$;
ALTER FUNCTION public.refresh_materialized(schema_arg text) OWNER TO fec;
--
-- Name: rename_indexes(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION rename_indexes(p_table_name text) RETURNS void
LANGUAGE plpgsql
AS $_$
DECLARE
indexes_cursor CURSOR FOR
SELECT indexname AS name
FROM pg_indexes
WHERE tablename = p_table_name;
BEGIN
FOR index_name IN indexes_cursor LOOP
EXECUTE format('ALTER INDEX %1$I RENAME TO %2$I', index_name.name, regexp_replace(index_name.name, '_tmp', ''));
END LOOP;
END
$_$;
ALTER FUNCTION public.rename_indexes(p_table_name text) OWNER TO fec;
--
-- Name: rename_table_cascade(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION rename_table_cascade(table_name text) RETURNS void
LANGUAGE plpgsql
AS $_$
DECLARE
child_tmp_table_name TEXT;
child_table_name TEXT;
child_tables_cursor CURSOR (parent TEXT) FOR
SELECT c.oid::pg_catalog.regclass AS name
FROM pg_catalog.pg_class c, pg_catalog.pg_inherits i
WHERE c.oid=i.inhrelid
AND i.inhparent = (SELECT oid from pg_catalog.pg_class rc where relname = parent);
BEGIN
EXECUTE format('DROP TABLE IF EXISTS %I CASCADE', table_name);
EXECUTE format('ALTER TABLE %1$I_tmp RENAME TO %1$I', table_name);
FOR child_tmp_table IN child_tables_cursor(table_name) LOOP
child_tmp_table_name = child_tmp_table.name;
child_table_name = regexp_replace(child_tmp_table_name, '_tmp$', '');
EXECUTE format('ALTER TABLE %1$I RENAME TO %2$I', child_tmp_table_name, child_table_name);
PERFORM rename_indexes(child_table_name);
END LOOP;
END
$_$;
ALTER FUNCTION public.rename_table_cascade(table_name text) OWNER TO fec;
--
-- Name: rename_temporary_views(text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION rename_temporary_views(schema_arg text DEFAULT 'public'::text, suffix text DEFAULT '_tmp'::text) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
view RECORD;
view_name TEXT;
BEGIN
RAISE NOTICE 'Renaming temporary materialized views in schema %', schema_arg;
FOR view IN SELECT matviewname FROM pg_matviews WHERE schemaname = schema_arg AND matviewname LIKE '%' || suffix
LOOP
RAISE NOTICE 'Renaming %.%', schema_arg, view.matviewname;
view_name := replace(view.matviewname, suffix, '');
EXECUTE 'DROP MATERIALIZED VIEW IF EXISTS ' || schema_arg || '.' || view_name || ' CASCADE';
EXECUTE 'ALTER MATERIALIZED VIEW ' || schema_arg || '.' || view.matviewname || ' RENAME TO ' || view_name;
END LOOP;
RETURN 1;
END
$$;
ALTER FUNCTION public.rename_temporary_views(schema_arg text, suffix text) OWNER TO fec;
--
-- Name: report_fec_url(text, integer); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION report_fec_url(image_number text, file_number integer) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $_$
begin
return case
when file_number < 1 then null
when image_number is not null and not is_electronic(image_number) then format(
'http://docquery.fec.gov/paper/posted/%1$s.fec',
file_number
)
when image_number is not null and is_electronic(image_number) then format(
'http://docquery.fec.gov/dcdev/posted/%1$s.fec',
file_number
)
end;
end
$_$;
ALTER FUNCTION public.report_fec_url(image_number text, file_number integer) OWNER TO fec;
--
-- Name: report_html_url(text, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION report_html_url(means_filed text, cmte_id text, filing_id text) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $_$
BEGIN
return CASE
when means_filed = 'paper' and filing_id::int > 0 then format (
'http://docquery.fec.gov/cgi-bin/paper_forms/%1$s/%2$s/',
cmte_id,
filing_id
)
when means_filed = 'e-file' then format (
'http://docquery.fec.gov/cgi-bin/forms/%1$s/%2$s/',
cmte_id,
filing_id
)
else null
end;
END
$_$;
ALTER FUNCTION public.report_html_url(means_filed text, cmte_id text, filing_id text) OWNER TO fec;
--
-- Name: report_pdf_url(text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION report_pdf_url(image_number text) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $_$
begin
return case
when image_number is not null then format(
'http://docquery.fec.gov/pdf/%1$s/%2$s/%2$s.pdf',
substr(image_number, length(image_number) - 2, length(image_number)),
image_number
)
else null
end;
end
$_$;
ALTER FUNCTION public.report_pdf_url(image_number text) OWNER TO fec;
--
-- Name: report_pdf_url_or_null(text, numeric, text, text); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION report_pdf_url_or_null(image_number text, report_year numeric, committee_type text, form_type text) RETURNS text
LANGUAGE plpgsql IMMUTABLE
AS $$
begin
return case
when image_number is not null and (
report_year >= 2000 or
(form_type in ('F3X', 'F3P') and report_year > 1993) or
(form_type = 'F3' and committee_type = 'H' and report_year > 1996)
) then report_pdf_url(image_number)
else null
end;
end
$$;
ALTER FUNCTION public.report_pdf_url_or_null(image_number text, report_year numeric, committee_type text, form_type text) OWNER TO fec;
--
-- Name: rollback_real_time_filings(bigint); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION rollback_real_time_filings(p_repid bigint) RETURNS text
LANGUAGE plpgsql
AS $$
declare
cur_del CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_schema='public'
and table_catalog='fec'
and table_type='BASE TABLE'
and (table_name like 'real_efile%' or table_name like 'real_pfile%');
v_table text;
begin
OPEN cur_del;
loop
fetch cur_del into v_table;
EXIT WHEN NOT FOUND;
-- RAISE NOTICE 'delete from % where repid= %',v_table,p_repid;
execute 'delete from '||v_table ||' where repid='||p_repid;
end loop;
close cur_del;
return 'SUCCESS';
end
$$;
ALTER FUNCTION public.rollback_real_time_filings(p_repid bigint) OWNER TO fec;
--
-- Name: strip_triggers(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION strip_triggers() RETURNS void
LANGUAGE plpgsql SECURITY DEFINER
AS $$ DECLARE
triggNameRecord RECORD;
triggTableRecord RECORD;
BEGIN
FOR triggNameRecord IN select distinct(trigger_name) from information_schema.triggers where trigger_schema = 'public' LOOP
FOR triggTableRecord IN SELECT distinct(event_object_table) from information_schema.triggers where trigger_name = triggNameRecord.trigger_name LOOP
RAISE NOTICE 'Dropping trigger: % on table: %', triggNameRecord.trigger_name, triggTableRecord.event_object_table;
EXECUTE 'DROP TRIGGER ' || triggNameRecord.trigger_name || ' ON ' || triggTableRecord.event_object_table || ';';
END LOOP;
END LOOP;
END;
$$;
ALTER FUNCTION public.strip_triggers() OWNER TO fec;
--
-- Name: upd_pg_date(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION upd_pg_date() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
new.pg_date := now()::timestamp(0);
return new;
end
$$;
ALTER FUNCTION public.upd_pg_date() OWNER TO fec;
--
-- Name: update_aggregates(); Type: FUNCTION; Schema: public; Owner: fec
--
CREATE FUNCTION update_aggregates() RETURNS void
LANGUAGE plpgsql
AS $$
begin
perform ofec_sched_a_update_aggregate_zip();
perform ofec_sched_a_update_aggregate_size();
perform ofec_sched_a_update_aggregate_state();
perform ofec_sched_a_update_aggregate_employer();
perform ofec_sched_a_update_aggregate_occupation();
perform ofec_sched_b_update_aggregate_purpose();
perform ofec_sched_b_update_aggregate_recipient();
perform ofec_sched_b_update_aggregate_recipient_id();
end
$$;
ALTER FUNCTION public.update_aggregates() OWNER TO fec; | the_stack |
-- 2019-01-17T15:43:55.739
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET InternalName='MaterialWithdrawal',Updated=TO_TIMESTAMP('2019-01-17 15:43:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541070
;
-- 2019-01-17T15:44:44.660
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET InternalName='M_Inventory_MaterialWithdrawal',Updated=TO_TIMESTAMP('2019-01-17 15:44:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540429
;
-- 2019-01-17T15:44:52.293
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET InternalName='M_Inventory_MaterialWithdrawal',Updated=TO_TIMESTAMP('2019-01-17 15:44:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541070
;
-- 2019-01-17T15:45:45.728
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:45:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Materialentnahme',PrintName='Materialentnahme' WHERE AD_Element_ID=574498 AND AD_Language='de_CH'
;
-- 2019-01-17T15:45:45.739
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'de_CH')
;
-- 2019-01-17T15:46:27.759
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:46:27','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Material Withdrawal',PrintName='Material Withdrawal' WHERE AD_Element_ID=574498 AND AD_Language='en_US'
;
-- 2019-01-17T15:46:27.769
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'en_US')
;
-- 2019-01-17T15:46:38.060
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:46:38','YYYY-MM-DD HH24:MI:SS'),PrintName='Materialentnahme' WHERE AD_Element_ID=574498 AND AD_Language='nl_NL'
;
-- 2019-01-17T15:46:38.070
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'nl_NL')
;
-- 2019-01-17T15:46:41.239
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:46:41','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',PrintName='Materialentnahme' WHERE AD_Element_ID=574498 AND AD_Language='de_DE'
;
-- 2019-01-17T15:46:41.248
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'de_DE')
;
-- 2019-01-17T15:46:41.285
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(574498,'de_DE')
;
-- 2019-01-17T15:46:41.295
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Materialentnahme', Name='Materialnahme' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=574498)
;
-- 2019-01-17T15:46:54.219
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:46:54','YYYY-MM-DD HH24:MI:SS'),Name='Materialentnahme' WHERE AD_Element_ID=574498 AND AD_Language='de_DE'
;
-- 2019-01-17T15:46:54.230
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'de_DE')
;
-- 2019-01-17T15:46:54.251
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(574498,'de_DE')
;
-- 2019-01-17T15:46:54.268
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName=NULL, Name='Materialentnahme', Description=NULL, Help=NULL WHERE AD_Element_ID=574498
;
-- 2019-01-17T15:46:54.276
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName=NULL, Name='Materialentnahme', Description=NULL, Help=NULL WHERE AD_Element_ID=574498 AND IsCentrallyMaintained='Y'
;
-- 2019-01-17T15:46:54.284
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Materialentnahme', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=574498) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 574498)
;
-- 2019-01-17T15:46:54.300
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Materialentnahme', Name='Materialentnahme' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=574498)
;
-- 2019-01-17T15:46:54.307
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Materialentnahme', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 574498
;
-- 2019-01-17T15:46:54.316
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
--UPDATE AD_WINDOW SET Name='Materialentnahme', Description=NULL, Help=NULL WHERE AD_Element_ID = 574498
--;
-- 2019-01-17T15:47:15.021
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:47:15','YYYY-MM-DD HH24:MI:SS'),Name='Materialentnahme' WHERE AD_Element_ID=574498 AND AD_Language='nl_NL'
;
-- 2019-01-17T15:47:15.030
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'nl_NL')
;
-- 2019-01-17T15:47:30.479
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-17 15:47:30','YYYY-MM-DD HH24:MI:SS') WHERE AD_Element_ID=574498 AND AD_Language='de_CH'
;
-- 2019-01-17T15:47:30.490
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(574498,'de_CH')
;
--
-- M_Product_Cantegory identifier shall be Value & Name because name isn't unique
----------------------------------------------------
--
-- 2019-01-18T21:54:01.213
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=30, IsAutocomplete='Y',Updated=TO_TIMESTAMP('2019-01-18 21:54:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=559617
;
-- 2019-01-18T21:55:15.746
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET SeqNo=10,Updated=TO_TIMESTAMP('2019-01-18 21:55:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1776
;
-- 2019-01-18T21:55:35.485
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET SeqNo=20,Updated=TO_TIMESTAMP('2019-01-18 21:55:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1776
;
-- 2019-01-18T21:55:48.193
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsIdentifier='Y', SeqNo=10,Updated=TO_TIMESTAMP('2019-01-18 21:55:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3017
;
-----------------------------------------------------
--- additional trls, descriptions etc
-- 2019-01-21T13:57:28.427
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 13:57:28','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Produktkategorien',PrintName='Produktkategorien' WHERE AD_Element_ID=573883 AND AD_Language='de_CH'
;
-- 2019-01-21T13:57:28.498
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(573883,'de_CH')
;
-- 2019-01-21T13:57:31.236
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 13:57:31','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Element_ID=573883 AND AD_Language='en_US'
;
-- 2019-01-21T13:57:31.250
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(573883,'en_US')
;
-- 2019-01-21T13:57:37.642
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 13:57:37','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Produktkategorien',PrintName='Produktkategorien' WHERE AD_Element_ID=573883 AND AD_Language='de_DE'
;
-- 2019-01-21T13:57:37.655
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(573883,'de_DE')
;
-- 2019-01-21T13:57:37.696
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(573883,'de_DE')
;
-- 2019-01-21T13:57:37.714
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName=NULL, Name='Produktkategorien', Description=NULL, Help=NULL WHERE AD_Element_ID=573883
;
-- 2019-01-21T13:57:37.723
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName=NULL, Name='Produktkategorien', Description=NULL, Help=NULL WHERE AD_Element_ID=573883 AND IsCentrallyMaintained='Y'
;
-- 2019-01-21T13:57:37.733
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Produktkategorien', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=573883) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 573883)
;
-- 2019-01-21T13:57:37.753
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Produktkategorien', Name='Produktkategorien' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=573883)
;
-- 2019-01-21T13:57:37.763
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Produktkategorien', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 573883
;
-- 2019-01-21T13:57:37.780
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Produktkategorien', Description=NULL, Help=NULL WHERE AD_Element_ID = 573883
;
-- 2019-01-21T13:57:37.802
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name='Produktkategorien', Description=NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 573883
;
-- 2019-01-21T14:01:42.928
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 14:01:42','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Kommissionier-Lagergruppe ',PrintName='Kommissionier-Lagergruppe ' WHERE AD_Element_ID=543497 AND AD_Language='de_CH'
;
-- 2019-01-21T14:01:42.964
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543497,'de_CH')
;
-- 2019-01-21T14:01:45.754
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 14:01:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Element_ID=543497 AND AD_Language='en_US'
;
-- 2019-01-21T14:01:45.768
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543497,'en_US')
;
-- 2019-01-21T14:01:48.040
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 14:01:48','YYYY-MM-DD HH24:MI:SS') WHERE AD_Element_ID=543497 AND AD_Language='nl_NL'
;
-- 2019-01-21T14:01:48.065
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543497,'nl_NL')
;
-- 2019-01-21T14:01:51.835
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-01-21 14:01:51','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Kommissionier-Lagergruppe ',PrintName='Kommissionier-Lagergruppe ' WHERE AD_Element_ID=543497 AND AD_Language='de_DE'
;
-- 2019-01-21T14:01:51.850
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543497,'de_DE')
;
-- 2019-01-21T14:01:51.877
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(543497,'de_DE')
;
-- 2019-01-21T14:01:51.905
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='M_Warehouse_PickingGroup_ID', Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL WHERE AD_Element_ID=543497
;
-- 2019-01-21T14:01:51.923
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='M_Warehouse_PickingGroup_ID', Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL, AD_Element_ID=543497 WHERE UPPER(ColumnName)='M_WAREHOUSE_PICKINGGROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2019-01-21T14:01:51.936
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='M_Warehouse_PickingGroup_ID', Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL WHERE AD_Element_ID=543497 AND IsCentrallyMaintained='Y'
;
-- 2019-01-21T14:01:51.945
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543497) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543497)
;
-- 2019-01-21T14:01:51.981
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Kommissionier-Lagergruppe ', Name='Kommissionier-Lagergruppe ' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543497)
;
-- 2019-01-21T14:01:51.992
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543497
;
-- 2019-01-21T14:01:52.002
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Kommissionier-Lagergruppe ', Description=NULL, Help=NULL WHERE AD_Element_ID = 543497
;
-- 2019-01-21T14:01:52.013
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name='Kommissionier-Lagergruppe ', Description=NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543497
;
-- 2019-01-21T14:02:46.860
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Element_Link_ID=622181
;
-- 2019-01-21T14:06:02.447
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Element_Link_ID=626233
; | the_stack |
-- 2020-01-17T15:47:45.084Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsRangeFilter='Y', IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2020-01-17 17:47:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=548043
;
-- 2020-01-17T15:49:43.838Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=100,Updated=TO_TIMESTAMP('2020-01-17 17:49:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=548043
;
-- 2020-01-17T15:52:40.902Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540427 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.920Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540796 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.927Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540798 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.928Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540797 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.929Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540829 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.929Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540973 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.930Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540830 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.931Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540831 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.932Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=541375 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.933Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540844 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.934Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540846 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.934Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=541384 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.935Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=540977 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.936Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=540900 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.937Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=540856 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.938Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=540857 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.940Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540860 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.940Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540866 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.942Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=541057 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.943Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=540918 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.944Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=541011 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.945Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=541083 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.946Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=541388 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.947Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=541394 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.948Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000057 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.948Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000065 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.949Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000075 AND AD_Tree_ID=10
;
-- 2020-01-17T15:52:40.950Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000016, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=541117 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.800Z
-- 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=541134 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.802Z
-- 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=541111 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.803Z
-- 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=541416 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.804Z
-- 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=541142 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.804Z
-- 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=540969 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.805Z
-- 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=150 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.806Z
-- 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=147 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.807Z
-- 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=541216 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.808Z
-- 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=541263 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.809Z
-- 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=145 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.810Z
-- 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=144 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.811Z
-- 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=540743 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.812Z
-- 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=540784 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.812Z
-- 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=540826 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.813Z
-- 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=540898 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.814Z
-- 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=540895 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.815Z
-- 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=540827 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.816Z
-- 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=540828 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.817Z
-- 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=540849 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.818Z
-- 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=540911 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.818Z
-- 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=540427 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.819Z
-- 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=540912 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.820Z
-- 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=540913 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.821Z
-- 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=540894 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.822Z
-- 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=540917 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.823Z
-- 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=540982 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.823Z
-- 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=541414 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.824Z
-- 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=540919 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.825Z
-- 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=540983 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.826Z
-- 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=53101 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.831Z
-- 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=541080 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.832Z
-- 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=541273 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.833Z
-- 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=363 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.834Z
-- 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=541079 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.835Z
-- 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=541108 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.835Z
-- 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=541053 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.836Z
-- 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=541052 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.837Z
-- 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=541233 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.838Z
-- 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=53103 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.839Z
-- 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=541389 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.840Z
-- 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=540243 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.841Z
-- 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=541041 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.842Z
-- 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=541104 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.843Z
-- 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=541109 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.844Z
-- 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=541162 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.844Z
-- 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=1000099 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.845Z
-- 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=1000100 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.846Z
-- 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=1000101 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.847Z
-- 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=540901 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.848Z
-- 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=541282 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.849Z
-- 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=541339 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.850Z
-- 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=541326 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.850Z
-- 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=541417 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.851Z
-- 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=540631 AND AD_Tree_ID=10
;
-- 2020-01-17T15:53:20.852Z
-- 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=541374 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.269Z
-- 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=541134 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.270Z
-- 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=541111 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.271Z
-- 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=541416 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.271Z
-- 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=541142 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.272Z
-- 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=540969 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.273Z
-- 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=150 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.274Z
-- 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=147 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.275Z
-- 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=541216 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.276Z
-- 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=541263 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.276Z
-- 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=145 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.277Z
-- 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=144 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.278Z
-- 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=540743 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.279Z
-- 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=540784 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.280Z
-- 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=540826 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.280Z
-- 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=540898 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.281Z
-- 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=540895 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.282Z
-- 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=540827 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.283Z
-- 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=540828 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.283Z
-- 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=540849 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.285Z
-- 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=540911 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.285Z
-- 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=540427 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.286Z
-- 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=540438 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.287Z
-- 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=540912 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.288Z
-- 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=540913 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.288Z
-- 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=540894 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.289Z
-- 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=540917 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.290Z
-- 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=540982 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.291Z
-- 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=541414 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.292Z
-- 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=540919 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.293Z
-- 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=540983 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.293Z
-- 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=53101 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.294Z
-- 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=541080 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.295Z
-- 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=541273 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.295Z
-- 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=363 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.296Z
-- 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=541079 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.297Z
-- 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=541108 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.298Z
-- 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=541053 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.298Z
-- 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=541052 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.299Z
-- 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=541233 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.300Z
-- 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=53103 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.300Z
-- 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=541389 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.301Z
-- 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=540243 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.302Z
-- 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=541041 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.302Z
-- 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=541104 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.303Z
-- 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=541109 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.304Z
-- 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=541162 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.304Z
-- 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=1000099 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.305Z
-- 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=1000100 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.305Z
-- 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=1000101 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.306Z
-- 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=540901 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.306Z
-- 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=541282 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.307Z
-- 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=541339 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.307Z
-- 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=541326 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.308Z
-- 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=541417 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.308Z
-- 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=540631 AND AD_Tree_ID=10
;
-- 2020-01-17T15:56:07.309Z
-- 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=541374 AND AD_Tree_ID=10
; | the_stack |
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: espocrm
-- ------------------------------------------------------
-- Server version 5.7.17-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 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 `account`
--
DROP TABLE IF EXISTS `account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`industry` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`sic_code` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
`billing_address_street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`billing_address_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`billing_address_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`billing_address_country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`billing_address_postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`shipping_address_street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`shipping_address_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`shipping_address_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`shipping_address_country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`shipping_address_postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_7D3656A4F639F774` (`campaign_id`),
KEY `IDX_7D3656A4B03A8386` (`created_by_id`),
KEY `IDX_7D3656A499049ECE` (`modified_by_id`),
KEY `IDX_7D3656A4ADF66B1A` (`assigned_user_id`),
KEY `IDX_ACCOUNT_NAME` (`name`,`deleted`),
KEY `IDX_ACCOUNT_ASSIGNED_USER` (`assigned_user_id`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `account_contact`
--
DROP TABLE IF EXISTS `account_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_contact` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`role` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_8549F2709B6B5FBAE7A1254A` (`account_id`,`contact_id`),
KEY `IDX_8549F2709B6B5FBA` (`account_id`),
KEY `IDX_8549F270E7A1254A` (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `account_document`
--
DROP TABLE IF EXISTS `account_document`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_document` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`document_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_A0A768C09B6B5FBAC33F7837` (`account_id`,`document_id`),
KEY `IDX_A0A768C09B6B5FBA` (`account_id`),
KEY `IDX_A0A768C0C33F7837` (`document_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `account_portal_user`
--
DROP TABLE IF EXISTS `account_portal_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_portal_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_D622EDE7A76ED3959B6B5FBA` (`user_id`,`account_id`),
KEY `IDX_D622EDE7A76ED395` (`user_id`),
KEY `IDX_D622EDE79B6B5FBA` (`account_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `account_target_list`
--
DROP TABLE IF EXISTS `account_target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_target_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opted_out` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_589712AA9B6B5FBAF6C6AFE0` (`account_id`,`target_list_id`),
KEY `IDX_589712AA9B6B5FBA` (`account_id`),
KEY `IDX_589712AAF6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `attachment`
--
DROP TABLE IF EXISTS `attachment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachment` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`size` int(11) DEFAULT NULL,
`source_id` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`role` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`storage` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`global` tinyint(1) NOT NULL DEFAULT '0',
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `related` (`related_id`,`related_type`),
KEY `IDX_795FD9BBB03A8386` (`created_by_id`),
KEY `IDX_ATTACHMENT_PARENT` (`parent_type`,`parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `auth_token`
--
DROP TABLE IF EXISTS `auth_token`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_token` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`token` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`hash` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`ip_address` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_access` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`portal_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9315F04E5F37A13B` (`token`),
KEY `IDX_9315F04ED1B862B8` (`hash`),
KEY `IDX_9315F04EA76ED395` (`user_id`),
KEY `IDX_9315F04EB887E1DD` (`portal_id`),
KEY `IDX_AUTH_TOKEN_TOKEN` (`token`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `autofollow`
--
DROP TABLE IF EXISTS `autofollow`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autofollow` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `entityType` (`entity_type`),
KEY `IDX_EB89C717A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `call`
--
DROP TABLE IF EXISTS `call`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `call` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Planned',
`date_start` datetime DEFAULT NULL,
`date_end` datetime DEFAULT NULL,
`direction` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Outbound',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `IDX_CC8E2F3E9B6B5FBA` (`account_id`),
KEY `IDX_CC8E2F3EB03A8386` (`created_by_id`),
KEY `IDX_CC8E2F3E99049ECE` (`modified_by_id`),
KEY `IDX_CC8E2F3EADF66B1A` (`assigned_user_id`),
KEY `IDX_CALL_DATE_START_STATUS` (`date_start`,`status`),
KEY `IDX_CALL_DATE_START` (`date_start`,`deleted`),
KEY `IDX_CALL_STATUS` (`status`,`deleted`),
KEY `IDX_CALL_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_CALL_ASSIGNED_USER_STATUS` (`assigned_user_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `call_contact`
--
DROP TABLE IF EXISTS `call_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `call_contact` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`call_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_99C77F0D50A89B2CE7A1254A` (`call_id`,`contact_id`),
KEY `IDX_99C77F0D50A89B2C` (`call_id`),
KEY `IDX_99C77F0DE7A1254A` (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `call_lead`
--
DROP TABLE IF EXISTS `call_lead`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `call_lead` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`call_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`lead_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_1F10069750A89B2C55458D` (`call_id`,`lead_id`),
KEY `IDX_1F10069750A89B2C` (`call_id`),
KEY `IDX_1F10069755458D` (`lead_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `call_user`
--
DROP TABLE IF EXISTS `call_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `call_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`call_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_BA12B115A76ED39550A89B2C` (`user_id`,`call_id`),
KEY `IDX_BA12B115A76ED395` (`user_id`),
KEY `IDX_BA12B11550A89B2C` (`call_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `campaign`
--
DROP TABLE IF EXISTS `campaign`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaign` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Planning',
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Email',
`start_date` date DEFAULT NULL,
`end_date` date DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`budget` double DEFAULT NULL,
`budget_currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_1F1512DDB03A8386` (`created_by_id`),
KEY `IDX_1F1512DD99049ECE` (`modified_by_id`),
KEY `IDX_1F1512DDADF66B1A` (`assigned_user_id`),
KEY `IDX_CAMPAIGN_CREATED_AT` (`created_at`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `campaign_log_record`
--
DROP TABLE IF EXISTS `campaign_log_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaign_log_record` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`action` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`action_date` datetime DEFAULT NULL,
`data` longtext COLLATE utf8_unicode_ci,
`string_data` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`string_additional_data` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`application` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'Espo',
`created_at` datetime DEFAULT NULL,
`is_test` tinyint(1) NOT NULL DEFAULT '0',
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`object_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`object_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`queue_item_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_49D9EC9BB03A8386` (`created_by_id`),
KEY `IDX_49D9EC9BF639F774` (`campaign_id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `object` (`object_id`,`object_type`),
KEY `IDX_49D9EC9BF0EDC960` (`queue_item_id`),
KEY `IDX_CAMPAIGN_LOG_RECORD_ACTION_DATE` (`action_date`,`deleted`),
KEY `IDX_CAMPAIGN_LOG_RECORD_ACTION` (`action`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `campaign_target_list`
--
DROP TABLE IF EXISTS `campaign_target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaign_target_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_511AD253F639F774F6C6AFE0` (`campaign_id`,`target_list_id`),
KEY `IDX_511AD253F639F774` (`campaign_id`),
KEY `IDX_511AD253F6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `campaign_target_list_excluding`
--
DROP TABLE IF EXISTS `campaign_target_list_excluding`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaign_target_list_excluding` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_ED6FB4A6F639F774F6C6AFE0` (`campaign_id`,`target_list_id`),
KEY `IDX_ED6FB4A6F639F774` (`campaign_id`),
KEY `IDX_ED6FB4A6F6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `campaign_tracking_url`
--
DROP TABLE IF EXISTS `campaign_tracking_url`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaign_tracking_url` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_EEB66723F639F774` (`campaign_id`),
KEY `IDX_EEB6672399049ECE` (`modified_by_id`),
KEY `IDX_EEB66723B03A8386` (`created_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `case`
--
DROP TABLE IF EXISTS `case`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `case` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`number` int(11) NOT NULL AUTO_INCREMENT,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'New',
`priority` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Normal',
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`lead_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`inbound_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
UNIQUE KEY `UNIQ_7808990496901F54` (`number`),
KEY `IDX_780899049B6B5FBA` (`account_id`),
KEY `IDX_7808990455458D` (`lead_id`),
KEY `IDX_78089904E7A1254A` (`contact_id`),
KEY `IDX_78089904E540AEA2` (`inbound_email_id`),
KEY `IDX_78089904B03A8386` (`created_by_id`),
KEY `IDX_7808990499049ECE` (`modified_by_id`),
KEY `IDX_78089904ADF66B1A` (`assigned_user_id`),
KEY `IDX_CASE_STATUS` (`status`,`deleted`),
KEY `IDX_CASE_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_CASE_ASSIGNED_USER_STATUS` (`assigned_user_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `case_contact`
--
DROP TABLE IF EXISTS `case_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `case_contact` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`case_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_E3C11333CF10D4F5E7A1254A` (`case_id`,`contact_id`),
KEY `IDX_E3C11333CF10D4F5` (`case_id`),
KEY `IDX_E3C11333E7A1254A` (`contact_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `case_knowledge_base_article`
--
DROP TABLE IF EXISTS `case_knowledge_base_article`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `case_knowledge_base_article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`case_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`knowledge_base_article_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_FE20B41CF10D4F59D68CDED` (`case_id`,`knowledge_base_article_id`),
KEY `IDX_FE20B41CF10D4F5` (`case_id`),
KEY `IDX_FE20B419D68CDED` (`knowledge_base_article_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contact`
--
DROP TABLE IF EXISTS `contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contact` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`salutation_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`last_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`do_not_call` tinyint(1) NOT NULL DEFAULT '0',
`address_street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_4C62E6389B6B5FBA` (`account_id`),
KEY `IDX_4C62E638F639F774` (`campaign_id`),
KEY `IDX_4C62E638B03A8386` (`created_by_id`),
KEY `IDX_4C62E63899049ECE` (`modified_by_id`),
KEY `IDX_4C62E638ADF66B1A` (`assigned_user_id`),
KEY `IDX_CONTACT_FIRST_NAME` (`first_name`,`deleted`),
KEY `IDX_CONTACT_NAME` (`first_name`,`last_name`),
KEY `IDX_CONTACT_ASSIGNED_USER` (`assigned_user_id`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contact_document`
--
DROP TABLE IF EXISTS `contact_document`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contact_document` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`document_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_424C16E1E7A1254AC33F7837` (`contact_id`,`document_id`),
KEY `IDX_424C16E1E7A1254A` (`contact_id`),
KEY `IDX_424C16E1C33F7837` (`document_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contact_meeting`
--
DROP TABLE IF EXISTS `contact_meeting`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contact_meeting` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`meeting_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_6F3AC0B8E7A1254A67433D9C` (`contact_id`,`meeting_id`),
KEY `IDX_6F3AC0B8E7A1254A` (`contact_id`),
KEY `IDX_6F3AC0B867433D9C` (`meeting_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contact_opportunity`
--
DROP TABLE IF EXISTS `contact_opportunity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contact_opportunity` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opportunity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`role` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_ED257C69E7A1254A9A34590F` (`contact_id`,`opportunity_id`),
KEY `IDX_ED257C69E7A1254A` (`contact_id`),
KEY `IDX_ED257C699A34590F` (`opportunity_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `contact_target_list`
--
DROP TABLE IF EXISTS `contact_target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contact_target_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opted_out` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_E77C5117E7A1254AF6C6AFE0` (`contact_id`,`target_list_id`),
KEY `IDX_E77C5117E7A1254A` (`contact_id`),
KEY `IDX_E77C5117F6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `currency`
--
DROP TABLE IF EXISTS `currency`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `currency` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`rate` double DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document`
--
DROP TABLE IF EXISTS `document`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`source` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Espo',
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`publish_date` date DEFAULT NULL,
`expiration_date` date DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`folder_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`file_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_D8698A76B03A8386` (`created_by_id`),
KEY `IDX_D8698A7699049ECE` (`modified_by_id`),
KEY `IDX_D8698A76ADF66B1A` (`assigned_user_id`),
KEY `IDX_D8698A76162CB942` (`folder_id`),
KEY `IDX_D8698A7693CB796C` (`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document_folder`
--
DROP TABLE IF EXISTS `document_folder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_folder` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_52C0B8ABB03A8386` (`created_by_id`),
KEY `IDX_52C0B8AB99049ECE` (`modified_by_id`),
KEY `IDX_52C0B8AB727ACA70` (`parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document_folder_path`
--
DROP TABLE IF EXISTS `document_folder_path`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_folder_path` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ascendor_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`descendor_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `IDX_90629A7011FE3B6C` (`ascendor_id`),
KEY `IDX_90629A709A21681A` (`descendor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document_lead`
--
DROP TABLE IF EXISTS `document_lead`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_lead` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`document_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`lead_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_8F25ED58C33F783755458D` (`document_id`,`lead_id`),
KEY `IDX_8F25ED58C33F7837` (`document_id`),
KEY `IDX_8F25ED5855458D` (`lead_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document_opportunity`
--
DROP TABLE IF EXISTS `document_opportunity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_opportunity` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`document_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opportunity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_120F4BDC33F78379A34590F` (`document_id`,`opportunity_id`),
KEY `IDX_120F4BDC33F7837` (`document_id`),
KEY `IDX_120F4BD9A34590F` (`opportunity_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email`
--
DROP TABLE IF EXISTS `email`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`from_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`from_string` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_to_string` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_replied` tinyint(1) NOT NULL DEFAULT '0',
`message_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`message_id_internal` varchar(300) COLLATE utf8_unicode_ci DEFAULT NULL,
`body_plain` longtext COLLATE utf8_unicode_ci,
`body` longtext COLLATE utf8_unicode_ci,
`is_html` tinyint(1) NOT NULL DEFAULT '1',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Archived',
`has_attachment` tinyint(1) NOT NULL DEFAULT '0',
`date_sent` datetime DEFAULT NULL,
`delivery_date` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`is_system` tinyint(1) NOT NULL DEFAULT '0',
`from_email_address_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`sent_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`replied_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_E7927C74D445573A` (`from_email_address_id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `IDX_E7927C74B03A8386` (`created_by_id`),
KEY `IDX_E7927C74A45BB98C` (`sent_by_id`),
KEY `IDX_E7927C7499049ECE` (`modified_by_id`),
KEY `IDX_E7927C74ADF66B1A` (`assigned_user_id`),
KEY `IDX_E7927C74B4E994E0` (`replied_id`),
KEY `IDX_E7927C749B6B5FBA` (`account_id`),
KEY `IDX_EMAIL_DATE_SENT_ASSIGNED_USER` (`date_sent`,`assigned_user_id`),
KEY `IDX_EMAIL_DATE_SENT` (`date_sent`,`deleted`),
KEY `IDX_EMAIL_DATE_SENT_STATUS` (`date_sent`,`status`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_account`
--
DROP TABLE IF EXISTS `email_account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_account` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`email_address` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`port` varchar(255) COLLATE utf8_unicode_ci DEFAULT '143',
`ssl` tinyint(1) NOT NULL DEFAULT '0',
`username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`monitored_folders` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'INBOX',
`sent_folder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`store_sent_emails` tinyint(1) NOT NULL DEFAULT '0',
`keep_fetched_emails_unread` tinyint(1) NOT NULL DEFAULT '0',
`fetch_since` date DEFAULT NULL,
`fetch_data` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`use_smtp` tinyint(1) NOT NULL DEFAULT '0',
`smtp_host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_port` int(11) DEFAULT '25',
`smtp_auth` tinyint(1) NOT NULL DEFAULT '0',
`smtp_security` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email_folder_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_C0F63E6B19272669` (`email_folder_id`),
KEY `IDX_C0F63E6BADF66B1A` (`assigned_user_id`),
KEY `IDX_C0F63E6BB03A8386` (`created_by_id`),
KEY `IDX_C0F63E6B99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_address`
--
DROP TABLE IF EXISTS `email_address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_address` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`lower` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`invalid` tinyint(1) NOT NULL DEFAULT '0',
`opt_out` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `IDX_B08E074EE9A7B23` (`lower`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_email_account`
--
DROP TABLE IF EXISTS `email_email_account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_email_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`email_account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_32C12DC3A832C1C937D8AD65` (`email_id`,`email_account_id`),
KEY `IDX_32C12DC3A832C1C9` (`email_id`),
KEY `IDX_32C12DC337D8AD65` (`email_account_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_email_address`
--
DROP TABLE IF EXISTS `email_email_address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_email_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`email_address_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_type` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_42B914E6A832C1C959045DAAF19287C2` (`email_id`,`email_address_id`,`address_type`),
KEY `IDX_42B914E6A832C1C9` (`email_id`),
KEY `IDX_42B914E659045DAA` (`email_address_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_filter`
--
DROP TABLE IF EXISTS `email_filter`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_filter` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`from` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`to` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`body_contains` longtext COLLATE utf8_unicode_ci,
`is_global` tinyint(1) NOT NULL DEFAULT '0',
`action` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Skip',
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`email_folder_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `IDX_25E8CED19272669` (`email_folder_id`),
KEY `IDX_25E8CEDB03A8386` (`created_by_id`),
KEY `IDX_25E8CED99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_folder`
--
DROP TABLE IF EXISTS `email_folder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_folder` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`order` int(11) DEFAULT NULL,
`skip_notifications` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9138DA3DADF66B1A` (`assigned_user_id`),
KEY `IDX_9138DA3DB03A8386` (`created_by_id`),
KEY `IDX_9138DA3D99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_inbound_email`
--
DROP TABLE IF EXISTS `email_inbound_email`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_inbound_email` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`inbound_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_41D62720A832C1C9E540AEA2` (`email_id`,`inbound_email_id`),
KEY `IDX_41D62720A832C1C9` (`email_id`),
KEY `IDX_41D62720E540AEA2` (`inbound_email_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_queue_item`
--
DROP TABLE IF EXISTS `email_queue_item`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_queue_item` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`attempt_count` int(11) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`sent_at` datetime DEFAULT NULL,
`email_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_test` tinyint(1) NOT NULL DEFAULT '0',
`mass_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_16F89F37EF1946AB` (`mass_email_id`),
KEY `target` (`target_id`,`target_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_template`
--
DROP TABLE IF EXISTS `email_template`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_template` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`body` longtext COLLATE utf8_unicode_ci,
`is_html` tinyint(1) NOT NULL DEFAULT '1',
`one_off` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9C0600CAADF66B1A` (`assigned_user_id`),
KEY `IDX_9C0600CAB03A8386` (`created_by_id`),
KEY `IDX_9C0600CA99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `email_user`
--
DROP TABLE IF EXISTS `email_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `email_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_read` tinyint(1) DEFAULT '0',
`is_important` tinyint(1) DEFAULT '0',
`in_trash` tinyint(1) DEFAULT '0',
`folder_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_12A5F6CCA832C1C9A76ED395` (`email_id`,`user_id`),
KEY `IDX_12A5F6CCA832C1C9` (`email_id`),
KEY `IDX_12A5F6CCA76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `entity_email_address`
--
DROP TABLE IF EXISTS `entity_email_address`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_email_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`email_address_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`primary` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_9125AB4281257D5D59045DAAC412EE02` (`entity_id`,`email_address_id`,`entity_type`),
KEY `IDX_9125AB4281257D5D` (`entity_id`),
KEY `IDX_9125AB4259045DAA` (`email_address_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `entity_phone_number`
--
DROP TABLE IF EXISTS `entity_phone_number`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_phone_number` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`phone_number_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`primary` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_7459056F81257D5D39DFD528C412EE02` (`entity_id`,`phone_number_id`,`entity_type`),
KEY `IDX_7459056F81257D5D` (`entity_id`),
KEY `IDX_7459056F39DFD528` (`phone_number_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `entity_team`
--
DROP TABLE IF EXISTS `entity_team`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_8C2C1F3481257D5D296CD8AEC412EE02` (`entity_id`,`team_id`,`entity_type`),
KEY `IDX_8C2C1F3481257D5D` (`entity_id`),
KEY `IDX_8C2C1F34296CD8AE` (`team_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `entity_user`
--
DROP TABLE IF EXISTS `entity_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `entity_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_C55F6F6281257D5DA76ED395C412EE02` (`entity_id`,`user_id`,`entity_type`),
KEY `IDX_C55F6F6281257D5D` (`entity_id`),
KEY `IDX_C55F6F62A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `extension`
--
DROP TABLE IF EXISTS `extension`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `extension` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`version` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`file_list` longtext COLLATE utf8_unicode_ci,
`description` longtext COLLATE utf8_unicode_ci,
`is_installed` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9FB73D77B03A8386` (`created_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `external_account`
--
DROP TABLE IF EXISTS `external_account`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `external_account` (
`id` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`data` longtext COLLATE utf8_unicode_ci,
`enabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `import`
--
DROP TABLE IF EXISTS `import`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `import` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`entity_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`file_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9D4ECE1DB03A8386` (`created_by_id`),
KEY `IDX_9D4ECE1D93CB796C` (`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `import_entity`
--
DROP TABLE IF EXISTS `import_entity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `import_entity` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`import_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_imported` tinyint(1) DEFAULT '0',
`is_updated` tinyint(1) DEFAULT '0',
`is_duplicate` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `entity` (`entity_id`,`entity_type`),
KEY `IDX_7219FE70B6A263D9` (`import_id`),
KEY `IDX_IMPORT_ENTITY_ENTITY_IMPORT` (`import_id`,`entity_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `inbound_email`
--
DROP TABLE IF EXISTS `inbound_email`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `inbound_email` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`email_address` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`port` varchar(255) COLLATE utf8_unicode_ci DEFAULT '143',
`ssl` tinyint(1) NOT NULL DEFAULT '0',
`username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`monitored_folders` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'INBOX',
`fetch_since` date DEFAULT NULL,
`fetch_data` longtext COLLATE utf8_unicode_ci,
`add_all_team_users` tinyint(1) NOT NULL DEFAULT '0',
`create_case` tinyint(1) NOT NULL DEFAULT '0',
`case_distribution` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Direct-Assignment',
`target_user_position` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply` tinyint(1) NOT NULL DEFAULT '0',
`reply_from_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_to_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_from_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`assign_to_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_email_template_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_B3E134886D716643` (`assign_to_user_id`),
KEY `IDX_B3E13488296CD8AE` (`team_id`),
KEY `IDX_B3E134885AE5A3F7` (`reply_email_template_id`),
KEY `IDX_B3E13488B03A8386` (`created_by_id`),
KEY `IDX_B3E1348899049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integration`
--
DROP TABLE IF EXISTS `integration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integration` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`data` longtext COLLATE utf8_unicode_ci,
`enabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `job`
--
DROP TABLE IF EXISTS `job`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `job` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Pending',
`execute_time` datetime DEFAULT NULL,
`service_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`method` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` longtext COLLATE utf8_unicode_ci,
`attempts` int(11) DEFAULT NULL,
`target_id` varchar(48) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`failed_attempts` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`scheduled_job_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_FBD8E0F8A71ECAB0` (`scheduled_job_id`),
KEY `IDX_JOB_EXECUTE_TIME` (`status`,`execute_time`),
KEY `IDX_JOB_STATUS` (`status`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `knowledge_base_article`
--
DROP TABLE IF EXISTS `knowledge_base_article`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `knowledge_base_article` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Draft',
`language` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`publish_date` date DEFAULT NULL,
`expiration_date` date DEFAULT NULL,
`order` int(11) DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`body` longtext COLLATE utf8_unicode_ci,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_9815B630B03A8386` (`created_by_id`),
KEY `IDX_9815B63099049ECE` (`modified_by_id`),
KEY `IDX_9815B630ADF66B1A` (`assigned_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `knowledge_base_article_knowledge_base_category`
--
DROP TABLE IF EXISTS `knowledge_base_article_knowledge_base_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `knowledge_base_article_knowledge_base_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`knowledge_base_article_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`knowledge_base_category_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_35B2D2AC9D68CDED35AB2003` (`knowledge_base_article_id`,`knowledge_base_category_id`),
KEY `IDX_35B2D2AC9D68CDED` (`knowledge_base_article_id`),
KEY `IDX_35B2D2AC35AB2003` (`knowledge_base_category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `knowledge_base_article_portal`
--
DROP TABLE IF EXISTS `knowledge_base_article_portal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `knowledge_base_article_portal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`portal_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`knowledge_base_article_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_4699F0F0B887E1DD9D68CDED` (`portal_id`,`knowledge_base_article_id`),
KEY `IDX_4699F0F0B887E1DD` (`portal_id`),
KEY `IDX_4699F0F09D68CDED` (`knowledge_base_article_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `knowledge_base_category`
--
DROP TABLE IF EXISTS `knowledge_base_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `knowledge_base_category` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`order` int(11) DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_84DEC2B8B03A8386` (`created_by_id`),
KEY `IDX_84DEC2B899049ECE` (`modified_by_id`),
KEY `IDX_84DEC2B8727ACA70` (`parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `knowledge_base_category_path`
--
DROP TABLE IF EXISTS `knowledge_base_category_path`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `knowledge_base_category_path` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ascendor_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`descendor_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `IDX_727ADB3911FE3B6C` (`ascendor_id`),
KEY `IDX_727ADB399A21681A` (`descendor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `lead`
--
DROP TABLE IF EXISTS `lead`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lead` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`salutation_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`last_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'New',
`source` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`industry` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`opportunity_amount` double DEFAULT NULL,
`website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`do_not_call` tinyint(1) NOT NULL DEFAULT '0',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`account_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`opportunity_amount_currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_opportunity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_289161CBB03A8386` (`created_by_id`),
KEY `IDX_289161CB99049ECE` (`modified_by_id`),
KEY `IDX_289161CBADF66B1A` (`assigned_user_id`),
KEY `IDX_289161CBF639F774` (`campaign_id`),
KEY `IDX_289161CB3AEF561B` (`created_account_id`),
KEY `IDX_289161CB46252CEB` (`created_contact_id`),
KEY `IDX_289161CB9E0CD2D1` (`created_opportunity_id`),
KEY `IDX_LEAD_FIRST_NAME` (`first_name`,`deleted`),
KEY `IDX_LEAD_NAME` (`first_name`,`last_name`),
KEY `IDX_LEAD_STATUS` (`status`,`deleted`),
KEY `IDX_LEAD_CREATED_AT` (`created_at`,`deleted`),
KEY `IDX_LEAD_CREATED_AT_STATUS` (`created_at`,`status`),
KEY `IDX_LEAD_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_LEAD_ASSIGNED_USER_STATUS` (`assigned_user_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `lead_meeting`
--
DROP TABLE IF EXISTS `lead_meeting`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lead_meeting` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lead_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`meeting_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_ACDBBD5755458D67433D9C` (`lead_id`,`meeting_id`),
KEY `IDX_ACDBBD5755458D` (`lead_id`),
KEY `IDX_ACDBBD5767433D9C` (`meeting_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `lead_target_list`
--
DROP TABLE IF EXISTS `lead_target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lead_target_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`lead_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opted_out` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_7041AADD55458DF6C6AFE0` (`lead_id`,`target_list_id`),
KEY `IDX_7041AADD55458D` (`lead_id`),
KEY `IDX_7041AADDF6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `mass_email`
--
DROP TABLE IF EXISTS `mass_email`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mass_email` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Pending',
`store_sent_emails` tinyint(1) NOT NULL DEFAULT '0',
`opt_out_entirely` tinyint(1) NOT NULL DEFAULT '0',
`from_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`from_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_to_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`reply_to_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`start_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`email_template_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`inbound_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_AFBC1FDF131A730F` (`email_template_id`),
KEY `IDX_AFBC1FDFF639F774` (`campaign_id`),
KEY `IDX_AFBC1FDFE540AEA2` (`inbound_email_id`),
KEY `IDX_AFBC1FDFB03A8386` (`created_by_id`),
KEY `IDX_AFBC1FDF99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `mass_email_target_list`
--
DROP TABLE IF EXISTS `mass_email_target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mass_email_target_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mass_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_6B9CE04DEF1946ABF6C6AFE0` (`mass_email_id`,`target_list_id`),
KEY `IDX_6B9CE04DEF1946AB` (`mass_email_id`),
KEY `IDX_6B9CE04DF6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `mass_email_target_list_excluding`
--
DROP TABLE IF EXISTS `mass_email_target_list_excluding`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mass_email_target_list_excluding` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mass_email_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_4D889BE8EF1946ABF6C6AFE0` (`mass_email_id`,`target_list_id`),
KEY `IDX_4D889BE8EF1946AB` (`mass_email_id`),
KEY `IDX_4D889BE8F6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `meeting`
--
DROP TABLE IF EXISTS `meeting`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `meeting` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Planned',
`date_start` datetime DEFAULT NULL,
`date_end` datetime DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `IDX_F515E1399B6B5FBA` (`account_id`),
KEY `IDX_F515E139B03A8386` (`created_by_id`),
KEY `IDX_F515E13999049ECE` (`modified_by_id`),
KEY `IDX_F515E139ADF66B1A` (`assigned_user_id`),
KEY `IDX_MEETING_DATE_START_STATUS` (`date_start`,`status`),
KEY `IDX_MEETING_DATE_START` (`date_start`,`deleted`),
KEY `IDX_MEETING_STATUS` (`status`,`deleted`),
KEY `IDX_MEETING_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_MEETING_ASSIGNED_USER_STATUS` (`assigned_user_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `meeting_user`
--
DROP TABLE IF EXISTS `meeting_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `meeting_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`meeting_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'None',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_61622E9BA76ED39567433D9C` (`user_id`,`meeting_id`),
KEY `IDX_61622E9BA76ED395` (`user_id`),
KEY `IDX_61622E9B67433D9C` (`meeting_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `next_number`
--
DROP TABLE IF EXISTS `next_number`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `next_number` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`entity_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`field_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`value` int(11) DEFAULT '1',
PRIMARY KEY (`id`),
KEY `IDX_CF451AE8C412EE02` (`entity_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `note`
--
DROP TABLE IF EXISTS `note`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `note` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`post` longtext COLLATE utf8_unicode_ci,
`data` longtext COLLATE utf8_unicode_ci,
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`number` int(11) NOT NULL AUTO_INCREMENT,
`is_global` tinyint(1) NOT NULL DEFAULT '0',
`is_internal` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`super_parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`super_parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
UNIQUE KEY `UNIQ_CFBDFA1496901F54` (`number`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `related` (`related_id`,`related_type`),
KEY `IDX_CFBDFA14B03A8386` (`created_by_id`),
KEY `IDX_CFBDFA1499049ECE` (`modified_by_id`),
KEY `superParent` (`super_parent_id`,`super_parent_type`),
KEY `IDX_NOTE_CREATED_AT` (`created_at`),
KEY `IDX_NOTE_PARENT_AND_SUPER_PARENT` (`parent_id`,`parent_type`,`super_parent_id`,`super_parent_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `note_portal`
--
DROP TABLE IF EXISTS `note_portal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `note_portal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`note_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`portal_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_137CC42426ED0855B887E1DD` (`note_id`,`portal_id`),
KEY `IDX_137CC42426ED0855` (`note_id`),
KEY `IDX_137CC424B887E1DD` (`portal_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `note_team`
--
DROP TABLE IF EXISTS `note_team`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `note_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`note_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_649AB74726ED0855296CD8AE` (`note_id`,`team_id`),
KEY `IDX_649AB74726ED0855` (`note_id`),
KEY `IDX_649AB747296CD8AE` (`team_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `note_user`
--
DROP TABLE IF EXISTS `note_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `note_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`note_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_2DE9C71126ED0855A76ED395` (`note_id`,`user_id`),
KEY `IDX_2DE9C71126ED0855` (`note_id`),
KEY `IDX_2DE9C711A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `notification`
--
DROP TABLE IF EXISTS `notification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`number` int(11) NOT NULL AUTO_INCREMENT,
`data` longtext COLLATE utf8_unicode_ci,
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`read` tinyint(1) NOT NULL DEFAULT '0',
`email_is_processed` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`message` longtext COLLATE utf8_unicode_ci,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`related_parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
UNIQUE KEY `UNIQ_BF5476CA96901F54` (`number`),
KEY `IDX_BF5476CAA76ED395` (`user_id`),
KEY `related` (`related_id`,`related_type`),
KEY `relatedParent` (`related_parent_id`,`related_parent_type`),
KEY `IDX_NOTIFICATION_CREATED_AT` (`created_at`),
KEY `IDX_NOTIFICATION_USER` (`user_id`,`created_at`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `opportunity`
--
DROP TABLE IF EXISTS `opportunity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `opportunity` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`amount` double DEFAULT NULL,
`stage` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Prospecting',
`probability` int(11) DEFAULT NULL,
`lead_source` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`close_date` date DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`amount_currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`campaign_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_8389C3D79B6B5FBA` (`account_id`),
KEY `IDX_8389C3D7F639F774` (`campaign_id`),
KEY `IDX_8389C3D7B03A8386` (`created_by_id`),
KEY `IDX_8389C3D799049ECE` (`modified_by_id`),
KEY `IDX_8389C3D7ADF66B1A` (`assigned_user_id`),
KEY `IDX_OPPORTUNITY_STAGE` (`stage`,`deleted`),
KEY `IDX_OPPORTUNITY_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_OPPORTUNITY_CREATED_AT` (`created_at`,`deleted`),
KEY `IDX_OPPORTUNITY_CREATED_AT_STAGE` (`created_at`,`stage`),
KEY `IDX_OPPORTUNITY_ASSIGNED_USER_STAGE` (`assigned_user_id`,`stage`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `password_change_request`
--
DROP TABLE IF EXISTS `password_change_request`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_change_request` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`request_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_AC3A261F427EB8A5` (`request_id`),
KEY `IDX_AC3A261FA76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `phone_number`
--
DROP TABLE IF EXISTS `phone_number`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `phone_number` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_6B01BC5B5E237E06` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `portal`
--
DROP TABLE IF EXISTS `portal`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`custom_id` varchar(36) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`tab_list` longtext COLLATE utf8_unicode_ci,
`quick_create_list` longtext COLLATE utf8_unicode_ci,
`theme` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`language` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`time_zone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`date_format` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`time_format` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`week_start` int(11) DEFAULT '-1',
`default_currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`dashboard_layout` longtext COLLATE utf8_unicode_ci,
`dashlets_options` longtext COLLATE utf8_unicode_ci,
`custom_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`logo_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`company_logo_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_BAE93F0614A603A` (`custom_id`),
KEY `IDX_BAE93F099049ECE` (`modified_by_id`),
KEY `IDX_BAE93F0B03A8386` (`created_by_id`),
KEY `IDX_BAE93F0F98F144A` (`logo_id`),
KEY `IDX_BAE93F0D9DD0E9D` (`company_logo_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `portal_portal_role`
--
DROP TABLE IF EXISTS `portal_portal_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_portal_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`portal_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`portal_role_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_B29E22C7B887E1DDD7C6FAB5` (`portal_id`,`portal_role_id`),
KEY `IDX_B29E22C7B887E1DD` (`portal_id`),
KEY `IDX_B29E22C7D7C6FAB5` (`portal_role_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `portal_role`
--
DROP TABLE IF EXISTS `portal_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_role` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`data` longtext COLLATE utf8_unicode_ci,
`field_data` longtext COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `portal_role_user`
--
DROP TABLE IF EXISTS `portal_role_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_role_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`portal_role_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_202456E6D7C6FAB5A76ED395` (`portal_role_id`,`user_id`),
KEY `IDX_202456E6D7C6FAB5` (`portal_role_id`),
KEY `IDX_202456E6A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `portal_user`
--
DROP TABLE IF EXISTS `portal_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `portal_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`portal_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_76511E4B887E1DDA76ED395` (`portal_id`,`user_id`),
KEY `IDX_76511E4B887E1DD` (`portal_id`),
KEY `IDX_76511E4A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `preferences`
--
DROP TABLE IF EXISTS `preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preferences` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`time_zone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`date_format` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`time_format` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`week_start` int(11) DEFAULT '-1',
`default_currency` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`thousand_separator` varchar(1) COLLATE utf8_unicode_ci DEFAULT ',',
`decimal_mark` varchar(1) COLLATE utf8_unicode_ci DEFAULT '.',
`dashboard_layout` longtext COLLATE utf8_unicode_ci,
`dashlets_options` longtext COLLATE utf8_unicode_ci,
`shared_calendar_user_list` longtext COLLATE utf8_unicode_ci,
`preset_filters` longtext COLLATE utf8_unicode_ci,
`smtp_server` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_port` int(11) DEFAULT '25',
`smtp_auth` tinyint(1) NOT NULL DEFAULT '0',
`smtp_security` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`smtp_password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`language` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`export_delimiter` varchar(1) COLLATE utf8_unicode_ci DEFAULT ',',
`receive_assignment_email_notifications` tinyint(1) NOT NULL DEFAULT '1',
`receive_mention_email_notifications` tinyint(1) NOT NULL DEFAULT '1',
`receive_stream_email_notifications` tinyint(1) NOT NULL DEFAULT '1',
`signature` longtext COLLATE utf8_unicode_ci,
`default_reminders` longtext COLLATE utf8_unicode_ci,
`theme` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`use_custom_tab_list` tinyint(1) NOT NULL DEFAULT '0',
`tab_list` longtext COLLATE utf8_unicode_ci,
`email_reply_to_all_by_default` tinyint(1) NOT NULL DEFAULT '1',
`email_reply_force_html` tinyint(1) NOT NULL DEFAULT '0',
`do_not_fill_assigned_user_if_not_required` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `reminder`
--
DROP TABLE IF EXISTS `reminder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reminder` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`remind_at` datetime DEFAULT NULL,
`start_at` datetime DEFAULT NULL,
`type` varchar(36) COLLATE utf8_unicode_ci DEFAULT 'Popup',
`seconds` int(11) DEFAULT '0',
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_40374F40BBE50DA3` (`remind_at`),
KEY `IDX_40374F40B75363F7` (`start_at`),
KEY `IDX_40374F408CDE5729` (`type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `role`
--
DROP TABLE IF EXISTS `role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`assignment_permission` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'not-set',
`user_permission` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'not-set',
`portal_permission` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'not-set',
`data` longtext COLLATE utf8_unicode_ci,
`field_data` longtext COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `role_team`
--
DROP TABLE IF EXISTS `role_team`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_7A5FD48BD60322AC296CD8AE` (`role_id`,`team_id`),
KEY `IDX_7A5FD48BD60322AC` (`role_id`),
KEY `IDX_7A5FD48B296CD8AE` (`team_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `role_user`
--
DROP TABLE IF EXISTS `role_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`role_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_332CA4DDD60322ACA76ED395` (`role_id`,`user_id`),
KEY `IDX_332CA4DDD60322AC` (`role_id`),
KEY `IDX_332CA4DDA76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `scheduled_job`
--
DROP TABLE IF EXISTS `scheduled_job`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scheduled_job` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`job` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`scheduling` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`last_run` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_800A50CEB03A8386` (`created_by_id`),
KEY `IDX_800A50CE99049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `scheduled_job_log_record`
--
DROP TABLE IF EXISTS `scheduled_job_log_record`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scheduled_job_log_record` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`execution_time` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`scheduled_job_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_615BB231A71ECAB0` (`scheduled_job_id`),
KEY `target` (`target_id`,`target_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `subscription`
--
DROP TABLE IF EXISTS `subscription`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subscription` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`entity_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`entity_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `entity` (`entity_id`,`entity_type`),
KEY `IDX_A3C664D3A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `target`
--
DROP TABLE IF EXISTS `target`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `target` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`salutation_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`last_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_street` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`address_postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`do_not_call` tinyint(1) NOT NULL DEFAULT '0',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_466F2FFCB03A8386` (`created_by_id`),
KEY `IDX_466F2FFC99049ECE` (`modified_by_id`),
KEY `IDX_466F2FFCADF66B1A` (`assigned_user_id`),
KEY `IDX_TARGET_FIRST_NAME` (`first_name`,`deleted`),
KEY `IDX_TARGET_NAME` (`first_name`,`last_name`),
KEY `IDX_TARGET_ASSIGNED_USER` (`assigned_user_id`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `target_list`
--
DROP TABLE IF EXISTS `target_list`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `target_list` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`campaigns_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_89D0EEA9B03A8386` (`created_by_id`),
KEY `IDX_89D0EEA999049ECE` (`modified_by_id`),
KEY `IDX_89D0EEA9ADF66B1A` (`assigned_user_id`),
KEY `campaigns` (`campaigns_id`),
KEY `IDX_TARGET_LIST_CREATED_AT` (`created_at`,`deleted`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `target_list_user`
--
DROP TABLE IF EXISTS `target_list_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `target_list_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`target_list_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`opted_out` tinyint(1) DEFAULT '0',
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_FCE97B8CA76ED395F6C6AFE0` (`user_id`,`target_list_id`),
KEY `IDX_FCE97B8CA76ED395` (`user_id`),
KEY `IDX_FCE97B8CF6C6AFE0` (`target_list_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `task`
--
DROP TABLE IF EXISTS `task`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`status` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Not Started',
`priority` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Normal',
`date_start` datetime DEFAULT NULL,
`date_end` datetime DEFAULT NULL,
`date_start_date` date DEFAULT NULL,
`date_end_date` date DEFAULT NULL,
`date_completed` datetime DEFAULT NULL,
`description` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`parent_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`parent_type` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`account_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`assigned_user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `parent` (`parent_id`,`parent_type`),
KEY `IDX_527EDB259B6B5FBA` (`account_id`),
KEY `IDX_527EDB25B03A8386` (`created_by_id`),
KEY `IDX_527EDB2599049ECE` (`modified_by_id`),
KEY `IDX_527EDB25ADF66B1A` (`assigned_user_id`),
KEY `IDX_TASK_DATE_START_STATUS` (`date_start`,`status`),
KEY `IDX_TASK_DATE_END_STATUS` (`date_end`,`status`),
KEY `IDX_TASK_DATE_START` (`date_start`,`deleted`),
KEY `IDX_TASK_STATUS` (`status`,`deleted`),
KEY `IDX_TASK_ASSIGNED_USER` (`assigned_user_id`,`deleted`),
KEY `IDX_TASK_ASSIGNED_USER_STATUS` (`assigned_user_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `team`
--
DROP TABLE IF EXISTS `team`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`position_list` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `team_user`
--
DROP TABLE IF EXISTS `team_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`role` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `UNIQ_5C722232296CD8AEA76ED395` (`team_id`,`user_id`),
KEY `IDX_5C722232296CD8AE` (`team_id`),
KEY `IDX_5C722232A76ED395` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `template`
--
DROP TABLE IF EXISTS `template`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `template` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`body` longtext COLLATE utf8_unicode_ci,
`header` longtext COLLATE utf8_unicode_ci,
`footer` longtext COLLATE utf8_unicode_ci,
`entity_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`left_margin` double DEFAULT '10',
`right_margin` double DEFAULT '10',
`top_margin` double DEFAULT '10',
`bottom_margin` double DEFAULT '25',
`print_footer` tinyint(1) NOT NULL DEFAULT '0',
`footer_position` double DEFAULT '15',
`created_at` datetime DEFAULT NULL,
`modified_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_97601F83B03A8386` (`created_by_id`),
KEY `IDX_97601F8399049ECE` (`modified_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `unique_id`
--
DROP TABLE IF EXISTS `unique_id`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `unique_id` (
`id` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`data` longtext COLLATE utf8_unicode_ci,
`created_at` datetime DEFAULT NULL,
`created_by_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_E3C683435E237E06` (`name`),
KEY `IDX_E3C68343B03A8386` (`created_by_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!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` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`deleted` tinyint(1) DEFAULT '0',
`is_admin` tinyint(1) NOT NULL DEFAULT '0',
`user_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`salutation_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`last_name` varchar(100) COLLATE utf8_unicode_ci DEFAULT '',
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`is_portal_user` tinyint(1) NOT NULL DEFAULT '0',
`is_super_admin` tinyint(1) NOT NULL DEFAULT '0',
`title` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT '',
`created_at` datetime DEFAULT NULL,
`default_team_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`contact_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`avatar_id` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_8D93D649DBE989EB` (`default_team_id`),
KEY `IDX_8D93D649E7A1254A` (`contact_id`),
KEY `IDX_8D93D64986383B10` (`avatar_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!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 */; | the_stack |
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
/****** Object: Table [#Shippers] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Shippers](
[ShipperID] [int] IDENTITY(1,1) NOT NULL,
[CompanyName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Phone] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_Shippers__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[ShipperID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
SET IDENTITY_INSERT [#Shippers] ON
SET IDENTITY_INSERT [#Shippers] OFF
/****** Object: Table [#Region] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Region](
[RegionID] [int] NOT NULL,
[RegionDescription] [nchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
CONSTRAINT [PK_Region__###INSERT#GUID#HERE###] PRIMARY KEY NONCLUSTERED
(
[RegionID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
/****** Object: Table [#Suppliers] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Suppliers](
[SupplierID] [int] IDENTITY(1,1) NOT NULL,
[CompanyName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ContactName] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ContactTitle] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Address] [nvarchar](60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[City] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Region] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PostalCode] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Phone] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Fax] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[HomePage] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_Suppliers__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[SupplierID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [CompanyName] ON [#Suppliers]
(
[CompanyName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [PostalCode] ON [#Suppliers]
(
[PostalCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SET IDENTITY_INSERT [#Suppliers] ON
SET IDENTITY_INSERT [#Suppliers] OFF
/****** Object: Table [#Employees] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Employees](
[EmployeeID] [int] IDENTITY(1,1) NOT NULL,
[LastName] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[FirstName] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Title] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TitleOfCourtesy] [nvarchar](25) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BirthDate] [datetime] NULL,
[HireDate] [datetime] NULL,
[Address] [nvarchar](60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[City] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Region] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PostalCode] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[HomePhone] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Extension] [nvarchar](4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Photo] [image] NULL,
[Notes] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ReportsTo] [int] NULL,
[PhotoPath] [nvarchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_Employees__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[EmployeeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [LastName] ON [#Employees]
(
[LastName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [PostalCode] ON [#Employees]
(
[PostalCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SET IDENTITY_INSERT [#Employees] ON
INSERT [#Employees] ([EmployeeID], [LastName], [FirstName], [Title], [TitleOfCourtesy], [BirthDate], [HireDate], [Address], [City], [Region], [PostalCode], [HomePhone], [Extension], [Photo], [Notes], [ReportsTo], [PhotoPath]) VALUES (1, N'Davolio', N'Nancy', N'Sales Representative', N'Ms.', CAST(0x000045D100000000 AS DateTime), CAST(0x000083BB00000000 AS DateTime), N'507 - 20th Ave. E. Apt. 2A', N'Seattle', N'WA', N'98122',N'(206) 555-9857', N'5467', 0x0, N'Education includes a BA in psychology from Colorado State University in 1970. She also completed "The Art of the Cold Call." Nancy is a member of Toastmasters International.', 2, N'http://accweb/emmployees/davolio.bmp')
SET IDENTITY_INSERT [#Employees] OFF
/****** Object: Table [#Categories] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Categories](
[CategoryID] [int] IDENTITY(1,1) NOT NULL,
[CategoryName] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Picture] [image] NULL,
CONSTRAINT [PK_Categories__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[CategoryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [CategoryName] ON [#Categories]
(
[CategoryName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SET IDENTITY_INSERT [#Categories] ON
INSERT [#Categories] ([CategoryID], [CategoryName], [Description], [Picture]) VALUES (1, N'Beverages', N'Soft drinks, coffees, teas, beers, and ales', 0x0)
SET IDENTITY_INSERT [#Categories] OFF
/****** Object: Table [#Customers] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Customers](
[CustomerID] [nchar](5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CompanyName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ContactName] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ContactTitle] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Address] [nvarchar](60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[City] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Region] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PostalCode] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Phone] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Fax] [nvarchar](24) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Created] [datetime] NOT NULL,
CONSTRAINT [PK_Customers__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[CustomerID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [City] ON [#Customers]
(
[City] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [CompanyName] ON [#Customers]
(
[CompanyName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [PostalCode] ON [#Customers]
(
[PostalCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [Region] ON [#Customers]
(
[Region] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'ALFKI', N'Alfreds Futterkiste', N'Maria Anders', N'Sales Representative', N'Obere Str. 57', N'Berlin', NULL, N'12209', N'030-0074321', N'030-0076545', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'ANATR', N'Ana Trujillo Emparedados y helados', N'Ana Trujillo', N'Owner', N'Avda. de la Constitución 2222', N'México D.F.', NULL, N'05021', N'(5) 555-4729', N'(5) 555-3745', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'ANTON', N'Antonio Moreno Taquería', N'Antonio Moreno', N'Owner', N'Mataderos 2312', N'México D.F.', NULL, N'05023', N'(5) 555-3932', NULL, CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'AROUT', N'Around the Horn', N'Thomas Hardy', N'Sales Representative', N'120 Hanover Sq.', N'London', NULL, N'WA1 1DP', N'(171) 555-7788', N'(171) 555-6750', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BERGS', N'Berglunds snabbköp', N'Christina Berglund', N'Order Administrator', N'Berguvsvägen 8', N'Luleå', NULL, N'S-958 22', N'0921-12 34 65', N'0921-12 34 67', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BLAUS', N'Blauer See Delikatessen', N'Hanna Moos', N'Sales Representative', N'Forsterstr. 57', N'Mannheim', NULL, N'68306', N'0621-08460', N'0621-08924', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BLONP', N'Blondesddsl père et fils', N'Frédérique Citeaux', N'Marketing Manager', N'24, place Kléber', N'Strasbourg', NULL, N'67000', N'88.60.15.31', N'88.60.15.32', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BOLID', N'Bólido Comidas preparadas', N'Martín Sommer', N'Owner', N'C/ Araquil, 67', N'Madrid', NULL, N'28023', N'(91) 555 22 82', N'(91) 555 91 99', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BONAP', N'Bon app''', N'Laurence Lebihan', N'Owner', N'12, rue des Bouchers', N'Marseille', NULL, N'13008', N'91.24.45.40', N'91.24.45.41', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BOTTM', N'Bottom-Dollar Markets', N'Elizabeth Lincoln', N'Accounting Manager', N'23 Tsawassen Blvd.', N'Tsawassen', N'BC', N'T2F 8M4', N'(604) 555-4729', N'(604) 555-3745', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'BSBEV', N'B''s Beverages', N'Victoria Ashworth', N'Sales Representative', N'Fauntleroy Circus', N'London', NULL, N'EC2 5NT', N'(171) 555-1212', NULL, CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'CACTU', N'Cactus Comidas para llevar', N'Patricio Simpson', N'Sales Agent', N'Cerrito 333', N'Buenos Aires', NULL, N'1010', N'(1) 135-5555', N'(1) 135-4892', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'CENTC', N'Centro comercial Moctezuma', N'Francisco Chang', N'Marketing Manager', N'Sierras de Granada 9993', N'México D.F.', NULL, N'05022', N'(5) 555-3392', N'(5) 555-7293', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'CONSH', N'Consolidated Holdings', N'Elizabeth Brown', N'Sales Representative', N'Berkeley Gardens 12 Brewery', N'London', NULL, N'WX1 6LT', N'(171) 555-2282', N'(171) 555-9199', CAST(0x00008EAC00000000 AS DateTime))
INSERT [#Customers] ([CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City], [Region], [PostalCode], [Phone], [Fax], [Created]) VALUES (N'QUICK', N'QUICK-Stop', N'Horst Kloss', N'Accounting Manager', N'Taucherstraße 10', N'Cunewalde', NULL, N'01307', N'0372-035188', NULL, CAST(0x00008EAC00000000 AS DateTime))
/****** Object: Table [#CustomerDemographics] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#CustomerDemographics](
[CustomerTypeID] [nchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerDesc] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_CustomerDemographics__###INSERT#GUID#HERE###] PRIMARY KEY NONCLUSTERED
(
[CustomerTypeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
/****** Object: Table [#Orders] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Orders](
[OrderID] [int] IDENTITY(1,1) NOT NULL,
[CustomerID] [nchar](5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EmployeeID] [int] NULL,
[OrderDate] [datetime] NULL,
[RequiredDate] [datetime] NULL,
[ShippedDate] [datetime] NULL,
[ShipVia] [int] NULL,
[Freight] [money] NULL,
[ShipName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShipAddress] [nvarchar](60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShipCity] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShipRegion] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShipPostalCode] [nvarchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_Orders__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[OrderID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [CustomerID] ON [#Orders]
(
[CustomerID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [CustomersOrders] ON [#Orders]
(
[CustomerID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [EmployeeID] ON [#Orders]
(
[EmployeeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [EmployeesOrders] ON [#Orders]
(
[EmployeeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [OrderDate] ON [#Orders]
(
[OrderDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ShippedDate] ON [#Orders]
(
[ShippedDate] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ShippersOrders] ON [#Orders]
(
[ShipVia] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ShipPostalCode] ON [#Orders]
(
[ShipPostalCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SET IDENTITY_INSERT [#Orders] ON
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10285, N'QUICK', 1, CAST(0x000089DF00000000 AS DateTime), CAST(0x000089FB00000000 AS DateTime), CAST(0x000089E500000000 AS DateTime), 2, 76.8300, N'QUICK-Stop', N'Taucherstraße 10', N'Cunewalde', NULL, N'01307')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10355, N'AROUT', 1, CAST(0x00008A3600000000 AS DateTime), CAST(0x00008A5200000000 AS DateTime), CAST(0x00008A3B00000000 AS DateTime), 1, 41.9500, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10383, N'AROUT', 1, CAST(0x00008A5500000000 AS DateTime), CAST(0x00008A7100000000 AS DateTime), CAST(0x00008A5700000000 AS DateTime), 3, 34.2400, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10453, N'AROUT', 1, CAST(0x00008A9800000000 AS DateTime), CAST(0x00008AB400000000 AS DateTime), CAST(0x00008A9D00000000 AS DateTime), 2, 25.3600, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10558, N'AROUT', 1, CAST(0x00008AFF00000000 AS DateTime), CAST(0x00008B1B00000000 AS DateTime), CAST(0x00008B0500000000 AS DateTime), 2, 72.9700, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10707, N'AROUT', 1, CAST(0x00008B8500000000 AS DateTime), CAST(0x00008B9300000000 AS DateTime), CAST(0x00008B8C00000000 AS DateTime), 3, 21.7400, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
INSERT [#Orders] ([OrderID], [CustomerID], [EmployeeID], [OrderDate], [RequiredDate], [ShippedDate], [ShipVia], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode]) VALUES (10741, N'AROUT', 1, CAST(0x00008BA200000000 AS DateTime), CAST(0x00008BB000000000 AS DateTime), CAST(0x00008BA600000000 AS DateTime), 3, 10.9600, N'Around the Horn', N'Brook Farm Stratford St. Mary', N'Colchester', N'Essex', N'CO7 6JX')
SET IDENTITY_INSERT [#Orders] OFF
/****** Object: Table [#Products] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Products](
[ProductID] [int] IDENTITY(1,1) NOT NULL,
[ProductName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SupplierID] [int] NULL,
[CategoryID] [int] NULL,
[QuantityPerUnit] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[UnitPrice] [money] NULL,
[UnitsInStock] [smallint] NULL,
[UnitsOnOrder] [smallint] NULL,
[ReorderLevel] [smallint] NULL,
[Discontinued] [bit] NOT NULL,
CONSTRAINT [PK_Products__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[ProductID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [CategoriesProducts] ON [#Products]
(
[CategoryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [CategoryID] ON [#Products]
(
[CategoryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ProductName] ON [#Products]
(
[ProductName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [SupplierID] ON [#Products]
(
[SupplierID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [SuppliersProducts] ON [#Products]
(
[SupplierID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
SET IDENTITY_INSERT [#Products] ON
INSERT [#Products] ([ProductID], [ProductName], [SupplierID], [CategoryID], [QuantityPerUnit], [UnitPrice], [UnitsInStock], [UnitsOnOrder], [ReorderLevel], [Discontinued]) VALUES (1, N'Chai', 1, 1, N'10 boxes x 20 bags', 18.0000, 39, 0, 10, 0)
INSERT [#Products] ([ProductID], [ProductName], [SupplierID], [CategoryID], [QuantityPerUnit], [UnitPrice], [UnitsInStock], [UnitsOnOrder], [ReorderLevel], [Discontinued]) VALUES (24, N'Guaraná Fantástica', 10, 1, N'12 - 355 ml cans', 4.5000, 20, 0, 0, 1)
SET IDENTITY_INSERT [#Products] OFF
/****** Object: Table [#CustomerCustomerDemo] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#CustomerCustomerDemo](
[CustomerID] [nchar](5) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CustomerTypeID] [nchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
CONSTRAINT [PK_CustomerCustomerDemo__###INSERT#GUID#HERE###] PRIMARY KEY NONCLUSTERED
(
[CustomerID] ASC,
[CustomerTypeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
/****** Object: Table [#Territories] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Territories](
[TerritoryID] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TerritoryDescription] [nchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[RegionID] [int] NOT NULL,
CONSTRAINT [PK_Territories__###INSERT#GUID#HERE###] PRIMARY KEY NONCLUSTERED
(
[TerritoryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
/****** Object: StoredProcedure [#Ten Most Expensive Products] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'
create procedure [#Ten Most Expensive Products] AS
SET ROWCOUNT 10
SELECT Products.ProductName AS TenMostExpensiveProducts, Products.UnitPrice
FROM #Products AS Products
ORDER BY Products.UnitPrice DESC
'
/****** Object: Table [#EmployeeTerritories] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#EmployeeTerritories](
[EmployeeID] [int] NOT NULL,
[TerritoryID] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
CONSTRAINT [PK_EmployeeTerritories__###INSERT#GUID#HERE###] PRIMARY KEY NONCLUSTERED
(
[EmployeeID] ASC,
[TerritoryID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
/****** Object: Table [#Order Details] Script Date: 11/17/2008 11:46:24 ******/
CREATE TABLE [#Order Details](
[OrderID] [int] NOT NULL,
[ProductID] [int] NOT NULL,
[UnitPrice] [money] NOT NULL,
[Quantity] [smallint] NOT NULL,
[Discount] [real] NOT NULL,
CONSTRAINT [PK_Order_Details__###INSERT#GUID#HERE###] PRIMARY KEY CLUSTERED
(
[OrderID] ASC,
[ProductID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
)
CREATE NONCLUSTERED INDEX [OrderID] ON [#Order Details]
(
[OrderID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [OrdersOrder_Details] ON [#Order Details]
(
[OrderID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ProductID] ON [#Order Details]
(
[ProductID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
CREATE NONCLUSTERED INDEX [ProductsOrder_Details] ON [#Order Details]
(
[ProductID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
INSERT [#Order Details] ([OrderID], [ProductID], [UnitPrice], [Quantity], [Discount]) VALUES (10285, 1, 14.4000, 45, 0.2)
INSERT [#Order Details] ([OrderID], [ProductID], [UnitPrice], [Quantity], [Discount]) VALUES (10355, 24, 3.6000, 25, 0)
/****** Object: StoredProcedure [#CustOrdersOrders] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'
CREATE PROCEDURE [#CustOrdersOrders] @CustomerID nchar(5)
AS
SELECT OrderID,
OrderDate,
RequiredDate,
ShippedDate
FROM #Orders AS Orders
WHERE CustomerID = @CustomerID
ORDER BY OrderID
'
/****** Object: StoredProcedure [#CustOrdersDetail] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'
CREATE PROCEDURE [#CustOrdersDetail] @OrderID int
AS
SELECT ProductName,
UnitPrice=ROUND(Od.UnitPrice, 2),
Quantity,
Discount=CONVERT(int, Discount * 100),
ExtendedPrice=ROUND(CONVERT(money, Quantity * (1 - Discount) * Od.UnitPrice), 2)
FROM #Products P, [#Order Details] Od
WHERE Od.ProductID = P.ProductID and Od.OrderID = @OrderID
'
/****** Object: StoredProcedure [#CustOrderHist] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [#CustOrderHist] @CustomerID nchar(5)
AS
SELECT ProductName, Total=SUM(Quantity)
FROM #Products P, [#Order Details] OD, #Orders O, #Customers C
WHERE C.CustomerID = @CustomerID
AND C.CustomerID = O.CustomerID AND O.OrderID = OD.OrderID AND OD.ProductID = P.ProductID
GROUP BY ProductName
'
/****** Object: StoredProcedure [#SalesByCategory] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [#SalesByCategory]
@CategoryName nvarchar(15), @OrdYear nvarchar(4) = ''1998''
AS
IF @OrdYear != ''1996'' collate SQL_Latin1_General_CP1_CI_AS AND @OrdYear != ''1997'' collate SQL_Latin1_General_CP1_CI_AS AND @OrdYear != ''1998'' collate SQL_Latin1_General_CP1_CI_AS
BEGIN
SELECT @OrdYear = ''1998''
END
SELECT ProductName,
TotalPurchase=ROUND(SUM(CONVERT(decimal(14,2), OD.Quantity * (1-OD.Discount) * OD.UnitPrice)), 0)
FROM [#Order Details] OD, #Orders O, #Products P, #Categories C
WHERE OD.OrderID = O.OrderID
AND OD.ProductID = P.ProductID
AND P.CategoryID = C.CategoryID
AND C.CategoryName = @CategoryName
AND SUBSTRING(CONVERT(nvarchar(22), O.OrderDate, 111), 1, 4) collate SQL_Latin1_General_CP1_CI_AS = @OrdYear
GROUP BY ProductName
ORDER BY ProductName
'
/****** Object: StoredProcedure [#Sales by Year] Script Date: 11/17/2008 11:46:24 ******/
EXEC dbo.sp_executesql @statement = N'
create procedure [#Sales by Year]
@Beginning_Date DateTime, @Ending_Date DateTime AS
SELECT Orders.ShippedDate, Orders.OrderID, "Order Subtotals".Subtotal, DATENAME(yy,ShippedDate) AS Year
FROM #Orders AS Orders INNER JOIN [#Order Subtotals] AS "Order Subtotals" ON Orders.OrderID = "Order Subtotals".OrderID
WHERE Orders.ShippedDate Between @Beginning_Date And @Ending_Date
'
/****** Object: Default [DF_Customers_Created] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Customers] ADD CONSTRAINT [DF_Customers_Created__###INSERT#GUID#HERE###] DEFAULT ('2000-01-01 00:00:00.000') FOR [Created]
/****** Object: Default [DF_Order_Details_UnitPrice] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] ADD CONSTRAINT [DF_Order_Details_UnitPrice__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [UnitPrice]
/****** Object: Default [DF_Order_Details_Quantity] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] ADD CONSTRAINT [DF_Order_Details_Quantity__###INSERT#GUID#HERE###] DEFAULT ((1)) FOR [Quantity]
/****** Object: Default [DF_Order_Details_Discount] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] ADD CONSTRAINT [DF_Order_Details_Discount__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [Discount]
/****** Object: Default [DF_Orders_Freight] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Orders] ADD CONSTRAINT [DF_Orders_Freight__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [Freight]
/****** Object: Default [DF_Products_UnitPrice] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] ADD CONSTRAINT [DF_Products_UnitPrice__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [UnitPrice]
/****** Object: Default [DF_Products_UnitsInStock] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] ADD CONSTRAINT [DF_Products_UnitsInStock__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [UnitsInStock]
/****** Object: Default [DF_Products_UnitsOnOrder] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] ADD CONSTRAINT [DF_Products_UnitsOnOrder__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [UnitsOnOrder]
/****** Object: Default [DF_Products_ReorderLevel] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] ADD CONSTRAINT [DF_Products_ReorderLevel__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [ReorderLevel]
/****** Object: Default [DF_Products_Discontinued] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] ADD CONSTRAINT [DF_Products_Discontinued__###INSERT#GUID#HERE###] DEFAULT ((0)) FOR [Discontinued]
/****** Object: Check [CK_Birthdate] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Employees] WITH NOCHECK ADD CONSTRAINT [CK_Birthdate__###INSERT#GUID#HERE###] CHECK (([BirthDate]<getdate()))
ALTER TABLE [#Employees] CHECK CONSTRAINT [CK_Birthdate__###INSERT#GUID#HERE###]
/****** Object: Check [CK_Discount] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] WITH NOCHECK ADD CONSTRAINT [CK_Discount__###INSERT#GUID#HERE###] CHECK (([Discount]>=(0) AND [Discount]<=(1)))
ALTER TABLE [#Order Details] CHECK CONSTRAINT [CK_Discount__###INSERT#GUID#HERE###]
/****** Object: Check [CK_Quantity] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] WITH NOCHECK ADD CONSTRAINT [CK_Quantity__###INSERT#GUID#HERE###] CHECK (([Quantity]>(0)))
ALTER TABLE [#Order Details] CHECK CONSTRAINT [CK_Quantity__###INSERT#GUID#HERE###]
/****** Object: Check [CK_UnitPrice] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Order Details] WITH NOCHECK ADD CONSTRAINT [CK_UnitPrice__###INSERT#GUID#HERE###] CHECK (([UnitPrice]>=(0)))
ALTER TABLE [#Order Details] CHECK CONSTRAINT [CK_UnitPrice__###INSERT#GUID#HERE###]
/****** Object: Check [CK_Products_UnitPrice] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] WITH NOCHECK ADD CONSTRAINT [CK_Products_UnitPrice__###INSERT#GUID#HERE###] CHECK (([UnitPrice]>=(0)))
ALTER TABLE [#Products] CHECK CONSTRAINT [CK_Products_UnitPrice__###INSERT#GUID#HERE###]
/****** Object: Check [CK_ReorderLevel] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] WITH NOCHECK ADD CONSTRAINT [CK_ReorderLevel__###INSERT#GUID#HERE###] CHECK (([ReorderLevel]>=(0)))
ALTER TABLE [#Products] CHECK CONSTRAINT [CK_ReorderLevel__###INSERT#GUID#HERE###]
/****** Object: Check [CK_UnitsInStock] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] WITH NOCHECK ADD CONSTRAINT [CK_UnitsInStock__###INSERT#GUID#HERE###] CHECK (([UnitsInStock]>=(0)))
ALTER TABLE [#Products] CHECK CONSTRAINT [CK_UnitsInStock__###INSERT#GUID#HERE###]
/****** Object: Check [CK_UnitsOnOrder] Script Date: 11/17/2008 11:46:24 ******/
ALTER TABLE [#Products] WITH NOCHECK ADD CONSTRAINT [CK_UnitsOnOrder__###INSERT#GUID#HERE###] CHECK (([UnitsOnOrder]>=(0)))
ALTER TABLE [#Products] CHECK CONSTRAINT [CK_UnitsOnOrder__###INSERT#GUID#HERE###] | the_stack |
---- test function:
-- 1. pg_table_size
-- 2. pg_indexes_size
-- 3. pg_total_relation_size
-- 4. pg_relation_size(relationregclass)
-- 5. pg_relation_size(relationregclass, forktext)
-- 6. pg_partition_size
-- 7. pg_partition_indexes_size
---- 1. pg_table_size
-- a. test ordinary function
create table test_pg_table_size_ordinary (a int)
partition by range (a)
(
partition test_pg_table_size_ordinary_p1 values less than (2),
partition test_pg_table_size_ordinary_p2 values less than (4)
);
insert into test_pg_table_size_ordinary values (1), (3);
-- size: 49152 = 2*24576
select pg_table_size('test_pg_table_size_ordinary') > 0;
drop table test_pg_table_size_ordinary;
-- b. test table has toast
create table test_pg_table_size_toast (a text)
partition by range (a)
(
partition test_pg_table_size_toast_p1 values less than ('B'),
partition test_pg_table_size_toast_p2 values less than ('D')
);
insert into test_pg_table_size_toast values ('A'), ('C');
-- size: 98304 = 4*24576
select pg_table_size('test_pg_table_size_toast') > 0;
drop table test_pg_table_size_toast;
-- c. test table has index
create table test_pg_table_size_index (a int)
partition by range (a)
(
partition test_pg_table_size_index_p1 values less than (2),
partition test_pg_table_size_index_p2 values less than (4)
);
create index test_pg_table_size_a on test_pg_table_size_index (a) local;
insert into test_pg_table_size_index values (1), (3);
-- size: 49152 = 2*24576
select pg_table_size('test_pg_table_size_index') > 0;
drop table test_pg_table_size_index;
---- 2. pg_indexes_size
-- a. test ordinary function
create table test_pg_index_size_ordinary (a int, b int)
partition by range (a, b)
(
partition test_pg_index_size_ordinary_p1 values less than (2, 2),
partition test_pg_index_size_ordinary_p2 values less than (4, 4)
);
create index test_pg_index_size_ordinary_index_a on test_pg_index_size_ordinary (a) local;
create index test_pg_index_size_ordinary_index_b on test_pg_index_size_ordinary (b) local;
create index test_pg_index_size_ordinary_index_hash on test_pg_index_size_ordinary using hash (a) local;
insert into test_pg_index_size_ordinary values (1, 1), (3, 3);
-- size: 294912 = 2*2*32768 + 2*81920
select pg_indexes_size('test_pg_index_size_ordinary') > 0;
drop table test_pg_index_size_ordinary;
-- b. test table has toast
create table test_pg_index_size_index_toast (a text, b text)
partition by range (a, b)
(
partition test_pg_index_size_index_toast_p1 values less than ('B', 'B'),
partition test_pg_index_size_index_toast_p2 values less than ('D', 'D')
);
create index test_pg_index_size_index_toast_a on test_pg_index_size_index_toast (a) local;
create index test_pg_index_size_index_toast_b on test_pg_index_size_index_toast (b) local;
create index test_pg_index_size_index_toast_hash on test_pg_index_size_index_toast using hash (a) local;
insert into test_pg_index_size_index_toast values ('A', 'A'), ('C', 'C');
-- size: 196608 = 2*2*24576 + 2*32768
select pg_indexes_size('test_pg_index_size_index_toast') > 0;
drop table test_pg_index_size_index_toast;
---- 3. pg_total_relation_size
-- a. test ordinary function
create table test_pg_total_relation_size_ordinary (a int)
partition by range (a)
(
partition test_pg_total_relation_size_ordinary_p1 values less than (2),
partition test_pg_total_relation_size_ordinary_p2 values less than (4)
);
insert into test_pg_total_relation_size_ordinary values (1), (3);
-- size: 49152 = 2*24576
select pg_total_relation_size ('test_pg_total_relation_size_ordinary') > 0;
drop table test_pg_total_relation_size_ordinary;
-- b. test table has index
create table test_pg_total_relation_size_index (a int)
partition by range (a)
(
partition test_pg_total_relation_size_index_p1 values less than (2),
partition test_pg_total_relation_size_index_p2 values less than (4)
);
create index test_pg_total_relation_size_index_a on test_pg_total_relation_size_index (a) local;
create index test_pg_total_relation_size_index_hash on test_pg_total_relation_size_index using hash (a) local;
insert into test_pg_total_relation_size_index values (1), (3);
-- size: 278528 = 2*24576 + 2*32768 + 2*81920
select pg_total_relation_size ('test_pg_total_relation_size_index') > 0;
drop table test_pg_total_relation_size_index;
-- c. test table has toast
create table test_pg_total_relation_size_toast (a text)
partition by range (a)
(
partition test_pg_total_relation_size_toast_p1 values less than ('B'),
partition test_pg_total_relation_size_toast_p2 values less than ('D')
);
insert into test_pg_total_relation_size_toast values ('A'), ('C');
-- size: 98304 = 2*24576 + 2*24576
select pg_total_relation_size ('test_pg_total_relation_size_toast') > 0;
drop table test_pg_total_relation_size_toast;
-- d. test table has toast and index
create table test_pg_total_relation_size_toast_index (a text)
partition by range (a)
(
partition test_pg_total_relation_size_toast_index_p1 values less than ('B'),
partition test_pg_total_relation_size_toast_index_p2 values less than ('D')
);
create index test_pg_total_relation_size_toast_index_a on test_pg_total_relation_size_toast_index (a) local;
create index test_pg_total_relation_size_toast_index_hash on test_pg_total_relation_size_toast_index using hash (a) local;
insert into test_pg_total_relation_size_toast_index values ('A'), ('C');
-- size: 262144 = 2*24576 + 2*24576 + 2*32768 + 2*32768
select pg_total_relation_size ('test_pg_total_relation_size_toast_index') > 0;
drop table test_pg_total_relation_size_toast_index;
---- 4. pg_relation_size(relationregclass)
-- a. test table size
create table test_pg_relation_size_table (a int)
partition by range (a)
(
partition test_pg_relation_size_table_p1 values less than (2),
partition test_pg_relation_size_table_p2 values less than (4)
);
insert into test_pg_relation_size_table values (1), (3);
-- size: 49152 = 2*24576
select pg_relation_size ('test_pg_relation_size_table') > 0;
drop table test_pg_relation_size_table;
-- b. test index size
create table test_pg_relation_size_index (a int)
partition by range (a)
(
partition test_pg_relation_size_index_p1 values less than (2),
partition test_pg_relation_size_index_p2 values less than (4)
);
create index test_pg_relation_size_index_a on test_pg_relation_size_index (a) local;
create index test_pg_relation_size_index_hash on test_pg_relation_size_index using hash (a) local;
insert into test_pg_relation_size_index values (1), (3);
-- size: 65536 = 2*32768
select pg_relation_size ('test_pg_relation_size_index_a') > 0;
-- size: 163840 = 2*81920
select pg_relation_size ('test_pg_relation_size_index_hash') > 0;
drop table test_pg_relation_size_index;
-- c. test table has toast
create table test_pg_relation_size_toast (a text)
partition by range (a)
(
partition test_pg_relation_size_toast_p1 values less than ('B'),
partition test_pg_relation_size_toast_p2 values less than ('D')
);
insert into test_pg_relation_size_toast values ('A'), ('C');
-- size: 49152 = 2*24576
select pg_relation_size ('test_pg_relation_size_toast') > 0;
drop table test_pg_relation_size_toast;
---- 5. pg_relation_size(relationregclass, forktext)
-- a. test main
create table test_pg_relation_size_main (a int)
partition by range (a)
(
partition test_pg_relation_size_main_p1 values less than (4)
);
create index test_pg_relation_size_main_a on test_pg_relation_size_main (a) local;
create index test_pg_relation_size_main_hash on test_pg_relation_size_main using hash (a) local;
insert into test_pg_relation_size_main values (1), (3);
-- size: 49152 = 2*24576
select pg_relation_size ('test_pg_relation_size_main', 'main') > 0;
-- size: 65536 = 2*32768
select pg_relation_size ('test_pg_relation_size_main_a', 'main') > 0;
-- size: 163840 = 2*81920
select pg_relation_size ('test_pg_relation_size_main_hash', 'main') > 0;
drop table test_pg_relation_size_main;
-- 6. pg_partition_size
create table test_pg_partition_size (a int)
partition by range (a)
(
partition test_pg_partition_size_p1 values less than (4)
);
insert into test_pg_partition_size values (1);
select pg_partition_size('test_pg_partition_size', 'test_pg_partition_size_p1')>0;
select pg_partition_size(a.oid, b.oid)>0 from pg_class a, pg_partition b where a.oid=b.parentid and a.relname='test_pg_partition_size' and b.relname='test_pg_partition_size_p1';
--ERROR
select pg_partition_size('test_pg_partition_size', 19000)>0;
--ERROR
select pg_partition_size('test_pg_partition_size', 'test_pg_partition_size_p2')>0;
drop table test_pg_partition_size;
-- 7. pg_partition_indexes_size
create table test_pg_partition_indexes_size (a int)
partition by range (a)
(
partition test_pg_partition_indexes_size_p1 values less than (4)
);
create index test_pg_partition_indexes_size_index on test_pg_partition_indexes_size (a) local;
insert into test_pg_partition_indexes_size values (1);
select pg_partition_indexes_size('test_pg_partition_indexes_size', 'test_pg_partition_indexes_size_p1')>0;
select pg_partition_indexes_size(a.oid, b.oid)>0 from pg_class a, pg_partition b where a.oid=b.parentid and a.relname='test_pg_partition_indexes_size' and b.relname='test_pg_partition_indexes_size_p1';
--ERROR
select pg_partition_indexes_size('test_pg_partition_indexes_size', 19000)>0;
--ERROR
select pg_partition_indexes_size('test_pg_partition_indexes_size', 'test_pg_partition_indexes_size_p2')>0;
drop table test_pg_partition_indexes_size;
create table test_pg_table_size_toast_ord (a text);
create table test_pg_table_size_toast_rt (a text)
partition by range (a)
(
partition test_pg_table_size_toast_rt_p1 values less than ('B'),
partition test_pg_table_size_toast_rt_p2 values less than ('D'),
partition test_pg_table_size_toast_rt_p3 values less than ('F')
);
insert into test_pg_table_size_toast_ord values (lpad('A',409600,'A'));
insert into test_pg_table_size_toast_rt values (lpad('A',409600,'A'));
select pg_table_size(a.oid)>0 from pg_class a, pg_class b where a.oid=b.reltoastrelid and b.relname='test_pg_table_size_toast_ord';
select pg_relation_size(a.oid, 'main')>0 from pg_class a, pg_class b where a.oid=b.reltoastrelid and b.relname='test_pg_table_size_toast_ord';
select pg_relation_size(a.oid, 'vm')=0 from pg_class a, pg_class b where a.oid=b.reltoastrelid and b.relname='test_pg_table_size_toast_ord';
select pg_relation_size(a.oid, 'fsm')=0 from pg_class a, pg_class b where a.oid=b.reltoastrelid and b.relname='test_pg_table_size_toast_ord';
select pg_table_size(a.oid)>0 from pg_class a, pg_class b, pg_partition c where a.oid=c.reltoastrelid and b.oid=c.parentid and b.relname='test_pg_table_size_toast_rt' and c.relname='test_pg_table_size_toast_rt_p1';
select pg_relation_size(a.oid, 'main')>0 from pg_class a, pg_class b, pg_partition c where a.oid=c.reltoastrelid and b.oid=c.parentid and b.relname='test_pg_table_size_toast_rt' and c.relname='test_pg_table_size_toast_rt_p1';
select pg_relation_size(a.oid, 'vm')=0 from pg_class a, pg_class b, pg_partition c where a.oid=c.reltoastrelid and b.oid=c.parentid and b.relname='test_pg_table_size_toast_rt' and c.relname='test_pg_table_size_toast_rt_p1';
select pg_relation_size(a.oid, 'fsm')=0 from pg_class a, pg_class b, pg_partition c where a.oid=c.reltoastrelid and b.oid=c.parentid and b.relname='test_pg_table_size_toast_rt' and c.relname='test_pg_table_size_toast_rt_p1';
drop table test_pg_table_size_toast_ord;
drop table test_pg_table_size_toast_rt; | the_stack |
-- @@@ START COPYRIGHT @@@
--
-- 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.
--
-- @@@ END COPYRIGHT @@@
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#define MINOF(X,Y) (X <= Y ? X : Y)
#define NAR00 30022
#define NAR01 30022
#define SIZE 1600
#define RATE 100
void display_diagnosis();
void testmulind();
void testRi();
void testmv1();
void testmv2();
void testmv3();
void testmv4();
void testmv4v();
void testmv5();
EXEC SQL MODULE CAT.SCH.TESTE266M
NAMES ARE ISO88591;
/* globals */
EXEC SQL BEGIN DECLARE SECTION;
ROWSET [SIZE] Int32 a_int;
ROWSET [SIZE] Int32 a1_int;
ROWSET [SIZE] Int32 a2_int;
ROWSET [SIZE] Int32 a3_int;
ROWSET [SIZE] char b_char[97];
ROWSET [SIZE] Int32 c1_int;
ROWSET [SIZE] Int32 c2_int;
ROWSET [SIZE] Int32 oint1;
ROWSET [SIZE] Int32 oint2;
ROWSET [SIZE] Int32 oint3;
ROWSET [SIZE] Int32 oint4;
Int32 numRows ;
Int32 loop, inp, inp1, trynum, rate, numiter;
Int32 savesqlcode;
EXEC SQL END DECLARE SECTION;
EXEC SQL BEGIN DECLARE SECTION;
/**** host variables for get diagnostics *****/
NUMERIC(5) j;
NUMERIC(5) hv_num;
Int32 hv_sqlcode;
Int32 hv_rowindex;
Int32 hv_rowcount;
char hv_msgtxt[256];
char hv_sqlstate[6];
char hv_tabname[129];
char SQLSTATE[6];
Int32 SQLCODE;
EXEC SQL END DECLARE SECTION;
exec sql whenever sqlerror call display_diagnosis;
Int32 main()
{
testmulind();
testRi();
testmv1();
testmv2();
testmv3();
testmv4();
testmv4v();
testmv5();
return(0);
}
/****************************************************************************************/
/* DDL for table notatomic is
create table tabind (c1 int not null, c2 int , primary key (c1) ,foreign key (c2) references ct2 (d1) );
create unique index uitabind1 on tabind (c2);
create unique index uitabind2 on tabind (c2);
create unique index uitabind3 on tabind (c2);
insert into tabind values (400,400);
insert into tabnd values (800,800);
*/
void testmulind()
{
Int32 i=0;
for (i=0; i<SIZE; i++) {
c1_int[i] = i+1;
c2_int[i] = (i+1)*100;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** Test multiple index - Expecting insert of all except 2 rows 3,7 to succeed ***\n");
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL delete from ct1;
EXEC SQL delete from ct2;
EXEC SQL DELETE from tabind;
EXEC SQL insert into tabind values (400,400);
EXEC SQL insert into tabind values (800,800);
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tabind VALUES (:c1_int , :c2_int) NOT ATOMIC;
/* if (SQLCODE != 0) {
printf(" val = %d\n", a_int);
return (0) ;
} */
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2 from tabind order by c2;
printf("c1\tc2\n");
printf("------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("\n");
}
}
/****************************************************************************************/
/* DDL for table notatomic is
create table ct2 ( d1 int not null, d2 int, primary key (d1));
create table ct1 (c1 int not null, c2 int , primary key (c1) ,foreign key (c2) references ct2 (d1) );
create unique index uit1 on ct1 (c2);
insert into ct2 values (400,400);
insert into ct2 values (1200,1200);
*/
void testRi()
{
Int32 i=0;
for (i=0; i<SIZE; i++) {
c1_int[i] = i+1;
c2_int[i] = (i+1)*100;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** Test RI - Expecting insert of just 2 rows 3,11 to succeed ***\n");
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL delete from ct2;
EXEC SQL delete from ct1;
EXEC SQL insert into ct2 values (400,400);
EXEC SQL insert into ct2 values (1200,1200);
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO ct1 VALUES (:c1_int , :c2_int) NOT ATOMIC;
/* if (SQLCODE != 0) {
printf(" val = %d\n", a_int);
return (0) ;
} */
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2 from ct1 order by c1;
printf("c1\tc2\n");
printf("------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("\n");
}
}
/********************************************************************************************/
/* To test a table that has unique index and an on request mv
* Sandhya
*
*
*
*
*/
/* DDL for table notatomic is
>>CREATE TABLE tab1_im (a INT NOT NULL, b INT, c INT, d INT NOT NULL NOT DROPPAB
LE,
+> PRIMARY KEY (a, d) NOT DROPPABLE ) ;
--- SQL operation complete.
>>
>>
>>
>>create mv tab1_im_MV
+> Refresh on request
+> initialize on create
+> as
+> select a,sum (b) sum_b
+> from tab1_im
+> group by a;
--- SQL operation complete.
>>
create index itab_im_b on tab1_im (b);
create unique index i_tab1_im_c on tab1_im (c);
*/
void testmv1()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 40;
a2_int[19] = 1000;
a2_int[29] = 1500;
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL delete from tab1_im;
printf("\n *** Test Index/MV - Expecting insert of all except 2 rows 19,29 to succeed ***\n");
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_im VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
/* if (SQLCODE != 0) {
printf(" val = %d\n", a_int);
return (0) ;
} */
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_im order by c;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<40;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
void testmv5()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 40;
a_int[10] = 1610;
a_int[11] = 1610;
a_int[20] = 1620;
a_int[21] = 1620;
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL delete from tab1_dupkey;
printf("\n *** Test MV with duplicate keys - Expecting insert of all except 2 rows 11,21 to succeed ***\n");
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_dupkey VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_dupkey order by c;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<40;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
/*******************************************************************************************/
/* To test a table that has an RI and an on request mv
* Sandhya
*
*
*
*
*/
/* DDL for table notatomic is
-- table with RI and MV
create table tab1_rm_ct2 ( d1 int not null, d2 int, primary key (d1));
CREATE TABLE tab1_rm (a INT NOT NULL, b INT, c INT, d INT NOT NULL NOT DROPPABLE
,
PRIMARY KEY (a, d) NOT DROPPABLE, foreign key (c)
references tab1_rm_ct2 (d1) ) ;
create mv tab1_rm_MV
Refresh on request
initialize on create
as
select a,sum (b) sum_b
from tab1_rm
group by a;
*/
void testmv2()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** Test RI and MV - Expecting insert of just 3 rows 4,9,14 to succeed ***\n");
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL DELETE from tab1_rm;
EXEC SQL DELETE from tab1_rm_ct2;
// excpxet only 3 rows to be inserted.
EXEC SQL insert into tab1_rm_ct2 values (500,500);
EXEC SQL insert into tab1_rm_ct2 values (1000,1000);
EXEC SQL insert into tab1_rm_ct2 values (1500,1500);
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_rm VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
/* if (SQLCODE != 0) {
printf(" val = %d\n", a_int);
return (0) ;
} */
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_rm order by a;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
/***********************************************************************************************/
/* To test a table that has unique index and an RI and an on request mv
* Sandhya
*
*
*
*
*/
/* DDL
CREATE TABLE tab1_irm (a INT NOT NULL, b INT, c INT, d INT NOT NULL NOT DROPPABLE,
PRIMARY KEY (a, d) NOT DROPPABLE, foreign key (c)
references ct2 (d1) ) ;
create mv tab1_irm_MV
Refresh on request
initialize on create
as
select a,sum (b) sum_b
from tab1_irm
group by a;
create index i_tab1_irm_b on tab1_irm (b);
create unique index i_tab1_irm_c on tab1_irma (c);
create table tab1_irm_ct2 ( d1 int not null, d2 int, primary key (d1));
*/
void testmv3()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** Test RI/MV/Index - Expecting insert of just 3 rows 3,11,15 to succeed ***\n");
/* EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL DELETE FROM tab1_irm;
EXEC SQL DELETE FROM tab1_irm_ct2;
EXEC SQL insert into tab1_irm_ct2 values (400,400);
EXEC SQL insert into tab1_irm_ct2 values (1200,1200);
EXEC SQL insert into tab1_irm_ct2 values (1600,1600);
a2_int[8] = 400; // satisfies RI constraint but raises 8102 index violation
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_irm VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
/* if (SQLCODE != 0) {
printf(" val = %d\n", a_int);
return (0) ;
} */
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_irm order by c;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
/************************************************************************************************/
/***********************************************************************************************/
/* To test a table that has unique index and an RI an on statement MV and an on request mv
* Sandhya
*
*
*
*
*/
/* DDL
--table with on statement mv, on request mv, RI and index
create table dt2 ( d1 int not null, d2 int, primary key (d1));
CREATE TABLE tab1_irm2 (a INT NOT NULL, b INT, c INT not NULL NOT DROPPABLE , d INT NOT NULL NOT DROPPABLE,
PRIMARY KEY (a, d) NOT DROPPABLE, foreign key (c)
references dt2 (d1) ) ATTRIBUTE AUTOMATIC RANGELOG;
create mv tab1_irm2_or_MV
Refresh on request
initialize on create
as
select a,sum (b) sum_b
from tab1_irm2
group by a;
create unique index itab_irm2_c on tab1_irm2 (c);
create mv tab1_irm2_os_MV
refresh on statement
initialize on create
store by (d)
as
select d
from tab1_irm2;
******************************************************************************/
void testmv4()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** Test RI/On request MV/On Statement MV/Index - Expecting insert\n of just 6 rows to succeed . Expect 8103 errors on indexes 10 - 19 and \n 8102 errors on 2,4,3 and 6***\n");
EXEC SQL control query default comp_bool_93 'off';
EXEC SQL delete from tab1_irm2;
EXEC SQL delete from dt2;
EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ;
EXEC SQL insert into dt2 values (100,100);
EXEC SQL insert into dt2 values (200,200);
EXEC SQL insert into dt2 values (300,300);
EXEC SQL insert into dt2 values (400,400);
EXEC SQL insert into dt2 values (500,500);
EXEC SQL insert into dt2 values (600,600);
EXEC SQL insert into dt2 values (700,700);
EXEC SQL insert into dt2 values (800,800);
EXEC SQL insert into dt2 values (900,900);
EXEC SQL insert into dt2 values (1000,1000);
EXEC SQL insert into tab1_irm2 values (3,30,300,3000);
EXEC SQL insert into tab1_irm2 values (33,33,400,33);
EXEC SQL insert into tab1_irm2 values (5,50,500,5000);
EXEC SQL insert into tab1_irm2 values (36,36,700,36);
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_irm2 VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_irm2 order by c;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
/* The VSBB version of the same test as testmv4 */
void testmv4v()
{
/* typedef long long int Int64; */
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
a1_int[i] = (i+1)*10;
a2_int[i] = (i+1)*100;
a3_int[i] = (i+1)*1000;
oint1[i] = 0;
oint2[i] = 0;
oint3[i] = 0;
oint4[i] = 0;
}
inp = 20;
printf("\n *** VSBB Test RI/On request MV/On Statement MV/Index - Expecting insert\n of just 6 rows to succeed . Expect 8103 errors on indexes 10 - 19 and \n 8102 errors on 2,4,3 and 6***\n");
EXEC SQL control query default comp_bool_93 'off';
EXEC SQL delete from tab1_irm2;
EXEC SQL delete from dt2;
/*EXEC SQL CONTROL QUERY DEFAULT INSERT_VSBB 'OFF' ; */
EXEC SQL insert into dt2 values (100,100);
EXEC SQL insert into dt2 values (200,200);
EXEC SQL insert into dt2 values (300,300);
EXEC SQL insert into dt2 values (400,400);
EXEC SQL insert into dt2 values (500,500);
EXEC SQL insert into dt2 values (600,600);
EXEC SQL insert into dt2 values (700,700);
EXEC SQL insert into dt2 values (800,800);
EXEC SQL insert into dt2 values (900,900);
EXEC SQL insert into dt2 values (1000,1000);
EXEC SQL insert into tab1_irm2 values (3,30,300,3000);
EXEC SQL insert into tab1_irm2 values (33,33,400,33);
EXEC SQL insert into tab1_irm2 values (5,50,500,5000);
EXEC SQL insert into tab1_irm2 values (36,36,700,36);
EXEC SQL
ROWSET FOR INPUT SIZE :inp
INSERT INTO tab1_irm2 VALUES (:a_int , :a1_int, :a2_int, :a3_int ) NOT ATOMIC;
if (SQLCODE <0)
{
printf("SQLCODE = %d\n", SQLCODE);
}
else
if (SQLCODE !=0)
display_diagnosis();
EXEC SQL COMMIT ;
EXEC SQL select * into :oint1, :oint2, :oint3, :oint4 from tab1_irm2 order by c;
printf("a\tb\tc\td\n");
printf("------\t------\t------\t------\n");
for (i=0;i<20;i++)
{
printf("%d\t",oint1[i]);
printf("%d\t",oint2[i]);
printf("%d\t",oint3[i]);
printf("%d\t",oint4[i]);
printf("\n");
}
}
/************************************************************************************************/
/*****************************************************/
void display_diagnosis()
/*****************************************************/
{
Int32 rowcondnum = 103;
Int32 retcode ;
savesqlcode = SQLCODE ;
hv_rowcount = -1 ;
hv_rowindex = -2 ;
exec sql get diagnostics :hv_num = NUMBER,
:hv_rowcount = ROW_COUNT;
memset(hv_msgtxt,' ',sizeof(hv_msgtxt));
hv_msgtxt[255]='\0';
memset(hv_sqlstate,' ',sizeof(hv_sqlstate));
hv_sqlstate[6]='\0';
printf("Number of conditions : %d\n", hv_num);
printf("Number of rows inserted: %d\n", hv_rowcount);
printf("\n");
for (j = 1; j <= hv_num; j++) {
exec sql get diagnostics exception :j
:hv_tabname = TABLE_NAME,
:hv_sqlcode = SQLCODE,
:hv_sqlstate = RETURNED_SQLSTATE,
/* :hv_rowindex = ROW_INDEX, */
:hv_msgtxt = MESSAGE_TEXT;
retcode = SQL_EXEC_GetDiagnosticsCondInfo2(rowcondnum, j, &hv_rowindex, 0,0,0);
printf("Condition number : %d\n", j);
printf("ROW INDEX : %d\n", hv_rowindex);
printf("SQLCODE : %d\n", hv_sqlcode);
printf("SQLSTATE : %s\n", hv_sqlstate);
printf("MESSAGE : %s\n", hv_msgtxt);
printf("TABLE : %s\n", hv_tabname);
printf("\n");
memset(hv_msgtxt,' ',sizeof(hv_msgtxt));
hv_msgtxt[128]='\0';
memset(hv_tabname,' ',sizeof(hv_tabname));
hv_tabname[128]='\0';
memset(hv_sqlstate,' ',sizeof(hv_sqlstate));
hv_sqlstate[6]='\0';
}
SQLCODE = savesqlcode ;
} | the_stack |
--! keywords ===========================================================
-- 8.0.22 https://dev.mysql.com/doc/refman/8.0/en/keywords.html
-- 5.7.11 https://dev.mysql.com/doc/refman/5.7/en/keywords.html
-- 5.6.8 https://dev.mysql.com/doc/refman/5.6/en/keywords.html
-- 5.5.8 https://dev.mysql.com/doc/refman/5.5/en/keywords.html
-- 2020-09-19 https://mariadb.com/kb/en/library/reserved-words/
-- A
ACCESSIBLE (R)
ACCOUNT -- added in 5.7.6 (nonreserved)
ACTION
ACTIVE -- added in 8.0.14 (nonreserved)
ADD (R)
ADMIN -- became nonreserved in 8.0.12
AFTER
AGAINST
AGGREGATE
ALGORITHM
ALL (R)
ALTER (R)
ALWAYS -- added in 5.7.6 (nonreserved)
ANALYSE -- added in 5.6.6 (nonreserved); removed in 8.0.1
ANALYZE (R)
AND (R)
ANY
ARRAY (R) -- added in 8.0.17 (reserved)
AS (R)
ASC (R)
ASCII
ASENSITIVE (R)
AT
ATTRIBUTE -- added in 8.0.21 (nonreserved)
AUTHORS -- removed in 5.6.8
AUTOEXTEND_SIZE
AUTO_INCREMENT
AVG
AVG_ROW_LENGTH
-- B
BACKUP
BEFORE (R)
BEGIN
END
BETWEEN (R)
BIGINT (R)
BINARY (R)
BINLOG
BIT
BLOB (R)
BLOCK
BOOL
BOOLEAN
BOTH (R)
BTREE
BUCKETS -- added in 8.0.2 (nonreserved)
BY (R)
BYTE
-- C
CACHE
CALL (R)
CASCADE (R)
CASCADED
CASE (R)
END CASE;
CATALOG_NAME
CHAIN
CHANGE (R)
CHANGED
CHANNEL -- added in 5.7.6 (nonreserved)
CHAR (R)
CHARACTER (R)
CHARSET
CHECK (R)
CHECKSUM
CIPHER
CLASS_ORIGIN
CLIENT
CLONE -- added in 8.0.3 (nonreserved)
CLOSE
COALESCE
CODE
COLLATE (R)
COLLATION
COLUMN (R)
COLUMNS
COLUMN_FORMAT -- added in 5.6.6 (nonreserved)
COLUMN_NAME
COMMENT
COMMIT
COMMITTED
COMPACT
COMPLETION
COMPONENT
COMPRESSED
COMPRESSION -- added in 5.7.8 (nonreserved)
CONCURRENT
CONDITION (R)
CONNECTION
CONSISTENT
CONSTRAINT (R)
CONSTRAINT_CATALOG
CONSTRAINT_NAME
CONSTRAINT_SCHEMA
CONTAINS
CONTEXT
CONTINUE (R)
CONTRIBUTORS -- removed in 5.6.8
CONVERT (R)
CPU
CREATE (R)
CROSS (R)
CUBE (R) -- became reserved in 8.0.1
CUME_DIST (R) -- added in 8.0.2 (reserved)
CURRENT -- added in 5.6.4 (nonreserved)
CURRENT_DATE (R)
CURRENT_ROLE -- added in MariaDB 10.0.5
CURRENT_TIME (R)
CURRENT_TIMESTAMP (R)
CURRENT_USER (R)
CURSOR (R)
CURSOR_NAME
-- D
DATA
DATABASE (R)
DATABASES (R)
DATAFILE
DATE
DATETIME
DAY
DAY_HOUR (R)
DAY_MICROSECOND (R)
DAY_MINUTE (R)
DAY_SECOND (R)
DEALLOCATE
DEC (R)
DECIMAL (R)
DECLARE (R)
DEFAULT (R)
DEFAULT_AUTH -- added in 5.6.4 (nonreserved)
DEFINER
DEFINITION -- added in 8.0.4 (nonreserved)
DELAYED (R)
DELAY_KEY_WRITE
DELETE (R)
DENSE_RANK (R) -- added in 8.0.2 (reserved)
DESC (R)
DESCRIBE (R)
DESCRIPTION -- added in 8.0.4 (nonreserved)
DES_KEY_FILE -- removed in 8.0.3
DETERMINISTIC (R)
DIAGNOSTICS -- added in 5.6.4 (nonreserved)
DIRECTORY
DISABLE
DISCARD
DISK
DISTINCT (R)
DISTINCTROW (R)
DIV (R)
DO
DO_DOMAIN_IDS -- added in MariaDB 10.1.2
DOUBLE (R)
DROP (R)
DUAL (R)
DUMPFILE
DUPLICATE
DYNAMIC
-- E
EACH (R)
ELSE (R)
ELSEIF (R)
EMPTY (R) -- added in 8.0.4 (reserved)
ENABLE
ENCLOSED (R)
ENCRYPTION -- added in 5.7.11 (nonreserved)
END
ENDS
ENFORCED -- added in 8.0.16 (nonreserved)
ENGINE
ENGINES
ENUM
ERROR -- added in 5.5.3 (nonreserved)
ERRORS
ESCAPE
ESCAPED (R)
EVENT
EVENTS
EVERY
EXCEPT (M) -- added in MariaDB 10.3.0
EXCHANGE
EXCLUDE -- added in 8.0.2 (nonreserved)
EXECUTE
EXISTS (R)
EXIT (R)
EXPANSION
EXPIRE -- added in 5.6.6 (nonreserved)
EXPLAIN (R)
EXPORT -- added in 5.6.6 (nonreserved)
EXTENDED
EXTENT_SIZE
-- F
FAILED_LOGIN_ATTEMPTS -- added in 8.0.19 (nonreserved)
FALSE (R)
FAST
FAULTS
FETCH (R)
FIELDS
FILE
FILE_BLOCK_SIZE -- added in 5.7.6 (nonreserved)
FILTER -- added in 5.7.3 (nonreserved)
FIRST
FIRST_VALUE (R) -- added in 8.0.2 (reserved)
FIXED
FLOAT (R)
FLOAT4 (R)
FLOAT8 (R)
FLUSH
FOLLOWING -- added in 8.0.2 (nonreserved)
FOLLOWS -- added in 5.7.2 (nonreserved)
FOR (R)
FORCE (R)
FOREIGN (R)
FORMAT -- added in 5.6.5 (nonreserved)
FOUND
FRAC_SECOND -- removed in 5.5.3
FROM (R)
FULL
FULLTEXT (R)
FUNCTION (R) -- became reserved in 8.0.1
-- G
GENERAL -- added in 5.5.3 (reserved); became nonreserved in 5.5.8
GENERATED (R) -- added in 5.7.6 (reserved)
GEOMCOLLECTION -- added in 8.0.11 (nonreserved)
GEOMETRY
GEOMETRYCOLLECTION
GET (R) -- added in 5.6.4 (reserved)
GET_FORMAT
GET_MASTER_PUBLIC_KEY -- added in 8.0.4 (reserved); became nonreserved in 8.0.11
GLOBAL
GRANT (R)
GRANTS
GROUP (R)
GROUPING (R) -- added in 8.0.1 (reserved)
GROUPS (R) -- added in 8.0.2 (reserved)
GROUP_REPLICATION -- added in 5.7.6 (nonreserved)
-- H
HANDLER
HASH
HAVING (R)
HELP
HIGH_PRIORITY (R)
HISTOGRAM -- added in 8.0.2 (nonreserved)
HISTORY -- added in 8.0.3 (nonreserved)
HOST
HOSTS
HOUR
HOUR_MICROSECOND (R)
HOUR_MINUTE (R)
HOUR_SECOND (R)
-- I
IDENTIFIED
IF (R)
IGNORE (R)
IGNORE_DOMAIN_IDS -- added in MariaDB 10.1.2
IGNORE_SERVER_IDS -- became nonreserved in 5.5.8
IMPORT
IN (R)
INACTIVE -- added in 8.0.14 (nonreserved)
INDEX (R)
INDEXES
INFILE (R)
INITIAL_SIZE
INNER (R)
INNOBASE -- removed in 5.5.3
INNODB -- removed in 5.5.3
INOUT (R)
INSENSITIVE (R)
INSERT (R)
INSERT_METHOD
INSTALL
INSTANCE -- added in 5.7.11 (nonreserved)
INT (R)
INT1 (R)
INT2 (R)
INT3 (R)
INT4 (R)
INT8 (R)
INTEGER (R)
INTERSECT (M) -- added in MariaDB 10.3.0
INTERVAL (R)
INTO (R)
INVOKER
IO
IO_AFTER_GTIDS (R) -- added in 5.6.5 (reserved)
IO_BEFORE_GTIDS (R) -- added in 5.6.5 (reserved)
IO_THREAD
IPC
IS (R)
ISOLATION
ISSUER
ITERATE (R)
-- J
JOIN (R)
JSON -- added in 5.7.8 (nonreserved)
JSON_TABLE (R) -- added in 8.0.4 (reserved)
JSON_VALUE -- added in 8.0.21 (nonreserved)
-- K
KEY (R)
KEYS (R)
KEY_BLOCK_SIZE
KILL (R)
-- L
LAG (R) -- added in 8.0.2 (reserved)
LANGUAGE
LAST
LAST_VALUE (R) -- added in 8.0.2 (reserved)
LATERAL (R) -- added in 8.0.14 (reserved)
LEAD (R) -- added in 8.0.2 (reserved)
LEADING (R)
LEAVE (R)
LEAVES
LEFT (R)
LESS
LEVEL
LIKE (R)
LIMIT (R)
LINEAR (R)
LINES (R)
LINESTRING
LIST
LOAD (R)
LOCAL
LOCALTIME (R)
LOCALTIMESTAMP (R)
LOCK (R)
LOCKED -- added in 8.0.1 (nonreserved)
LOCKS
LOGFILE
LOGS
LONG (R)
LONGBLOB (R)
LONGTEXT (R)
LOOP (R)
END LOOP;
LOW_PRIORITY (R)
-- M
MASTER
MASTER_AUTO_POSITION -- added in 5.6.5 (nonreserved)
MASTER_BIND (R) -- added in 5.6.1 (reserved)
MASTER_COMPRESSION_ALGORITHMS -- added in 8.0.18 (nonreserved)
MASTER_CONNECT_RETRY
MASTER_DELAY
MASTER_HEARTBEAT_PERIOD -- became nonreserved in 5.5.8
MASTER_HOST
MASTER_LOG_FILE
MASTER_LOG_POS
MASTER_PASSWORD
MASTER_PORT
MASTER_PUBLIC_KEY_PATH -- added in 8.0.4 (nonreserved)
MASTER_RETRY_COUNT -- added in 5.6.1 (nonreserved)
MASTER_SERVER_ID
MASTER_SSL
MASTER_SSL_CA
MASTER_SSL_CAPATH
MASTER_SSL_CERT
MASTER_SSL_CIPHER
MASTER_SSL_CRL -- added in 5.6.3 (nonreserved)
MASTER_SSL_CRLPATH -- added in 5.6.3 (nonreserved)
MASTER_SSL_KEY
MASTER_SSL_VERIFY_SERVER_CERT (R)
MASTER_TLS_VERSION -- added in 5.7.10 (nonreserved)
MASTER_USER
MASTER_ZSTD_COMPRESSION_LEVEL -- added in 8.0.18 (nonreserved)
MATCH (R)
MAXVALUE (R)
MAX_CONNECTIONS_PER_HOUR
MAX_QUERIES_PER_HOUR
MAX_ROWS
MAX_SIZE
MAX_STATEMENT_TIME -- added in 5.7.4 (nonreserved); removed in 5.7.8
MAX_UPDATES_PER_HOUR
MAX_USER_CONNECTIONS
MEDIUM
MEDIUMBLOB (R)
MEDIUMINT (R)
MEDIUMTEXT (R)
MEMBER (R) -- added in 8.0.17 (reserved)
MEMORY
MERGE;
MESSAGE_TEXT
MICROSECOND
MIDDLEINT (R)
MIGRATE
MINUTE
MINUTE_MICROSECOND (R)
MINUTE_SECOND (R)
MIN_ROWS
MOD (R)
MODE
MODIFIES (R)
MODIFY
MONTH
MULTILINESTRING
MULTIPOINT
MULTIPOLYGON
MUTEX
MYSQL_ERRNO
-- N
NAME
NAMES
NATIONAL
NATURAL (R)
NCHAR
NDB
NDBCLUSTER
NESTED -- added in 8.0.4 (nonreserved)
NETWORK_NAMESPACE -- added in 8.0.16 (nonreserved)
NEVER -- added in 5.7.4 (nonreserved)
NEW
NEXT
NO
NODEGROUP
NONBLOCKING -- removed in 5.7.6
NONE
NOT (R)
NOWAIT -- added in 8.0.1 (nonreserved)
NO_WAIT
NO_WRITE_TO_BINLOG (R)
NTH_VALUE (R) -- added in 8.0.2 (reserved)
NTILE (R) -- added in 8.0.2 (reserved)
NULL (R)
NULLS -- added in 8.0.2 (nonreserved)
NUMBER -- added in 5.6.4 (nonreserved)
NUMERIC (R)
NVARCHAR
-- O
OF (R) -- added in 8.0.1 (reserved)
OFF -- added in 8.0.20 (nonreserved)
OFFSET
OLD_PASSWORD -- removed in 5.7.5
OJ -- added in 8.0.16 (nonreserved)
OLD -- added in 8.0.14 (nonreserved)
ON (R)
ONE
ONE_SHOT -- became reserved in 5.6.1; removed in 5.6.5
ONLY -- added in 5.6.5 (nonreserved)
OPEN
OPTIMIZE (R)
OPTIMIZER_COSTS (R) -- added in 5.7.5 (reserved)
OPTION (R)
OPTIONAL -- added in 8.0.13 (nonreserved)
OPTIONALLY (R)
OPTIONS
OR (R)
ORDER (R)
ORDINALITY -- added in 8.0.4 (nonreserved)
ORGANIZATION -- added in 8.0.4 (nonreserved)
OTHERS -- added in 8.0.2 (nonreserved)
OUT (R)
OUTER (R)
OUTFILE (R)
OVER (M) -- added in 8.0.2 (reserved), added in MariaDB 10.2.0
OWNER
-- P
PACK_KEYS
PAGE
PARSER
PARSE_GCOL_EXPR -- added in 5.7.6 (reserved); became nonreserved in 5.7.8; removed in 8.0
PARTIAL
PARTITION (R) -- became reserved in 5.6.2
PARTITIONING
PARTITIONS
PASSWORD
PASSWORD_LOCK_TIME -- added in 8.0.19 (nonreserved)
PATH -- added in 8.0.4 (nonreserved)
PERCENT_RANK (R) -- added in 8.0.2 (reserved)
PERSIST -- became nonreserved in 8.0.16
PERSIST_ONLY -- added in 8.0.2 (reserved); became nonreserved in 8.0.16
PHASE
PLUGIN
PLUGINS
PLUGIN_DIR -- added in 5.6.4 (nonreserved)
POINT
POLYGON
PORT
POSITION
PRECEDES -- added in 5.7.2 (nonreserved)
PRECEDING -- added in 8.0.2 (nonreserved)
PRECISION (R)
PREPARE
PRESERVE
PREV
PRIMARY (R)
PRIVILEGES
PRIVILEGE_CHECKS_USER -- added in 8.0.18 (nonreserved)
PROCEDURE (R)
PROCESS -- added in 8.0.11 (nonreserved)
PROCESSLIST
PROFILE
PROFILES
PROXY -- added in 5.5.7 (nonreserved)
PURGE (R)
-- Q
QUARTER
QUERY
QUICK
-- R
RANDOM -- added in 8.0.18 (nonreserved)
RANGE (R)
RANK (R) -- added in 8.0.2 (reserved)
READ (R)
READS (R)
READ_ONLY
READ_WRITE (R)
REAL (R)
REBUILD
RECOVER
RECURSIVE (R) -- added in 8.0.1 (reserved), added in MariaDB 10.2.0
REDOFILE -- removed in 8.0.3
REDO_BUFFER_SIZE
REDUNDANT
REF_SYSTEM_ID -- added in MariaDB 10.1.2
REFERENCE -- added in 8.0.11 (nonreserved)
REFERENCES (R)
REGEXP (R)
RELAY -- added in 5.5.3 (nonreserved)
RELAYLOG
RELAY_LOG_FILE
RELAY_LOG_POS
RELAY_THREAD
RELEASE (R)
RELOAD
REMOTE -- added in 8.0.3 (nonreserved); removed in 8.0.14
REMOVE
RENAME (R)
REORGANIZE
REPAIR
REPEAT (R)
REPEATABLE
REPLACE (R)
REPLICA -- added in 8.0.22 (nonreserved)
REPLICAS -- added in 8.0.22 (nonreserved)
REPLICATE_DO_DB -- added in 5.7.3 (nonreserved)
REPLICATE_DO_TABLE -- added in 5.7.3 (nonreserved)
REPLICATE_IGNORE_DB -- added in 5.7.3 (nonreserved)
REPLICATE_IGNORE_TABLE -- added in 5.7.3 (nonreserved)
REPLICATE_REWRITE_DB -- added in 5.7.3 (nonreserved)
REPLICATE_WILD_DO_TABLE -- added in 5.7.3 (nonreserved)
REPLICATE_WILD_IGNORE_TABLE -- added in 5.7.3 (nonreserved)
REPLICATION
REQUIRE (R)
REQUIRE_ROW_FORMAT -- added in 8.0.19 (nonreserved)
RESET
RESIGNAL (R)
RESOURCE -- added in 8.0.3 (nonreserved)
RESPECT -- added in 8.0.2 (nonreserved)
RESTART -- added in 8.0.4 (nonreserved)
RESTORE
RESTRICT (R)
RESUME
RETURN (R)
RETURNED_SQLSTATE -- added in 5.6.4 (nonreserved)
RETURNING (M) -- added in MariaDB 10.0.5
RETURNS
REUSE -- added in 8.0.3 (nonreserved)
REVERSE
REVOKE (R)
RIGHT (R)
RLIKE (R)
ROLE -- became nonreserved in 8.0.1
ROLLBACK
ROLLUP
ROTATE -- added in 5.7.11 (nonreserved)
ROUTINE
ROW (R) -- became reserved in 8.0.2
ROWS (R) -- became reserved in 8.0.2, added in MariaDB 10.2.4
ROW_COUNT -- added in 5.6.4 (nonreserved)
ROW_FORMAT
ROW_NUMBER (R) -- added in 8.0.2 (reserved)
RTREE
-- S
SAVEPOINT
SCHEDULE
SCHEMA (R)
SCHEMAS (R)
SCHEMA_NAME
SECOND
SECONDARY -- added in 8.0.16 (nonreserved)
SECONDARY_ENGINE -- added in 8.0.13 (nonreserved)
SECONDARY_ENGINE_ATTRIBUTE -- added in 8.0.21 (nonreserved)
SECONDARY_LOAD -- added in 8.0.13 (nonreserved)
SECONDARY_UNLOAD -- added in 8.0.13 (nonreserved)
SECOND_MICROSECOND (R)
SECURITY
SELECT (R)
SENSITIVE (R)
SEPARATOR (R)
SERIAL
SERIALIZABLE
SERVER
SESSION
SET (R)
SHARE
SHOW (R)
SHUTDOWN
SIGNAL (R)
SIGNED
SIMPLE
SKIP -- added in 8.0.1 (nonreserved)
SLAVE
SLOW -- added in 5.5.3 (reserved); became nonreserved in 5.5.8
SMALLINT (R)
SNAPSHOT
SOCKET
SOME
SONAME
SOUNDS
SOURCE
SPATIAL (R)
SPECIFIC (R)
SQL (R)
SQLEXCEPTION (R)
SQLSTATE (R)
SQLWARNING (R)
SQL_AFTER_GTIDS -- added in 5.6.5 (reserved); became nonreserved in 5.6.6
SQL_AFTER_MTS_GAPS -- added in 5.6.6 (nonreserved)
SQL_BEFORE_GTIDS -- added in 5.6.5 (reserved); became nonreserved in 5.6.6
SQL_BIG_RESULT (R)
SQL_BUFFER_RESULT
SQL_CACHE -- removed in 8.0.3
SQL_CALC_FOUND_ROWS (R)
SQL_NO_CACHE
SQL_SMALL_RESULT (R)
SQL_THREAD
SQL_TSI_DAY
SQL_TSI_FRAC_SECOND -- removed in 5.5.3
SQL_TSI_HOUR
SQL_TSI_MINUTE
SQL_TSI_MONTH
SQL_TSI_QUARTER
SQL_TSI_SECOND
SQL_TSI_WEEK
SQL_TSI_YEAR
SRID -- added in 8.0.3 (nonreserved)
SSL (R)
STACKED
START
END
STARTING (R)
STARTS
STATS_AUTO_RECALC -- added in 5.6.6 (nonreserved), added in MariaDB 10.0.4
STATS_PERSISTENT -- added in 5.6.6 (nonreserved), added in MariaDB 10.0.4
STATS_SAMPLE_PAGES -- added in 5.6.6 (nonreserved), added in MariaDB 10.0.4
STATUS
STOP
STORAGE
STORED (R) -- added in 5.7.6 (reserved)
STRAIGHT_JOIN (R)
STREAM -- added in 8.0.20 (nonreserved)
STRING
SUBCLASS_ORIGIN
SUBJECT
SUBPARTITION
SUBPARTITIONS
SUPER
SUSPEND
SWAPS
SWITCHES
SYSTEM (R) -- added in 8.0.3 (reserved)
-- T
TABLE (R)
TABLES
TABLESPACE
TABLE_CHECKSUM
TABLE_NAME
TEMPORARY
TEMPTABLE
TERMINATED (R)
TEXT
THAN
THEN (R)
END IF;
THREAD_PRIORITY -- added in 8.0.3 (nonreserved)
TIES -- added in 8.0.2 (nonreserved)
TIME
TIMESTAMP
TIMESTAMPADD
TIMESTAMPDIFF
TINYBLOB (R)
TINYINT (R)
TINYTEXT (R)
TLS -- added in 8.0.21 (nonreserved)
TO (R)
TRAILING (R)
TRANSACTION
TRIGGER (R)
TRIGGERS
TRUE (R)
TRUNCATE
TYPE
TYPES
-- U
UNBOUNDED -- added in 8.0.2 (nonreserved)
UNCOMMITTED
UNDEFINED
UNDO (R)
UNDOFILE
UNDO_BUFFER_SIZE
UNICODE
UNINSTALL
UNION (R)
UNIQUE (R)
UNKNOWN
UNLOCK (R)
UNSIGNED (R)
UNTIL
UPDATE (R)
UPGRADE
USAGE (R)
USE (R)
USER
USER_RESOURCES
USE_FRM
USING (R)
UTC_DATE (R)
UTC_TIME (R)
UTC_TIMESTAMP (R)
-- V
VALIDATION -- added in 5.7.5 (nonreserved)
VALUE
VALUES (R)
VARBINARY (R)
VARCHAR (R)
VARCHARACTER (R)
VARIABLES
VARYING (R)
VCPU -- added in 8.0.3 (nonreserved)
VIEW
VIRTUAL (R) -- added in 5.7.6 (reserved)
VISIBLE
-- W
WAIT
WARNINGS
WEEK
WEIGHT_STRING
WHEN (R)
WHERE (R)
WHILE (R)
END WHILE;
WINDOW (R) -- added in 8.0.2 (reserved), added in MariaDB 10.2.0
WITH (R)
WITHOUT -- added in 5.7.5 (nonreserved)
WORK
WRAPPER
WRITE (R)
-- X
X509
XA
XID -- added in 5.7.5 (nonreserved)
XML
XOR (R)
-- Y
YEAR
YEAR_MONTH (R)
-- Z
ZEROFILL (R)
ZONE -- added in 8.0.22 (nonreserved)
-- SQL Statements
DELIMITER
-- MariaDB 10.3 Oracle Mode
BODY
ELSIF
GOTO
HISTORY -- <= MariaDB 10.3.6 only
PACKAGE
PERIOD -- <= MariaDB 10.3.6 only
RAISE
ROWTYPE
SYSTEM -- <= MariaDB 10.3.6 only
SYSTEM_TIME -- <= MariaDB 10.3.6 only
VERSIONING -- <= MariaDB 10.3.6 only
WITHOUT -- <= MariaDB 10.3.6 only
--! Data Types ===========================================================
-- Numeric Types
BIT
BOOL
BOOLEAN
BYTE
TINYINT
SMALLINT
MEDIUMINT
INT
INT1
INT2
INT3
INT4
INT8
INTEGER
LONG
BIGINT
SERIAL
SIGNED
DECIMAL
DEC
NUMERIC
FIXED
FLOAT
DOUBLE
REAL
FLOAT
FLOAT4
FLOAT8
-- Date and Time Types
DATE
DATETIME
TIMESTAMP
TIME
YEAR
MONTH
DAY
HOUR
MINUTE
SECOND
-- String Types
CHAR
NCHAR
VARCHAR
VARCHARACTER
NVARCHAR
BINARY
VARBINARY
TINYBLOB
TINYTEXT
BLOB
TEXT
MEDIUMBLOB
MEDIUMTEXT
LONGBLOB
LONGTEXT
ENUM
SET
-- Spatial Data Types
GEOMETRY
POINT
LINESTRING
POLYGON
MULTIPOINT
MULTILINESTRING
MULTIPOLYGON
GEOMETRYCOLLECTION
GEOMCOLLECTION
-- The JSON Data Type
JSON
--! Functions ===========================================================
-- Comparison Functions and Operators
COALESCE(value, ...)
GREATEST(value1, value2,...)
INTERVAL(N, N1, N2, N3, ...)
ISNULL(expr)
LEAST(value1, value2, ...)
STRCMP(expr1, expr2)
-- Flow Control Functions
IF(expr1, expr2, expr3)
IFNULL(expr1, expr2)
NULLIF(expr1, expr2)
-- String Functions
ASCII(str)
BIN(N)
BIT_LENGTH(str)
CHAR(N, ... [USING charset_name])
CHAR_LENGTH(str)
CHARACTER_LENGTH(str)
CONCAT(str1, str2, ...)
CONCAT_WS(separator, str1, str2, ...)
ELT(N, str1, str2, str3, ...)
EXPORT_SET(bits, on, off [, separator [, number_of_bits]])
FIELD(str, str1, str2, str3, ...)
FIND_IN_SET(str, strlist)
FORMAT(X, D [, locale])
FROM_BASE64(str)
HEX(str), HEX(N)
INSERT(str, pos, len, newstr)
INSTR(str, substr)
LCASE(str)
LEFT(str, len)
LENGTH(str)
LOAD_FILE(file_name)
LOCATE(substr, str), LOCATE(substr, str, pos)
LOWER(str)
LPAD(str, len, padstr)
LTRIM(str)
MAKE_SET(bits, str1, str2, ...)
MID(str, pos, len)
OCT(N)
OCTET_LENGTH(str)
ORD(str)
POSITION(substr IN str)
QUOTE(str)
REPEAT(str, count)
REPLACE(str, from_str, to_str)
REVERSE(str)
RIGHT(str, len)
RPAD(str, len, padstr)
RTRIM(str)
SOUNDEX(str)
SPACE(N)
STRCMP(expr1, expr2)
SUBSTR(str, pos), SUBSTR(str FROM pos), SUBSTR(str, pos, len), SUBSTR(str FROM pos FOR len)
SUBSTRING(str, pos), SUBSTRING(str FROM pos), SUBSTRING(str, pos, len), SUBSTRING(str FROM pos FOR len)
SUBSTRING_INDEX(str, delim, count)
TO_BASE64(str)
TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str), TRIM([remstr FROM] str)
UCASE(str)
UNHEX(str)
UPPER(str)
WEIGHT_STRING(str [AS {CHAR | BINARY}(N)] [flags])
-- Regular Expressions
REGEXP_INSTR(expr, pat [, pos [, occurrence [, return_option [, match_type]]]])
REGEXP_LIKE(expr, pat [, match_type])
REGEXP_REPLACE(expr, pat, repl [, pos [, occurrence [, match_type]]])
REGEXP_SUBSTR(expr, pat [, pos [, occurrence [, match_type]]])
-- Numeric Functions and Operators
ABS(X)
ACOS(X)
ASIN(X)
ATAN(Y,X)
ATAN2(Y,X)
CEIL(X)
CEILING(X)
CONV(N, from_base, to_base)
COS(X)
COT(X)
CRC32(expr)
DEGREES(X)
DIV
EXP(X)
FLOOR(X)
FORMAT(X, D)
HEX(N_or_S)
LN(X)
LOG(X), LOG(B,X)
LOG10(X)
LOG2(X)
MOD(N, M), N % M, N MOD M
PI()
POW(X, Y)
POWER(X, Y)
RADIANS(X)
RAND([N])
ROUND(X), ROUND(X, D)
SIGN(X)
SIN(X)
SQRT(X)
TAN(X)
TRUNCATE(X, D)
-- Date and Time Functions
ADDDATE(date, INTERVAL expr unit), ADDDATE(expr, days)
ADDTIME(expr1, expr2)
CONVERT_TZ(dt, from_tz, to_tz)
CURDATE()
CURRENT_DATE(), CURRENT_DATE
CURRENT_TIME(), CURRENT_TIME
CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP
CURTIME([fsp])
DATE(expr)
DATE_ADD(date, INTERVAL expr unit)
DATE_FORMAT(date,format)
DATE_SUB(date, INTERVAL expr unit)
DATEDIFF(expr1, expr2)
DAY(date)
DAYNAME(date)
DAYOFMONTH(date)
DAYOFWEEK(date)
DAYOFYEAR(date)
EXTRACT(unit FROM date)
FROM_DAYS(N)
FROM_UNIXTIME(unix_timestamp), FROM_UNIXTIME(unix_timestamp, format)
GET_FORMAT({DATE | TIME | DATETIME}, {'EUR' | 'USA' | 'JIS' | 'ISO' | 'INTERNAL'})
HOUR(time)
LAST_DAY(date)
LOCALTIME, LOCALTIME([fsp])
LOCALTIMESTAMP, LOCALTIMESTAMP([fsp])
MAKEDATE(year, dayofyear)
MAKETIME(hour, minute, second)
MICROSECOND(expr)
MINUTE(time)
MONTH(date)
MONTHNAME(date)
NOW([fsp])
PERIOD_ADD(P, N)
PERIOD_DIFF(P1, P2)
QUARTER(date)
SEC_TO_TIME(seconds)
SECOND(time)
STR_TO_DATE(str, format)
SUBDATE(date, INTERVAL expr unit), SUBDATE(expr, days)
SUBTIME(expr1, expr2)
SYSDATE([fsp])
TIME(expr)
TIME_FORMAT(time, format)
TIME_TO_SEC(time)
TIMEDIFF(expr1, expr2)
TIMESTAMP(expr), TIMESTAMP(expr1, expr2)
TIMESTAMPADD(unit, interval, datetime_expr)
TIMESTAMPDIFF(unit, datetime_expr1, datetime_expr2)
TO_DAYS(date)
TO_SECONDS(expr)
UNIX_TIMESTAMP(), UNIX_TIMESTAMP(date)
UTC_DATE, UTC_DATE()
UTC_TIME, UTC_TIME([fsp])
UTC_TIMESTAMP, UTC_TIMESTAMP([fsp])
WEEK(date [, mode])
WEEKDAY(date)
WEEKOFYEAR(date)
YEAR(date)
YEARWEEK(date), YEARWEEK(date, mode)
-- Cast Functions and Operators
BINARY
CAST(expr AS type)
CONVERT(expr, type), CONVERT(expr USING transcoding_name)
-- XML Functions
ExtractValue(xml_frag, xpath_expr)
UpdateXML(xml_target, xpath_expr, new_xml)
-- Bit Functions and Operators
BIT_COUNT(N)
-- Encryption and Compression Functions
AES_DECRYPT(crypt_str, key_str [, init_vector])
AES_ENCRYPT(str, key_str [, init_vector])
COMPRESS(string_to_compress)
DECODE(crypt_str, pass_str) -- deprecated in 5.7.2; removed in 8.0.3
DES_DECRYPT(crypt_str [, key_str]) -- deprecated in 5.7.6; removed in 8.0.3
DES_ENCRYPT(str [, {key_num | key_str}])-- deprecated in 5.7.6; removed in 8.0.3
ENCODE(str, pass_str) -- deprecated in 5.7.2; removed in 8.0.3
ENCRYPT(str [, salt]) -- deprecated in 5.7.6; removed in 8.0.3
MD5(str)
OLD_PASSWORD() -- removed in 5.7.5
PASSWORD(str) -- deprecated in 5.7.6; removed in 8.0.11
RANDOM_BYTES(len) -- added in 5.6.17
SHA1(str), SHA(str)
SHA2(str, hash_length)
STATEMENT_DIGEST(statement)
STATEMENT_DIGEST_TEXT(statement)
UNCOMPRESS(string_to_uncompress)
UNCOMPRESSED_LENGTH(compressed_string)
VALIDATE_PASSWORD_STRENGTH(str)
-- Enterprise Encryption Function Descriptions
ASYMMETRIC_DECRYPT(algorithm, crypt_str, key_str)
ASYMMETRIC_DERIVE(pub_key_str, priv_key_str)
ASYMMETRIC_ENCRYPT(algorithm, str, key_str)
ASYMMETRIC_SIGN(algorithm, digest_str, priv_key_str, digest_type)
ASYMMETRIC_VERIFY(algorithm, digest_str, sig_str, pub_key_str, digest_type)
CREATE_ASYMMETRIC_PRIV_KEY(algorithm, {key_len | dh_secret})
CREATE_ASYMMETRIC_PUB_KEY(algorithm, priv_key_str)
CREATE_DH_PARAMETERS(key_len)
CREATE_DIGEST(digest_type, str)
-- Information Functions
analyse([max_elements [,max_memory]])
BENCHMARK(count, expr)
BINLOG_GTID_POS(binlog_filename, binlog_offset) -- added in MariaDB 10.0.2
CHARSET(str)
COERCIBILITY(str)
COLLATION(str)
CONNECTION_ID()
CURRENT_ROLE()
CURRENT_USER(), CURRENT_USER
DATABASE()
DECODE_HISTOGRAM(hist_type, histogram) -- added in MariaDB 10.0.2
FOUND_ROWS()
ICU_VERSION()
LAST_INSERT_ID()
LAST_INSERT_ID(expr)
ROLES_GRAPHML()
ROW_COUNT()
SCHEMA()
SESSION_USER()
SYSTEM_USER()
USER()
VERSION()
-- Spatial Function Reference
Area() -- deprecated in 5.7.6
AsBinary(), AsWKB() -- deprecated in 5.7.6
AsText(), AsWKT() -- deprecated in 5.7.6
Boundary(g) -- added in MariaDB 10.1.2
Buffer() -- deprecated in 5.7.6
Centroid() -- deprecated in 5.7.6
Contains() -- deprecated in 5.7.6
ConvexHull() -- deprecated in 5.7.6
Crosses() -- deprecated in 5.7.6
Dimension() -- deprecated in 5.7.6
Disjoint() -- deprecated in 5.7.6
Distance() -- deprecated in 5.7.6
EndPoint() -- deprecated in 5.7.6
Envelope() -- deprecated in 5.7.6
Equals() -- deprecated in 5.7.6
ExteriorRing() -- deprecated in 5.7.6
GeomCollFromText(), GeometryCollectionFromText() -- deprecated in 5.7.6
GeomCollFromWKB(), GeometryCollectionFromWKB() -- deprecated in 5.7.6
GeomCollection(g [, g] ...)
GeometryCollection(g [, g] ...)
GeometryN() -- deprecated in 5.7.6
GeometryType() -- deprecated in 5.7.6
GeomFromText(), GeometryFromText() -- deprecated in 5.7.6
GeomFromWKB(), GeometryFromWKB() -- deprecated in 5.7.6
GLength() -- deprecated in 5.7.6
InteriorRingN() -- deprecated in 5.7.6
Intersects() -- deprecated in 5.7.6
IsClosed() -- deprecated in 5.7.6
IsEmpty() -- deprecated in 5.7.6
IsSimple() -- deprecated in 5.7.6
IsRing(g) -- added in MariaDB 10.1.2
LineFromText(), LineStringFromText() -- deprecated in 5.7.6
LineFromWKB(), LineStringFromWKB() -- deprecated in 5.7.6
LineString(pt [, pt] ...)
MBRContains(g1, g2)
MBRCoveredBy(g1, g2)
MBRCovers(g1, g2)
MBRDisjoint(g1, g2)
MBREqual() -- deprecated in 5.7.6
MBREquals(g1, g2)
MBRIntersects(g1, g2)
MBROverlaps(g1, g2)
MBRTouches(g1, g2)
MBRWithin(g1, g2)
MLineFromText(), MultiLineStringFromText() -- deprecated in 5.7.6
MLineFromWKB(), MultiLineStringFromWKB() -- deprecated in 5.7.6
MPointFromText(), MultiPointFromText() -- deprecated in 5.7.6
MPointFromWKB(), MultiPointFromWKB() -- deprecated in 5.7.6
MPolyFromText(), MultiPolygonFromText() -- deprecated in 5.7.6
MPolyFromWKB(), MultiPolygonFromWKB() -- deprecated in 5.7.6
MultiLineString(ls [, ls] ...)
MultiPoint(pt [, pt2] ...)
MultiPolygon(poly [, poly] ...)
NumGeometries() -- deprecated in 5.7.6
NumInteriorRings() -- deprecated in 5.7.6
NumPoints() -- deprecated in 5.7.6
Overlaps() -- deprecated in 5.7.6
Point(x, y)
PointFromText() -- deprecated in 5.7.6
PointFromWKB() -- deprecated in 5.7.6
PointN() -- deprecated in 5.7.6
PointOnSurface(g) -- added in MariaDB 10.1.2
PolyFromText(), PolygonFromText() -- deprecated in 5.7.6
PolyFromWKB(), PolygonFromWKB() -- deprecated in 5.7.6
Polygon(ls [, ls] ...)
SRID() -- deprecated in 5.7.6
ST_Area({poly | mpoly})
ST_AsBinary(g [, options])
ST_AsWKB(g [, options])
ST_AsGeoJSON(g [, max_dec_digits [, options]])
ST_AsText(g [, options])
ST_AsWKT(g [, options])
ST_Boundary(g) -- added in MariaDB 10.1.2
ST_Buffer(g, d[, strategy1[, strategy2[, strategy3]]])
ST_Buffer_Strategy(strategy[, points_per_circle])
ST_Centroid({poly | mpoly})
ST_Contains(g1, g2)
ST_ConvexHull(g)
ST_Crosses(g1, g2)
ST_Difference(g1, g2)
ST_Dimension(g)
ST_Disjoint(g1, g2)
ST_Distance(g1, g2)
ST_Distance_Sphere(g1, g2 [, radius])
ST_EndPoint(ls)
ST_Envelope(g)
ST_Equals(g1, g2)
ST_ExteriorRing(poly)
ST_GeoHash(longitude, latitude, max_length)
ST_GeoHash(point, max_length)
ST_GeomCollFromText(wkt [, srid [, options]])
ST_GeometryCollectionFromText(wkt [, srid [, options]])
ST_GeomCollFromTxt(wkt [, srid [, options]])
ST_GeomCollFromWKB(wkb [, srid [, options]])
ST_GeometryCollectionFromWKB(wkb [, srid [, options]])
ST_GeometryN(gc, N)
ST_GeometryType(g)
ST_GeomFromGeoJSON(str [, options [, srid]])
ST_GeomFromText(wkt [, srid [, options]])
ST_GeometryFromText(wkt [, srid [, options]])
ST_GeomFromWKB(wkb [, srid [, options]])
ST_GeometryFromWKB(wkb [, srid [, options]])
ST_InteriorRingN(poly, N)
ST_Intersection(g1, g2)
ST_Intersects(g1, g2)
ST_IsClosed(ls)
ST_IsEmpty(g)
ST_IsSimple(g)
ST_IsRing(g) -- added in MariaDB 10.1.2
ST_IsValid(g)
ST_LatFromGeoHash(geohash_str)
ST_Latitude(p [, new_latitude_val]) -- added in 8.0.12
ST_Length(ls)
ST_LineFromText(wkt [, srid [, options]])
ST_LineStringFromText(wkt [, srid [, options]])
ST_LineFromWKB(wkb [, srid [, options]])
ST_LineStringFromWKB(wkb [, srid [, options]])
ST_LongFromGeoHash(geohash_str)
ST_Longitude(p [, new_longitude_val]) -- added in 8.0.12
ST_MakeEnvelope(pt1, pt2)
ST_MLineFromText(wkt [, srid [, options]])
ST_MultiLineStringFromText(wkt [, srid [, options]])
ST_MLineFromWKB(wkb [, srid [, options]])
ST_MultiLineStringFromWKB(wkb [, srid [, options]])
ST_MPointFromText(wkt [, srid [, options]])
ST_MultiPointFromText(wkt [, srid [, options]])
ST_MPointFromWKB(wkb [, srid [, options]])
ST_MultiPointFromWKB(wkb [, srid [, options]])
ST_MPolyFromText(wkt [, srid [, options]])
ST_MultiPolygonFromText(wkt [, srid [, options]])
ST_PolyFromWKB(wkb [, srid [, options]])
ST_PolygonFromWKB(wkb [, srid [, options]])
ST_NumGeometries(gc)
ST_NumInteriorRing(poly)
ST_NumInteriorRings(poly)
ST_NumPoints(ls)
ST_Overlaps(g1, g2)
ST_PointFromGeoHash(geohash_str, srid)
ST_PointFromText(wkt [, srid [, options]])
ST_PointFromWKB(wkb [, srid [, options]])
ST_PointN(ls, N)
ST_PointOnSurface(g) -- added in MariaDB 10.1.2
ST_PolyFromText(wkt [, srid [, options]])
ST_PolygonFromText(wkt [, srid [, options]])
ST_MPolyFromWKB(wkb [, srid [, options]])
ST_MultiPolygonFromWKB(wkb [, srid [, options]])
ST_Relate(g1, g2, i) -- added in MariaDB 10.1.2
ST_Simplify(g, max_distance)
ST_SRID(g [, srid])
ST_StartPoint(ls)
ST_SwapXY(g)
ST_SymDifference(g1, g2)
ST_Touches(g1, g2)
ST_Transform(g, target_srid)
ST_Union(g1, g2)
ST_Validate(g)
ST_Within(g1, g2)
ST_X(p [, new_x_val])
ST_Y(p [, new_y_val])
StartPoint() -- deprecated in 5.7.6
Touches() -- deprecated in 5.7.6
Within() -- deprecated in 5.7.6
X() -- deprecated in 5.7.6
Y() -- deprecated in 5.7.6
-- JSON Function Reference
JSON_APPEND(json_doc, path, val [, path, val] ...) -- deprecated in 5.7.9
JSON_ARRAY([val [, val] ...])
JSON_ARRAY_APPEND(json_doc, path, val [, path, val] ...)
JSON_ARRAY_INSERT(json_doc, path, val [, path, val] ...)
JSON_CONTAINS(target, candidate [, path])
JSON_CONTAINS_PATH(json_doc, one_or_all, path [, path] ...)
JSON_DEPTH(json_doc)
JSON_EXTRACT(json_doc, path [, path] ...)
JSON_INSERT(json_doc, path, val [, path, val] ...)
JSON_KEYS(json_doc [, path])
JSON_LENGTH(json_doc [, path])
JSON_MERGE(json_doc, json_doc [, json_doc] ...) -- deprecated in 5.7.22
JSON_MERGE_PATCH(json_doc, json_doc [, json_doc] ...)
JSON_MERGE_PRESERVE(json_doc, json_doc [, json_doc] ...)
JSON_OBJECT([key, val [, key, val] ...])
JSON_PRETTY(json_val)
JSON_QUOTE(string)
JSON_REMOVE(json_doc, path [, path] ...)
JSON_REPLACE(json_doc, path, val [, path, val] ...)
JSON_SEARCH(json_doc, one_or_all, search_str [, escape_char [, path] ...])
JSON_SET(json_doc, path, val [, path, val] ...)
JSON_STORAGE_FREE(json_val)
JSON_STORAGE_SIZE(json_val)
JSON_TABLE(expr, path COLUMNS (column_list) [AS] alias)
JSON_TYPE(json_val)
JSON_UNQUOTE(json_val)
JSON_VALID(val)
-- Functions Used with Global Transaction IDs
GTID_SUBSET(subset, set)
GTID_SUBTRACT(set, subset)
WAIT_FOR_EXECUTED_GTID_SET(gtid_set [, timeout])
SQL_THREAD_WAIT_AFTER_GTIDS(gtid_set [, timeout]) -- deprecated 5.6.9
WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(gtid_set [, timeout] [, channel])
-- Aggregate (GROUP BY) Function Descriptions
AVG([DISTINCT] expr) [over_clause]
BIT_AND(expr) [over_clause]
BIT_OR(expr) [over_clause]
BIT_XOR(expr) [over_clause]
COUNT(expr) [over_clause]
COUNT(DISTINCT)
COUNT(DISTINCT expr [, expr...])
GROUP_CONCAT(expr)
JSON_ARRAYAGG(col_or_expr)
JSON_OBJECTAGG(key, value)
MAX([DISTINCT] expr) [over_clause]
MIN([DISTINCT] expr) [over_clause]
STD(expr) [over_clause]
STDDEV(expr) [over_clause]
STDDEV_POP(expr) [over_clause]
STDDEV_SAMP(expr) [over_clause]
SUM([DISTINCT] expr) [over_clause]
VAR_POP(expr) [over_clause]
VAR_SAMP(expr) [over_clause]
VARIANCE(expr) [over_clause]
-- Window Functions
CUME_DIST() over_clause
DENSE_RANK() over_clause
FIRST_VALUE(expr) [null_treatment] over_clause
LAG(expr [, N [, default]]) [null_treatment] over_clause
LAST_VALUE(expr) [null_treatment] over_clause
LEAD(expr [, N [, default]]) [null_treatment] over_clause
MEDIAN(expr) over_clause -- added in MariaDB 10.3.3
NTH_VALUE(expr, N) [from_first_last] [null_treatment] over_clause
NTILE(N) over_clause
PERCENT_RANK() over_clause
PERCENTILE_CONT(expr) -- added in MariaDB 10.3.3
PERCENTILE_DISC(expr) -- added in MariaDB 10.3.3
RANK() over_clause
ROW_NUMBER() over_clause
-- Internal Functions
CAN_ACCESS_COLUMN(ARGS)
CAN_ACCESS_DATABASE(ARGS)
CAN_ACCESS_TABLE(ARGS)
CAN_ACCESS_VIEW(ARGS)
GET_DD_COLUMN_PRIVILEGES(ARGS)
GET_DD_CREATE_OPTIONS(ARGS)
GET_DD_INDEX_SUB_PART_LENGTH(ARGS)
INTERNAL_AUTO_INCREMENT(ARGS)
INTERNAL_AVG_ROW_LENGTH(ARGS)
INTERNAL_CHECK_TIME(ARGS)
INTERNAL_CHECKSUM(ARGS)
INTERNAL_DATA_FREE(ARGS)
INTERNAL_DATA_LENGTH(ARGS)
INTERNAL_DD_CHAR_LENGTH(ARGS)
INTERNAL_GET_COMMENT_OR_ERROR(ARGS)
INTERNAL_GET_VIEW_WARNING_OR_ERROR(ARGS)
INTERNAL_INDEX_COLUMN_CARDINALITY(ARGS)
INTERNAL_INDEX_LENGTH(ARGS)
INTERNAL_KEYS_DISABLED(ARGS)
INTERNAL_MAX_DATA_LENGTH(ARGS)
INTERNAL_TABLE_ROWS(ARGS)
INTERNAL_UPDATE_TIME(ARGS)
IS_VISIBLE_DD_OBJECT(ARGS)
-- Miscellaneous Functions
ANY_VALUE(arg)
BIN_TO_UUID(binary_uuid)
BIN_TO_UUID(binary_uuid, swap_flag)
DEFAULT(col_name)
FORMAT(X, D)
GET_LOCK(str, timeout)
GROUPING(expr [, expr] ...)
INET_ATON(expr)
INET_NTOA(expr)
INET6_ATON(expr)
INET6_NTOA(expr)
IS_FREE_LOCK(str)
IS_IPV4(expr)
IS_IPV4_COMPAT(expr)
IS_IPV4_MAPPED(expr)
IS_IPV6(expr)
IS_USED_LOCK(str)
IS_UUID(string_uuid)
MASTER_GTID_WAIT(gtid-list [, timeout) -- added in MariaDB 10.0.9
MASTER_POS_WAIT(log_name, log_pos [, timeout] [, channel])
NAME_CONST(name, value)
RAND()
RELEASE_ALL_LOCKS()
RELEASE_LOCK(str)
SLEEP(duration)
UUID()
UUID_SHORT()
UUID_TO_BIN(string_uuid)
UUID_TO_BIN(string_uuid, swap_flag)
VALUE(col_name) -- added in MariaDB 10.3.3
VALUES(col_name)
-- MariaDB Built-in Functions https://mariadb.com/kb/en/library/built-in-functions/
-- Dynamic Columns Functions
COLUMN_ADD(dyncol_blob, column_nr, value [as type], [column_nr, value [as type]]...)
COLUMN_ADD(dyncol_blob, column_name, value [as type], [column_name, value [as type]]...)
COLUMN_CHECK(dyncol_blob) -- added in 10.0.1
COLUMN_CREATE(column_nr, value [as type], [column_nr, value [as type]]...)
COLUMN_CREATE(column_name, value [as type], [column_name, value [as type]]...)
COLUMN_DELETE(dyncol_blob, column_nr, column_nr...)
COLUMN_DELETE(dyncol_blob, column_name, column_name...)
COLUMN_EXISTS(dyncol_blob, column_nr)
COLUMN_EXISTS(dyncol_blob, column_name)
COLUMN_GET(dyncol_blob, column_nr as type)
COLUMN_GET(dyncol_blob, column_name as type)
COLUMN_JSON(dyncol_blob) -- added in 10.0.1
COLUMN_LIST(dyncol_blob)
-- JSON Functions
JSON_COMPACT(json_doc) -- added in MariaDB 10.2.4
JSON_DETAILED(json_doc [, tab_size]) -- added in MariaDB 10.2.4
JSON_EXISTS(json_doc, path) -- added in MariaDB 10.2.3
JSON_LOOSE(json_doc) -- added in MariaDB 10.2.4
JSON_QUERY(json_doc, path) -- added in MariaDB 10.2.3
JSON_VALUE(json_doc, path) -- added in MariaDB 10.2.3
-- Spider Functions
SPIDER_BG_DIRECT_SQL('sql', 'tmp_table_list', 'parameters')
SPIDER_COPY_TABLES(spider_table_name, source_link_id, destination_link_id_list [,parameters])
SPIDER_DIRECT_SQL('sql', 'tmp_table_list', 'parameters')
SPIDER_FLUSH_TABLE_MON_CACHE()
-- SEQUENCE Functions
SEQUENCE -- added in MariaDB 10.3
LASTVAL(sequence_name) -- added in MariaDB 10.3
NEXTVAL(sequence_name) -- added in MariaDB 10.3
SETVAL(sequence_name, next_value, [is_used, [round]]) -- added in MariaDB 10.3 | the_stack |
CREATE TABLE ABS (x INT);
-- error 42601: syntax error: near "ABS"
CREATE TABLE ACOS (x INT);
-- error 42601: syntax error: near "ACOS"
CREATE TABLE ALL (x INT);
-- error 42601: syntax error: near "ALL"
CREATE TABLE ALLOCATE (x INT);
-- error 42601: syntax error: near "ALLOCATE"
CREATE TABLE ALTER (x INT);
-- error 42601: syntax error: near "ALTER"
CREATE TABLE AND (x INT);
-- error 42601: syntax error: near "AND"
CREATE TABLE ANY (x INT);
-- error 42601: syntax error: near "ANY"
CREATE TABLE ARE (x INT);
-- error 42601: syntax error: near "ARE"
CREATE TABLE ARRAY (x INT);
-- error 42601: syntax error: near "ARRAY"
CREATE TABLE ARRAY_AGG (x INT);
-- error 42601: syntax error: near "ARRAY_AGG"
CREATE TABLE ARRAY_MAX_CARDINALITY (x INT);
-- error 42601: syntax error: near "ARRAY_MAX_CARDINALITY"
CREATE TABLE AS (x INT);
-- error 42601: syntax error: near "AS"
CREATE TABLE ASENSITIVE (x INT);
-- error 42601: syntax error: near "ASENSITIVE"
CREATE TABLE ASIN (x INT);
-- error 42601: syntax error: near "ASIN"
CREATE TABLE ASYMMETRIC (x INT);
-- error 42601: syntax error: near "ASYMMETRIC"
CREATE TABLE AT (x INT);
-- error 42601: syntax error: near "AT"
CREATE TABLE ATAN (x INT);
-- error 42601: syntax error: near "ATAN"
CREATE TABLE ATOMIC (x INT);
-- error 42601: syntax error: near "ATOMIC"
CREATE TABLE AUTHORIZATION (x INT);
-- error 42601: syntax error: near "AUTHORIZATION"
CREATE TABLE AVG (x INT);
-- error 42601: syntax error: near "AVG"
CREATE TABLE BEGIN (x INT);
-- error 42601: syntax error: near "BEGIN"
CREATE TABLE BEGIN_FRAME (x INT);
-- error 42601: syntax error: near "BEGIN_FRAME"
CREATE TABLE BEGIN_PARTITION (x INT);
-- error 42601: syntax error: near "BEGIN_PARTITION"
CREATE TABLE BETWEEN (x INT);
-- error 42601: syntax error: near "BETWEEN"
CREATE TABLE BIGINT (x INT);
-- error 42601: syntax error: near "BIGINT"
CREATE TABLE BINARY (x INT);
-- error 42601: syntax error: near "BINARY"
CREATE TABLE BLOB (x INT);
-- error 42601: syntax error: near "BLOB"
CREATE TABLE BOOLEAN (x INT);
-- error 42601: syntax error: near "BOOLEAN"
CREATE TABLE BOTH (x INT);
-- error 42601: syntax error: near "BOTH"
CREATE TABLE BY (x INT);
-- error 42601: syntax error: near "BY"
CREATE TABLE CALL (x INT);
-- error 42601: syntax error: near "CALL"
CREATE TABLE CALLED (x INT);
-- error 42601: syntax error: near "CALLED"
CREATE TABLE CARDINALITY (x INT);
-- error 42601: syntax error: near "CARDINALITY"
CREATE TABLE CASCADED (x INT);
-- error 42601: syntax error: near "CASCADED"
CREATE TABLE CASE (x INT);
-- error 42601: syntax error: near "CASE"
CREATE TABLE CAST (x INT);
-- error 42601: syntax error: near "CAST"
CREATE TABLE CEIL (x INT);
-- error 42601: syntax error: near "CEIL"
CREATE TABLE CEILING (x INT);
-- error 42601: syntax error: near "CEILING"
CREATE TABLE CHAR (x INT);
-- error 42601: syntax error: near "CHAR"
CREATE TABLE CHAR_LENGTH (x INT);
-- error 42601: syntax error: near "CHAR_LENGTH"
CREATE TABLE CHARACTER (x INT);
-- error 42601: syntax error: near "CHARACTER"
CREATE TABLE CHARACTER_LENGTH (x INT);
-- error 42601: syntax error: near "CHARACTER_LENGTH"
CREATE TABLE CHECK (x INT);
-- error 42601: syntax error: near "CHECK"
CREATE TABLE CLASSIFIER (x INT);
-- error 42601: syntax error: near "CLASSIFIER"
CREATE TABLE CLOB (x INT);
-- error 42601: syntax error: near "CLOB"
CREATE TABLE CLOSE (x INT);
-- error 42601: syntax error: near "CLOSE"
CREATE TABLE COALESCE (x INT);
-- error 42601: syntax error: near "COALESCE"
CREATE TABLE COLLATE (x INT);
-- error 42601: syntax error: near "COLLATE"
CREATE TABLE COLLECT (x INT);
-- error 42601: syntax error: near "COLLECT"
CREATE TABLE COLUMN (x INT);
-- error 42601: syntax error: near "COLUMN"
CREATE TABLE COMMIT (x INT);
-- error 42601: syntax error: near "COMMIT"
CREATE TABLE CONDITION (x INT);
-- error 42601: syntax error: near "CONDITION"
CREATE TABLE CONNECT (x INT);
-- error 42601: syntax error: near "CONNECT"
CREATE TABLE CONSTRAINT (x INT);
-- error 42601: syntax error: near "CONSTRAINT"
CREATE TABLE CONTAINS (x INT);
-- error 42601: syntax error: near "CONTAINS"
CREATE TABLE CONVERT (x INT);
-- error 42601: syntax error: near "CONVERT"
CREATE TABLE COPY (x INT);
-- error 42601: syntax error: near "COPY"
CREATE TABLE CORR (x INT);
-- error 42601: syntax error: near "CORR"
CREATE TABLE CORRESPONDING (x INT);
-- error 42601: syntax error: near "CORRESPONDING"
CREATE TABLE COS (x INT);
-- error 42601: syntax error: near "COS"
CREATE TABLE COSH (x INT);
-- error 42601: syntax error: near "COSH"
CREATE TABLE COUNT (x INT);
-- error 42601: syntax error: near "COUNT"
CREATE TABLE COVAR_POP (x INT);
-- error 42601: syntax error: near "COVAR_POP"
CREATE TABLE COVAR_SAMP (x INT);
-- error 42601: syntax error: near "COVAR_SAMP"
CREATE TABLE CREATE (x INT);
-- error 42601: syntax error: near "CREATE"
CREATE TABLE CROSS (x INT);
-- error 42601: syntax error: near "CROSS"
CREATE TABLE CUBE (x INT);
-- error 42601: syntax error: near "CUBE"
CREATE TABLE CUME_DIST (x INT);
-- error 42601: syntax error: near "CUME_DIST"
CREATE TABLE CURRENT (x INT);
-- error 42601: syntax error: near "CURRENT"
CREATE TABLE CURRENT_CATALOG (x INT);
-- error 42601: syntax error: near "CURRENT_CATALOG"
CREATE TABLE CURRENT_DATE (x INT);
-- error 42601: syntax error: near "CURRENT_DATE"
CREATE TABLE CURRENT_DEFAULT_TRANSFORM_GROUP (x INT);
-- error 42601: syntax error: near "CURRENT_DEFAULT_TRANSFORM_GROUP"
CREATE TABLE CURRENT_PATH (x INT);
-- error 42601: syntax error: near "CURRENT_PATH"
CREATE TABLE CURRENT_ROLE (x INT);
-- error 42601: syntax error: near "CURRENT_ROLE"
CREATE TABLE CURRENT_ROW (x INT);
-- error 42601: syntax error: near "CURRENT_ROW"
CREATE TABLE CURRENT_SCHEMA (x INT);
-- error 42601: syntax error: near "CURRENT_SCHEMA"
CREATE TABLE CURRENT_TIME (x INT);
-- error 42601: syntax error: near "CURRENT_TIME"
CREATE TABLE CURRENT_TIMESTAMP (x INT);
-- error 42601: syntax error: near "CURRENT_TIMESTAMP"
CREATE TABLE CURRENT_PATH (x INT);
-- error 42601: syntax error: near "CURRENT_PATH"
CREATE TABLE CURRENT_ROLE (x INT);
-- error 42601: syntax error: near "CURRENT_ROLE"
CREATE TABLE CURRENT_TRANSFORM_GROUP_FOR_TYPE (x INT);
-- error 42601: syntax error: near "CURRENT_TRANSFORM_GROUP_FOR_TYPE"
CREATE TABLE CURRENT_USER (x INT);
-- error 42601: syntax error: near "CURRENT_USER"
CREATE TABLE CURSOR (x INT);
-- error 42601: syntax error: near "CURSOR"
CREATE TABLE CYCLE (x INT);
-- error 42601: syntax error: near "CYCLE"
CREATE TABLE DATE (x INT);
-- error 42601: syntax error: near "DATE"
CREATE TABLE DAY (x INT);
-- error 42601: syntax error: near "DAY"
CREATE TABLE DEALLOCATE (x INT);
-- error 42601: syntax error: near "DEALLOCATE"
CREATE TABLE DEC (x INT);
-- error 42601: syntax error: near "DEC"
CREATE TABLE DECIMAL (x INT);
-- error 42601: syntax error: near "DECIMAL"
CREATE TABLE DECFLOAT (x INT);
-- error 42601: syntax error: near "DECFLOAT"
CREATE TABLE DECLARE (x INT);
-- error 42601: syntax error: near "DECLARE"
CREATE TABLE DEFAULT (x INT);
-- error 42601: syntax error: near "DEFAULT"
CREATE TABLE DEFINE (x INT);
-- error 42601: syntax error: near "DEFINE"
CREATE TABLE DELETE (x INT);
-- error 42601: syntax error: near "DELETE"
CREATE TABLE DENSE_RANK (x INT);
-- error 42601: syntax error: near "DENSE_RANK"
CREATE TABLE DEREF (x INT);
-- error 42601: syntax error: near "DEREF"
CREATE TABLE DESCRIBE (x INT);
-- error 42601: syntax error: near "DESCRIBE"
CREATE TABLE DETERMINISTIC (x INT);
-- error 42601: syntax error: near "DETERMINISTIC"
CREATE TABLE DISCONNECT (x INT);
-- error 42601: syntax error: near "DISCONNECT"
CREATE TABLE DISTINCT (x INT);
-- error 42601: syntax error: near "DISTINCT"
CREATE TABLE DOUBLE (x INT);
-- error 42601: syntax error: near "DOUBLE"
CREATE TABLE DROP (x INT);
-- error 42601: syntax error: near "DROP"
CREATE TABLE DYNAMIC (x INT);
-- error 42601: syntax error: near "DYNAMIC"
CREATE TABLE EACH (x INT);
-- error 42601: syntax error: near "EACH"
CREATE TABLE ELEMENT (x INT);
-- error 42601: syntax error: near "ELEMENT"
CREATE TABLE ELSE (x INT);
-- error 42601: syntax error: near "ELSE"
CREATE TABLE EMPTY (x INT);
-- error 42601: syntax error: near "EMPTY"
CREATE TABLE END (x INT);
-- error 42601: syntax error: near "END"
CREATE TABLE END_FRAME (x INT);
-- error 42601: syntax error: near "END_FRAME"
CREATE TABLE END_PARTITION (x INT);
-- error 42601: syntax error: near "END_PARTITION"
CREATE TABLE END-EXEC (x INT);
-- error 42601: syntax error: near "END"
CREATE TABLE EQUALS (x INT);
-- error 42601: syntax error: near "EQUALS"
CREATE TABLE ESCAPE (x INT);
-- error 42601: syntax error: near "ESCAPE"
CREATE TABLE EVERY (x INT);
-- error 42601: syntax error: near "EVERY"
CREATE TABLE EXCEPT (x INT);
-- error 42601: syntax error: near "EXCEPT"
CREATE TABLE EXEC (x INT);
-- error 42601: syntax error: near "EXEC"
CREATE TABLE EXECUTE (x INT);
-- error 42601: syntax error: near "EXECUTE"
CREATE TABLE EXISTS (x INT);
-- error 42601: syntax error: near "EXISTS"
CREATE TABLE EXP (x INT);
-- error 42601: syntax error: near "EXP"
CREATE TABLE EXTERNAL (x INT);
-- error 42601: syntax error: near "EXTERNAL"
CREATE TABLE EXTRACT (x INT);
-- error 42601: syntax error: near "EXTRACT"
CREATE TABLE FALSE (x INT);
-- error 42601: syntax error: near "FALSE"
CREATE TABLE FETCH (x INT);
-- error 42601: syntax error: near "FETCH"
CREATE TABLE FILTER (x INT);
-- error 42601: syntax error: near "FILTER"
CREATE TABLE FIRST_VALUE (x INT);
-- error 42601: syntax error: near "FIRST_VALUE"
CREATE TABLE FLOAT (x INT);
-- error 42601: syntax error: near "FLOAT"
CREATE TABLE FLOOR (x INT);
-- error 42601: syntax error: near "FLOOR"
CREATE TABLE FOR (x INT);
-- error 42601: syntax error: near "FOR"
CREATE TABLE FOREIGN (x INT);
-- error 42601: syntax error: near "FOREIGN"
CREATE TABLE FRAME_ROW (x INT);
-- error 42601: syntax error: near "FRAME_ROW"
CREATE TABLE FREE (x INT);
-- error 42601: syntax error: near "FREE"
CREATE TABLE FROM (x INT);
-- error 42601: syntax error: near "FROM"
CREATE TABLE FULL (x INT);
-- error 42601: syntax error: near "FULL"
CREATE TABLE FUNCTION (x INT);
-- error 42601: syntax error: near "FUNCTION"
CREATE TABLE FUSION (x INT);
-- error 42601: syntax error: near "FUSION"
CREATE TABLE GET (x INT);
-- error 42601: syntax error: near "GET"
CREATE TABLE GLOBAL (x INT);
-- error 42601: syntax error: near "GLOBAL"
CREATE TABLE GRANT (x INT);
-- error 42601: syntax error: near "GRANT"
CREATE TABLE GROUP (x INT);
-- error 42601: syntax error: near "GROUP"
CREATE TABLE GROUPING (x INT);
-- error 42601: syntax error: near "GROUPING"
CREATE TABLE GROUPS (x INT);
-- error 42601: syntax error: near "GROUPS"
CREATE TABLE HAVING (x INT);
-- error 42601: syntax error: near "HAVING"
CREATE TABLE HOLD (x INT);
-- error 42601: syntax error: near "HOLD"
CREATE TABLE HOUR (x INT);
-- error 42601: syntax error: near "HOUR"
CREATE TABLE IDENTITY (x INT);
-- error 42601: syntax error: near "IDENTITY"
CREATE TABLE IN (x INT);
-- error 42601: syntax error: near "IN"
CREATE TABLE INDICATOR (x INT);
-- error 42601: syntax error: near "INDICATOR"
CREATE TABLE INITIAL (x INT);
-- error 42601: syntax error: near "INITIAL"
CREATE TABLE INNER (x INT);
-- error 42601: syntax error: near "INNER"
CREATE TABLE INOUT (x INT);
-- error 42601: syntax error: near "INOUT"
CREATE TABLE INSENSITIVE (x INT);
-- error 42601: syntax error: near "INSENSITIVE"
CREATE TABLE INSERT (x INT);
-- error 42601: syntax error: near "INSERT"
CREATE TABLE INT (x INT);
-- error 42601: syntax error: near "INT"
CREATE TABLE INTEGER (x INT);
-- error 42601: syntax error: near "INTEGER"
CREATE TABLE INTERSECT (x INT);
-- error 42601: syntax error: near "INTERSECT"
CREATE TABLE INTERSECTION (x INT);
-- error 42601: syntax error: near "INTERSECTION"
CREATE TABLE INTERVAL (x INT);
-- error 42601: syntax error: near "INTERVAL"
CREATE TABLE INTO (x INT);
-- error 42601: syntax error: near "INTO"
CREATE TABLE IS (x INT);
-- error 42601: syntax error: near "IS"
CREATE TABLE JOIN (x INT);
-- error 42601: syntax error: near "JOIN"
CREATE TABLE JSON_ARRAY (x INT);
-- error 42601: syntax error: near "JSON_ARRAY"
CREATE TABLE JSON_ARRAYAGG (x INT);
-- error 42601: syntax error: near "JSON_ARRAYAGG"
CREATE TABLE JSON_EXISTS (x INT);
-- error 42601: syntax error: near "JSON_EXISTS"
CREATE TABLE JSON_OBJECT (x INT);
-- error 42601: syntax error: near "JSON_OBJECT"
CREATE TABLE JSON_OBJECTAGG (x INT);
-- error 42601: syntax error: near "JSON_OBJECTAGG"
CREATE TABLE JSON_QUERY (x INT);
-- error 42601: syntax error: near "JSON_QUERY"
CREATE TABLE JSON_TABLE (x INT);
-- error 42601: syntax error: near "JSON_TABLE"
CREATE TABLE JSON_TABLE_PRIMITIVE (x INT);
-- error 42601: syntax error: near "JSON_TABLE_PRIMITIVE"
CREATE TABLE JSON_VALUE (x INT);
-- error 42601: syntax error: near "JSON_VALUE"
CREATE TABLE LAG (x INT);
-- error 42601: syntax error: near "LAG"
CREATE TABLE LANGUAGE (x INT);
-- error 42601: syntax error: near "LANGUAGE"
CREATE TABLE LARGE (x INT);
-- error 42601: syntax error: near "LARGE"
CREATE TABLE LAST_VALUE (x INT);
-- error 42601: syntax error: near "LAST_VALUE"
CREATE TABLE LATERAL (x INT);
-- error 42601: syntax error: near "LATERAL"
CREATE TABLE LEAD (x INT);
-- error 42601: syntax error: near "LEAD"
CREATE TABLE LEADING (x INT);
-- error 42601: syntax error: near "LEADING"
CREATE TABLE LEFT (x INT);
-- error 42601: syntax error: near "LEFT"
CREATE TABLE LIKE (x INT);
-- error 42601: syntax error: near "LIKE"
CREATE TABLE LIKE_REGEX (x INT);
-- error 42601: syntax error: near "LIKE_REGEX"
CREATE TABLE LISTAGG (x INT);
-- error 42601: syntax error: near "LISTAGG"
CREATE TABLE LN (x INT);
-- error 42601: syntax error: near "LN"
CREATE TABLE LOCAL (x INT);
-- error 42601: syntax error: near "LOCAL"
CREATE TABLE LOCALTIME (x INT);
-- error 42601: syntax error: near "LOCALTIME"
CREATE TABLE LOCALTIMESTAMP (x INT);
-- error 42601: syntax error: near "LOCALTIMESTAMP"
CREATE TABLE LOG (x INT);
-- error 42601: syntax error: near "LOG"
CREATE TABLE LOG10 (x INT);
-- error 42601: syntax error: near "LOG10"
CREATE TABLE LOWER (x INT);
-- error 42601: syntax error: near "LOWER"
CREATE TABLE MATCH (x INT);
-- error 42601: syntax error: near "MATCH"
CREATE TABLE MATCH_NUMBER (x INT);
-- error 42601: syntax error: near "MATCH_NUMBER"
CREATE TABLE MATCH_RECOGNIZE (x INT);
-- error 42601: syntax error: near "MATCH_RECOGNIZE"
CREATE TABLE MATCHES (x INT);
-- error 42601: syntax error: near "MATCHES"
CREATE TABLE MAX (x INT);
-- error 42601: syntax error: near "MAX"
CREATE TABLE MEMBER (x INT);
-- error 42601: syntax error: near "MEMBER"
CREATE TABLE MERGE (x INT);
-- error 42601: syntax error: near "MERGE"
CREATE TABLE METHOD (x INT);
-- error 42601: syntax error: near "METHOD"
CREATE TABLE MIN (x INT);
-- error 42601: syntax error: near "MIN"
CREATE TABLE MINUTE (x INT);
-- error 42601: syntax error: near "MINUTE"
CREATE TABLE MOD (x INT);
-- error 42601: syntax error: near "MOD"
CREATE TABLE MODIFIES (x INT);
-- error 42601: syntax error: near "MODIFIES"
CREATE TABLE MODULE (x INT);
-- error 42601: syntax error: near "MODULE"
CREATE TABLE MONTH (x INT);
-- error 42601: syntax error: near "MONTH"
CREATE TABLE MULTISET (x INT);
-- error 42601: syntax error: near "MULTISET"
CREATE TABLE NATIONAL (x INT);
-- error 42601: syntax error: near "NATIONAL"
CREATE TABLE NATURAL (x INT);
-- error 42601: syntax error: near "NATURAL"
CREATE TABLE NCHAR (x INT);
-- error 42601: syntax error: near "NCHAR"
CREATE TABLE NCLOB (x INT);
-- error 42601: syntax error: near "NCLOB"
CREATE TABLE NEW (x INT);
-- error 42601: syntax error: near "NEW"
CREATE TABLE NO (x INT);
-- error 42601: syntax error: near "NO"
CREATE TABLE NONE (x INT);
-- error 42601: syntax error: near "NONE"
CREATE TABLE NORMALIZE (x INT);
-- error 42601: syntax error: near "NORMALIZE"
CREATE TABLE NOT (x INT);
-- error 42601: syntax error: near "NOT"
CREATE TABLE NTH_VALUE (x INT);
-- error 42601: syntax error: near "NTH_VALUE"
CREATE TABLE NTILE (x INT);
-- error 42601: syntax error: near "NTILE"
CREATE TABLE NULL (x INT);
-- error 42601: syntax error: near "NULL"
CREATE TABLE NULLIF (x INT);
-- error 42601: syntax error: near "NULLIF"
CREATE TABLE NUMERIC (x INT);
-- error 42601: syntax error: near "NUMERIC"
CREATE TABLE OCTET_LENGTH (x INT);
-- error 42601: syntax error: near "OCTET_LENGTH"
CREATE TABLE OCCURRENCES_REGEX (x INT);
-- error 42601: syntax error: near "OCCURRENCES_REGEX"
CREATE TABLE OF (x INT);
-- error 42601: syntax error: near "OF"
CREATE TABLE OFFSET (x INT);
-- error 42601: syntax error: near "OFFSET"
CREATE TABLE OLD (x INT);
-- error 42601: syntax error: near "OLD"
CREATE TABLE OMIT (x INT);
-- error 42601: syntax error: near "OMIT"
CREATE TABLE ON (x INT);
-- error 42601: syntax error: near "ON"
CREATE TABLE ONE (x INT);
-- error 42601: syntax error: near "ONE"
CREATE TABLE ONLY (x INT);
-- error 42601: syntax error: near "ONLY"
CREATE TABLE OPEN (x INT);
-- error 42601: syntax error: near "OPEN"
CREATE TABLE OR (x INT);
-- error 42601: syntax error: near "OR"
CREATE TABLE ORDER (x INT);
-- error 42601: syntax error: near "ORDER"
CREATE TABLE OUT (x INT);
-- error 42601: syntax error: near "OUT"
CREATE TABLE OUTER (x INT);
-- error 42601: syntax error: near "OUTER"
CREATE TABLE OVER (x INT);
-- error 42601: syntax error: near "OVER"
CREATE TABLE OVERLAPS (x INT);
-- error 42601: syntax error: near "OVERLAPS"
CREATE TABLE OVERLAY (x INT);
-- error 42601: syntax error: near "OVERLAY"
CREATE TABLE PARAMETER (x INT);
-- error 42601: syntax error: near "PARAMETER"
CREATE TABLE PARTITION (x INT);
-- error 42601: syntax error: near "PARTITION"
CREATE TABLE PATTERN (x INT);
-- error 42601: syntax error: near "PATTERN"
CREATE TABLE PER (x INT);
-- error 42601: syntax error: near "PER"
CREATE TABLE PERCENT (x INT);
-- error 42601: syntax error: near "PERCENT"
CREATE TABLE PERCENT_RANK (x INT);
-- error 42601: syntax error: near "PERCENT_RANK"
CREATE TABLE PERCENTILE_CONT (x INT);
-- error 42601: syntax error: near "PERCENTILE_CONT"
CREATE TABLE PERCENTILE_DISC (x INT);
-- error 42601: syntax error: near "PERCENTILE_DISC"
CREATE TABLE PERIOD (x INT);
-- error 42601: syntax error: near "PERIOD"
CREATE TABLE PORTION (x INT);
-- error 42601: syntax error: near "PORTION"
CREATE TABLE POSITION (x INT);
-- error 42601: syntax error: near "POSITION"
CREATE TABLE POSITION_REGEX (x INT);
-- error 42601: syntax error: near "POSITION_REGEX"
CREATE TABLE POWER (x INT);
-- error 42601: syntax error: near "POWER"
CREATE TABLE PRECEDES (x INT);
-- error 42601: syntax error: near "PRECEDES"
CREATE TABLE PRECISION (x INT);
-- error 42601: syntax error: near "PRECISION"
CREATE TABLE PREPARE (x INT);
-- error 42601: syntax error: near "PREPARE"
CREATE TABLE PRIMARY (x INT);
-- error 42601: syntax error: near "PRIMARY"
CREATE TABLE PROCEDURE (x INT);
-- error 42601: syntax error: near "PROCEDURE"
CREATE TABLE PTF (x INT);
-- error 42601: syntax error: near "PTF"
CREATE TABLE RANGE (x INT);
-- error 42601: syntax error: near "RANGE"
CREATE TABLE RANK (x INT);
-- error 42601: syntax error: near "RANK"
CREATE TABLE READS (x INT);
-- error 42601: syntax error: near "READS"
CREATE TABLE REAL (x INT);
-- error 42601: syntax error: near "REAL"
CREATE TABLE RECURSIVE (x INT);
-- error 42601: syntax error: near "RECURSIVE"
CREATE TABLE REF (x INT);
-- error 42601: syntax error: near "REF"
CREATE TABLE REFERENCES (x INT);
-- error 42601: syntax error: near "REFERENCES"
CREATE TABLE REFERENCING (x INT);
-- error 42601: syntax error: near "REFERENCING"
CREATE TABLE REGR_AVGX (x INT);
-- error 42601: syntax error: near "REGR_AVGX"
CREATE TABLE REGR_AVGY (x INT);
-- error 42601: syntax error: near "REGR_AVGY"
CREATE TABLE REGR_COUNT (x INT);
-- error 42601: syntax error: near "REGR_COUNT"
CREATE TABLE REGR_INTERCEPT (x INT);
-- error 42601: syntax error: near "REGR_INTERCEPT"
CREATE TABLE REGR_R2 (x INT);
-- error 42601: syntax error: near "REGR_R2"
CREATE TABLE REGR_SLOPE (x INT);
-- error 42601: syntax error: near "REGR_SLOPE"
CREATE TABLE REGR_SXX (x INT);
-- error 42601: syntax error: near "REGR_SXX"
CREATE TABLE REGR_SXY (x INT);
-- error 42601: syntax error: near "REGR_SXY"
CREATE TABLE REGR_SYY (x INT);
-- error 42601: syntax error: near "REGR_SYY"
CREATE TABLE RELEASE (x INT);
-- error 42601: syntax error: near "RELEASE"
CREATE TABLE RESULT (x INT);
-- error 42601: syntax error: near "RESULT"
CREATE TABLE RETURN (x INT);
-- error 42601: syntax error: near "RETURN"
CREATE TABLE RETURNS (x INT);
-- error 42601: syntax error: near "RETURNS"
CREATE TABLE REVOKE (x INT);
-- error 42601: syntax error: near "REVOKE"
CREATE TABLE RIGHT (x INT);
-- error 42601: syntax error: near "RIGHT"
CREATE TABLE ROLLBACK (x INT);
-- error 42601: syntax error: near "ROLLBACK"
CREATE TABLE ROLLUP (x INT);
-- error 42601: syntax error: near "ROLLUP"
CREATE TABLE ROW (x INT);
-- error 42601: syntax error: near "ROW"
CREATE TABLE ROW_NUMBER (x INT);
-- error 42601: syntax error: near "ROW_NUMBER"
CREATE TABLE ROWS (x INT);
-- error 42601: syntax error: near "ROWS"
CREATE TABLE RUNNING (x INT);
-- error 42601: syntax error: near "RUNNING"
CREATE TABLE SAVEPOINT (x INT);
-- error 42601: syntax error: near "SAVEPOINT"
CREATE TABLE SCOPE (x INT);
-- error 42601: syntax error: near "SCOPE"
CREATE TABLE SCROLL (x INT);
-- error 42601: syntax error: near "SCROLL"
CREATE TABLE SEARCH (x INT);
-- error 42601: syntax error: near "SEARCH"
CREATE TABLE SECOND (x INT);
-- error 42601: syntax error: near "SECOND"
CREATE TABLE SEEK (x INT);
-- error 42601: syntax error: near "SEEK"
CREATE TABLE SELECT (x INT);
-- error 42601: syntax error: near "SELECT"
CREATE TABLE SENSITIVE (x INT);
-- error 42601: syntax error: near "SENSITIVE"
CREATE TABLE SESSION_USER (x INT);
-- error 42601: syntax error: near "SESSION_USER"
CREATE TABLE SET (x INT);
-- error 42601: syntax error: near "SET"
CREATE TABLE SHOW (x INT);
-- error 42601: syntax error: near "SHOW"
CREATE TABLE SIMILAR (x INT);
-- error 42601: syntax error: near "SIMILAR"
CREATE TABLE SIN (x INT);
-- error 42601: syntax error: near "SIN"
CREATE TABLE SINH (x INT);
-- error 42601: syntax error: near "SINH"
CREATE TABLE SKIP (x INT);
-- error 42601: syntax error: near "SKIP"
CREATE TABLE SMALLINT (x INT);
-- error 42601: syntax error: near "SMALLINT"
CREATE TABLE SOME (x INT);
-- error 42601: syntax error: near "SOME"
CREATE TABLE SPECIFIC (x INT);
-- error 42601: syntax error: near "SPECIFIC"
CREATE TABLE SPECIFICTYPE (x INT);
-- error 42601: syntax error: near "SPECIFICTYPE"
CREATE TABLE SQL (x INT);
-- error 42601: syntax error: near "SQL"
CREATE TABLE SQLEXCEPTION (x INT);
-- error 42601: syntax error: near "SQLEXCEPTION"
CREATE TABLE SQLSTATE (x INT);
-- error 42601: syntax error: near "SQLSTATE"
CREATE TABLE SQLWARNING (x INT);
-- error 42601: syntax error: near "SQLWARNING"
CREATE TABLE SQRT (x INT);
-- error 42601: syntax error: near "SQRT"
CREATE TABLE START (x INT);
-- error 42601: syntax error: near "START"
CREATE TABLE STATIC (x INT);
-- error 42601: syntax error: near "STATIC"
CREATE TABLE STDDEV_POP (x INT);
-- error 42601: syntax error: near "STDDEV_POP"
CREATE TABLE STDDEV_SAMP (x INT);
-- error 42601: syntax error: near "STDDEV_SAMP"
CREATE TABLE SUBMULTISET (x INT);
-- error 42601: syntax error: near "SUBMULTISET"
CREATE TABLE SUBSET (x INT);
-- error 42601: syntax error: near "SUBSET"
CREATE TABLE SUBSTRING (x INT);
-- error 42601: syntax error: near "SUBSTRING"
CREATE TABLE SUBSTRING_REGEX (x INT);
-- error 42601: syntax error: near "SUBSTRING_REGEX"
CREATE TABLE SUCCEEDS (x INT);
-- error 42601: syntax error: near "SUCCEEDS"
CREATE TABLE SUM (x INT);
-- error 42601: syntax error: near "SUM"
CREATE TABLE SYMMETRIC (x INT);
-- error 42601: syntax error: near "SYMMETRIC"
CREATE TABLE SYSTEM (x INT);
-- error 42601: syntax error: near "SYSTEM"
CREATE TABLE SYSTEM_TIME (x INT);
-- error 42601: syntax error: near "SYSTEM_TIME"
CREATE TABLE SYSTEM_USER (x INT);
-- error 42601: syntax error: near "SYSTEM_USER"
CREATE TABLE TABLE (x INT);
-- error 42601: syntax error: near "TABLE"
CREATE TABLE TABLESAMPLE (x INT);
-- error 42601: syntax error: near "TABLESAMPLE"
CREATE TABLE TAN (x INT);
-- error 42601: syntax error: near "TAN"
CREATE TABLE TANH (x INT);
-- error 42601: syntax error: near "TANH"
CREATE TABLE THEN (x INT);
-- error 42601: syntax error: near "THEN"
CREATE TABLE TIME (x INT);
-- error 42601: syntax error: near "TIME"
CREATE TABLE TIMESTAMP (x INT);
-- error 42601: syntax error: near "TIMESTAMP"
CREATE TABLE TIMEZONE_HOUR (x INT);
-- error 42601: syntax error: near "TIMEZONE_HOUR"
CREATE TABLE TIMEZONE_MINUTE (x INT);
-- error 42601: syntax error: near "TIMEZONE_MINUTE"
CREATE TABLE TO (x INT);
-- error 42601: syntax error: near "TO"
CREATE TABLE TRAILING (x INT);
-- error 42601: syntax error: near "TRAILING"
CREATE TABLE TRANSLATE (x INT);
-- error 42601: syntax error: near "TRANSLATE"
CREATE TABLE TRANSLATE_REGEX (x INT);
-- error 42601: syntax error: near "TRANSLATE_REGEX"
CREATE TABLE TRANSLATION (x INT);
-- error 42601: syntax error: near "TRANSLATION"
CREATE TABLE TREAT (x INT);
-- error 42601: syntax error: near "TREAT"
CREATE TABLE TRIGGER (x INT);
-- error 42601: syntax error: near "TRIGGER"
CREATE TABLE TRIM (x INT);
-- error 42601: syntax error: near "TRIM"
CREATE TABLE TRIM_ARRAY (x INT);
-- error 42601: syntax error: near "TRIM_ARRAY"
CREATE TABLE TRUE (x INT);
-- error 42601: syntax error: near "TRUE"
CREATE TABLE TRUNCATE (x INT);
-- error 42601: syntax error: near "TRUNCATE"
CREATE TABLE UESCAPE (x INT);
-- error 42601: syntax error: near "UESCAPE"
CREATE TABLE UNION (x INT);
-- error 42601: syntax error: near "UNION"
CREATE TABLE UNIQUE (x INT);
-- error 42601: syntax error: near "UNIQUE"
CREATE TABLE UNKNOWN (x INT);
-- error 42601: syntax error: near "UNKNOWN"
CREATE TABLE UNNEST (x INT);
-- error 42601: syntax error: near "UNNEST"
CREATE TABLE UPDATE (x INT);
-- error 42601: syntax error: near "UPDATE"
CREATE TABLE UPPER (x INT);
-- error 42601: syntax error: near "UPPER"
CREATE TABLE USER (x INT);
-- error 42601: syntax error: near "USER"
CREATE TABLE USING (x INT);
-- error 42601: syntax error: near "USING"
CREATE TABLE VALUE (x INT);
-- error 42601: syntax error: near "VALUE"
CREATE TABLE VALUES (x INT);
-- error 42601: syntax error: near "VALUES"
CREATE TABLE VALUE_OF (x INT);
-- error 42601: syntax error: near "VALUE_OF"
CREATE TABLE VAR_POP (x INT);
-- error 42601: syntax error: near "VAR_POP"
CREATE TABLE VAR_SAMP (x INT);
-- error 42601: syntax error: near "VAR_SAMP"
CREATE TABLE VARBINARY (x INT);
-- error 42601: syntax error: near "VARBINARY"
CREATE TABLE VARCHAR (x INT);
-- error 42601: syntax error: near "VARCHAR"
CREATE TABLE VARYING (x INT);
-- error 42601: syntax error: near "VARYING"
CREATE TABLE VERSIONING (x INT);
-- error 42601: syntax error: near "VERSIONING"
CREATE TABLE WHEN (x INT);
-- error 42601: syntax error: near "WHEN"
CREATE TABLE WHENEVER (x INT);
-- error 42601: syntax error: near "WHENEVER"
CREATE TABLE WHERE (x INT);
-- error 42601: syntax error: near "WHERE"
CREATE TABLE WIDTH_BUCKET (x INT);
-- error 42601: syntax error: near "WIDTH_BUCKET"
CREATE TABLE WINDOW (x INT);
-- error 42601: syntax error: near "WINDOW"
CREATE TABLE WITH (x INT);
-- error 42601: syntax error: near "WITH"
CREATE TABLE WITHIN (x INT);
-- error 42601: syntax error: near "WITHIN"
CREATE TABLE WITHOUT (x INT);
-- error 42601: syntax error: near "WITHOUT"
CREATE TABLE YEAR (x INT);
-- error 42601: syntax error: near "YEAR"
CREATE TABLE abs (x INT);
-- error 42601: syntax error: near "ABS"
CREATE TABLE foo (ABS INT);
-- error 42601: syntax error: near "ABS"
CREATE TABLE foo (abs int);
-- error 42601: syntax error: near "ABS" | the_stack |
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Window SET Name='Trend Verfügbarkeit',Updated=TO_TIMESTAMP('2016-03-16 11:18:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540289
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=540289
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Menu SET Description=NULL, IsActive='Y', Name='Trend Verfügbarkeit',Updated=TO_TIMESTAMP('2016-03-16 11:18:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=540695
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=540695
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Tab SET Name='Woche',Updated=TO_TIMESTAMP('2016-03-16 11:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540732
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=540732
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Element SET Name='Wochendatum', PrintName='Wochendatum',Updated=TO_TIMESTAMP('2016-03-16 11:18:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543041
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=543041
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='WeekDate', Name='Wochendatum', Description=NULL, Help=NULL WHERE AD_Element_ID=543041
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='WeekDate', Name='Wochendatum', Description=NULL, Help=NULL, AD_Element_ID=543041 WHERE UPPER(ColumnName)='WEEKDATE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='WeekDate', Name='Wochendatum', Description=NULL, Help=NULL WHERE AD_Element_ID=543041 AND IsCentrallyMaintained='Y'
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_Field SET Name='Wochendatum', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543041) AND IsCentrallyMaintained='Y'
;
-- 16.03.2016 11:18
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Wochendatum', Name='Wochendatum' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543041)
;
-- 16.03.2016 11:19
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_Value_ID=540272,Updated=TO_TIMESTAMP('2016-03-16 11:19:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=554251
;
-- 16.03.2016 11:21
-- URL zum Konzept
UPDATE AD_Menu SET Name='Beschaffung',Updated=TO_TIMESTAMP('2016-03-16 11:21:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=540688
;
-- 16.03.2016 11:21
-- URL zum Konzept
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=540688
;
---
-- 16.03.2016 11:22
-- URL zum Konzept
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy)
SELECT 1000000,540697,0,TO_TIMESTAMP('2016-03-16 11:22:17','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.procurement','Admin','Y','N','N','Y','Admin',TO_TIMESTAMP('2016-03-16 11:22:17','YYYY-MM-DD HH24:MI:SS'),100
WHERE NOT EXISTS (select 1 from AD_MEnu where AD_Menu_ID=1000000);
;
-- 16.03.2016 11:22
-- URL zum Konzept
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_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_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=540697 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 16.03.2016 11:22
-- URL zum Konzept
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, 540697, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=1000000 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=540697)
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=53135, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=53149 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=53135, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=53139 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=53135, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=53136 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=53135, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540697 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=218 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540478 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=153 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=263 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=166 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=203 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540697 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540627 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540281 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=53242 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=236 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=183 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=160 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=278 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=345 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=53014 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=540016 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=540613 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=53083 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=53108 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=518 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=519 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000004 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000001 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000000 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000002 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=540029 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540028 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540030 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540031 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=30, Updated=now(), UpdatedBy=100 WHERE Node_ID=540027 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=31, Updated=now(), UpdatedBy=100 WHERE Node_ID=540034 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=32, Updated=now(), UpdatedBy=100 WHERE Node_ID=540024 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=33, Updated=now(), UpdatedBy=100 WHERE Node_ID=540004 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=34, Updated=now(), UpdatedBy=100 WHERE Node_ID=540015 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=35, Updated=now(), UpdatedBy=100 WHERE Node_ID=540066 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=36, Updated=now(), UpdatedBy=100 WHERE Node_ID=540043 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=37, Updated=now(), UpdatedBy=100 WHERE Node_ID=540048 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=38, Updated=now(), UpdatedBy=100 WHERE Node_ID=540080 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=39, Updated=now(), UpdatedBy=100 WHERE Node_ID=540052 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=40, Updated=now(), UpdatedBy=100 WHERE Node_ID=540058 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=41, Updated=now(), UpdatedBy=100 WHERE Node_ID=540059 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=42, Updated=now(), UpdatedBy=100 WHERE Node_ID=540077 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=43, Updated=now(), UpdatedBy=100 WHERE Node_ID=540060 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=44, Updated=now(), UpdatedBy=100 WHERE Node_ID=540076 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=45, Updated=now(), UpdatedBy=100 WHERE Node_ID=540075 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=46, Updated=now(), UpdatedBy=100 WHERE Node_ID=540074 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=47, Updated=now(), UpdatedBy=100 WHERE Node_ID=540073 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=48, Updated=now(), UpdatedBy=100 WHERE Node_ID=540062 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=49, Updated=now(), UpdatedBy=100 WHERE Node_ID=540070 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=50, Updated=now(), UpdatedBy=100 WHERE Node_ID=540069 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=51, Updated=now(), UpdatedBy=100 WHERE Node_ID=540068 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=52, Updated=now(), UpdatedBy=100 WHERE Node_ID=540064 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=53, Updated=now(), UpdatedBy=100 WHERE Node_ID=540065 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=54, Updated=now(), UpdatedBy=100 WHERE Node_ID=540071 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=55, Updated=now(), UpdatedBy=100 WHERE Node_ID=540067 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=56, Updated=now(), UpdatedBy=100 WHERE Node_ID=540083 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=57, Updated=now(), UpdatedBy=100 WHERE Node_ID=540136 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=58, Updated=now(), UpdatedBy=100 WHERE Node_ID=540106 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=59, Updated=now(), UpdatedBy=100 WHERE Node_ID=540090 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=60, Updated=now(), UpdatedBy=100 WHERE Node_ID=540109 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=61, Updated=now(), UpdatedBy=100 WHERE Node_ID=540119 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=62, Updated=now(), UpdatedBy=100 WHERE Node_ID=540120 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=63, Updated=now(), UpdatedBy=100 WHERE Node_ID=540103 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=64, Updated=now(), UpdatedBy=100 WHERE Node_ID=540098 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=65, Updated=now(), UpdatedBy=100 WHERE Node_ID=540105 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=66, Updated=now(), UpdatedBy=100 WHERE Node_ID=540092 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=67, Updated=now(), UpdatedBy=100 WHERE Node_ID=540139 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=68, Updated=now(), UpdatedBy=100 WHERE Node_ID=540187 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=69, Updated=now(), UpdatedBy=100 WHERE Node_ID=540184 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=70, Updated=now(), UpdatedBy=100 WHERE Node_ID=540147 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=71, Updated=now(), UpdatedBy=100 WHERE Node_ID=540163 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=72, Updated=now(), UpdatedBy=100 WHERE Node_ID=540185 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=73, Updated=now(), UpdatedBy=100 WHERE Node_ID=53294 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=74, Updated=now(), UpdatedBy=100 WHERE Node_ID=540167 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=75, Updated=now(), UpdatedBy=100 WHERE Node_ID=540234 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=76, Updated=now(), UpdatedBy=100 WHERE Node_ID=540148 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=77, Updated=now(), UpdatedBy=100 WHERE Node_ID=540228 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=78, Updated=now(), UpdatedBy=100 WHERE Node_ID=540237 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=79, Updated=now(), UpdatedBy=100 WHERE Node_ID=540225 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=80, Updated=now(), UpdatedBy=100 WHERE Node_ID=540244 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=81, Updated=now(), UpdatedBy=100 WHERE Node_ID=540269 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=82, Updated=now(), UpdatedBy=100 WHERE Node_ID=540260 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=83, Updated=now(), UpdatedBy=100 WHERE Node_ID=540246 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=84, Updated=now(), UpdatedBy=100 WHERE Node_ID=540261 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=85, Updated=now(), UpdatedBy=100 WHERE Node_ID=540243 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=86, Updated=now(), UpdatedBy=100 WHERE Node_ID=540404 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=87, Updated=now(), UpdatedBy=100 WHERE Node_ID=540270 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=88, Updated=now(), UpdatedBy=100 WHERE Node_ID=540252 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=89, Updated=now(), UpdatedBy=100 WHERE Node_ID=540400 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=90, Updated=now(), UpdatedBy=100 WHERE Node_ID=540253 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=91, Updated=now(), UpdatedBy=100 WHERE Node_ID=540264 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=92, Updated=now(), UpdatedBy=100 WHERE Node_ID=540443 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=93, Updated=now(), UpdatedBy=100 WHERE Node_ID=540265 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=94, Updated=now(), UpdatedBy=100 WHERE Node_ID=540238 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=95, Updated=now(), UpdatedBy=100 WHERE Node_ID=540512 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=96, Updated=now(), UpdatedBy=100 WHERE Node_ID=540517 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=97, Updated=now(), UpdatedBy=100 WHERE Node_ID=540544 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=98, Updated=now(), UpdatedBy=100 WHERE Node_ID=540529 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=99, Updated=now(), UpdatedBy=100 WHERE Node_ID=540518 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=100, Updated=now(), UpdatedBy=100 WHERE Node_ID=540440 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=101, Updated=now(), UpdatedBy=100 WHERE Node_ID=540559 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=102, Updated=now(), UpdatedBy=100 WHERE Node_ID=540608 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=103, Updated=now(), UpdatedBy=100 WHERE Node_ID=540587 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=104, Updated=now(), UpdatedBy=100 WHERE Node_ID=540570 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=105, Updated=now(), UpdatedBy=100 WHERE Node_ID=540576 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=106, Updated=now(), UpdatedBy=100 WHERE Node_ID=540631 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=107, Updated=now(), UpdatedBy=100 WHERE Node_ID=540641 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=108, Updated=now(), UpdatedBy=100 WHERE Node_ID=540656 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540694 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540689 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540690 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540695 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540697 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540696 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540694 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540689 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=540690 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540695 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540696 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540688, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540697 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540697, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540690 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540697, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540696 AND AD_Tree_ID=10
;
-- 16.03.2016 11:22
-- URL zum Konzept
UPDATE AD_TreeNodeMM SET Parent_ID=540697, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=540690 AND AD_Tree_ID=10
;
-- 16.03.2016 11:23
-- URL zum Konzept
UPDATE AD_Window SET Name='Verfügbarkeitstrenddatensatz',Updated=TO_TIMESTAMP('2016-03-16 11:23:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540290
;
-- 16.03.2016 11:23
-- URL zum Konzept
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=540290
;
-- 16.03.2016 11:23
-- URL zum Konzept
UPDATE AD_Menu SET Description=NULL, IsActive='Y', Name='Verfügbarkeitstrenddatensatz',Updated=TO_TIMESTAMP('2016-03-16 11:23:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=540696
;
-- 16.03.2016 11:23
-- URL zum Konzept
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=540696
; | the_stack |
-- Change History:
-- 2021-03-03 MJV FIX: Fixed population of tables with rows section. "buffer" variable was not initialized correctly. Used new variable, tblname, to fix it.
-- 2021-03-03 MJV FIX: Fixed Issue#34 where user-defined types in declare section of functions caused runtime errors.
-- Function: clone_schema(text, text, boolean, boolean)
-- DROP FUNCTION clone_schema(text, text, boolean, boolean);
CREATE OR REPLACE FUNCTION public.clone_schema(
source_schema text,
dest_schema text,
include_recs boolean,
ddl_only boolean)
RETURNS void AS
$BODY$
-- This function will clone all sequences, tables, data, views & functions from any existing schema to a new one
-- SAMPLE CALL:
-- SELECT clone_schema('public', 'new_schema', True, False);
DECLARE
src_oid oid;
tbl_oid oid;
func_oid oid;
object text;
buffer text;
buffer2 text;
buffer3 text;
srctbl text;
default_ text;
column_ text;
qry text;
ix_old_name text;
ix_new_name text;
aname text;
relpersist text;
relispart text;
relknd text;
adef text;
dest_qry text;
v_def text;
part_range text;
src_path_old text;
aclstr text;
grantor text;
grantee text;
privs text;
seqval bigint;
sq_last_value bigint;
sq_max_value bigint;
sq_start_value bigint;
sq_increment_by bigint;
sq_min_value bigint;
sq_cache_value bigint;
sq_is_called boolean;
sq_is_cycled boolean;
sq_data_type text;
sq_cycled char(10);
arec RECORD;
cnt integer;
cnt2 integer;
pos integer;
action text := 'N/A';
tblname text;
v_ret text;
v_diag1 text;
v_diag2 text;
v_diag3 text;
v_diag4 text;
v_diag5 text;
v_diag6 text;
BEGIN
-- Make sure NOTICE are shown
set client_min_messages = 'notice';
-- Check that source_schema exists
SELECT oid INTO src_oid
FROM pg_namespace
WHERE nspname = quote_ident(source_schema);
IF NOT FOUND
THEN
RAISE NOTICE 'source schema % does not exist!', source_schema;
RETURN ;
END IF;
-- Check that dest_schema does not yet exist
PERFORM nspname
FROM pg_namespace
WHERE nspname = quote_ident(dest_schema);
IF FOUND
THEN
RAISE NOTICE 'dest schema % already exists!', dest_schema;
RETURN ;
END IF;
IF ddl_only and include_recs THEN
RAISE WARNING 'You cannot specify to clone data and generate ddl at the same time.';
RETURN ;
END IF;
-- Set the search_path to source schema. Before exiting set it back to what it was before.
SELECT setting INTO src_path_old FROM pg_settings WHERE name='search_path';
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
-- RAISE NOTICE 'Using source search_path=%', buffer;
-- Validate required types exist. If not, create them.
select a.objtypecnt, b.permtypecnt INTO cnt, cnt2 FROM
(SELECT count(*) as objtypecnt FROM pg_catalog.pg_type t LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
WHERE (t.typrelid = 0 OR (SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = t.typrelid))
AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type el WHERE el.oid = t.typelem AND el.typarray = t.oid)
AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema' AND pg_catalog.pg_type_is_visible(t.oid) AND pg_catalog.format_type(t.oid, NULL) = 'obj_type') a,
(SELECT count(*) as permtypecnt FROM pg_catalog.pg_type t LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
WHERE (t.typrelid = 0 OR (SELECT c.relkind = 'c' FROM pg_catalog.pg_class c WHERE c.oid = t.typrelid))
AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type el WHERE el.oid = t.typelem AND el.typarray = t.oid)
AND n.nspname <> 'pg_catalog' AND n.nspname <> 'information_schema' AND pg_catalog.pg_type_is_visible(t.oid) AND pg_catalog.format_type(t.oid, NULL) = 'perm_type') b;
IF cnt = 0 THEN
CREATE TYPE obj_type AS ENUM ('TABLE','VIEW','COLUMN','SEQUENCE','FUNCTION','SCHEMA','DATABASE');
END IF;
IF cnt2 = 0 THEN
CREATE TYPE perm_type AS ENUM ('SELECT','INSERT','UPDATE','DELETE','TRUNCATE','REFERENCES','TRIGGER','USAGE','CREATE','EXECUTE','CONNECT','TEMPORARY');
END IF;
IF ddl_only THEN
RAISE NOTICE 'Only generating DDL, not actually creating anything...';
END IF;
IF ddl_only THEN
RAISE NOTICE '%', 'CREATE SCHEMA ' || quote_ident(dest_schema);
ELSE
EXECUTE 'CREATE SCHEMA ' || quote_ident(dest_schema) ;
END IF;
-- MV: Create Collations
action := 'Collations';
cnt := 0;
FOR arec IN
SELECT n.nspname as schemaname, a.rolname as ownername , c.collname, c.collprovider, c.collcollate as locale,
'CREATE COLLATION ' || quote_ident(dest_schema) || '."' || c.collname || '" (provider = ' || CASE WHEN c.collprovider = 'i' THEN 'icu' WHEN c.collprovider = 'c' THEN 'libc' ELSE '' END || ', locale = ''' || c.collcollate || ''');' as COLL_DDL
FROM pg_collation c JOIN pg_namespace n ON (c.collnamespace = n.oid) JOIN pg_roles a ON (c.collowner = a.oid) WHERE n.nspname = quote_ident(source_schema) order by c.collname
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.coll_ddl;
ELSE
EXECUTE arec.coll_ddl;
END IF;
END;
END LOOP;
RAISE NOTICE ' COLLATIONS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: Create Domains
action := 'Domains';
cnt := 0;
FOR arec IN
SELECT n.nspname as "Schema", t.typname as "Name", pg_catalog.format_type(t.typbasetype, t.typtypmod) as "Type",
(SELECT c.collname FROM pg_catalog.pg_collation c, pg_catalog.pg_type bt WHERE c.oid = t.typcollation AND
bt.oid = t.typbasetype AND t.typcollation <> bt.typcollation) as "Collation",
CASE WHEN t.typnotnull THEN 'not null' END as "Nullable", t.typdefault as "Default",
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.pg_get_constraintdef(r.oid, true) FROM pg_catalog.pg_constraint r WHERE t.oid = r.contypid), ' ') as "Check",
'CREATE DOMAIN ' || quote_ident(dest_schema) || '.' || t.typname || ' AS ' || pg_catalog.format_type(t.typbasetype, t.typtypmod) ||
CASE WHEN t.typnotnull IS NOT NULL THEN ' NOT NULL ' ELSE ' ' END || CASE WHEN t.typdefault IS NOT NULL THEN 'DEFAULT ' || t.typdefault || ' ' ELSE ' ' END ||
pg_catalog.array_to_string(ARRAY(SELECT pg_catalog.pg_get_constraintdef(r.oid, true) FROM pg_catalog.pg_constraint r WHERE t.oid = r.contypid), ' ') || ';' AS DOM_DDL
FROM pg_catalog.pg_type t LEFT JOIN pg_catalog.pg_namespace n ON n.oid = t.typnamespace
WHERE t.typtype = 'd' AND n.nspname = quote_ident(source_schema) AND pg_catalog.pg_type_is_visible(t.oid) ORDER BY 1, 2
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.dom_ddl;
ELSE
EXECUTE arec.dom_ddl;
END IF;
END;
END LOOP;
RAISE NOTICE ' DOMAINS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: Create types
action := 'Types';
cnt := 0;
FOR arec IN
SELECT c.relkind, n.nspname AS schemaname, t.typname AS typname, t.typcategory, CASE WHEN t.typcategory='C' THEN
'CREATE TYPE ' || quote_ident(dest_schema) || '.' || t.typname || ' AS (' || array_to_string(array_agg(a.attname || ' ' || pg_catalog.format_type(a.atttypid, a.atttypmod) ORDER BY c.relname, a.attnum),', ') || ');'
WHEN t.typcategory='E' THEN
'CREATE TYPE ' || quote_ident(dest_schema) || '.' || t.typname || ' AS ENUM (' || REPLACE(quote_literal(array_to_string(array_agg(e.enumlabel ORDER BY e.enumsortorder),',')), ',', ''',''') || ');'
ELSE '' END AS type_ddl FROM pg_type t JOIN pg_namespace n ON (n.oid = t.typnamespace)
LEFT JOIN pg_enum e ON (t.oid = e.enumtypid)
LEFT JOIN pg_class c ON (c.reltype = t.oid) LEFT JOIN pg_attribute a ON (a.attrelid = c.oid)
WHERE n.nspname = quote_ident(source_schema) and (c.relkind IS NULL or c.relkind = 'c') and t.typcategory in ('C', 'E') group by 1,2,3,4 order by n.nspname, t.typcategory, t.typname
LOOP
BEGIN
cnt := cnt + 1;
-- Keep composite and enum types in separate branches for fine tuning later if needed.
IF arec.typcategory = 'E' THEN
-- RAISE NOTICE '%', arec.type_ddl;
IF ddl_only THEN
RAISE INFO '%', arec.type_ddl;
ELSE
EXECUTE arec.type_ddl;
END IF;
ELSEIF arec.typcategory = 'C' THEN
-- RAISE NOTICE '%', arec.type_ddl;
IF ddl_only THEN
RAISE INFO '%', arec.type_ddl;
ELSE
EXECUTE arec.type_ddl;
END IF;
ELSE
RAISE NOTICE 'Unhandled type:%-%', arec.typcategory, arec.typname;
END IF;
END;
END LOOP;
RAISE NOTICE ' TYPES cloned: %', LPAD(cnt::text, 5, ' ');
-- Create sequences
action := 'Sequences';
cnt := 0;
-- TODO: Find a way to make this sequence's owner is the correct table.
FOR object IN
SELECT sequence_name::text
FROM information_schema.sequences
WHERE sequence_schema = quote_ident(source_schema)
LOOP
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', 'CREATE SEQUENCE ' || quote_ident(dest_schema) || '.' || quote_ident(object) || ';';
ELSE
EXECUTE 'CREATE SEQUENCE ' || quote_ident(dest_schema) || '.' || quote_ident(object);
END IF;
srctbl := quote_ident(source_schema) || '.' || quote_ident(object);
EXECUTE 'SELECT last_value, is_called
FROM ' || quote_ident(source_schema) || '.' || quote_ident(object) || ';'
INTO sq_last_value, sq_is_called;
EXECUTE 'SELECT max_value, start_value, increment_by, min_value, cache_size, cycle, data_type
FROM pg_catalog.pg_sequences WHERE schemaname='|| quote_literal(source_schema) || ' AND sequencename=' || quote_literal(object) || ';'
INTO sq_max_value, sq_start_value, sq_increment_by, sq_min_value, sq_cache_value, sq_is_cycled, sq_data_type ;
IF sq_is_cycled
THEN
sq_cycled := 'CYCLE';
ELSE
sq_cycled := 'NO CYCLE';
END IF;
qry := 'ALTER SEQUENCE ' || quote_ident(dest_schema) || '.' || quote_ident(object)
|| ' AS ' || sq_data_type
|| ' INCREMENT BY ' || sq_increment_by
|| ' MINVALUE ' || sq_min_value
|| ' MAXVALUE ' || sq_max_value
|| ' START WITH ' || sq_start_value
|| ' RESTART ' || sq_min_value
|| ' CACHE ' || sq_cache_value
|| ' ' || sq_cycled || ' ;' ;
IF ddl_only THEN
RAISE INFO '%', qry;
ELSE
EXECUTE qry;
END IF;
buffer := quote_ident(dest_schema) || '.' || quote_ident(object);
IF include_recs THEN
EXECUTE 'SELECT setval( ''' || buffer || ''', ' || sq_last_value || ', ' || sq_is_called || ');' ;
ELSE
if ddl_only THEN
RAISE INFO '%', 'SELECT setval( ''' || buffer || ''', ' || sq_start_value || ', ' || sq_is_called || ');' ;
ELSE
EXECUTE 'SELECT setval( ''' || buffer || ''', ' || sq_start_value || ', ' || sq_is_called || ');' ;
END IF;
END IF;
END LOOP;
RAISE NOTICE ' SEQUENCES cloned: %', LPAD(cnt::text, 5, ' ');
-- Create tables including partitioned ones (parent/children) and unlogged ones. Order by is critical since child partition range logic is dependent on it.
action := 'Tables';
cnt := 0;
FOR tblname, relpersist, relispart, relknd IN
select c.relname, c.relpersistence, c.relispartition, c.relkind
FROM pg_class c join pg_namespace n on (n.oid = c.relnamespace)
WHERE n.nspname = quote_ident(source_schema) and c.relkind in ('r','p') order by c.relkind desc, c.relname
LOOP
cnt := cnt + 1;
buffer := quote_ident(dest_schema) || '.' || quote_ident(tblname);
buffer2 := '';
IF relpersist = 'u' THEN
buffer2 := 'UNLOGGED ';
END IF;
IF relknd = 'r' THEN
IF ddl_only THEN
RAISE INFO '%', 'CREATE ' || buffer2 || 'TABLE ' || buffer || ' (LIKE ' || quote_ident(source_schema) || '.' || quote_ident(tblname) || ' INCLUDING ALL)';
ELSE
EXECUTE 'CREATE ' || buffer2 || 'TABLE ' || buffer || ' (LIKE ' || quote_ident(source_schema) || '.' || quote_ident(tblname) || ' INCLUDING ALL)';
END IF;
ELSIF relknd = 'p' THEN
-- define parent table and assume child tables have already been created based on top level sort order.
SELECT 'CREATE TABLE ' || quote_ident(dest_schema) || '.' || pc.relname || E'(\n' || string_agg(pa.attname || ' ' || pg_catalog.format_type(pa.atttypid, pa.atttypmod) ||
coalesce(' DEFAULT ' || (SELECT pg_catalog.pg_get_expr(d.adbin, d.adrelid) FROM pg_catalog.pg_attrdef d
WHERE d.adrelid = pa.attrelid AND d.adnum = pa.attnum AND pa.atthasdef), '') || ' ' || CASE pa.attnotnull WHEN TRUE THEN 'NOT NULL' ELSE 'NULL' END, E',\n') ||
coalesce((SELECT E',\n' || string_agg('CONSTRAINT ' || pc1.conname || ' ' || pg_get_constraintdef(pc1.oid), E',\n' ORDER BY pc1.conindid)
FROM pg_constraint pc1 WHERE pc1.conrelid = pa.attrelid), '') into buffer FROM pg_catalog.pg_attribute pa JOIN pg_catalog.pg_class pc ON pc.oid = pa.attrelid AND
pc.relname = quote_ident(tblname) JOIN pg_catalog.pg_namespace pn ON pn.oid = pc.relnamespace AND pn.nspname = quote_ident(source_schema)
WHERE pa.attnum > 0 AND NOT pa.attisdropped GROUP BY pn.nspname, pc.relname, pa.attrelid;
-- append partition keyword to it
SELECT pg_catalog.pg_get_partkeydef(c.oid::pg_catalog.oid) into buffer2 FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relname = quote_ident(tblname) COLLATE pg_catalog.default AND n.nspname = quote_ident(source_schema) COLLATE pg_catalog.default;
-- RAISE NOTICE ' buffer = % buffer2 = %',buffer, buffer2;
qry := buffer || ') PARTITION BY ' || buffer2 || ';';
IF ddl_only THEN
RAISE INFO '%', qry;
ELSE
EXECUTE qry;
END IF;
-- loop for child tables and alter them to attach to parent for specific partition method.
FOR aname, part_range, object IN
SELECT quote_ident(dest_schema) || '.' || c1.relname as tablename, pg_catalog.pg_get_expr(c1.relpartbound, c1.oid) as partrange, quote_ident(dest_schema) || '.' || c2.relname as object
FROM pg_catalog.pg_class c1, pg_namespace n, pg_catalog.pg_inherits i, pg_class c2 WHERE n.nspname = 'sample' AND c1.relnamespace = n.oid AND c1.relkind = 'r' AND
c1.relispartition AND c1.oid=i.inhrelid AND i.inhparent = c2.oid AND c2.relnamespace = n.oid ORDER BY pg_catalog.pg_get_expr(c1.relpartbound, c1.oid) = 'DEFAULT', c1.oid::pg_catalog.regclass::pg_catalog.text
LOOP
qry := 'ALTER TABLE ONLY ' || object || ' ATTACH PARTITION ' || aname || ' ' || part_range || ';';
IF ddl_only THEN
RAISE INFO '%', qry;
ELSE
EXECUTE qry;
END IF;
END LOOP;
END IF;
-- INCLUDING ALL creates new index names, we restore them to the old name.
-- There should be no conflicts since they live in different schemas
FOR ix_old_name, ix_new_name IN
SELECT old.indexname, new.indexname
FROM pg_indexes old, pg_indexes new
WHERE old.schemaname = source_schema
AND new.schemaname = dest_schema
AND old.tablename = new.tablename
AND old.tablename = tblname
AND old.indexname <> new.indexname
AND regexp_replace(old.indexdef, E'.*USING','') = regexp_replace(new.indexdef, E'.*USING','')
ORDER BY old.indexname, new.indexname
LOOP
IF ddl_only THEN
RAISE INFO '%', 'ALTER INDEX ' || quote_ident(dest_schema) || '.' || quote_ident(ix_new_name) || ' RENAME TO ' || quote_ident(ix_old_name) || ';';
ELSE
EXECUTE 'ALTER INDEX ' || quote_ident(dest_schema) || '.' || quote_ident(ix_new_name) || ' RENAME TO ' || quote_ident(ix_old_name) || ';';
END IF;
END LOOP;
IF include_recs
THEN
-- Insert records from source table
-- 2021-03-03 MJV FIX
RAISE NOTICE 'Populating cloned table, %', tblname;
buffer := dest_schema || '.' || quote_ident(tblname);
-- 2020/06/18 - Issue #31 fix: add "OVERRIDING SYSTEM VALUE" for IDENTITY columns marked as GENERATED ALWAYS.
select count(*) into cnt from pg_class c, pg_attribute a, pg_namespace n
where a.attrelid = c.oid and c.relname = quote_ident(tblname) and n.oid = c.relnamespace and n.nspname = quote_ident(source_schema) and a.attidentity = 'a';
buffer3 := '';
IF cnt > 0 THEN
buffer3 := ' OVERRIDING SYSTEM VALUE';
END IF;
EXECUTE 'INSERT INTO ' || buffer || buffer3 || ' SELECT * FROM ' || quote_ident(source_schema) || '.' || quote_ident(tblname) || ';';
END IF;
SET search_path = '';
FOR column_, default_ IN
SELECT column_name::text,
REPLACE(column_default::text, source_schema, dest_schema)
FROM information_schema.COLUMNS
WHERE table_schema = source_schema
AND TABLE_NAME = tblname
AND column_default LIKE 'nextval(%' || quote_ident(source_schema) || '%::regclass)'
LOOP
IF ddl_only THEN
-- May need to come back and revisit this since previous sql will not return anything since no schema as created!
RAISE INFO '%', 'ALTER TABLE ' || buffer || ' ALTER COLUMN ' || column_ || ' SET DEFAULT ' || default_ || ';';
ELSE
EXECUTE 'ALTER TABLE ' || buffer || ' ALTER COLUMN ' || column_ || ' SET DEFAULT ' || default_;
END IF;
END LOOP;
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
END LOOP;
RAISE NOTICE ' TABLES cloned: %', LPAD(cnt::text, 5, ' ');
-- add FK constraint
action := 'FK Constraints';
cnt := 0;
SET search_path = '';
FOR qry IN
SELECT 'ALTER TABLE ' || quote_ident(dest_schema) || '.' || quote_ident(rn.relname)
|| ' ADD CONSTRAINT ' || quote_ident(ct.conname) || ' ' || REPLACE(pg_get_constraintdef(ct.oid), 'REFERENCES ' ||quote_ident(source_schema), 'REFERENCES ' || quote_ident(dest_schema)) || ';'
FROM pg_constraint ct
JOIN pg_class rn ON rn.oid = ct.conrelid
WHERE connamespace = src_oid
AND rn.relkind = 'r'
AND ct.contype = 'f'
LOOP
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', qry;
ELSE
EXECUTE qry;
END IF;
END LOOP;
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
RAISE NOTICE ' FKEYS cloned: %', LPAD(cnt::text, 5, ' ');
-- Create views
action := 'Views';
cnt := 0;
FOR object IN
SELECT table_name::text,
view_definition
FROM information_schema.views
WHERE table_schema = quote_ident(source_schema)
LOOP
cnt := cnt + 1;
buffer := quote_ident(dest_schema) || '.' || quote_ident(object);
SELECT view_definition INTO v_def
FROM information_schema.views
WHERE table_schema = quote_ident(source_schema)
AND table_name = quote_ident(object);
IF ddl_only THEN
RAISE INFO '%', 'CREATE OR REPLACE VIEW ' || buffer || ' AS ' || v_def || ';' ;
ELSE
EXECUTE 'CREATE OR REPLACE VIEW ' || buffer || ' AS ' || v_def || ';' ;
END IF;
END LOOP;
RAISE NOTICE ' VIEWS cloned: %', LPAD(cnt::text, 5, ' ');
-- Create Materialized views
action := 'Mat. Views';
cnt := 0;
-- RAISE INFO 'mat views start1';
FOR object, v_def IN
SELECT matviewname::text, replace(definition,';','') FROM pg_catalog.pg_matviews WHERE schemaname = quote_ident(source_schema)
LOOP
cnt := cnt + 1;
buffer := dest_schema || '.' || quote_ident(object);
IF include_recs THEN
EXECUTE 'CREATE MATERIALIZED VIEW ' || buffer || ' AS ' || v_def || ' WITH DATA;' ;
ELSE
IF ddl_only THEN
RAISE INFO '%', 'CREATE MATERIALIZED VIEW ' || buffer || ' AS ' || v_def || ' WITH NO DATA;' ;
ELSE
EXECUTE 'CREATE MATERIALIZED VIEW ' || buffer || ' AS ' || v_def || ' WITH NO DATA;' ;
END IF;
END IF;
SELECT coalesce(obj_description(oid), '') into adef from pg_class where relkind = 'm' and relname = object;
IF adef <> '' THEN
IF ddl_only THEN
RAISE INFO '%', 'COMMENT ON MATERIALIZED VIEW ' || quote_ident(dest_schema) || '.' || object || ' IS ''' || adef || ''';';
ELSE
EXECUTE 'COMMENT ON MATERIALIZED VIEW ' || quote_ident(dest_schema) || '.' || object || ' IS ''' || adef || ''';';
END IF;
END IF;
FOR aname, adef IN
SELECT indexname, replace(indexdef, quote_ident(source_schema), quote_ident(dest_schema)) as newdef FROM pg_indexes where schemaname = quote_ident(source_schema) and tablename = object order by indexname
LOOP
IF ddl_only THEN
RAISE INFO '%', adef || ';';
ELSE
EXECUTE adef || ';';
END IF;
END LOOP;
END LOOP;
RAISE NOTICE ' MAT VIEWS cloned: %', LPAD(cnt::text, 5, ' ');
-- Create functions
action := 'Functions';
cnt := 0;
-- MJV FIX per issue# 34
-- SET search_path = '';
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
FOR func_oid IN
SELECT oid
FROM pg_proc
WHERE pronamespace = src_oid
LOOP
cnt := cnt + 1;
SELECT pg_get_functiondef(func_oid) INTO qry;
SELECT replace(qry, source_schema, dest_schema) INTO dest_qry;
IF ddl_only THEN
RAISE INFO '%', dest_qry;
ELSE
EXECUTE dest_qry;
END IF;
END LOOP;
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
RAISE NOTICE ' FUNCTIONS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: Create Triggers
action := 'Triggers';
cnt := 0;
FOR arec IN
SELECT trigger_schema, trigger_name, event_object_table, action_order, action_condition, action_statement, action_orientation, action_timing, array_to_string(array_agg(event_manipulation::text), ' OR '),
'CREATE TRIGGER ' || trigger_name || ' ' || action_timing || ' ' || array_to_string(array_agg(event_manipulation::text), ' OR ') || ' ON ' || quote_ident(dest_schema) || '.' || event_object_table ||
' FOR EACH ' || action_orientation || ' ' || action_statement || ';' as TRIG_DDL
FROM information_schema.triggers where trigger_schema = quote_ident(source_schema) GROUP BY 1,2,3,4,5,6,7,8
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.trig_ddl;
ELSE
EXECUTE arec.trig_ddl;
END IF;
END;
END LOOP;
RAISE NOTICE ' TRIGGERS cloned: %', LPAD(cnt::text, 5, ' ');
-- ---------------------
-- MV: Permissions: Defaults
-- ---------------------
action := 'PRIVS: Defaults';
cnt := 0;
FOR arec IN
SELECT pg_catalog.pg_get_userbyid(d.defaclrole) AS "owner", n.nspname AS schema,
CASE d.defaclobjtype WHEN 'r' THEN 'table' WHEN 'S' THEN 'sequence' WHEN 'f' THEN 'function' WHEN 'T' THEN 'type' WHEN 'n' THEN 'schema' END AS atype,
d.defaclacl as defaclacl, pg_catalog.array_to_string(d.defaclacl, ',') as defaclstr
FROM pg_catalog.pg_default_acl d LEFT JOIN pg_catalog.pg_namespace n ON (n.oid = d.defaclnamespace) WHERE n.nspname IS NOT NULL and n.nspname = quote_ident(source_schema) ORDER BY 3, 2, 1
LOOP
BEGIN
-- RAISE NOTICE 'owner=% type=% defaclacl=% defaclstr=%', arec.owner, arec.atype, arec.defaclacl, arec.defaclstr;
FOREACH aclstr IN ARRAY arec.defaclacl
LOOP
cnt := cnt + 1;
-- RAISE NOTICE 'aclstr=%', aclstr;
-- break up into grantor, grantee, and privs, mydb_update=rwU/mydb_owner
SELECT split_part(aclstr, '=',1) INTO grantee;
SELECT split_part(aclstr, '=',2) INTO grantor;
SELECT split_part(grantor, '/',1) INTO privs;
SELECT split_part(grantor, '/',2) INTO grantor;
-- RAISE NOTICE 'grantor=% grantee=% privs=%', grantor, grantee, privs;
IF arec.atype = 'function' THEN
-- Just having execute is enough to grant all apparently.
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT ALL ON FUNCTIONS TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
ELSIF arec.atype = 'sequence' THEN
IF POSITION('r' IN privs) > 0 AND POSITION('w' IN privs) > 0 AND POSITION('U' IN privs) > 0 THEN
-- arU is enough for all privs
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT ALL ON SEQUENCES TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
ELSE
-- have to specify each priv individually
buffer2 := '';
IF POSITION('r' IN privs) > 0 THEN
buffer2 := 'SELECT';
END IF;
IF POSITION('w' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'UPDATE';
ELSE
buffer2 := buffer2 || ', UPDATE';
END IF;
END IF;
IF POSITION('U' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'USAGE';
ELSE
buffer2 := buffer2 || ', USAGE';
END IF;
END IF;
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT ' || buffer2 || ' ON SEQUENCES TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
END IF;
ELSIF arec.atype = 'table' THEN
-- do each priv individually, jeeeesh!
buffer2 := '';
IF POSITION('a' IN privs) > 0 THEN
buffer2 := 'INSERT';
END IF;
IF POSITION('r' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'SELECT';
ELSE
buffer2 := buffer2 || ', SELECT';
END IF;
END IF;
IF POSITION('w' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'UPDATE';
ELSE
buffer2 := buffer2 || ', UPDATE';
END IF;
END IF;
IF POSITION('d' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'DELETE';
ELSE
buffer2 := buffer2 || ', DELETE';
END IF;
END IF;
IF POSITION('t' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'TRIGGER';
ELSE
buffer2 := buffer2 || ', TRIGGER';
END IF;
END IF;
IF POSITION('T' IN privs) > 0 THEN
IF buffer2 = '' THEN
buffer2 := 'TRUNCATE';
ELSE
buffer2 := buffer2 || ', TRUNCATE';
END IF;
END IF;
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT ' || buffer2 || ' ON TABLES TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
ELSIF arec.atype = 'type' THEN
IF POSITION('r' IN privs) > 0 AND POSITION('w' IN privs) > 0 AND POSITION('U' IN privs) > 0 THEN
-- arU is enough for all privs
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT ALL ON TYPES TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
ELSIF POSITION('U' IN privs) THEN
buffer := 'ALTER DEFAULT PRIVILEGES FOR ROLE ' || grantor || ' IN SCHEMA ' || quote_ident(dest_schema) || ' GRANT USAGE ON TYPES TO "' || grantee || '";';
IF ddl_only THEN
RAISE INFO '%', buffer;
ELSE
EXECUTE buffer;
END IF;
ELSE
RAISE WARNING 'Unhandled TYPE Privs:: type=% privs=% owner=% defaclacl=% defaclstr=% grantor=% grantee=% ', arec.atype, privs, arec.owner, arec.defaclacl, arec.defaclstr, grantor, grantee;
END IF;
ELSE
RAISE WARNING 'Unhandled Privs:: type=% privs=% owner=% defaclacl=% defaclstr=% grantor=% grantee=% ', arec.atype, privs, arec.owner, arec.defaclacl, arec.defaclstr, grantor, grantee;
END IF;
END LOOP;
END;
END LOOP;
RAISE NOTICE ' DFLT PRIVS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: PRIVS: schema
-- crunchy data extension, check_access
-- SELECT role_path, base_role, as_role, objtype, schemaname, objname, array_to_string(array_agg(privname),',') as privs FROM all_access()
-- WHERE base_role != CURRENT_USER and objtype = 'schema' and schemaname = 'public' group by 1,2,3,4,5,6;
action := 'PRIVS: Schema';
cnt := 0;
FOR arec IN
SELECT 'GRANT ' || p.perm::perm_type || ' ON SCHEMA ' || quote_ident(dest_schema) || ' TO "' || r.rolname || '";' as schema_ddl
FROM pg_catalog.pg_namespace AS n CROSS JOIN pg_catalog.pg_roles AS r CROSS JOIN (VALUES ('USAGE'), ('CREATE')) AS p(perm)
WHERE n.nspname = quote_ident(source_schema) AND NOT r.rolsuper AND has_schema_privilege(r.oid, n.oid, p.perm) order by r.rolname, p.perm::perm_type
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.schema_ddl;
ELSE
EXECUTE arec.schema_ddl;
END IF;
END;
END LOOP;
RAISE NOTICE 'SCHEMA PRIVS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: PRIVS: sequences
action := 'PRIVS: Sequences';
cnt := 0;
FOR arec IN
SELECT 'GRANT ' || p.perm::perm_type || ' ON ' || quote_ident(dest_schema) || '.' || t.relname::text || ' TO "' || r.rolname || '";' as seq_ddl
FROM pg_catalog.pg_class AS t CROSS JOIN pg_catalog.pg_roles AS r CROSS JOIN (VALUES ('SELECT'), ('USAGE'), ('UPDATE')) AS p(perm)
WHERE t.relnamespace::regnamespace::name = quote_ident(source_schema) AND t.relkind = 'S' AND NOT r.rolsuper AND has_sequence_privilege(r.oid, t.oid, p.perm)
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.seq_ddl;
ELSE
EXECUTE arec.seq_ddl;
END IF;
END;
END LOOP;
RAISE NOTICE ' SEQ. PRIVS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: PRIVS: functions
action := 'PRIVS: Functions';
cnt := 0;
EXECUTE 'SET search_path = ' || quote_ident(dest_schema) ;
FOR arec IN
SELECT 'GRANT EXECUTE ON FUNCTION ' || quote_ident(dest_schema) || '.' || replace(regexp_replace(f.oid::regprocedure::text, '^((("[^"]*")|([^"][^.]*))\.)?', ''), source_schema, dest_schema) || ' TO "' || r.rolname || '";' as func_ddl
FROM pg_catalog.pg_proc f CROSS JOIN pg_catalog.pg_roles AS r WHERE f.pronamespace::regnamespace::name = quote_ident(source_schema) AND NOT r.rolsuper AND has_function_privilege(r.oid, f.oid, 'EXECUTE')
order by regexp_replace(f.oid::regprocedure::text, '^((("[^"]*")|([^"][^.]*))\.)?', '')
LOOP
BEGIN
cnt := cnt + 1;
IF ddl_only THEN
RAISE INFO '%', arec.func_ddl;
ELSE
EXECUTE arec.func_ddl;
END IF;
END;
END LOOP;
EXECUTE 'SET search_path = ' || quote_ident(source_schema) ;
RAISE NOTICE ' FUNC PRIVS cloned: %', LPAD(cnt::text, 5, ' ');
-- MV: PRIVS: tables
action := 'PRIVS: Tables';
-- regular, partitioned, and foreign tables plus view and materialized view permissions. TODO: implement foreign table defs.
cnt := 0;
FOR arec IN
SELECT 'GRANT ' || p.perm::perm_type || CASE WHEN t.relkind in ('r', 'p', 'f') THEN ' ON TABLE ' WHEN t.relkind in ('v', 'm') THEN ' ON ' END || quote_ident(dest_schema) || '.' || t.relname::text || ' TO "' || r.rolname || '";' as tbl_ddl,
has_table_privilege(r.oid, t.oid, p.perm) AS granted, t.relkind
FROM pg_catalog.pg_class AS t CROSS JOIN pg_catalog.pg_roles AS r CROSS JOIN (VALUES (TEXT 'SELECT'), ('INSERT'), ('UPDATE'), ('DELETE'), ('TRUNCATE'), ('REFERENCES'), ('TRIGGER')) AS p(perm)
WHERE t.relnamespace::regnamespace::name = quote_ident(source_schema) AND t.relkind in ('r', 'p', 'f', 'v', 'm') AND NOT r.rolsuper AND has_table_privilege(r.oid, t.oid, p.perm) order by t.relname::text, t.relkind
LOOP
BEGIN
cnt := cnt + 1;
-- RAISE NOTICE 'ddl=%', arec.tbl_ddl;
IF arec.relkind = 'f' THEN
RAISE WARNING 'Foreign tables are not currently implemented, so skipping privs for them. ddl=%', arec.tbl_ddl;
ELSE
IF ddl_only THEN
RAISE INFO '%', arec.tbl_ddl;
ELSE
EXECUTE arec.tbl_ddl;
END IF;
END IF;
END;
END LOOP;
RAISE NOTICE ' TABLE PRIVS cloned: %', LPAD(cnt::text, 5, ' ');
-- Set the search_path back to what it was before
EXECUTE 'SET search_path = ' || src_path_old;
EXCEPTION
WHEN others THEN
BEGIN
GET STACKED DIAGNOSTICS v_diag1 = MESSAGE_TEXT, v_diag2 = PG_EXCEPTION_DETAIL, v_diag3 = PG_EXCEPTION_HINT, v_diag4 = RETURNED_SQLSTATE, v_diag5 = PG_CONTEXT, v_diag6 = PG_EXCEPTION_CONTEXT;
-- v_ret := 'line=' || v_diag6 || '. '|| v_diag4 || '. ' || v_diag1 || ' .' || v_diag2 || ' .' || v_diag3;
v_ret := 'line=' || v_diag6 || '. '|| v_diag4 || '. ' || v_diag1;
RAISE EXCEPTION 'Action: % Diagnostics: %',action, v_ret;
-- Set the search_path back to what it was before
EXECUTE 'SET search_path = ' || src_path_old;
RETURN;
END;
RETURN;
END;
$BODY$
LANGUAGE plpgsql VOLATILE COST 100;
-- ALTER FUNCTION public.clone_schema(text, text, boolean, boolean) OWNER TO postgres; | the_stack |
------------------------------------------------------------------------
-- TITLE:
-- gui_attitude.sql
--
-- AUTHOR:
-- Will Duquette
--
-- DESCRIPTION:
-- SQL Schema: Application-specific views, Attitude area
--
-- This file is loaded by app.tcl!
--
-- GUI views translate the internal data formats of the scenariodb(n)
-- tables into presentation format. They are defined here instead of
-- in scenariodb(n) so that they can contain application-specific
-- SQL functions.
--
------------------------------------------------------------------------
------------------------------------------------------------------------
-- COOPERATION VIEWS
-- gui_coop_view: A view used for editing baseline cooperation levels
-- in Scenario Mode.
CREATE TEMPORARY VIEW gui_coop AS
SELECT * FROM fmt_coop;
-- gui_uram_coop: A view used for displaying cooperation levels and
-- their components in Simulation Mode.
CREATE TEMPORARY VIEW gui_uram_coop AS
SELECT f || ' ' || g AS id,
f AS f,
g AS g,
format('%5.1f', coop0) AS coop0,
format('%5.1f', bvalue0) AS base0,
CASE WHEN uram_gamma('COOP') > 0.0
THEN format('%5.1f', cvalue0)
ELSE 'n/a' END AS nat0,
format('%5.1f', coop) AS coop,
format('%5.1f', bvalue) AS base,
CASE WHEN uram_gamma('COOP') > 0.0
THEN format('%5.1f', cvalue)
ELSE 'n/a' END AS nat,
curve_id AS curve_id,
fg_id AS fg_id
FROM uram_coop
WHERE tracked
ORDER BY f,g;
-- gui_coop_ng: Neighborhood cooperation levels.
CREATE TEMPORARY VIEW gui_coop_ng AS
SELECT n || ' ' || g AS id,
n AS n,
g AS g,
format('%5.1f', nbcoop0) AS coop0,
format('%5.1f', nbcoop) AS coop
FROM uram_nbcoop;
------------------------------------------------------------------------
-- HORIZONTAL RELATIONSHIP VIEWS
-- gui_hrel_view: A view used for editing baseline horizontal
-- relationship levels in Scenario Mode.
CREATE TEMPORARY VIEW gui_hrel_view AS
SELECT * FROM fmt_hrel_view;
-- A gui_hrel_view subview: overridden relationships only.
CREATE TEMPORARY VIEW gui_hrel_override_view AS
SELECT * FROM fmt_hrel_override_view;
-- gui_uram_hrel: A view used for displaying the current horizontal
-- relationships and their components in Simulation Mode.
CREATE TEMPORARY VIEW gui_uram_hrel AS
SELECT UH.f || ' ' || UH.g AS id,
UH.f AS f,
F.gtype AS ftype,
UH.g AS g,
G.gtype AS gtype,
format('%+4.1f', UH.hrel0) AS hrel0,
format('%+4.1f', UH.bvalue0) AS base0,
CASE WHEN uram_gamma('HREL') > 0.0
THEN format('%+4.1f', UH.cvalue0)
ELSE 'n/a' END AS nat0,
format('%+4.1f', UH.hrel) AS hrel,
format('%+4.1f', UH.bvalue) AS base,
CASE WHEN uram_gamma('HREL') > 0.0
THEN format('%+4.1f', UH.cvalue)
ELSE 'n/a' END AS nat,
UH.curve_id AS curve_id,
UH.fg_id AS fg_id
FROM uram_hrel AS UH
JOIN groups AS F ON (F.g = UH.f)
JOIN groups AS G ON (G.g = UH.g)
WHERE UH.tracked AND F.g != G.g;
------------------------------------------------------------------------
-- SATISFACTION VIEWS
-- gui_sat_view
CREATE TEMPORARY VIEW gui_sat_view AS
SELECT * FROM fmt_sat_view;
-- gui_uram_sat: A view used for displaying satisfaction levels and
-- their components in Simulation mode.
CREATE TEMPORARY VIEW gui_uram_sat AS
SELECT US.g || ' ' || US.c AS id,
US.g AS g,
US.c AS c,
G.n AS n,
format('%+4.1f', US.sat0) AS sat0,
format('%+4.1f', US.bvalue0) AS base0,
CASE WHEN uram_gamma(c) > 0.0
THEN format('%+4.1f', US.cvalue0)
ELSE 'n/a' END AS nat0,
format('%+4.1f', US.sat) AS sat,
format('%+4.1f', US.bvalue) AS base,
CASE WHEN uram_gamma(c) > 0.0
THEN format('%+4.1f', US.cvalue)
ELSE 'n/a' END AS nat,
US.curve_id AS curve_id,
US.gc_id AS gc_id
FROM uram_sat AS US
JOIN civgroups AS G USING (g)
WHERE US.tracked
ORDER BY g,c;
------------------------------------------------------------------------
-- VERTICAL RELATIONSHIPS VIEWS
-- gui_vrel_view: A view used for editing baseline vertical relationships
-- in Scenario Mode.
CREATE TEMPORARY VIEW gui_vrel_view AS
SELECT * FROM fmt_vrel_view;
-- A gui_vrel_view subview: overridden relationships only.
CREATE TEMPORARY VIEW gui_vrel_override_view AS
SELECT * FROM fmt_vrel_override_view;
-- gui_uram_vrel: A view used for display vertical relationships and
-- their components in Simulation Mode.
CREATE TEMPORARY VIEW gui_uram_vrel AS
SELECT UV.g || ' ' || UV.a AS id,
UV.g AS g,
G.gtype AS gtype,
UV.a AS a,
format('%+4.1f', UV.vrel0) AS vrel0,
format('%+4.1f', UV.bvalue0) AS base0,
CASE WHEN uram_gamma('VREL') > 0.0
THEN format('%+4.1f', UV.cvalue0)
ELSE 'n/a' END AS nat0,
format('%+4.1f', UV.vrel) AS vrel,
format('%+4.1f', UV.bvalue) AS base,
CASE WHEN uram_gamma('VREL') > 0.0
THEN format('%+4.1f', UV.cvalue)
ELSE 'n/a' END AS nat,
UV.curve_id AS curve_id,
UV.ga_id AS ga_id
FROM uram_vrel AS UV
JOIN groups AS G ON (G.g = UV.g)
WHERE tracked;
------------------------------------------------------------------------
-- DRIVER VIEWS
-- gui_drivers: All Drivers
CREATE TEMPORARY VIEW gui_drivers AS
SELECT driver_id AS driver_id,
driver_id || ' - ' ||
sigline(dtype, signature) AS longid,
sigline(dtype, signature) AS sigline,
dtype AS dtype,
signature AS signature,
'/app/driver/' || driver_id AS url,
link('/app/driver/' || driver_id, driver_id) AS link
FROM drivers;
-----------------------------------------------------------------------
-- RULE FIRING VIEWS
-- gui_firings: All rule firings
CREATE TEMPORARY VIEW gui_firings AS
SELECT firing_id AS firing_id,
t AS t,
driver_id AS driver_id,
ruleset AS ruleset,
rule AS rule,
fdict AS fdict,
mklinks(firing_narrative(fdict)) AS narrative,
'/app/firing/' || firing_id AS url,
link('/app/firing/' || firing_id, firing_id) AS link
FROM rule_firings;
-- gui_inputs: All rule inputs
CREATE TEMPORARY VIEW gui_inputs AS
SELECT F.t AS t,
F.firing_id AS firing_id,
I.input_id AS input_id,
F.driver_id AS driver_id,
F.ruleset AS ruleset,
F.rule AS rule,
F.fdict AS fdict,
F.narrative AS narrative,
F.url AS url,
F.link AS link,
I.atype AS atype,
I.mode AS mode,
CASE WHEN I.mode = 'P' THEN 'persistent'
ELSE 'transient' END AS longmode,
I.f AS f,
I.g AS g,
I.c AS c,
I.a AS a,
atype || '.' ||
CASE WHEN I.atype='coop' OR I.atype='hrel'
THEN elink('group',I.f) || '.' || elink('group',I.g)
WHEN I.atype='sat'
THEN elink('group',I.g) || '.' || I.c
WHEN I.atype='vrel'
THEN elink('group',I.g) || '.' || elink('actor',I.a)
END AS curve,
format('%.2f',I.gain) AS gain,
format('%.2f',I.mag) AS mag,
I.cause AS cause,
CASE WHEN I.atype IN ('sat', 'coop')
THEN format('%.2f',I.s) ELSE 'n/a' END AS s,
CASE WHEN I.atype IN ('sat', 'coop')
THEN format('%.2f',I.p) ELSE 'n/a' END AS p,
CASE WHEN I.atype IN ('sat', 'coop')
THEN format('%.2f',I.q) ELSE 'n/a' END AS q,
I.note AS note
FROM rule_inputs AS I
JOIN gui_firings AS F USING (firing_id);
-----------------------------------------------------------------------
-- End of File
----------------------------------------------------------------------- | the_stack |
-- 2017-09-27T11:01:25.403
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET DisplayLogic='',Updated=TO_TIMESTAMP('2017-09-27 11:01:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540880
;
-- 2017-09-27T11:02:09.976
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET DisplayLogic='@Type_Conditions@=''Subscr''',Updated=TO_TIMESTAMP('2017-09-27 11:02:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540880
;
-- 2017-09-27T11:06:33.014
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=541164
;
-- 2017-09-27T11:06:36.419
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=540662
;
-- 2017-09-27T11:06:39.932
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=540492
;
-- 2017-09-27T11:06:39.939
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=540492
;
-- 2017-09-27T11:06:48.431
-- 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,540880,540509,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2017-09-27T11:06:48.434
-- 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=540509 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-09-27T11:06:48.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,540680,540509,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.508
-- 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,540680,541184,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.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,Description,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560349,0,540880,541184,548918,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst','"Reihenfolge" bestimmt die Reihenfolge der Einträge','Y','N','N','Y','N','Reihenfolge',0,10,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.616
-- 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,560350,0,540880,541184,548919,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Datum',0,20,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.655
-- 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,560352,0,540880,541184,548920,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Ereignisart',0,30,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.699
-- 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,560351,0,540880,541184,548921,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'','','Y','N','N','Y','N','Status',0,40,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.733
-- 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,560353,0,540880,541184,548922,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Vertrags-Status',0,50,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.765
-- 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,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,560354,0,540880,541184,548923,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Business Partner Location for shipping to','Y','N','N','Y','N','Lieferadresse',0,60,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.808
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,560356,0,540212,548923,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:48.850
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementField (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_UI_ElementField_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,560357,0,540213,548923,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:49.124
-- 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,560348,0,540880,541184,548924,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100,'Menge','Menge bezeichnet die Anzahl eines bestimmten Produktes oder Artikels für dieses Dokument.','Y','N','N','Y','N','Menge',0,70,0,TO_TIMESTAMP('2017-09-27 11:06:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:06:49.167
-- 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,560359,0,540880,541184,548925,TO_TIMESTAMP('2017-09-27 11:06:49','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','Lieferdisposition',0,80,0,TO_TIMESTAMP('2017-09-27 11:06:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:07:38.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Abo Verlauf',Updated=TO_TIMESTAMP('2017-09-27 11:07:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540880
;
-- 2017-09-27T11:08:25.742
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET SortNo=-1.000000000000,Updated=TO_TIMESTAMP('2017-09-27 11:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560349
;
-- 2017-09-27T11:08:56.151
-- 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,560345,0,540880,541184,548926,'F',TO_TIMESTAMP('2017-09-27 11:08:56','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-09-27 11:08:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:09:07.027
-- 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,560344,0,540880,541184,548927,'F',TO_TIMESTAMP('2017-09-27 11:09:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-09-27 11:09:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-27T11:09:16.023
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-09-27 11:09:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548926
;
-- 2017-09-27T11:09:34.149
-- 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-09-27 11:09:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548918
;
-- 2017-09-27T11:09:34.154
-- 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-09-27 11:09:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548919
;
-- 2017-09-27T11:09:34.159
-- 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-09-27 11:09:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548920
;
-- 2017-09-27T11:14:09.804
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-09-27 11:14:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548926
;
-- 2017-09-27T11:14:13.372
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='M',Updated=TO_TIMESTAMP('2017-09-27 11:14:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548927
;
-- 2017-09-27T11:14:16.873
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-09-27 11:14:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548918
;
-- 2017-09-27T11:14:19.684
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-09-27 11:14:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548919
;
-- 2017-09-27T11:14:29.606
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-09-27 11:14:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548924
;
-- 2017-09-27T11:15:58.582
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=0,Updated=TO_TIMESTAMP('2017-09-27 11:15:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548927
;
-- 2017-09-27T11:16:00.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-09-27 11:16:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548918
;
-- 2017-09-27T11:16:02.742
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-09-27 11:16:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548919
;
-- 2017-09-27T11:16:04.512
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-09-27 11:16:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548920
;
-- 2017-09-27T11:16:06.057
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-09-27 11:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548921
;
-- 2017-09-27T11:16:07.599
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-09-27 11:16:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548922
;
-- 2017-09-27T11:16:09.047
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2017-09-27 11:16:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548923
;
-- 2017-09-27T11:16:10.665
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-09-27 11:16:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548924
;
-- 2017-09-27T11:16:12.290
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-09-27 11:16:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548925
;
-- 2017-09-27T11:16:14.544
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-09-27 11:16:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548926
;
-- 2017-09-27T11:16:18.435
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-09-27 11:16:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548927
;
-- 2017-09-27T11:16:24.782
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548918
;
-- 2017-09-27T11:16:25.182
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548919
;
-- 2017-09-27T11:16:25.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548920
;
-- 2017-09-27T11:16:26.182
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548921
;
-- 2017-09-27T11:16:26.714
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548922
;
-- 2017-09-27T11:16:27.144
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548923
;
-- 2017-09-27T11:16:27.600
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548924
;
-- 2017-09-27T11:16:30.456
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-09-27 11:16:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548925
; | the_stack |
-- MySQL dump 10.17 Distrib 10.3.11-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: allsquare
-- ------------------------------------------------------
-- Server version 10.3.11-MariaDB-1:10.3.11+maria~jessie-log
--
-- Table structure for table `access_types`
--
DROP TABLE IF EXISTS `access_types`;
CREATE TABLE `access_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `addresses`
--
DROP TABLE IF EXISTS `addresses`;
CREATE TABLE `addresses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lat` float DEFAULT NULL,
`lng` float DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`google_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1040 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `ahoy_events`
--
DROP TABLE IF EXISTS `ahoy_events`;
CREATE TABLE `ahoy_events` (
`id` binary(16) NOT NULL,
`visit_id` binary(16) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`properties` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`time` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_ahoy_events_on_id` (`id`) USING BTREE,
KEY `index_ahoy_events_on_visit_id` (`visit_id`) USING BTREE,
KEY `index_ahoy_events_on_type` (`type`(191)) USING BTREE,
KEY `index_ahoy_events_on_user_id` (`user_id`) USING BTREE,
KEY `index_ahoy_events_on_time` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `albums`
--
DROP TABLE IF EXISTS `albums`;
CREATE TABLE `albums` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`albumable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`albumable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cover_picture_id` int(11) DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`media_id` int(11) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_albums_on_albumable_type_and_albumable_id` (`albumable_type`,`albumable_id`) USING BTREE,
KEY `index_albums_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=177178 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `ambassador_contests`
--
DROP TABLE IF EXISTS `ambassador_contests`;
CREATE TABLE `ambassador_contests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`start_at` datetime DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`winner_id` int(11) DEFAULT NULL,
`description` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contest_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`counter` int(11) DEFAULT NULL,
`small_description` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`open` tinyint(1) DEFAULT 0,
`finished` tinyint(1) DEFAULT 0,
`picture_id` int(11) DEFAULT NULL,
`prize_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_ambassador_contests_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `ambassador_user_contests`
--
DROP TABLE IF EXISTS `ambassador_user_contests`;
CREATE TABLE `ambassador_user_contests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`ambassador_contest_id` int(11) DEFAULT NULL,
`validated` tinyint(1) DEFAULT 0,
`win` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `amenities`
--
DROP TABLE IF EXISTS `amenities`;
CREATE TABLE `amenities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amenity_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`priority_type` int(11) DEFAULT NULL,
`friendly_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `clubs`
--
DROP TABLE IF EXISTS `clubs`;
CREATE TABLE `clubs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`street` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zipcode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`closest_city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`closest_airport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_size` int(11) DEFAULT NULL,
`logo_updated_at` datetime DEFAULT NULL,
`scorecard_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scorecard_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scorecard_file_size` int(11) DEFAULT NULL,
`scorecard_updated_at` datetime DEFAULT NULL,
`online` tinyint(1) DEFAULT 1,
`simple` tinyint(1) DEFAULT 0,
`perma` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`edit_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`booking_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manager_fullname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manager_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manager_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pin_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`has_carts` tinyint(1) DEFAULT NULL,
`has_driving_range` tinyint(1) DEFAULT NULL,
`access_type_id` int(11) DEFAULT NULL,
`merge_course` tinyint(1) DEFAULT 1,
`cover_album_id` int(11) DEFAULT NULL,
`booking_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`booking_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`meta_visible` tinyint(1) DEFAULT 0,
`external_video_id` int(11) DEFAULT NULL,
`logo_picture_id` int(11) DEFAULT 3,
`cover_picture_id` int(11) DEFAULT 1,
`country_id` int(11) DEFAULT NULL,
`facebook_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`continent_id` int(11) DEFAULT NULL,
`area_id` int(11) DEFAULT NULL,
`destination_id` int(11) DEFAULT NULL,
`top100continent` int(11) DEFAULT NULL,
`top100area` int(11) DEFAULT NULL,
`top100country` int(11) DEFAULT NULL,
`top100world` int(11) DEFAULT NULL,
`facebook_user_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`altitude` float DEFAULT NULL,
`altitude_resolution` float DEFAULT NULL,
`score` float DEFAULT 0,
`green_fee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`handicap` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`open_informations` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amenities_activated` tinyint(1) DEFAULT 0,
`booking_available` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_clubs_on_name` (`name`) USING BTREE,
KEY `index_clubs_slug` (`slug`),
KEY `idx_club_area` (`area_id`),
KEY `idx_club_country` (`country_id`),
KEY `idx_club_destination` (`destination_id`),
KEY `idxclubdeletedat` (`deleted_at`),
KEY `idx_club_continent` (`continent_id`)
) ENGINE=InnoDB AUTO_INCREMENT=37789 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `amenities_clubs`
--
DROP TABLE IF EXISTS `amenities_clubs`;
CREATE TABLE `amenities_clubs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`amenity_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `club_id` (`club_id`),
KEY `amenity_id` (`amenity_id`),
CONSTRAINT `amenities_clubs_ibfk_1` FOREIGN KEY (`club_id`) REFERENCES `clubs` (`id`),
CONSTRAINT `amenities_clubs_ibfk_2` FOREIGN KEY (`amenity_id`) REFERENCES `amenities` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=845 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `architects`
--
DROP TABLE IF EXISTS `architects`;
CREATE TABLE `architects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`biography` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comittee` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comittee_website` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`website` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`top_ranking` int(11) DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_architects_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=659 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `areas`
--
DROP TABLE IF EXISTS `areas`;
CREATE TABLE `areas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nb_top100` int(11) DEFAULT NULL,
`rank` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_slug_areas` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=52 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `articles`
--
DROP TABLE IF EXISTS `articles`;
CREATE TABLE `articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_size` int(11) DEFAULT NULL,
`picture_updated_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`club_id` int(11) DEFAULT NULL,
`url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`private` tinyint(1) DEFAULT 0,
`mobile_picture_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mobile_picture_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mobile_picture_file_size` int(11) DEFAULT NULL,
`mobile_picture_updated_at` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_articles_on_club_id` (`club_id`) USING BTREE,
KEY `index_articles_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `attachments`
--
DROP TABLE IF EXISTS `attachments`;
CREATE TABLE `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mime` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachable_id` int(11) DEFAULT NULL,
`file_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_file_size` int(11) DEFAULT NULL,
`file_updated_at` datetime DEFAULT NULL,
`pos` int(11) DEFAULT NULL,
`attached_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attached_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14497 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `attendings`
--
DROP TABLE IF EXISTS `attendings`;
CREATE TABLE `attendings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`attending` int(11) DEFAULT 1,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`invitor_id` int(11) DEFAULT NULL,
`invitor_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_attendings_on_user_id` (`user_id`),
KEY `index_attendings_on_event_id` (`event_id`,`user_id`) USING BTREE,
KEY `idx_attending_invitor_id` (`invitor_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17113 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `blogs`
--
DROP TABLE IF EXISTS `blogs`;
CREATE TABLE `blogs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`cover_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cover_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cover_file_size` int(11) DEFAULT NULL,
`cover_updated_at` datetime DEFAULT NULL,
`content_preview` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`article_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `booking_requests`
--
DROP TABLE IF EXISTS `booking_requests`;
CREATE TABLE `booking_requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1146 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `braintree_customers`
--
DROP TABLE IF EXISTS `braintree_customers`;
CREATE TABLE `braintree_customers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`braintree_handle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vat_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `braintree_subscriptions`
--
DROP TABLE IF EXISTS `braintree_subscriptions`;
CREATE TABLE `braintree_subscriptions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`braintree_handle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date` datetime DEFAULT NULL,
`amount` float DEFAULT NULL,
`currency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`braintree_customer_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`payment_method_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `braintree_transactions`
--
DROP TABLE IF EXISTS `braintree_transactions`;
CREATE TABLE `braintree_transactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`braintree_handle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`receipt_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date` datetime DEFAULT NULL,
`amount` float DEFAULT NULL,
`currency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`success` tinyint(1) DEFAULT NULL,
`braintree_customer_id` int(11) DEFAULT NULL,
`braintree_subscription_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`contact_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `brands`
--
DROP TABLE IF EXISTS `brands`;
CREATE TABLE `brands` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`year` int(11) DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`cover_picture_id` int(11) DEFAULT NULL,
`description` text DEFAULT NULL,
`slug` varchar(255) DEFAULT NULL,
`media_id` int(11) DEFAULT NULL,
`page_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_brands_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `brands_competitors`
--
DROP TABLE IF EXISTS `brands_competitors`;
CREATE TABLE `brands_competitors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`brand_id` int(11) DEFAULT NULL,
`competitor_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `brand_id` (`brand_id`),
KEY `competitor_id` (`competitor_id`),
CONSTRAINT `brands_competitors_ibfk_1` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `brands_competitors_ibfk_2` FOREIGN KEY (`competitor_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=721 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `business_admins`
--
DROP TABLE IF EXISTS `business_admins`;
CREATE TABLE `business_admins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`business_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `checkins`
--
DROP TABLE IF EXISTS `checkins`;
CREATE TABLE `checkins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_url_shortcut` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`album_id` int(11) DEFAULT NULL,
`media_processing` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `index_checkins_on_club_id` (`club_id`) USING BTREE,
KEY `index_checkins_on_user_id` (`user_id`) USING BTREE,
KEY `index_checkins_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=24709 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `checkins_users`
--
DROP TABLE IF EXISTS `checkins_users`;
CREATE TABLE `checkins_users` (
`checkin_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
KEY `index_checkins_users_on_checkin_id_and_user_id` (`checkin_id`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2819 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `client_accesses`
--
DROP TABLE IF EXISTS `client_accesses`;
CREATE TABLE `client_accesses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`version` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`accesses_count` int(11) DEFAULT NULL,
`last_access_date` datetime DEFAULT NULL,
`platform` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14101 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `clothes_products`
--
DROP TABLE IF EXISTS `clothes_products`;
CREATE TABLE `clothes_products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`brand_id` int(11) DEFAULT NULL,
`price_id` int(11) DEFAULT NULL,
`album_id` int(11) DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`internal_video_id` int(11) DEFAULT NULL,
`gender_restriction` int(11) DEFAULT NULL,
`item_type` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_clothes_products_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=5134 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `clothes_sizes`
--
DROP TABLE IF EXISTS `clothes_sizes`;
CREATE TABLE `clothes_sizes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`size` int(11) DEFAULT NULL,
`clothes_product_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17602 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `club_administrators`
--
DROP TABLE IF EXISTS `club_administrators`;
CREATE TABLE `club_administrators` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_club_administrators_on_club_id` (`club_id`) USING BTREE,
KEY `index_club_administrators_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=433 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `club_amenities`
--
DROP TABLE IF EXISTS `club_amenities`;
CREATE TABLE `club_amenities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`amenity_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `club_bookings`
--
DROP TABLE IF EXISTS `club_bookings`;
CREATE TABLE `club_bookings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`date` datetime DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`nb_players` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`golf_cart` tinyint(1) DEFAULT NULL,
`rental_clubs` tinyint(1) DEFAULT NULL,
`responsible_id` int(11) DEFAULT NULL,
`current_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=412 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `club_course_reviews`
--
DROP TABLE IF EXISTS `club_course_reviews`;
CREATE TABLE `club_course_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_id` int(11) DEFAULT NULL,
`course_review_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_club_course_reviews_on_course_id` (`course_id`) USING BTREE,
KEY `index_club_course_reviews_on_course_review_id` (`course_review_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `club_requests`
--
DROP TABLE IF EXISTS `club_requests`;
CREATE TABLE `club_requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`seen` tinyint(1) DEFAULT 0,
`status` int(11) DEFAULT 0,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_club_requests_on_club_id` (`club_id`) USING BTREE,
KEY `index_club_requests_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=20212 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `club_words`
--
DROP TABLE IF EXISTS `club_words`;
CREATE TABLE `club_words` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`word` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`checked` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6504 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `club_words_clubs`
--
DROP TABLE IF EXISTS `club_words_clubs`;
CREATE TABLE `club_words_clubs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`club_word_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_mrr_on_club_id` (`club_id`) USING BTREE,
KEY `index_mrr_on_word_id` (`club_word_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=21102 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`encrypted_password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reset_password_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reset_password_sent_at` datetime DEFAULT NULL,
`remember_created_at` datetime DEFAULT NULL,
`sign_in_count` int(11) DEFAULT 0,
`current_sign_in_at` datetime DEFAULT NULL,
`last_sign_in_at` datetime DEFAULT NULL,
`current_sign_in_ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_sign_in_ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`firstname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`uid` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`oauth_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`oauth_secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`oauth_expires_at` datetime DEFAULT NULL,
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`from_country_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`handicap` int(11) DEFAULT NULL,
`work` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`points` int(11) DEFAULT 0,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`job` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sex` int(11) DEFAULT NULL,
`authentication_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enable_notifications` tinyint(1) DEFAULT 1,
`birthdate` date DEFAULT NULL,
`notification_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mixpanel_distinct_id` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`confirmation_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`confirmed_at` datetime DEFAULT NULL,
`confirmation_sent_at` datetime DEFAULT NULL,
`unconfirmed_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tokens` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`official` tinyint(1) DEFAULT 0,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`step` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'step1',
`ip_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`no_club` tinyint(1) DEFAULT 0,
`pro` tinyint(1) DEFAULT 0,
`ranking_id` int(11) DEFAULT NULL,
`address_id` int(11) DEFAULT NULL,
`private` tinyint(1) DEFAULT 0,
`miles` tinyint(1) DEFAULT NULL,
`fahrenheit` tinyint(1) DEFAULT NULL,
`ambassador_club_id` int(11) DEFAULT NULL,
`profile_picture_id` int(11) DEFAULT 2,
`cover_picture_id` int(11) DEFAULT 1,
`ios_app` tinyint(1) DEFAULT 0,
`android_app` tinyint(1) DEFAULT 0,
`verified_ambassador` tinyint(1) DEFAULT 0,
`signup_nb_courses_played` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_admin` tinyint(1) DEFAULT 0,
`location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`google_place_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_users_on_authentication_token` (`authentication_token`) USING BTREE,
KEY `index_users_on_provider_and_uid` (`uid`,`provider`) USING BTREE,
KEY `index_users_on_deleted_at` (`deleted_at`),
KEY `usersclubid` (`club_id`),
KEY `index_users_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=25705 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `clubs_administrators`
--
DROP TABLE IF EXISTS `clubs_administrators`;
CREATE TABLE `clubs_administrators` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `club_id` (`club_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `clubs_administrators_ibfk_1` FOREIGN KEY (`club_id`) REFERENCES `clubs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clubs_administrators_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `clubs_geographical_areas`
--
DROP TABLE IF EXISTS `clubs_geographical_areas`;
CREATE TABLE `clubs_geographical_areas` (
`club_id` int(11) DEFAULT NULL,
`geographical_area_id` int(11) DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
UNIQUE KEY `index_on_club_id_and_geographical_area_id` (`club_id`,`geographical_area_id`)
) ENGINE=InnoDB AUTO_INCREMENT=85433 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commentable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`commentable_id` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`author_id` int(11) DEFAULT NULL,
`author_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`public` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_comments_on_deleted_at` (`deleted_at`),
KEY `idxcommentcommentableid` (`commentable_id`),
KEY `idxcommentauthorid` (`author_id`)
) ENGINE=InnoDB AUTO_INCREMENT=15485 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `continents`
--
DROP TABLE IF EXISTS `continents`;
CREATE TABLE `continents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nb_top100` int(11) DEFAULT NULL,
`rank` int(11) DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_continents_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `countries`
--
DROP TABLE IF EXISTS `countries`;
CREATE TABLE `countries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`position` int(11) DEFAULT NULL,
`alpha2` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alpha3` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`calling` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`continent` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`numeric3` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nb_top100` int(11) DEFAULT NULL,
`google_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`google_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rank` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_countries_on_name` (`name`) USING BTREE,
KEY `idxcountriesgoogleid` (`google_id`),
KEY `idxcountrieslug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=267 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `course_reviews`
--
DROP TABLE IF EXISTS `course_reviews`;
CREATE TABLE `course_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`online` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `index_course_reviews_on_user_id` (`user_id`) USING BTREE,
KEY `index_course_reviews_on_score` (`score`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `courses`
--
DROP TABLE IF EXISTS `courses`;
CREATE TABLE `courses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`holes` int(11) DEFAULT NULL,
`par` int(11) DEFAULT NULL,
`length` int(11) DEFAULT NULL,
`slope` int(11) DEFAULT NULL,
`year_built` int(11) DEFAULT NULL,
`visitors` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`allowed_players` int(11) DEFAULT NULL,
`currency_id` int(11) DEFAULT NULL,
`green_fee_price` float DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`architect` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`designed_at` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`top100_world` int(11) DEFAULT NULL,
`top100_continent` int(11) DEFAULT NULL,
`top100_country` int(11) DEFAULT NULL,
`top100_area` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`course_record` int(11) DEFAULT NULL,
`gender_restriction` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_courses_on_club_id` (`club_id`) USING BTREE,
KEY `index_courses_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=67132 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `courses_architects`
--
DROP TABLE IF EXISTS `courses_architects`;
CREATE TABLE `courses_architects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_id` int(11) DEFAULT NULL,
`architect_id` int(11) DEFAULT NULL,
`firstname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20528 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `courses_golf_types`
--
DROP TABLE IF EXISTS `courses_golf_types`;
CREATE TABLE `courses_golf_types` (
`course_id` int(11) DEFAULT NULL,
`golf_type_id` int(11) DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2065 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `currencies`
--
DROP TABLE IF EXISTS `currencies`;
CREATE TABLE `currencies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `destinations`
--
DROP TABLE IF EXISTS `destinations`;
CREATE TABLE `destinations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`picture_id` int(11) DEFAULT NULL,
`location_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'destination',
`album_id` int(11) DEFAULT NULL,
`rank` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idxdestinatjonslug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `device_tokens`
--
DROP TABLE IF EXISTS `device_tokens`;
CREATE TABLE `device_tokens` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`device` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`push_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`one_signal_player_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `devicetokenuserid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=171375 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `discussions`
--
DROP TABLE IF EXISTS `discussions`;
CREATE TABLE `discussions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`discussion_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_size` int(11) DEFAULT NULL,
`picture_updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1759 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `discussions_users`
--
DROP TABLE IF EXISTS `discussions_users`;
CREATE TABLE `discussions_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`discussion_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`last_seen` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`last_received` datetime DEFAULT NULL,
`last_typing` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `discussionsuersdiscussiondi` (`discussion_id`),
KEY `discussionuseruserid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3501 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `driving_ranges`
--
DROP TABLE IF EXISTS `driving_ranges`;
CREATE TABLE `driving_ranges` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`range_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `email_notifications`
--
DROP TABLE IF EXISTS `email_notifications`;
CREATE TABLE `email_notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`activated` tinyint(1) DEFAULT 0,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_email_notifications_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=165245 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `email_types`
--
DROP TABLE IF EXISTS `email_types`;
CREATE TABLE `email_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `emailtypeuserid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11286 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `emails`
--
DROP TABLE IF EXISTS `emails`;
CREATE TABLE `emails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `events`
--
DROP TABLE IF EXISTS `events`;
CREATE TABLE `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`starts_at` datetime DEFAULT NULL,
`ends_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`eventable_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`eventable_id` int(11) DEFAULT NULL,
`public` tinyint(1) DEFAULT 0,
`fee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`perma` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` tinyint(1) DEFAULT 0,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`online` tinyint(1) DEFAULT 1,
`author_id` int(11) DEFAULT NULL,
`author_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cover_picture_id` int(11) DEFAULT 1,
`currency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`is_travel` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `index_events_on_club_id` (`club_id`) USING BTREE,
KEY `index_events_on_deleted_at` (`deleted_at`),
KEY `eventauthorid` (`author_id`),
KEY `index_events_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=1522 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `external_videos`
--
DROP TABLE IF EXISTS `external_videos`;
CREATE TABLE `external_videos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`thumbnail_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`media_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=861 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `feedbacks`
--
DROP TABLE IF EXISTS `feedbacks`;
CREATE TABLE `feedbacks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`navigator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_feedbacks_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `followings`
--
DROP TABLE IF EXISTS `followings`;
CREATE TABLE `followings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`followed_id` int(11) DEFAULT NULL,
`followed_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `idxfollowuser` (`user_id`,`followed_id`,`followed_type`) USING BTREE,
KEY `followedid` (`followed_id`),
KEY `idx_followings_userid` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=154947 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `friendly_id_slugs`
--
DROP TABLE IF EXISTS `friendly_id_slugs`;
CREATE TABLE `friendly_id_slugs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`sluggable_id` int(11) NOT NULL,
`sluggable_type` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_friendly_id_slugs_on_slug_and_sluggable_type` (`slug`(191),`sluggable_type`) USING BTREE,
KEY `index_friendly_id_slugs_on_sluggable_id` (`sluggable_id`) USING BTREE,
KEY `index_friendly_id_slugs_on_sluggable_type` (`sluggable_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=115834 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `gamers`
--
DROP TABLE IF EXISTS `gamers`;
CREATE TABLE `gamers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`game_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`validated` tinyint(1) DEFAULT 0,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_gamers_on_game_id` (`game_id`) USING BTREE,
KEY `index_gamers_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6751 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `games`
--
DROP TABLE IF EXISTS `games`;
CREATE TABLE `games` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`starts_at` date DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_games_on_club_id` (`club_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5350 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `geographical_areas`
--
DROP TABLE IF EXISTS `geographical_areas`;
CREATE TABLE `geographical_areas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`geographical_areable_id` int(11) DEFAULT NULL,
`geographical_areable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`picture_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_size` int(11) DEFAULT NULL,
`picture_updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_geographical_areas_on_parent_id` (`parent_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=416 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `glossary_terms`
--
DROP TABLE IF EXISTS `glossary_terms`;
CREATE TABLE `glossary_terms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`definition` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`slug` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`top_search` int(11) DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_glossary_terms_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=437 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `golf_types`
--
DROP TABLE IF EXISTS `golf_types`;
CREATE TABLE `golf_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `greenfees`
--
DROP TABLE IF EXISTS `greenfees`;
CREATE TABLE `greenfees` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`comment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`firstname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`responsible_id` int(11) DEFAULT NULL,
`current_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`priority` int(11) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=259 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `hits`
--
DROP TABLE IF EXISTS `hits`;
CREATE TABLE `hits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_hits_on_club_id` (`club_id`) USING BTREE,
KEY `index_hits_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1248547 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `hosters`
--
DROP TABLE IF EXISTS `hosters`;
CREATE TABLE `hosters` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`event_id` int(11) DEFAULT NULL,
`role_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_hosters_on_user_id` (`user_id`) USING BTREE,
KEY `index_hosters_on_event_id` (`event_id`) USING BTREE,
KEY `index_hosters_on_role_id` (`role_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=423 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `hotel_bookings`
--
DROP TABLE IF EXISTS `hotel_bookings`;
CREATE TABLE `hotel_bookings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`date` datetime DEFAULT NULL,
`hotel_id` int(11) DEFAULT NULL,
`nb_players` int(11) DEFAULT NULL,
`nb_nights` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `hotels`
--
DROP TABLE IF EXISTS `hotels`;
CREATE TABLE `hotels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zip` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city_hotel` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cc1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`classs` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`latitude` float DEFAULT NULL,
`public_ranking` float DEFAULT NULL,
`hotel_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo_url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`continent_id` float DEFAULT NULL,
`review_score` float DEFAULT NULL,
`photo_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo_file_size` int(11) DEFAULT NULL,
`photo_updated_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`id_booking` bigint(20) DEFAULT NULL,
`image_file_name` varchar(255) DEFAULT NULL,
`image_content_type` varchar(255) DEFAULT NULL,
`image_file_size` int(11) DEFAULT NULL,
`image_updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_id_booking` (`id_booking`),
KEY `index_hotels_on_longitude` (`longitude`) USING BTREE,
KEY `index_hotels_on_latitude` (`latitude`) USING BTREE,
KEY `index_hotels_on_name` (`name`(191)) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2971862 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `influencers`
--
DROP TABLE IF EXISTS `influencers`;
CREATE TABLE `influencers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`priority` int(11) DEFAULT NULL,
`influencable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`influencable_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=166 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `internal_videos`
--
DROP TABLE IF EXISTS `internal_videos`;
CREATE TABLE `internal_videos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`media_id` int(11) DEFAULT NULL,
`video_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_file_size` int(11) DEFAULT NULL,
`video_updated_at` datetime DEFAULT NULL,
`media_processing` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`video_width` int(11) DEFAULT NULL,
`video_height` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2318 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `invitations`
--
DROP TABLE IF EXISTS `invitations`;
CREATE TABLE `invitations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invitable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invitable_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`invited_user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `invitableid` (`invitable_id`),
KEY `userid` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=51037 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `items`
--
DROP TABLE IF EXISTS `items`;
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`position` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`preposition` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`year` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `job_offers`
--
DROP TABLE IF EXISTS `job_offers`;
CREATE TABLE `job_offers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`department` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`active` tinyint(1) DEFAULT NULL,
`slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_job_offers_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `likes`
--
DROP TABLE IF EXISTS `likes`;
CREATE TABLE `likes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`likable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`likable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`author_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_likes_on_likable_id_and_likable_type` (`likable_id`,`likable_type`) USING BTREE,
KEY `index_likes_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=121242 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `linked_clubs`
--
DROP TABLE IF EXISTS `linked_clubs`;
CREATE TABLE `linked_clubs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_id` int(11) DEFAULT NULL,
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`persistent` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2883 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `logins`
--
DROP TABLE IF EXISTS `logins`;
CREATE TABLE `logins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logged_in_at` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`device_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`device_type` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_logins_on_logged_in_at` (`logged_in_at`) USING BTREE,
KEY `index_logins_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5104 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `medias`
--
DROP TABLE IF EXISTS `medias`;
CREATE TABLE `medias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mediable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mediable_id` int(11) DEFAULT NULL,
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14151 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `membership_wishes`
--
DROP TABLE IF EXISTS `membership_wishes`;
CREATE TABLE `membership_wishes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`has_accepted` tinyint(1) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_membership_wishes_on_user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
--
-- Table structure for table `merged_pictures`
--
DROP TABLE IF EXISTS `merged_pictures`;
CREATE TABLE `merged_pictures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `merged_pictures_pictures`
--
DROP TABLE IF EXISTS `merged_pictures_pictures`;
CREATE TABLE `merged_pictures_pictures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`merged_picture_id` int(11) DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_merged_pictures_pictures_on_merged_picture_id` (`merged_picture_id`),
KEY `index_merged_pictures_pictures_on_picture_id` (`picture_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `merged_relationships`
--
DROP TABLE IF EXISTS `merged_relationships`;
CREATE TABLE `merged_relationships` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `merged_relationships_relationships`
--
DROP TABLE IF EXISTS `merged_relationships_relationships`;
CREATE TABLE `merged_relationships_relationships` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`merged_relationship_id` int(11) DEFAULT NULL,
`relationship_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_mrr_on_merged_relationship_id` (`merged_relationship_id`) USING BTREE,
KEY `index_mrr_on_relationship_id` (`relationship_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `message_reads`
--
DROP TABLE IF EXISTS `message_reads`;
CREATE TABLE `message_reads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`message_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `useridmessageread` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10780 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`discussion_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `index_messages_on_discussion_id` (`discussion_id`) USING BTREE,
KEY `index_messages_on_discussion_id_and_sender_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10845 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `metatags`
--
DROP TABLE IF EXISTS `metatags`;
CREATE TABLE `metatags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(400) DEFAULT NULL,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1383557 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `meteos`
--
DROP TABLE IF EXISTS `meteos`;
CREATE TABLE `meteos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wind` int(11) DEFAULT NULL,
`longitude` int(11) DEFAULT NULL,
`latitude` int(11) DEFAULT NULL,
`icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`day` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`temperature_c` int(11) DEFAULT NULL,
`temperature_f` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_meteos_on_longitude` (`longitude`) USING BTREE,
KEY `index_meteos_on_latitude` (`latitude`) USING BTREE,
KEY `index_meteos_on_day` (`day`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11031684 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `models_links`
--
DROP TABLE IF EXISTS `models_links`;
CREATE TABLE `models_links` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`source_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`source_id` int(11) DEFAULT NULL,
`target_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`target_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15437 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `multimedias`
--
DROP TABLE IF EXISTS `multimedias`;
CREATE TABLE `multimedias` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_id` int(11) DEFAULT NULL,
`owner_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`media_id` int(11) DEFAULT NULL,
`media_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41340 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notation_labels`
--
DROP TABLE IF EXISTS `notation_labels`;
CREATE TABLE `notation_labels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notation_id` int(11) DEFAULT NULL,
`label` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notations`
--
DROP TABLE IF EXISTS `notations`;
CREATE TABLE `notations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notable_id` int(11) DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`pros` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cons` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notices`
--
DROP TABLE IF EXISTS `notices`;
CREATE TABLE `notices` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`review_id` int(11) DEFAULT NULL,
`notice_type` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `notification_dispatches`
--
DROP TABLE IF EXISTS `notification_dispatches`;
CREATE TABLE `notification_dispatches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dispatcher_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`args` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`current_user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`error` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26641 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notification_notifies`
--
DROP TABLE IF EXISTS `notification_notifies`;
CREATE TABLE `notification_notifies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dispatch_id` int(11) DEFAULT NULL,
`notifier_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`error` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`disabled` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`identifier` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `dispatch_id` (`dispatch_id`),
CONSTRAINT `notification_notifies_ibfk_1` FOREIGN KEY (`dispatch_id`) REFERENCES `notification_dispatches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=46933 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notification_notifies_targets`
--
DROP TABLE IF EXISTS `notification_notifies_targets`;
CREATE TABLE `notification_notifies_targets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notify_id` int(11) DEFAULT NULL,
`target_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`target_id` int(11) DEFAULT NULL,
`disabled` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `notify_id` (`notify_id`),
CONSTRAINT `notification_notifies_targets_ibfk_1` FOREIGN KEY (`notify_id`) REFERENCES `notification_notifies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=520059 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `notifications`
--
DROP TABLE IF EXISTS `notifications`;
CREATE TABLE `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`author_id` int(11) DEFAULT NULL,
`notifable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notifable_id` int(11) DEFAULT NULL,
`seen` tinyint(1) DEFAULT 0,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`notified_id` int(11) DEFAULT NULL,
`notified_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`author_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`read` tinyint(1) DEFAULT 0,
`notification_type` int(11) DEFAULT NULL,
`params` text DEFAULT NULL,
`post_id` int(11) DEFAULT NULL,
`version` int(11) DEFAULT 2,
`grouping_key` int(11) DEFAULT 0,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_likes_on_notifable_id_and_notifable_type` (`notifable_id`,`notifable_type`) USING BTREE,
KEY `notifiedid` (`notified_id`)
) ENGINE=InnoDB AUTO_INCREMENT=943143 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `opening_days`
--
DROP TABLE IF EXISTS `opening_days`;
CREATE TABLE `opening_days` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`day` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`open_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`close_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fullday` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`open` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=435 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `page_admins`
--
DROP TABLE IF EXISTS `page_admins`;
CREATE TABLE `page_admins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`page_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=274 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `pages`
--
DROP TABLE IF EXISTS `pages`;
CREATE TABLE `pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_size` int(11) DEFAULT NULL,
`logo_updated_at` datetime DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`hide` tinyint(1) DEFAULT 1,
`logo_picture_id` int(11) DEFAULT 3,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`category` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`suggestion_priority` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_pages_on_deleted_at` (`deleted_at`),
KEY `index_pages_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=900065 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `pdfs`
--
DROP TABLE IF EXISTS `pdfs`;
CREATE TABLE `pdfs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_id` int(11) DEFAULT NULL,
`file_file_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_content_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_file_size` int(11) DEFAULT NULL,
`file_updated_at` datetime DEFAULT NULL,
`media_processing` tinyint(1) DEFAULT 1,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `pictures`
--
DROP TABLE IF EXISTS `pictures`;
CREATE TABLE `pictures` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`album_id` int(11) DEFAULT NULL,
`picture_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_file_size` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`position` int(11) DEFAULT NULL,
`width` int(11) DEFAULT NULL,
`height` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`picture_url_shortcut` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`media_processing` tinyint(4) DEFAULT 0,
`media_id` int(11) DEFAULT NULL,
`album_position` float DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_pictures_on_album_id` (`album_id`) USING BTREE,
KEY `index_pictures_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=188021 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `places`
--
DROP TABLE IF EXISTS `places`;
CREATE TABLE `places` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`placable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`placable_id` int(11) DEFAULT NULL,
`hand_picked` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`distance` float DEFAULT NULL,
`priority` int(11) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `index_places_on_club_id` (`club_id`) USING BTREE,
KEY `idx_count_by_user` (`user_id`),
KEY `placableid` (`placable_id`)
) ENGINE=InnoDB AUTO_INCREMENT=17165005 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `post_views`
--
DROP TABLE IF EXISTS `post_views`;
CREATE TABLE `post_views` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`post_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=216716 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `posts`
--
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`postable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`shared_from` int(11) DEFAULT NULL,
`posted_id` int(11) DEFAULT NULL,
`posted_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`items` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_link` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`web_link` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`publish` datetime DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`author_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`action` int(11) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `postauthorid` (`author_id`),
KEY `postpostedid` (`posted_id`),
KEY `postpostableid` (`postable_id`)
) ENGINE=InnoDB AUTO_INCREMENT=145462 DEFAULT CHARSET=utf8mb4;
-- D_ELIMITER ;;
-- D_ELIMITER ;
--
-- Table structure for table `posts_views`
--
DROP TABLE IF EXISTS `posts_views`;
CREATE TABLE `posts_views` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`post_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `post_id` (`post_id`),
CONSTRAINT `posts_views_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
CONSTRAINT `posts_views_ibfk_2` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21881 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `prices`
--
DROP TABLE IF EXISTS `prices`;
CREATE TABLE `prices` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pricable_id` int(11) DEFAULT NULL,
`pricable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price_value` int(11) DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6559 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `prizes`
--
DROP TABLE IF EXISTS `prizes`;
CREATE TABLE `prizes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`picture_id` int(11) DEFAULT NULL,
`description` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sponsor_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `products`
--
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`brand_id` int(11) DEFAULT NULL,
`item_id` int(11) DEFAULT NULL,
`photo_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo_file_size` int(11) DEFAULT NULL,
`photo_updated_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`year` int(11) DEFAULT NULL,
`product_type` varchar(255) DEFAULT NULL,
`album_id` int(11) DEFAULT NULL,
`description` text DEFAULT NULL,
`price_id` int(11) DEFAULT NULL,
`spec_picture_id` int(11) DEFAULT NULL,
`slug` varchar(255) DEFAULT NULL,
`internal_video_id` int(11) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`score` float DEFAULT NULL,
`score_feel` float DEFAULT NULL,
`score_accuracy` float DEFAULT NULL,
`score_distance` float DEFAULT NULL,
`score_forgiveness` float DEFAULT NULL,
`score_design` float DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`gender_restriction` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_products_on_name` (`name`) USING BTREE,
KEY `index_products_on_brand_id` (`brand_id`) USING BTREE,
KEY `index_products_on_item_id` (`item_id`) USING BTREE,
KEY `index_products_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=1891 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `products_reviews`
--
DROP TABLE IF EXISTS `products_reviews`;
CREATE TABLE `products_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pros` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cons` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`score_feel` int(11) DEFAULT NULL,
`score_accuracy` int(11) DEFAULT NULL,
`score_distance` int(11) DEFAULT NULL,
`score_forgiveness` int(11) DEFAULT NULL,
`score_design` int(11) DEFAULT NULL,
`online` tinyint(1) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`product_id` int(11) DEFAULT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `product_id` (`product_id`),
CONSTRAINT `products_reviews_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `products_reviews_ibfk_2` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `rankings`
--
DROP TABLE IF EXISTS `rankings`;
CREATE TABLE `rankings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23671 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `relationships`
--
DROP TABLE IF EXISTS `relationships`;
CREATE TABLE `relationships` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`target_id` int(11) DEFAULT NULL,
`state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`target_state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `idxuniqusertarget` (`user_id`,`target_id`) USING BTREE,
KEY `idx_target` (`target_id`) USING BTREE,
KEY `idx_user_issou` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=355135 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `reports`
--
DROP TABLE IF EXISTS `reports`;
CREATE TABLE `reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`reportable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reportable_id` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_reports_on_reportable_type_and_reportable_id` (`reportable_type`,`reportable_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `restaurants`
--
DROP TABLE IF EXISTS `restaurants`;
CREATE TABLE `restaurants` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cooking_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `review_stats`
--
DROP TABLE IF EXISTS `review_stats`;
CREATE TABLE `review_stats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`nb_reviews` int(11) DEFAULT NULL,
`average` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `clubidreviewstat` (`club_id`)
) ENGINE=InnoDB AUTO_INCREMENT=30670 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `reviews`
--
DROP TABLE IF EXISTS `reviews`;
CREATE TABLE `reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`online` tinyint(1) DEFAULT 0,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `index_reviews_on_user_id` (`user_id`) USING BTREE,
KEY `index_reviews_on_club_id` (`club_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=25027 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`resource_id` int(11) DEFAULT NULL,
`resource_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `saved_errors`
--
DROP TABLE IF EXISTS `saved_errors`;
CREATE TABLE `saved_errors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`current_user_id` int(11) DEFAULT NULL,
`environment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`kind` int(11) DEFAULT NULL,
`code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`operation_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`origin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`variables` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`query` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`stack` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`num_occurences` int(11) DEFAULT NULL,
`num_occurences_when_discarded` int(11) DEFAULT NULL,
`discarded_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_agent` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32121 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `schema_migrations`
--
DROP TABLE IF EXISTS `schema_migrations`;
CREATE TABLE `schema_migrations` (
`version` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
UNIQUE KEY `unique_schema_migrations` (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `serialized_amenities`
--
DROP TABLE IF EXISTS `serialized_amenities`;
CREATE TABLE `serialized_amenities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`serialized_data` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`approved` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`session_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_sessions_on_session_id` (`session_id`) USING BTREE,
KEY `index_sessions_on_updated_at` (`updated_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=839446 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `shaft_flexes`
--
DROP TABLE IF EXISTS `shaft_flexes`;
CREATE TABLE `shaft_flexes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`torque_min` float DEFAULT NULL,
`torque_max` float DEFAULT NULL,
`flex_type_id` int(11) DEFAULT NULL,
`shaft_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2096 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `shaft_flexes_types`
--
DROP TABLE IF EXISTS `shaft_flexes_types`;
CREATE TABLE `shaft_flexes_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `shaft_flexes_weights`
--
DROP TABLE IF EXISTS `shaft_flexes_weights`;
CREATE TABLE `shaft_flexes_weights` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`weight` float DEFAULT NULL,
`flex_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1696 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `shaft_products`
--
DROP TABLE IF EXISTS `shaft_products`;
CREATE TABLE `shaft_products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`brand_id` int(11) DEFAULT NULL,
`price_id` int(11) DEFAULT NULL,
`album_id` int(11) DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`internal_video_id` int(11) DEFAULT NULL,
`gender_restriction` int(11) DEFAULT NULL,
`item_type` int(11) DEFAULT NULL,
`launch` int(11) DEFAULT NULL,
`spin` int(11) DEFAULT NULL,
`length` float DEFAULT NULL,
`butt_frequency` float DEFAULT NULL,
`tip_frequency` float DEFAULT NULL,
`tip_diameter` float DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_shaft_products_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=775 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `shoes_sizes`
--
DROP TABLE IF EXISTS `shoes_sizes`;
CREATE TABLE `shoes_sizes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`size` float DEFAULT NULL,
`clothes_product_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7919 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `signup_stats_followings`
--
DROP TABLE IF EXISTS `signup_stats_followings`;
CREATE TABLE `signup_stats_followings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`followed_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`followed_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=160441 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `signup_stats_user_suggestions`
--
DROP TABLE IF EXISTS `signup_stats_user_suggestions`;
CREATE TABLE `signup_stats_user_suggestions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`num_requests` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3410 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `simple_reviews`
--
DROP TABLE IF EXISTS `simple_reviews`;
CREATE TABLE `simple_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`author_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`reviewed_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reviewed_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `index_simple_reviews_on_deleted_at` (`deleted_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `sinup_stats_followings`
--
DROP TABLE IF EXISTS `sinup_stats_followings`;
CREATE TABLE `sinup_stats_followings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`followed_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`followed_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `slopes`
--
DROP TABLE IF EXISTS `slopes`;
CREATE TABLE `slopes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`length` int(11) DEFAULT NULL,
`slope` int(11) DEFAULT NULL,
`par` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=129 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `slugs`
--
DROP TABLE IF EXISTS `slugs`;
CREATE TABLE `slugs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`resource_id` int(11) DEFAULT NULL,
`resource_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`base_slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`suffix` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=68574 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `social_network_accounts`
--
DROP TABLE IF EXISTS `social_network_accounts`;
CREATE TABLE `social_network_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`provider` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`appid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`publish` tinyint(1) DEFAULT 0,
`facebook_user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picture_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`secret_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=505 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `sponsors`
--
DROP TABLE IF EXISTS `sponsors`;
CREATE TABLE `sponsors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo_file_size` int(11) DEFAULT NULL,
`logo_updated_at` datetime DEFAULT NULL,
`sponsorable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sponsorable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`website` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `sponsorableid` (`sponsorable_id`)
) ENGINE=InnoDB AUTO_INCREMENT=841 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `statuses`
--
DROP TABLE IF EXISTS `statuses`;
CREATE TABLE `statuses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`video_file_size` int(11) DEFAULT NULL,
`video_updated_at` datetime DEFAULT NULL,
`image_file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image_content_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image_file_size` int(11) DEFAULT NULL,
`image_updated_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`private` tinyint(1) DEFAULT 0,
`publish` datetime DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`author_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`external_video_id` int(11) DEFAULT NULL,
`online` tinyint(1) DEFAULT 1,
`video_processing` tinyint(1) DEFAULT NULL,
`image_width` int(11) DEFAULT NULL,
`image_height` int(11) DEFAULT NULL,
`media_processing` tinyint(1) DEFAULT 0,
`push` tinyint(1) DEFAULT 0,
`video_width` int(11) DEFAULT NULL,
`video_height` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `statusauthorid` (`author_id`)
) ENGINE=InnoDB AUTO_INCREMENT=23303 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `sticky_note_users`
--
DROP TABLE IF EXISTS `sticky_note_users`;
CREATE TABLE `sticky_note_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`sticky_note_id` int(11) DEFAULT NULL,
`seen` tinyint(1) DEFAULT NULL,
`clicked` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `sticky_notes`
--
DROP TABLE IF EXISTS `sticky_notes`;
CREATE TABLE `sticky_notes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`picture_id` int(11) DEFAULT NULL,
`external_video_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `sticky_notes_users`
--
DROP TABLE IF EXISTS `sticky_notes_users`;
CREATE TABLE `sticky_notes_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`sticky_note_id` int(11) DEFAULT NULL,
`seen` tinyint(1) DEFAULT 0,
`clicked` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `sticky_note_id` (`sticky_note_id`),
CONSTRAINT `sticky_notes_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `sticky_notes_users_ibfk_2` FOREIGN KEY (`sticky_note_id`) REFERENCES `sticky_notes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `suggestions`
--
DROP TABLE IF EXISTS `suggestions`;
CREATE TABLE `suggestions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`suggested_user_id` int(11) DEFAULT NULL,
`nb_time_displayed` int(11) DEFAULT 0,
`rejected` tinyint(1) DEFAULT 0,
`accepted` tinyint(1) DEFAULT 0,
`match_score` int(11) DEFAULT 0,
PRIMARY KEY (`id`),
KEY `index_suggestions_on_user_id` (`user_id`) USING BTREE,
KEY `index_suggestions_on_suggested_user_id` (`suggested_user_id`) USING BTREE,
KEY `user_id_suggested_user_id` (`user_id`,`suggested_user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14373388521 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `suggestions_views`
--
DROP TABLE IF EXISTS `suggestions_views`;
CREATE TABLE `suggestions_views` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`suggested_user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `suggested_user_id` (`suggested_user_id`),
KEY `user_id_suggested_user_id` (`user_id`,`suggested_user_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `suggestions_views_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7144755 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `tagged_items`
--
DROP TABLE IF EXISTS `tagged_items`;
CREATE TABLE `tagged_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tagged_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tagged_id` int(11) DEFAULT NULL,
`taggable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`taggable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `taggedid` (`tagged_id`)
) ENGINE=InnoDB AUTO_INCREMENT=939 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `tags`
--
DROP TABLE IF EXISTS `tags`;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tagged_id` int(11) DEFAULT NULL,
`tagged_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `texts`
--
DROP TABLE IF EXISTS `texts`;
CREATE TABLE `texts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `tokens`
--
DROP TABLE IF EXISTS `tokens`;
CREATE TABLE `tokens` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`token` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`application` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`refresh_token` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`refresh_token_expire` datetime DEFAULT NULL,
`scope` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expire_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT '1970-01-01 00:00:00',
PRIMARY KEY (`id`),
KEY `index_token_user` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21936 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `travels`
--
DROP TABLE IF EXISTS `travels`;
CREATE TABLE `travels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`starts_at` datetime DEFAULT NULL,
`ends_at` datetime DEFAULT NULL,
`budget` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`firstname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lastname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`responsible_id` int(11) DEFAULT NULL,
`current_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comment_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`priority` int(11) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=108 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `trending_categories`
--
DROP TABLE IF EXISTS `trending_categories`;
CREATE TABLE `trending_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`item_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`randomize` tinyint(1) DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ranking_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`virtual_type` int(11) DEFAULT -1,
`parent_area_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_area_id` int(11) DEFAULT NULL,
`sitemap` tinyint(1) DEFAULT 1,
PRIMARY KEY (`id`),
KEY `index_trending_categories_on_slug` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=359 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `trending_categories_items`
--
DROP TABLE IF EXISTS `trending_categories_items`;
CREATE TABLE `trending_categories_items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) DEFAULT NULL,
`item_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16027 DEFAULT CHARSET=latin1;
--
-- Table structure for table `unsent_pushes`
--
DROP TABLE IF EXISTS `unsent_pushes`;
CREATE TABLE `unsent_pushes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`push_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`data_id` int(11) DEFAULT NULL,
`error_message` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`error_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `unsent_pushes_users`
--
DROP TABLE IF EXISTS `unsent_pushes_users`;
CREATE TABLE `unsent_pushes_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`unsent_push_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Table structure for table `user_club_activities`
--
DROP TABLE IF EXISTS `user_club_activities`;
CREATE TABLE `user_club_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`club_id` int(11) DEFAULT NULL,
`review_score` int(11) DEFAULT NULL,
`following` tinyint(1) DEFAULT NULL,
`checked_in` tinyint(1) DEFAULT NULL,
`played` int(11) DEFAULT 0,
`wishing` tinyint(1) DEFAULT NULL,
`wishing_membership` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `club_id` (`club_id`),
KEY `user_id_idx` (`user_id`) USING BTREE,
CONSTRAINT `user_club_activities_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `user_club_activities_ibfk_2` FOREIGN KEY (`club_id`) REFERENCES `clubs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=144550 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `user_products`
--
DROP TABLE IF EXISTS `user_products`;
CREATE TABLE `user_products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`item_id` int(11) DEFAULT NULL,
`product_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`year` int(11) DEFAULT NULL,
`product_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_equipment_on_user_id` (`user_id`) USING BTREE,
KEY `index_equipment_on_product_id` (`product_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6915 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `usernames`
--
DROP TABLE IF EXISTS `usernames`;
CREATE TABLE `usernames` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`usernamable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`usernamable_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_usernames_on_usernamable_id_and_usernamable_type` (`usernamable_id`,`usernamable_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14231 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `users_interactions`
--
DROP TABLE IF EXISTS `users_interactions`;
CREATE TABLE `users_interactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`resource_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`resource_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`platform` int(11) DEFAULT NULL,
`action` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`referrer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=448632 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `users_roles`
--
DROP TABLE IF EXISTS `users_roles`;
CREATE TABLE `users_roles` (
`user_id` int(11) DEFAULT NULL,
`role_id` int(11) DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`),
KEY `index_users_roles_on_user_id_and_role_id` (`user_id`,`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `versions`
--
DROP TABLE IF EXISTS `versions`;
CREATE TABLE `versions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`item_id` int(11) NOT NULL,
`event` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`whodunnit` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`object` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_versions_on_item_type` (`item_type`) USING BTREE,
KEY `index_versions_on_item_id` (`item_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=528658 DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `villas`
--
DROP TABLE IF EXISTS `villas`;
CREATE TABLE `villas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`link` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`latitude` float DEFAULT NULL,
`longitude` float DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `visits`
--
DROP TABLE IF EXISTS `visits`;
CREATE TABLE `visits` (
`id` binary(16) NOT NULL,
`visitor_id` binary(16) DEFAULT NULL,
`ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`referrer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`landing_page` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`referring_domain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`search_keyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`browser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`os` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`device_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`screen_height` int(11) DEFAULT NULL,
`screen_width` int(11) DEFAULT NULL,
`country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`utm_source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`utm_medium` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`utm_term` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`utm_content` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`utm_campaign` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`started_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_visits_on_id` (`id`) USING BTREE,
KEY `index_visits_on_visitor_id` (`visitor_id`) USING BTREE,
KEY `index_visits_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Table structure for table `votes`
--
DROP TABLE IF EXISTS `votes`;
CREATE TABLE `votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`resource_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`value` int(11) DEFAULT NULL,
`resource_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `review_id` (`resource_id`)
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `weathers`
--
DROP TABLE IF EXISTS `weathers`;
CREATE TABLE `weathers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`temp_min` int(11) DEFAULT NULL,
`temp_max` int(11) DEFAULT NULL,
`wind_speed` int(11) DEFAULT NULL,
`weathering` int(11) DEFAULT NULL,
`weatherable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`weatherable_id` int(11) DEFAULT NULL,
`wind_direction` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30170480 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `wishes`
--
DROP TABLE IF EXISTS `wishes`;
CREATE TABLE `wishes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`wishable_id` int(11) DEFAULT NULL,
`wishable_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_wishes_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=779 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dump completed on 2019-06-05 17:52:38 | the_stack |
CREATE DATABASE /*!32312 IF NOT EXISTS*/`ifly_cynosure_3` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */;
USE `ifly_cynosure_3`;
-- ----------------------------
-- Table structure for tb_cluster
-- ----------------------------
DROP TABLE IF EXISTS `tb_cluster`;
CREATE TABLE `tb_cluster` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '集群唯一标识',
`name` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '集群名称',
`push_url` varchar(500) COLLATE utf8_bin NOT NULL COMMENT '集群推送地址',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_name` (`name`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_dic
-- ----------------------------
DROP TABLE IF EXISTS `tb_dic`;
CREATE TABLE `tb_dic` (
`type` varchar(1) NOT NULL,
`type_name` varchar(20) NOT NULL,
PRIMARY KEY (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for tb_gray_group
-- ----------------------------
DROP TABLE IF EXISTS `tb_gray_group`;
CREATE TABLE `tb_gray_group` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '版本id',
`version_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '版本id',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`name` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '灰度组名称',
`content` text COLLATE utf8_bin COMMENT '推送实例内容',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '版本描述',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_name_version_id` (`version_id`,`name`) USING BTREE,
KEY `idx_service_id` (`version_id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_lastest_search
-- ----------------------------
DROP TABLE IF EXISTS `tb_lastest_search`;
CREATE TABLE `tb_lastest_search` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '唯一标识',
`user_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '用户id',
`url` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '请求地址',
`pre_condition` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '前置条件',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_user_id_url` (`user_id`,`url`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_loadbalance
-- ----------------------------
DROP TABLE IF EXISTS `tb_loadbalance`;
CREATE TABLE `tb_loadbalance` (
`name` varchar(50) COLLATE utf8_bin NOT NULL,
`abbr` varchar(100) COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`name`,`abbr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_project
-- ----------------------------
DROP TABLE IF EXISTS `tb_project`;
CREATE TABLE `tb_project` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '项目id',
`name` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '项目名称',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '项目描述',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_name` (`name`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_project_member
-- ----------------------------
DROP TABLE IF EXISTS `tb_project_member`;
CREATE TABLE `tb_project_member` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '唯一标识',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`project_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '项目id',
`creator` tinyint(4) NOT NULL COMMENT '是否为创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_user_id_project_id` (`user_id`,`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_role
-- ----------------------------
DROP TABLE IF EXISTS `tb_role`;
CREATE TABLE `tb_role` (
`role_name` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '角色名称',
`role_type` tinyint(4) NOT NULL COMMENT '角色类型',
PRIMARY KEY (`role_name`,`role_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service
-- ----------------------------
DROP TABLE IF EXISTS `tb_service`;
CREATE TABLE `tb_service` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '服务id',
`group_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '服务组id',
`name` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务名称',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '服务描述',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_group_id_name` (`group_id`,`name`),
KEY `idx_user_id` (`user_id`),
KEY `idx_group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_api_version
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_api_version`;
CREATE TABLE `tb_service_api_version` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '版本id',
`service_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '服务id',
`api_version` varchar(20) COLLATE utf8_bin NOT NULL COMMENT '版本号',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '版本描述',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_service_id_version` (`api_version`,`service_id`),
KEY `idx_service_id` (`service_id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_config
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_config`;
CREATE TABLE `tb_service_config` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '配置id',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`version_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '版本id',
`gray_group_id` varchar(50) COLLATE utf8_bin NOT NULL DEFAULT '0' COMMENT '灰度组id,正常组默认为0',
`name` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '配置名称',
`path` varchar(500) COLLATE utf8_bin NOT NULL COMMENT '配置路径',
`content` longblob COMMENT '配置内容',
`md5` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '配置内容md5值',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '配置描述',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_version_id_group_id_name` (`version_id`,`gray_group_id`,`name`) USING BTREE,
KEY `idx_user_id` (`user_id`),
KEY `idx_version_id` (`version_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_config_history
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_config_history`;
CREATE TABLE `tb_service_config_history` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '配置id',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`config_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '配置id',
`content` longblob COMMENT '配置内容',
`md5` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '配置内容md5值',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '配置描述',
`push_version` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '推送版本号',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_user_id` (`user_id`),
KEY `idx_config_id` (`config_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_config_push_feedback
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_config_push_feedback`;
CREATE TABLE `tb_service_config_push_feedback` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '推送反馈id',
`push_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '推送id',
`project` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '项目名称',
`service_group` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '服务组名称',
`service` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '服务名称',
`version` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '服务版本号',
`gray_group_id` varchar(50) COLLATE utf8_bin NOT NULL,
`config` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '配置名称',
`addr` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '地址',
`update_status` tinyint(4) DEFAULT NULL COMMENT '更新状态',
`load_status` tinyint(4) DEFAULT NULL COMMENT '加载状态',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`load_time` datetime DEFAULT NULL COMMENT '加载时间',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_push_id` (`push_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_config_push_history
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_config_push_history`;
CREATE TABLE `tb_service_config_push_history` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '推送id',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`gray_group_id` varchar(50) COLLATE utf8_bin NOT NULL,
`project` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '项目名称',
`service_group` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务组名称',
`service` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务名称',
`version` varchar(20) COLLATE utf8_bin NOT NULL COMMENT '服务版本号',
`cluster_text` text COLLATE utf8_bin NOT NULL COMMENT '集群',
`service_config_text` text COLLATE utf8_bin NOT NULL COMMENT '服务配置',
`push_time` datetime DEFAULT NULL COMMENT '推送时间',
PRIMARY KEY (`id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_discovery_push_feedback
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_discovery_push_feedback`;
CREATE TABLE `tb_service_discovery_push_feedback` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '推送反馈id',
`push_id` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '推送id',
`project` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '项目名称',
`service_group` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '服务组名称',
`consumer_service` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '消费端服务名称',
`consumer_version` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '消费端版本',
`provider_service` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '提供端服务名称',
`provider_version` varchar(20) COLLATE utf8_bin DEFAULT NULL COMMENT '提供端版本',
`addr` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '地址',
`update_status` tinyint(4) DEFAULT NULL COMMENT '更新状态',
`load_status` tinyint(4) DEFAULT NULL COMMENT '加载状态',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`load_time` datetime DEFAULT NULL COMMENT '加载时间',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`api_version` varchar(20) COLLATE utf8_bin DEFAULT NULL,
`type` varchar(1) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_push_id` (`push_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_discovery_push_history
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_discovery_push_history`;
CREATE TABLE `tb_service_discovery_push_history` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '服务发现推送id',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`project` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '项目名称',
`service_group` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务组名称',
`service` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务名称',
`version` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务版本',
`cluster_text` text COLLATE utf8_bin NOT NULL COMMENT '集群',
`push_time` datetime DEFAULT NULL COMMENT '推送时间',
`api_version` varchar(20) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_group
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_group`;
CREATE TABLE `tb_service_group` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '唯一标识',
`project_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '项目id',
`name` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '服务组名称',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '服务组描述',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_project_id_name` (`project_id`,`name`),
KEY `idx_user_id` (`user_id`),
KEY `idx_project_id` (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_service_version
-- ----------------------------
DROP TABLE IF EXISTS `tb_service_version`;
CREATE TABLE `tb_service_version` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '版本id',
`service_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '服务id',
`version` varchar(20) COLLATE utf8_bin NOT NULL COMMENT '版本号',
`user_id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户id',
`description` varchar(500) COLLATE utf8_bin DEFAULT NULL COMMENT '版本描述',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_service_id_version` (`version`,`service_id`),
KEY `idx_service_id` (`service_id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
CREATE TABLE `tb_user` (
`id` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '唯一标识',
`account` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '账号',
`password` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '密码',
`user_name` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '用户姓名',
`phone` varchar(50) COLLATE utf8_bin NOT NULL COMMENT '联系方式',
`email` varchar(100) COLLATE utf8_bin NOT NULL COMMENT '邮箱',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`role_type` tinyint(4) NOT NULL DEFAULT '2' COMMENT '角色类型 1.管理员 2.普通用户',
PRIMARY KEY (`id`),
UNIQUE KEY `uq_account` (`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*Data for the table `tb_loadbalance` */
insert into `tb_loadbalance`(`name`,`abbr`) values
('一致性Hash','ConsistentHash'),
('最少活跃调用数','LeastActive'),
('轮循','RoundRobin'),
('随机','Random');
/*Data for the table `tb_role` */
insert into `tb_role`(`role_name`,`role_type`) values
('admin',1),
('user',2);
/*Data for the table `tb_user` */
insert into `tb_user`(`id`,`account`,`password`,`user_name`,`phone`,`email`,`create_time`,`update_time`,`role_type`) values
('3688919024172793856','admin','b301eba23dc7ab9df6b7315de2ac222a','admin','13739263609','sctang2@iflytek.com','2017-11-10 10:12:07','2018-02-05 05:20:27',1);
insert into `tb_dic` values
('0', '服务配置'),
('1', '路由配置'),
('2', '实例配置'); | the_stack |
-- @@@ START COPYRIGHT @@@
--
-- 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.
--
-- @@@ END COPYRIGHT @@@
/* teste251.sql
* Mike Hanlon & Suresh Subbiah
* 02-16-2005
*
* embedded C tests for Non Atomic Rowsets
* Test Classification: Positive
* Test Level: Functional
* Test Coverage:
* VSBB Non-atomic rowset insert tests
*
*/
/* DDL for table nt1 and view ntv1 is
CREATE TABLE nt1 (id int not null,
eventtime timestamp,
description varchar(12),
primary key (id), check (id > 0)) ;
CREATE VIEW ntv1 (v_id, v_eventtime, v_description) AS
SELECT id, eventtime, description from notatomic
WHERE id > 100
WITH CHECK OPTION ;
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#define NAR00 30022
#define SIZE 500
void display_diagnosis();
void display_diagnosis3();
Int32 test1();
Int32 test2();
Int32 test3();
Int32 test4();
Int32 test5();
Int32 test6();
Int32 test7();
Int32 test8();
Int32 test9();
Int32 test10();
Int32 test11();
Int32 test12();
EXEC SQL MODULE CAT.SCH.TESTE251M NAMES ARE ISO88591;
/* globals */
EXEC SQL BEGIN DECLARE SECTION;
ROWSET [SIZE] Int32 a_int;
ROWSET [SIZE] VARCHAR b_char5[5];
ROWSET [SIZE] TIMESTAMP b_time;
ROWSET [SIZE] Int32 j;
Int32 numRows ;
Int32 savesqlcode;
EXEC SQL END DECLARE SECTION;
EXEC SQL BEGIN DECLARE SECTION;
/**** host variables for get diagnostics *****/
NUMERIC(5) i;
NUMERIC(5) hv_num;
Int32 hv_sqlcode;
Int32 hv_rowindex;
Int32 hv_rowcount;
char hv_msgtxt[329];
char hv_sqlstate[6];
char hv_tabname[129];
char SQLSTATE[6];
Int32 SQLCODE;
EXEC SQL END DECLARE SECTION;
Int32 main()
{
test1();
test2();
test3();
test4();
test5();
test6();
test7();
test8();
test9();
test10();
test11();
test12();
return(0);
}
Int32 test1()
{
printf("\n ***TEST1 : Expecting -8101 on rows 95 & 399***\n");
EXEC SQL DELETE FROM nt1 ;
EXEC SQL COMMIT ;
Int32 i=0;
for (i=0; i<SIZE; i++)
a_int[i] = i+1;
a_int[95] = -1 ;
a_int[399] = -1 ;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test2()
{
printf("\n ***TEST2 : Expecting -8101 on rows 0 & 499***\n");
EXEC SQL DELETE FROM nt1 ;
EXEC SQL COMMIT ;
Int32 i=0;
for (i=0; i<SIZE; i++)
a_int[i] = i+1;
a_int[0] = -1 ;
a_int[499] = -1 ;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test3()
{
printf("\n ***TEST3 : Expecting -8101 on all rows except rows 92***\n");
EXEC SQL DELETE FROM nt1 ;
EXEC SQL COMMIT ;
Int32 i=0;
for (i=0; i<SIZE; i++)
a_int[i] = -(i+1);
a_int[92] = 93 ;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test4()
{
printf("\n ***TEST4 : Expecting -8101 on rows 110 & 112, and -8102 on rows 109 & 111***\n");
EXEC SQL DELETE FROM nt1 ;
EXEC SQL COMMIT ;
Int32 i=0;
for (i=0; i<SIZE; i++)
a_int[i] = i+1;
a_int[109] = 1;
a_int[110] = -1 ;
a_int[111] = 1;
a_int[112] = -1;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test5()
{
printf("\n ***TEST5 : Expecting -8105 on row 401***\n");
EXEC SQL DELETE FROM nt1 ;
EXEC SQL COMMIT ;
Int32 i=0;
for (i=0; i<SIZE; i++)
a_int[i] = i+101;
a_int[401] = 22 ;
EXEC SQL
INSERT INTO ntv1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test6()
{
printf("\n ***TEST6 : Expecting -8403 on row 481***\n");
EXEC SQL DELETE FROM nt1 ;
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
}
a_int[481] = -5;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),
SUBSTRING('how are you?', 1, :a_int )) NOT ATOMIC ;
if (SQLCODE < 0) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test7()
{
printf("\n ***TEST7 : Expecting -8411 on row 12***\n");
/* error raised in PA node */
EXEC SQL DELETE FROM nt1 ;
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
}
a_int[12] = 2000000000 ;
EXEC SQL
INSERT INTO nt1
VALUES (:a_int + 2000000000,
cast ('05.01.1997 03.04.55.123456' as timestamp),
'how are you?') NOT ATOMIC ;
if (SQLCODE < 0) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test8()
{
printf("\n ***TEST8 : Expecting -8411 on all rows except row 12***\n");
/* error raised in PA node. Uses GetCondInfo3 to get diagnostics in an array*/
EXEC SQL DELETE FROM nt1 ;
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = 2000000000 ;;
}
a_int[12] = 13 ;
EXEC SQL
INSERT INTO nt1
VALUES (:a_int + 2000000000,
cast ('05.01.1997 03.04.55.123456' as timestamp),
'how are you?') NOT ATOMIC ;
if (SQLCODE < 0) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis3();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test9()
{
printf("\n ***TEST9 : Expecting -8412 on row 255***\n");
EXEC SQL DELETE FROM nt1 ;
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
strcpy(b_char5[i], "you?");
}
memset(b_char5[255], '?', 5);
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are ' || :b_char5) NOT ATOMIC ;
if (SQLCODE < 0) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test10()
{
printf("\n ***TEST10 : Expecting -8415 on row 489***\n");
EXEC SQL DELETE FROM nt1 ;
Int32 i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
strcpy(b_time[i], "05.01.1997 03.04.55.123456");
}
strcpy(b_time[489], "aaaaaaaaaaaaaaaaa");
EXEC SQL
INSERT INTO nt1
VALUES (:a_int,
CONVERTTIMESTAMP(JULIANTIMESTAMP(:b_time)),
'how are you?') NOT ATOMIC ;
if (SQLCODE < 0) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test11()
{
printf("\n ***TEST11 : Expecting -8419 on rows 1,2,3,4,5,391,392,393,394, & 395***\n");
EXEC SQL DELETE FROM nt1 ;
i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = i+1;
j[i] = 1;
}
j[1] = 0;
j[2] = 0;
j[3] = 0;
j[4] = 0;
j[5] = 0;
j[391] = 0;
j[392] = 0;
j[393] = 0;
j[394] = 0;
j[395] = 0;
EXEC SQL
INSERT INTO nt1 VALUES (:a_int/:j, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
Int32 test12()
{
printf("\n ***TEST12 : Expecting -8102 on all rows except row 0***\n");
EXEC SQL DELETE FROM nt1 ;
i=0;
for (i=0; i<SIZE; i++) {
a_int[i] = 1;
}
EXEC SQL
INSERT INTO nt1 VALUES (:a_int, cast( '05.01.1997 03.04.55.123456' as timestamp),'how are you?') NOT ATOMIC ;
if (SQLCODE != 0 && SQLCODE != NAR00) {
printf("Failed to insert. SQLCODE = %d\n",SQLCODE);
}
else {
display_diagnosis();
EXEC SQL COMMIT ;
}
return(0);
}
/*****************************************************/
void display_diagnosis()
/*****************************************************/
{
Int32 rowcondnum = 103;
Int32 retcode ;
savesqlcode = SQLCODE ;
hv_rowcount = -1 ;
hv_rowindex = -2 ;
exec sql get diagnostics :hv_num = NUMBER,
:hv_rowcount = ROW_COUNT;
memset(hv_msgtxt,' ',sizeof(hv_msgtxt));
hv_msgtxt[328]='\0';
memset(hv_sqlstate,' ',sizeof(hv_sqlstate));
hv_sqlstate[6]='\0';
printf("Number of conditions : %d\n", hv_num);
printf("Number of rows inserted: %d\n", hv_rowcount);
printf("\n");
/* If we have more than 100 conditions, just print the first 10 */
if (hv_num > 100) {
hv_num = 10;
printf("\n Only the first 10 conditions will be printed. \n");
}
for (i = 1; i <= hv_num; i++) {
exec sql get diagnostics exception :i
:hv_tabname = TABLE_NAME,
:hv_sqlcode = SQLCODE,
:hv_sqlstate = RETURNED_SQLSTATE,
/* :hv_rowindex = ROW_INDEX, */
:hv_msgtxt = MESSAGE_TEXT;
retcode = SQL_EXEC_GetDiagnosticsCondInfo2(rowcondnum, i, &hv_rowindex, 0,0,0);
printf("Condition number : %d\n", i);
printf("ROW INDEX : %d\n", hv_rowindex);
printf("SQLCODE : %d\n", hv_sqlcode);
printf("SQLSTATE : %s\n", hv_sqlstate);
printf("TABLE : %s\n", hv_tabname);
printf("TEXT : %s\n", hv_msgtxt);
printf("\n");
memset(hv_msgtxt,' ',sizeof(hv_msgtxt));
hv_msgtxt[328]='\0';
memset(hv_tabname,' ',sizeof(hv_tabname));
hv_tabname[128]='\0';
memset(hv_sqlstate,' ',sizeof(hv_sqlstate));
hv_sqlstate[6]='\0';
}
SQLCODE = savesqlcode ;
}
/*****************************************************/
void display_diagnosis3()
/*****************************************************/
{
#define NO_OF_COND_ITEMS 500
#define NO_OF_CONDITIONS 100
#define MAX_SQLSTATE_LEN 6
#define MAX_MSG_TEXT_LEN 350
#define MAX_ANSI_NAME 129
SQLDIAG_COND_INFO_ITEM_VALUE gCondInfoItems[NO_OF_COND_ITEMS];
char Sqlstate[NO_OF_CONDITIONS][ MAX_SQLSTATE_LEN];
char MessageText[NO_OF_CONDITIONS][MAX_MSG_TEXT_LEN];
Int32 Sqlcode[NO_OF_CONDITIONS];
Int32 RowNumber[NO_OF_CONDITIONS];
char TableName[NO_OF_CONDITIONS][MAX_ANSI_NAME];
Int32 SqlstateLen[NO_OF_CONDITIONS];
Int32 MessageTextLen[NO_OF_CONDITIONS];
Int32 TableNameLen[NO_OF_CONDITIONS];
Int32 max_sqlstate_len = MAX_SQLSTATE_LEN;
Int32 max_msg_text_len = MAX_MSG_TEXT_LEN;
Int32 max_ansi_name = MAX_ANSI_NAME;
Int32 retcode;
exec sql get diagnostics :hv_num = NUMBER,
:hv_rowcount = ROW_COUNT;
printf("Number of conditions : %d\n", hv_num);
printf("Number of rows inserted: %d\n", hv_rowcount);
printf("\n");
Int32 conditionsLeft = hv_num;
Int32 NumConditionsInThisIter = NO_OF_CONDITIONS;
for (Int32 loop = 0; loop < ((hv_num/NO_OF_CONDITIONS) +1) ; loop++)
{
if (conditionsLeft < NO_OF_CONDITIONS)
NumConditionsInThisIter = conditionsLeft;
Int32 i,j;
for (j=0; j<NumConditionsInThisIter; j++)
{
Sqlcode[j] = 0;
RowNumber[j] = 0;
memset(MessageText[j],' ',MAX_MSG_TEXT_LEN);
memset(Sqlstate[j],' ',MAX_SQLSTATE_LEN);
memset(TableName[j],' ',MAX_ANSI_NAME);
SqlstateLen[j] = MAX_SQLSTATE_LEN;
MessageTextLen[j] = MAX_MSG_TEXT_LEN;
TableNameLen[j] = MAX_ANSI_NAME;
}
j=0;
for (i=0; i<NumConditionsInThisIter*5; i=i+5)
{
j=j+1;
gCondInfoItems[i+0].item_id_and_cond_number.item_id = SQLDIAG_SQLCODE;
gCondInfoItems[i+1].item_id_and_cond_number.item_id = SQLDIAG_RET_SQLSTATE;
gCondInfoItems[i+2].item_id_and_cond_number.item_id = SQLDIAG_ROW_NUMBER;
gCondInfoItems[i+3].item_id_and_cond_number.item_id = SQLDIAG_TABLE_NAME;
gCondInfoItems[i+4].item_id_and_cond_number.item_id = SQLDIAG_MSG_TEXT;
gCondInfoItems[i+0].item_id_and_cond_number.cond_number_desc_entry = loop*NO_OF_CONDITIONS + j;
gCondInfoItems[i+1].item_id_and_cond_number.cond_number_desc_entry = loop*NO_OF_CONDITIONS + j;
gCondInfoItems[i+2].item_id_and_cond_number.cond_number_desc_entry = loop*NO_OF_CONDITIONS + j;
gCondInfoItems[i+3].item_id_and_cond_number.cond_number_desc_entry = loop*NO_OF_CONDITIONS + j;
gCondInfoItems[i+4].item_id_and_cond_number.cond_number_desc_entry = loop*NO_OF_CONDITIONS + j;
gCondInfoItems[i+0].num_val_or_len = &(Sqlcode[j-1]);
gCondInfoItems[i+1].num_val_or_len = &(SqlstateLen[j-1]);
gCondInfoItems[i+2].num_val_or_len = &(RowNumber[j-1]);
gCondInfoItems[i+3].num_val_or_len = &(TableNameLen[j-1]);
gCondInfoItems[i+4].num_val_or_len = &(MessageTextLen[j-1]);
gCondInfoItems[i+0].string_val = 0;
gCondInfoItems[i+1].string_val = Sqlstate[j-1];
gCondInfoItems[i+2].string_val = 0;
gCondInfoItems[i+3].string_val = TableName[j-1];
gCondInfoItems[i+4].string_val = MessageText[j-1];
}
retcode = SQL_EXEC_GetDiagnosticsCondInfo3( NumConditionsInThisIter*5,
(SQLDIAG_COND_INFO_ITEM_VALUE *)&gCondInfoItems);
if (retcode != 0)
{
printf("SQL_EXEC_GetDiagnosticsCondInfo3 returned retcode = %d\n", retcode);
exit (0);
}
conditionsLeft = conditionsLeft - NumConditionsInThisIter ;
for (j=0; j<NumConditionsInThisIter; j++)
{
MessageText[j][MessageTextLen[j]] = 0;
TableName[j][TableNameLen[j]] = 0;
printf("Condition number : %d\n", gCondInfoItems[5*j].item_id_and_cond_number.cond_number_desc_entry);
printf("ROW INDEX : %d\n", RowNumber[j]);
printf("SQLCODE : %d\n", Sqlcode[j]);
printf("SQLSTATE : %s\n", Sqlstate[j]);
printf("MESSAGE : %s\n", MessageText[j]);
printf("TABLE : %s\n", TableName[j]);
printf("\n");
}
}
} | the_stack |
-- 2018-04-16T17:18:51.471
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat SET IsActive='Y',Updated=TO_TIMESTAMP('2018-04-16 17:18:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_ID=531098
;
-- 2018-04-16T17:20:08.205
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET SeqNo=30, StartNo=3,Updated=TO_TIMESTAMP('2018-04-16 17:20:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531104
;
-- 2018-04-16T17:20:14.133
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET Name='PZN',Updated=TO_TIMESTAMP('2018-04-16 17:20:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531104
;
-- 2018-04-16T17:20:27.652
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET SeqNo=10, StartNo=1,Updated=TO_TIMESTAMP('2018-04-16 17:20:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531106
;
-- 2018-04-16T17:20:59.818
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET AD_Column_ID=8989, DataType='S', Name='Lagerort-Schlüssel',Updated=TO_TIMESTAMP('2018-04-16 17:20:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531106
;
-- 2018-04-16T17:22:02.852
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET Name='QtyInternalUse', SeqNo=130, StartNo=13,Updated=TO_TIMESTAMP('2018-04-16 17:22:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531105
;
-- 2018-04-16T17:23:12.523
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559688,531098,540532,0,'1000000',TO_TIMESTAMP('2018-04-16 17:23:12','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','D','.','N',0,'Y','Datum der letzten Inventur',20,2,TO_TIMESTAMP('2018-04-16 17:23:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:24:15.549
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559687,531098,540533,0,'1000000',TO_TIMESTAMP('2018-04-16 17:24:15','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','S','.','N',0,'Y','Datum der letzten Inventur',100,10,TO_TIMESTAMP('2018-04-16 17:24:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:24:50.543
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559684,531098,540534,0,'1000000',TO_TIMESTAMP('2018-04-16 17:24:50','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','S','.','N',0,'Y','Lot Blocked',110,11,TO_TIMESTAMP('2018-04-16 17:24:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:24:58.141
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET AD_Column_ID=8818, Name='Lot_Los-Nr.',Updated=TO_TIMESTAMP('2018-04-16 17:24:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540533
;
-- 2018-04-16T17:25:31.850
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559683,531098,540535,0,'1000000',TO_TIMESTAMP('2018-04-16 17:25:31','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','D','.','N',0,'Y','Best Before Date',120,12,TO_TIMESTAMP('2018-04-16 17:25:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:25:49.654
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='mm.yyyy',Updated=TO_TIMESTAMP('2018-04-16 17:25:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T17:26:39.276
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559687,531098,540536,0,'1000000',TO_TIMESTAMP('2018-04-16 17:26:39','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','S','.','N',0,'Y','TE',90,9,TO_TIMESTAMP('2018-04-16 17:26:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:27:41.675
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559685,531098,540537,0,'1000000',TO_TIMESTAMP('2018-04-16 17:27:41','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','D','.','N',0,'Y','Eingangsdatum',160,16,TO_TIMESTAMP('2018-04-16 17:27:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T17:28:11.727
-- 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,ConstantValue,Created,CreatedBy,DataFormat,DataType,DecimalPoint,DivideBy100,EndNo,IsActive,Name,SeqNo,StartNo,Updated,UpdatedBy) VALUES (0,559690,531098,540538,0,'1000000',TO_TIMESTAMP('2018-04-16 17:28:11','YYYY-MM-DD HH24:MI:SS'),100,'dd.mm.yyyy','S','.','N',0,'Y','Eingangsdatum',210,21,TO_TIMESTAMP('2018-04-16 17:28:11','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-04-16T18:03:19.623
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='DD.MM.YYYY HH:mm:ss',Updated=TO_TIMESTAMP('2018-04-16 18:03:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540532
;
-- 2018-04-16T18:05:34.112
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='MM.YYYY',Updated=TO_TIMESTAMP('2018-04-16 18:05:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T18:07:29.642
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET Name='SubProducerBPartner_Value',Updated=TO_TIMESTAMP('2018-04-16 18:07:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540538
;
-- 2018-04-16T18:10:09.311
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='01.MM.YYYY',Updated=TO_TIMESTAMP('2018-04-16 18:10:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T18:11:16.287
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='', DataType='S',Updated=TO_TIMESTAMP('2018-04-16 18:11:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T18:20:16.129
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='MM.YYYY', DataType='D',Updated=TO_TIMESTAMP('2018-04-16 18:20:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T18:23:09.176
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET AD_Column_ID=8824,Updated=TO_TIMESTAMP('2018-04-16 18:23:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531104
;
-- 2018-04-16T18:39:43.994
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='DD.MM.YYYY HH:MI:SS',Updated=TO_TIMESTAMP('2018-04-16 18:39:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540532
;
-- 2018-04-16T18:40:00.637
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='DD.MM.YYYY',Updated=TO_TIMESTAMP('2018-04-16 18:40:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540537
;
-- 2018-04-16T18:42:58.677
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='dd.MM.yyyy',Updated=TO_TIMESTAMP('2018-04-16 18:42:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540537
;
-- 2018-04-16T18:43:12.995
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='dd.MM.yyyy HH:MI:SS',Updated=TO_TIMESTAMP('2018-04-16 18:43:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540532
;
-- 2018-04-16T18:44:30.487
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='MM.yyyy',Updated=TO_TIMESTAMP('2018-04-16 18:44:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540535
;
-- 2018-04-16T18:47:35.192
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataType='S',Updated=TO_TIMESTAMP('2018-04-16 18:47:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531104
;
-- 2018-04-16T18:47:52.269
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='dd.MM.yyyy hh:MI:ss',Updated=TO_TIMESTAMP('2018-04-16 18:47:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540532
;
-- 2018-04-16T18:51:00.145
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET DataFormat='dd.MM.yyyy hh:mm:ss',Updated=TO_TIMESTAMP('2018-04-16 18:51:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=540532
; | the_stack |
Known Issues & Limitations:
- no support for Multi-Dimensional Segment Clustering in this version
Changes in 1.0.2
+ Added schema information and quotes for the table name
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added support for the Index Location (Disk-Based, InMemory)
+ Added new parameter for filtering the indexes, based on their location (Disk-Based or In-Memory) - @indexLocation
- Fixed bug with non-functioning @objectId parameter
Changes in 1.3.1
- Added support for Databases with collations different to TempDB
Changes in 1.5.0
+ Added new parameter that allows to filter the results by specific partition number (@partitionNumber)
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
+ Added new parameter for showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition (@countDistinctValues)
+ Added new parameter for showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results are included in the overall recommendation for segment elimination
+ Added new parameter for showing the overall recommendation number for each table/partition (@showSegmentAnalysis)
+ Added information on the Predicate Pushdown support (it will be showing results depending on the used edition) - column [Predicate Pushdown]
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetAlignment' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetAlignment as select 1');
GO
/*
CSIL - Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Alignment - Shows the alignment (ordering) between the different Columnstore Segments
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetAlignment(
-- Params --
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@showSegmentAnalysis BIT = 0, -- Allows showing the overall recommendation for aligning order for each table/partition
@countDistinctValues BIT = 0, -- Allows showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition (@countDistinctValues)
@scanExecutionPlans BIT = 0, -- Allows showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results is included in the overall recommendation for segment elimination
@indexLocation varchar(15) = NULL, -- Allows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@showPartitionStats bit = 1, -- Shows alignment statistics based on the partition
@partitionNumber int = 0, -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1
@showUnsupportedSegments bit = 1, -- Shows unsupported Segments in the result set
@columnName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular column name
@columnId int = NULL -- Allows to filter one specific column Id
-- end of --
) as
begin
set nocount on;
IF OBJECT_ID('tempdb..#column_store_segments', 'U') IS NOT NULL
DROP TABLE #column_store_segments
SELECT SchemaName, TableName, object_id, partition_number, hobt_id, partition_id, column_id, segment_id, min_data_id, max_data_id
INTO #column_store_segments
FROM ( select object_schema_name(part.object_id) as SchemaName, object_name(part.object_id) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id
FROM sys.column_store_segments seg
INNER JOIN sys.partitions part
ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
union all
select object_schema_name(part.object_id,db_id('tempdb')) as SchemaName, object_name(part.object_id,db_id('tempdb')) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id
FROM tempdb.sys.column_store_segments seg
INNER JOIN tempdb.sys.partitions part
ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
) as Res
ALTER TABLE #column_store_segments
ADD UNIQUE (hobt_id, partition_id, column_id, min_data_id, segment_id);
ALTER TABLE #column_store_segments
ADD UNIQUE (hobt_id, partition_id, column_id, max_data_id, segment_id);
IF OBJECT_ID('tempdb..#SegmentAlignmentResults', 'U') IS NOT NULL
DROP TABLE #SegmentAlignmentResults;
with cteSegmentAlignment as (
select part.object_id,
quotename(object_schema_name(part.object_id)) + '.' + quotename(object_name(part.object_id)) as TableName,
case @showPartitionStats when 1 then part.partition_number else 1 end as partition_number,
seg.partition_id, seg.column_id, cols.name as ColumnName, tp.name as ColumnType,
seg.segment_id,
CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS hasOverlappingSegment
from sys.column_store_segments seg
inner join sys.partitions part
on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
inner join sys.columns cols
on part.object_id = cols.object_id and seg.column_id = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
outer apply (
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1
UNION ALL
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2
) filteredSeg
where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and 1 = case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else 1 end
group by part.object_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id
UNION ALL
select part.object_id,
quotename(object_schema_name(part.object_id,db_id('tempdb'))) + '.' + quotename(object_name(part.object_id,db_id('tempdb'))) as TableName,
case @showPartitionStats when 1 then part.partition_number else 1 end as partition_number,
seg.partition_id, seg.column_id, cols.name COLLATE DATABASE_DEFAULT as ColumnName, tp.name COLLATE DATABASE_DEFAULT as ColumnType,
seg.segment_id,
CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS hasOverlappingSegment
from tempdb.sys.column_store_segments seg
inner join tempdb.sys.partitions part
on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
inner join tempdb.sys.columns cols
on part.object_id = cols.object_id and seg.column_id = cols.column_id
inner join tempdb.sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
outer apply (
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg --WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1
UNION ALL
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg --WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2
) filteredSeg
where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and 1 = case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else 1 end
group by part.object_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id
)
select TableName, 'Disk-Based' as Location, partition_number as 'Partition', cte.column_id as 'Column Id', cte.ColumnName,
cte.ColumnType,
case cte.ColumnType when 'numeric' then 'not supported'
when 'datetimeoffset' then 'not supported'
when 'char' then 'not supported'
when 'nchar' then 'not supported'
when 'varchar' then 'not supported'
when 'nvarchar' then 'not supported'
when 'sysname' then 'not supported'
when 'binary' then 'not supported'
when 'varbinary' then 'not supported'
when 'uniqueidentifier' then 'not supported'
else 'OK' end as 'Segment Elimination',
case cte.ColumnType when 'numeric' then 'not supported'
when 'datetimeoffset' then 'not supported'
when 'char' then 'not supported'
when 'nchar' then 'not supported'
when 'varchar' then 'not supported'
when 'nvarchar' then 'not supported'
when 'sysname' then 'not supported'
when 'binary' then 'not supported'
when 'varbinary' then 'not supported'
when 'uniqueidentifier' then 'not supported'
else 'OK' end as [Predicate Pushdown],
sum(CONVERT(INT, hasOverlappingSegment)) as [Dealigned Segments],
count(*) as [Total Segments],
100 - cast( sum(CONVERT(INT, hasOverlappingSegment)) * 100.0 / (count(*)) as Decimal(6,2)) as [Segment Alignment %]
INTO #SegmentAlignmentResults
from cteSegmentAlignment cte
where ((@showUnsupportedSegments = 0 and cte.ColumnType COLLATE DATABASE_DEFAULT not in ('numeric','datetimeoffset','char', 'nchar', 'varchar', 'nvarchar', 'sysname','binary','varbinary','uniqueidentifier') )
OR @showUnsupportedSegments = 1)
and cte.ColumnName COLLATE DATABASE_DEFAULT = isnull(@columnName,cte.ColumnName COLLATE DATABASE_DEFAULT)
and cte.column_id = isnull(@columnId,cte.column_id)
group by TableName, partition_number, cte.column_id, cte.ColumnName, cte.ColumnType
order by TableName, partition_number, cte.column_id;
--- *****************************************************
IF @showSegmentAnalysis = 1
BEGIN
DECLARE @alignedColumnList NVARCHAR(MAX) = NULL;
DECLARE @alignedColumnNamesList NVARCHAR(MAX) = NULL;
DECLARE @alignedTable NVARCHAR(128) = NULL,
@alignedPartition INT = NULL,
@partitioningClause NVARCHAR(500) = NULL;
IF OBJECT_ID('tempdb..#DistinctCounts', 'U') IS NOT NULL
DROP TABLE #DistinctCounts;
CREATE TABLE #DistinctCounts(
TableName SYSNAME NOT NULL,
PartitionId INT NOT NULL,
ColumnName SYSNAME NOT NULL,
DistinctCount BIGINT NOT NULL,
TotalRowCount BIGINT NOT NULL
);
DECLARE alignmentTablesCursor CURSOR LOCAL FAST_FORWARD FOR
SELECT DISTINCT TableName, [Partition]
FROM #SegmentAlignmentResults;
OPEN alignmentTablesCursor
FETCH NEXT FROM alignmentTablesCursor
INTO @alignedTable, @alignedPartition;
WHILE @@FETCH_STATUS = 0
BEGIN
IF @countDistinctValues = 1
BEGIN
-- Define Partitioning Clause when showing partitioning information
SET @partitioningClause = '';
SELECT @partitioningClause = 'WHERE $PARTITION.[' + pf.name + ']([' + cols.name + ']) = ' + CAST(@alignedPartition AS VARCHAR(8))
FROM sys.indexes ix
INNER JOIN sys.partition_schemes ps on ps.data_space_id = ix.data_space_id
INNER JOIN sys.partition_functions pf on pf.function_id = ps.function_id
INNER JOIN sys.index_columns ic
ON ic.object_id = ix.object_id AND ix.index_id = ic.index_id
INNER JOIN sys.all_columns cols
ON ic.column_id = cols.column_id AND ic.object_id = cols.object_id
WHERE ix.object_id = object_id(@alignedTable)
AND ic.partition_ordinal = 1 AND @showPartitionStats = 1;
-- Get the list with COUNT(DISTINCT [ColumnName])
SELECT @alignedColumnList = STUFF((
SELECt ', COUNT( DISTINCT ' + QUOTENAME(name) + ') as [' + name + ']'
FROM sys.columns cols
WHERE OBJECT_ID(@alignedTable) = cols.object_id
AND cols.name = isnull(@columnName,cols.name)
AND cols.column_id = isnull(@columnId,cols.column_id)
ORDER BY cols.column_id DESC
FOR XML PATH('')
), 1, 1, '');
SELECT @alignedColumnNamesList = STUFF((
SELECt ', [' + name + ']'
FROM sys.columns cols
WHERE OBJECT_ID(@alignedTable) = cols.object_id
AND cols.name = isnull(@columnName,cols.name)
AND cols.column_id = isnull(@columnId,cols.column_id)
ORDER BY cols.column_id DESC
FOR XML PATH('')
), 1, 1, '');
-- Insert Count(*) and COUNT(DISTINCT*) into the #DistinctCounts table
EXEC ( N'INSERT INTO #DistinctCounts ' +
'SELECT ''' + @alignedTable + ''' as TableName, ' + @alignedPartition + ' as PartitionNumber, ColumnName, DistinctCount, __TotalRowCount__ as TotalRowCount ' +
' FROM (SELECT ''DistCount'' as [__Op__], COUNT(*) as __TotalRowCount__, ' + @alignedColumnList +
' FROM ' + @alignedTable + @partitioningClause + ') res ' +
' UNPIVOT ' +
' ( DistinctCount FOR ColumnName IN(' + @alignedColumnNamesList + ') ' +
' ) AS finalResult;' );
END
FETCH NEXT FROM alignmentTablesCursor
INTO @alignedTable, @alignedPartition;
END
CLOSE alignmentTablesCursor;
DEALLOCATE alignmentTablesCursor;
-- Create table storing results of the access via cached execution plans
IF OBJECT_ID('tempdb..#CachedAccessToColumnstore', 'U') IS NOT NULL
DROP TABLE #CachedAccessToColumnstore;
CREATE TABLE #CachedAccessToColumnstore(
[Schema] SYSNAME NOT NULL,
[Table] SYSNAME NOT NULL,
[TableName] SYSNAME NOT NULL,
[ColumnName] SYSNAME NOT NULL,
[ScanFrequency] BIGINT,
[ScanRank] DECIMAL(16,6)
);
-- Scan cached execution plans and extract the frequency with which the table columns are searched
IF @scanExecutionPlans = 1
BEGIN
-- Extract information from the cached execution plans to determine the frequency of the used(pushed down) predicates against Columnstore Indexes
;WITH XMLNAMESPACES (DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan')
INSERT INTO #CachedAccessToColumnstore
SELECT [Schema],
[Table],
[Schema] + '.' + [Table] as TableName,
[Column] as ColumnName,
SUM(execution_count) as ScanFrequency,
Cast(0. as Decimal(16,6)) as ScanRank
FROM (
SELECT x.value('(@Database)[1]', 'nvarchar(128)') AS [Database],
x.value('(@Schema)[1]', 'nvarchar(128)') AS [Schema],
x.value('(@Table)[1]', 'nvarchar(128)') AS [Table],
x.value('(@Alias)[1]', 'nvarchar(128)') AS [Alias],
x.value('(@Column)[1]', 'nvarchar(128)') AS [Column],
xmlRes.execution_count
FROM (
SELECT dm_exec_query_plan.query_plan,
dm_exec_query_stats.execution_count
FROM sys.dm_exec_query_stats
CROSS APPLY sys.dm_exec_sql_text(dm_exec_query_stats.sql_handle)
CROSS APPLY sys.dm_exec_query_plan(dm_exec_query_stats.plan_handle)
WHERE query_plan.exist('//RelOp//IndexScan//Object[@Storage = "ColumnStore"]') = 1
AND query_plan.exist('//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference') = 1
) xmlRes
CROSS APPLY xmlRes.query_plan.nodes('//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference') x1(x) --[@Database = "[' + @dbName + ']"]
WHERE
-- Avoid Inter-column Search references since they are not supporting Segment Elimination
NOT (query_plan.exist('(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[1]') = 1
AND query_plan.exist('(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[2]') = 1
AND x.value('(@Table)[1]', 'nvarchar(128)') = x.value('(@Table)[2]', 'nvarchar(128)') )
) res
WHERE res.[Database] = QUOTENAME(DB_NAME()) AND res.[Schema] IS NOT NULL AND res.[Table] IS NOT NULL
AND res.[Column] COLLATE DATABASE_DEFAULT = isnull(@columnName,res.[Column])
GROUP BY [Schema], [Table], [Column];
-- Distribute Rank based on the values between 0 & 100
UPDATE #CachedAccessToColumnstore
SET ScanRank = ScanFrequency * 100. / (SELECT MAX(ScanFrequency) FROM #CachedAccessToColumnstore);
END
-- Deliver the final result
SELECT res.*, cnt.DistinctCount, cnt.TotalRowCount,
CAST(cnt.DistinctCount * 100. / CASE cnt.TotalRowCount WHEN 0 THEN 1 ELSE cnt.TotalRowCount END as Decimal(8,3)) as [PercDistinct],
ISNULL(ScanFrequency,0) AS ScanFrequency,
DENSE_RANK() OVER ( PARTITION BY res.[TableName], [Partition]
ORDER BY ISNULL(ScanRank,-100) +
CASE WHEN [DistinctCount] < [Total Segments] OR [DistinctCount] < 2 THEN - 100 ELSE 0 END +
( ISNULL(cnt.DistinctCount,0) * 100. / CASE ISNULL(cnt.TotalRowCount,0) WHEN 0 THEN 1 ELSE cnt.TotalRowCount END)
- CASE [Segment Elimination] WHEN 'OK' THEN 0. ELSE 1000. END
DESC ) AS [Recommendation]
FROM #SegmentAlignmentResults res
LEFT OUTER JOIN #DistinctCounts cnt
ON res.TableName = cnt.TableName COLLATE DATABASE_DEFAULT
AND res.ColumnName = cnt.ColumnName COLLATE DATABASE_DEFAULT
AND res.[Partition] = cnt.PartitionId
LEFT OUTER JOIN #CachedAccessToColumnstore cache
ON res.TableName = cache.TableName COLLATE DATABASE_DEFAULT
AND res.ColumnName = cache.ColumnName COLLATE DATABASE_DEFAULT
ORDER BY res.TableName, res.Partition, res.[Column Id];
END
ELSE
BEGIN
SELECT res.*
FROM #SegmentAlignmentResults res
ORDER BY res.TableName, res.Partition, res.[Column Id];
END
-- Cleanup
IF OBJECT_ID('tempdb..#SegmentAlignmentResults', 'U') IS NOT NULL
DROP TABLE #SegmentAlignmentResults;
IF OBJECT_ID('tempdb..#DistinctCounts', 'U') IS NOT NULL
DROP TABLE #DistinctCounts;
IF OBJECT_ID('tempdb..#CachedAccessToColumnstore', 'U') IS NOT NULL
DROP TABLE #CachedAccessToColumnstore;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Dictionaries Analysis - Shows detailed information about the Columnstore Dictionaries
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Changes in 1.0.1:
+ Added information about Id of the column in the dictionary, for better debugging
+ Added ordering by the columnId
+ Added new parameter to filter Dictionaries by the type: @showDictionaryType
+ Added quotes for displaying the name of any tables correctly
Changes in 1.0.3:
+ Added information about maximum sizes for the Global & Local dictionaries
+ Added new parameter for enabling the details of all available dictionaries
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
* Removed Duplicate information on the ColumnId
* Changed the title of the return information for the column from the SegmentId to the DictionaryId
+ Added information on the Index Location (In-Memory or Disk-Based) and the respective filter
+ Added information on the type of the Index (Clustered or Nonclustered) and the respective filter
Changes in 1.3.1
- Added support for Databases with collations different to TempDB
Changes in 1.5.0
+ Added new parameter that allows to filter the results by specific partition number (@partitionNumber)
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetDictionaries' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetDictionaries as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Dictionaries Analysis - Shows detailed information about the Columnstore Dictionaries
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetDictionaries(
-- Params --
@showDetails bit = 1, -- Enables showing the details of all Dictionaries
@showWarningsOnly bit = 0, -- Enables to filter out the dictionaries based on the Dictionary Size (@warningDictionarySizeInMB) and Entry Count (@warningEntryCount)
@warningDictionarySizeInMB Decimal(8,2) = 6., -- The size of the dictionary, after which the dictionary should be selected. The value is in Megabytes
@warningEntryCount Int = 1000000, -- Enables selecting of dictionaries with more than this number
@showAllTextDictionaries bit = 0, -- Enables selecting all textual dictionaries indepentantly from their warning status
@showDictionaryType nvarchar(52) = NULL, -- Enables to filter out dictionaries by type with possible values 'Local', 'Global' or NULL for both
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@partitionNumber int = 0, -- Allows to filter data on a specific partion.
@columnName nvarchar(256) = NULL, -- Allows to filter out data base on 1 particular column name
@indexLocation varchar(15) = NULL, -- Allows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory
@indexType char(2) = NULL -- Allows to filter Columnstore Indexes by their type, with possible values (CC for 'Clustered', NC for 'Nonclustered' or NULL for both)
-- end of --
) as
begin
set nocount on;
declare @table_object_id int = NULL;
if (@tableName is not NULL )
set @table_object_id = isnull(object_id(@tableName),-1);
else
set @table_object_id = NULL;
SELECT QuoteName(object_schema_name(i.object_id)) + '.' + QuoteName(object_name(i.object_id)) as 'TableName',
case i.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
case i.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as [Location],
p.partition_number as 'Partition',
(select count(rg.row_group_id) from sys.column_store_row_groups rg
where rg.object_id = i.object_id and rg.partition_number = p.partition_number
and rg.state = 3 ) as 'RowGroups',
count(csd.column_id) as 'Dictionaries',
sum(csd.entry_count) as 'EntriesCount',
(select sum(isnull(rg.total_rows,0) - isnull(rg.deleted_rows,0)) from sys.column_store_row_groups rg
where rg.object_id = i.object_id and rg.partition_number = p.partition_number
and rg.state = 3 ) as 'Rows Serving',
cast( SUM(csd.on_disk_size)/(1024.0*1024.0) as Decimal(8,3)) as 'Total Size in MB',
cast( MAX(case dictionary_id when 0 then csd.on_disk_size else 0 end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Global Size in MB',
cast( MAX(case dictionary_id when 0 then 0 else csd.on_disk_size end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Local Size in MB'
FROM sys.indexes AS i
inner join sys.partitions AS p
on i.object_id = p.object_id
inner join sys.column_store_dictionaries AS csd
on csd.hobt_id = p.hobt_id and csd.partition_id = p.partition_id
where i.type in (5,6)
AND (@preciseSearch = 0 AND (@tableName is null or object_name (i.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (i.object_id) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( i.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( i.object_id ) = @schemaName))
AND (ISNULL(@objectId,i.object_id) = i.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and i.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else i.data_space_id end, i.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else i.type end = i.type
group by object_schema_name(i.object_id) + '.' + object_name(i.object_id), i.object_id, i.data_space_id, i.type, p.partition_number
union all
SELECT QuoteName(object_schema_name(i.object_id,db_id('tempdb'))) + '.' + QuoteName(object_name(i.object_id,db_id('tempdb'))) as 'TableName',
case i.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
case i.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as [Location],
p.partition_number as 'Partition',
(select count(rg.row_group_id) from tempdb.sys.column_store_row_groups rg
where rg.object_id = i.object_id and rg.partition_number = p.partition_number
and rg.state = 3 ) as 'RowGroups',
count(csd.column_id) as 'Dictionaries',
sum(csd.entry_count) as 'EntriesCount',
min(p.rows) as 'Rows Serving',
cast( SUM(csd.on_disk_size)/(1024.0*1024.0) as Decimal(8,3)) as 'Total Size in MB',
cast( MAX(case dictionary_id when 0 then csd.on_disk_size else 0 end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Global Size in MB',
cast( MAX(case dictionary_id when 0 then 0 else csd.on_disk_size end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Local Size in MB'
FROM tempdb.sys.indexes AS i
inner join tempdb.sys.partitions AS p
on i.object_id = p.object_id
inner join tempdb.sys.column_store_dictionaries AS csd
on csd.hobt_id = p.hobt_id and csd.partition_id = p.partition_id
where i.type in (5,6)
AND (@preciseSearch = 0 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,p.object_id) = p.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and i.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else i.data_space_id end, i.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else i.type end = i.type
group by object_schema_name(i.object_id,db_id('tempdb')) + '.' + object_name(i.object_id,db_id('tempdb')), i.object_id, i.type, i.data_space_id, p.partition_number;
if @showDetails = 1
select QuoteName(object_schema_name(part.object_id)) + '.' + QuoteName(object_name(part.object_id)) as 'TableName',
ind.name COLLATE DATABASE_DEFAULT as 'IndexName',
part.partition_number as 'Partition',
cols.name COLLATE DATABASE_DEFAULT as ColumnName,
dict.column_id as ColumnId,
dict.dictionary_id as 'DictionaryId',
tp.name COLLATE DATABASE_DEFAULT as ColumnType,
case dictionary_id when 0 then 'Global' else 'Local' end as 'Type',
(select sum(isnull(rg.total_rows,0) - isnull(rg.deleted_rows,0)) from sys.column_store_row_groups rg
where rg.object_id = part.object_id and rg.partition_number = part.partition_number
and rg.state = 3 ) as 'Rows Serving',
entry_count as 'Entry Count',
cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) 'SizeInMb'
from sys.column_store_dictionaries dict
inner join sys.partitions part
ON dict.partition_id = part.partition_id and dict.partition_id = part.partition_id
inner join sys.indexes ind
on part.object_id = ind.object_id and part.index_id = ind.index_id
inner join sys.columns cols
on part.object_id = cols.object_id and dict.column_id = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
where
(( @showWarningsOnly = 1
AND
( cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) > @warningDictionarySizeInMB OR
entry_count > @warningEntryCount
)
) OR @showWarningsOnly = 0 )
AND
(( @showAllTextDictionaries = 1
AND
case tp.name
when 'char' then 1
when 'nchar' then 1
when 'varchar' then 1
when 'nvarchar' then 1
when 'sysname' then 1
end = 1
) OR @showAllTextDictionaries = 0 )
AND (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and cols.name = isnull(@columnName,cols.name)
and case dictionary_id when 0 then 'Global' else 'Local' end = isnull(@showDictionaryType, case dictionary_id when 0 then 'Global' else 'Local' end)
and ind.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else ind.data_space_id end, ind.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
union all
select QuoteName(object_schema_name(part.object_id,db_id('tempdb'))) + '.' + QuoteName(object_name(part.object_id,db_id('tempdb'))) as 'TableName',
ind.name as 'IndexName',
part.partition_number as 'Partition',
cols.name as ColumnName,
dict.column_id as ColumnId,
dict.dictionary_id as 'DictionaryId',
tp.name as ColumnType,
case dictionary_id when 0 then 'Global' else 'Local' end as 'Type',
(select sum(isnull(rg.total_rows,0) - isnull(rg.deleted_rows,0)) from sys.column_store_row_groups rg
where rg.object_id = part.object_id and rg.partition_number = part.partition_number
and rg.state = 3 ) as 'Rows Serving',
entry_count as 'Entry Count',
cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) 'SizeInMb'
from tempdb.sys.column_store_dictionaries dict
inner join tempdb.sys.partitions part
ON dict.hobt_id = part.hobt_id and dict.partition_id = part.partition_id
inner join tempdb.sys.indexes ind
on part.object_id = ind.object_id and part.index_id = ind.index_id
inner join tempdb.sys.columns cols
on part.object_id = cols.object_id and dict.column_id = cols.column_id
inner join tempdb.sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
where
(( @showWarningsOnly = 1
AND
( cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) > @warningDictionarySizeInMB OR
entry_count > @warningEntryCount
)
) OR @showWarningsOnly = 0 )
AND
(( @showAllTextDictionaries = 1
AND
case tp.name
when 'char' then 1
when 'nchar' then 1
when 'varchar' then 1
when 'nvarchar' then 1
when 'sysname' then 1
end = 1
) OR @showAllTextDictionaries = 0 )
AND (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end and cols.name = isnull(@columnName,cols.name)
and case dictionary_id when 0 then 'Global' else 'Local' end = isnull(@showDictionaryType, case dictionary_id when 0 then 'Global' else 'Local' end)
and ind.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else ind.data_space_id end, ind.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
order by TableName, ind.name, part.partition_number, dict.column_id;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Fragmenttion - Shows the different types of Columnstore Indexes Fragmentation
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- Tables with just 1 Row Group are shown that they can be improved. This will be corrected in the future version.
Changes in 1.0.3
- Solved error with wrong partitioning information
+ Added information on the total number of rows
* Changed the format of the table returned in Result Set, now being returned with brackets []
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added support for the Index Location (Disk-Based)
+ Added new parameter for filtering the indexes, based on their location (Disk-Based or In-Memory) - @indexLocation
- Fixed a bug for the trimmed row groups with just 1 row giving wrong information about a potential optimizable row group
Changes in 1.3.1
- Fixed wrong behaviour for the @tableName parameter
- Fixed bug reporting wrong data on the Clustered Tables with Nonclustered Columnstore Index
- Added support for Databases with collations different to TempDB
Changes in 1.5.0
+ Added new parameter that allows to filter the results by specific partition number (@partitionNumber)
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
- Fixed Bug with the Columnstore Indexes being limited to values 1 and 2 (Thanks to Thomas Frohlich)
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetFragmentation' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetFragmentation as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Fragmenttion - Shows the different types of Columnstore Indexes Fragmentation
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetFragmentation (
-- Params --
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@indexLocation varchar(15) = NULL, -- ALlows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@showPartitionStats bit = 1, -- Allows to drill down fragmentation statistics on the partition level
@partitionNumber int = 0 -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1
-- end of --
) as
begin
set nocount on;
SELECT quotename(object_schema_name(p.object_id)) + '.' + quotename(object_name(p.object_id)) as 'TableName',
ind.name as 'IndexName',
case ind.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as 'Location',
replace(ind.type_desc,' COLUMNSTORE','') as 'IndexType',
case @showPartitionStats when 1 then p.partition_number else 1 end as 'Partition', --p.partition_number as 'Partition',
cast( Avg( (rg.deleted_rows * 1. / rg.total_rows) * 100 ) as Decimal(5,2)) as 'Fragmentation Perc.',
sum (case rg.deleted_rows when rg.total_rows then 1 else 0 end ) as 'Deleted RGs',
cast( (sum (case rg.deleted_rows when rg.total_rows then 1 else 0 end ) * 1. / count(*)) * 100 as Decimal(5,2)) as 'Deleted RGs Perc.',
sum( case rg.total_rows when 1048576 then 0 else 1 end ) as 'Trimmed RGs',
cast(sum( case rg.total_rows when 1048576 then 0 else 1 end ) * 1. / count(*) * 100 as Decimal(5,2)) as 'Trimmed Perc.',
avg(rg.total_rows - rg.deleted_rows) as 'Avg Rows',
sum(rg.total_rows) as [Total Rows],
count(*) - ceiling( 1. * sum(rg.total_rows - rg.deleted_rows) / 1048576) as 'Optimisable RGs',
cast((count(*) - ceiling( 1. * sum(rg.total_rows - rg.deleted_rows) / 1048576)) / count(*) * 100 as Decimal(8,2)) as 'Optimisable RGs Perc.',
count(*) as 'Row Groups'
FROM sys.partitions AS p
INNER JOIN sys.column_store_row_groups rg
ON p.object_id = rg.object_id and p.partition_number = rg.partition_number
INNER JOIN sys.indexes ind
on rg.object_id = ind.object_id and rg.index_id = ind.index_id
where rg.state in (2,3) -- 2 - Closed, 3 - Compressed (Ignoring: 0 - Hidden, 1 - Open, 4 - Tombstone)
and ind.type in (5,6) -- Index Type (Clustered Columnstore = 5, Nonclustered Columnstore = 6. Note: There are no Deleted Bitmaps in NCCI in SQL 2012 & 2014)
and p.data_compression in (3,4)
AND (@preciseSearch = 0 AND (@tableName is null or object_name ( p.object_id ) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name ( p.object_id ) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( p.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( p.object_id ) = @schemaName))
AND (ISNULL(@objectId,rg.object_id) = rg.object_id)
AND rg.partition_number = case @partitionNumber when 0 then rg.partition_number else @partitionNumber end
group by p.object_id, ind.data_space_id, ind.name, ind.type_desc, case @showPartitionStats when 1 then p.partition_number else 1 end
union all
SELECT quotename(isnull(object_schema_name(obj.object_id, db_id('tempdb')),'dbo')) + '.' + quotename(obj.name) as 'TableName',
ind.name COLLATE DATABASE_DEFAULT as 'IndexName',
case ind.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as 'Location',
replace(ind.type_desc,' COLUMNSTORE','') as 'IndexType',
case @showPartitionStats when 1 then p.partition_number else 1 end as 'Partition', --p.partition_number as 'Partition',
cast( Avg( (rg.deleted_rows * 1. / rg.total_rows) * 100 ) as Decimal(5,2)) as 'Fragmentation Perc.',
sum (case rg.deleted_rows when rg.total_rows then 1 else 0 end ) as 'Deleted RGs',
cast( (sum (case rg.deleted_rows when rg.total_rows then 1 else 0 end ) * 1. / count(*)) * 100 as Decimal(5,2)) as 'Deleted RGs Perc.',
sum( case rg.total_rows when 1048576 then 0 else 1 end ) as 'Trimmed RGs',
cast(sum( case rg.total_rows when 1048576 then 0 else 1 end ) * 1. / count(*) * 100 as Decimal(5,2)) as 'Trimmed Perc.',
avg(rg.total_rows - rg.deleted_rows) as 'Avg Rows',
sum(rg.total_rows) as [Total Rows],
count(*) - ceiling( 1. * sum(rg.total_rows - rg.deleted_rows) / 1048576) as 'Optimisable RGs',
cast((count(*) - ceiling( 1. * sum(rg.total_rows - rg.deleted_rows) / 1048576)) / count(*) * 100 as Decimal(8,2)) as 'Optimisable RGs Perc.',
count(*) as 'Row Groups'
FROM tempdb.sys.partitions AS p
inner join tempdb.sys.objects obj
on p.object_id = obj.object_id
INNER JOIN tempdb.sys.column_store_row_groups rg
ON p.object_id = rg.object_id and p.partition_number = rg.partition_number
INNER JOIN tempdb.sys.indexes ind
on rg.object_id = ind.object_id and rg.index_id = ind.index_id
where rg.state in (2,3) -- 2 - Closed, 3 - Compressed (Ignoring: 0 - Hidden, 1 - Open, 4 - Tombstone)
and ind.type in (5,6) -- Index Type (Clustered Columnstore = 5, Nonclustered Columnstore = 6. Note: There are no Deleted Bitmaps in NCCI in SQL 2012 & 2014)
and p.data_compression in (3,4)
AND (@preciseSearch = 0 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,rg.object_id) = rg.object_id)
AND rg.partition_number = case @partitionNumber when 0 then rg.partition_number else @partitionNumber end
and ind.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else ind.data_space_id end, ind.data_space_id )
group by p.object_id, ind.data_space_id, obj.object_id, obj.name, ind.name, ind.type_desc, case @showPartitionStats when 1 then p.partition_number else 1 end
order by TableName;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
MemoryInfo - Shows the content of the Columnstore Object Pool
Version: 1.5.0, August 2017
Copyright (C): Niko Neugebauer, OH22 IS (http://www.oh22.is)
http://www.nikoport.com/columnstore
All rights reserved.
This software is free to use as long as the original notes are included.
You are not allowed to use this script, nor its modifications in the commercial software.
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
* Changed the output from '% of Total' to '% of Total Column Structures' for better clarity
- Fixed error where the delta-stores were counted as one of the objects to be inside Columnstore Object Pool
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.4.2
- Fixed bug on including Delta-Stores information into the count of the compressed Row Group
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetMemory' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetMemory as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
MemoryInfo - Shows the content of the Columnstore Object Pool
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetMemory(
-- Params --
@showColumnDetails bit = 1, -- Drills down into each of the columns inside the memory
@showObjectTypeDetails bit = 1, -- Shows details about the type of the object that is located in memory
@minMemoryInMb Decimal(8,2) = 0.0, -- Filters the minimum amount of memory that the Columnstore object should occupy
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@columnName nvarchar(256) = NULL, -- Allows to filter a specific column name
@objectType nvarchar(50) = NULL -- Allows to filter a specific type of the memory object. Possible values are 'Segment','Global Dictionary','Local Dictionary','Primary Dictionary Bulk','Deleted Bitmap'
-- end of --
) as
begin
set nocount on;
with memCache as (
select name, entry_data, pages_kb, cast( '<cache ' + replace(substring(entry_data,2,len(entry_data)-1),'''','"') as xml) as 'cache'
from sys.dm_os_memory_cache_entries mem
where type = 'CACHESTORE_COLUMNSTOREOBJECTPOOL'
),
MemCacheXML as (
select cache.value('(/cache/@hobt_id)[1]', 'bigint') as Hobt,
part.object_id, part.partition_number,
object_schema_name(part.object_id) + '.' + object_name(part.object_id) as TableName,
cache.value('(/cache/@column_id)[1]', 'int')-1 as ColumnId,
cache.value('(/cache/@object_type)[1]', 'tinyint') as ObjectType,
memCache.name,
entry_data,
pages_kb
from memCache
inner join sys.partitions part
on cache.value('(/cache/@hobt_id)[1]', 'bigint') = part.hobt_id
where cache.value('(/cache/@db_id)[1]', 'smallint') = db_id()
and (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name(part.object_id) = @schemaName)
and part.object_id = isnull(@objectId, part.object_id)
)
select TableName,
case @showColumnDetails when 1 then ColumnId else NULL end as ColumnId,
case @showColumnDetails when 1 then cols.name else NULL end as ColumnName,
case @showColumnDetails when 1 then tp.name else NULL end as ColumnType,
case @showObjectTypeDetails
when 1 then
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end
else NULL end as ObjectType,
count(*) as Fragments,
cast((select count(mem.TableName) * 100./count(distinct rg.row_group_id)
* max(case ObjectType when 1 then 1 else 0 end) -- Count only Segments
* max(case @showObjectTypeDetails & @showColumnDetails when 1 then 1 else 0 end) -- Show calculations only when @showObjectTypeDetails & @showColumnDetails are set
+ max(case @showObjectTypeDetails & @showColumnDetails when 1 then (case ObjectType when 1 then 0 else NULL end) else NULL end)
-- Resets to -1 when when @showObjectTypeDetails & @showColumnDetails are not set
from sys.column_store_row_groups rg
where rg.object_id = mem.object_id
and rg.state = 3
AND rg.delta_store_hobt_id is NULL ) as Decimal(8,2)) as '% of Total Column Structures',
cast( sum( pages_kb ) / 1024. as Decimal(8,3) ) as 'SizeInMB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from MemCacheXML mem
left join sys.columns cols
on mem.object_id = cols.object_id and mem.ColumnId = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
left join sys.dm_db_index_usage_stats stat
on mem.object_id = stat.object_id
where cols.name = isnull(@columnName,cols.name)
and (case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end = isnull(@objectType,
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end))
group by mem.object_id, TableName,
case @showColumnDetails when 1 then ColumnId else NULL end,
case @showObjectTypeDetails
when 1 then
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end
else NULL end,
case @showColumnDetails when 1 then cols.name else NULL end,
case @showColumnDetails when 1 then tp.name else NULL end
having sum( pages_kb ) / 1024. >= @minMemoryInMb
order by TableName, ColumnId, sum( pages_kb ) / 1024. desc;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Row Groups - Shows detailed information on the Columnstore Row Groups inside current Database
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- View Permission State is required to run this stored procedure.
Changes in 1.0.3
+ Added parameter for showing aggregated information on the whole table, instead of partitioned view as before
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
- Fixed bug with showing 1 row group for an empty Columnstore (now showing correctly 0 row groups)
- Fixed bugs for filtering by schema & name of the columnstore table (it is now using the sys.indexes DMV as the base, thus guaranteeing correct results for the empty Columnstore)
- Fixed bug with including aggregating tables without taking care of the database name, thus potentially including results from the equally named table from a different database
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added new parameter for filtering a specific partition
+ Added new column for the Index Location (Disk-Based)
Changes in 1.4.0
- Fixed an extremely rare bug with the sys.dm_db_index_usage_stats DMV, where it contains queries for the local databases object made from other databases only
Changes in 1.4.2
- Fixed bug on lookup for the Object Name for the empty Columnstore tables
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
--Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetRowGroups' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetRowGroups as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Row Groups - Shows detailed information on the Columnstore Row Groups inside current Database
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetRowGroups(
-- Params --
@indexType char(2) = NULL, -- Allows to filter Columnstore Indexes by their type, with possible values (CC for 'Clustered', NC for 'Nonclustered' or NULL for both)
@compressionType varchar(15) = NULL, -- Allows to filter by the compression type with following values 'ARCHIVE', 'COLUMNSTORE' or NULL for both
@minTotalRows bigint = 000000, -- Minimum number of rows for a table to be included
@minSizeInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be included
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@showPartitionDetails bit = 0, -- Allows to show details of each of the available partitions
@partitionId int = NULL -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1
-- end of --
) as
begin
set nocount on;
select quotename(object_schema_name(ind.object_id)) + '.' + quotename(object_name(ind.object_id)) as 'TableName',
case ind.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
'Disk-Based' as Location,
(case @showPartitionDetails when 1 then part.partition_number else 1 end) as 'Partition',
case count( distinct part.data_compression_desc) when 1 then max(part.data_compression_desc) else 'Multiple' end as 'Compression Type',
sum(case rg.state when 0 then 1 else 0 end) as 'Bulk Load RG',
sum(case rg.state when 1 then 1 else 0 end) as 'Open DS',
sum(case rg.state when 2 then 1 else 0 end) as 'Closed DS',
sum(case rg.state when 3 then 1 else 0 end) as 'Compressed',
count(rg.row_group_id) as 'Total',
cast( sum(isnull(rg.deleted_rows,0))/1000000. as Decimal(16,6)) as 'Deleted Rows (M)',
cast( sum(isnull(rg.total_rows-isnull(deleted_rows,0),0))/1000000. as Decimal(16,6)) as 'Active Rows (M)',
cast( sum(isnull(rg.total_rows,0))/1000000. as Decimal(16,6)) as 'Total Rows (M)',
cast( sum(isnull(rg.size_in_bytes,0) / 1024. / 1024 / 1024) as Decimal(8,2)) as 'Size in GB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from sys.indexes ind
left join sys.column_store_row_groups rg
on ind.object_id = rg.object_id
left join sys.partitions part with(READUNCOMMITTED)
on ind.object_id = part.object_id and isnull(rg.partition_number,1) = part.partition_number
left join sys.dm_db_index_usage_stats stat with(READUNCOMMITTED)
on rg.object_id = stat.object_id and ind.index_id = stat.index_id
and isnull(stat.database_id,db_id()) = db_id()
where ind.type in (5,6) -- Clustered & Nonclustered Columnstore
and part.data_compression_desc in ('COLUMNSTORE','COLUMNSTORE_ARCHIVE')
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
and case @compressionType when 'Columnstore' then 3 when 'Archive' then 4 else part.data_compression end = part.data_compression
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id ) = @schemaName))
and ind.object_id = isnull(@objectId, ind.object_id)
and part.partition_number = isnull(@partitionId, part.partition_number) -- Partition Filtering
group by ind.object_id, ind.type, (case @showPartitionDetails when 1 then part.partition_number else 1 end) --, part.data_compression_desc
having cast( sum(isnull(size_in_bytes,0) / 1024. / 1024 / 1024) as Decimal(8,2)) >= @minSizeInGB
and sum(isnull(total_rows,0)) >= @minTotalRows
union all
select quotename(object_schema_name(ind.object_id, db_id('tempdb'))) + '.' + quotename(object_name(ind.object_id, db_id('tempdb'))) as 'TableName',
case ind.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
'Disk-Based' as Location,
(case @showPartitionDetails when 1 then part.partition_number else 1 end) as 'Partition',
case count( distinct part.data_compression_desc) when 1 then max(part.data_compression_desc) else 'Multiple' end as 'Compression Type',
sum(case rg.state when 0 then 1 else 0 end) as 'Bulk Load RG',
sum(case rg.state when 1 then 1 else 0 end) as 'Open DS',
sum(case rg.state when 2 then 1 else 0 end) as 'Closed DS',
sum(case rg.state when 3 then 1 else 0 end) as 'Compressed',
count(rg.row_group_id) as 'Total',
cast( sum(isnull(rg.deleted_rows,0))/1000000. as Decimal(16,6)) as 'Deleted Rows (M)',
cast( sum(isnull(rg.total_rows-isnull(deleted_rows,0),0))/1000000. as Decimal(16,6)) as 'Active Rows (M)',
cast( sum(isnull(rg.total_rows,0))/1000000. as Decimal(16,6)) as 'Total Rows (M)',
cast( sum(isnull(rg.size_in_bytes,0) / 1024. / 1024 / 1024) as Decimal(8,2)) as 'Size in GB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from tempdb.sys.indexes ind
left join tempdb.sys.column_store_row_groups rg
on ind.object_id = rg.object_id
left join tempdb.sys.partitions part with(READUNCOMMITTED)
on ind.object_id = part.object_id and isnull(rg.partition_number,1) = part.partition_number
left join tempdb.sys.dm_db_index_usage_stats stat with(READUNCOMMITTED)
on rg.object_id = stat.object_id and ind.index_id = stat.index_id
where ind.type in (5,6) -- Clustered & Nonclustered Columnstore
and part.data_compression_desc in ('COLUMNSTORE','COLUMNSTORE_ARCHIVE')
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
and case @compressionType when 'Columnstore' then 3 when 'Archive' then 4 else part.data_compression end = part.data_compression
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) = @schemaName))
and ind.object_id = isnull(@objectId, ind.object_id)
and isnull(stat.database_id,db_id('tempdb')) = db_id('tempdb')
and part.partition_number = isnull(@partitionId, part.partition_number) -- Partition Filtering
group by ind.object_id, ind.type, (case @showPartitionDetails when 1 then part.partition_number else 1 end) --, part.data_compression_desc
having cast( sum(isnull(size_in_bytes,0) / 1024. / 1024 / 1024) as Decimal(8,2)) >= @minSizeInGB
and sum(isnull(total_rows,0)) >= @minTotalRows
order by TableName,
(case @showPartitionDetails when 1 then part.partition_number else 1 end);
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Row Groups Details - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
Modifications:
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added compatibility support for the SQL Server 2016 internals information on Row Group Trimming, Build Process, Vertipaq Optimisations, Sequential Generation Id, Closed DateTime & Creation DateTime
+ Added 2 new compatibility parameters for filtering out the Min & Max Creation DateTimes
- Fixed error for the temporary tables support
* Changed the name of the second result column from partition_number to partition
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
--Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetRowGroupsDetails' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetRowGroupsDetails as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Row Groups Details - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetRowGroupsDetails(
-- Params --
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@partitionNumber bigint = 0, -- Allows to show details of each of the available partitions, where 0 stands for no filtering
@showTrimmedGroupsOnly bit = 0, -- Filters only those Row Groups, which size <> 1048576
@showNonCompressedOnly bit = 0, -- Filters out the comrpessed Row Groups
@showFragmentedGroupsOnly bit = 0, -- Allows to show the Row Groups that have Deleted Rows in them
@minSizeInMB Decimal(16,3) = NULL, -- Minimum size in MB for a table to be included
@maxSizeInMB Decimal(16,3) = NULL, -- Maximum size in MB for a table to be included
@minCreatedDateTime Datetime = NULL, -- The earliest create datetime for Row Group to be included
@maxCreatedDateTime Datetime = NULL -- The lateste create datetime for Row Group to be included
-- end of --
) as
BEGIN
set nocount on;
select quotename(object_schema_name(rg.object_id)) + '.' + quotename(object_name(rg.object_id)) as [Table Name],
'Disk-Based' as [Location],
rg.partition_number as partition,
rg.row_group_id,
rg.state,
rg.state_description,
rg.total_rows,
rg.deleted_rows,
cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) as [Size in MB],
NULL as trim_reason,
NULL as trim_reason_desc,
NULL compress_op,
NULL as compress_op_desc,
NULL as optimised,
NULL as generation,
NULL as closed_time,
ind.create_date as created_time
from sys.column_store_row_groups rg
inner join sys.objects ind
on rg.object_id = ind.object_id
where rg.total_rows <> case @showTrimmedGroupsOnly when 1 then 1048576 else -1 end
and rg.state <> case @showNonCompressedOnly when 0 then -1 else 3 end
and isnull(rg.deleted_rows,0) <> case @showFragmentedGroupsOnly when 1 then 0 else -1 end
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id) and rg.partition_number = case @partitionNumber when 0 then rg.partition_number else @partitionNumber end
and cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) >= isnull(@minSizeInMB,0.)
and cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) <= isnull(@maxSizeInMB,999999999.)
and ind.create_date between isnull(@minCreatedDateTime,ind.create_date) and isnull(@maxCreatedDateTime,ind.create_date)
UNION ALL
select quotename(object_schema_name(rg.object_id, db_id('tempdb'))) + '.' + quotename(object_name(rg.object_id, db_id('tempdb'))) as [Table Name],
'Disk-Based' as [Location],
rg.partition_number as partition,
rg.row_group_id,
rg.state,
rg.state_description,
rg.total_rows,
rg.deleted_rows,
cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) as [Size in MB],
NULL as trim_reason,
NULL as trim_reason_desc,
NULL compress_op,
NULL as compress_op_desc,
NULL as optimised,
NULL as generation,
NULL as closed_time,
ind.create_date as created_time
from tempdb.sys.column_store_row_groups rg
inner join tempdb.sys.objects ind
on rg.object_id = ind.object_id
where rg.total_rows <> case @showTrimmedGroupsOnly when 1 then 1048576 else -1 end
and rg.state <> case @showNonCompressedOnly when 0 then -1 else 3 end
and isnull(rg.deleted_rows,0) <> case @showFragmentedGroupsOnly when 1 then 0 else -1 end
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id)
and rg.partition_number = case @partitionNumber when 0 then rg.partition_number else @partitionNumber end
and cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) >= isnull(@minSizeInMB,0.)
and cast(isnull(rg.size_in_bytes,0) / 1024. / 1024 as Decimal(8,3)) <= isnull(@maxSizeInMB,999999999.)
and ind.create_date between isnull(@minCreatedDateTime,ind.create_date) and isnull(@maxCreatedDateTime,ind.create_date)
order by [Table Name], rg.partition_number, rg.row_group_id;
END
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
SQL Server Instance Information - Provides with the list of the known SQL Server versions that have bugfixes or improvements over your current version + lists currently enabled trace flags on the instance & session
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- Custom non-standard (non-CU & non-SP) versions are not targeted yet
*/
/*
Changes in 1.0.1
+ Added drops for the existing temp tables: #SQLColumnstoreImprovements, #SQLBranches, #SQLVersions
+ Added new parameter for Enables showing the SQL Server versions that are posterior the current version
* Added more source code description in the comments
+ Removed some redundant information (column UpdateName from the #SQLColumnstoreImprovements) which were left from the very early versions
- Fixed erroneous build version for the SQL Server 2014 SP2 CU2
Changes in 1.0.2
+ Added information about CU 3 for SQL Server 2014 SP1 and CU 10 for SQL Server 2014 RTM
+ Added column with the CU Version for the Bugfixes output
- Fixed bug with the wrong CU9 Version
* Updated temporary tables in order to avoid error messages
Changes in 1.0.4
+ Added information about each release date and the number of days since the installed released was published
+ Added information about CU 4 for SQL Server 2014 SP1 and CU 11 for SQL Server 2014 RTM
Changes in 1.1.0
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
+ Added Information about CU 5 & CU 6 for SQL Server 2014 SP1 & about CU 12 & CU 13 for SQL Server 2014 RTM
Changes in 1.3.0
+ Added Information about updated CU 6A, CU 7 for SQL Server 2014 SP1 & CU 14 for SQL Server 2014 RTM
+ Added Information about SQL Server 2014 SP2
Changes in 1.3.1
+ Added Information about updated CU 8 for SQL Server 2014 SP1 & CU 1 for SQL Server 2014 SP2
Changes in 1.4.0
- Fixed Bug with Duplicate Fixes & Improvements (CU12 for SP1 & CU2 for SP2, for example) not being eliminated from the list
- Added information on the CU 9 for SQL Server 2014 SP1 & CU 2 for SQL Server 2014 SP2
Changes in 1.4.2
- Added information on the CU 10 for SQL Server 2014 SP1 & CU 3 for SQL Server 2014 SP2
Changes in 1.5.0
+ Added information on the CU 11, CU 12, CU 13 for SQL Server 2014 SP1 & CU 4, CU 5, CU 6 & CU 7 for SQL Server 2014 SP2
+ Added displaying information on the date of each of the service releases (when using parameter @showNewerVersions)
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetSQLInfo' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetSQLInfo as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
SQL Server Instance Information - Provides with the list of the known SQL Server versions that have bugfixes or improvements over your current version + lists currently enabled trace flags on the instance & session
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetSQLInfo(
-- Params --
@showUnrecognizedTraceFlags bit = 1, -- Enables showing active trace flags, even if they are not columnstore indexes related
@identifyCurrentVersion bit = 1, -- Enables identification of the currently used SQL Server Instance version
@showNewerVersions bit = 0 -- Enables showing the SQL Server versions that are posterior the current version-- end of --
) as
begin
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @SQLServerBuild smallint = substring(@SQLServerVersion,CHARINDEX('.',@SQLServerVersion,5)+1,CHARINDEX('.',@SQLServerVersion,8)-CHARINDEX('.',@SQLServerVersion,5)-1);
if OBJECT_ID('tempdb..#SQLColumnstoreImprovements', 'U') IS NOT NULL
drop table #SQLColumnstoreImprovements;
if OBJECT_ID('tempdb..#SQLBranches', 'U') IS NOT NULL
drop table #SQLBranches;
if OBJECT_ID('tempdb..#SQLVersions', 'U') IS NOT NULL
drop table #SQLVersions;
-- Returns tables suggested for using Columnstore Indexes for the DataWarehouse environments
create table #SQLColumnstoreImprovements(
BuildVersion smallint not null,
SQLBranch char(3) not null,
Description nvarchar(500) not null,
URL nvarchar(1000)
);
create table #SQLBranches(
SQLBranch char(3) not null Primary Key,
MinVersion smallint not null );
create table #SQLVersions(
SQLBranch char(3) not null,
SQLVersion smallint not null Primary Key,
ReleaseDate datetime not null,
SQLVersionDescription nvarchar(100) );
insert into #SQLBranches (SQLBranch, MinVersion)
values ('RTM', 2000 ), ('SP1', 4100), ('SP2', 5000) ;
insert #SQLVersions( SQLBranch, SQLVersion, ReleaseDate, SQLVersionDescription )
values
( 'RTM', 2000, convert(datetime,'01-04-2014',105), 'SQL Server 2014 RTM' ),
( 'RTM', 2342, convert(datetime,'21-04-2014',105), 'CU 1 for SQL Server 2014 RTM' ),
( 'RTM', 2370, convert(datetime,'27-06-2014',105), 'CU 2 for SQL Server 2014 RTM' ),
( 'RTM', 2402, convert(datetime,'18-08-2014',105), 'CU 3 for SQL Server 2014 RTM' ),
( 'RTM', 2430, convert(datetime,'21-10-2014',105), 'CU 4 for SQL Server 2014 RTM' ),
( 'RTM', 2456, convert(datetime,'18-12-2014',105), 'CU 5 for SQL Server 2014 RTM' ),
( 'RTM', 2480, convert(datetime,'16-02-2015',105), 'CU 6 for SQL Server 2014 RTM' ),
( 'RTM', 2495, convert(datetime,'23-04-2015',105), 'CU 7 for SQL Server 2014 RTM' ),
( 'RTM', 2546, convert(datetime,'22-06-2015',105), 'CU 8 for SQL Server 2014 RTM' ),
( 'RTM', 2553, convert(datetime,'17-08-2015',105), 'CU 9 for SQL Server 2014 RTM' ),
( 'RTM', 2556, convert(datetime,'20-10-2015',105), 'CU 10 for SQL Server 2014 RTM' ),
( 'RTM', 2560, convert(datetime,'22-12-2015',105), 'CU 11 for SQL Server 2014 RTM' ),
( 'RTM', 2564, convert(datetime,'22-02-2016',105), 'CU 12 for SQL Server 2014 RTM' ),
( 'RTM', 2568, convert(datetime,'19-04-2016',105), 'CU 13 for SQL Server 2014 RTM' ),
( 'RTM', 2569, convert(datetime,'20-06-2016',105), 'CU 14 for SQL Server 2014 RTM' ),
( 'SP1', 4100, convert(datetime,'14-05-2015',105), 'SQL Server 2014 SP1' ),
( 'SP1', 4416, convert(datetime,'22-06-2015',105), 'CU 1 for SQL Server 2014 SP1' ),
( 'SP1', 4422, convert(datetime,'17-08-2015',105), 'CU 2 for SQL Server 2014 SP1' ),
( 'SP1', 4427, convert(datetime,'21-10-2015',105), 'CU 3 for SQL Server 2014 SP1' ),
( 'SP1', 4436, convert(datetime,'22-12-2015',105), 'CU 4 for SQL Server 2014 SP1' ),
( 'SP1', 4439, convert(datetime,'22-02-2016',105), 'CU 5 for SQL Server 2014 SP1' ),
( 'SP1', 4449, convert(datetime,'19-04-2016',105), 'CU 6 for SQL Server 2014 SP1' ),
( 'SP1', 4457, convert(datetime,'31-05-2016',105), 'CU 6A for SQL Server 2014 SP1' ),
( 'SP1', 4459, convert(datetime,'20-06-2016',105), 'CU 7 for SQL Server 2014 SP1' ),
( 'SP1', 4468, convert(datetime,'15-08-2016',105), 'CU 8 for SQL Server 2014 SP1' ),
( 'SP1', 4474, convert(datetime,'18-10-2016',105), 'CU 9 for SQL Server 2014 SP1' ),
( 'SP1', 4491, convert(datetime,'18-12-2016',105), 'CU 10 for SQL Server 2014 SP1' ),
( 'SP1', 4502, convert(datetime,'21-02-2017',105), 'CU 11 for SQL Server 2014 SP1' ),
( 'SP1', 4511, convert(datetime,'18-04-2017',105), 'CU 12 for SQL Server 2014 SP1' ),
( 'SP1', 4522, convert(datetime,'08-08-2017',105), 'CU 13 for SQL Server 2014 SP1' ),
( 'SP2', 5000, convert(datetime,'11-07-2016',105), 'SQL Server 2014 SP2' ),
( 'SP2', 5511, convert(datetime,'25-08-2016',105), 'CU 1 for SQL Server 2014 SP2' ),
( 'SP2', 5522, convert(datetime,'18-10-2016',105), 'CU 2 for SQL Server 2014 SP2' ),
( 'SP2', 5537, convert(datetime,'28-12-2016',105), 'CU 3 for SQL Server 2014 SP2' ),
( 'SP2', 5540, convert(datetime,'21-02-2017',105), 'CU 4 for SQL Server 2014 SP2' ),
( 'SP2', 5546, convert(datetime,'18-04-2017',105), 'CU 5 for SQL Server 2014 SP2' ),
( 'SP2', 5553, convert(datetime,'08-08-2017',105), 'CU 6 for SQL Server 2014 SP2' ),
( 'SP2', 5556, convert(datetime,'29-08-2017',105), 'CU 7 for SQL Server 2014 SP2' );
insert into #SQLColumnstoreImprovements (BuildVersion, SQLBranch, Description, URL )
values
( 2342, 'RTM', 'FIX: Error 35377 when you build or rebuild clustered columnstore index with maxdop larger than 1 through MARS connection in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2942895' ),
( 2370, 'RTM', 'FIX: Loads or queries on CCI tables block one another in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2931815' ),
( 2370, 'RTM', 'FIX: Access violation when you insert data into a table that has a clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2966096' ),
( 2370, 'RTM', 'FIX: Error when you drop a clustered columnstore index table during recovery in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2974397' ),
( 2370, 'RTM', 'FIX: Poor performance when you bulk insert into partitioned CCI in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2969421' ),
( 2370, 'RTM', 'FIX: Truncated CCI partitioned table runs for a long time in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2969419' ),
( 2370, 'RTM', 'FIX: DBCC SHRINKDATABASE or DBCC SHRINKFILE cannot move pages that belong to the nonclustered columnstore index', 'https://support.microsoft.com/en-us/kb/2967198' ),
( 2402, 'RTM', 'FIX: UPDATE or INSERT statement on CCI makes sys.partitions not match actual row count in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2978472' ),
( 2402, 'RTM', 'FIX: Cannot create indexed view on a clustered columnstore index and BCP on the table fails in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/2981764' ),
( 2402, 'RTM', 'FIX: Some columns in sys.column_store_segments view show NULL value when the table has non-dbo schema in SQL Server', 'https://support.microsoft.com/en-us/kb/2989704' ),
( 2430, 'RTM', 'FIX: Error 8654 when you run "INSERT INTO … SELECT" on a table with clustered columnstore index in SQL Server 2014 ', 'https://support.microsoft.com/en-us/kb/2998301' ),
( 2430, 'RTM', 'FIX: UPDATE STATISTICS performs incorrect sampling and processing for a table with columnstore index in SQL Server', 'https://support.microsoft.com/en-us/kb/2986627' ),
( 2456, 'RTM', 'FIX: Error 35377 occurs when you try to access clustered columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3020113' ),
( 2480, 'RTM', 'FIX: Access violation occurs when you delete rows from a table that has clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3029762' ),
( 2480, 'RTM', 'FIX: OS error 665 when you execute DBCC CHECKDB command for database that contains columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3029977' ),
( 2480, 'RTM', 'FIX: Error 8646 when you run DML statements on a table with clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3035165' ),
( 2480, 'RTM', 'FIX: Improved memory management for columnstore indexes to deliver better query performance in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3053664' ),
( 2495, 'RTM', 'FIX: Partial results in a query of a clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3067257' ),
( 2546, 'RTM', 'FIX: Error 33294 occurs when you alter column types on a table that has clustered columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3070139' ),
( 2546, 'RTM', '"Non-yielding Scheduler" error when a database has columnstore indexes on a SQL Server 2014 instance', 'https://support.microsoft.com/en-us/kb/3069488' ),
( 2546, 'RTM', 'FIX: Memory is paged out when columnstore index query consumes lots of memory in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3067968' ),
( 2553, 'RTM', 'FIX: Rare index corruption when you build a columnstore index with parallelism on a partitioned table in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3080155' ),
( 2556, 'RTM', 'FIX: Access violation when you query against a table that contains column store indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3097601' ),
( 2556, 'RTM', 'FIX: FIX: Assert occurs when you change the type of column in a table that has clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3098529' ),
( 2560, 'RTM', 'FIX: "Non-yielding Scheduler" condition when you query a partitioned table that has a column store index in SQL Server 2014 ', 'https://support.microsoft.com/en-us/kb/3121647' ),
( 2564, 'RTM', 'FIX: Columnstore index corruption occurs when you use AlwaysOn Availability Groups in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3135751' ),
( 2568, 'RTM', 'Query plan generation improvement for some columnstore queries in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3146123' ),
( 4100, 'SP1', 'LOB reads are shown as zero when "SET STATISTICS IO" is on during executing a query with clustered columnstore index.', 'https://support.microsoft.com/en-us/kb/3058865' ),
( 4100, 'SP1', 'FIX: OS error 665 when you execute DBCC CHECKDB command for database that contains columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3029977' ),
( 4100, 'SP1', 'FIX: Error 8646 when you run DML statements on a table with clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3035165' ),
( 4416, 'SP1', 'FIX: Improved memory management for columnstore indexes to deliver better query performance in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3053664' ),
( 4416, 'SP1', '"Non-yielding Scheduler" error when a database has columnstore indexes on a SQL Server 2014 instance', 'https://support.microsoft.com/en-us/kb/3069488' ),
( 4416, 'SP1', 'FIX: Access violation occurs when you delete rows from a table that has clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3029762' ),
( 4416, 'SP1', 'FIX: Memory is paged out when columnstore index query consumes lots of memory in SQL Server 2014 ', 'https://support.microsoft.com/en-us/kb/3067968' ),
( 4416, 'SP1', 'FIX: Severe error in SQL Server 2014 during compilation of a query on a table with clustered columnstore index', 'https://support.microsoft.com/en-us/kb/3068297' ),
( 4416, 'SP1', 'FIX: Error 8646 when you run DML statements on a table with clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3035165' ),
( 4416, 'SP1', 'FIX: Partial results in a query of a clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3067257' ),
( 4416, 'SP1', 'FIX: Error 33294 occurs when you alter column types on a table that has clustered columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3070139' ),
( 4427, 'SP1', 'FIX: Rare index corruption when you build a columnstore index with parallelism on a partitioned table in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3080155' ),
( 4436, 'SP1', 'FIX: Query stops responding when you run a parallel query on a table that has a columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3110497' ),
( 4439, 'SP1', 'FIX: Error 35377 occurs when you try to access clustered columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3020113' ),
( 4449, 'SP1', 'FIX: Columnstore index corruption occurs when you use AlwaysOn Availability Groups in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3135751' ),
( 4449, 'SP1', 'FIX: SELECT…INTO statement retrieves incorrect result from a clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3152606' ),
( 4459, 'SP1', 'FIX: DBCC CHECKTABLE returns an incorrect result after the clustered columnstore index is rebuilt in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3168712' ),
( 4459, 'SP1', 'Query plan generation improvement for some columnstore queries in SQL Server 2014 ', 'https://support.microsoft.com/en-us/kb/3146123' ),
( 4474, 'SP1', 'FIX: Access violation when you run a query that uses clustered columnstore index with trace flag 2389, 2390, or 4139', 'https://support.microsoft.com/en-us/kb/3189645' ),
( 4491, 'SP1', 'FIX: Out-of-memory errors when you execute DBCC CHECKDB on database that contains columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3201416' ),
( 4491, 'SP1', 'FIX: Memory is paged out when columnstore index query consumes lots of memory in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3067968' ),
( 4491, 'SP1', 'FIX: Out-of-memory errors when you execute DBCC CHECKDB on database that contains columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3201416' ),
( 4522, 'SP1', 'FIX: Access violation with query to retrieve data from a clustered columnstore index in SQL Server 2014 or 2016', 'https://support.microsoft.com/en-us/help/4024184/fix-access-violation-with-query-to-retrieve-data-from-a-clustered-colu' ),
( 5522, 'SP2', 'FIX: Access violation when you run a query that uses clustered columnstore index with trace flag 2389, 2390, or 4139', 'https://support.microsoft.com/en-us/kb/3189645' ),
( 5522, 'SP2', 'FIX: Deadlock when you execute a query plan with a nested loop join in batch mode in SQL Server 2014 or 2016', 'https://support.microsoft.com/en-us/kb/3195825' ),
( 5522, 'SP2', 'Improved SQL Server stability and concurrent query execution for some columnstore queries in SQL Server 2014 and 2016', 'https://support.microsoft.com/en-us/kb/3191487' ),
( 5537, 'SP2', 'FIX: Out-of-memory errors when you execute DBCC CHECKDB on database that contains columnstore indexes in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3201416' ),
( 5537, 'SP2', 'FIX: Intra-query deadlock when values are inserted into a partitioned clustered columnstore index in SQL Server 2014', 'https://support.microsoft.com/en-us/kb/3204769' ),
( 5540, 'SP2', 'FIX: Memory is paged out when columnstore index query consumes lots of memory in SQL Server 2014', 'https://support.microsoft.com/en-us/help/3067968' ),
( 5546, 'SP2', 'FIX: Access violation in SQL Server 2014 when large number of rows are inserted into a partitioned columnstore index', 'https://support.microsoft.com/en-us/help/4014327/fix-access-violation-in-sql-server-2014-when-large-number-of-rows-are' ),
( 5553, 'SP2', 'FIX: Access violation with query to retrieve data from a clustered columnstore index in SQL Server 2014 or 2016', 'https://support.microsoft.com/en-us/help/4024184/fix-access-violation-with-query-to-retrieve-data-from-a-clustered-colu' ),
( 5556, 'SP2', 'FIX: Access violation with query to retrieve data from a clustered columnstore index in SQL Server 2014 or 2016', 'https://support.microsoft.com/en-us/help/4024184/fix-access-violation-with-query-to-retrieve-data-from-a-clustered-colu' );
if @identifyCurrentVersion = 1
begin
if OBJECT_ID('tempdb..#TempVersionResults') IS NOT NULL
drop table #TempVersionResults;
create table #TempVersionResults(
MessageText nvarchar(512) NOT NULL,
SQLVersionDescription nvarchar(200) NOT NULL,
SQLBranch char(3) not null,
SQLVersion smallint NULL,
ReleaseDate Date NULL );
-- Identify the number of days that has passed since the installed release
declare @daysSinceLastRelease int = NULL;
select @daysSinceLastRelease = datediff(dd,max(ReleaseDate),getdate())
from #SQLVersions
where SQLBranch = ServerProperty('ProductLevel')
and SQLVersion = cast(@SQLServerBuild as int);
-- Display the current information about this SQL Server
if( exists (select 1
from #SQLVersions
where SQLVersion = cast(@SQLServerBuild as int) ) )
select 'You are Running:' as MessageText, SQLVersionDescription, SQLBranch, SQLVersion as BuildVersion, 'Your version is ' + cast(@daysSinceLastRelease as varchar(3)) + ' days old' as DaysSinceRelease
from #SQLVersions
where SQLVersion = cast(@SQLServerBuild as int);
else
select 'You are Running a Non RTM/SP/CU standard version:' as MessageText, '-' as SQLVersionDescription,
ServerProperty('ProductLevel') as SQLBranch, @SQLServerBuild as SQLVersion, 'Your version is ' + cast(@daysSinceLastRelease as varchar(3)) + ' days old' as DaysSinceRelease;
-- Select information about all newer SQL Server versions that are known
if @showNewerVersions = 1
begin
insert into #TempVersionResults
select 'Available Newer Versions:' as MessageText
, '' as SQLVersionDescription
, '' as SQLBranch, NULL as BuildVersion
, NULL as ReleaseDate
UNION ALL
select '' as MessageText, SQLVersionDescription as SQLVersionDescription
, SQLBranch as SQLVersionDescription
, SQLVersion as BuildVersion
, ReleaseDate as ReleaseDate
from #SQLVersions
where @SQLServerBuild < SQLVersion;
select *
from #TempVersionResults;
drop table #TempVersionResults;
end
end
select min(imps.BuildVersion) as BuildVersion, min(vers.SQLVersionDescription) as SQLVersionDescription, imps.Description, imps.URL
from #SQLColumnstoreImprovements imps
inner join #SQLBranches branch
on imps.SQLBranch = branch.SQLBranch
inner join #SQLVersions vers
on imps.BuildVersion = vers.SQLVersion
where BuildVersion > @SQLServerBuild
and branch.SQLBranch >= ServerProperty('ProductLevel')
and branch.MinVersion < BuildVersion
group by Description, URL, SQLVersionDescription
having min(imps.BuildVersion) = (select min(imps2.BuildVersion) from #SQLColumnstoreImprovements imps2 where imps.Description = imps2.Description and imps2.BuildVersion > @SQLServerBuild group by imps2.Description)
order by BuildVersion;
drop table #SQLColumnstoreImprovements;
drop table #SQLBranches;
drop table #SQLVersions;
--------------------------------------------------------------------------------------------------------------------
-- Trace Flags part
create table #ActiveTraceFlags(
TraceFlag nvarchar(20) not null,
Status bit not null,
Global bit not null,
Session bit not null );
insert into #ActiveTraceFlags
exec sp_executesql N'DBCC TRACESTATUS()';
create table #ColumnstoreTraceFlags(
TraceFlag int not null,
Description nvarchar(500) not null,
URL nvarchar(600),
SupportedStatus bit not null
);
insert into #ColumnstoreTraceFlags (TraceFlag, Description, URL, SupportedStatus )
values
( 634, 'Disables the background columnstore compression task.', 'https://msdn.microsoft.com/en-us/library/ms188396.aspx', 1 ),
( 834, 'Enable Large Pages', 'https://support.microsoft.com/en-us/kb/920093?wa=wsignin1.0', 0 ),
( 646, 'Gets text output messages that show what segments (row groups) were eliminated during query processing', 'http://social.technet.microsoft.com/wiki/contents/articles/5611.verifying-columnstore-segment-elimination.aspx', 1 ),
( 9453, 'Disables Batch Execution Mode', 'http://www.nikoport.com/2014/07/24/clustered-columnstore-indexes-part-35-trace-flags-query-optimiser-rules/', 1 ),
(10207, 'Skips Corrupted Columnstore Segments (Fixed in CU8 for SQL Server 2014 RTM and CU1 for SQL Server 2014 SP1)', 'https://support.microsoft.com/en-us/kb/3067257', 1 );
select tf.TraceFlag, isnull(conf.Description,'Unrecognized') as Description, isnull(conf.URL,'-') as URL, SupportedStatus
from #ActiveTraceFlags tf
left join #ColumnstoreTraceFlags conf
on conf.TraceFlag = tf.TraceFlag
where @showUnrecognizedTraceFlags = 1 or (@showUnrecognizedTraceFlags = 0 AND Description is not null);
drop table #ColumnstoreTraceFlags;
drop table #ActiveTraceFlags;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Suggested Tables - Lists tables which potentially can be interesting for implementing Columnstore Indexes
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- @showTSQLCommandsBeta parameter is in alpha version and not pretending to be complete any time soon. This output is provided as a basic help & guide convertion to Columnstore Indexes.
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
Changes in 1.0.4
- Bug fixes for the Nonclustered Columnstore Indexes creation conditions
- Buf fixes for the data types of the monitored functionalities, that in certain condition would give an error message.
- Bug fix for displaying the same primary key clustered index twice in the T-SQL drop script
Changes in 1.1.0
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL version can be easily determined.
Changes in 1.2.0
- Fixed displaying wrong number of rows for the found suggested tables
- Fixed error for filtering out the secondary nonclustered indexes in some bigger databases
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added support for InMemory Tables
+ Added information about the converted table location (In-Memory or Disk-Based)
+ Added new parameter for filtering the table location - @indexLocation with possible values (In-Memory or Disk-Based)
+ Added new parameter for controlling the needed statistics update for Memory Optimised tables - @updateMemoryOptimisedStats with default value set on false
Changes in 1.3.1
- Fixed a bug with filtering out the exact number of @minRows instead of including it
- Fixed a bug when @indexLocation was a non-correct value it would include all results. Now a wrong value will return no results.
Changes in 1.4.2
- Fixed bug on the size of the @minSizeToConsiderInGB parameter
+ Small Improvements for the @columnstoreIndexTypeForTSQL parameter with better quality generation for the complex objects with Primary Keys
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Added new parameter for the identifying the object by its object_id (@objectId)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
- Fixed bug with the partitioned table not showing the correct number of rows
+ Added new result column [Partitions] showing the total number of the partitions
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_SuggestedTables' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_SuggestedTables as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2014:
Suggested Tables - Lists tables which potentially can be interesting for implementing Columnstore Indexes
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_SuggestedTables(
-- Params --
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@objectId INT = NULL, -- Allows to show data filtered down to the specific object_id
@indexLocation varchar(15) = NULL, -- Allows to filter tables based on their location: Disk-Based & In-Memory
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@showTSQLCommandsBeta bit = 0, -- Shows a list with Commands for dropping the objects that prevent Columnstore Index creation
@columnstoreIndexTypeForTSQL varchar(20) = 'Clustered', -- Allows to define the type of Columnstore Index to be created eith possible values of 'Clustered' and 'Nonclustered'
@updateMemoryOptimisedStats bit = 0 -- Allows statistics update on the InMemory tables, since they are stalled within SQL Server 2014
-- end of --
) as
begin
set nocount on;
declare
@readCommitedSnapshot bit = 0,
@snapshotIsolation bit = 0;
-- Verify Snapshot Isolation Level or Read Commited Snapshot
select @readCommitedSnapshot = is_read_committed_snapshot_on,
@snapshotIsolation = snapshot_isolation_state
from sys.databases
where database_id = DB_ID();
-- Returns tables suggested for using Columnstore Indexes for the DataWarehouse environments
if OBJECT_ID('tempdb..#TablesToColumnstore') IS NOT NULL
drop table #TablesToColumnstore;
create table #TablesToColumnstore(
[ObjectId] int NOT NULL PRIMARY KEY,
[TableLocation] varchar(15) NOT NULL,
[TableName] nvarchar(1000) NOT NULL,
[ShortTableName] nvarchar(256) NOT NULL,
[Partitions] BIGINT NOT NULL,
[Row Count] bigint NOT NULL,
[Min RowGroups] smallint NOT NULL,
[Size in GB] decimal(16,3) NOT NULL,
[Cols Count] smallint NOT NULL,
[String Cols] smallint NOT NULL,
[Sum Length] int NOT NULL,
[Unsupported] smallint NOT NULL,
[LOBs] smallint NOT NULL,
[Computed] smallint NOT NULL,
[Clustered Index] tinyint NOT NULL,
[Nonclustered Indexes] smallint NOT NULL,
[XML Indexes] smallint NOT NULL,
[Spatial Indexes] smallint NOT NULL,
[Primary Key] tinyint NOT NULL,
[Foreign Keys] smallint NOT NULL,
[Unique Constraints] smallint NOT NULL,
[Triggers] smallint NOT NULL,
[RCSI] tinyint NOT NULL,
[Snapshot] tinyint NOT NULL,
[CDC] tinyint NOT NULL,
[CT] tinyint NOT NULL,
[InMemoryOLTP] tinyint NOT NULL,
[Replication] tinyint NOT NULL,
[FileStream] tinyint NOT NULL,
[FileTable] tinyint NOT NULL
);
insert into #TablesToColumnstore
select t.object_id as [ObjectId]
, case max(ind.data_space_id) when 0 then 'In-Memory' else 'Disk-Based' end
, quotename(object_schema_name(t.object_id)) + '.' + quotename(object_name(t.object_id)) as 'TableName'
, replace(object_name(t.object_id),' ', '') as 'ShortTableName'
, COUNT(DISTINCT p.partition_number) as [Partitions]
, isnull(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END),0) as 'Row Count'
, ceiling(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END)/1045678.) as 'Min RowGroups'
, cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) as 'size in GB'
, (select count(*) from sys.columns as col
where t.object_id = col.object_id ) as 'Cols Count'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR','SYSNAME')
) as 'String Cols'
, (select sum(col.max_length)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id
) as 'Sum Length'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
) as 'Unsupported'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
) as 'LOBs'
, (select count(*)
from sys.columns as col
where is_computed = 1 ) as 'Computed'
, (select count(*)
from sys.indexes ind
where type = 1 AND ind.object_id = t.object_id ) as 'Clustered Index'
, (select count(*)
from sys.indexes ind
where type = 2 AND ind.object_id = t.object_id ) as 'Nonclustered Indexes'
, (select count(*)
from sys.indexes ind
where type = 3 AND ind.object_id = t.object_id ) as 'XML Indexes'
, (select count(*)
from sys.indexes ind
where type = 4 AND ind.object_id = t.object_id ) as 'Spatial Indexes'
, (select count(*)
from sys.objects
where UPPER(type) = 'PK' AND parent_object_id = t.object_id ) as 'Primary Key'
, (select count(*)
from sys.objects
where UPPER(type) = 'F' AND parent_object_id = t.object_id ) as 'Foreign Keys'
, (select count(*)
from sys.objects
where UPPER(type) in ('UQ') AND parent_object_id = t.object_id ) as 'Unique Constraints'
, (select count(*)
from sys.objects
where UPPER(type) in ('TA','TR') AND parent_object_id = t.object_id ) as 'Triggers'
, @readCommitedSnapshot as 'RCSI'
, @snapshotIsolation as 'Snapshot'
, t.is_tracked_by_cdc as 'CDC'
, (select count(*)
from sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) as 'CT'
, t.is_memory_optimized as 'InMemoryOLTP'
, t.is_replicated as 'Replication'
, coalesce(t.filestream_data_space_id,0,1) as 'FileStream'
, t.is_filetable as 'FileTable'
from sys.tables t
inner join sys.partitions as p
ON t.object_id = p.object_id
inner join sys.allocation_units as a
ON p.partition_id = a.container_id
inner join sys.indexes ind
on ind.object_id = p.object_id and ind.index_id = p.index_id
left join sys.dm_db_xtp_table_memory_stats xtpMem
on xtpMem.object_id = t.object_id
where p.data_compression in (0,1,2) -- None, Row, Page
and (select count(*)
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
and (@preciseSearch = 0 AND (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (t.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( t.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( t.object_id ) = @schemaName))
AND (ISNULL(@objectId,t.object_id) = t.object_id)
and t.is_memory_optimized = case isnull(@indexLocation,'Null')
when 'In-Memory' then 1
when 'Disk-Based' then 0
when 'Null' then t.is_memory_optimized
else 255 end
and (( @showReadyTablesOnly = 1
and
(select count(*)
from sys.columns as col
inner join sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY'))
) = 0
and (select count(*)
from sys.objects so
where UPPER(so.type) in ('PK','F','UQ','TA','TR') and parent_object_id = t.object_id ) = 0
and (select count(*)
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (3,4) ) = 0
and (select count(*)
from sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) = 0
and t.is_tracked_by_cdc = 0
and t.is_memory_optimized = 0
and t.is_replicated = 0
and coalesce(t.filestream_data_space_id,0,1) = 0
and t.is_filetable = 0
)
or @showReadyTablesOnly = 0)
group by t.object_id, t.is_tracked_by_cdc, t.is_memory_optimized, t.is_filetable, t.is_replicated, t.filestream_data_space_id
having (sum(p.rows) >= @minRowsToConsider or (sum(p.rows) = 0 and is_memory_optimized = 1) )
and
(((select sum(col.max_length)
from sys.columns as col
inner join sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id
) < 8000 and @considerColumnsOver8K = 0 )
OR
@considerColumnsOver8K = 1 )
and
(sum(a.total_pages) + isnull(sum(memory_allocated_for_table_kb),0) / 1024. / 1024 * 8.0 / 1024. / 1024 >= @minSizeToConsiderInGB)
union all
select t.object_id as [ObjectId]
, 'Disk-Based'
, quotename(object_schema_name(t.object_id)) + '.' + quotename(object_name(t.object_id, db_id('tempdb'))) as 'TableName'
, replace(object_name(t.object_id, db_id('tempdb')),' ', '') as 'ShortTableName'
, COUNT(DISTINCT p.partition_number) as [Partitions]
, isnull(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END),0) as 'Row Count'
, ceiling(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END)/1045678.) as 'Min RowGroups'
, cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) as 'size in GB'
, (select count(*) from tempdb.sys.columns as col
where t.object_id = col.object_id ) as 'Cols Count'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR','SYSNAME')
) as 'String Cols'
, (select sum(col.max_length)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id
) as 'Sum Length'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
) as 'Unsupported'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
) as 'LOBs'
, (select count(*)
from tempdb.sys.columns as col
where is_computed = 1 ) as 'Computed'
, (select count(*)
from tempdb.sys.indexes ind
where type = 1 AND ind.object_id = t.object_id ) as 'Clustered Index'
, (select count(*)
from tempdb.sys.indexes ind
where type = 2 AND ind.object_id = t.object_id ) as 'Nonclustered Indexes'
, (select count(*)
from tempdb.sys.indexes ind
where type = 3 AND ind.object_id = t.object_id ) as 'XML Indexes'
, (select count(*)
from tempdb.sys.indexes ind
where type = 4 AND ind.object_id = t.object_id ) as 'Spatial Indexes'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) = 'PK' AND parent_object_id = t.object_id ) as 'Primary Key'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) = 'F' AND parent_object_id = t.object_id ) as 'Foreign Keys'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) in ('UQ') AND parent_object_id = t.object_id ) as 'Unique Constraints'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) in ('TA','TR') AND parent_object_id = t.object_id ) as 'Triggers'
, @readCommitedSnapshot as 'RCSI'
, @snapshotIsolation as 'Snapshot'
, t.is_tracked_by_cdc as 'CDC'
, (select count(*)
from tempdb.sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) as 'CT'
, t.is_memory_optimized as 'InMemoryOLTP'
, t.is_replicated as 'Replication'
, coalesce(t.filestream_data_space_id,0,1) as 'FileStream'
, t.is_filetable as 'FileTable'
from tempdb.sys.tables t
inner join tempdb.sys.partitions as p
ON t.object_id = p.object_id
inner join tempdb.sys.allocation_units as a
ON p.partition_id = a.container_id
where p.data_compression in (0,1,2) -- None, Row, Page
and (select count(*)
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0 -- Filtering out tables with existing Columnstore Indexes
and (@preciseSearch = 0 AND (@tableName is null or object_name (t.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (t.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( t.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( t.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,t.object_id) = t.object_id)
and t.is_memory_optimized = case isnull(@indexLocation,'Null')
when 'In-Memory' then 1
when 'Disk-Based' then 0
when 'Null' then t.is_memory_optimized
else 255 end
and (( @showReadyTablesOnly = 1
and
(select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY'))
) = 0
and (select count(*)
from tempdb.sys.objects so
where UPPER(so.type) in ('PK','F','UQ','TA','TR') and parent_object_id = t.object_id ) = 0
and (select count(*)
from tempdb.sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (3,4) ) = 0
and (select count(*)
from tempdb.sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) = 0
and t.is_tracked_by_cdc = 0
and t.is_memory_optimized = 0
and t.is_replicated = 0
and coalesce(t.filestream_data_space_id,0,1) = 0
and t.is_filetable = 0
)
or @showReadyTablesOnly = 0)
group by t.object_id, t.is_tracked_by_cdc, t.is_memory_optimized, t.is_filetable, t.is_replicated, t.filestream_data_space_id
having sum(p.rows) >= @minRowsToConsider
and
(((select sum(col.max_length)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id
) < 8000 and @considerColumnsOver8K = 0 )
OR
@considerColumnsOver8K = 1 )
and
(sum(a.total_pages) * 8.0 / 1024. / 1024 >= @minSizeToConsiderInGB)
-- Get the information on Memory Optimised Tables
if @updateMemoryOptimisedStats = 1
begin
declare @updateStatTSQL nvarchar(1000);
declare inmemRowCountCursor CURSOR LOCAL READ_ONLY for
select N'Update Statistics ' + TableName + ' WITH FULLSCAN, NORECOMPUTE'
from #TablesToColumnstore
where TableLocation = 'In-Memory';
open inmemRowCountCursor;
fetch next
from inmemRowCountCursor
into @updateStatTSQL;
while @@FETCH_STATUS = 0 BEGIN
exec sp_executesql @updateStatTSQL;
fetch next from inmemRowCountCursor
into @updateStatTSQL;
END
close inmemRowCountCursor
deallocate inmemRowCountCursor
update #TablesToColumnstore
set [Row Count] = ISNULL(st.[rows],0),
[Min RowGroups] = ceiling(ISNULL(st.[rows],0)/1045678.),
[Size in GB] = cast( memory_allocated_for_table_kb / 1024. / 1024 as decimal(16,3) )
from #TablesToColumnstore temp
inner join sys.dm_db_xtp_index_stats AS ind
on temp.ObjectId = ind.object_id
cross apply sys.dm_db_stats_properties (ind.object_id,ind.index_id) st
inner join sys.dm_db_xtp_table_memory_stats xtpMem
on temp.ObjectId = xtpMem.object_id
where ind.index_id = 2 and temp.TableLocation = 'In-Memory';
end
delete from #TablesToColumnstore
where [Size in GB] < @minSizeToConsiderInGB
or [Row Count] < @minRowsToConsider;
-- Show the found results
select case when ([InMemoryOLTP] + [Replication] + [FileStream] + [FileTable] + [Unsupported]
- ([LOBs] + [Computed])) <= 0 then 'Nonclustered Columnstore'
when ([Primary Key] + [Foreign Keys] + [Unique Constraints] + [Triggers] + [CDC] + [CT] +
[InMemoryOLTP] + [Replication] + [FileStream] + [FileTable] + [Unsupported]
- ([LOBs] + [Computed])) > 0 then 'None'
when ([Clustered Index] + [Nonclustered Indexes] + [Primary Key] + [Foreign Keys] + [CDC] + [CT] +
[Unique Constraints] + [Triggers] + [RCSI] + [Snapshot] + [CDC] + [InMemoryOLTP] + [Replication] + [FileStream] + [FileTable] + [Unsupported]
- ([LOBs] + [Computed])) = 0 and [Unsupported] = 0 then 'Both Columnstores'
end as 'Compatible With'
, TableLocation
, [TableName], [Partitions], [Row Count], [Min RowGroups], [Size in GB], [Cols Count], [String Cols], [Sum Length], [Unsupported], [LOBs], [Computed]
, [Clustered Index], [Nonclustered Indexes], [XML Indexes], [Spatial Indexes], [Primary Key], [Foreign Keys], [Unique Constraints]
, [Triggers], [RCSI], [Snapshot], [CDC], [CT], [InMemoryOLTP], [Replication], [FileStream], [FileTable]
from #TablesToColumnstore
order by [Row Count] desc;
if( @showUnsupportedColumnsDetails = 1 )
begin
select quotename(object_schema_name(t.object_id)) + '.' + quotename(object_name (t.object_id)) as 'TableName',
col.name as 'Unsupported Column Name',
tp.name as 'Data Type',
col.max_length as 'Max Length',
col.precision as 'Precision',
col.is_computed as 'Computed'
from sys.tables t
inner join sys.columns as col
on t.object_id = col.object_id
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where ((UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
OR col.is_computed = 1 )
and t.object_id in (select ObjectId from #TablesToColumnstore);
end
if( @showTSQLCommandsBeta = 1 )
begin
select coms.TableName, coms.[TSQL Command], coms.[type]
from (
select t.TableName,
'create ' + @columnstoreIndexTypeForTSQL + ' columnstore index ' +
case @columnstoreIndexTypeForTSQL when 'Clustered' then 'CCI' when 'Nonclustered' then 'NCCI' end
+ '_' + t.[ShortTableName] +
' on ' + t.TableName + case @columnstoreIndexTypeForTSQL when 'Nonclustered' then '()' else '' end + ';' as [TSQL Command]
, 'CCL' as type,
101 as [Sort Order]
from #TablesToColumnstore t
union all
select t.TableName, 'alter table ' + t.TableName + ' drop constraint ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ';' as [TSQL Command], [type],
case UPPER(type) when 'PK' then 100 when 'F' then 1 when 'UQ' then 100 end as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('PK','F','UQ')
union all
select t.TableName, 'drop trigger ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ';' as [TSQL Command], type,
50 as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('TR')
union all
select t.TableName, 'drop assembly ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ' WITH NO DEPENDENTS ;' as [TSQL Command], type,
50 as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('TA')
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'CL' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 1 and not exists
(select 1 from #TablesToColumnstore t1
inner join sys.objects so1
on t1.ObjectId = so1.parent_object_id
where UPPER(so1.type) in ('PK','F','UQ')
and quotename(ind.name) <> quotename(so1.name))
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'NC' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 2 and not exists
(select 1 from #TablesToColumnstore t1
inner join sys.objects so1
on t1.ObjectId = so1.parent_object_id
where UPPER(so1.type) in ('PK','F','UQ')
and quotename(ind.name) <> quotename(so1.name) and t.ObjectId = t1.ObjectId )
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'XML' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 3
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'SPAT' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 4
union all
select t.TableName, '-- - - - - - - - - - - - - - - - - - - - - -' as [TSQL Command], '---' as type,
0 as [Sort Order]
from #TablesToColumnstore t
) coms
order by coms.type desc, coms.[Sort Order]; --coms.TableName
end
drop table #TablesToColumnstore;
end
GO
/*
CSIL - Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Maintenance - Maintenance Solution for SQL Server Columnstore Indexes
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Changes in 1.2.0
+ Added Primary Key for dbo.cstore_Clustering table
+ Improved setup script for dbo.cstore_Clustering table, for avoiding adding already existing tables
- Fixed bug for the tables with no comrpessed Row Groups, which were never maintained, even though under some conditions forcing not completely full Delta-Store is important
Changes in 1.3.0
+ Added logic for the Optimizable Row Groups, meaning that if there is no potential gain for the Rebuild even with trimmed Row Groups - then no Rebuild will take place
+ Added new parameter for executing maintenance on a specific partition: @partition_number
* Updated to support the new output columns of the CISL 1.3.0 functions
+ Added logic to support automated canceling of execution on the Availability Groups Seconary Replicas
* Improved debug logging output with less useless messages
Changes in 1.5.0
+ Added support for the new cstore_GetAlignment funciton with partition level support
+ Added support for the schema parameter of the cstore_getRowGroups funciton
- Fixed bug with the Primary Key of the cstore_Clustering table covering only the table name and not the partition (Thanks to Thomas Frohlich)
+ Added @schemaName parameter for supporting schema filtering (Thanks to Thomas Frohlich)
- Fixed bugs for the case-sensitive instances where variables had wrong names (Thanks to Kendra Little)
*/
declare @createLogTables bit = 1;
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2014
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'12'
begin
set @errorMessage = (N'You are not running a SQL Server 2014. Your SQL Server version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2014 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
-- ------------------------------------------------------------------------------------------------------------------------------------------------------
-- Verification of the required Stored Procedures from CISL
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetRowGroups' and schema_id = SCHEMA_ID('dbo') )
begin
Throw 60000, 'Please install dbo.cstore_GetRowGroups Stored Procedure from CISL before advancing!', 1;
Return;
end
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetAlignment' and schema_id = SCHEMA_ID('dbo') )
begin
Throw 60000, 'Please install dbo.cstore_GetAlignment Stored Procedure from CISL before advancing!', 1;
Return;
end
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetFragmentation' and schema_id = SCHEMA_ID('dbo') )
begin
Throw 60000, 'Please install dbo.cstore_GetFragmentation Stored Procedure from CISL before advancing!', 1;
Return;
end
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetDictionaries' and schema_id = SCHEMA_ID('dbo') )
begin
Throw 60000, 'Please install dbo.cstore_GetDictionaries Stored Procedure from CISL before advancing!', 1;
Return;
end
-- Setup of the logging tables
IF @createLogTables = 1 AND NOT EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_MaintenanceData_Log' and schema_id = SCHEMA_ID('dbo') )
begin
-- Maintenance statistics log
create table dbo.cstore_MaintenanceData_Log(
id int not null identity(1,1) primary key,
ExecutionId uniqueidentifier,
MonitoringTimestamp datetime not null default (GetDate()),
TableName nvarchar(256) not null,
IndexName nvarchar(256) not null,
IndexType nvarchar(256) not null,
Partition int,
[CompressionType] varchar(50),
[BulkLoadRGs] int,
[OpenDeltaStores] int,
[ClosedDeltaStores] int,
[CompressedRowGroups] int,
ColumnId int,
ColumnName nvarchar(256),
ColumntType nvarchar(256),
SegmentElimination varchar(50),
DealignedSegments int,
TotalSegments int,
SegmentAlignment Decimal(8,2),
Fragmentation Decimal(8,2),
DeletedRGs int,
DeletedRGsPerc Decimal(8,2),
TrimmedRGs int,
TrimmedRGsPerc Decimal(8,2),
AvgRows bigint not null,
TotalRows bigint not null,
OptimizableRGs int,
OptimizableRGsPerc Decimal(8,2),
RowGroups int,
TotalDictionarySizes Decimal(9,3),
MaxGlobalDictionarySize Decimal(9,3),
MaxLocalDictionarySize Decimal(9,3)
);
end
IF @createLogTables = 1 AND NOT EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_Operation_Log' and schema_id = SCHEMA_ID('dbo') )
begin
-- Operation Log table
create table dbo.cstore_Operation_Log(
id int not null identity(1,1) constraint [PK_cstore_Operation_Log] primary key clustered,
ExecutionId uniqueidentifier,
TableName nvarchar(256),
Partition int,
OperationType varchar(10),
OperationReason varchar(50),
OperationCommand nvarchar(max),
OperationCollected bit NOT NULL default(0),
OperationConfigured bit NOT NULL default(0),
OperationExecuted bit NOT NULL default (0)
);
end
IF @createLogTables = 1 AND NOT EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_Clustering' and schema_id = SCHEMA_ID('dbo') )
begin
-- Configuration table for the Segment Clustering
create table dbo.cstore_Clustering(
TableName nvarchar(256) constraint [PK_cstore_Clustering] primary key clustered,
Partition int,
ColumnName nvarchar(256)
);
IF OBJECT_ID('tempdb..#ColumnstoreIndexes') IS NOT NULL
DROP TABLE #ColumnstoreIndexes;
create table #ColumnstoreIndexes(
[id] int identity(1,1),
[TableName] nvarchar(256),
[Type] varchar(20),
[Location] varchar(15),
[Partition] int,
[Compression Type] varchar(50),
[BulkLoadRGs] int,
[Open DeltaStores] int,
[Closed DeltaStores] int,
[Compressed RowGroups] int,
[Total RowGroups] int,
[Deleted Rows] Decimal(18,6),
[Active Rows] Decimal(18,6),
[Total Rows] Decimal(18,6),
[Size in GB] Decimal(18,3),
[Scans] int,
[Updates] int,
[LastScan] DateTime
);
insert into #ColumnstoreIndexes
exec dbo.cstore_GetRowGroups @indexType = 'CC', @showPartitionDetails = 1;
insert into dbo.cstore_Clustering( TableName, Partition, ColumnName )
select TableName, Partition, NULL
from #ColumnstoreIndexes ci
where TableName not in (select clu.TableName from dbo.cstore_Clustering clu);
end
GO
-- **************************************************************************************************************************
IF NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_doMaintenance' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_doMaintenance as select 1');
GO
/*
CSIL - Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Maintenance - Maintenance Solution for SQL Server Columnstore Indexes
Version: 1.5.0, August 2017
*/
alter procedure [dbo].[cstore_doMaintenance](
-- Params --
@execute bit = 0, -- Controls if the maintenace is executed or not
@orderSegments bit = 0, -- Controls whether Segment Clustering is being applied or not
@executeReorganize bit = 0, -- Controls if the Tuple Mover is being invoked or not. We can execute just it, instead of the full rebuild
@closeOpenDeltaStores bit = 0, -- Controls if the Open Delta-Stores are closed and compressed
@usePartitionLevel bit = 1, -- Controls if whole table is maintained or the maintenance is done on the partition level
@partition_number int = NULL, -- Allows to specify a partition to execute maintenance on
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(max) = NULL, -- Allows to filter out only a particular table
@useRecommendations bit = 1, -- Activates internal optimizations for a more correct maintenance proceedings
@maxdop tinyint = 0, -- Allows to control the maximum degreee of parallelism
@logData bit = 1, -- Controls if functionalites are being logged into the logging tables
@debug bit = 0, -- Prints out the debug information and the commands that will be executed if the @execute parameter is set to 1
@minSegmentAlignmentPercent tinyint = 70, -- Sets the minimum alignment percentage, after which the Segment Alignment is forced
@logicalFragmentationPerc int = 15, -- Defines the maximum logical fragmentation for the Rebuild
@deletedRGsPerc int = 10, -- Defines the maximum percentage of the Row Groups that can be marked as Deleted
@deletedRGs int = NULL, -- Defines the maximum number of Row Groups that can be marked as Deleted before Rebuild. NULL means to be ignored.
@trimmedRGsPerc int = 30, -- Defines the maximum percentage of the Row Groups that are trimmed (not full)
@trimmedRGs int = NULL, -- Defines the maximum number of the Row Groups that are trimmed (not full). NULL means to be ignored.
@minAverageRowsPerRG int = 550000, -- Defines the minimum average number of rows per Row Group for triggering Rebuild
@maxDictionarySizeInMB Decimal(9,3) = 10., -- Defines the maximum size of a dictionary to determine the dictionary pressure and avoid rebuilding
@ignoreInternalPressures bit = 0 -- Allows to execute rebuild of the Columnstore, while ignoring the signs of memory & dictionary pressures
) as
begin
SET ANSI_WARNINGS OFF;
set nocount on;
declare @objectId int = NULL;
declare @currentTableName nvarchar(256) = NULL;
declare @indexName nvarchar(256) = NULL;
declare @orderingColumnName nvarchar(128) = NULL;
-- Alignment
declare @columnId int = NULL;
-- Internal Variables
declare @workid int = -1;
declare @partitionNumber int = -1;
declare @isPartitioned bit = 0;
declare @compressionType varchar(30) = '';
declare @rebuildNeeded bit = 0;
declare @orderSegmentsNeeded bit = 0;
declare @openDeltaStores int = 0;
declare @closedDeltaStores int = 1;
declare @maxGlobalDictionarySizeInMB Decimal(9,3) = -1;
declare @maxLocalDictionarySizeInMB Decimal(9,3) = -1;
declare @rebuildReason varchar(100) = NULL;
declare @SQLCommand nvarchar(4000) = NULL;
declare @execId uniqueidentifier = NEWID();
declare @loggingTableExists bit = 0;
declare @loggingCommand nvarchar(max) = NULL;
--
-- Verify if the principal logging table exists and thus enabling logging
IF EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_Operation_Log' and schema_id = SCHEMA_ID('dbo') )
set @loggingTableExists = 1;
-- Check if we are running on the secondary replica and exit if not, because the AG readable secondary replica is not supported in SQL Server 2014
IF exists (select *
from sys.databases databases
INNER JOIN sys.availability_databases_cluster adc
ON databases.group_database_id = adc.group_database_id
INNER JOIN sys.availability_groups ag
ON adc.group_id = ag.group_id
WHERE databases.name = DB_NAME() )
begin
declare @replicaStatus int;
select @replicaStatus = sys.fn_hadr_is_primary_replica ( DB_NAME() );
if @replicaStatus is NOT NULL or @replicaStatus <> 1
begin
if @loggingTableExists = 1
begin
set @loggingCommand = N'
insert into dbo.cstore_Operation_Log( ExecutionId, TableName, Partition, OperationType, OperationReason, OperationCommand, OperationConfigured, OperationExecuted )
select ''' + convert(nvarchar(50),@execId) + ''', ''NULL'', ' + cast(@partitionNumber as varchar(10)) + ', ''Exit'',
''Secondary Replica'', ''NULL'', 1, ' + cast(case when (@executeReorganize = 1 OR @execute = 1) then 1 else 0 end as char(1));
exec (@loggingCommand);
end
end
return;
end
-- ***********************************************************
-- Enable Reorganize automatically if the Trace Flag 634 is enabled
if( @useRecommendations = 1 )
begin
create table #ActiveTraceFlags(
TraceFlag nvarchar(20) not null,
Status bit not null,
Global bit not null,
Session bit not null );
insert into #ActiveTraceFlags
exec sp_executesql N'DBCC TRACESTATUS() WITH NO_INFOMSGS';
create table #ColumnstoreTraceFlags(
TraceFlag int not null,
Description nvarchar(500) not null,
URL nvarchar(600),
SupportedStatus bit not null
);
if( exists (select TraceFlag from #ActiveTraceFlags where TraceFlag = '634') )
select @executeReorganize = 1, @closeOpenDeltaStores = 1;
end
-- ***********************************************************
-- Process MAXDOP variable and update it according to the number of visible cores or to the number of the cores, specified in Resource Governor
declare @coresDop smallint;
select @coresDop = count(*)
from sys.dm_os_schedulers
where upper(status) = 'VISIBLE ONLINE' and is_online = 1
declare @effectiveDop smallint
select @effectiveDop = effective_max_dop
from sys.dm_resource_governor_workload_groups
where group_id in (select group_id from sys.dm_exec_requests where session_id = @@spid)
if( @maxdop < 0 )
set @maxdop = 0;
if( @maxdop > @coresDop )
set @maxdop = @coresDop;
if( @maxdop > @effectiveDop )
set @maxdop = @effectiveDop;
if @debug = 1
begin
print 'MAXDOP: ' + cast( @maxdop as varchar(3) );
print 'EFECTIVE DOP: ' + cast( @effectiveDop as varchar(3) );
end
-- ***********************************************************
-- Get All Columnstore Indexes for the maintenance
IF OBJECT_ID('tempdb..#ColumnstoreIndexes') IS NOT NULL
DROP TABLE #ColumnstoreIndexes;
create table #ColumnstoreIndexes(
[id] int identity(1,1),
[TableName] nvarchar(256),
[Type] varchar(20),
[Location] varchar(15),
[Partition] int,
[Compression Type] varchar(50),
[BulkLoadRGs] int,
[Open DeltaStores] int,
[Closed DeltaStores] int,
[Compressed RowGroups] int,
[Total RowGroups] int,
[Deleted Rows] Decimal(18,6),
[Active Rows] Decimal(18,6),
[Total Rows] Decimal(18,6),
[Size in GB] Decimal(18,3),
[Scans] int,
[Updates] int,
[LastScan] DateTime
)
-- Obtain only Clustered Columnstore Indexes for SQL Server 2014
insert into #ColumnstoreIndexes
exec dbo.cstore_GetRowGroups @schemaName = @schemaName, @tableName = @tableName, @indexType = 'CC', @showPartitionDetails = @usePartitionLevel, @partitionId = @partition_number;
if( @debug = 1 )
begin
select *
from #ColumnstoreIndexes;
end
while( exists (select * from #ColumnstoreIndexes) )
begin
select top 1 @workid = id,
@partitionNumber = Partition,
@currentTableName = TableName,
@compressionType = [Compression Type],
@openDeltaStores = [Open DeltaStores],
@closedDeltaStores = [Closed DeltaStores],
@orderingColumnName = NULL,
@maxGlobalDictionarySizeInMB = -1,
@maxLocalDictionarySizeInMB = -1,
@rebuildNeeded = 0,
@rebuildReason = NULL,
@orderSegmentsNeeded = @orderSegments
from #ColumnstoreIndexes
--where TableName = isnull(@currentTableName,TableName)
order by id;
if @debug = 1
begin
print '------------------------------------------------';
print 'Current Table: ' + @currentTableName;
end
-- Get the object_id of the table
select @objectId = object_id(@currentTableName);
-- Obtain pre-configured clustering column name
IF EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_Clustering' and schema_id = SCHEMA_ID('dbo') )
select @orderingColumnName = ColumnName
from dbo.cstore_Clustering
where TableName = @currentTableName and Partition = @partitionNumber;
-- If the column name is not set, then do not force Segments Clustering
if @orderingColumnName is NULL
begin
set @orderSegmentsNeeded = 0;
end
-- ***********************************************************
-- Get Segments Alignment
IF OBJECT_ID('tempdb..#ColumnstoreAlignment') IS NOT NULL
DROP TABLE #ColumnstoreAlignment
create table #ColumnstoreAlignment(
TableName nvarchar(256),
Location varchar(15),
Partition bigint,
ColumnId int,
ColumnName nvarchar(256),
ColumnType nvarchar(256),
SegmentElimination varchar(25),
PredicatePushdown varchar(25),
DealignedSegments int,
TotalSegments int,
SegmentAlignment Decimal(8,2)
)
-- If we are executing no Segment Clustering, then do not look for it - just get results for the very first column
if( @orderSegmentsNeeded = 0 )
set @columnId = 1;
else
set @columnId = NULL;
-- Get Results from "cstore_GetAlignment" Stored Procedure
insert into #ColumnstoreAlignment ( TableName, Location, Partition, ColumnId, ColumnName, ColumnType, SegmentElimination, PredicatePushdown, DealignedSegments, TotalSegments, SegmentAlignment )
exec dbo.cstore_GetAlignment @objectId = @objectId,
@showPartitionStats = @usePartitionLevel,
@showSegmentAnalysis = 0, @scanExecutionPlans = 0, @countDistinctValues = 0, @partitionNumber = @partitionNumber,
@showUnsupportedSegments = 1, @columnName = @orderingColumnName, @columnId = @columnId;
if( --@rebuildNeeded = 0 AND
@orderSegmentsNeeded = 1 )
begin
declare @currentSegmentAlignment Decimal(6,2) = 100.;
select @currentSegmentAlignment = SegmentAlignment
from #ColumnstoreAlignment
where SegmentElimination = 'OK' and Partition = @partitionNumber;
if( @currentSegmentAlignment <= @minSegmentAlignmentPercent )
Select @rebuildNeeded = 1, @rebuildReason = 'Dealignment';
end
-- ***********************************************************
-- Get Fragmentation
IF OBJECT_ID('tempdb..#Fragmentation') IS NOT NULL
DROP TABLE #Fragmentation;
create table #Fragmentation(
TableName nvarchar(256),
IndexName nvarchar(256),
Location varchar(15),
IndexType nvarchar(256),
Partition int,
Fragmentation Decimal(8,2),
DeletedRGs int,
DeletedRGsPerc Decimal(8,2),
TrimmedRGs int,
TrimmedRGsPerc Decimal(8,2),
AvgRows bigint,
TotalRows bigint,
OptimizableRGs int,
OptimizableRGsPerc Decimal(8,2),
RowGroups int
);
-- Obtain Columnstore logical fragmentation information
insert into #Fragmentation
exec cstore_GetFragmentation @objectId = @objectId, @showPartitionStats = 1;
-- Obtain the name of the Columnstore index we are working with
select @indexName = IndexName
from #Fragmentation
where TableName = @currentTableName
-- In the case when there is no fragmentation whatsoever (because there is just open Delta-Stores, for example)
-- Get the Index Name directly from the DMV
if @indexName is NULL
begin
select @indexName = ind.name
from sys.indexes ind
where ind.type in (5,6) and ind.object_id = @objectId;
end
-- Reorganize for Open Delta-Stores
if @openDeltaStores > 0 AND (@executeReorganize = 1 OR @execute = 1)
begin
set @SQLCommand = 'alter index ' + @indexName + ' on ' + @currentTableName + ' Reorganize';
if( @usePartitionLevel = 1 AND @isPartitioned = 1 )
set @SQLCommand += ' partition = ' + cast(@partitionNumber as varchar(5));
-- Force open Delta-Stores closure
if( @closeOpenDeltaStores = 1 )
set @SQLCommand += ' with (compress_all_row_groups = on ) ';
if @logData = 1
begin
if @loggingTableExists = 1
begin
set @loggingCommand = N'
insert into dbo.cstore_Operation_Log( ExecutionId, TableName, Partition, OperationType, OperationReason, OperationCommand, OperationConfigured, OperationExecuted )
select ''' + convert(nvarchar(50),@execId) + ''', ''' + @currentTableName + ''', ' + cast(@partitionNumber as varchar(10)) + ', ''Reorganize'',
''Open Delta-Stores'', ''' + @SQLCommand + ''', 1, ' + cast(case when (@executeReorganize = 1 OR @execute = 1) then 1 else 0 end as char(1));
exec (@loggingCommand);
end
end
if( @debug = 1 )
begin
print 'Reorganize Open Delta-Stores';
print @SQLCommand;
end
if( @execute = 1 OR @executeReorganize = 1 )
exec ( @SQLCommand );
end
-- Obtain Dictionaries informations
IF OBJECT_ID('tempdb..#Dictionaries') IS NOT NULL
DROP TABLE #Dictionaries;
create table #Dictionaries(
TableName nvarchar(256),
[Type] varchar(20),
[Location] varchar(15),
Partition int,
RowGroups bigint,
Dictionaries bigint,
EntryCount bigint,
RowsServing bigint,
TotalSizeMB Decimal(8,3),
MaxGlobalSizeMB Decimal(8,3),
MaxLocalSizeMB Decimal(8,3),
);
insert into #Dictionaries (TableName, Type, Location, Partition, RowGroups, Dictionaries, EntryCount, RowsServing, TotalSizeMB, MaxGlobalSizeMB, MaxLocalSizeMB )
exec dbo.cstore_GetDictionaries @objectId = @objectId, @showDetails = 0;
-- Get the current maximum sizes for the dictionaries
select @maxGlobalDictionarySizeInMB = MaxGlobalSizeMB, @maxLocalDictionarySizeInMB = MaxLocalSizeMB
from #Dictionaries
where TableName = @currentTableName and Partition = @partitionNumber;
-- Store current information in the logging table
if @logData = 1
begin
IF EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_MaintenanceData_Log' and schema_id = SCHEMA_ID('dbo') )
begin
insert into dbo.cstore_MaintenanceData_Log( ExecutionId, TableName, IndexName, IndexType, Partition,
[CompressionType], [BulkLoadRGs], [OpenDeltaStores], [ClosedDeltaStores], [CompressedRowGroups],
ColumnId, ColumnName, ColumntType,
SegmentElimination, DealignedSegments, TotalSegments, SegmentAlignment,
Fragmentation, DeletedRGs, DeletedRGsPerc, TrimmedRGs, TrimmedRGsPerc, AvgRows,
TotalRows, OptimizableRGs, OptimizableRGsPerc, RowGroups,
TotalDictionarySizes, MaxGlobalDictionarySize, MaxLocalDictionarySize )
select top 1 @execId, align.TableName, IndexName, IndexType, align.Partition,
[Compression Type], [BulkLoadRGs], [Open DeltaStores], [Closed DeltaStores], [Compressed RowGroups],
align.ColumnId, align.ColumnName, align.ColumnType,
align.SegmentElimination, align.DealignedSegments, align.TotalSegments, align.SegmentAlignment,
frag.Fragmentation, frag.DeletedRGs, frag.DeletedRGsPerc, frag.TrimmedRGs, frag.TrimmedRGsPerc, frag.AvgRows, frag.TotalRows,
frag.OptimizableRGs, frag.OptimizableRGsPerc, frag.RowGroups,
dict.TotalSizeMB, dict.MaxGlobalSizeMB, dict.MaxLocalSizeMB
from #ColumnstoreAlignment align
inner join #Fragmentation frag
on align.TableName = frag.TableName and align.Partition = frag.Partition
inner join #ColumnstoreIndexes ind
on ind.TableName = align.TableName and ind.Partition = align.Partition
inner join #Dictionaries dict
on ind.TableName = dict.TableName and ind.Partition = dict.Partition
where align.Partition = @partitionNumber and id = @workid;
end
end
-- Remove currently processed record
delete from #ColumnstoreIndexes
where id = @workid;
-- Find a rebuild reason
if( @rebuildNeeded = 0 )
begin
declare @currentlogicalFragmentationPerc int = 0,
@currentDeletedRGsPerc int = 0,
@currentDeletedRGs int = 0,
@currentTrimmedRGsPerc int = 0,
@currentTrimmedRGs int = 0,
@currentOptimizableRGs int = 0,
@currentMinAverageRowsPerRG int = 0,
@currentRowGroups int = 0;
-- Determine current fragmentation parameters, as well as the number of row groups
select @currentlogicalFragmentationPerc = Fragmentation,
@currentDeletedRGsPerc = DeletedRGsPerc,
@currentDeletedRGs = DeletedRGs,
@currentTrimmedRGsPerc = TrimmedRGsPerc,
@currentTrimmedRGs = TrimmedRGs,
@currentOptimizableRGs = OptimizableRgs,
@currentMinAverageRowsPerRG = AvgRows,
@currentRowGroups = RowGroups
from #Fragmentation
where Partition = @partitionNumber;
-- Advance for searching for rebuilding only if there is more then 1 Row Group
if( @currentRowGroups > 1 )
begin
if( @rebuildNeeded = 0 AND @currentlogicalFragmentationPerc >= @logicalFragmentationPerc )
select @rebuildNeeded = 1, @rebuildReason = 'Logical Fragmentation';
if( @rebuildNeeded = 0 AND @currentDeletedRGsPerc >= @deletedRGsPerc )
select @rebuildNeeded = 1, @rebuildReason = 'Deleted RowGroup Percentage';
if( @rebuildNeeded = 0 AND @currentDeletedRGs >= isnull(@deletedRGs,2147483647) )
select @rebuildNeeded = 1, @rebuildReason = 'Deleted RowGroups';
-- !!! Check if the trimmed Row Groups are the last ones in the partition/index, and if yes then extract the number of available cores
-- For that use GetRowGroupsDetails
if( @currentOptimizableRGs > 0 AND @useRecommendations = 1 )
begin
if( @rebuildNeeded = 0 AND @currentTrimmedRGsPerc >= @trimmedRGsPerc )
select @rebuildNeeded = 1, @rebuildReason = 'Trimmed RowGroup Percentage';
if( @rebuildNeeded = 0 AND @currentTrimmedRGs >= isnull(@trimmedRGs,2147483647) )
select @rebuildNeeded = 1, @rebuildReason = 'Trimmed RowGroups';
if( @rebuildNeeded = 0 AND @currentMinAverageRowsPerRG <= @minAverageRowsPerRG )
select @rebuildNeeded = 1, @rebuildReason = 'Average Rows per RowGroup';
end
-- Verify the dictionary pressure and avoid rebuilding in this case do not rebuild Columnstore
if( (@maxDictionarySizeInMB <= @maxGlobalDictionarySizeInMB OR @maxDictionarySizeInMB <= @maxLocalDictionarySizeInMB) AND
@rebuildReason in ('Trimmed RowGroups','Trimmed RowGroup Percentage','Average Rows per RowGroup') )
begin
if @ignoreInternalPressures = 0
select @rebuildNeeded = 0, @rebuildReason += ' - Dictionary Pressure';
end
end
end
if( @debug = 1 )
begin
print 'Reason: ' + isnull(@rebuildReason,'-');
print 'Rebuild: ' + case @rebuildNeeded when 1 then 'true' else 'false' end;
end
-- Verify if we are working with a partitioned table
select @isPartitioned = case when count(*) > 1 then 1 else 0 end
from sys.partitions p
where object_id = object_id(@currentTableName)
and data_compression in (3,4);
-- Execute Table Rebuild if needed
--if( @rebuildNeeded = 1 )
begin
if( @orderSegmentsNeeded = 1 AND @orderingColumnName is not null AND
@isPartitioned = 0 )
begin
set @SQLCommand = 'create clustered index ' + @indexName + ' on ' + @currentTableName + '(' + @orderingColumnName + ') with (drop_existing = on, maxdop = ' + cast(@maxdop as varchar(3)) + ');';
if( @debug = 1 )
begin
print @SQLCommand;
end
-- Let's recreate Clustered Columnstore Index
set @SQLCommand += 'create clustered columnstore index ' + @indexName + ' on ' + @currentTableName;
set @SQLCommand += ' with (data_compression = ' + @compressionType + ', drop_existing = on, maxdop = 1);';
if @logData = 1
begin
--insert into dbo.cstore_Operation_Log( ExecutionId, TableName, Partition, OperationType, OperationReason, OperationCommand, OperationConfigured, OperationExecuted )
-- select @execId, @currentTableName, @partitionNumber, 'Recreate', @rebuildReason, @SQLCommand, @execute, @rebuildNeeded;
if @loggingTableExists = 1
begin
set @loggingCommand = N'
insert into dbo.cstore_Operation_Log( ExecutionId, TableName, Partition, OperationType, OperationReason, OperationCommand, OperationConfigured, OperationExecuted )
select ''' + convert(nvarchar(50),@execId) + ''', ''' + @currentTableName + ''', ' + cast(@partitionNumber as varchar(10)) + ', ''Recreate'',
''' + @rebuildReason + ''', ''' + @SQLCommand + ''', '+ cast(@execute as char(1)) + ', ' + cast(@rebuildNeeded as char(1));
exec (@loggingCommand);
end
end
if( @debug = 1 )
begin
print @SQLCommand;
end
-- This command will execute 2 operations at once: creation of rowstore index & creation of columnstore index
if( @execute = 1 AND @rebuildNeeded = 1 )
begin
begin try
exec ( @SQLCommand );
end try
begin catch
-- In the future, to add a logging of the error message
SELECT ERROR_NUMBER() AS ErrorNumber
,ERROR_SEVERITY() AS ErrorSeverity
,ERROR_STATE() AS ErrorState
,ERROR_PROCEDURE() AS ErrorProcedure
,ERROR_LINE() AS ErrorLine
,ERROR_MESSAGE() AS ErrorMessage;
Throw;
end catch
end
end
-- Process Partitioned Table
if( @orderSegmentsNeeded = 0 OR (@orderSegmentsNeeded = 1 and @orderingColumnName is NULL) OR
@isPartitioned = 1 )
begin
set @SQLCommand = 'alter table ' + @currentTableName + ' rebuild';
if( @usePartitionLevel = 1 AND @isPartitioned = 1 )
set @SQLCommand += ' partition = ' + cast(@partitionNumber as varchar(5));
set @SQLCommand += ' with (maxdop = ' + cast(@maxdop as varchar(3)) + ')';
if( @debug = 1 )
begin
print 'Rebuild ' + @rebuildReason;
print @SQLCommand;
end
if @logData = 1
begin
if @loggingTableExists = 1
begin
set @loggingCommand = N'
insert into dbo.cstore_Operation_Log( ExecutionId, TableName, Partition, OperationType, OperationReason, OperationCommand, OperationConfigured, OperationExecuted )
select ''' + convert(nvarchar(50),@execId) + ''', ''' + @currentTableName + ''', ' + cast(@partitionNumber as varchar(10)) + ', ''' + case @rebuildNeeded when 1 then 'Rebuild' else '' end + ''',
''' + @rebuildReason + ''', ''' + @SQLCommand + ''', '+ cast(@execute as char(1)) + ', ' + cast(@rebuildNeeded as char(1));
exec (@loggingCommand);
end
end
if( @execute = 1 AND @rebuildNeeded = 1 )
exec ( @SQLCommand );
end
end
end
if( @debug = 1 )
begin
--select * from #Fragmentation;
--select * from #Dictionaries;
--select * from #ColumnstoreAlignment;
--select * from #ColumnstoreIndexes;
-- Output the content of the maintenance log inserted during the execution
IF EXISTS (select * from sys.objects where type = 'u' and name = 'cstore_MaintenanceData_Log' and schema_id = SCHEMA_ID('dbo') )
select *
from dbo.cstore_MaintenanceData_Log
where ExecutionId = @execId;
end
end
GO | the_stack |
-- Revenue and transaction splits by month with all currencies
-- converted to USD.
--
-- Note: the exchange rates are from March 11, 2016
with conversions as (select
date_trunc('month', t."createdAt") as "givenMonth",
/* deal with currency */
CASE
WHEN (t.currency = 'USD') THEN t.amount / 1
WHEN (t.currency = 'EUR') THEN t.amount / 0.9
WHEN (t.currency = 'MXN') THEN t.amount / 17.7
WHEN (t.currency = 'AUD') THEN t.amount / 13.2
WHEN (t.currency = 'CAD') THEN t.amount / 1.3
WHEN (t.currency = 'INR') THEN t.amount / 66.97
WHEN (t.currency = 'SEK') THEN t.amount / 8.34
WHEN (t.currency = 'GBP') THEN t.amount / 0.71
ELSE 0
END AS "amountInUSD",
CASE
WHEN (t.currency = 'USD') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 1
WHEN (t.currency = 'EUR') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 0.9
WHEN (t.currency = 'MXN') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 17.7
WHEN (t.currency = 'AUD') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 1.32
WHEN (t.currency = 'CAD') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 1.30
WHEN (t.currency = 'INR') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 66.97
WHEN (t.currency = 'SEK') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 8.34
WHEN (t.currency = 'GBP') AND t.amount > 0 THEN t."platformFeeInHostCurrency" / 0.71
ELSE 0
END AS "platformFeeInUSD",
/*
Generate donations categories
- added-funds (manually added funds - we didn't get a platform fee)
// for rest of these we charge a fee
- recurringMonthlyNew (new monthly subscription in this month)
- recurringMonthlyOld (carryover monthly subscription in this month)
- recurringAnnualNew (new annual subscription this month)
- recurringAnnualOld (carryover annual subscription renewed this month)
- one-time (one-time donations)
*/
CASE
WHEN
t.amount > 0 AND t."OrderId" IS NOT NULL AND
(t."platformFeeInHostCurrency" = 0 OR t."platformFeeInHostCurrency" IS NULL)
THEN 1
ELSE 0
END AS addedFunds,
CASE
WHEN t.amount > 0 AND
d."SubscriptionId" is NULL AND
(t."platformFeeInHostCurrency" is not null AND t."platformFeeInHostCurrency" != 0)
THEN 1
ELSE 0
END AS oneTimeDonations,
CASE
WHEN
t.amount > 0 AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'month%'
THEN 1
ELSE 0
END AS recurringMonthlyTotal,
CASE
WHEN
t.amount > 0 AND t."OrderId" IS NOT NULL AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'month%' AND
date_trunc('month', t."createdAt") = date_trunc('month', s."activatedAt")
THEN 1
ELSE 0
END AS recurringMonthlyNew,
CASE
WHEN
t.amount > 0 AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'month%' AND
date_trunc('month', t."createdAt") > date_trunc('month', s."activatedAt")
THEN 1
ELSE 0
END AS recurringMonthlyOld,
CASE
WHEN
t.amount > 0 AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'year%'
THEN 1
ELSE 0
END AS recurringAnnuallyTotal,
CASE
WHEN
t.amount > 0 AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'year%' AND
date_trunc('month', t."createdAt") = date_trunc('month', s."activatedAt")
THEN 1
ELSE 0
END AS recurringAnnuallyNew,
CASE
WHEN
t.amount > 0 AND
(t."platformFeeInHostCurrency" IS NOT NULL AND t."platformFeeInHostCurrency" != 0) AND
d."SubscriptionId" is NOT NULL AND s."interval" like 'year%' AND
date_trunc('month', t."createdAt") > date_trunc('month', s."activatedAt")
THEN 1
ELSE 0
END AS recurringAnnuallyOld,
/*
Generate expenses categories
- total (all expenses recorded)
- manual (submitted but no money exchanged from us)
- paypal (paid through paypal)
*/
CASE
WHEN
t.amount < 0 AND t."ExpenseId" IS NOT NULL
THEN 1
ELSE 0
END AS totalExpensesRecorded,
CASE
WHEN
t.amount < 0 AND t."ExpenseId" IS NOT NULL AND
t."PaymentMethodId" IS NULL
THEN 1
ELSE 0
END AS manualExpenses,
CASE
WHEN
t.amount < 0 AND t."ExpenseId" IS NOT NULL AND
t."PaymentMethodId" IS NOT NULL
THEN 1
ELSE 0
END AS paypalExpenses,
/*
Generate user categories
- backer
- sponsor (org)
*/
CASE
WHEN (fc.type ilike 'user') THEN 1
ELSE 0
END as "isUser",
CASE
WHEN (fc.type ilike 'organization') THEN 1
ELSE 0
END as "isOrg",
/** isNotRefund: The transaction isn't either a refund or
refunded. */
CASE
WHEN (t."RefundTransactionId" IS NULL) THEN 1
ELSE 0
END as isNotRefund,
/** hasBeenRefunded: A refunded transaction represents the
original donation from User to Collective */
CASE
WHEN (t."RefundTransactionId" IS NOT NULL AND
t."data"->'refund' IS NULL AND
t.type = 'CREDIT')
THEN 1
ELSE 0
END as hasBeenRefunded,
/** isRefund: A refund is true when the transaction represents
moving funds from Collective to User after a refund. */
CASE
WHEN (t."RefundTransactionId" IS NOT NULL AND
t."data"->'refund' IS NOT NULL AND
t."type" = 'DEBIT')
THEN 1
ELSE 0
END as isRefund
FROM "Transactions" t
LEFT JOIN "Orders" d on t."OrderId" = d.id
LEFT JOIN "Subscriptions" s on d."SubscriptionId" = s.id
LEFT JOIN "Collectives" fc on t."FromCollectiveId" = fc.id
WHERE
t."deletedAt" IS NULL AND
t."createdAt" BETWEEN '2016/01/01' AND '2020/01/01' AND
d."deletedAt" IS NULL AND
s."deletedAt" IS NULL)
/* End temporary table */
SELECT
to_char("givenMonth", 'YYYY-mm') as "month",
/* donations */
(SUM("amountInUSD" * recurringMonthlyTotal * (isNotRefund + isRefund) +
"amountInUSD" * recurringAnnuallyTotal * (isNotRefund + isRefund) +
"amountInUSD" * oneTimeDonations * (isNotRefund + isRefund) +
"amountInUSD" * addedFunds) / 100)::DECIMAL(10, 0)::money
AS "totalMoneyBroughtIntoPlatformInUSD",
(SUM("amountInUSD" * recurringMonthlyTotal * (isNotRefund + isRefund) +
"amountInUSD" * recurringAnnuallyTotal * (isNotRefund + isRefund) +
"amountInUSD" * oneTimeDonations * (isNotRefund + isRefund)) / 100)::DECIMAL(10, 0)::money
AS "totalDonationsMadeOnPlatformInUSD",
(SUM("amountInUSD" * isRefund / 100))::DECIMAL(10, 0)::money
AS "refundTransactions",
(SUM("platformFeeInUSD")/-100)::DECIMAL(10,0)::money AS "OCFeeInUSD",
/* monthly donations */
/* total donations */
(SUM("amountInUSD" * recurringMonthlyTotal * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringMonthlyTotalDonationsInUSD",
(SUM("amountInUSD" * recurringMonthlyTotal * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringMonthlyTotalDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringMonthlyTotal * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringMonthlyTotalDonationsFromOrgsInUSD",
/* old donations */
(SUM("amountInUSD" * recurringMonthlyOld * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringMonthlyOldDonationsInUSD",
(SUM("amountInUSD" * recurringMonthlyOld * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringMonthlyOldDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringMonthlyOld * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringMonthlyOldDonationsFromOrgsInUSD",
/* new donations */
(SUM("amountInUSD" * recurringMonthlyNew * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringMonthlyNewDonationsInUSD",
(SUM("amountInUSD" * recurringMonthlyNew * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringMonthlyNewDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringMonthlyNew * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringMonthlyNewDonationsFromOrgsInUSD",
/* annual donations */
/* total donations */
(SUM("amountInUSD" * recurringAnnuallyTotal * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringAnnualDonationsInUSD",
(SUM("amountInUSD" * recurringAnnuallyTotal * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyTotalDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringAnnuallyTotal * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyTotalDonationsFromOrgsInUSD",
/* old donations */
(SUM("amountInUSD" * recurringAnnuallyOld * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringAnnuallyOldDonationsInUSD",
(SUM("amountInUSD" * recurringAnnuallyOld * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyOldDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringAnnuallyOld * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyOldDonationsFromOrgsInUSD",
/* new donations */
(SUM("amountInUSD" * recurringAnnuallyNew * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "recurringAnnuallyNewDonationsInUSD",
(SUM("amountInUSD" * recurringAnnuallyNew * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyNewDonationsFromUsersInUSD",
(SUM("amountInUSD" * recurringAnnuallyNew * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "recurringAnnuallyNewDonationsFromOrgsInUSD",
/* one-time donations */
(SUM("amountInUSD" * oneTimeDonations * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "oneTimeDonationsInUSD",
(SUM("amountInUSD" * oneTimeDonations * (isNotRefund + isRefund) * "isUser")/100)::DECIMAL(10,0)::money AS "oneTimeDonationsFromUsersInUSD",
(SUM("amountInUSD" * oneTimeDonations * (isNotRefund + isRefund) * "isOrg")/100)::DECIMAL(10,0)::money AS "oneTimeDonationsFromOrgsInUSD",
/* added funds */
(SUM("amountInUSD" * addedFunds * (isNotRefund + isRefund))/100):: DECIMAL(10,0)::money AS "addedFundsInUSD",
/* expenses */
(SUM("amountInUSD" * totalExpensesRecorded * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "expensesPaidInUSD",
(SUM("amountInUSD" * manualExpenses * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "manualExpensesInUSD",
(SUM("amountInUSD" * paypalExpenses * (isNotRefund + isRefund))/100)::DECIMAL(10,0)::money AS "paypalExpensesInUSD",
/* counts of transactions */
COUNT(*)/2 AS "numTransactions",
SUM(recurringMonthlyTotal + recurringAnnuallyTotal + oneTimeDonations + addedFunds) AS "numMoneyBroughtInEntries",
SUM(recurringMonthlyTotal + recurringAnnuallyTotal + oneTimeDonations) AS "numDonationMadeOnPlatformEntries",
/* monthly */
SUM(recurringMonthlyTotal * (isNotRefund + isRefund)) as "numRecurringMonthlyTotalDonations",
SUM(recurringMonthlyTotal * (isNotRefund + isRefund) * "isUser") as "numRecurringMonthlyTotalDonationsFromUsers",
SUM(recurringMonthlyTotal * (isNotRefund + isRefund) * "isOrg") as "numRecurringMonthlyTotalDonationsFromOrgs",
SUM(recurringMonthlyOld * (isNotRefund + isRefund)) as "numRecurringMonthlyOldDonations",
SUM(recurringMonthlyOld * (isNotRefund + isRefund) * "isUser") as "numRecurringMonthlyOldDonationsFromUsers",
SUM(recurringMonthlyOld * (isNotRefund + isRefund) * "isOrg") as "numRecurringMonthlyOldDonationsFromOrgs",
SUM(recurringMonthlyNew * (isNotRefund + isRefund)) as "numRecurringMonthlyNewDonations",
SUM(recurringMonthlyNew * (isNotRefund + isRefund) * "isUser") as "numRecurringMonthlyNewDonationsFromUsers",
SUM(recurringMonthlyNew * (isNotRefund + isRefund) * "isOrg") as "numRecurringMonthlyNewDonationsFromOrgs",
/* annually */
SUM(recurringAnnuallyTotal * (isNotRefund + isRefund)) as "numRecurringAnnualDonations",
SUM(recurringAnnuallyTotal * (isNotRefund + isRefund) * "isUser") as "numRecurringAnnuallyTotalDonationsFromUsers",
SUM(recurringAnnuallyTotal * (isNotRefund + isRefund) * "isOrg") as "numRecurringAnnuallyTotalDonationsFromOrgs",
SUM(recurringAnnuallyOld * isNotRefund) as "numRecurringAnnuallyOldDonations",
SUM(recurringAnnuallyOld * isNotRefund * "isUser") as "numRecurringAnnuallyOldDonationsFromUsers",
SUM(recurringAnnuallyOld * isNotRefund * "isOrg") as "numRecurringAnnuallyOldDonationsFromOrgs",
SUM(recurringAnnuallyNew * (isNotRefund + isRefund)) as "numRecurringAnnuallyNewDonations",
SUM(recurringAnnuallyNew * (isNotRefund + isRefund) * "isUser") as "numRecurringAnnuallyNewDonationsFromUsers",
SUM(recurringAnnuallyNew * (isNotRefund + isRefund) * "isOrg") as "numRecurringAnnuallyNewDonationsFromOrgs",
/* one-time */
SUM(oneTimeDonations * (isNotRefund + isRefund)) as "numOneTimeDonations",
SUM(oneTimeDonations * (isNotRefund + isRefund) * "isUser") as "numOneTimeDonationsFromUsers",
SUM(oneTimeDonations * (isNotRefund + isRefund) * "isOrg") as "numOneTimeDonationsFromOrgs",
SUM(addedFunds) as "numAddedFunds",
SUM(totalExpensesRecorded) as "numExpensesPaid"
FROM conversions
GROUP BY "givenMonth"
ORDER BY "givenMonth" | the_stack |
select module('Chaos.Client.BoardWidget');
/*
== cursor position + ops
The cursor is at position x,y
The server code has no concept of the cursor.
In the end, this has just made the code more complicated for no reason.
*/
create table cursor_position (
x int,
y int
);
select create_assertion('cursor_position_coordinates_valid',
$$ not exists (select 1 from cursor_position
cross join board_size
where x >= width or y >= height)$$);
select set_relvar_type('cursor_position', 'data');
select restrict_cardinality('cursor_position', '1');
/*
=== actions
cursor movement
*/
create function safe_move_cursor(px int, py int) returns void as $$
begin
update cursor_position
set x = least(greatest(x + px, 0), (select width from board_size) - 1),
y = least(greatest(y + py, 0), (select height from board_size) - 1);
end;
$$ language plpgsql volatile;
create function action_move_cursor(direction text) returns void as $$
begin
case direction
when 'up' then
perform safe_move_cursor(0, -1);
when 'down' then
perform safe_move_cursor(0, 1);
when 'left' then
perform safe_move_cursor(-1, 0);
when 'right' then
perform safe_move_cursor(1, 0);
when 'up-left' then
perform safe_move_cursor(-1, -1);
when 'up-right' then
perform safe_move_cursor(1, -1);
when 'down-left' then
perform safe_move_cursor(-1, 1);
when 'down-right' then
perform safe_move_cursor(1, 1);
else
raise exception
'asked to move cursor in direction % which isn''t valid',
direction;
end case;
end;
$$ language plpgsql volatile;
/*
=== internals
When next phase is called, moved the cursor to that wizard
*/
create function action_move_cursor_to_current_wizard() returns void as $$
declare
p pos;
begin
--don't move cursor during autonomous phase
if get_turn_phase() != 'autonomous' then
select into p x,y from pieces
inner join current_wizard_table
on (current_wizard = allegiance)
where ptype = 'wizard';
update cursor_position set (x,y) = (p.x,p.y);
end if;
end;
$$ language plpgsql volatile;
create function init_cursor_position() returns void as $$
begin
insert into cursor_position (x,y) values (0,0);
end;
$$ language plpgsql volatile;
/*
the plan is to have a board_sprites view for the board widget. This
contains all the sprites on the board (basically everything drawn on
the board: piece sprites, cursor, highlights, etc.) all the board
needs is x,y,sprite and order. The order is used to make sure
overlapping sprites e.g. a piece, the cursor and a highlight, are
drawn in the right order
*/
/*
== piece sprites
Want to produce a list of x,y,sprite rows
for the pieces on top, the cursor,
and the highlights for the currently available actions
wizard sprites: look in the action history to find the most recent upgrade
*/
create view wizard_sprites as
select wizard_name,sprite,colour from
(select row_number() over(partition by wizard_name order by o desc) as rn,
wizard_name,
case when shadow_form then sprite || '_shadow'
else sprite
end as sprite, w.colour from
(select -1 as o, wizard_name, default_sprite as sprite
from wizard_display_info
union all
select id as o, allegiance as wizard_name,
'wizard_' || spell_name
from action_history_mr
natural inner join spells_mr
where spell_name != 'shadow_form'
and spell_category = 'wizard'
and history_name = 'spell_succeeded'
) as a
natural inner join wizard_display_info as w
natural inner join wizards) as w where rn = 1;
/*
piece ptype-allegiance-tag is at x,y, allegiance colour is 'colour',
sprite is 'sprite', sprite priority is sp.
*/
create view piece_sprite as
select x,y,ptype,
case when ptype='wizard' then w.sprite
when allegiance='dead' then 'dead_' || ptype
else ptype
end as sprite,
ac.colour,tag,allegiance
from pieces p
left outer join wizard_sprites w
on (allegiance = wizard_name and ptype='wizard')
inner join allegiance_colours ac
using (allegiance);
/*
== highlights
*/
create view board_highlights as
-- include the squares for the selected spell
-- when still in the choose phase, so the user can
--see what squares are valid for their chosen spell
select x,y,'highlight_cast_target_spell' as sprite
from current_wizard_spell_squares
where get_turn_phase() = 'choose'
union all
select x,y,'highlight_' || action as sprite
from valid_target_actions;
/*
== animation
we save a starting tick against each piece. Not really sure what the
best way to do this, some options are:
these are updated in the action_key_pressed and client_ai_continue fns
*/
create table piece_starting_ticks (
ptype text,
allegiance text,
tag int,
start_tick int,
unique (ptype,allegiance,tag),
foreign key (ptype,allegiance,tag) references pieces
);
select set_relvar_type('piece_starting_ticks', 'data');
create function update_missing_startticks()
returns void as $$
begin
insert into piece_starting_ticks (ptype,allegiance,tag,start_tick)
select ptype,allegiance,tag, random()*2500 from pieces
where (ptype,allegiance,tag) not in
(select ptype,allegiance,tag
from piece_starting_ticks);
end;
$$ language plpgsql volatile;
/*
== board sprites
put the piece sprites, the highlight and the cursor
together to give the full list of sprites
split this up so the cursor movement isn't really laggy, just a hack -
needs some more thought.
*/
create view board_sprites1_view as
select x,y,ptype,allegiance,tag,sprite,colour,sp,
start_tick, animation_speed, selected from
(select x,y,ptype,allegiance,tag,
sprite,colour,sp,0 as start_tick,
case when not move_phase is null then true
else false
end as selected
from piece_sprite
natural inner join pieces_on_top
--natural inner join piece_starting_ticks
natural inner join sprites
natural left outer join selected_piece
union all
select x,y, '', '', -1, sprite, 'white', 5,0,false
from board_highlights) as a
natural inner join sprites
union all
select x,y, '', '', -1,'cursor', 'white', 6,0, animation_speed, false
from cursor_position
inner join sprites on sprite='cursor'
order by sp;
/*create table board_sprites1_cache as
select * from board_sprites1_view;
select set_relvar_type('board_sprites1_cache', 'data');
create function update_board_sprites_cache() returns void as $$
begin
--if get_running_effects() then
-- return;
--end if;
--raise notice 'update bpc';
delete from board_sprites1_cache;
insert into board_sprites1_cache
select * from board_sprites1_view;
end;
$$ language plpgsql volatile;
create view board_sprites as
select * from board_sprites1_cache
union all
select x,y, '', '', -1,'cursor', 'white', 6,0, animation_speed, false
from cursor_position
inner join sprites on sprite='cursor';
*/
/*
== effects
two sorts of effects: beam and square
*/
/*
create table board_square_effects (
id serial unique,
subtype text,
x1 int,
y1 int,
queuePos int
);
select set_relvar_type('board_square_effects', 'data');
create table board_beam_effects (
id serial unique,
subtype text,
x1 int,
y1 int,
x2 int,
y2 int,
queuePos int
);
select set_relvar_type('board_beam_effects', 'data');
create table board_sound_effects (
id serial unique,
subtype text,
sound_name text,
queuePos int
);
select set_relvar_type('board_sound_effects', 'data');
create function get_running_effects() returns boolean as $$
begin
return exists (select 1 from board_beam_effects)
or exists (select 1 from board_square_effects)
or exists (select 1 from board_sound_effects);
end;
$$ language plpgsql stable;
create table history_sounds (
history_name text,
sound_name text,
unique (history_name,sound_name)
);
select set_relvar_type('history_sounds', 'readonly');
copy history_sounds (history_name,sound_name) from stdin;
walked walk
fly fly
attack attack
ranged_attack shoot
game_drawn draw
game_won win
spell_failed fail
spell_succeeded success
shrugged_off shrugged_off
wizard_up wizard_up
new_game new_game
chinned kill
attempt_target_spell cast
\.
create table history_no_visuals (
history_name text unique
);
select set_relvar_type('history_no_visuals', 'readonly');
copy history_no_visuals (history_name) from stdin;
wizard_up
new_turn
new_game
game_won
game_drawn
choose_spell
set_imaginary
set_real
\.
select create_var('last_history_effect_id', 'int');
select set_relvar_type('last_history_effect_id_table', 'data');
create function check_for_effects() returns void as $$
begin
insert into board_square_effects (subtype, x1, y1, queuePos)
select history_name,case when tx is null then x else tx end,
case when ty is null then y else ty end,id
from action_history_mr
where id > get_last_history_effect_id()
and x is not null and y is not null
and history_name not in (select history_name from history_no_visuals);
insert into board_beam_effects (subtype,x1,y1,x2,y2,queuePos)
select history_name,x,y,tx,ty,id
from action_history_mr
where id > get_last_history_effect_id()
and x is not null and y is not null
and tx is not null and ty is not null
and history_name not in (select history_name from history_no_visuals);
insert into board_sound_effects (subtype, sound_name,queuePos)
select history_name,sound_name,id
from action_history_mr
natural inner join history_sounds
left outer join wizards on allegiance = wizard_name
where id > get_last_history_effect_id()
--exclude turn sound for computer controlled wizards choose phase
and not(history_name='wizard_up'
and turn_phase='choose'
and coalesce(computer_controlled,false))
;
update last_history_effect_id_table set
last_history_effect_id = (select max(id) from action_history_mr);
end;
$$ language plpgsql volatile;
*/
/*
call this function before reading the current effects table and it
will leave those tables the same if the current effects are still
playing, or it will clear the old effects and fill them with the next
set of effects.
call it after reading the current effects table to clear the current
row of sounds, that way the sounds will only be returned to the ui
once and thus will only be played once.
*/
/*create table current_effects (
ticks int,
queuePos int
);
select set_relvar_type('current_effects', 'data');
select restrict_cardinality('current_effects', 1);*/
/*create view current_board_sound_effects as
select * from board_sound_effects
natural inner join current_effects;
create view current_board_beam_effects as
select * from board_beam_effects
natural inner join current_effects;
create view current_board_square_effects as
select * from board_square_effects
natural inner join current_effects;
*/
/*create function action_reset_current_effects() returns void as $$
begin
delete from board_sound_effects;
delete from board_beam_effects;
delete from board_square_effects;
delete from current_effects;
end;
$$ language plpgsql volatile;*/
/*
create function action_update_effects_ticks(pticks int) returns void as $$
declare
wasEffects boolean := false;
nextQp int;
begin
if exists(select 1 from current_effects) then
wasEffects := true;
end if;
--always delete sound effects after the first time they are returned
if exists(select 1 from current_board_sound_effects) then
delete from board_sound_effects
where queuePos = (select queuePos from current_effects);
end if;
--see if we need a new row of effects
if not exists(select 1 from current_effects)
or pticks > (select ticks + 6 from current_effects) then
delete from board_sound_effects
where queuePos = (select queuePos from current_effects);
delete from board_beam_effects
where queuePos = (select queuePos from current_effects);
delete from board_square_effects
where queuePos = (select queuePos from current_effects);
delete from current_effects;
nextQp := (select min(queuePos) from
(select queuePos from board_sound_effects
union all
select queuePos from board_beam_effects
union all
select queuePos from board_square_effects) as a);
if nextQp is not null and nextQp <> 0 then
insert into current_effects (ticks, queuePos)
values (pticks, nextQp);
end if;
end if;
if not exists(select 1 from current_effects)
and wasEffects then
perform update_board_sprites_cache();
end if;
end;
$$ language plpgsql volatile;
*/
create function action_client_ai_continue() returns void as $$
begin
/*if get_running_effects() then
return;
end if;*/
perform action_ai_continue();
perform update_missing_startticks();
if (select computer_controlled from wizards
inner join current_wizard_table on wizard_name=current_wizard)
and get_turn_phase() = 'choose' then
perform action_client_ai_continue();
else
--perform check_for_effects();
--perform update_board_sprites_cache();
end if;
if not (select computer_controlled from wizards
inner join current_wizard_table
on wizard_name=current_wizard) then
perform action_move_cursor_to_current_wizard();
end if;
end;
$$ language plpgsql volatile;
create function action_client_ai_continue_if() returns void as $$
begin
if exists(select 1 from valid_activate_actions
where action='ai_continue') then
perform action_client_ai_continue();
end if;
end;
$$ language plpgsql volatile;
/*
================================================================================
= info widget
create a few views to help with the stuff shown
in the info widget
*/
create view piece_details as
select * from pieces_mr
full outer join
(select 'wizard'::text as wtype,* from wizards where not expired) as a
on (allegiance = wizard_name and ptype = wtype)
natural inner join pieces_with_priorities
natural inner join piece_sprite;
create view cursor_piece_details as
select * from piece_details
natural inner join cursor_position;
create view selected_piece_details as
select * from piece_details
natural inner join selected_piece
natural full outer join remaining_walk_table; | the_stack |
;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `api_key` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`type` tinyint(1) DEFAULT '0',
`url` varchar(256) DEFAULT NULL,
`redirect_uri` varchar(256) NOT NULL,
`owner_id` varchar(20) NOT NULL,
`client_id` varchar(100) NOT NULL,
`client_secret` varchar(100) NOT NULL,
`status` tinyint(1) DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`,`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `api_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` varchar(100) NOT NULL,
`user_id` varchar(100) NOT NULL,
`token` varchar(100) NOT NULL,
`expire_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`refresh_token` varchar(100) NOT NULL,
`refresh_expire_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`status` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`,`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `badge` (
`badge_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`summary` varchar(255) DEFAULT NULL,
PRIMARY KEY (`badge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `badge_item` (
`item_id` varchar(100) NOT NULL,
`badge_id` int(11) NOT NULL,
`kind` int(11) NOT NULL,
`reason` varchar(255) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`item_id`,`badge_id`,`kind`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `center_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(1024) NOT NULL,
`description` text,
`creator_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`type` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_creator` (`creator_id`),
KEY `idx_created` (`created_at`),
KEY `idx_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `chat_rooms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`author` varchar(20) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_boards` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`board_id` varchar(32) DEFAULT NULL,
`board_name` varchar(32) DEFAULT NULL,
`user_key` varchar(32) DEFAULT NULL,
`user_token` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `project_id` (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_comments` (
`comment_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`ref` varchar(100) NOT NULL,
`author` varchar(20) NOT NULL,
`content` text NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`comment_id`),
KEY `idx_ref` (`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_committers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`project_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_user_project` (`user_id`,`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='code/committers/2012-11-26';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_hooks` (
`hook_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`url` varchar(100) NOT NULL,
PRIMARY KEY (`hook_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_linecomments` (
`comment_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`ref` varchar(100) NOT NULL,
`path` varchar(255) NOT NULL,
`position` int(11) NOT NULL,
`author` varchar(20) NOT NULL,
`content` text CHARACTER SET utf8 NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`comment_id`),
KEY `idx_ref` (`ref`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_linecomments_v2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`target_type` int(11) NOT NULL,
`target_id` int(11) NOT NULL,
`from_sha` varchar(100) NOT NULL,
`to_sha` varchar(100) NOT NULL,
`old_path` varchar(255) NOT NULL,
`new_path` varchar(255) NOT NULL,
`from_oid` varchar(100) NOT NULL,
`to_oid` varchar(100) NOT NULL,
`old_linenum` int(11) NOT NULL,
`new_linenum` int(11) NOT NULL,
`position` int(11) DEFAULT NULL,
`author` varchar(20) NOT NULL,
`content` varchar(1024) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_target_type_and_target_id` (`target_type`,`target_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_mirror` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`url` varchar(512) NOT NULL,
`state` int(11) NOT NULL DEFAULT '0',
`project_id` int(11) NOT NULL,
`with_proxy` tinyint(1) NOT NULL DEFAULT '0',
`frequency` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_project` (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_projects` (
`project_id` int(11) NOT NULL AUTO_INCREMENT,
`project_name` varchar(100) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`owner_id` varchar(20) NOT NULL,
`summary` varchar(255) DEFAULT NULL,
`time` datetime NOT NULL,
`product` varchar(10) DEFAULT NULL,
`git_path` varchar(100) NOT NULL,
`trac_conf` varchar(100) NOT NULL,
`fork_from` int(11) DEFAULT NULL,
`origin_project` int(11) DEFAULT NULL,
`intern_banned` varchar(10) DEFAULT NULL,
`can_push` tinyint(1) DEFAULT '1',
PRIMARY KEY (`project_id`),
UNIQUE KEY `project_name` (`project_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_recommendation_votes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`recommendation_id` int(11) NOT NULL,
`user` varchar(20) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_recommendations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`from_user` varchar(20) NOT NULL,
`to_user` varchar(20) NOT NULL,
`content` varchar(1024) CHARACTER SET utf8 NOT NULL,
`n_vote` int(11) NOT NULL DEFAULT '0',
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_status_comments` (
`comment_id` int(11) NOT NULL AUTO_INCREMENT,
`status_id` int(11) NOT NULL,
`author` varchar(20) NOT NULL,
`text` text NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_status_likes` (
`like_id` int(11) NOT NULL AUTO_INCREMENT,
`status_id` int(11) NOT NULL,
`author` varchar(20) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`like_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_status_reshares` (
`reshare_id` int(11) NOT NULL AUTO_INCREMENT,
`status_id` int(11) NOT NULL,
`author` varchar(20) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`reshare_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_statuses` (
`status_id` int(11) NOT NULL AUTO_INCREMENT,
`owner_id` varchar(20) NOT NULL,
`text` text NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_ticket` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL,
`description` varchar(1024) NOT NULL,
`author` varchar(20) NOT NULL,
`ticket_number` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`closed` timestamp NULL DEFAULT NULL,
`rank_score` float(5,3) NOT NULL DEFAULT '0.000',
PRIMARY KEY (`id`),
KEY `idx_project_ticket` (`project_id`,`ticket_number`),
KEY `idx_closed` (`closed`),
KEY `idx_author` (`author`),
KEY `idx_rank_score` (`rank_score`),
KEY `idx_time` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_ticket_codereview` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(1024) NOT NULL,
`path` varchar(255) NOT NULL,
`position` int(11) NOT NULL,
`line_mark` varchar(20) NOT NULL DEFAULT '',
`from_ref` varchar(255) NOT NULL,
`author` varchar(20) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ticket_id` int(11) NOT NULL,
`new_path` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_ticket_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(1024),
`author` varchar(20) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ticket_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_ticket` (`ticket_id`),
KEY `idx_author` (`author`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_ticket_commits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commits` varchar(1024) NOT NULL,
`author` varchar(20) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ticket_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_ticket` (`ticket_id`),
KEY `idx_created` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_useremails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`email` varchar(64) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_usergithub` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`user_name` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `codedouban_watches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`project_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`,`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `commit_statuses` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`sha` varchar(100) NOT NULL DEFAULT '',
`state` varchar(20) NOT NULL DEFAULT '',
`target_url` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`author` varchar(20) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `project_id` (`project_id`,`sha`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `follow_relationship` (
`user_name` varchar(20) NOT NULL,
`followed_user_name` varchar(20) NOT NULL,
`time` datetime DEFAULT NULL,
PRIMARY KEY (`user_name`,`followed_user_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gist_comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gist_id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
`content` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gist_stars` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gist_id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_gist_user` (`gist_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gists` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` text,
`owner_id` varchar(20) NOT NULL,
`is_public` tinyint(1) DEFAULT '1',
`fork_from` int(11) DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`user_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_group_user` (`group_id`,`user_id`),
KEY `idx_group` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_comment_counters` (
`issue_id` int(10) unsigned NOT NULL,
`counter` int(10) unsigned DEFAULT '1',
PRIMARY KEY (`issue_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NOT NULL,
`author_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`number` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_milestones` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`issue_id` int(10) unsigned NOT NULL,
`milestone_id` int(10) unsigned NOT NULL,
`creator_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_issue` (`issue_id`),
KEY `uk_issue_milestone` (`issue_id`,`milestone_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_participants` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NOT NULL,
`user_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_issue_user` (`issue_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_pledge` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
`amount` int(11) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_ip_iu` (`issue_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_related_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_irp_pid` (`project_id`),
KEY `idx_irp_ip` (`issue_id`,`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_upvotes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(1024) NOT NULL,
`creator_id` varchar(200) NOT NULL,
`assignee_id` varchar(200) DEFAULT NULL,
`closer_id` varchar(200) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
`closed_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`rank_score` float(5,3) NOT NULL DEFAULT '0.000',
`type` varchar(16) DEFAULT '',
`target_id` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `milestone_counters` (
`target_id` int(10) unsigned NOT NULL,
`target_type` int(10) unsigned NOT NULL,
`counter` int(10) unsigned DEFAULT '1',
PRIMARY KEY (`target_id`),
KEY `uk_target` (`target_id`,`target_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `milestones` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(1024) NOT NULL,
`target_id` int(10) unsigned NOT NULL,
`target_type` int(10) unsigned NOT NULL,
`target_number` int(10) unsigned NOT NULL,
`creator_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_milestone` (`target_id`,`target_type`,`target_number`),
UNIQUE KEY `uk_name` (`name`(255),`target_id`,`target_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `organization` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`org_id` varchar(20) NOT NULL,
`name` varchar(100) NOT NULL DEFAULT '',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`creator` varchar(20) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `org_id` (`org_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_issue_counters` (
`project_id` int(10) unsigned NOT NULL,
`counter` int(10) unsigned DEFAULT '1',
PRIMARY KEY (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_issues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`issue_id` int(11) NOT NULL,
`number` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `projects_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_project_group` (`project_id`,`group_id`),
KEY `idx_project` (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pullreq` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`from_project` int(11) NOT NULL,
`from_branch` varchar(100) NOT NULL,
`to_project` int(11) NOT NULL,
`to_branch` varchar(100) NOT NULL,
`merged` varchar(100) DEFAULT NULL,
`ticket_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_project_ticket` (`to_project`,`ticket_id`),
KEY `idx_merged` (`merged`),
KEY `idx_from_to` (`from_project`,`from_branch`,`to_project`,`to_branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pullreq_counter` (
`project_id` int(10) unsigned NOT NULL,
`counter` int(10) unsigned DEFAULT '1',
PRIMARY KEY (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='code/pull request counter/2012-11-30';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ssh_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`key` varchar(1024) NOT NULL,
`fingerprint` varchar(48) NOT NULL,
`title` varchar(128) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id_index` (`user_id`),
KEY `fingerprint_index` (`fingerprint`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag_names` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(1024) NOT NULL,
`author_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`target_id` int(11) NOT NULL,
`target_type` int(11) NOT NULL,
`hex_color` varchar(6) DEFAULT 'cccccc',
PRIMARY KEY (`id`),
KEY `uk_name_target_type_and_target_id` (`name`(255),`target_type`,`target_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`author_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`target_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `uk_tag_id_type_and_type_id` (`tag_id`,`type`,`type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` varchar(20) NOT NULL,
`name` varchar(100) NOT NULL DEFAULT '',
`description` varchar(600) NOT NULL DEFAULT '',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`creator_id` varchar(200) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `team_id` (`team_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL DEFAULT '',
`creator_id` varchar(200) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`description` varchar(1024) DEFAULT NULL,
`permission` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_team_name` (`team_id`,`name`),
KEY `idx_team` (`team_id`),
KEY `idx_permission` (`permission`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_issue_counters` (
`team_id` int(10) unsigned NOT NULL,
`counter` int(10) unsigned DEFAULT '1',
PRIMARY KEY (`team_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_issues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) NOT NULL,
`issue_id` int(11) NOT NULL,
`number` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_project_relationship` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_team_project` (`team_id`,`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_team_project` (`team_id`,`project_id`),
UNIQUE KEY `uk_team_id` (`team_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_user_relationship` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id` int(11) NOT NULL,
`user_id` varchar(20) NOT NULL,
`identity` int(11) unsigned NOT NULL DEFAULT '1',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_team_user` (`team_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ticket_nodes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`author` varchar(20) NOT NULL,
`type` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`ticket_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_ticket` (`ticket_id`),
KEY `idx_created` (`created_at`),
KEY `idx_type` (`type`,`type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_fav` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL,
`target_id` int(10) unsigned NOT NULL,
`kind` smallint(5) unsigned NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_user_fav` (`user_id`,`target_id`,`kind`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`password` varchar(100) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`role` tinyint(4) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_user` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; | the_stack |
-- TRL External ID
-- 2021-06-23T12:13:12.625Z
-- 2021-06-23T12:13:12.625Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Externe ID', PrintName='Externe ID',Updated=TO_TIMESTAMP('2021-06-23 14:13:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543939 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:13:12.644Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543939,'nl_NL')
;
-- 2021-06-23T12:13:17.171Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 14:13:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543939 AND AD_Language='en_US'
;
-- 2021-06-23T12:13:17.175Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543939,'en_US')
;
-- 2021-06-23T12:13:23.815Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Externe ID', PrintName='Externe ID',Updated=TO_TIMESTAMP('2021-06-23 14:13:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543939 AND AD_Language='de_CH'
;
-- 2021-06-23T12:13:23.816Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543939,'de_CH')
;
-- 2021-06-23T12:13:33.781Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Externe ID', PrintName='Externe ID',Updated=TO_TIMESTAMP('2021-06-23 14:13:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543939 AND AD_Language='de_DE'
;
-- 2021-06-23T12:13:33.785Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543939,'de_DE')
;
-- 2021-06-23T12:13:33.792Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543939,'de_DE')
;
-- 2021-06-23T12:13:33.793Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='ExternalId', Name='Externe ID', Description=NULL, Help=NULL WHERE AD_Element_ID=543939
;
-- 2021-06-23T12:13:33.796Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='ExternalId', Name='Externe ID', Description=NULL, Help=NULL, AD_Element_ID=543939 WHERE UPPER(ColumnName)='EXTERNALID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:13:33.798Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='ExternalId', Name='Externe ID', Description=NULL, Help=NULL WHERE AD_Element_ID=543939 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:13:33.798Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Externe ID', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543939) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543939)
;
-- 2021-06-23T12:13:33.817Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Externe ID', Name='Externe ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543939)
;
-- 2021-06-23T12:13:33.818Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Externe ID', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543939
;
-- 2021-06-23T12:13:33.819Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Externe ID', Description=NULL, Help=NULL WHERE AD_Element_ID = 543939
;
-- 2021-06-23T12:13:33.820Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Externe ID', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543939
;
-- TRL Invoiced
-- 2021-06-23T12:16:29.205Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Fakturiert?', IsTranslated='Y', Name='Fakturiert', PrintName='Fakturiert',Updated=TO_TIMESTAMP('2021-06-23 14:16:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=387 AND AD_Language='fr_CH'
;
-- 2021-06-23T12:16:29.208Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(387,'fr_CH')
;
-- 2021-06-23T12:16:37.182Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 14:16:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=387 AND AD_Language='en_GB'
;
-- 2021-06-23T12:16:37.185Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(387,'en_GB')
;
-- 2021-06-23T12:16:45.183Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Fakturiert?', IsTranslated='Y', Name='Fakturiert', PrintName='Fakturiert',Updated=TO_TIMESTAMP('2021-06-23 14:16:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=387 AND AD_Language='de_CH'
;
-- 2021-06-23T12:16:45.183Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(387,'de_CH')
;
-- 2021-06-23T12:17:01.054Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Fakturiert?', IsTranslated='Y', Name='Fakturiert', PrintName='Fakturiert',Updated=TO_TIMESTAMP('2021-06-23 14:17:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=387 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:17:01.054Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(387,'nl_NL')
;
-- 2021-06-23T12:17:08.905Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Fakturiert?', IsTranslated='Y', Name='Fakturiert', PrintName='Fakturiert',Updated=TO_TIMESTAMP('2021-06-23 14:17:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=387 AND AD_Language='de_DE'
;
-- 2021-06-23T12:17:08.907Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(387,'de_DE')
;
-- 2021-06-23T12:17:08.931Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(387,'de_DE')
;
-- 2021-06-23T12:17:08.932Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='IsInvoiced', Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created' WHERE AD_Element_ID=387
;
-- 2021-06-23T12:17:08.934Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsInvoiced', Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created', AD_Element_ID=387 WHERE UPPER(ColumnName)='ISINVOICED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:17:08.935Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsInvoiced', Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created' WHERE AD_Element_ID=387 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:17:08.936Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=387) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 387)
;
-- 2021-06-23T12:17:08.954Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Fakturiert', Name='Fakturiert' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=387)
;
-- 2021-06-23T12:17:08.955Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created', CommitWarning = NULL WHERE AD_Element_ID = 387
;
-- 2021-06-23T12:17:08.956Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Fakturiert', Description='Fakturiert?', Help='If selected, invoices are created' WHERE AD_Element_ID = 387
;
-- 2021-06-23T12:17:08.957Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Fakturiert', Description = 'Fakturiert?', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 387
;
-- TRL Delivery info
-- 2021-06-23T12:18:36.610Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferinformationen', PrintName='Lieferinformationen',Updated=TO_TIMESTAMP('2021-06-23 14:18:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578126 AND AD_Language='de_CH'
;
-- 2021-06-23T12:18:36.612Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578126,'de_CH')
;
-- 2021-06-23T12:18:42.629Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferinformationen', PrintName='Lieferinformationen',Updated=TO_TIMESTAMP('2021-06-23 14:18:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578126 AND AD_Language='de_DE'
;
-- 2021-06-23T12:18:42.632Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578126,'de_DE')
;
-- 2021-06-23T12:18:42.656Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(578126,'de_DE')
;
-- 2021-06-23T12:18:42.658Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='DeliveryInfo', Name='Lieferinformationen', Description=NULL, Help=NULL WHERE AD_Element_ID=578126
;
-- 2021-06-23T12:18:42.660Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='DeliveryInfo', Name='Lieferinformationen', Description=NULL, Help=NULL, AD_Element_ID=578126 WHERE UPPER(ColumnName)='DELIVERYINFO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:18:42.661Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='DeliveryInfo', Name='Lieferinformationen', Description=NULL, Help=NULL WHERE AD_Element_ID=578126 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:18:42.662Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Lieferinformationen', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578126) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578126)
;
-- 2021-06-23T12:18:42.678Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Lieferinformationen', Name='Lieferinformationen' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578126)
;
-- 2021-06-23T12:18:42.679Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Lieferinformationen', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578126
;
-- 2021-06-23T12:18:42.680Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Lieferinformationen', Description=NULL, Help=NULL WHERE AD_Element_ID = 578126
;
-- 2021-06-23T12:18:42.680Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Lieferinformationen', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578126
;
-- 2021-06-23T12:18:47.113Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 14:18:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578126 AND AD_Language='en_US'
;
-- 2021-06-23T12:18:47.115Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578126,'en_US')
;
-- 2021-06-23T12:18:53.164Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Lieferinformationen', PrintName='Lieferinformationen',Updated=TO_TIMESTAMP('2021-06-23 14:18:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578126 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:18:53.167Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578126,'nl_NL')
;
-- TRL Payment BPartner
-- 2021-06-23T12:27:07.637Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungspartner', IsTranslated='Y', Name='Zahlungspartner', PrintName='Zahlungspartner',Updated=TO_TIMESTAMP('2021-06-23 14:27:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2420 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:27:07.639Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2420,'nl_NL')
;
-- 2021-06-23T12:27:22.361Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungspartner', IsTranslated='Y', Name='Zahlungspartner', PrintName='Zahlungspartner',Updated=TO_TIMESTAMP('2021-06-23 14:27:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2420 AND AD_Language='de_CH'
;
-- 2021-06-23T12:27:22.361Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2420,'de_CH')
;
-- 2021-06-23T12:27:44.238Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungspartner', IsTranslated='Y', Name='Zahlungspartner', PrintName='Zahlungspartner',Updated=TO_TIMESTAMP('2021-06-23 14:27:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2420 AND AD_Language='de_DE'
;
-- 2021-06-23T12:27:44.241Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2420,'de_DE')
;
-- 2021-06-23T12:27:44.266Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(2420,'de_DE')
;
-- 2021-06-23T12:27:44.269Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='Pay_BPartner_ID', Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL WHERE AD_Element_ID=2420
;
-- 2021-06-23T12:27:44.271Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='Pay_BPartner_ID', Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL, AD_Element_ID=2420 WHERE UPPER(ColumnName)='PAY_BPARTNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:27:44.273Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='Pay_BPartner_ID', Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL WHERE AD_Element_ID=2420 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:27:44.275Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2420) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 2420)
;
-- 2021-06-23T12:27:44.313Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Zahlungspartner', Name='Zahlungspartner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=2420)
;
-- 2021-06-23T12:27:44.314Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 2420
;
-- 2021-06-23T12:27:44.316Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Zahlungspartner', Description='Zahlungspartner', Help=NULL WHERE AD_Element_ID = 2420
;
-- 2021-06-23T12:27:44.317Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Zahlungspartner', Description = 'Zahlungspartner', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 2420
;
-- TRL Payment Location
-- 2021-06-23T12:47:32.496Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungsanschrift', IsTranslated='Y', Name='Zahlungsanschrift', PrintName='Zahlungsanschrift',Updated=TO_TIMESTAMP('2021-06-23 14:47:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2421 AND AD_Language='de_DE'
;
-- 2021-06-23T12:47:32.497Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2421,'de_DE')
;
-- 2021-06-23T12:47:32.505Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(2421,'de_DE')
;
-- 2021-06-23T12:47:32.506Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='Pay_Location_ID', Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL WHERE AD_Element_ID=2421
;
-- 2021-06-23T12:47:32.507Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL, AD_Element_ID=2421 WHERE UPPER(ColumnName)='PAY_LOCATION_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:47:32.508Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='Pay_Location_ID', Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL WHERE AD_Element_ID=2421 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:47:32.509Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2421) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 2421)
;
-- 2021-06-23T12:47:32.523Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Zahlungsanschrift', Name='Zahlungsanschrift' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=2421)
;
-- 2021-06-23T12:47:32.525Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 2421
;
-- 2021-06-23T12:47:32.526Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Zahlungsanschrift', Description='Zahlungsanschrift', Help=NULL WHERE AD_Element_ID = 2421
;
-- 2021-06-23T12:47:32.526Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Zahlungsanschrift', Description = 'Zahlungsanschrift', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 2421
;
-- 2021-06-23T12:47:40.374Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungsanschrift', IsTranslated='Y', Name='Zahlungsanschrift', PrintName='Zahlungsanschrift',Updated=TO_TIMESTAMP('2021-06-23 14:47:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2421 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:47:40.375Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2421,'nl_NL')
;
-- 2021-06-23T12:47:50.698Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Zahlungsanschrift', IsTranslated='Y', Name='Zahlungsanschrift', PrintName='Zahlungsanschrift',Updated=TO_TIMESTAMP('2021-06-23 14:47:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2421 AND AD_Language='de_CH'
;
-- 2021-06-23T12:47:50.700Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2421,'de_CH')
;
-- TRL Cash Journal Line
-- 2021-06-23T12:51:04.337Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Kassenbuch Zeile', IsTranslated='Y', Name='Kassenbuch Zeile', PrintName='Kassenbuch Zeile',Updated=TO_TIMESTAMP('2021-06-23 14:51:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1464 AND AD_Language='de_CH'
;
-- 2021-06-23T12:51:04.339Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1464,'de_CH')
;
-- 2021-06-23T12:51:15.030Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Kassenbuch Zeile', IsTranslated='Y', Name='Kassenbuch Zeile', PrintName='Kassenbuch Zeile',Updated=TO_TIMESTAMP('2021-06-23 14:51:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1464 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:51:15.032Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1464,'nl_NL')
;
-- 2021-06-23T12:51:23.933Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Kassenbuch Zeile', IsTranslated='Y', Name='Kassenbuch Zeile', PrintName='Kassenbuch Zeile',Updated=TO_TIMESTAMP('2021-06-23 14:51:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1464 AND AD_Language='de_DE'
;
-- 2021-06-23T12:51:23.933Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1464,'de_DE')
;
-- 2021-06-23T12:51:23.938Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(1464,'de_DE')
;
-- 2021-06-23T12:51:23.939Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='C_CashLine_ID', Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.' WHERE AD_Element_ID=1464
;
-- 2021-06-23T12:51:23.940Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='C_CashLine_ID', Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.', AD_Element_ID=1464 WHERE UPPER(ColumnName)='C_CASHLINE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:51:23.940Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='C_CashLine_ID', Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.' WHERE AD_Element_ID=1464 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:51:23.941Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=1464) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 1464)
;
-- 2021-06-23T12:51:23.952Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Kassenbuch Zeile', Name='Kassenbuch Zeile' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=1464)
;
-- 2021-06-23T12:51:23.952Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.', CommitWarning = NULL WHERE AD_Element_ID = 1464
;
-- 2021-06-23T12:51:23.953Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Kassenbuch Zeile', Description='Kassenbuch Zeile', Help='The Cash Journal Line indicates a unique line in a cash journal.' WHERE AD_Element_ID = 1464
;
-- 2021-06-23T12:51:23.954Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Kassenbuch Zeile', Description = 'Kassenbuch Zeile', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 1464
;
-- TRL Promotion Code
-- 2021-06-23T12:53:28.276Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Werbecode', IsTranslated='Y', Name='Werbecode', PrintName='Werbecode',Updated=TO_TIMESTAMP('2021-06-23 14:53:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53809 AND AD_Language='de_DE'
;
-- 2021-06-23T12:53:28.277Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(53809,'de_DE')
;
-- 2021-06-23T12:53:28.285Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(53809,'de_DE')
;
-- 2021-06-23T12:53:28.286Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='PromotionCode', Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion' WHERE AD_Element_ID=53809
;
-- 2021-06-23T12:53:28.286Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='PromotionCode', Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion', AD_Element_ID=53809 WHERE UPPER(ColumnName)='PROMOTIONCODE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T12:53:28.287Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='PromotionCode', Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion' WHERE AD_Element_ID=53809 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T12:53:28.287Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53809) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 53809)
;
-- 2021-06-23T12:53:28.297Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Werbecode', Name='Werbecode' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53809)
;
-- 2021-06-23T12:53:28.298Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion', CommitWarning = NULL WHERE AD_Element_ID = 53809
;
-- 2021-06-23T12:53:28.299Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Werbecode', Description='Werbecode', Help='If present, user entered the promotion code at sales time to get this promotion' WHERE AD_Element_ID = 53809
;
-- 2021-06-23T12:53:28.299Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Werbecode', Description = 'Werbecode', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 53809
;
-- 2021-06-23T12:53:35.167Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Werbecode', IsTranslated='Y', Name='Werbecode', PrintName='Werbecode',Updated=TO_TIMESTAMP('2021-06-23 14:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53809 AND AD_Language='nl_NL'
;
-- 2021-06-23T12:53:35.168Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(53809,'nl_NL')
;
-- 2021-06-23T12:53:44.924Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Werbecode', IsTranslated='Y', Name='Werbecode', PrintName='Werbecode',Updated=TO_TIMESTAMP('2021-06-23 14:53:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53809 AND AD_Language='de_CH'
;
-- 2021-06-23T12:53:44.926Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(53809,'de_CH')
;
-- TRL Description Only
-- 2021-06-23T13:07:03.291Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Nur Beschreibung', IsTranslated='Y', Name='Nur Beschreibung', PrintName='Nur Beschreibung',Updated=TO_TIMESTAMP('2021-06-23 15:07:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2183 AND AD_Language='de_CH'
;
-- 2021-06-23T13:07:03.292Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2183,'de_CH')
;
-- 2021-06-23T13:07:24.328Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Nur Beschreibung', IsTranslated='Y', Name='Nur Beschreibung', PrintName='Nur Beschreibung',Updated=TO_TIMESTAMP('2021-06-23 15:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2183 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:07:24.330Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2183,'nl_NL')
;
-- 2021-06-23T13:07:34.983Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Nur Beschreibung', Name='Nur Beschreibung', PrintName='Nur Beschreibung',Updated=TO_TIMESTAMP('2021-06-23 15:07:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2183 AND AD_Language='de_DE'
;
-- 2021-06-23T13:07:34.985Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2183,'de_DE')
;
-- 2021-06-23T13:07:35.012Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(2183,'de_DE')
;
-- 2021-06-23T13:07:35.015Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='IsDescription', Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.' WHERE AD_Element_ID=2183
;
-- 2021-06-23T13:07:35.018Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsDescription', Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.', AD_Element_ID=2183 WHERE UPPER(ColumnName)='ISDESCRIPTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:07:35.021Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsDescription', Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.' WHERE AD_Element_ID=2183 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:07:35.022Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=2183) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 2183)
;
-- 2021-06-23T13:07:35.053Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Nur Beschreibung', Name='Nur Beschreibung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=2183)
;
-- 2021-06-23T13:07:35.055Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.', CommitWarning = NULL WHERE AD_Element_ID = 2183
;
-- 2021-06-23T13:07:35.056Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Nur Beschreibung', Description='Nur Beschreibung', Help='If a line is Description Only, e.g. Product Inventory is not corrected. No accounting transactions are created and the amount or totals are not included in the document. This for including descriptional detail lines, e.g. for an Work Order.' WHERE AD_Element_ID = 2183
;
-- 2021-06-23T13:07:35.057Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Nur Beschreibung', Description = 'Nur Beschreibung', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 2183
;
-- 2021-06-23T13:08:59.968Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:08:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2183 AND AD_Language='de_DE'
;
-- 2021-06-23T13:08:59.969Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(2183,'de_DE')
;
-- 2021-06-23T13:08:59.974Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(2183,'de_DE')
;
-- TRL Order Compensation Group
-- 2021-06-23T13:15:41.346Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Auftrag Kompensationsgruppe', PrintName='Auftrag Kompensationsgruppe',Updated=TO_TIMESTAMP('2021-06-23 15:15:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543469 AND AD_Language='de_CH'
;
-- 2021-06-23T13:15:41.346Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543469,'de_CH')
;
-- 2021-06-23T13:15:46.249Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:15:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543469 AND AD_Language='en_US'
;
-- 2021-06-23T13:15:46.251Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543469,'en_US')
;
-- 2021-06-23T13:15:52.751Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Auftrag Kompensationsgruppe', PrintName='Auftrag Kompensationsgruppe',Updated=TO_TIMESTAMP('2021-06-23 15:15:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543469 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:15:52.751Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543469,'nl_NL')
;
-- 2021-06-23T13:15:58.843Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Auftrag Kompensationsgruppe', PrintName='Auftrag Kompensationsgruppe',Updated=TO_TIMESTAMP('2021-06-23 15:15:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543469 AND AD_Language='de_DE'
;
-- 2021-06-23T13:15:58.844Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543469,'de_DE')
;
-- 2021-06-23T13:15:58.854Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543469,'de_DE')
;
-- 2021-06-23T13:15:58.857Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='C_Order_CompensationGroup_ID', Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=543469
;
-- 2021-06-23T13:15:58.858Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='C_Order_CompensationGroup_ID', Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL, AD_Element_ID=543469 WHERE UPPER(ColumnName)='C_ORDER_COMPENSATIONGROUP_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:15:58.859Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='C_Order_CompensationGroup_ID', Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=543469 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:15:58.859Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543469) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543469)
;
-- 2021-06-23T13:15:58.870Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Auftrag Kompensationsgruppe', Name='Auftrag Kompensationsgruppe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543469)
;
-- 2021-06-23T13:15:58.871Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543469
;
-- 2021-06-23T13:15:58.872Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Auftrag Kompensationsgruppe', Description=NULL, Help=NULL WHERE AD_Element_ID = 543469
;
-- 2021-06-23T13:15:58.873Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Auftrag Kompensationsgruppe', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543469
;
-- TRL Compensation percentage
-- 2021-06-23T13:18:44.317Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppen Preisminderung', PrintName='Gruppen Preisminderung',Updated=TO_TIMESTAMP('2021-06-23 15:18:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543460 AND AD_Language='de_CH'
;
-- 2021-06-23T13:18:44.317Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543460,'de_CH')
;
-- 2021-06-23T13:18:48.784Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:18:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543460 AND AD_Language='en_US'
;
-- 2021-06-23T13:18:48.785Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543460,'en_US')
;
-- 2021-06-23T13:18:55.726Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppen Preisminderung', PrintName='Gruppen Preisminderung',Updated=TO_TIMESTAMP('2021-06-23 15:18:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543460 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:18:55.727Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543460,'nl_NL')
;
-- 2021-06-23T13:19:01.722Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppen Preisminderung', PrintName='Gruppen Preisminderung',Updated=TO_TIMESTAMP('2021-06-23 15:19:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543460 AND AD_Language='de_DE'
;
-- 2021-06-23T13:19:01.724Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543460,'de_DE')
;
-- 2021-06-23T13:19:01.746Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543460,'de_DE')
;
-- 2021-06-23T13:19:01.749Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='GroupCompensationPercentage', Name='Gruppen Preisminderung', Description=NULL, Help=NULL WHERE AD_Element_ID=543460
;
-- 2021-06-23T13:19:01.751Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationPercentage', Name='Gruppen Preisminderung', Description=NULL, Help=NULL, AD_Element_ID=543460 WHERE UPPER(ColumnName)='GROUPCOMPENSATIONPERCENTAGE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:19:01.754Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationPercentage', Name='Gruppen Preisminderung', Description=NULL, Help=NULL WHERE AD_Element_ID=543460 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:19:01.755Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Gruppen Preisminderung', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543460) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543460)
;
-- 2021-06-23T13:19:01.782Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Gruppen Preisminderung', Name='Gruppen Preisminderung' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543460)
;
-- 2021-06-23T13:19:01.783Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Gruppen Preisminderung', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543460
;
-- 2021-06-23T13:19:01.784Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Gruppen Preisminderung', Description=NULL, Help=NULL WHERE AD_Element_ID = 543460
;
-- 2021-06-23T13:19:01.785Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Gruppen Preisminderung', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543460
;
-- TRL Compensation Type
-- 2021-06-23T13:20:26.640Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppenart', PrintName='Gruppenart',Updated=TO_TIMESTAMP('2021-06-23 15:20:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543461 AND AD_Language='de_CH'
;
-- 2021-06-23T13:20:26.640Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543461,'de_CH')
;
-- 2021-06-23T13:20:31.087Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:20:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543461 AND AD_Language='en_US'
;
-- 2021-06-23T13:20:31.087Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543461,'en_US')
;
-- 2021-06-23T13:20:36.422Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Name='Gruppenart', PrintName='Gruppenart',Updated=TO_TIMESTAMP('2021-06-23 15:20:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543461 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:20:36.423Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543461,'nl_NL')
;
-- 2021-06-23T13:20:39.013Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:20:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543461 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:20:39.015Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543461,'nl_NL')
;
-- 2021-06-23T13:20:45.303Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppenart', PrintName='Gruppenart',Updated=TO_TIMESTAMP('2021-06-23 15:20:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543461 AND AD_Language='de_DE'
;
-- 2021-06-23T13:20:45.305Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543461,'de_DE')
;
-- 2021-06-23T13:20:45.325Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543461,'de_DE')
;
-- 2021-06-23T13:20:45.327Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='GroupCompensationType', Name='Gruppenart', Description=NULL, Help=NULL WHERE AD_Element_ID=543461
;
-- 2021-06-23T13:20:45.330Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationType', Name='Gruppenart', Description=NULL, Help=NULL, AD_Element_ID=543461 WHERE UPPER(ColumnName)='GROUPCOMPENSATIONTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:20:45.333Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationType', Name='Gruppenart', Description=NULL, Help=NULL WHERE AD_Element_ID=543461 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:20:45.334Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Gruppenart', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543461) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543461)
;
-- 2021-06-23T13:20:45.360Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Gruppenart', Name='Gruppenart' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543461)
;
-- 2021-06-23T13:20:45.361Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Gruppenart', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543461
;
-- 2021-06-23T13:20:45.363Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Gruppenart', Description=NULL, Help=NULL WHERE AD_Element_ID = 543461
;
-- 2021-06-23T13:20:45.363Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Gruppenart', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543461
;
-- TRL Compensation Amount Type
-- 2021-06-23T13:23:15.088Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Preisminderung Betrag Art', PrintName='Preisminderung Betrag Art',Updated=TO_TIMESTAMP('2021-06-23 15:23:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543462 AND AD_Language='de_CH'
;
-- 2021-06-23T13:23:15.090Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543462,'de_CH')
;
-- 2021-06-23T13:23:18.820Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:23:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543462 AND AD_Language='en_US'
;
-- 2021-06-23T13:23:18.821Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543462,'en_US')
;
-- 2021-06-23T13:23:24.500Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Preisminderung Betrag Art', PrintName='Preisminderung Betrag Art',Updated=TO_TIMESTAMP('2021-06-23 15:23:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543462 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:23:24.502Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543462,'nl_NL')
;
-- 2021-06-23T13:23:30.084Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Preisminderung Betrag Art', PrintName='Preisminderung Betrag Art',Updated=TO_TIMESTAMP('2021-06-23 15:23:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543462 AND AD_Language='de_DE'
;
-- 2021-06-23T13:23:30.086Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543462,'de_DE')
;
-- 2021-06-23T13:23:30.108Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543462,'de_DE')
;
-- 2021-06-23T13:23:30.110Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='GroupCompensationAmtType', Name='Preisminderung Betrag Art', Description=NULL, Help=NULL WHERE AD_Element_ID=543462
;
-- 2021-06-23T13:23:30.112Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationAmtType', Name='Preisminderung Betrag Art', Description=NULL, Help=NULL, AD_Element_ID=543462 WHERE UPPER(ColumnName)='GROUPCOMPENSATIONAMTTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:23:30.114Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='GroupCompensationAmtType', Name='Preisminderung Betrag Art', Description=NULL, Help=NULL WHERE AD_Element_ID=543462 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:23:30.115Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Preisminderung Betrag Art', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543462) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543462)
;
-- 2021-06-23T13:23:30.143Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Preisminderung Betrag Art', Name='Preisminderung Betrag Art' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543462)
;
-- 2021-06-23T13:23:30.144Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Preisminderung Betrag Art', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543462
;
-- 2021-06-23T13:23:30.146Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Preisminderung Betrag Art', Description=NULL, Help=NULL WHERE AD_Element_ID = 543462
;
-- 2021-06-23T13:23:30.146Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Preisminderung Betrag Art', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543462
;
-- TRL Group Discount Line
-- 2021-06-23T13:31:27.256Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppenrabatt Zeile', PrintName='Gruppenrabatt Zeile',Updated=TO_TIMESTAMP('2021-06-23 15:31:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543458 AND AD_Language='de_CH'
;
-- 2021-06-23T13:31:27.257Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543458,'de_CH')
;
-- 2021-06-23T13:31:33.301Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:31:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543458 AND AD_Language='en_US'
;
-- 2021-06-23T13:31:33.303Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543458,'en_US')
;
-- 2021-06-23T13:31:38.951Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppenrabatt Zeile', PrintName='Gruppenrabatt Zeile',Updated=TO_TIMESTAMP('2021-06-23 15:31:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543458 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:31:38.953Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543458,'nl_NL')
;
-- 2021-06-23T13:31:44.552Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Gruppenrabatt Zeile', PrintName='Gruppenrabatt Zeile',Updated=TO_TIMESTAMP('2021-06-23 15:31:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543458 AND AD_Language='de_DE'
;
-- 2021-06-23T13:31:44.554Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543458,'de_DE')
;
-- 2021-06-23T13:31:44.573Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(543458,'de_DE')
;
-- 2021-06-23T13:31:44.575Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='IsGroupCompensationLine', Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL WHERE AD_Element_ID=543458
;
-- 2021-06-23T13:31:44.578Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsGroupCompensationLine', Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL, AD_Element_ID=543458 WHERE UPPER(ColumnName)='ISGROUPCOMPENSATIONLINE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:31:44.580Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsGroupCompensationLine', Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL WHERE AD_Element_ID=543458 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:31:44.581Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543458) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543458)
;
-- 2021-06-23T13:31:44.610Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Gruppenrabatt Zeile', Name='Gruppenrabatt Zeile' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543458)
;
-- 2021-06-23T13:31:44.611Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 543458
;
-- 2021-06-23T13:31:44.612Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Gruppenrabatt Zeile', Description=NULL, Help=NULL WHERE AD_Element_ID = 543458
;
-- 2021-06-23T13:31:44.612Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Gruppenrabatt Zeile', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 543458
;
-- TRL Discount Schema Break-- 2021-06-23T13:35:28.357Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Rabattschema Stufe', Help='Rabattschema Stufe', IsTranslated='Y', Name='Rabattschema Stufe', PrintName='Rabattschema Stufe',Updated=TO_TIMESTAMP('2021-06-23 15:35:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1715 AND AD_Language='de_DE'
;
-- 2021-06-23T13:35:28.358Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1715,'de_DE')
;
-- 2021-06-23T13:35:28.366Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(1715,'de_DE')
;
-- 2021-06-23T13:35:28.367Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='M_DiscountSchemaBreak_ID', Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe' WHERE AD_Element_ID=1715
;
-- 2021-06-23T13:35:28.367Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='M_DiscountSchemaBreak_ID', Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe', AD_Element_ID=1715 WHERE UPPER(ColumnName)='M_DISCOUNTSCHEMABREAK_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:35:28.368Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='M_DiscountSchemaBreak_ID', Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe' WHERE AD_Element_ID=1715 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:35:28.368Z
-- URL zum Konzept
UPDATE AD_Field SET Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=1715) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 1715)
;
-- 2021-06-23T13:35:28.380Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Rabattschema Stufe', Name='Rabattschema Stufe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=1715)
;
-- 2021-06-23T13:35:28.381Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe', CommitWarning = NULL WHERE AD_Element_ID = 1715
;
-- 2021-06-23T13:35:28.381Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='Rabattschema Stufe', Description='Rabattschema Stufe', Help='Rabattschema Stufe' WHERE AD_Element_ID = 1715
;
-- 2021-06-23T13:35:28.382Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'Rabattschema Stufe', Description = 'Rabattschema Stufe', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 1715
;
-- 2021-06-23T13:35:37.112Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Rabattschema Stufe', Help='Rabattschema Stufe', IsTranslated='Y', Name='Rabattschema Stufe', PrintName='Rabattschema Stufe',Updated=TO_TIMESTAMP('2021-06-23 15:35:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1715 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:35:37.113Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1715,'nl_NL')
;
-- 2021-06-23T13:35:50.559Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Rabattschema Stufe', Help='Rabattschema Stufe', IsTranslated='Y', Name='Rabattschema Stufe', PrintName='Rabattschema Stufe',Updated=TO_TIMESTAMP('2021-06-23 15:35:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1715 AND AD_Language='de_CH'
;
-- 2021-06-23T13:35:50.561Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1715,'de_CH')
;
-- TRL Transferred
-- 2021-06-23T13:40:37.305Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Indicates whether the transactions associated with this document are transferred to the General Ledger.', Help='Transferred to General Ledger (i.e. accounted)', IsTranslated='Y', Name='Transfer to General Ledger', PrintName='Transfer to General Ledger',Updated=TO_TIMESTAMP('2021-06-23 15:40:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='en_GB'
;
-- 2021-06-23T13:40:37.306Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'en_GB')
;
-- 2021-06-23T13:40:57.065Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Indicates whether the transactions associated with this document are transferred to the General Ledger.', Help='Transferred to General Ledger (i.e. accounted)',Updated=TO_TIMESTAMP('2021-06-23 15:40:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='en_US'
;
-- 2021-06-23T13:40:57.065Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'en_US')
;
-- 2021-06-23T13:41:20.490Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Name='Transfer to General Ledger', PrintName='Transfer to General Ledger',Updated=TO_TIMESTAMP('2021-06-23 15:41:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='en_US'
;
-- 2021-06-23T13:41:20.491Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'en_US')
;
-- 2021-06-23T13:43:34.391Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='', Name='In Hauptbuch übertragen', PrintName='In Hauptbuch übertragen',Updated=TO_TIMESTAMP('2021-06-23 15:43:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='de_DE'
;
-- 2021-06-23T13:43:34.392Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'de_DE')
;
-- 2021-06-23T13:43:34.399Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(419,'de_DE')
;
-- 2021-06-23T13:43:34.400Z
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='IsTransferred', Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='' WHERE AD_Element_ID=419
;
-- 2021-06-23T13:43:34.400Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsTransferred', Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='', AD_Element_ID=419 WHERE UPPER(ColumnName)='ISTRANSFERRED' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-23T13:43:34.401Z
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='IsTransferred', Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='' WHERE AD_Element_ID=419 AND IsCentrallyMaintained='Y'
;
-- 2021-06-23T13:43:34.401Z
-- URL zum Konzept
UPDATE AD_Field SET Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=419) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 419)
;
-- 2021-06-23T13:43:34.413Z
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='In Hauptbuch übertragen', Name='In Hauptbuch übertragen' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=419)
;
-- 2021-06-23T13:43:34.413Z
-- URL zum Konzept
UPDATE AD_Tab SET Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='', CommitWarning = NULL WHERE AD_Element_ID = 419
;
-- 2021-06-23T13:43:34.414Z
-- URL zum Konzept
UPDATE AD_WINDOW SET Name='In Hauptbuch übertragen', Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='' WHERE AD_Element_ID = 419
;
-- 2021-06-23T13:43:34.415Z
-- URL zum Konzept
UPDATE AD_Menu SET Name = 'In Hauptbuch übertragen', Description = 'Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 419
;
-- 2021-06-23T13:43:36.367Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:43:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='de_DE'
;
-- 2021-06-23T13:43:36.368Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'de_DE')
;
-- 2021-06-23T13:43:36.371Z
-- URL zum Konzept
/* DDL */ select update_ad_element_on_ad_element_trl_update(419,'de_DE')
;
-- 2021-06-23T13:43:47.865Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='', IsTranslated='Y',Updated=TO_TIMESTAMP('2021-06-23 15:43:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:43:47.865Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'nl_NL')
;
-- 2021-06-23T13:43:57.820Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Description='Gibt an, ob die mit diesem Dokument verbundenen Transaktionen in die Hauptbuchhaltung übertragen werden.', Help='',Updated=TO_TIMESTAMP('2021-06-23 15:43:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='de_CH'
;
-- 2021-06-23T13:43:57.820Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'de_CH')
;
-- 2021-06-23T13:44:13.855Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET Name='In Hauptbuch übertragen', PrintName='In Hauptbuch übertragen',Updated=TO_TIMESTAMP('2021-06-23 15:44:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='nl_NL'
;
-- 2021-06-23T13:44:13.855Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'nl_NL')
;
-- 2021-06-23T13:44:20.617Z
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='In Hauptbuch übertragen', PrintName='In Hauptbuch übertragen',Updated=TO_TIMESTAMP('2021-06-23 15:44:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=419 AND AD_Language='de_CH'
;
-- 2021-06-23T13:44:20.617Z
-- URL zum Konzept
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(419,'de_CH')
; | the_stack |
-- 2021-01-22T18:45:30.595Z
-- 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,53053,542512,TO_TIMESTAMP('2021-01-22 20:45:30','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2021-01-22 20:45:30','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2021-01-22T18:45:30.602Z
-- 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 t.AD_UI_Section_ID=542512 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)
;
-- 2021-01-22T18:45:35.208Z
-- 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,543191,542512,TO_TIMESTAMP('2021-01-22 20:45:35','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2021-01-22 20:45:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:45:36.278Z
-- 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,543192,542512,TO_TIMESTAMP('2021-01-22 20:45:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2021-01-22 20:45:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:46:19.216Z
-- 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,543191,544763,TO_TIMESTAMP('2021-01-22 20:46:19','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2021-01-22 20:46:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:46:47.554Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54094,0,53053,576322,544763,'F',TO_TIMESTAMP('2021-01-22 20:46:47','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','N','N','Produkt',10,0,0,TO_TIMESTAMP('2021-01-22 20:46:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:47:03.143Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54095,0,53053,576323,544763,'F',TO_TIMESTAMP('2021-01-22 20:47:02','YYYY-MM-DD HH24:MI:SS'),100,'Merkmals Ausprägungen zum Produkt','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','Y','N','N','Merkmale',20,0,0,TO_TIMESTAMP('2021-01-22 20:47:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:51:11.377Z
-- 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,543191,544764,TO_TIMESTAMP('2021-01-22 20:51:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','material',20,TO_TIMESTAMP('2021-01-22 20:51:11','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:51:27.629Z
-- 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,54087,0,53053,576324,544764,'F',TO_TIMESTAMP('2021-01-22 20:51:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Manufacturing Order BOM Line',10,0,0,TO_TIMESTAMP('2021-01-22 20:51:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:52:00.279Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54092,0,53053,576325,544764,'F',TO_TIMESTAMP('2021-01-22 20:52:00','YYYY-MM-DD HH24:MI:SS'),100,'Lager oder Ort für Dienstleistung','Das Lager identifiziert ein einzelnes Lager für Artikel oder einen Standort an dem Dienstleistungen geboten werden.','Y','N','Y','N','N','Lager',20,0,0,TO_TIMESTAMP('2021-01-22 20:52:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:52:16.730Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54093,0,53053,576326,544764,'F',TO_TIMESTAMP('2021-01-22 20:52:16','YYYY-MM-DD HH24:MI:SS'),100,'Lagerort im Lager','"Lagerort" bezeichnet, wo im Lager ein Produkt aufzufinden ist.','Y','N','Y','N','N','Lagerort',30,0,0,TO_TIMESTAMP('2021-01-22 20:52:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:52:58.446Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54098,0,53053,576327,544764,'F',TO_TIMESTAMP('2021-01-22 20:52:58','YYYY-MM-DD HH24:MI:SS'),100,'Menge eines bewegten Produktes.','Die "Bewegungs-Menge" bezeichnet die Menge einer Ware, die bewegt wurde.','Y','N','Y','N','N','Bewegungs-Menge',40,0,0,TO_TIMESTAMP('2021-01-22 20:52:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:53:13.013Z
-- 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,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54099,0,53053,576328,544764,'F',TO_TIMESTAMP('2021-01-22 20:53:12','YYYY-MM-DD HH24:MI:SS'),100,'Durch QA verworfene Menge','Y','N','Y','N','N','Verworfene Menge',50,0,0,TO_TIMESTAMP('2021-01-22 20:53:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:53:26.829Z
-- 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,56562,0,53053,576329,544764,'F',TO_TIMESTAMP('2021-01-22 20:53:26','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Qty Reject',60,0,0,TO_TIMESTAMP('2021-01-22 20:53:26','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:54:07.625Z
-- 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,543192,544765,TO_TIMESTAMP('2021-01-22 20:54:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','document info',10,TO_TIMESTAMP('2021-01-22 20:54:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:54:35.768Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54106,0,53053,576330,544765,'F',TO_TIMESTAMP('2021-01-22 20:54:35','YYYY-MM-DD HH24:MI:SS'),100,'Belegart oder Verarbeitungsvorgaben','Die Belegart bestimmt den Nummernkreis und die Vorgaben für die Belegverarbeitung.','Y','N','Y','N','N','Belegart',10,0,0,TO_TIMESTAMP('2021-01-22 20:54:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:55:04.047Z
-- 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,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54082,0,53053,576331,544765,'F',TO_TIMESTAMP('2021-01-22 20:55:03','YYYY-MM-DD HH24:MI:SS'),100,'Transaction Type for Manufacturing Management','Y','N','Y','N','N','Cost Collector Type',20,0,0,TO_TIMESTAMP('2021-01-22 20:55:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:55:21.455Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,56556,0,53053,576332,544765,'F',TO_TIMESTAMP('2021-01-22 20:55:21','YYYY-MM-DD HH24:MI:SS'),100,'Document sequence number of the document','The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".
If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','Y','N','Y','N','N','Nr.',30,0,0,TO_TIMESTAMP('2021-01-22 20:55:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:55:47.562Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54096,0,53053,576333,544765,'F',TO_TIMESTAMP('2021-01-22 20:55:47','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem eine Produkt in oder aus dem Bestand bewegt wurde','"Bewegungs-Datum" bezeichnet das Datum, zu dem das Produkt in oder aus dem Bestand bewegt wurde Dies ist das Ergebnis einer Auslieferung, eines Wareneingangs oder einer Warenbewqegung.','Y','N','Y','N','N','Bewegungsdatum',40,0,0,TO_TIMESTAMP('2021-01-22 20:55:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:56:02.383Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54097,0,53053,576334,544765,'F',TO_TIMESTAMP('2021-01-22 20:56:02','YYYY-MM-DD HH24:MI:SS'),100,'Accounting Date','The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Y','N','Y','N','N','Buchungsdatum',50,0,0,TO_TIMESTAMP('2021-01-22 20:56:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:56:33.699Z
-- 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,543192,544766,TO_TIMESTAMP('2021-01-22 20:56:33','YYYY-MM-DD HH24:MI:SS'),100,'Y','accounting',20,TO_TIMESTAMP('2021-01-22 20:56:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:57:12.711Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54110,0,53053,576335,544766,'F',TO_TIMESTAMP('2021-01-22 20:57:12','YYYY-MM-DD HH24:MI:SS'),100,'Buchungsstatus','Zeigt den Verbuchungsstatus der Hauptbuchpositionen an.','Y','N','Y','N','N','Buchungsstatus',10,0,0,TO_TIMESTAMP('2021-01-22 20:57:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:57:33.763Z
-- 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,543192,544767,TO_TIMESTAMP('2021-01-22 20:57:33','YYYY-MM-DD HH24:MI:SS'),100,'Y','client and org',990,TO_TIMESTAMP('2021-01-22 20:57:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:57:54.028Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54085,0,53053,576336,544767,'F',TO_TIMESTAMP('2021-01-22 20:57:53','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','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','N','Sektion',10,0,0,TO_TIMESTAMP('2021-01-22 20:57:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:58:05.861Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54084,0,53053,576337,544767,'F',TO_TIMESTAMP('2021-01-22 20:58:05','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2021-01-22 20:58:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:58:41.853Z
-- 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,543192,544768,TO_TIMESTAMP('2021-01-22 20:58:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','resource utilization',30,TO_TIMESTAMP('2021-01-22 20:58:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:59:16.277Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,56560,0,53053,576338,544768,'F',TO_TIMESTAMP('2021-01-22 20:59:16','YYYY-MM-DD HH24:MI:SS'),100,'Workflow Node (activity), step or process','The Workflow Node indicates a unique step or process in a Workflow.','Y','N','Y','N','N','Manufacturing Order Activity',10,0,0,TO_TIMESTAMP('2021-01-22 20:59:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T18:59:47.812Z
-- 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,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54091,0,53053,576339,544768,'F',TO_TIMESTAMP('2021-01-22 20:59:47','YYYY-MM-DD HH24:MI:SS'),100,'Ressource','Y','N','Y','N','N','Ressource',20,0,0,TO_TIMESTAMP('2021-01-22 20:59:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:00:00.950Z
-- 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,56564,0,53053,576340,544768,'F',TO_TIMESTAMP('2021-01-22 21:00:00','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Setup Time Real',30,0,0,TO_TIMESTAMP('2021-01-22 21:00:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:00:14.007Z
-- 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,56557,0,53053,576341,544768,'F',TO_TIMESTAMP('2021-01-22 21:00:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Duration Real',40,0,0,TO_TIMESTAMP('2021-01-22 21:00:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:01:37.329Z
-- 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,543192,544769,TO_TIMESTAMP('2021-01-22 21:01:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','picking',40,TO_TIMESTAMP('2021-01-22 21:01:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:01:55.596Z
-- 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,591366,0,53053,576342,544769,'F',TO_TIMESTAMP('2021-01-22 21:01:55','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Picking candidate',10,0,0,TO_TIMESTAMP('2021-01-22 21:01:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:02:12.633Z
-- 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,53053,542513,TO_TIMESTAMP('2021-01-22 21:02:12','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2021-01-22 21:02:12','YYYY-MM-DD HH24:MI:SS'),100,'advanced')
;
-- 2021-01-22T19:02:12.634Z
-- 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 t.AD_UI_Section_ID=542513 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)
;
-- 2021-01-22T19:02:21.650Z
-- 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,543193,542513,TO_TIMESTAMP('2021-01-22 21:02:21','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2021-01-22 21:02:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:02:33.851Z
-- 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,543193,544770,TO_TIMESTAMP('2021-01-22 21:02:33','YYYY-MM-DD HH24:MI:SS'),100,'Y','dimension',10,TO_TIMESTAMP('2021-01-22 21:02:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:02:54.943Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54100,0,53053,576343,544770,'F',TO_TIMESTAMP('2021-01-22 21:02:54','YYYY-MM-DD HH24:MI:SS'),100,'Finanzprojekt','Ein Projekt erlaubt, interne oder externe Vorgäng zu verfolgen und zu kontrollieren.','Y','N','Y','N','N','Projekt',10,0,0,TO_TIMESTAMP('2021-01-22 21:02:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:03:06.602Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54102,0,53053,576344,544770,'F',TO_TIMESTAMP('2021-01-22 21:03:06','YYYY-MM-DD HH24:MI:SS'),100,'Kostenstelle','Erfassung der zugehörigen Kostenstelle','Y','N','Y','N','N','Kostenstelle',20,0,0,TO_TIMESTAMP('2021-01-22 21:03:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:03:23.322Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54103,0,53053,576345,544770,'F',TO_TIMESTAMP('2021-01-22 21:03:23','YYYY-MM-DD HH24:MI:SS'),100,'Marketing Campaign','The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','Y','N','N','Werbemassnahme',30,0,0,TO_TIMESTAMP('2021-01-22 21:03:23','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:03:40.780Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54101,0,53053,576346,544770,'F',TO_TIMESTAMP('2021-01-22 21:03:40','YYYY-MM-DD HH24:MI:SS'),100,'Durchführende oder auslösende Organisation','Die Organisation, die diese Transaktion durchführt oder auslöst (für eine andere Organisation). Die besitzende Organisation muss nicht die durchführende Organisation sein. Dies kann bei zentralisierten Dienstleistungen oder Vorfällen zwischen Organisationen der Fall sein.','Y','N','Y','N','N','Buchende Organisation',40,0,0,TO_TIMESTAMP('2021-01-22 21:03:40','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:03:51.027Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54104,0,53053,576347,544770,'F',TO_TIMESTAMP('2021-01-22 21:03:50','YYYY-MM-DD HH24:MI:SS'),100,'Nutzerdefiniertes Element Nr. 1','Das Nutzerdefinierte Element zeigt die optionalen Elementwerte an, die für diese Kontenkombination definiert sind.','Y','N','Y','N','N','Nutzer 1',50,0,0,TO_TIMESTAMP('2021-01-22 21:03:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:04:00.291Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,54105,0,53053,576348,544770,'F',TO_TIMESTAMP('2021-01-22 21:04:00','YYYY-MM-DD HH24:MI:SS'),100,'Nutzerdefiniertes Element Nr. 2','Das Nutzerdefinierte Element zeigt die optionalen Elementwerte an, die für diese Kontenkombination definiert sind.','Y','N','Y','N','N','Nutzer 2',60,0,0,TO_TIMESTAMP('2021-01-22 21:04:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:04:36.603Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-01-22 21:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576344
;
-- 2021-01-22T19:04:37.203Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-01-22 21:04:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576345
;
-- 2021-01-22T19:04:37.831Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-01-22 21:04:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576346
;
-- 2021-01-22T19:04:38.373Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-01-22 21:04:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576347
;
-- 2021-01-22T19:04:40.113Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-01-22 21:04:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576348
;
-- 2021-01-22T19:05:08.977Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@C_Project_ID/0@ > 0',Updated=TO_TIMESTAMP('2021-01-22 21:05:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54100
;
-- 2021-01-22T19:06:04.283Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@Reversal_ID/0@ > 0',Updated=TO_TIMESTAMP('2021-01-22 21:06:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56563
;
-- 2021-01-22T19:07:35.408Z
-- 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,54086,0,53053,576349,544763,'F',TO_TIMESTAMP('2021-01-22 21:07:35','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Produktionsauftrag',30,0,0,TO_TIMESTAMP('2021-01-22 21:07:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:07:47.937Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2021-01-22 21:07:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576323
;
-- 2021-01-22T19:07:51.870Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2021-01-22 21:07:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576322
;
-- 2021-01-22T19:07:55.666Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2021-01-22 21:07:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576349
;
-- 2021-01-22T19:08:24.378Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,56565,0,53053,576350,544764,'F',TO_TIMESTAMP('2021-01-22 21:08:24','YYYY-MM-DD HH24:MI:SS'),100,'Maßeinheit','Eine eindeutige (nicht monetäre) Maßeinheit','Y','N','Y','N','N','Maßeinheit',70,0,0,TO_TIMESTAMP('2021-01-22 21:08:24','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:09:13.830Z
-- 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,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,56563,0,53053,576351,544765,'F',TO_TIMESTAMP('2021-01-22 21:09:13','YYYY-MM-DD HH24:MI:SS'),100,'ID of document reversal','Y','N','Y','N','N','Storno-Gegenbeleg',60,0,0,TO_TIMESTAMP('2021-01-22 21:09:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:09:23.513Z
-- 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,Help,IsActive,IsAdvancedField,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,56566,0,53053,576352,544765,'F',TO_TIMESTAMP('2021-01-22 21:09:23','YYYY-MM-DD HH24:MI:SS'),100,'User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact','Y','N','Y','N','N','Lieferkontakt',70,0,0,TO_TIMESTAMP('2021-01-22 21:09:23','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:09:39.354Z
-- 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,555147,0,53053,576353,544765,'F',TO_TIMESTAMP('2021-01-22 21:09:39','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Manufacturing Cost Collector Parent',80,0,0,TO_TIMESTAMP('2021-01-22 21:09:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-01-22T19:11:02.168Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=60,Updated=TO_TIMESTAMP('2021-01-22 21:11:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576352
;
-- 2021-01-22T19:11:07.138Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2021-01-22 21:11:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576351
;
-- 2021-01-22T19:11:38.307Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@PP_Cost_Collector_Parent_ID/0@>0',Updated=TO_TIMESTAMP('2021-01-22 21:11:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555147
;
-- 2021-01-22T19:11:51.727Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET IsInsertRecord='N', IsReadOnly='Y',Updated=TO_TIMESTAMP('2021-01-22 21:11:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53053
;
-- 2021-01-22T19:14:15.308Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576349
;
-- 2021-01-22T19:14:15.310Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576331
;
-- 2021-01-22T19:14:15.311Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576333
;
-- 2021-01-22T19:14:15.313Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576322
;
-- 2021-01-22T19:14:15.314Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576350
;
-- 2021-01-22T19:14:15.315Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576327
;
-- 2021-01-22T19:14:15.316Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2021-01-22 21:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=576341
;
-- 2021-01-22T19:15:29.670Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FilterOperator='E', IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2021-01-22 21:15:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53827
;
-- 2021-01-22T19:15:46.378Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FilterOperator='E', IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2021-01-22 21:15:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53803
;
-- 2021-01-22T19:16:01.632Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FilterOperator='B', IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2021-01-22 21:16:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53825
;
-- 2021-01-22T19:16:55.826Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=20,Updated=TO_TIMESTAMP('2021-01-22 21:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53827
;
-- 2021-01-22T19:16:55.828Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=30,Updated=TO_TIMESTAMP('2021-01-22 21:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53803
;
-- 2021-01-22T19:16:55.830Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=40,Updated=TO_TIMESTAMP('2021-01-22 21:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53825
;
-- 2021-01-22T19:16:55.832Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=50,Updated=TO_TIMESTAMP('2021-01-22 21:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56573
;
-- 2021-01-22T19:16:55.836Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='Y', SelectionColumnSeqNo=60,Updated=TO_TIMESTAMP('2021-01-22 21:16:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53805
;
-- 2021-01-22T19:19:18.236Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554944
;
-- 2021-01-22T19:19:18.240Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554948
;
-- 2021-01-22T19:19:18.241Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554946
;
-- 2021-01-22T19:19:18.242Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554947
;
-- 2021-01-22T19:19:18.243Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555863
;
-- 2021-01-22T19:19:18.244Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2021-01-22 21:19:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554945
;
-- 2021-01-22T19:19:42.686Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554944
;
-- 2021-01-22T19:19:42.687Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554948
;
-- 2021-01-22T19:19:42.688Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554946
;
-- 2021-01-22T19:19:42.689Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554947
;
-- 2021-01-22T19:19:42.689Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555863
;
-- 2021-01-22T19:19:42.690Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2021-01-22 21:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=554945
; | the_stack |
CREATE SCHEMA IF NOT EXISTS SCHEMA_TAG;
GRANT USAGE ON SCHEMA SCHEMA_TAG TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_TRACING;
GRANT USAGE ON SCHEMA SCHEMA_TRACING TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_TRACING_PUBLIC;
GRANT USAGE ON SCHEMA SCHEMA_TRACING_PUBLIC TO prom_reader;
CALL SCHEMA_CATALOG.execute_everywhere('create_schemas', $ee$ DO $$ BEGIN
CREATE SCHEMA IF NOT EXISTS SCHEMA_CATALOG; -- catalog tables + internal functions
GRANT USAGE ON SCHEMA SCHEMA_CATALOG TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_PROM; -- public functions
GRANT USAGE ON SCHEMA SCHEMA_PROM TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_EXT; -- optimized versions of functions created by the extension
GRANT USAGE ON SCHEMA SCHEMA_EXT TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_SERIES; -- series views
GRANT USAGE ON SCHEMA SCHEMA_SERIES TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_METRIC; -- metric views
GRANT USAGE ON SCHEMA SCHEMA_METRIC TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_DATA;
GRANT USAGE ON SCHEMA SCHEMA_DATA TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_DATA_SERIES;
GRANT USAGE ON SCHEMA SCHEMA_DATA_SERIES TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_INFO;
GRANT USAGE ON SCHEMA SCHEMA_INFO TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_DATA_EXEMPLAR;
GRANT USAGE ON SCHEMA SCHEMA_DATA_EXEMPLAR TO prom_reader;
GRANT ALL ON SCHEMA SCHEMA_DATA_EXEMPLAR TO prom_writer;
CREATE SCHEMA IF NOT EXISTS SCHEMA_TAG;
GRANT USAGE ON SCHEMA SCHEMA_TAG TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_TRACING;
GRANT USAGE ON SCHEMA SCHEMA_TRACING TO prom_reader;
CREATE SCHEMA IF NOT EXISTS SCHEMA_TRACING_PUBLIC;
GRANT USAGE ON SCHEMA SCHEMA_TRACING_PUBLIC TO prom_reader;
END $$ $ee$);
CALL SCHEMA_CATALOG.execute_everywhere('tracing_types', $ee$ DO $$ BEGIN
CREATE DOMAIN SCHEMA_TRACING_PUBLIC.trace_id uuid NOT NULL CHECK (value != '00000000-0000-0000-0000-000000000000');
GRANT USAGE ON DOMAIN SCHEMA_TRACING_PUBLIC.trace_id TO prom_reader;
CREATE DOMAIN SCHEMA_TRACING_PUBLIC.tag_k text NOT NULL CHECK (value != '');
GRANT USAGE ON DOMAIN SCHEMA_TRACING_PUBLIC.tag_k TO prom_reader;
CREATE DOMAIN SCHEMA_TRACING_PUBLIC.tag_v jsonb NOT NULL;
GRANT USAGE ON DOMAIN SCHEMA_TRACING_PUBLIC.tag_v TO prom_reader;
CREATE DOMAIN SCHEMA_TRACING_PUBLIC.tag_map jsonb NOT NULL DEFAULT '{}'::jsonb CHECK (jsonb_typeof(value) = 'object');
GRANT USAGE ON DOMAIN SCHEMA_TRACING_PUBLIC.tag_map TO prom_reader;
CREATE DOMAIN SCHEMA_TRACING_PUBLIC.tag_type smallint NOT NULL; --bitmap, may contain several types
GRANT USAGE ON DOMAIN SCHEMA_TRACING_PUBLIC.tag_type TO prom_reader;
CREATE TYPE SCHEMA_TRACING_PUBLIC.span_kind AS ENUM
(
'SPAN_KIND_UNSPECIFIED',
'SPAN_KIND_INTERNAL',
'SPAN_KIND_SERVER',
'SPAN_KIND_CLIENT',
'SPAN_KIND_PRODUCER',
'SPAN_KIND_CONSUMER'
);
GRANT USAGE ON TYPE SCHEMA_TRACING_PUBLIC.span_kind TO prom_reader;
CREATE TYPE SCHEMA_TRACING_PUBLIC.status_code AS ENUM
(
'STATUS_CODE_UNSET',
'STATUS_CODE_OK',
'STATUS_CODE_ERROR'
);
GRANT USAGE ON TYPE SCHEMA_TRACING_PUBLIC.status_code TO prom_reader;
END $$ $ee$);
INSERT INTO public.prom_installation_info(key, value) VALUES
('tagging schema', 'SCHEMA_TAG'),
('tracing schema', 'SCHEMA_TRACING_PUBLIC'),
('tracing schema private', 'SCHEMA_TRACING')
ON CONFLICT (key) DO NOTHING;
CREATE TABLE SCHEMA_TRACING.tag_key
(
id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
tag_type SCHEMA_TRACING_PUBLIC.tag_type NOT NULL,
key SCHEMA_TRACING_PUBLIC.tag_k NOT NULL
);
CREATE UNIQUE INDEX ON SCHEMA_TRACING.tag_key (key) INCLUDE (id, tag_type);
GRANT SELECT ON TABLE SCHEMA_TRACING.tag_key TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.tag_key TO prom_writer;
GRANT USAGE ON SEQUENCE SCHEMA_TRACING.tag_key_id_seq TO prom_writer;
CREATE TABLE SCHEMA_TRACING.tag
(
id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY,
tag_type SCHEMA_TRACING_PUBLIC.tag_type NOT NULL,
key_id bigint NOT NULL,
key SCHEMA_TRACING_PUBLIC.tag_k NOT NULL REFERENCES SCHEMA_TRACING.tag_key (key) ON DELETE CASCADE,
value SCHEMA_TRACING_PUBLIC.tag_v NOT NULL,
UNIQUE (key, value) INCLUDE (id, key_id)
)
PARTITION BY HASH (key);
GRANT SELECT ON TABLE SCHEMA_TRACING.tag TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.tag TO prom_writer;
GRANT USAGE ON SEQUENCE SCHEMA_TRACING.tag_id_seq TO prom_writer;
-- create the partitions of the tag table
DO $block$
DECLARE
_i bigint;
_max bigint = 64;
BEGIN
FOR _i IN 1.._max
LOOP
EXECUTE format($sql$
CREATE TABLE SCHEMA_TRACING.tag_%s PARTITION OF SCHEMA_TRACING.tag FOR VALUES WITH (MODULUS %s, REMAINDER %s)
$sql$, _i, _max, _i - 1);
EXECUTE format($sql$
ALTER TABLE SCHEMA_TRACING.tag_%s ADD PRIMARY KEY (id)
$sql$, _i);
EXECUTE format($sql$
GRANT SELECT ON TABLE SCHEMA_TRACING.tag_%s TO prom_reader
$sql$, _i);
EXECUTE format($sql$
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.tag_%s TO prom_writer
$sql$, _i);
END LOOP;
END
$block$
;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.operation
(
id bigint NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
service_name_id bigint not null, -- references id column of tag table for the service.name tag value
span_kind SCHEMA_TRACING_PUBLIC.span_kind not null,
span_name text NOT NULL CHECK (span_name != ''),
UNIQUE (service_name_id, span_name, span_kind)
);
GRANT SELECT ON TABLE SCHEMA_TRACING.operation TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.operation TO prom_writer;
GRANT USAGE ON SEQUENCE SCHEMA_TRACING.operation_id_seq TO prom_writer;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.schema_url
(
id bigint NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
url text NOT NULL CHECK (url != '') UNIQUE
);
GRANT SELECT ON TABLE SCHEMA_TRACING.schema_url TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.schema_url TO prom_writer;
GRANT USAGE ON SEQUENCE SCHEMA_TRACING.schema_url_id_seq TO prom_writer;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.instrumentation_lib
(
id bigint NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name text NOT NULL,
version text NOT NULL,
schema_url_id BIGINT REFERENCES SCHEMA_TRACING.schema_url(id),
UNIQUE(name, version, schema_url_id)
);
GRANT SELECT ON TABLE SCHEMA_TRACING.instrumentation_lib TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.instrumentation_lib TO prom_writer;
GRANT USAGE ON SEQUENCE SCHEMA_TRACING.instrumentation_lib_id_seq TO prom_writer;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.span
(
trace_id SCHEMA_TRACING_PUBLIC.trace_id NOT NULL,
span_id bigint NOT NULL CHECK (span_id != 0),
parent_span_id bigint NULL CHECK (parent_span_id != 0),
operation_id bigint NOT NULL,
start_time timestamptz NOT NULL,
end_time timestamptz NOT NULL,
duration_ms double precision NOT NULL GENERATED ALWAYS AS ( extract(epoch from (end_time - start_time)) * 1000.0 ) STORED,
trace_state text CHECK (trace_state != ''),
span_tags SCHEMA_TRACING_PUBLIC.tag_map NOT NULL,
dropped_tags_count int NOT NULL default 0,
event_time tstzrange default NULL,
dropped_events_count int NOT NULL default 0,
dropped_link_count int NOT NULL default 0,
status_code SCHEMA_TRACING_PUBLIC.status_code NOT NULL,
status_message text,
instrumentation_lib_id bigint,
resource_tags SCHEMA_TRACING_PUBLIC.tag_map NOT NULL,
resource_dropped_tags_count int NOT NULL default 0,
resource_schema_url_id BIGINT,
PRIMARY KEY (span_id, trace_id, start_time),
CHECK (start_time <= end_time)
);
CREATE INDEX ON SCHEMA_TRACING.span USING BTREE (trace_id, parent_span_id) INCLUDE (span_id); -- used for recursive CTEs for trace tree queries
CREATE INDEX ON SCHEMA_TRACING.span USING GIN (span_tags jsonb_path_ops); -- supports tag filters. faster ingest than json_ops
CREATE INDEX ON SCHEMA_TRACING.span USING BTREE (operation_id); -- supports filters/joins to operation table
--CREATE INDEX ON SCHEMA_TRACING.span USING GIN (jsonb_object_keys(span_tags) array_ops); -- possible way to index key exists
CREATE INDEX ON SCHEMA_TRACING.span USING GIN (resource_tags jsonb_path_ops); -- supports tag filters. faster ingest than json_ops
GRANT SELECT ON TABLE SCHEMA_TRACING.span TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.span TO prom_writer;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.event
(
time timestamptz NOT NULL,
trace_id SCHEMA_TRACING_PUBLIC.trace_id NOT NULL,
span_id bigint NOT NULL CHECK (span_id != 0),
event_nbr int NOT NULL DEFAULT 0,
name text NOT NULL CHECK (name != ''),
tags SCHEMA_TRACING_PUBLIC.tag_map NOT NULL,
dropped_tags_count int NOT NULL DEFAULT 0
);
CREATE INDEX ON SCHEMA_TRACING.event USING GIN (tags jsonb_path_ops);
CREATE INDEX ON SCHEMA_TRACING.event USING BTREE (trace_id, span_id);
GRANT SELECT ON TABLE SCHEMA_TRACING.event TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.event TO prom_writer;
CREATE TABLE IF NOT EXISTS SCHEMA_TRACING.link
(
trace_id SCHEMA_TRACING_PUBLIC.trace_id NOT NULL,
span_id bigint NOT NULL CHECK (span_id != 0),
span_start_time timestamptz NOT NULL,
linked_trace_id SCHEMA_TRACING_PUBLIC.trace_id NOT NULL,
linked_span_id bigint NOT NULL CHECK (linked_span_id != 0),
link_nbr int NOT NULL DEFAULT 0,
trace_state text CHECK (trace_state != ''),
tags SCHEMA_TRACING_PUBLIC.tag_map NOT NULL,
dropped_tags_count int NOT NULL DEFAULT 0
);
CREATE INDEX ON SCHEMA_TRACING.link USING BTREE (trace_id, span_id);
CREATE INDEX ON SCHEMA_TRACING.link USING GIN (tags jsonb_path_ops);
GRANT SELECT ON TABLE SCHEMA_TRACING.link TO prom_reader;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE SCHEMA_TRACING.link TO prom_writer;
/*
If "vanilla" postgres is installed, do nothing.
If timescaledb is installed, turn on compression for tracing tables.
If timescaledb is installed and multinode is set up,
turn span, event, and link into distributed hypertables.
If timescaledb is installed but multinode is NOT set up,
turn span, event, and link into regular hypertables.
*/
DO $block$
DECLARE
_is_timescaledb_installed boolean = false;
_is_timescaledb_oss boolean = true;
_timescaledb_version_text text;
_timescaledb_major_version int;
_timescaledb_minor_version int;
_is_compression_available boolean = false;
_is_multinode boolean = false;
_saved_search_path text;
BEGIN
/*
These functions do not exist until the
idempotent scripts are executed, so we have
to deal with it "manually"
SCHEMA_CATALOG.get_timescale_major_version()
SCHEMA_CATALOG.is_timescaledb_oss()
SCHEMA_CATALOG.is_timescaledb_installed()
SCHEMA_CATALOG.is_multinode()
SCHEMA_CATALOG.get_default_chunk_interval()
SCHEMA_CATALOG.get_staggered_chunk_interval(...)
*/
SELECT count(*) > 0
INTO STRICT _is_timescaledb_installed
FROM pg_extension
WHERE extname='timescaledb';
IF _is_timescaledb_installed THEN
SELECT extversion INTO STRICT _timescaledb_version_text
FROM pg_catalog.pg_extension
WHERE extname='timescaledb'
LIMIT 1;
_timescaledb_major_version = split_part(_timescaledb_version_text, '.', 1)::INT;
_timescaledb_minor_version = split_part(_timescaledb_version_text, '.', 2)::INT;
_is_compression_available = CASE
WHEN _timescaledb_major_version >= 2 THEN true
WHEN _timescaledb_major_version = 1 and _timescaledb_minor_version >= 5 THEN true
ELSE false
END;
IF _timescaledb_major_version >= 2 THEN
_is_timescaledb_oss = (current_setting('timescaledb.license') = 'apache');
ELSE
_is_timescaledb_oss = (SELECT edition = 'apache' FROM timescaledb_information.license);
END IF;
IF _timescaledb_major_version >= 2 THEN
SELECT count(*) > 0
INTO STRICT _is_multinode
FROM timescaledb_information.data_nodes;
END IF;
END IF;
IF _is_timescaledb_installed THEN
IF _is_multinode THEN
--need to clear the search path while creating distributed
--hypertables because otherwise the datanodes don't find
--the right column types since type names are not schema
--qualified if in search path.
_saved_search_path := current_setting('search_path');
SET search_path = pg_temp;
PERFORM SCHEMA_TIMESCALE.create_distributed_hypertable(
'SCHEMA_TRACING.span'::regclass,
'start_time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:57:57.345608'::interval,
create_default_indexes=>false
);
PERFORM SCHEMA_TIMESCALE.create_distributed_hypertable(
'SCHEMA_TRACING.event'::regclass,
'time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:59:53.649542'::interval,
create_default_indexes=>false
);
PERFORM SCHEMA_TIMESCALE.create_distributed_hypertable(
'SCHEMA_TRACING.link'::regclass,
'span_start_time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:59:48.644258'::interval,
create_default_indexes=>false
);
execute format('SET search_path = %s', _saved_search_path);
ELSE -- not multinode
PERFORM SCHEMA_TIMESCALE.create_hypertable(
'SCHEMA_TRACING.span'::regclass,
'start_time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:57:57.345608'::interval,
create_default_indexes=>false
);
PERFORM SCHEMA_TIMESCALE.create_hypertable(
'SCHEMA_TRACING.event'::regclass,
'time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:59:53.649542'::interval,
create_default_indexes=>false
);
PERFORM SCHEMA_TIMESCALE.create_hypertable(
'SCHEMA_TRACING.link'::regclass,
'span_start_time'::name,
partitioning_column=>'trace_id'::name,
number_partitions=>1::int,
chunk_time_interval=>'07:59:48.644258'::interval,
create_default_indexes=>false
);
END IF;
IF (NOT _is_timescaledb_oss) AND _is_compression_available THEN
-- turn on compression
ALTER TABLE SCHEMA_TRACING.span SET (timescaledb.compress, timescaledb.compress_segmentby='trace_id,span_id');
ALTER TABLE SCHEMA_TRACING.event SET (timescaledb.compress, timescaledb.compress_segmentby='trace_id,span_id');
ALTER TABLE SCHEMA_TRACING.link SET (timescaledb.compress, timescaledb.compress_segmentby='trace_id,span_id');
IF _timescaledb_major_version < 2 THEN
BEGIN
PERFORM SCHEMA_TIMESCALE.add_compression_policy('SCHEMA_TRACING.span', INTERVAL '1 hour');
PERFORM SCHEMA_TIMESCALE.add_compression_policy('SCHEMA_TRACING.event', INTERVAL '1 hour');
PERFORM SCHEMA_TIMESCALE.add_compression_policy('SCHEMA_TRACING.link', INTERVAL '1 hour');
EXCEPTION
WHEN undefined_function THEN
RAISE NOTICE 'add_compression_policy does not exist';
END;
END IF;
END IF;
END IF;
END;
$block$
; | the_stack |
-- View: rv_bp_changes
-- DROP VIEW rv_bp_changes;
CREATE OR REPLACE VIEW rv_bp_changes AS
SELECT x.tablename
,x.record_id
,x.bpvalue
,x.bpname
,x.columnname
,x.created
,x.createdby
,x.updated
,x.updatedby
,x.oldvalue
,x.newvalue
,x.isCBPartnerTable
,x.isAdUserTable
,x.isCBPartnerLocationTable
,x.isCBPBankAccountTable
,x.isC_BPCustomerAcctTable
,x.isCBPVendorAcctTable
,x.isCBPEmployeeAcctTable
,x.isCBPartnerAllotmentTable
,x.isCSponsorSalesRep
FROM (
(
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'Y' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BPartner'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN c_bpartner bp ON ch.record_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'Y' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BPartner_Location'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN c_bpartner_location bpl ON ch.record_id = bpl.c_bpartner_location_id
INNER JOIN c_bpartner bp ON bpl.c_bpartner_id = bp.c_bpartner_id
)
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'Y' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BP_BankAccount'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN c_bp_bankaccount bpa ON ch.record_id = bpa.c_bp_bankaccount_id
INNER JOIN c_bpartner bp ON bpa.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'Y' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('AD_User'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN ad_user u ON ch.record_id = u.AD_User_ID
INNER JOIN c_bpartner bp ON u.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'Y' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BP_Customer_Acct'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN C_BP_Customer_Acct bpc ON ch.record_id = bpc.c_bpartner_id
INNER JOIN c_bpartner bp ON bpc.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'Y' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BP_Vendor_Acct'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN C_BP_Customer_Acct bpc ON ch.record_id = bpc.c_bpartner_id
INNER JOIN c_bpartner bp ON bpc.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'Y' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BP_Employee_Acct'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN C_BP_Customer_Acct bpc ON ch.record_id = bpc.c_bpartner_id
INNER JOIN c_bpartner bp ON bpc.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'Y' as isCBPartnerAllotmentTable
,'N' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_BPartner_Allotment'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN C_BPartner_Allotment bpa ON ch.record_id = bpa.C_BPartner_Allotment_ID
INNER JOIN c_bpartner bp ON bpa.c_bpartner_id = bp.c_bpartner_id
UNION
SELECT t.NAME AS tablename
,ch.record_id
,bp.value AS bpvalue
,bp.NAME AS bpname
,c.NAME AS columnname
,ch.created::DATE AS created
,ch.createdby
,ch.updated::DATE AS updated
,ch.updatedby
,ch.oldvalue
,ch.newvalue
,'N' as isCBPartnerTable
,'N' as isAdUserTable
,'N' as isCBPartnerLocationTable
,'N' as isCBPBankAccountTable
,'N' as isC_BPCustomerAcctTable
,'N' as isCBPVendorAcctTable
,'N' as isCBPEmployeeAcctTable
,'N' as isCBPartnerAllotmentTable
,'Y' as isCSponsorSalesRep
FROM ad_changelog ch
INNER JOIN ad_table t ON ch.ad_table_id = t.ad_table_id
AND t.ad_table_id = get_table_id('C_Sponsor_SalesRep'::VARCHAR)
INNER JOIN ad_column c ON ch.ad_column_id = c.ad_column_id
INNER JOIN C_Sponsor_SalesRep ss ON ch.record_id = ss.C_Sponsor_SalesRep_ID
INNER JOIN c_bpartner bp ON ss.c_bpartner_id = bp.c_bpartner_id
) x
GROUP BY x.bpvalue
,x.bpname
,x.tablename
,x.record_id
,x.columnname
,x.created
,x.createdby
,x.updated
,x.updatedby
,x.oldvalue
,x.newvalue
,x.isCBPartnerTable
,x.isAdUserTable
,x.isCBPartnerLocationTable
,x.isCBPBankAccountTable
,x.isC_BPCustomerAcctTable
,x.isCBPVendorAcctTable
,x.isCBPEmployeeAcctTable
,x.isCBPartnerAllotmentTable
,x.isCSponsorSalesRep;
------------------------
-- 09.02.2016 14:22
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542964,0,'isCBPartnerTable',TO_TIMESTAMP('2016-02-09 14:22:39','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.flatrate','Y','BPartner table change','BPartner table change',TO_TIMESTAMP('2016-02-09 14:22:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:22
-- URL zum Konzept
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=542964 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)
;
-- 09.02.2016 14:23
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542965,0,'isAdUserTable',TO_TIMESTAMP('2016-02-09 14:23:22','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','AD_User table change','AD_User table change',TO_TIMESTAMP('2016-02-09 14:23:22','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:23
-- URL zum Konzept
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=542965 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)
;
-- 09.02.2016 14:24
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542966,0,'isCBPartnerLocationTable',TO_TIMESTAMP('2016-02-09 14:24:13','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','C_BPartner_Location table change','C_BPartner_Location table change',TO_TIMESTAMP('2016-02-09 14:24:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:24
-- URL zum Konzept
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=542966 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)
;
-- 09.02.2016 14:24
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542967,0,'isCBPBankAccountTable',TO_TIMESTAMP('2016-02-09 14:24:39','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','C_BP_BankAccount table change','C_BP_BankAccount table change',TO_TIMESTAMP('2016-02-09 14:24:39','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:24
-- URL zum Konzept
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=542967 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)
;
-- 09.02.2016 14:25
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542968,0,'isC_BPCustomerAcctTable',TO_TIMESTAMP('2016-02-09 14:25:03','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','C_BP_Customer_Acct table change','C_BP_Customer_Acct table change',TO_TIMESTAMP('2016-02-09 14:25:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:25
-- URL zum Konzept
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=542968 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)
;
-- 09.02.2016 14:25
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542969,0,'isCBPVendorAcctTable',TO_TIMESTAMP('2016-02-09 14:25:26','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','C_BP_Vendor_Acct table change','C_BP_Vendor_Acct table change',TO_TIMESTAMP('2016-02-09 14:25:26','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:25
-- URL zum Konzept
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=542969 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)
;
-- 09.02.2016 14:25
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542970,0,'isCBPEmployeeAcctTable',TO_TIMESTAMP('2016-02-09 14:25:50','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','C_BP_Employee_Acct table change','C_BP_Employee_Acct table change',TO_TIMESTAMP('2016-02-09 14:25:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:25
-- URL zum Konzept
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=542970 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)
;
-- 09.02.2016 14:27
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542964,0,540627,540876,20,'isCBPartnerTable',TO_TIMESTAMP('2016-02-09 14:27:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.flatrate',1,'Y','N','Y','N','Y','N','BPartner table change',30,TO_TIMESTAMP('2016-02-09 14:27:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:27
-- URL zum Konzept
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=540876 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:27
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542965,0,540627,540877,20,'isAdUserTable',TO_TIMESTAMP('2016-02-09 14:27:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','AD_User table change',40,TO_TIMESTAMP('2016-02-09 14:27:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:27
-- URL zum Konzept
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=540877 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:28
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542966,0,540627,540878,20,'isCBPartnerLocationTable',TO_TIMESTAMP('2016-02-09 14:28:10','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','C_BPartner_Location table change',50,TO_TIMESTAMP('2016-02-09 14:28:10','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:28
-- URL zum Konzept
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=540878 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:28
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542967,0,540627,540880,20,'isCBPBankAccountTable',TO_TIMESTAMP('2016-02-09 14:28:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','C_BP_BankAccount table change',60,TO_TIMESTAMP('2016-02-09 14:28:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:28
-- URL zum Konzept
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=540880 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542968,0,540627,540882,20,'isC_BPCustomerAcctTable',TO_TIMESTAMP('2016-02-09 14:29:26','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','C_BP_Customer_Acct table change',70,TO_TIMESTAMP('2016-02-09 14:29:26','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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=540882 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542969,0,540627,540883,20,'isCBPVendorAcctTable',TO_TIMESTAMP('2016-02-09 14:29:37','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','C_BP_Vendor_Acct table change',80,TO_TIMESTAMP('2016-02-09 14:29:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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=540883 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542970,0,540627,540884,20,'isCBPEmployeeAcctTable',TO_TIMESTAMP('2016-02-09 14:29:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','C_BP_Employee_Acct table change',90,TO_TIMESTAMP('2016-02-09 14:29:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 14:29
-- URL zum Konzept
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=540884 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 18:11
-- URL zum Konzept
UPDATE AD_Table SET Name='Bankkonto',Updated=TO_TIMESTAMP('2016-02-09 18:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=298
;
-- 09.02.2016 18:11
-- URL zum Konzept
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=298
;
-- 09.02.2016 18:12
-- URL zum Konzept
UPDATE AD_Table SET Name='Mitarbeiterkonten',Updated=TO_TIMESTAMP('2016-02-09 18:12:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=184
;
-- 09.02.2016 18:12
-- URL zum Konzept
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=184
;
-- 09.02.2016 18:13
-- URL zum Konzept
UPDATE AD_Table SET Name='Lieferantenkonten',Updated=TO_TIMESTAMP('2016-02-09 18:13:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=185
;
-- 09.02.2016 18:13
-- URL zum Konzept
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=185
;
-- 09.02.2016 18:13
-- URL zum Konzept
UPDATE AD_Table SET Name='Kundenkonten',Updated=TO_TIMESTAMP('2016-02-09 18:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=183
;
-- 09.02.2016 18:13
-- URL zum Konzept
UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=183
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Process_Para SET Name='Geschäftspartner',Updated=TO_TIMESTAMP('2016-02-09 18:31:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=540876
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=540876
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Element SET Name='Kontakt', PrintName='Kontakt',Updated=TO_TIMESTAMP('2016-02-09 18:31:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542965
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542965
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='isAdUserTable', Name='Kontakt', Description=NULL, Help=NULL WHERE AD_Element_ID=542965
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isAdUserTable', Name='Kontakt', Description=NULL, Help=NULL, AD_Element_ID=542965 WHERE UPPER(ColumnName)='ISADUSERTABLE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isAdUserTable', Name='Kontakt', Description=NULL, Help=NULL WHERE AD_Element_ID=542965 AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_Field SET Name='Kontakt', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542965) AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:31
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Kontakt', Name='Kontakt' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542965)
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element SET Name='Adresse', PrintName='Adresse',Updated=TO_TIMESTAMP('2016-02-09 18:32:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542966
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542966
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='isCBPartnerLocationTable', Name='Adresse', Description=NULL, Help=NULL WHERE AD_Element_ID=542966
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPartnerLocationTable', Name='Adresse', Description=NULL, Help=NULL, AD_Element_ID=542966 WHERE UPPER(ColumnName)='ISCBPARTNERLOCATIONTABLE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPartnerLocationTable', Name='Adresse', Description=NULL, Help=NULL WHERE AD_Element_ID=542966 AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Field SET Name='Adresse', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542966) AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Adresse', Name='Adresse' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542966)
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element SET Name='Bankkonto', PrintName='Bankkonto',Updated=TO_TIMESTAMP('2016-02-09 18:32:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542967
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542967
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='isCBPBankAccountTable', Name='Bankkonto', Description=NULL, Help=NULL WHERE AD_Element_ID=542967
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPBankAccountTable', Name='Bankkonto', Description=NULL, Help=NULL, AD_Element_ID=542967 WHERE UPPER(ColumnName)='ISCBPBANKACCOUNTTABLE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPBankAccountTable', Name='Bankkonto', Description=NULL, Help=NULL WHERE AD_Element_ID=542967 AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Field SET Name='Bankkonto', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542967) AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Bankkonto', Name='Bankkonto' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542967)
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element SET Name='Kundenkonten', PrintName='Kundenkonten',Updated=TO_TIMESTAMP('2016-02-09 18:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542968
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542968
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='isC_BPCustomerAcctTable', Name='Kundenkonten', Description=NULL, Help=NULL WHERE AD_Element_ID=542968
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isC_BPCustomerAcctTable', Name='Kundenkonten', Description=NULL, Help=NULL, AD_Element_ID=542968 WHERE UPPER(ColumnName)='ISC_BPCUSTOMERACCTTABLE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isC_BPCustomerAcctTable', Name='Kundenkonten', Description=NULL, Help=NULL WHERE AD_Element_ID=542968 AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_Field SET Name='Kundenkonten', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542968) AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:32
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Kundenkonten', Name='Kundenkonten' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542968)
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Element SET Name='Lieferantenkonten', PrintName='Lieferantenkonten',Updated=TO_TIMESTAMP('2016-02-09 18:33:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542969
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=542969
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Column SET ColumnName='isCBPVendorAcctTable', Name='Lieferantenkonten', Description=NULL, Help=NULL WHERE AD_Element_ID=542969
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPVendorAcctTable', Name='Lieferantenkonten', Description=NULL, Help=NULL, AD_Element_ID=542969 WHERE UPPER(ColumnName)='ISCBPVENDORACCTTABLE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Process_Para SET ColumnName='isCBPVendorAcctTable', Name='Lieferantenkonten', Description=NULL, Help=NULL WHERE AD_Element_ID=542969 AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_Field SET Name='Lieferantenkonten', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542969) AND IsCentrallyMaintained='Y'
;
-- 09.02.2016 18:33
-- URL zum Konzept
UPDATE AD_PrintFormatItem pi SET PrintName='Lieferantenkonten', Name='Lieferantenkonten' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542969)
;
-- 09.02.2016 18:38
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542971,0,'isCBPartnerAllotmentTable',TO_TIMESTAMP('2016-02-09 18:38:00','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','Geschäftspartnerparzelle','Geschäftspartnerparzelle',TO_TIMESTAMP('2016-02-09 18:38:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 18:38
-- URL zum Konzept
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=542971 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)
;
-- 09.02.2016 18:38
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542971,0,540627,540885,20,'isCBPartnerAllotmentTable',TO_TIMESTAMP('2016-02-09 18:38:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','Geschäftspartnerparzelle',100,TO_TIMESTAMP('2016-02-09 18:38:14','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 18:38
-- URL zum Konzept
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=540885 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 09.02.2016 18:38
-- URL zum Konzept
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542972,0,'isCSponsorSalesRep',TO_TIMESTAMP('2016-02-09 18:38:52','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','Sponsor-Vertriebspartner','Sponsor-Vertriebspartner',TO_TIMESTAMP('2016-02-09 18:38:52','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 18:38
-- URL zum Konzept
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=542972 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)
;
-- 09.02.2016 18:39
-- URL zum Konzept
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,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,542972,0,540627,540886,20,'isCSponsorSalesRep',TO_TIMESTAMP('2016-02-09 18:39:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.fresh',1,'Y','N','Y','N','Y','N','Sponsor-Vertriebspartner',110,TO_TIMESTAMP('2016-02-09 18:39:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 09.02.2016 18:39
-- URL zum Konzept
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=540886 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
; | the_stack |
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
-- TABLE: entries
CREATE TABLE IF NOT EXISTS `bx_glossary_terms` (
`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,
`labels` text NOT NULL,
`views` int(11) NOT NULL default '0',
`rate` float NOT NULL default '0',
`votes` int(11) NOT NULL default '0',
`rrate` float NOT NULL default '0',
`rvotes` int(11) NOT NULL default '0',
`score` int(11) NOT NULL default '0',
`sc_up` int(11) NOT NULL default '0',
`sc_down` 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` varchar(16) NOT NULL DEFAULT '3',
`status` enum('active','hidden') NOT NULL DEFAULT 'active',
`status_admin` enum('active','hidden','pending') NOT NULL DEFAULT 'active',
PRIMARY KEY (`id`),
FULLTEXT KEY `title_text` (`title`,`text`)
);
-- TABLE: storages & transcoders
CREATE TABLE IF NOT EXISTS `bx_glossary_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` bigint(20) 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_glossary_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` bigint(20) 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_glossary_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(11) 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',
`cmt_pinned` 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`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_cmts_notes` (
`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(11) 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',
`cmt_pinned` 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_glossary_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`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_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`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_reactions` (
`object_id` int(11) NOT NULL default '0',
`reaction` varchar(32) NOT NULL default '',
`count` int(11) NOT NULL default '0',
`sum` int(11) NOT NULL default '0',
UNIQUE KEY `reaction` (`object_id`, `reaction`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_reactions_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',
`reaction` varchar(32) NOT NULL default '',
`value` tinyint(4) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `vote` (`object_id`, `author_nip`)
);
-- TABLE: views
CREATE TABLE `bx_glossary_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`)
);
-- TABLE: metas
CREATE TABLE `bx_glossary_meta_keywords` (
`object_id` int(10) unsigned NOT NULL,
`keyword` varchar(255) NOT NULL,
KEY `object_id` (`object_id`),
KEY `keyword` (`keyword`)
);
CREATE TABLE `bx_glossary_meta_mentions` (
`object_id` int(10) unsigned NOT NULL,
`profile_id` int(10) unsigned NOT NULL,
KEY `object_id` (`object_id`),
KEY `profile_id` (`profile_id`)
);
-- TABLE: reports
CREATE TABLE IF NOT EXISTS `bx_glossary_reports` (
`object_id` int(11) NOT NULL default '0',
`count` int(11) NOT NULL default '0',
UNIQUE KEY `object_id` (`object_id`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_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',
`checked_by` int(11) NOT NULL default '0',
`status` tinyint(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `report` (`object_id`, `author_nip`)
);
-- TABLE: favorites
CREATE TABLE `bx_glossary_favorites_track` (
`object_id` int(11) NOT NULL default '0',
`author_id` int(11) NOT NULL default '0',
`list_id` int(11) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
KEY `id` (`object_id`,`author_id`)
);
CREATE TABLE `bx_glossary_favorites_lists` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`author_id` int(11) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
`allow_view_favorite_list_to` varchar(16) NOT NULL DEFAULT '3',
PRIMARY KEY (`id`)
);
-- TABLE: scores
CREATE TABLE IF NOT EXISTS `bx_glossary_scores` (
`object_id` int(11) NOT NULL default '0',
`count_up` int(11) NOT NULL default '0',
`count_down` int(11) NOT NULL default '0',
UNIQUE KEY `object_id` (`object_id`)
);
CREATE TABLE IF NOT EXISTS `bx_glossary_scores_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(8) NOT NULL default '',
`date` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `vote` (`object_id`, `author_nip`)
);
-- 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_glossary_files', @sStorageEngine, '', 360, 2592000, 3, 'bx_glossary_files', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
('bx_glossary_photos_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_glossary_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_glossary_preview', 'bx_glossary_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_glossary_files";}', 'no', '1', '2592000', '0'),
('bx_glossary_gallery', 'bx_glossary_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_glossary_files";}', 'no', '1', '2592000', '0'),
('bx_glossary_cover', 'bx_glossary_photos_resized', 'Storage', 'a:1:{s:6:"object";s:17:"bx_glossary_files";}', 'no', '1', '2592000', '0');
INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
('bx_glossary_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_glossary_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0'),
('bx_glossary_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_glossary', 'bx_glossary', '_bx_glossary_form_entry', '', 'a:1:{s:7:"enctype";s:19:"multipart/form-data";}', 'bx_glossary_terms', 'id', '', '', 'a:2:{i:0;s:9:"do_submit";i:1;s:10:"do_publish";}', '', 0, 1, 'BxGlsrFormEntry', 'modules/boonex/glossary/classes/BxGlsrFormEntry.php');
INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
('bx_glossary', 'bx_glossary_entry_add', 'bx_glossary', 0, '_bx_glossary_form_entry_display_add'),
('bx_glossary', 'bx_glossary_entry_delete', 'bx_glossary', 0, '_bx_glossary_form_entry_display_delete'),
('bx_glossary', 'bx_glossary_entry_edit', 'bx_glossary', 0, '_bx_glossary_form_entry_display_edit'),
('bx_glossary', 'bx_glossary_entry_view', 'bx_glossary', 1, '_bx_glossary_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_glossary', 'bx_glossary', 'allow_view_to', '', '', 0, 'custom', '_bx_glossary_form_entry_input_sys_allow_view_to', '_bx_glossary_form_entry_input_allow_view_to', '', 1, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_glossary_form_entry_input_sys_delete_confirm', '_bx_glossary_form_entry_input_delete_confirm', '_bx_glossary_form_entry_input_delete_confirm_info', 1, 0, 0, '', '', '', 'Avail', '', '_bx_glossary_form_entry_input_delete_confirm_error', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'do_publish', '_bx_glossary_form_entry_input_do_publish', '', 0, 'submit', '_bx_glossary_form_entry_input_sys_do_publish', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'do_submit', '_bx_glossary_form_entry_input_do_submit', '', 0, 'submit', '_bx_glossary_form_entry_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'pictures', 'a:1:{i:0;s:17:"bx_glossary_html5";}', 'a:2:{s:18:"bx_glossary_simple";s:26:"_sys_uploader_simple_title";s:17:"bx_glossary_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_glossary_form_entry_input_sys_pictures', '_bx_glossary_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'text', '', '', 0, 'textarea', '_bx_glossary_form_entry_input_sys_text', '_bx_glossary_form_entry_input_text', '', 1, 0, 2, '', '', '', 'Avail', '', '_bx_glossary_form_entry_input_text_err', 'XssHtml', '', 1, 0),
('bx_glossary', 'bx_glossary', 'title', '', '', 0, 'text', '_bx_glossary_form_entry_input_sys_title', '_bx_glossary_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_glossary_form_entry_input_title_err', 'Xss', '', 1, 0),
('bx_glossary', 'bx_glossary', 'cat', '', '#!bx_glossary_cats', 0, 'select', '_bx_glossary_form_entry_input_sys_cat', '_bx_glossary_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_glossary_form_entry_input_cat_err', 'Xss', '', 1, 0),
('bx_glossary', 'bx_glossary', 'added', '', '', 0, 'datetime', '_bx_glossary_form_entry_input_sys_date_added', '_bx_glossary_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'changed', '', '', 0, 'datetime', '_bx_glossary_form_entry_input_sys_date_changed', '_bx_glossary_form_entry_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_glossary', 'bx_glossary', 'status_admin', '', '#!bx_glossary_statuses', 0, 'select', '_bx_glossary_form_entry_input_sys_status_admin', '_bx_glossary_form_entry_input_status_admin', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_glossary_form_entry_input_status_admin_error', 'Xss', '', 1, 0),
('bx_glossary', 'bx_glossary', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
('bx_glossary_entry_add', 'delete_confirm', 2147483647, 0, 1),
('bx_glossary_entry_add', 'title', 2147483647, 1, 2),
('bx_glossary_entry_add', 'cat', 2147483647, 1, 3),
('bx_glossary_entry_add', 'text', 2147483647, 1, 4),
('bx_glossary_entry_add', 'pictures', 2147483647, 1, 5),
('bx_glossary_entry_add', 'allow_view_to', 2147483647, 1, 6),
('bx_glossary_entry_add', 'status_admin', 192, 1, 7),
('bx_glossary_entry_add', 'do_submit', 2147483647, 0, 8),
('bx_glossary_entry_add', 'do_publish', 2147483647, 1, 9),
('bx_glossary_entry_delete', 'cat', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'pictures', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'text', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'do_publish', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'title', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'allow_view_to', 2147483647, 0, 0),
('bx_glossary_entry_delete', 'delete_confirm', 2147483647, 1, 1),
('bx_glossary_entry_delete', 'do_submit', 2147483647, 1, 2),
('bx_glossary_entry_edit', 'do_publish', 2147483647, 0, 1),
('bx_glossary_entry_edit', 'delete_confirm', 2147483647, 0, 2),
('bx_glossary_entry_edit', 'title', 2147483647, 1, 3),
('bx_glossary_entry_edit', 'cat', 2147483647, 1, 4),
('bx_glossary_entry_edit', 'text', 2147483647, 1, 5),
('bx_glossary_entry_edit', 'pictures', 2147483647, 1, 6),
('bx_glossary_entry_edit', 'allow_view_to', 2147483647, 1, 7),
('bx_glossary_entry_edit', 'status_admin', 192, 1, 8),
('bx_glossary_entry_edit', 'do_submit', 2147483647, 1, 9),
('bx_glossary_entry_view', 'pictures', 2147483647, 0, 0),
('bx_glossary_entry_view', 'delete_confirm', 2147483647, 0, 0),
('bx_glossary_entry_view', 'text', 2147483647, 0, 0),
('bx_glossary_entry_view', 'do_publish', 2147483647, 0, 0),
('bx_glossary_entry_view', 'title', 2147483647, 0, 0),
('bx_glossary_entry_view', 'do_submit', 2147483647, 0, 0),
('bx_glossary_entry_view', 'allow_view_to', 2147483647, 0, 0),
('bx_glossary_entry_view', 'cat', 2147483647, 1, 1),
('bx_glossary_entry_view', 'added', 2147483647, 1, 2),
('bx_glossary_entry_view', 'changed', 2147483647, 1, 3);
-- PRE-VALUES
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_glossary_cats', '_bx_glossary_pre_lists_cats', 'bx_glossary', '0'),
('bx_glossary_statuses', '_bx_glossary_pre_lists_statuses', 'bx_glossary', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_glossary_cats', '', 0, '_sys_please_select', ''),
('bx_glossary_cats', '1', 1, '_bx_glossary_cat_Nouns', ''),
('bx_glossary_cats', '2', 2, '_bx_glossary_cat_Pronouns', ''),
('bx_glossary_cats', '3', 3, '_bx_glossary_cat_Verbs', ''),
('bx_glossary_cats', '4', 4, '_bx_glossary_cat_Adverbs', ''),
('bx_glossary_cats', '5', 5, '_bx_glossary_cat_Adjectives', ''),
('bx_glossary_cats', '6', 6, '_bx_glossary_cat_Interjections', ''),
('bx_glossary_cats', '7', 7, '_bx_glossary_cat_Prepositions', ''),
('bx_glossary_cats', '8', 8, '_bx_glossary_cat_Infinitives', ''),
('bx_glossary_statuses', 'active', 0, '_bx_glossary_item_admin_status_active', ''),
('bx_glossary_statuses', 'hidden', 1, '_bx_glossary_item_admin_status_hidden', ''),
('bx_glossary_statuses', 'pending', 2, '_bx_glossary_item_admin_status_pending', '');
-- COMMENTS
INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Html`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES
('bx_glossary', 'bx_glossary', 'bx_glossary_cmts', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-glossary&id={object_id}', '', 'bx_glossary_terms', 'id', 'author', 'title', 'comments', '', ''),
('bx_glossary_notes', 'bx_glossary', 'bx_glossary_cmts_notes', 1, 5000, 1000, 0, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-glossary&id={object_id}', '', 'bx_glossary_terms', 'id', 'author', 'title', '', 'BxTemplCmtsNotes', '');
-- VOTES
INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
('bx_glossary', 'bx_glossary_votes', 'bx_glossary_votes_track', '604800', '1', '1', '0', '1', 'bx_glossary_terms', 'id', 'author', 'rate', 'votes', '', ''),
('bx_glossary_reactions', 'bx_glossary_reactions', 'bx_glossary_reactions_track', '604800', '1', '1', '1', '1', 'bx_glossary_terms', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
-- SCORES
INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
('bx_glossary', 'bx_glossary', 'bx_glossary_scores', 'bx_glossary_scores_track', '604800', '0', 'bx_glossary_terms', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
-- REPORTS
INSERT INTO `sys_objects_report` (`name`, `module`, `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_glossary', 'bx_glossary', 'bx_glossary_reports', 'bx_glossary_reports_track', '1', 'page.php?i=view-glossary&id={object_id}', 'bx_glossary_terms', '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_glossary', 'bx_glossary_views_track', '86400', '1', 'bx_glossary_terms', 'id', 'author', 'views', '', '');
-- FAVORITES
INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `table_lists`, `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_glossary', 'bx_glossary_favorites_track', 'bx_glossary_favorites_lists', '1', '1', '1', 'page.php?i=view-glossary&id={object_id}', 'bx_glossary_terms', 'id', 'author', 'favorites', '', '');
-- FEATURED
INSERT INTO `sys_objects_feature` (`name`, `module`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES
('bx_glossary', 'bx_glossary', '1', '1', 'page.php?i=view-glossary&id={object_id}', 'bx_glossary_terms', '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_glossary', '_bx_glossary', 'bx_glossary', 'added', 'edited', 'deleted', '', ''),
('bx_glossary_cmts', '_bx_glossary_cmts', 'bx_glossary', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES
('bx_glossary', 'bx_glossary_administration', 'id', '', ''),
('bx_glossary', 'bx_glossary_common', 'id', '', '');
-- SEARCH EXTENDED
INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
('bx_glossary', 'bx_glossary', 'bx_glossary', '_bx_glossary_search_extended', 1, '', ''),
('bx_glossary_cmts', 'bx_glossary_cmts', 'bx_glossary', '_bx_glossary_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
-- STUDIO: page & widget
INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
(3, 'bx_glossary', '_bx_glossary', '_bx_glossary', 'bx_glossary@modules/boonex/glossary/|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`, `type`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
(@iPageId, 'bx_glossary', 'content', '{url_studio}module.php?name=bx_glossary', '', 'bx_glossary@modules/boonex/glossary/|std-icon.svg', '_bx_glossary', '', '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 |
* setup_samples_exec.sql
* This script performs the actual work of creating and populating the
* schemas with the database objects used by the cx_Oracle samples. An edition
* is also created for the demonstration of PL/SQL editioning. It is called by
* the setup_samples.sql file after acquiring the necessary parameters and also
* by the Python script setup_samples.py.
*---------------------------------------------------------------------------*/
alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS'
/
alter session set nls_numeric_characters='.,'
/
create user &main_user identified by &main_password
/
grant
create session,
create table,
create procedure,
create type,
select any dictionary,
change notification,
unlimited tablespace
to &main_user
/
grant aq_administrator_role to &main_user
/
begin
execute immediate 'begin dbms_session.sleep(0); end;';
exception
when others then
begin
execute immediate 'grant execute on dbms_lock to &main_user';
exception
when others then
raise_application_error(-20000,
'Ensure the following grant is made: ' ||
'grant execute on dbms_lock to ' || user ||
' with grant option');
end;
end;
/
begin
for r in
( select role
from dba_roles
where role in ('SODA_APP')
) loop
execute immediate 'grant ' || r.role || ' to &main_user';
end loop;
end;
/
create user &edition_user identified by &edition_password
/
grant
create session,
create procedure
to &edition_user
/
alter user &edition_user enable editions
/
create edition &edition_name
/
grant use on edition &edition_name to &edition_user
/
-- create types
create type &main_user..udt_SubObject as object (
SubNumberValue number,
SubStringValue varchar2(60)
);
/
create or replace type &main_user..udt_Building as object (
BuildingId number(9),
NumFloors number(3),
Description varchar2(60),
DateBuilt date
);
/
create or replace type &main_user..udt_Book as object (
Title varchar2(100),
Authors varchar2(100),
Price number(5,2)
);
/
-- create tables
create table &main_user..TestNumbers (
IntCol number(9) not null,
NumberCol number(9, 2) not null,
FloatCol float not null,
UnconstrainedCol number not null,
NullableCol number(38)
)
/
create table &main_user..TestStrings (
IntCol number(9) not null,
StringCol varchar2(20) not null,
RawCol raw(30) not null,
FixedCharCol char(40) not null,
NullableCol varchar2(50)
)
/
create table &main_user..TestCLOBs (
IntCol number(9) not null,
CLOBCol clob not null
)
/
create table &main_user..TestBLOBs (
IntCol number(9) not null,
BLOBCol blob not null
)
/
create table &main_user..TestTempTable (
IntCol number(9) not null,
StringCol varchar2(400),
constraint TestTempTable_pk primary key (IntCol)
)
/
create table &main_user..TestUniversalRowids (
IntCol number(9) not null,
StringCol varchar2(250) not null,
DateCol date not null,
constraint TestUniversalRowids_pk primary key (IntCol, StringCol, DateCol)
) organization index
/
create table &main_user..TestBuildings (
BuildingId number(9) not null,
BuildingObj &main_user..udt_Building not null
)
/
create table &main_user..BigTab (
mycol varchar2(20)
)
/
create table &main_user..SampleQueryTab (
id number not null,
name varchar2(20) not null
)
/
create table &main_user..MyTab (
id number,
data varchar2(20)
)
/
create table &main_user..ParentTable (
ParentId number(9) not null,
Description varchar2(60) not null,
constraint ParentTable_pk primary key (ParentId)
)
/
create table &main_user..ChildTable (
ChildId number(9) not null,
ParentId number(9) not null,
Description varchar2(60) not null,
constraint ChildTable_pk primary key (ChildId),
constraint ChildTable_fk foreign key (ParentId)
references &main_user..ParentTable
)
/
create table &main_user..Ptab (
myid number,
mydata varchar(20)
)
/
create table &main_user..PlsqlSessionCallbacks (
RequestedTag varchar2(250),
ActualTag varchar2(250),
FixupTimestamp timestamp
)
/
-- create queue table, queues and subscribers for demonstrating Advanced Queuing
begin
dbms_aqadm.create_queue_table('&main_user..BOOK_QUEUE_TAB',
'&main_user..UDT_BOOK');
dbms_aqadm.create_queue('&main_user..DEMO_BOOK_QUEUE',
'&main_user..BOOK_QUEUE_TAB');
dbms_aqadm.start_queue('&main_user..DEMO_BOOK_QUEUE');
dbms_aqadm.create_queue_table('&main_user..RAW_QUEUE_TAB', 'RAW');
dbms_aqadm.create_queue('&main_user..DEMO_RAW_QUEUE',
'&main_user..RAW_QUEUE_TAB');
dbms_aqadm.start_queue('&main_user..DEMO_RAW_QUEUE');
dbms_aqadm.create_queue_table('&main_user..RAW_QUEUE_MULTI_TAB', 'RAW',
multiple_consumers => true);
dbms_aqadm.create_queue('&main_user..DEMO_RAW_QUEUE_MULTI',
'&main_user..RAW_QUEUE_MULTI_TAB');
dbms_aqadm.start_queue('&main_user..DEMO_RAW_QUEUE_MULTI');
dbms_aqadm.add_subscriber('&main_user..DEMO_RAW_QUEUE_MULTI',
sys.aq$_agent('SUBSCRIBER_A', null, null));
dbms_aqadm.add_subscriber('&main_user..DEMO_RAW_QUEUE_MULTI',
sys.aq$_agent('SUBSCRIBER_B', null, null));
end;
/
-- populate tables
begin
for i in 1..20000 loop
insert into &main_user..BigTab (mycol)
values (dbms_random.string('A', 20));
end loop;
end;
/
begin
for i in 1..10 loop
insert into &main_user..TestNumbers
values (i, i + i * 0.25, i + i * .75, i * i * i + i *.5,
decode(mod(i, 2), 0, null, power(143, i)));
end loop;
end;
/
declare
t_RawValue raw(30);
function ConvertHexDigit(a_Value number) return varchar2 is
begin
if a_Value between 0 and 9 then
return to_char(a_Value);
end if;
return chr(ascii('A') + a_Value - 10);
end;
function ConvertToHex(a_Value varchar2) return varchar2 is
t_HexValue varchar2(60);
t_Digit number;
begin
for i in 1..length(a_Value) loop
t_Digit := ascii(substr(a_Value, i, 1));
t_HexValue := t_HexValue ||
ConvertHexDigit(trunc(t_Digit / 16)) ||
ConvertHexDigit(mod(t_Digit, 16));
end loop;
return t_HexValue;
end;
begin
for i in 1..10 loop
t_RawValue := hextoraw(ConvertToHex('Raw ' || to_char(i)));
insert into &main_user..TestStrings
values (i, 'String ' || to_char(i), t_RawValue,
'Fixed Char ' || to_char(i),
decode(mod(i, 2), 0, null, 'Nullable ' || to_char(i)));
end loop;
end;
/
insert into &main_user..ParentTable values (10, 'Parent 10')
/
insert into &main_user..ParentTable values (20, 'Parent 20')
/
insert into &main_user..ParentTable values (30, 'Parent 30')
/
insert into &main_user..ParentTable values (40, 'Parent 40')
/
insert into &main_user..ParentTable values (50, 'Parent 50')
/
insert into &main_user..ChildTable values (1001, 10, 'Child A of Parent 10')
/
insert into &main_user..ChildTable values (1002, 20, 'Child A of Parent 20')
/
insert into &main_user..ChildTable values (1003, 20, 'Child B of Parent 20')
/
insert into &main_user..ChildTable values (1004, 20, 'Child C of Parent 20')
/
insert into &main_user..ChildTable values (1005, 30, 'Child A of Parent 30')
/
insert into &main_user..ChildTable values (1006, 30, 'Child B of Parent 30')
/
insert into &main_user..ChildTable values (1007, 40, 'Child A of Parent 40')
/
insert into &main_user..ChildTable values (1008, 40, 'Child B of Parent 40')
/
insert into &main_user..ChildTable values (1009, 40, 'Child C of Parent 40')
/
insert into &main_user..ChildTable values (1010, 40, 'Child D of Parent 40')
/
insert into &main_user..ChildTable values (1011, 40, 'Child E of Parent 40')
/
insert into &main_user..ChildTable values (1012, 50, 'Child A of Parent 50')
/
insert into &main_user..ChildTable values (1013, 50, 'Child B of Parent 50')
/
insert into &main_user..ChildTable values (1014, 50, 'Child C of Parent 50')
/
insert into &main_user..ChildTable values (1015, 50, 'Child D of Parent 50')
/
insert into &main_user..SampleQueryTab values (1, 'Anthony')
/
insert into &main_user..SampleQueryTab values (2, 'Barbie')
/
insert into &main_user..SampleQueryTab values (3, 'Chris')
/
insert into &main_user..SampleQueryTab values (4, 'Dazza')
/
insert into &main_user..SampleQueryTab values (5, 'Erin')
/
insert into &main_user..SampleQueryTab values (6, 'Frankie')
/
insert into &main_user..SampleQueryTab values (7, 'Gerri')
/
commit
/
--
-- For PL/SQL Examples
--
create or replace function &main_user..myfunc (
a_Data varchar2,
a_Id number
) return number as
begin
insert into &main_user..ptab (mydata, myid) values (a_Data, a_Id);
return (a_Id * 2);
end;
/
create or replace procedure &main_user..myproc (
a_Value1 number,
a_Value2 out number
) as
begin
a_Value2 := a_Value1 * 2;
end;
/
create or replace procedure &main_user..myrefcursorproc (
a_StartingValue number,
a_EndingValue number,
a_RefCursor out sys_refcursor
) as
begin
open a_RefCursor for
select *
from TestStrings
where IntCol between a_StartingValue and a_EndingValue;
end;
/
create procedure &main_user..myrefcursorproc2 (
a_RefCursor out sys_refcursor
) as
begin
open a_RefCursor for
select *
from TestTempTable;
end;
/
--
-- Create package for demoing PL/SQL collections and records.
--
create or replace package &main_user..pkg_Demo as
type udt_StringList is table of varchar2(100) index by binary_integer;
type udt_DemoRecord is record (
NumberValue number,
StringValue varchar2(30),
DateValue date,
BooleanValue boolean
);
procedure DemoCollectionOut (
a_Value out nocopy udt_StringList
);
procedure DemoRecordsInOut (
a_Value in out nocopy udt_DemoRecord
);
end;
/
create or replace package body &main_user..pkg_Demo as
procedure DemoCollectionOut (
a_Value out nocopy udt_StringList
) is
begin
a_Value(-1048576) := 'First element';
a_Value(-576) := 'Second element';
a_Value(284) := 'Third element';
a_Value(8388608) := 'Fourth element';
end;
procedure DemoRecordsInOut (
a_Value in out nocopy udt_DemoRecord
) is
begin
a_Value.NumberValue := a_Value.NumberValue * 2;
a_Value.StringValue := a_Value.StringValue || ' (Modified)';
a_Value.DateValue := a_Value.DateValue + 5;
a_Value.BooleanValue := not a_Value.BooleanValue;
end;
end;
/
--
-- Create package for demoing PL/SQL session callback
--
create or replace package &main_user..pkg_SessionCallback as
procedure TheCallback (
a_RequestedTag varchar2,
a_ActualTag varchar2
);
end;
/
create or replace package body &main_user..pkg_SessionCallback as
type udt_Properties is table of varchar2(64) index by varchar2(64);
procedure LogCall (
a_RequestedTag varchar2,
a_ActualTag varchar2
) is
pragma autonomous_transaction;
begin
insert into PlsqlSessionCallbacks
values (a_RequestedTag, a_ActualTag, systimestamp);
commit;
end;
procedure ParseProperty (
a_Property varchar2,
a_Name out nocopy varchar2,
a_Value out nocopy varchar2
) is
t_Pos number;
begin
t_Pos := instr(a_Property, '=');
if t_Pos = 0 then
raise_application_error(-20000, 'Tag must contain key=value pairs');
end if;
a_Name := substr(a_Property, 1, t_Pos - 1);
a_Value := substr(a_Property, t_Pos + 1);
end;
procedure SetProperty (
a_Name varchar2,
a_Value varchar2
) is
t_ValidValues udt_Properties;
begin
if a_Name = 'TIME_ZONE' then
t_ValidValues('UTC') := 'UTC';
t_ValidValues('MST') := '-07:00';
elsif a_Name = 'NLS_DATE_FORMAT' then
t_ValidValues('SIMPLE') := 'YYYY-MM-DD HH24:MI';
t_ValidValues('FULL') := 'YYYY-MM-DD HH24:MI:SS';
else
raise_application_error(-20000, 'Unsupported session setting');
end if;
if not t_ValidValues.exists(a_Value) then
raise_application_error(-20000, 'Unsupported session setting');
end if;
execute immediate
'ALTER SESSION SET ' || a_Name || '=''' ||
t_ValidValues(a_Value) || '''';
end;
procedure ParseTag (
a_Tag varchar2,
a_Properties out nocopy udt_Properties
) is
t_PropertyName varchar2(64);
t_PropertyValue varchar2(64);
t_StartPos number;
t_EndPos number;
begin
t_StartPos := 1;
while t_StartPos < length(a_Tag) loop
t_EndPos := instr(a_Tag, ';', t_StartPos);
if t_EndPos = 0 then
t_EndPos := length(a_Tag) + 1;
end if;
ParseProperty(substr(a_Tag, t_StartPos, t_EndPos - t_StartPos),
t_PropertyName, t_PropertyValue);
a_Properties(t_PropertyName) := t_PropertyValue;
t_StartPos := t_EndPos + 1;
end loop;
end;
procedure TheCallback (
a_RequestedTag varchar2,
a_ActualTag varchar2
) is
t_RequestedProps udt_Properties;
t_ActualProps udt_Properties;
t_PropertyName varchar2(64);
begin
LogCall(a_RequestedTag, a_ActualTag);
ParseTag(a_RequestedTag, t_RequestedProps);
ParseTag(a_ActualTag, t_ActualProps);
t_PropertyName := t_RequestedProps.first;
while t_PropertyName is not null loop
if not t_ActualProps.exists(t_PropertyName) or
t_ActualProps(t_PropertyName) !=
t_RequestedProps(t_PropertyName) then
SetProperty(t_PropertyName, t_RequestedProps(t_PropertyName));
end if;
t_PropertyName := t_RequestedProps.next(t_PropertyName);
end loop;
end;
end;
/ | the_stack |
-- 2019-10-31T14:18:29.273Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544941,0,TO_TIMESTAMP('2019-10-31 15:18:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Nicht erzwungen','I',TO_TIMESTAMP('2019-10-31 15:18:29','YYYY-MM-DD HH24:MI:SS'),100,'NotEnforced')
;
-- 2019-10-31T14:18:29.276Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544941 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2019-10-31T14:18:54.492Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544942,0,TO_TIMESTAMP('2019-10-31 15:18:54','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Erzwungen','I',TO_TIMESTAMP('2019-10-31 15:18:54','YYYY-MM-DD HH24:MI:SS'),100,'Enforced')
;
-- 2019-10-31T14:18:54.495Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544942 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2019-10-31T14:21:00.388Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544943,0,TO_TIMESTAMP('2019-10-31 15:21:00','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Für ein Lager konnte keine Produktionsstätte gefunden werden','I',TO_TIMESTAMP('2019-10-31 15:21:00','YYYY-MM-DD HH24:MI:SS'),100,'NoPlantForWarehouseException')
;
-- 2019-10-31T14:21:00.389Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Message_ID=544943 AND NOT EXISTS (SELECT 1 FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- 2019-10-31T14:21:03.990Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-10-31 15:21:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544943
;
-- 2019-10-31T14:21:31.384Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y', MsgText='No plant was found for a given warehouse.',Updated=TO_TIMESTAMP('2019-10-31 15:21:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544943
;
-- 2019-10-31T14:21:52.972Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Zu einem Lager wurde keine Produktionsstätte gefunden.',Updated=TO_TIMESTAMP('2019-10-31 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544943
;
-- 2019-10-31T14:21:56.490Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET MsgText='Zu einem Lager wurde keine Produktionsstätte gefunden.',Updated=TO_TIMESTAMP('2019-10-31 15:21:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544943
;
-- 2019-10-31T14:22:00.641Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Zu einem Lager wurde keine Produktionsstätte gefunden.',Updated=TO_TIMESTAMP('2019-10-31 15:22:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544943
;
-- 2019-10-31T14:22:19.756Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-10-31 15:22:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544941
;
-- 2019-10-31T14:22:27.626Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y', MsgText='Not enforced',Updated=TO_TIMESTAMP('2019-10-31 15:22:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544941
;
-- 2019-10-31T14:22:38.212Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y', MsgText='Enforced',Updated=TO_TIMESTAMP('2019-10-31 15:22:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544942
;
-- 2019-10-31T14:22:41.157Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-10-31 15:22:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544942
;
-- 2019-11-01T06:36:01.673Z
-- 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,Help,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,568771,591216,0,541944,TO_TIMESTAMP('2019-11-01 07:36:01','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde',29,'de.metas.contracts.commission','Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','N','N','N','Erstellt',TO_TIMESTAMP('2019-11-01 07:36:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-01T06:36:01.675Z
-- 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=591216 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)
;
-- 2019-11-01T06:36:01.710Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(245)
;
-- 2019-11-01T06:36:01.866Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591216
;
-- 2019-11-01T06:36:01.867Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591216)
;
-- 2019-11-01T06:36:01.965Z
-- 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,Help,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,568772,591217,0,541944,TO_TIMESTAMP('2019-11-01 07:36:01','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat',10,'de.metas.contracts.commission','Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','N','N','N','Erstellt durch',TO_TIMESTAMP('2019-11-01 07:36:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-01T06:36:01.966Z
-- 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=591217 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)
;
-- 2019-11-01T06:36:01.967Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(246)
;
-- 2019-11-01T06:36:02.019Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591217
;
-- 2019-11-01T06:36:02.020Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591217)
;
-- 2019-11-01T06:36:02.135Z
-- 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,Help,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,568774,591218,0,541944,TO_TIMESTAMP('2019-11-01 07:36:02','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde',29,'de.metas.contracts.commission','Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','N','N','N','Aktualisiert',TO_TIMESTAMP('2019-11-01 07:36:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-01T06:36:02.138Z
-- 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=591218 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)
;
-- 2019-11-01T06:36:02.141Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(607)
;
-- 2019-11-01T06:36:02.226Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591218
;
-- 2019-11-01T06:36:02.226Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591218)
;
-- 2019-11-01T06:36:02.310Z
-- 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,Help,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,568775,591219,0,541944,TO_TIMESTAMP('2019-11-01 07:36:02','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat',10,'de.metas.contracts.commission','Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','N','N','N','Aktualisiert durch',TO_TIMESTAMP('2019-11-01 07:36:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-01T06:36:02.311Z
-- 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=591219 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)
;
-- 2019-11-01T06:36:02.313Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(608)
;
-- 2019-11-01T06:36:02.347Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591219
;
-- 2019-11-01T06:36:02.348Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591219)
;
-- 2019-11-01T06:36:22.989Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsActive='N',Updated=TO_TIMESTAMP('2019-11-01 07:36:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=561857
;
-- 2019-11-01T06:36:49.192Z
-- 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,Description,Help,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,591218,0,541944,542902,563747,'F',TO_TIMESTAMP('2019-11-01 07:36:49','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','Y','N','N','N',0,'Updated',12,0,0,TO_TIMESTAMP('2019-11-01 07:36:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2019-11-01T06:37:07.467Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2019-11-01 07:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=561857
;
-- 2019-11-01T06:37:07.471Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2019-11-01 07:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=561858
;
-- 2019-11-01T06:37:07.475Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2019-11-01 07:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=561859
;
-- 2019-11-01T06:37:07.479Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2019-11-01 07:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=563585
;
-- 2019-11-01T06:37:07.483Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2019-11-01 07:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=561860
;
-- 2019-11-01T06:38:05.234Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=561857
;
-- 2019-11-01T06:38:05.236Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=586146
;
-- 2019-11-01T06:38:05.238Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=586146
;
-- 2019-11-01T06:38:05.242Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Field WHERE AD_Field_ID=586146
;
-- 2019-11-01T06:38:34.336Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET AD_Name_ID=577091, Description=NULL, Help=NULL, Name='Zeitstempel',Updated=TO_TIMESTAMP('2019-11-01 07:38:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=591218
;
-- 2019-11-01T06:38:34.337Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(577091)
;
-- 2019-11-01T06:38:34.340Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=591218
;
-- 2019-11-01T06:38:34.341Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(591218)
;
-- 2019-11-01T06:39:50.076Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='In the UI we don''t display the more accurate but very technical CommissionFactTimestamp, but this field - but we use the timestamps AD_Element_ID for labling!',Updated=TO_TIMESTAMP('2019-11-01 07:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568774
;
-- 2019-11-01T06:40:49.541Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='This column contains a serialized java.time.Instant.
In the UI we don''t displaythis string, but Updated, because it''s much more human readable - but we use this column''s AD_Element_ID to label the Updated filed.',Updated=TO_TIMESTAMP('2019-11-01 07:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568784
;
-- 2019-11-01T06:41:32.451Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='In the UI we don''t display the more accurate but very technical CommissionFactTimestamp, but this column''s field. However, we use the timestamp''s AD_Element_ID to name this column''s field!',Updated=TO_TIMESTAMP('2019-11-01 07:41:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568774
;
-- 2019-11-01T06:42:07.584Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='This column contains a serialized java.time.Instant.
In the UI we don''t display this string, but Updated. Because it''s much more human readable . However, we use this column''s AD_Element_ID to name the Updated field.',Updated=TO_TIMESTAMP('2019-11-01 07:42:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568784
;
-- 2019-11-01T06:42:20.172Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='This column contains a serialized java.time.Instant, to be used internally.
In the UI we don''t display this string, but Updated. Because it''s much more human readable . However, we use this column''s AD_Element_ID to name the Updated field.',Updated=TO_TIMESTAMP('2019-11-01 07:42:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568784
;
-- 2019-11-01T06:42:41.135Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET TechnicalNote='In the UI we don''t display the more accurate but technical CommissionFactTimestamp, but this column''s field. However, we use the timestamp''s AD_Element_ID to name this column''s field!',Updated=TO_TIMESTAMP('2019-11-01 07:42:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=568774
; | the_stack |
-- 2017-08-18T15:08:45.582
-- 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,53028,540414,TO_TIMESTAMP('2017-08-18 15:08:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-08-18 15:08:45','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit')
;
-- 2017-08-18T15:08:45.588
-- 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=540414 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-08-18T15:08:47.803
-- 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,540554,540414,TO_TIMESTAMP('2017-08-18 15:08:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-08-18 15:08:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-08-18T15:09:06.480
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET AD_UI_Column_ID=540554, SeqNo=10,Updated=TO_TIMESTAMP('2017-08-18 15:09:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540442
;
-- 2017-08-18T15:09:24.685
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-08-18 15:09:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540442
;
-- 2017-08-18T15:11:55.304
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-08-18 15:11:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544411
;
-- 2017-08-18T15:11:55.312
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-08-18 15:11:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544401
;
-- 2017-08-18T15:12:22.412
-- 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,53484,0,53029,540444,547353,TO_TIMESTAMP('2017-08-18 15:12:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',210,0,0,TO_TIMESTAMP('2017-08-18 15:12:22','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-08-18T15:12:32.095
-- 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,53483,0,53029,540444,547354,TO_TIMESTAMP('2017-08-18 15:12:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',220,0,0,TO_TIMESTAMP('2017-08-18 15:12:32','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-08-18T15:12:53.041
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-08-18 15:12:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544405
;
-- 2017-08-18T15:12:53.043
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-08-18 15:12:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544399
;
-- 2017-08-18T15:12:53.044
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-08-18 15:12:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547353
;
-- 2017-08-18T15:13:17.505
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=40,Updated=TO_TIMESTAMP('2017-08-18 15:13:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544411
;
-- 2017-08-18T15:13:23.928
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=50,Updated=TO_TIMESTAMP('2017-08-18 15:13:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544401
;
-- 2017-08-18T15:13:33.225
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=70,Updated=TO_TIMESTAMP('2017-08-18 15:13:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544399
;
-- 2017-08-18T15:13:39.895
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=80,Updated=TO_TIMESTAMP('2017-08-18 15:13:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544400
;
-- 2017-08-18T15:13:45.697
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=90,Updated=TO_TIMESTAMP('2017-08-18 15:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544412
;
-- 2017-08-18T15:13:49.620
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=100,Updated=TO_TIMESTAMP('2017-08-18 15:13:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544406
;
-- 2017-08-18T15:13:53.105
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2017-08-18 15:13:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544416
;
-- 2017-08-18T15:13:56.647
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=120,Updated=TO_TIMESTAMP('2017-08-18 15:13:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544407
;
-- 2017-08-18T15:14:00.402
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=130,Updated=TO_TIMESTAMP('2017-08-18 15:14:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544414
;
-- 2017-08-18T15:14:06.072
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=140,Updated=TO_TIMESTAMP('2017-08-18 15:14:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544410
;
-- 2017-08-18T15:14:09.190
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=150,Updated=TO_TIMESTAMP('2017-08-18 15:14:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544409
;
-- 2017-08-18T15:14:12.359
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2017-08-18 15:14:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544413
;
-- 2017-08-18T15:14:15.616
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=170,Updated=TO_TIMESTAMP('2017-08-18 15:14:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544415
;
-- 2017-08-18T15:14:19.578
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=190,Updated=TO_TIMESTAMP('2017-08-18 15:14:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544408
;
-- 2017-08-18T15:14:23.201
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=200,Updated=TO_TIMESTAMP('2017-08-18 15:14:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547353
;
-- 2017-08-18T15:14:36.296
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=220,Updated=TO_TIMESTAMP('2017-08-18 15:14:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547353
;
-- 2017-08-18T15:14:41.140
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=230,Updated=TO_TIMESTAMP('2017-08-18 15:14:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=547354
;
-- 2017-08-18T15:14:58.344
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=210,Updated=TO_TIMESTAMP('2017-08-18 15:14:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544403
;
-- 2017-08-18T15:20:48.087
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Issue Methode', PrintName='Issue Methode',Updated=TO_TIMESTAMP('2017-08-18 15:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53253
;
-- 2017-08-18T15:20:48.099
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='IssueMethod', Name='Issue Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Element_ID=53253
;
-- 2017-08-18T15:20:48.117
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='IssueMethod', Name='Issue Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.', AD_Element_ID=53253 WHERE UPPER(ColumnName)='ISSUEMETHOD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:20:48.119
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='IssueMethod', Name='Issue Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Element_ID=53253 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:20:48.120
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Issue Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53253) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:20:48.137
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Issue Methode', Name='Issue Methode' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53253)
;
-- 2017-08-18T15:21:31.753
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Zuteil Methode',Updated=TO_TIMESTAMP('2017-08-18 15:21:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53503
;
-- 2017-08-18T15:21:52.286
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Zuteil Methode', PrintName='Zuteil Methode',Updated=TO_TIMESTAMP('2017-08-18 15:21:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53253
;
-- 2017-08-18T15:21:52.289
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='IssueMethod', Name='Zuteil Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Element_ID=53253
;
-- 2017-08-18T15:21:52.302
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='IssueMethod', Name='Zuteil Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.', AD_Element_ID=53253 WHERE UPPER(ColumnName)='ISSUEMETHOD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:21:52.304
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='IssueMethod', Name='Zuteil Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Element_ID=53253 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:21:52.306
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Zuteil Methode', Description='There are two methods for issue the components to Manufacturing Order', Help='Method Issue: The component are delivered one for one and is necessary indicate the delivered quantity for each component.
Method BackFlush: The component are delivered based in BOM, The delivered quantity for each component is based in BOM or Formula and Manufacturing Order Quantity.
Use the field Backflush Group for grouping the component in a Backflush Method.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53253) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:21:52.327
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Zuteil Methode', Name='Zuteil Methode' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53253)
;
-- 2017-08-18T15:22:58.265
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Retrograde Gruppe', PrintName='Retrograde Gruppe',Updated=TO_TIMESTAMP('2017-08-18 15:22:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53248
;
-- 2017-08-18T15:22:58.267
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='BackflushGroup', Name='Retrograde Gruppe', Description='The Grouping Components to the Backflush', Help='When the components are deliver is possible to indicated The Backflush Group this way you only can deliver the components that are for this Backflush Group.' WHERE AD_Element_ID=53248
;
-- 2017-08-18T15:22:58.278
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='BackflushGroup', Name='Retrograde Gruppe', Description='The Grouping Components to the Backflush', Help='When the components are deliver is possible to indicated The Backflush Group this way you only can deliver the components that are for this Backflush Group.', AD_Element_ID=53248 WHERE UPPER(ColumnName)='BACKFLUSHGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:22:58.279
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='BackflushGroup', Name='Retrograde Gruppe', Description='The Grouping Components to the Backflush', Help='When the components are deliver is possible to indicated The Backflush Group this way you only can deliver the components that are for this Backflush Group.' WHERE AD_Element_ID=53248 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:22:58.280
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Retrograde Gruppe', Description='The Grouping Components to the Backflush', Help='When the components are deliver is possible to indicated The Backflush Group this way you only can deliver the components that are for this Backflush Group.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53248) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:22:58.291
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Retrograde Gruppe', Name='Retrograde Gruppe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53248)
;
-- 2017-08-18T15:24:03.085
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Mengen Probe',Updated=TO_TIMESTAMP('2017-08-18 15:24:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53501
;
-- 2017-08-18T15:24:17.540
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Mengen Probe', PrintName='Mengen Probe',Updated=TO_TIMESTAMP('2017-08-18 15:24:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53247
;
-- 2017-08-18T15:24:17.541
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='Assay', Name='Mengen Probe', Description='Indicated the Quantity Assay to use into Quality Order', Help='Indicated the Quantity Assay to use into Quality Order' WHERE AD_Element_ID=53247
;
-- 2017-08-18T15:24:17.550
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Assay', Name='Mengen Probe', Description='Indicated the Quantity Assay to use into Quality Order', Help='Indicated the Quantity Assay to use into Quality Order', AD_Element_ID=53247 WHERE UPPER(ColumnName)='ASSAY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:24:17.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Assay', Name='Mengen Probe', Description='Indicated the Quantity Assay to use into Quality Order', Help='Indicated the Quantity Assay to use into Quality Order' WHERE AD_Element_ID=53247 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:24:17.552
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Mengen Probe', Description='Indicated the Quantity Assay to use into Quality Order', Help='Indicated the Quantity Assay to use into Quality Order' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53247) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:24:17.568
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Mengen Probe', Name='Mengen Probe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53247)
;
-- 2017-08-18T15:24:49.519
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='% Ausschuss (alt)',Updated=TO_TIMESTAMP('2017-08-18 15:24:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555024
;
-- 2017-08-18T15:25:07.056
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Erwartetes Ergebnis',Updated=TO_TIMESTAMP('2017-08-18 15:25:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=555025
;
-- 2017-08-18T15:25:16.533
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Erwartetes Ergebnis', PrintName='Erwartetes Ergebnis',Updated=TO_TIMESTAMP('2017-08-18 15:25:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542596
;
-- 2017-08-18T15:25:16.537
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='expectedResult', Name='Erwartetes Ergebnis', Description=NULL, Help=NULL WHERE AD_Element_ID=542596
;
-- 2017-08-18T15:25:16.547
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='expectedResult', Name='Erwartetes Ergebnis', Description=NULL, Help=NULL, AD_Element_ID=542596 WHERE UPPER(ColumnName)='EXPECTEDRESULT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:25:16.548
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='expectedResult', Name='Erwartetes Ergebnis', Description=NULL, Help=NULL WHERE AD_Element_ID=542596 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:25:16.549
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Erwartetes Ergebnis', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542596) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:25:16.560
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Erwartetes Ergebnis', Name='Erwartetes Ergebnis' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542596)
;
-- 2017-08-18T15:25:38.623
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Varianten Gruppe',Updated=TO_TIMESTAMP('2017-08-18 15:25:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=553984
;
-- 2017-08-18T15:25:48.540
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Varianten Gruppe', PrintName='Varianten Gruppe',Updated=TO_TIMESTAMP('2017-08-18 15:25:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542377
;
-- 2017-08-18T15:25:48.545
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='VariantGroup', Name='Varianten Gruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=542377
;
-- 2017-08-18T15:25:48.559
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='VariantGroup', Name='Varianten Gruppe', Description=NULL, Help=NULL, AD_Element_ID=542377 WHERE UPPER(ColumnName)='VARIANTGROUP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-08-18T15:25:48.561
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='VariantGroup', Name='Varianten Gruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=542377 AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:25:48.562
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Varianten Gruppe', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=542377) AND IsCentrallyMaintained='Y'
;
-- 2017-08-18T15:25:48.577
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Varianten Gruppe', Name='Varianten Gruppe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=542377)
;
-- 2017-08-18T15:27:06.031
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Kritische Komponente',Updated=TO_TIMESTAMP('2017-08-18 15:27:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53497
; | the_stack |
-- 30.10.2015 18:46
-- 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,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('R',0,540638,0,540595,TO_TIMESTAMP('2015-10-30 18:46:53','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Bankauszug (FiBU) (Jasper)','Y','N','N','N','Bankauszug (FiBU)',TO_TIMESTAMP('2015-10-30 18:46:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_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_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=540638 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 30.10.2015 18:46
-- 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, 540638, 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=540638)
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=53324 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=241 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=288 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=432 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=243 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=413 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=538 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=462 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=505 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=235 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=511 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=245 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=12, Updated=now(), UpdatedBy=100 WHERE Node_ID=251 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=13, Updated=now(), UpdatedBy=100 WHERE Node_ID=246 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=14, Updated=now(), UpdatedBy=100 WHERE Node_ID=509 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=15, Updated=now(), UpdatedBy=100 WHERE Node_ID=510 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=16, Updated=now(), UpdatedBy=100 WHERE Node_ID=496 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=17, Updated=now(), UpdatedBy=100 WHERE Node_ID=497 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=18, Updated=now(), UpdatedBy=100 WHERE Node_ID=304 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=19, Updated=now(), UpdatedBy=100 WHERE Node_ID=255 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=20, Updated=now(), UpdatedBy=100 WHERE Node_ID=286 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=21, Updated=now(), UpdatedBy=100 WHERE Node_ID=287 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=22, Updated=now(), UpdatedBy=100 WHERE Node_ID=438 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=23, Updated=now(), UpdatedBy=100 WHERE Node_ID=234 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=24, Updated=now(), UpdatedBy=100 WHERE Node_ID=244 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=25, Updated=now(), UpdatedBy=100 WHERE Node_ID=53190 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=26, Updated=now(), UpdatedBy=100 WHERE Node_ID=53187 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=27, Updated=now(), UpdatedBy=100 WHERE Node_ID=540642 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=28, Updated=now(), UpdatedBy=100 WHERE Node_ID=540651 AND AD_Tree_ID=10
;
-- 30.10.2015 18:46
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=236, SeqNo=29, Updated=now(), UpdatedBy=100 WHERE Node_ID=540638 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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
;
-- 30.10.2015 18:47
-- 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=540616 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540617 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540618 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540619 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540632 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540648 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540635 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540638 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540637 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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
;
-- 30.10.2015 18:47
-- 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=540616 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540617 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540618 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540619 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540632 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540648 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540635 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540637 AND AD_Tree_ID=10
;
-- 30.10.2015 18:47
-- 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=540638 AND AD_Tree_ID=10
; | the_stack |
-- 2020-01-17T12:42:22.595Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='', Help='',Updated=TO_TIMESTAMP('2020-01-17 14:42:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='de_CH'
;
-- 2020-01-17T12:42:22.631Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'de_CH')
;
-- 2020-01-17T12:42:54.891Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.',Updated=TO_TIMESTAMP('2020-01-17 14:42:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='de_CH'
;
-- 2020-01-17T12:42:54.893Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'de_CH')
;
-- 2020-01-17T12:43:06.801Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Name='Provisionsbasispunkte pro Preiseinheit', PrintName='Provisionsbasispunkte pro Preiseinheit',Updated=TO_TIMESTAMP('2020-01-17 14:43:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='de_CH'
;
-- 2020-01-17T12:43:06.802Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'de_CH')
;
-- 2020-01-17T12:43:26.944Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='', Help='', Name='Provisionsbasispunkte pro Preiseinheit', PrintName='Provisionsbasispunkte pro Preiseinheit',Updated=TO_TIMESTAMP('2020-01-17 14:43:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='de_DE'
;
-- 2020-01-17T12:43:26.945Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'de_DE')
;
-- 2020-01-17T12:43:26.952Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(577454,'de_DE')
;
-- 2020-01-17T12:43:26.954Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='' WHERE AD_Element_ID=577454
;
-- 2020-01-17T12:43:26.955Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='', AD_Element_ID=577454 WHERE UPPER(ColumnName)='BASE_COMMISSION_POINTS_PER_PRICE_UOM' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2020-01-17T12:43:26.956Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='' WHERE AD_Element_ID=577454 AND IsCentrallyMaintained='Y'
;
-- 2020-01-17T12:43:26.956Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=577454) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 577454)
;
-- 2020-01-17T12:43:26.975Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Provisionsbasispunkte pro Preiseinheit', Name='Provisionsbasispunkte pro Preiseinheit' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=577454)
;
-- 2020-01-17T12:43:26.976Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='', CommitWarning = NULL WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:26.977Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Provisionsbasispunkte pro Preiseinheit', Description='', Help='' WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:26.978Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Provisionsbasispunkte pro Preiseinheit', Description = '', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:32.015Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.',Updated=TO_TIMESTAMP('2020-01-17 14:43:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='de_DE'
;
-- 2020-01-17T12:43:32.017Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'de_DE')
;
-- 2020-01-17T12:43:32.026Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(577454,'de_DE')
;
-- 2020-01-17T12:43:32.027Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.' WHERE AD_Element_ID=577454
;
-- 2020-01-17T12:43:32.029Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', AD_Element_ID=577454 WHERE UPPER(ColumnName)='BASE_COMMISSION_POINTS_PER_PRICE_UOM' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2020-01-17T12:43:32.030Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Base_Commission_Points_Per_Price_UOM', Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.' WHERE AD_Element_ID=577454 AND IsCentrallyMaintained='Y'
;
-- 2020-01-17T12:43:32.030Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=577454) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 577454)
;
-- 2020-01-17T12:43:32.044Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', CommitWarning = NULL WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:32.046Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Provisionsbasispunkte pro Preiseinheit', Description='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', Help='Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.' WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:32.047Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Provisionsbasispunkte pro Preiseinheit', Description = 'Gibt an, wie viele Provisionspunkte pro 1 Menge des Produktes in der Preiseinheit berechnet werden.', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 577454
;
-- 2020-01-17T12:43:43.312Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='', Help='',Updated=TO_TIMESTAMP('2020-01-17 14:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='en_US'
;
-- 2020-01-17T12:43:43.313Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'en_US')
;
-- 2020-01-17T12:43:47.435Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Specifies how many commission points are calculated per 1 quantity of the product in the price UOM.', Help='Specifies how many commission points are calculated per 1 quantity of the product in the price UOM.',Updated=TO_TIMESTAMP('2020-01-17 14:43:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='en_US'
;
-- 2020-01-17T12:43:47.437Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'en_US')
;
-- 2020-01-17T12:44:02.823Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='', Help='',Updated=TO_TIMESTAMP('2020-01-17 14:44:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577454 AND AD_Language='nl_NL'
;
-- 2020-01-17T12:44:02.824Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577454,'nl_NL')
;
-- 2020-01-17T12:45:55.743Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Specifies the percentage that the sales partner takes out of his commission to cede to the configured customer as a price deduction.', Help='Specifies the percentage that the sales partner takes out of his commission to cede to the configured customer as a price deduction.',Updated=TO_TIMESTAMP('2020-01-17 14:45:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577415 AND AD_Language='en_US'
;
-- 2020-01-17T12:45:55.744Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577415,'en_US')
;
-- 2020-01-17T12:46:07.799Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.',Updated=TO_TIMESTAMP('2020-01-17 14:46:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577415 AND AD_Language='de_DE'
;
-- 2020-01-17T12:46:07.800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577415,'de_DE')
;
-- 2020-01-17T12:46:07.820Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(577415,'de_DE')
;
-- 2020-01-17T12:46:07.821Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='Margin_Percent', Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.' WHERE AD_Element_ID=577415
;
-- 2020-01-17T12:46:07.822Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Margin_Percent', Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', AD_Element_ID=577415 WHERE UPPER(ColumnName)='MARGIN_PERCENT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2020-01-17T12:46:07.822Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='Margin_Percent', Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.' WHERE AD_Element_ID=577415 AND IsCentrallyMaintained='Y'
;
-- 2020-01-17T12:46:07.823Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=577415) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 577415)
;
-- 2020-01-17T12:46:07.834Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', CommitWarning = NULL WHERE AD_Element_ID = 577415
;
-- 2020-01-17T12:46:07.835Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Marge %', Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.' WHERE AD_Element_ID = 577415
;
-- 2020-01-17T12:46:07.836Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Marge %', Description = 'Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 577415
;
-- 2020-01-17T12:46:13.792Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.', Help='Gibt den Prozentsatz an, den der Vertriebspartner von seiner Provision abzieht, um sie an den konfigurierten Kunden als Preisnachlass abzutreten.',Updated=TO_TIMESTAMP('2020-01-17 14:46:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577415 AND AD_Language='de_CH'
;
-- 2020-01-17T12:46:13.793Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577415,'de_CH')
; | the_stack |
-- MySQL dump 10.13 Distrib 5.6.10, for Win32 (x86)
--
-- Host: localhost Database: test
-- ------------------------------------------------------
-- Server version 5.7.2-m12
/*!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 `
hñ9~[aêr×âþ·mû{àæctñ·ãð/ãg!þ1×ï~ñ¯]ðpæüð!¾ %põa`
--
DROP TABLE IF EXISTS `
hñ9~[aêr×âþ·mû{
àæctñ·ãð/ãg!þ1×ï~ñ¯]ðpæüð!¾
%põa`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `
hñ9~[aêr×âþ·mû{
àæctñ·ãð/ãg!þ1×ï~ñ¯]ðpæüð!¾
%põa` (
`a6` int(11) DEFAULT NULL,
`NïßCO dQ|©îNfF]cÙªÊB6a*ýei4÷(9ãd` year(4) NOT NULL DEFAULT '0000',
`ïgâÅÈWÖ_ÿÝÑH8¿úÛ ^ìWYiøJSèÅâFµAçG
¡ÀÜVò¿ßnäX` decimal(64,0) DEFAULT '0',
`å ]![¥ô*[tw²TÔJùÃÜ)~´öÚTØ¡` multipolygon NOT NULL,
`S½R¦5êðQå[¨ÕÝR°@oÏX6*G^éØÔ,$ùÐÖmT×3³m+&Ñú6
J»Á;S` polygon NOT NULL,
`Ð<¹(¨_ûtLB¹ÒpE¸n¯§I1Ë9£ØiMq]©cðЯ¬"½çƲ>T` binary(1) NOT NULL,
`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/` date NOT NULL DEFAULT '2012-04-18',
`füE±EüröjFø¸Y¨ìë+_±s)&Jª£
ñ!ÅÚ¤3A9z.ã "S` decimal(52,2) NOT NULL DEFAULT '100000.00',
`ìkIµã¦Æ¹7'¸£é` date NOT NULL DEFAULT '2013-05-22',
`Ù~Ã` double NOT NULL DEFAULT '-1.389e74',
PRIMARY KEY (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx31` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx33` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx35` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx36` (`å ]![¥ô*[tw²TÔJùÃÜ)~´öÚTØ¡`),
KEY `idx37` (`ìkIµã¦Æ¹7'¸£é`),
KEY `idx38` (`a6`),
KEY `idx40` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx41` (`a6`),
KEY `idx43` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx45` (`â 81Îèdä3Ô}IN
yþ8Êh pîÂõGó_ýG5/`),
KEY `idx46` (`füE±EüröjFø¸Y¨ìë+_±s)&Jª£
ñ!ÅÚ¤3A9z.ã "S`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `;zèãsíçñózâ~fåèè¯íú6wzfcüôøj£ ¡ñéæú·'ôbîaráè®`
--
DROP TABLE IF EXISTS `;zèãsíçñózâ~fåèè¯íú6wzfcüôøj£ ¡ñéæú·'ôbîaráè®`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `;zèãsíçñózâ~fåèè¯íú6wzfcüôøj£ ¡ñéæú·'ôbîaráè®` (
`a1` int(11) DEFAULT NULL,
`èFàVa²N0¿ûcDJÿ{£` time DEFAULT '04:46:16',
`(ûòRîVDÂfnòT®` point NOT NULL,
`7ñv±D"/Ý»þÉ@üêáO7Bïg0±ò9ü*xoý¸V©s²*¸&+` int(11) DEFAULT '0',
`*` decimal(56,22) NOT NULL DEFAULT '844.0000000000000000000000',
`º¹ÙÅ@aN}ѽMó-°/4ýûà¸k<+½I$¨§©d7I` datetime NOT NULL DEFAULT '2012-08-16 13:21:22',
`¡uï[@E9Oí¾«å>^¤róm87vq¥ÕÙÑEÍPæÛªêW¼&ò«±NøØæï<íIH¦` int(10) unsigned NOT NULL DEFAULT '100001',
`@&` mediumint(8) unsigned zerofill NOT NULL DEFAULT '00000442',
`Çɸ°fjo0¦7ÚøTq
` point NOT NULL,
`YOànfç¶|?ôh¤½â9C¿àebT^µj` date NOT NULL DEFAULT '2012-08-09',
`ÉÕHuõ»îÕ¯3ÖqÃä/53¥§:¹` geometrycollection NOT NULL,
`ÖÑÌÄX` timestamp NOT NULL DEFAULT '2013-04-02 11:48:43',
`}kïÿ0¬ðqKa60ç:¾¡;Ta#m´,¡e4W¥` int(10) unsigned NOT NULL DEFAULT '100001',
`ùº¨0%Ìxs]%øÃëÊ?U` double NOT NULL DEFAULT '9.698453e95',
`ÔÑeÑL%íô¯×®á²¯Eà3¥h¢aÝ&ɦ<_ØÃôF_BiNþ*d h®÷çûEÛ` time DEFAULT '12:30:22',
`kà0£ðm
I÷éC-ôWÝ-ëì,Ä\Æ¢ôñRî¨aÃ~vO` enum('vlpcllxfrk','yuckuq','emilsrwh','oaifgwfdgd','xuivqpnnc','nbmwdxkcc','m','eiwczyju','ffpxxuva','cc','rsileffjb','','ztcirklchd','egcragsl','','','mrrltyukri','lomgafa','haosb','wacroxiihg','b','whfkc','uvztcjsugk','khticyzeb','','xeqw','','mf','lthglquszp','cuhcxwk','','xg','qpu','v','dumjmg','pvtwuqpzny','cj','lqbzrdm','vyjnjchvsm','hp','nbsl','aei','gicdaejjjv','vhzyr','uutrxpfgg','iuhkeawsl','ov','bvfy','mty','hqoypgrgdo','krylhgdu','nniby','f','pfopctgscb','mzw','u','ipw','yhwbvebaxd','ed','rvdljzz') NOT NULL,
`¦?Jjá¦~.F¨ a£Z^»;ê` timestamp NOT NULL DEFAULT '2012-08-10 09:14:54',
`=~0` linestring NOT NULL,
`Ä{XPH^;ÞÛâä|+ßbûª%&«` decimal(20,11) unsigned DEFAULT '1482.99600000000',
`ÎY,w¡Z«s>ÿúÙ÷éßõ2Êû«3´ê8é'mñ}XRݨ` decimal(63,28) NOT NULL DEFAULT '-99999.0000000000000000000000000000',
`±` decimal(56,7) unsigned DEFAULT '0.0000000',
`Zcï3÷˳¾aÈ©J` decimal(62,12) NOT NULL DEFAULT '99999.000000000000',
`þîRºÚµoe0üRëÔïdAKb2C ø< öísS"S¼@¡]ýc%G` mediumblob NOT NULL,
`ôR*ýÝÏFÊ
Çg3¾\Kg¬p¡p¶ÃÕÑ®ý
Ä` varchar(176) CHARACTER SET utf8 NOT NULL DEFAULT 'amuprygbcxgp',
`tev+·¿# úPÏ` point NOT NULL,
`ýÉ{cm"ðOÅ.Ö¨Ç` year(4) DEFAULT '0000',
`zpÜ·©ºsúpÜ¿tXþ¿
e}UqJQ~WèKÃQ*÷Ä»` datetime NOT NULL DEFAULT '2012-05-28 21:02:41',
`KÍP_ý)\joÚÒæ2ÿ(yxTÈuÊܳ½Vp¤CÙ` decimal(33,28) DEFAULT '0.0000000000000000000000000000',
`Ru-Ù?
D?Ì!ÛyVTÌ-ã` datetime NOT NULL DEFAULT '2013-09-09 22:20:10',
`o-b
sÕ*àË]*\7ÿlí!ª²èy¼en;J'ª¨³R1ò6;Éz¢` mediumint(9) NOT NULL DEFAULT '38',
`CÈa5SýH'ʯC¤6Leöf=À|.D¥ÜO$ d.6_Çÿ¤½è\ ¹Y¿` tinyblob NOT NULL,
`)ø2ÛáDÜ
aâ8Rè«®L` decimal(36,13) DEFAULT '0.0000000000000',
`˯XBa°äñ]$Ô~ßsa4¥úÞÛOA«` point DEFAULT NULL,
`¯23Åü` binary(1) NOT NULL,
`º´®æðlÕ` multilinestring DEFAULT NULL,
`Q5öÏÚÙûÑð` geometrycollection DEFAULT NULL,
`g^µ<wéHÌó)+<®:áßÕ{
Â--Qp°!â|%ÉǸ-ãu¸8f±ä^;ò` int(10) unsigned NOT NULL DEFAULT '100001',
`¨õ^£@.p'tñsÔÕ)³` time NOT NULL DEFAULT '13:31:31',
`P÷w§ª5[Ãá8wJ¼´6WѨ¶YN·^äÀ8>wÈ9ÙfÆzÇP#éî_h` datetime NOT NULL DEFAULT '2012-04-19 11:01:07',
`õÖ!>` longtext NOT NULL,
`õÎ;¨=Þ1µÝ6£ípyoü@Õæu,bãcWg^FJa FÐFA` mediumtext NOT NULL,
`Á2í?kÌ@Y éÊüyCætÉX` smallint(5) unsigned zerofill NOT NULL DEFAULT '00000',
`:Ð7ûÛ#Ýx½²±Dli PdñÀ¼3ÈÌݯ` char(249) CHARACTER SET utf8 NOT NULL DEFAULT 'sfmgdvi',
`
Ï¥ó$í¤Ùíç[4x|xE7|v͵:6eö%÷ª` multipoint NOT NULL,
`%èöE¯,ÜkºÛÓ¨yLIä*ÿ¬y"e]p^ýHçPýË}ëa´#ð` decimal(15,1) unsigned zerofill DEFAULT '00000000001323.0',
`b*¸
o©A»¦mëæLÇ*©ÌÂÀ` date DEFAULT '2012-11-26',
`ηxçîØ»ÚKtÌï{㿪:Xèd±ÌIF¢aÃÏ-°îhÆ¢§` double unsigned DEFAULT '1521.3673',
`>3×¾>/ú` enum('jho','g','aosxgis','xh','m','gcqdkj','jjo','zi','xm','z','kp','','','lpabnzuu','vnmsggbr','e','sk','ybuwwnfwkn','pneapvgfz','iq','gwufwqumc','kxgzbsinqm','','rd','ktuqtclslg','f','l','juaspeyxm','jcey','pkldcmnjtn','zjxhsuh','d','sorytcher','rlga','pmj','hozo','x','','xub','lt','moxjfyshw','f','c','aybq','ctjhrk','l','nlkubzme','lqba','tnjwdtmchf','cijigdvs','dtaewounc','bsmfcnr','trm','lfmnuvjp','edcqqnbpy','phck','xwzhhm','ugstv') NOT NULL,
`
³Vpºkze9Eã2
Pº0Û)kQÉ
}ÙócSEÉ»¡åĶv)Ѽó*»Ï` point DEFAULT NULL,
`í{>4þ¯dU0õ°_@ì*Ç_` timestamp NOT NULL DEFAULT '2012-12-28 11:58:27',
`P^ñË÷'Û2z<o-®¸ÈÓ5Ëä ð1üRûÿ\.cûµùR@âéô` date DEFAULT '2013-10-17',
PRIMARY KEY (`Zcï3÷˳¾aÈ©J`,`@&`,`¦?Jjá¦~.F¨ a£Z^»;ê`),
UNIQUE KEY `idx10` (`>3×¾>/ú`),
KEY `idx0` (`Zcï3÷˳¾aÈ©J`,`@&`,`¦?Jjá¦~.F¨ a£Z^»;ê`),
KEY `idx1` (`ÎY,w¡Z«s>ÿúÙ÷éßõ2Êû«3´ê8é'mñ}XRݨ`) USING BTREE,
KEY `idx2` (`%èöE¯,ÜkºÛÓ¨yLIä*ÿ¬y"e]p^ýHçPýË}ëa´#ð`,`@&`,`kà0£ðm
I÷éC-ôWÝ-ëì,Ä\Æ¢ôñRî¨aÃ~vO`,`b*¸
o©A»¦mëæLÇ*©ÌÂÀ`,`P^ñË÷'Û2z<o-®¸ÈÓ5Ëä ð1üRûÿ\.cûµùR@âéô`),
KEY `idx3` (`*`) USING BTREE,
KEY `idx4` (`o-b
sÕ*àË]*\7ÿlí!ª²èy¼en;J'ª¨³R1ò6;Éz¢`) USING HASH,
KEY `idx7` (`ÔÑeÑL%íô¯×®á²¯Eà3¥h¢aÝ&ɦ<_ØÃôF_BiNþ*d h®÷çûEÛ`) USING BTREE,
KEY `idx9` (`%èöE¯,ÜkºÛÓ¨yLIä*ÿ¬y"e]p^ýHçPýË}ëa´#ð`,`ôR*ýÝÏFÊ
Çg3¾\Kg¬p¡p¶ÃÕÑ®ý
Ä`),
KEY `idx12` (`õÎ;¨=Þ1µÝ6£ípyoü@Õæu,bãcWg^FJa FÐFA`(59)) USING HASH,
KEY `idx13` (`>3×¾>/ú`) USING BTREE,
KEY `idx15` (`í{>4þ¯dU0õ°_@ì*Ç_`,`¯23Åü`,`KÍP_ý)\joÚÒæ2ÿ(yxTÈuÊܳ½Vp¤CÙ`,`º¹ÙÅ@aN}ѽMó-°/4ýûà¸k<+½I$¨§©d7I`),
KEY `idx17` (`P÷w§ª5[Ãá8wJ¼´6WѨ¶YN·^äÀ8>wÈ9ÙfÆzÇP#éî_h`,`zpÜ·©ºsúpÜ¿tXþ¿
e}UqJQ~WèKÃQ*÷Ä»`,`P^ñË÷'Û2z<o-®¸ÈÓ5Ëä ð1üRûÿ\.cûµùR@âéô`,`¨õ^£@.p'tñsÔÕ)³`),
KEY `idx18` (`í{>4þ¯dU0õ°_@ì*Ç_`),
KEY `idx19` (`>3×¾>/ú`,`èFàVa²N0¿ûcDJÿ{£`,`ÔÑeÑL%íô¯×®á²¯Eà3¥h¢aÝ&ɦ<_ØÃôF_BiNþ*d h®÷çûEÛ`),
KEY `idx20` (`ùº¨0%Ìxs]%øÃëÊ?U`,`YOànfç¶|?ôh¤½â9C¿àebT^µj`,`º¹ÙÅ@aN}ѽMó-°/4ýûà¸k<+½I$¨§©d7I`,`)ø2ÛáDÜ
aâ8Rè«®L`),
KEY `idx23` (`P^ñË÷'Û2z<o-®¸ÈÓ5Ëä ð1üRûÿ\.cûµùR@âéô`,`±`),
KEY `idx24` (`ùº¨0%Ìxs]%øÃëÊ?U`,`Ru-Ù?
D?Ì!ÛyVTÌ-ã`) USING BTREE,
KEY `idx26` (`kà0£ðm
I÷éC-ôWÝ-ëì,Ä\Æ¢ôñRî¨aÃ~vO`,`ηxçîØ»ÚKtÌï{㿪:Xèd±ÌIF¢aÃÏ-°îhÆ¢§`,`ùº¨0%Ìxs]%øÃëÊ?U`,`g^µ<wéHÌó)+<®:áßÕ{
Â--Qp°!â|%ÉǸ-ãu¸8f±ä^;ò`,`P÷w§ª5[Ãá8wJ¼´6WѨ¶YN·^äÀ8>wÈ9ÙfÆzÇP#éî_h`),
KEY `idx27` (`ùº¨0%Ìxs]%øÃëÊ?U`,`ÔÑeÑL%íô¯×®á²¯Eà3¥h¢aÝ&ɦ<_ØÃôF_BiNþ*d h®÷çûEÛ`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `hâæøta³ åñãñ¬ávpöut?íûh<u´u6üí½¦ ãí´9k=ôðê"±ìýx`
--
DROP TABLE IF EXISTS `hâæøta³ åñãñ¬ávpöut?íûh<u´u6üí½¦ ãí´9k=ôðê"±ìýx`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hâæøta³ åñãñ¬ávpöut?íûh<u´u6üí½¦ ãí´9k=ôðê"±ìýx` (
`a8` int(10) unsigned zerofill NOT NULL DEFAULT '0000000000',
`»þ¡ÈpÒ2ÉhE"Æ
´Ú` bit(44) NOT NULL DEFAULT b'11000011010100000',
`ÌÚ{Êò{)å¡Feë´?ÿÛå¨%νízÅ4ºf±¾XË;` char(141) CHARACTER SET utf8 NOT NULL,
`ifß±¢{v8+G»cdP
DîIø}8¤N£qh ,Æ #ÊÃ3ï
a33-f0^!` smallint(6) DEFAULT '0',
`ß` geometry NOT NULL,
`Úþ«(H¥oOL=î}u{oq³ø§élò` date DEFAULT '2013-05-28',
`iFÏ a*¹ý¤!º+&#¯LÖy
[âçn03Eðb'ò«.y§:Ð` multipoint NOT NULL,
`A6ºO8Ô*<` binary(1) NOT NULL,
`S¡èÕ>ÝCQ PÚô#÷2Tió!l´¾äú+daÿØÂAV` geometry NOT NULL,
`Û<3Ñ©r {ÕWÂa}8a±ºä_KËØZzÒÖæUmbk fqTéAÁå³ZkaÖÉõP` varbinary(243) NOT NULL,
`âAÎíýKb$Åð%|Ò&!Qàí±ÂíF` blob NOT NULL,
`Cò"
e06/±ÎãADÎz` date NOT NULL DEFAULT '2013-06-12',
`=\Ha-"âos²ûÒh8±ÛaUU` mediumblob NOT NULL,
`a
ê°$9b}¤}ºwlë
Ðl-ÐðO` timestamp NOT NULL DEFAULT '2013-10-02 14:14:16',
`ÊÀÍÙ§úå½ ónE9]éföÝh¿|²a#[aPaùöWnØá(ö` bit(43) DEFAULT b'11001100100',
`ïÎý¡pÏò9Ùëÿ»}Üß^Û[ãv¦ãñoÝØTæcÕYãaýLô
Ã\( ¿/bîÎ;K[^gR` set('g','bqlxzvaq','jdjqa','','ajuycjms','l','b','tallvpc','aohl','rrkmf','is','cljtffvp','','uj','fhccvion','xjfkelvppf','','eq','','ih','ygtfc','wqcjwqatx','fl','roerworad','ewbcvrgocu','spbnit','xtdhaj','m','ftymwfdp','zroc','pirgtwm','shtlpmjewc','oveweqe','zmsglkeg','zlnzr','blahtwinq','ufctda','fw','fnslcxz','jseho','gfgaecqqj','kjyhq','teic','fplpegtofh','','fu','dbpldcboec','kjlgvk','','yfszfj','fslllhiky','dlrjofzdki','fpmcjj','srjwxrhy','wmgla','mjxysz','zrytmlcs','jqdilnjg') NOT NULL,
`íJgìz0ÎÃ` text NOT NULL,
`¯&` double DEFAULT '-4.53e47',
`_iÿµ[v^È^ཡ<jþ°9´³FÚ_Ï·l.ßaÂT*5bZÉiä¡ê»â¾R` bigint(20) unsigned NOT NULL DEFAULT '871022800000',
`<¯X` geometry NOT NULL,
`ê0ÇGÆÖüúl¦ñF` timestamp NOT NULL DEFAULT '2012-12-17 11:52:42',
`¶àü_À±¨£éHÅ@jïìÏÀ°ôé4Î` float NOT NULL DEFAULT '100000',
`2gíèqõh@m¸Ù#0o¢HËÙÁõ!½ÀÓK
hÎ)ZÕbÚÖN®Q._ÀÏÅÅ;y¿â.` mediumint(8) unsigned NOT NULL DEFAULT '0',
`ÈòüþªaÀuÁ'êØ&â¼µ8õf|Ûcôf)íí7x` binary(1) NOT NULL,
PRIMARY KEY (`2gíèqõh@m¸Ù#0o¢HËÙÁõ!½ÀÓK
hÎ)ZÕbÚÖN®Q._ÀÏÅÅ;y¿â.`,`A6ºO8Ô*<`,`¶àü_À±¨£éHÅ@jïìÏÀ°ôé4Î`,`ÌÚ{Êò{)å¡Feë´?ÿÛå¨%νízÅ4ºf±¾XË;`(99),`a8`),
UNIQUE KEY `idx86` (`a
ê°$9b}¤}ºwlë
Ðl-ÐðO`,`ïÎý¡pÏò9Ùëÿ»}Üß^Û[ãv¦ãñoÝØTæcÕYãaýLô
Ã\( ¿/bîÎ;K[^gR`,`a8`),
KEY `idx79` (`ß`),
UNIQUE KEY `idx87` (`íJgìz0ÎÃ`(15)) USING BTREE,
KEY `idx62` (`¯&`) USING HASH,
KEY `idx66` (`Û<3Ñ©r {ÕWÂa}8a±ºä_KËØZzÒÖæUmbk fqTéAÁå³ZkaÖÉõP`(92)) USING BTREE,
KEY `idx67` (`=\Ha-"âos²ûÒh8±ÛaUU`(141)) USING BTREE,
KEY `idx68` (`=\Ha-"âos²ûÒh8±ÛaUU`(82)),
KEY `idx76` (`A6ºO8Ô*<`),
KEY `idx78` (`a8`),
KEY `idx80` (`_iÿµ[v^È^ཡ<jþ°9´³FÚ_Ï·l.ßaÂT*5bZÉiä¡ê»â¾R`),
KEY `idx82` (`Úþ«(H¥oOL=î}u{oq³ø§élò`),
KEY `idx84` (`ÈòüþªaÀuÁ'êØ&â¼µ8õf|Ûcôf)íí7x`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `r1`
--
DROP TABLE IF EXISTS `r1`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `r1` (
`a` smallint(6) NOT NULL,
`b` text,
PRIMARY KEY (`a`),
KEY `d` (`b`(55)),
KEY `f` (`b`(255)),
KEY `h` (`b`(30))
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0001`
--
DROP TABLE IF EXISTS `t0001`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0001` (
`a1` int(11) NOT NULL,
`col1` multipolygon NOT NULL,
`col3` linestring NOT NULL,
`col4` text NOT NULL,
`col5` multipoint NOT NULL,
`col6` mediumtext NOT NULL,
`col7` set('','rnmingnfmm','srfwqmfw','mqhbtf','p','hgysrq','zoejxhs','tjxksgvc','','vr','si','nctllps','qmlgj','wpaefyf','gqrrrkjvj','f','othovcslmk','','','o','wbl','bfgetgmwb','fw','n','pgogdeaeo','aaexktb','euot','d','sltuowyp','fnyhusmvk','ddynt','scsef','','','az','cktb','sh','ts','y','','pwjezukku','e','u','qietew','xyvj','','nmwzufrvqx') NOT NULL,
`col8` datetime DEFAULT '2012-11-30 02:11:24',
`col9` linestring DEFAULT NULL,
`col10` geometrycollection NOT NULL,
`col11` enum('awxqhtxsvw','msyjug','dqynxowc','fgxjzknrdl','ocakyk','mfmr','kde','epe','k','inyyuwv','iuiynemt','bx') NOT NULL,
`col12` decimal(47,27) NOT NULL DEFAULT '99999.000000000000000000000000000',
`col13` binary(1) NOT NULL,
`col14` char(229) CHARACTER SET utf8 NOT NULL,
`col15` double unsigned DEFAULT '597.288',
`col16` smallint(6) NOT NULL DEFAULT '-198',
`col17` geometrycollection DEFAULT NULL,
`col18` longblob NOT NULL,
`col19` tinyint(1) NOT NULL DEFAULT '0',
`col20` mediumblob NOT NULL,
`col21` double unsigned DEFAULT '1291.8246',
`col22` float unsigned NOT NULL DEFAULT '1105.6',
`col23` tinyint(1) NOT NULL DEFAULT '0',
`col25` int(11) NOT NULL DEFAULT '0',
`col26` timestamp NOT NULL DEFAULT '2013-12-28 15:51:26',
`col27` mediumtext NOT NULL,
`col28` varchar(126) CHARACTER SET utf8 NOT NULL DEFAULT 'rvdhezyzawiczzqfiocetwiuqybkdrpgdbyklawycjizkkswogtcmaeenrkmatsyhplwwciyjbvuwphpzptmdn',
`col29` timestamp NOT NULL DEFAULT '2014-03-11 13:26:54',
`col32` date NOT NULL DEFAULT '2012-10-02',
`col33` longtext NOT NULL,
`col34` geometry NOT NULL,
`col35` timestamp NOT NULL DEFAULT '2013-05-02 01:09:57',
`col36` bigint(20) DEFAULT '1118',
`col38` point DEFAULT NULL,
`col39` enum('darc','dilfaqj','c','n','qhxrowflm','xuxrxs','qdhwpf','yj','qpeimahna','mai','fgesjugte','zdocdi','oxhvohg','pwjyre','','kdj','ecblhooeb','ekzij','cd','ig','ojuudqk','alszlckv','ciyfd','ub','yfuqyrz','l','yvi','fnlzyxgj','y','miqovbpq','vikk','cwxqoxssi','nmut','eyzkjk','l','mhplfso','jmjzfbguw') NOT NULL,
`col41` decimal(34,19) unsigned zerofill DEFAULT '000000000000700.7444000000000000000',
`col43` time NOT NULL DEFAULT '19:28:29',
`col46` multipoint DEFAULT NULL,
`col47` point DEFAULT NULL,
`col49` geometrycollection DEFAULT NULL,
`col50` longblob NOT NULL,
`col51` text NOT NULL,
`col52` geometry NOT NULL,
`col53` polygon NOT NULL,
`col54` geometry NOT NULL,
`col55` blob NOT NULL,
`col56` mediumtext NOT NULL,
`col57` tinyblob NOT NULL,
`col60` int(10) unsigned NOT NULL DEFAULT '876',
`col61` year(4) DEFAULT '0000',
`col62` tinyint(1) DEFAULT NULL,
`col63` bigint(20) unsigned DEFAULT '0',
`col64` date DEFAULT '2013-07-25',
`col65` multipolygon NOT NULL,
`col66` timestamp NOT NULL DEFAULT '2013-01-20 03:35:19',
`col67` text NOT NULL,
`col68` int(11) NOT NULL DEFAULT '100000',
`col69` double unsigned zerofill NOT NULL DEFAULT '0000000000000000000630',
`col70` tinyint(3) unsigned DEFAULT '0',
`col71` varbinary(239) NOT NULL,
`col72` linestring NOT NULL,
`col74` text NOT NULL,
`col75` decimal(25,17) unsigned NOT NULL DEFAULT '485.00000000000000000',
`col78` time DEFAULT '07:43:03',
`col79` timestamp NOT NULL DEFAULT '2013-05-14 03:07:28',
`col80` geometrycollection DEFAULT NULL,
`col82` time NOT NULL DEFAULT '11:51:48',
`col83` geometrycollection DEFAULT NULL,
`col84` date DEFAULT '2013-10-12',
`col86` binary(1) NOT NULL,
`col87` datetime NOT NULL DEFAULT '2013-12-13 02:03:21',
`col88` datetime NOT NULL DEFAULT '2013-04-08 15:14:18',
`col90` timestamp NOT NULL DEFAULT '2012-12-11 01:32:47',
`col91` tinytext NOT NULL,
`col92` timestamp NOT NULL DEFAULT '2013-08-22 06:36:12',
`col93` int(10) unsigned NOT NULL DEFAULT '1399',
`col94` multipolygon NOT NULL,
PRIMARY KEY (`col93`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0002`
--
DROP TABLE IF EXISTS `t0002`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0002` (
`a2` int(11) DEFAULT NULL,
`col97` datetime NOT NULL DEFAULT '2014-04-02 17:19:08',
`col99` datetime NOT NULL DEFAULT '2012-12-29 05:44:17',
`col100` multipolygon DEFAULT NULL,
`col101` binary(1) NOT NULL,
`col102` point NOT NULL,
`col103` longblob NOT NULL,
`col104` multipoint DEFAULT NULL,
`col106` bit(30) DEFAULT b'11000011010100001',
`col107` text NOT NULL,
`col109` timestamp NOT NULL DEFAULT '2014-03-27 09:47:55',
`col110` binary(1) NOT NULL,
`col111` datetime NOT NULL DEFAULT '2013-08-02 09:23:17',
`col112` int(10) unsigned DEFAULT '0',
`col113` multilinestring DEFAULT NULL,
`col115` longtext NOT NULL,
`col116` binary(1) NOT NULL,
`col117` tinyint(1) NOT NULL DEFAULT '0',
`col119` linestring NOT NULL,
`col120` timestamp NOT NULL DEFAULT '2013-05-29 07:34:40',
`col121` linestring NOT NULL,
`col122` point DEFAULT NULL,
`col123` point NOT NULL,
`col124` linestring DEFAULT NULL,
`col125` multipolygon NOT NULL,
`col126` varchar(191) CHARACTER SET utf8 NOT NULL DEFAULT 'zgpezylvgufytzonmctpelwzgghkxcisqbkwddmeikyghyhukayekbspvjsvzbooqkdituiqbyaonvfuhduujmwfmwzciwnlxongffqpudkvtnjcrzlierqocrlfsiumscinnoqsmpgdrdjarjlcqoueelibaoffmhxjzzjwcbadipu',
`col127` double unsigned DEFAULT '1099.668',
`col128` date DEFAULT '2012-11-28',
`col129` double unsigned DEFAULT NULL,
`col130` geometry NOT NULL,
`col131` varbinary(206) NOT NULL,
`col132` geometrycollection DEFAULT NULL,
`col133` mediumblob NOT NULL,
`col134` geometry DEFAULT NULL,
`col136` multipoint NOT NULL,
`col137` multilinestring DEFAULT NULL,
`col138` char(204) NOT NULL DEFAULT 'bvvtevltpvhvpfdlivyhlmvpkqiwzthhyjhguysildyhutwgmrqbankejkswcrhgwnzonolvbohdkjx',
`col139` time DEFAULT '14:46:46',
`col140` set('','sxjxy','anozrcaqj','rguk','anu','nmqc','vzn','izbd','qiohi','qtxz','','gaobrrxcun','soryzmorf','l','p','kncymq','wrzij') NOT NULL,
`col141` geometry NOT NULL,
`col142` mediumint(8) unsigned NOT NULL DEFAULT '1607',
`col143` float unsigned zerofill DEFAULT '00000362.088',
`col144` geometry NOT NULL,
`col146` multipolygon DEFAULT NULL,
`col147` int(10) unsigned NOT NULL DEFAULT '424',
`col149` mediumtext NOT NULL,
`col151` enum('o','vpzcqwdxq','','hc','akvp','kbafgfkj','dqdhikvsb','aky','nwvehzz','gzmqlsnkum','','p','ytcla','guxzlqked','shawijt','piftpnul','urerwpfd','m','bgwxt','tpikncxa','z','rjvspxelx','','f','ahznvglzl','') NOT NULL,
`col152` double unsigned DEFAULT '1446.4067',
`col153` tinyblob NOT NULL,
`col154` char(110) CHARACTER SET utf8 NOT NULL,
`col155` time DEFAULT '07:26:24',
`col156` geometry DEFAULT NULL,
`col157` longtext NOT NULL,
`col160` decimal(32,8) DEFAULT '-1343.62460000',
`col161` mediumint(9) NOT NULL DEFAULT '-1086',
`col162` tinyint(1) NOT NULL DEFAULT '0',
`col163` date DEFAULT '2012-07-17',
`col164` binary(1) NOT NULL,
`col165` datetime NOT NULL DEFAULT '2012-12-16 22:12:27',
`col166` set('rlk','','yblbvm','esekvir','sgoeki','sp','rsjtocpe','qlcmvhxpl','avvvehbcf','jgun','gpi','ljg','melg','nacde','ytuthg','sfueqfz','wk','iafwrlciw','','gwpsfmjd','','hxdmaaiw','yblakgziz','eaolqzyofq','ivlxjuwc','r','pjokxofdlx','kuhr','','iipbwhem','abxc') NOT NULL,
`col169` time DEFAULT '21:26:09',
`col171` timestamp NOT NULL DEFAULT '2012-12-07 12:13:56',
`col172` point NOT NULL,
`col173` tinyint(3) unsigned NOT NULL DEFAULT '0',
`col174` blob NOT NULL,
`col175` multipoint DEFAULT NULL,
`col176` longblob NOT NULL,
`col177` blob NOT NULL,
`col179` mediumtext NOT NULL,
`col180` float unsigned DEFAULT '70',
`col182` varbinary(235) NOT NULL,
`col183` multilinestring DEFAULT NULL,
`col184` multilinestring DEFAULT NULL,
`col185` point NOT NULL,
`col186` linestring NOT NULL,
`col187` double NOT NULL DEFAULT '-885',
`col188` year(4) NOT NULL DEFAULT '0000',
`col189` linestring DEFAULT NULL,
`col190` decimal(48,9) DEFAULT '1312.997300000',
`col192` multilinestring NOT NULL,
`col193` date NOT NULL DEFAULT '2012-05-18',
`col194` decimal(47,19) NOT NULL DEFAULT '1646.1823000000000000000',
`col195` mediumblob NOT NULL,
`col196` linestring DEFAULT NULL,
`col197` double unsigned NOT NULL DEFAULT '0',
`col200` multilinestring NOT NULL,
`col201` bigint(20) unsigned NOT NULL DEFAULT '600',
`col202` decimal(42,30) unsigned zerofill DEFAULT '000000001698.754700000000000000000000000000',
`col203` geometrycollection NOT NULL,
PRIMARY KEY (`col201`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0003`
--
DROP TABLE IF EXISTS `t0003`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0003` (
`a3` int(10) unsigned DEFAULT NULL,
`col204` timestamp NOT NULL DEFAULT '2013-08-07 09:42:06',
`col205` char(153) CHARACTER SET utf8 NOT NULL DEFAULT 'zqwqwbhdujzdzwaijrjsxyiagwbxwlttpqna',
`col206` geometry NOT NULL,
`col207` mediumtext NOT NULL,
`col208` datetime DEFAULT '2013-07-23 19:05:28',
`col210` timestamp NOT NULL DEFAULT '2013-07-10 18:46:25',
`col211` double unsigned NOT NULL DEFAULT '0',
`col212` time NOT NULL DEFAULT '06:55:59',
`col213` double NOT NULL DEFAULT '99999',
`col214` enum('lyih','hqnoxrw','dlhx','tsnxzr','hehc','ecmv','fwwaxpbow','sri','','z','t','vdlyhkbgxa','ydzdk','hzg','uz','lt','vpfqrqiep','jdza','','wwj','kdpxhvu','gwytkl','qnl','ztwrat','qw','cp','gicfzmf','icczfme','c','','avpaosiup','','dbot','w','anhstcod','jhq','tisuhg','deopcxmcae','howdrhqu','','iwjmyui','','kdprmjow','zn','kev','oqefwagb','dexeb','v','stazjvjqoa','','cgmnldedum','','wznxwoju','xn','','ichou') NOT NULL,
`col215` polygon DEFAULT NULL,
`col216` time DEFAULT '05:19:01',
`col217` datetime NOT NULL DEFAULT '2013-04-22 00:02:23',
`col218` set('zzwugjrvc','wz','ynayglndzf','enst','','ybkaxpbta','iyzorr','cxeqoqi','','yqqe','kmrrv','','s','kpkftian','','uodsce','lraakxbfge','pvkvnl','ag','mzwyg','gmiynpdiq','xvcgsi','ypxmzn','cotmpiec','olp','bgkq','wzipdok','','yrirjbep','','uichtfojwd','ot','sx','gjhihudair','qnripcwn','jbkpraje','jazgrisv','atdjrli','as','m','rnd','j','quwu','kbkyrzibk','ljxgetradz','dnl','wet','gqkqhbwgsr','ft','bspez','e','euc','c') NOT NULL,
`col219` multipolygon DEFAULT NULL,
`col220` binary(1) NOT NULL,
`col221` date DEFAULT '2013-08-11',
`col222` varbinary(49) NOT NULL,
`col223` varbinary(32) NOT NULL,
`col224` geometry NOT NULL,
`col226` set('kgzgb','so','hhmzfasb','byhirdajn','','bmokrsb','vk','eudfup','nonj','a','va','hda','uisppoq','gobu','xkmeet','','bjoqlbaqsf','','rnlytbn','xngtsw','pkak','wfggb','sxx','prsyjub','rxqtuo','tkualuna','','sy','jbrvjdvej','i','acjulfpdrl','yjvitunb','','wtgntqk','','','oeiap','','sudcxcph','ql','cuhxmurmbo','suacmufil','jzcmjoebjs','ppbk') NOT NULL,
`col228` mediumtext NOT NULL,
`col230` multilinestring NOT NULL,
`col232` char(143) CHARACTER SET utf8 NOT NULL,
`col233` varbinary(197) NOT NULL,
`col234` multilinestring DEFAULT NULL,
`col236` tinyblob NOT NULL,
`col237` time NOT NULL DEFAULT '06:03:23',
`col238` mediumtext NOT NULL,
`col239` double unsigned zerofill DEFAULT '00000000000001659.4918',
`col240` multilinestring NOT NULL,
`col241` longtext NOT NULL,
`col242` datetime NOT NULL DEFAULT '2013-10-24 00:37:33',
`col243` polygon NOT NULL,
`col244` time NOT NULL DEFAULT '00:54:18',
`col246` geometrycollection DEFAULT NULL,
`col247` binary(1) NOT NULL,
`col248` text NOT NULL,
`col249` double NOT NULL DEFAULT '5.540531e102',
`col251` double DEFAULT '1306.457',
`col252` timestamp NOT NULL DEFAULT '2012-08-01 15:22:31',
`col253` decimal(47,10) NOT NULL DEFAULT '739539800000000000000000000000000.0000000000',
`col254` varbinary(192) NOT NULL,
`col255` enum('nf','mpbpeft','yvpawin','vgalhmqsre','','ixaxxjon','','npgkw','vqwfxf','skxlvkcyp','wgftasw','rjdv','grvsoyqmfp','','gws','ztrxo','','vyqxcr','sipbiuwduu','pythfcctf','hrmnloiia','cdmuui','iickz','yanc','iwa','ia','vowcywvztz','p','piw','twf','fqumxspyt','','','nqbmlxndep','jano','ro','mkt','','hhtf','lhhyytuoyx') NOT NULL,
`col256` binary(1) NOT NULL,
`col257` time NOT NULL DEFAULT '21:59:32',
`col258` datetime DEFAULT '2013-01-23 07:33:07',
`col262` date NOT NULL DEFAULT '2013-04-29',
`col263` multipolygon DEFAULT NULL,
`col265` time DEFAULT '23:50:56',
`col266` tinytext NOT NULL,
`col267` linestring DEFAULT NULL,
`col268` int(11) NOT NULL DEFAULT '585',
`col269` float unsigned zerofill NOT NULL DEFAULT '001331190000',
`col270` time NOT NULL DEFAULT '16:19:18',
`col271` float DEFAULT '-7.15616e29',
`col272` smallint(6) NOT NULL DEFAULT '887',
`col273` longtext NOT NULL,
`col274` multilinestring DEFAULT NULL,
`col275` point DEFAULT NULL,
`col277` char(175) NOT NULL DEFAULT 'yyodkfcyhljhreabatwaqogxmztjvhawzelyossrkwtothzqfoo',
`col278` binary(1) NOT NULL,
`col279` multipoint DEFAULT NULL,
`col280` varchar(183) NOT NULL DEFAULT 'nwtbkkhajevacvuna',
`col281` multipoint DEFAULT NULL,
`col282` timestamp NOT NULL DEFAULT '2014-01-16 01:48:42',
`col283` decimal(12,4) unsigned DEFAULT '527.1641',
`col285` datetime NOT NULL DEFAULT '2013-11-24 04:21:27',
`col286` datetime NOT NULL DEFAULT '2014-02-10 03:49:36',
`col287` multilinestring NOT NULL,
`col288` time DEFAULT '02:07:49',
`col289` timestamp NOT NULL DEFAULT '2013-08-12 02:58:15',
`col290` double unsigned zerofill NOT NULL DEFAULT '000000000.000005354304',
`col291` geometrycollection DEFAULT NULL,
`col292` time NOT NULL DEFAULT '01:10:15',
`col295` tinyblob NOT NULL,
`col297` decimal(65,12) unsigned NOT NULL DEFAULT '846.719600000000',
`col298` time DEFAULT '06:12:04',
`col299` char(243) CHARACTER SET utf8 NOT NULL DEFAULT 'iceuttuazliolcbojcpcvyqsgriftxzhxoxylvrpefouqftmy',
`col300` time DEFAULT '04:06:23',
`col302` polygon DEFAULT NULL,
`col303` longtext NOT NULL,
`col304` double unsigned DEFAULT '100001',
`col305` linestring DEFAULT NULL,
`col306` point NOT NULL,
`col307` mediumtext NOT NULL,
`col309` point DEFAULT NULL,
`col310` longtext NOT NULL,
`col312` multipolygon DEFAULT NULL,
`col314` enum('ho','egnvstifbf','smiudhky','evgpyybzm','ajbzxlmlk','ptcuyiq','etbv','dxffty','fibbpo','mth','eaunae','ybznv','fdgstt','tq','xli','','','abu','diemqmwjm','kebq','fnxeqzp','ooundl','rgiwinbig','idx','nueyfsk','hjm','brtu','aupgmcrl','cklmbfg','','ndcoygxu','bkmm','drtbw','frxqmqsduj','rlbhlczqzx','tnsl','egkdf','gotgfbpw','vqjsgnz','pakicb','weyjn','hnqirywcf','','yjstdjfd','mbhiebbxsd','irtfqqjqgw','n','rr','d','mvwc','ode','dnvghmffgz','inpegrdbp','d','crasml','lbzm','lq','','lv','vvoeqvl') NOT NULL,
`col315` multilinestring NOT NULL,
PRIMARY KEY (`col272`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0004`
--
DROP TABLE IF EXISTS `t0004`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0004` (
`a4` int(10) unsigned zerofill NOT NULL,
`col317` timestamp NOT NULL DEFAULT '2013-05-12 19:24:21',
`col318` char(226) CHARACTER SET utf8 NOT NULL DEFAULT 'oeoeoobmzbvoiiyepjkorxpeqlonweivcbyfxarhkqqbgktgnxrrqbxyglmgwdvohexhzpvttvbtgzbvvxogkhpe',
`col319` double NOT NULL DEFAULT '1665.8961',
`col320` char(98) CHARACTER SET utf8 NOT NULL,
`col321` point DEFAULT NULL,
`col322` decimal(50,6) DEFAULT '0.000000',
`col324` multipolygon NOT NULL,
`col325` double DEFAULT '2.59e-28',
`col326` text NOT NULL,
`col330` mediumtext NOT NULL,
`col331` multipolygon NOT NULL,
`col332` datetime NOT NULL DEFAULT '2013-07-04 14:18:35',
`col333` multipolygon NOT NULL,
`col334` enum('','vtxlie','zniclbl','b','dsyvhsr','vovn','dyzult','losawzr','xqc','usl','ujeittkro','jkp','pdibqviuqz','clywjhr','','mayggqf','tppkh','lfeaw','qeg','wit','eavoqagk','ayt','neuvu','uauajvtjqe','ivfrekf','nrhri','aviqjqe','nje','vnczhd','vrbmcmc','aesptxio','w','ckkwz','dadanh','qzlvf','r','bb','vbny') NOT NULL,
`col335` time NOT NULL DEFAULT '22:04:03',
`col336` time NOT NULL DEFAULT '04:31:30',
`col337` longblob NOT NULL,
`col338` multilinestring NOT NULL,
`col339` date NOT NULL DEFAULT '2013-04-16',
`col340` tinytext NOT NULL,
`col341` datetime DEFAULT '2013-09-28 10:18:39',
`col342` geometry DEFAULT NULL,
`col343` multipolygon DEFAULT NULL,
`col344` geometrycollection DEFAULT NULL,
`col345` point DEFAULT NULL,
PRIMARY KEY (`col336`),
UNIQUE KEY `idx133` (`col322`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0005`
--
DROP TABLE IF EXISTS `t0005`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0005` (
`a5` int(10) unsigned DEFAULT NULL,
`col346` int(10) unsigned DEFAULT '22',
`col347` linestring NOT NULL,
`col348` multipoint DEFAULT NULL,
`col349` longtext NOT NULL,
`col351` year(4) DEFAULT '0000',
`col352` date DEFAULT '2013-02-11',
`col353` mediumint(9) DEFAULT '714',
`col357` multipoint DEFAULT NULL,
`col358` multilinestring DEFAULT NULL,
`col360` multipolygon NOT NULL,
`col362` set('antxllktf','cvvo','bejyhjb','keytjzqa','ibskjml','gfmgj','nviiu','ptpjurvdom','swuaratpdg','','sgzrex','s','qbaajveu','zybioq','cql','hloeuaywc','','mpwccck','','zkxf','q','','s','tfaxys','','woiif','','fwhgaic','ljvoipqu','kfrqraop') NOT NULL,
`col365` varbinary(170) NOT NULL,
`col368` datetime DEFAULT '2013-04-21 16:04:59',
`col369` char(241) CHARACTER SET utf8 NOT NULL,
`col370` int(11) NOT NULL DEFAULT '1295',
`col371` geometry DEFAULT NULL,
`col372` multilinestring DEFAULT NULL,
`col373` longtext NOT NULL,
`col374` multipolygon DEFAULT NULL,
`col376` point DEFAULT NULL,
`col377` point DEFAULT NULL,
`col378` varbinary(31) NOT NULL,
`col380` binary(1) NOT NULL,
`col381` multipolygon NOT NULL,
`col384` multipoint NOT NULL,
`col387` binary(1) NOT NULL,
`col388` longblob NOT NULL,
`col389` point DEFAULT NULL,
`col390` multilinestring NOT NULL,
`col391` time DEFAULT '21:01:45',
`col392` mediumtext NOT NULL,
`col393` binary(1) NOT NULL,
`col394` multipolygon DEFAULT NULL,
`col395` datetime DEFAULT '2014-03-23 02:41:02',
`col396` bit(26) DEFAULT NULL,
`col397` mediumblob NOT NULL,
`col398` linestring DEFAULT NULL,
`col399` polygon NOT NULL,
`col400` time DEFAULT '13:22:36',
`col403` int(10) unsigned zerofill NOT NULL DEFAULT '0000000416',
`col404` varbinary(222) NOT NULL,
`col405` mediumint(8) unsigned NOT NULL DEFAULT '915',
`col407` point DEFAULT NULL,
`col408` float unsigned zerofill NOT NULL DEFAULT '000001078.96',
`col410` polygon DEFAULT NULL,
`col412` geometrycollection DEFAULT NULL,
`col414` binary(1) NOT NULL,
`col415` mediumblob NOT NULL,
`col416` double NOT NULL DEFAULT '590',
`col417` double unsigned NOT NULL DEFAULT '1084',
`col418` year(4) DEFAULT '2059',
`col420` multipoint DEFAULT NULL,
`col421` year(4) DEFAULT '2058',
`col422` date NOT NULL DEFAULT '2014-02-09',
`col423` float NOT NULL DEFAULT '99999',
`col424` text NOT NULL,
PRIMARY KEY (`col378`(25))
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0006`
--
DROP TABLE IF EXISTS `t0006`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0006` (
`a6` int(11) DEFAULT NULL,
`col425` decimal(58,9) unsigned NOT NULL DEFAULT '302.000000000',
`col426` decimal(35,19) unsigned NOT NULL DEFAULT '0.0000000000000000000',
`col428` multilinestring NOT NULL,
`col429` decimal(59,17) DEFAULT '-99999.00000000000000000',
`col431` char(246) CHARACTER SET utf8 NOT NULL,
`col432` text NOT NULL,
`col433` linestring DEFAULT NULL,
`col434` text NOT NULL,
`col435` binary(1) NOT NULL,
`col436` tinyblob NOT NULL,
`col437` time NOT NULL DEFAULT '10:30:36',
`col438` char(99) CHARACTER SET utf8 NOT NULL,
`col439` decimal(57,16) NOT NULL DEFAULT '-38.0000000000000000',
`col440` year(4) NOT NULL DEFAULT '0000',
`col442` linestring NOT NULL,
`col444` decimal(63,9) unsigned zerofill NOT NULL DEFAULT '000000000000000000000000000000000000000000000000001559.000000000',
`col445` multilinestring NOT NULL,
`col446` multilinestring NOT NULL,
`col447` double DEFAULT '100001',
`col448` mediumblob NOT NULL,
`col450` varbinary(173) NOT NULL,
`col452` polygon DEFAULT NULL,
`col453` bit(6) DEFAULT b'0',
`col454` tinytext NOT NULL,
`col455` varbinary(253) NOT NULL,
`col456` decimal(43,14) DEFAULT '-8.35910000000000',
`col457` timestamp NOT NULL DEFAULT '2013-09-19 08:15:00',
`col458` time DEFAULT '00:06:55',
`col459` date NOT NULL DEFAULT '2012-07-31',
`col460` date NOT NULL DEFAULT '2012-11-26',
`col461` decimal(43,3) DEFAULT '1330.000',
`col462` point NOT NULL,
`col463` int(11) DEFAULT '0',
`col465` decimal(64,11) DEFAULT '-1164.85910000000',
`col466` tinytext NOT NULL,
`col467` geometrycollection NOT NULL,
`col468` time DEFAULT '03:12:46',
`col469` datetime DEFAULT '2013-09-16 18:51:27',
`col470` geometrycollection NOT NULL,
`col471` geometrycollection DEFAULT NULL,
`col473` multipolygon NOT NULL,
`col476` int(10) unsigned zerofill NOT NULL DEFAULT '0000001665',
`col477` blob NOT NULL,
`col478` decimal(20,14) NOT NULL DEFAULT '100000.00000000000000',
`col479` multipolygon NOT NULL,
`col480` tinyblob NOT NULL,
`col481` multipolygon NOT NULL,
`col482` time NOT NULL DEFAULT '09:41:27',
`col483` mediumblob NOT NULL,
`col484` set('znkpxshcrz','udg','fsyuwbd','pc','ysjwum','yerhzpavox','goue','uyfaqru','pnihegal','','ppkjdewz','tlvzlk','viatbk','bh','blegixph','xfuqujcpg','bz','tno','mr','chqz','byb','lgr','gd','e','oex','dlezrr','sqvok','a','jkbcg','kma','kofyczkpek','g','kdgfnuye') NOT NULL,
`col485` mediumblob NOT NULL,
`col486` datetime NOT NULL DEFAULT '2013-08-09 08:09:57',
`col487` timestamp NOT NULL DEFAULT '2013-06-10 12:53:56',
PRIMARY KEY (col476)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0007`
--
DROP TABLE IF EXISTS `t0007`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0007` (
`a7` int(11) DEFAULT NULL,
`col488` timestamp NOT NULL DEFAULT '2012-06-23 18:46:41',
`col489` multipolygon NOT NULL,
`col490` datetime NOT NULL DEFAULT '2013-04-17 03:50:54',
`col491` time NOT NULL DEFAULT '03:45:37',
`col492` geometrycollection DEFAULT NULL,
`col493` mediumint(9) NOT NULL DEFAULT '1254',
`col494` multipoint NOT NULL,
`col495` date NOT NULL DEFAULT '2012-04-24',
`col496` geometry NOT NULL,
`col497` multipoint NOT NULL,
`col499` time DEFAULT '23:45:47',
`col500` mediumint(8) unsigned NOT NULL DEFAULT '311',
`col501` set('oqhkqqw','lyc','lhc','emwxsk','jwxwh','vvcn') NOT NULL,
`col502` longtext NOT NULL,
`col505` geometry NOT NULL,
`col506` set('dqym','qvxetq','htxlbghf','t') NOT NULL,
`col507` multipoint NOT NULL,
`col509` time NOT NULL DEFAULT '18:35:55',
`col510` multilinestring DEFAULT NULL,
`col511` bigint(20) NOT NULL DEFAULT '0',
`col512` tinytext NOT NULL,
`col513` tinyint(1) NOT NULL DEFAULT '108',
`col514` timestamp NOT NULL DEFAULT '2012-11-09 21:31:46',
`col515` time NOT NULL DEFAULT '12:58:16',
`col516` multilinestring NOT NULL,
`col517` decimal(25,22) unsigned zerofill NOT NULL DEFAULT '000.0000000000000000000000',
`col518` datetime NOT NULL DEFAULT '2013-02-04 02:12:18',
`col519` geometrycollection NOT NULL,
PRIMARY KEY (`col490`,`col518`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0008`
--
DROP TABLE IF EXISTS `t0008`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0008` (
`a8` int(10) unsigned DEFAULT NULL,
`col520` mediumint(9) DEFAULT '-1427',
`col521` polygon NOT NULL,
`col523` decimal(26,10) DEFAULT '167.0000000000',
`col524` timestamp NOT NULL DEFAULT '2012-10-28 20:56:32',
`col525` varbinary(56) NOT NULL,
`col527` geometry NOT NULL,
`col528` date NOT NULL DEFAULT '2013-06-01',
`col529` mediumint(9) DEFAULT '100000',
`col530` date NOT NULL DEFAULT '2014-01-14',
`col531` char(46) CHARACTER SET utf8 NOT NULL,
`col532` linestring NOT NULL,
`col533` geometrycollection DEFAULT NULL,
`col534` geometrycollection NOT NULL,
`col535` set('','hyg','p','opjrplcd','','eudsizofs','dhghca','nmfdnfo','tnhv','jm','tuxahoj','hgsobvud','ddjmt','jscxlvcm','','vsxrfxq','uhpboatz','opcti','jckttdcrrp','ybrpzvoufl','uibcwzkfdx','u','pwhzyp','onf','w','qzcaxhhqm','grjsaqqa','bdje','','qsuyzrez','gtkinzx','oqnn','r','fjq','a','rohilkd','jrll','uggiqlihxw','fyhojz','zeqh','uwau','siuwpjfmu','vtvk','ujex','lykg','xakmc','i','biwgjxithg','edpeddjkz','ugpkhnvznv','r','yvxfezvc','hxme','qnhqazslrn') NOT NULL,
`col536` date DEFAULT '2014-03-21',
`col537` tinyint(1) DEFAULT '0',
`col538` multipoint NOT NULL,
`col540` timestamp NOT NULL DEFAULT '2013-06-11 20:14:56',
`col541` longtext NOT NULL,
`col542` float NOT NULL DEFAULT '-15637.8',
`col543` multipolygon DEFAULT NULL,
`col544` mediumblob NOT NULL,
`col545` binary(1) NOT NULL,
`col546` mediumblob NOT NULL,
`col547` polygon DEFAULT NULL,
`col548` multilinestring NOT NULL,
`col549` geometrycollection NOT NULL,
PRIMARY KEY (`col542`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0009`
--
DROP TABLE IF EXISTS `t0009`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0009` (
`a9` int(10) unsigned DEFAULT NULL,
`col550` polygon DEFAULT NULL,
`col551` geometry NOT NULL,
`col552` mediumblob NOT NULL,
`col553` multipolygon NOT NULL,
`col554` enum('','xmusrg','pl','wvzr','e','fpoykmzpsl','lfafzodg','awwppl','slnuyzr','pbwaobgjt','xuezhi','bqtnreifmz','q','e','niq','dp','takiecc','xxykugxx','rrscqj','line','','twcyhou') NOT NULL,
`col556` decimal(11,0) unsigned DEFAULT '511',
`col557` geometrycollection DEFAULT NULL,
`col558` multilinestring DEFAULT NULL,
`col560` multipolygon NOT NULL,
`col561` datetime DEFAULT '2014-02-19 00:13:10',
`col563` polygon NOT NULL,
`col565` mediumblob NOT NULL,
`col567` geometrycollection NOT NULL,
`col569` multilinestring DEFAULT NULL,
`col570` blob NOT NULL,
`col571` mediumtext NOT NULL,
`col572` set('sijcrt','x','mbzjfhdv','rgmnm','h','xkplyfcdat','lep','hslcevj','zdpp','cqswfjwnnf','unpwkvcok','tpxiyjwlu','pcsbiveopy','axmjpkg','pug','pfgvtkpwu','cfbkxcehi','vjsmladv','qzhvgqhtps','pwnt','tbdr','z','','','qgrqoqufw','ndh','egkyaboywm','qihmgs','ord','urn','nzttekp','krepbmng','qrm','odca','ls','dqav','jllylqtwno','khzkjq','wnipdx','qwht','tbehvtm','yuygvumyd','hqxoboi') NOT NULL,
`col575` point DEFAULT NULL,
`col576` timestamp NOT NULL DEFAULT '2012-08-03 08:08:59',
`col577` year(4) NOT NULL DEFAULT '2038',
`col578` date DEFAULT '2013-10-26',
`col579` geometrycollection DEFAULT NULL,
`col580` timestamp NOT NULL DEFAULT '2012-05-20 02:19:31',
`col582` decimal(33,24) unsigned DEFAULT '1674.000000000000000000000000',
`col583` multipolygon NOT NULL,
`col584` double DEFAULT '1116.2776',
`col585` decimal(65,6) unsigned NOT NULL DEFAULT '1389.000000',
`col587` blob NOT NULL,
`col588` decimal(16,7) unsigned DEFAULT '0.0000000',
`col589` multipoint NOT NULL,
`col590` multilinestring DEFAULT NULL,
`col591` set('iwupscxl','hhthjrgz','hqgesi','hkzgxry','resfjuxpy','','nanwbesw','a','qwtiviq','jefxlhqhqa','oktluqsana','rtm','x','y','mv','vbqmqo','','rvji','ztaagtz','ckbzruatx','zrn','quqdwjy','dvlqr','g','acwc','tc','yrvkefbs','xrc','bipjybi','seiqsdvw','lzhe','kcu','ukihpwd','ai','nyhwmdf','xslqrwmgo','pcwdfyvf','nijkut','jh','','oasuzfbpc','wzfinplbfn','','xpvrrsi','g','evpq','lcmualgi','dmamola','jdmsx','ilgdlfchig') NOT NULL,
`col592` timestamp NOT NULL DEFAULT '2012-10-01 05:25:47',
`col593` decimal(62,25) unsigned NOT NULL DEFAULT '0.0000000000000000000000000',
`col594` decimal(45,5) NOT NULL DEFAULT '-100001.00000',
`col595` datetime NOT NULL DEFAULT '2013-09-10 06:07:10',
`col596` timestamp NOT NULL DEFAULT '2012-08-09 21:44:22',
`col597` time DEFAULT '14:49:22',
`col598` varbinary(127) NOT NULL,
`col599` timestamp NOT NULL DEFAULT '2014-01-07 17:00:47',
`col601` binary(1) NOT NULL,
`col605` multilinestring DEFAULT NULL,
`col606` binary(1) NOT NULL,
`col607` binary(1) NOT NULL,
`col608` char(200) CHARACTER SET utf8 NOT NULL,
`col609` tinyint(4) NOT NULL DEFAULT '0',
`col610` geometrycollection DEFAULT NULL,
`col611` time NOT NULL DEFAULT '05:13:56',
`col612` point DEFAULT NULL,
`col614` bit(10) NOT NULL DEFAULT b'0',
`col616` multipolygon NOT NULL,
`col617` date DEFAULT '2013-04-21',
`col618` int(10) unsigned NOT NULL DEFAULT '1394',
`col619` bigint(20) unsigned DEFAULT '0',
`col620` enum('ahhsg','dwav','tnndnbaaoz','h','zmrisyy','gwhevrrqo','wwwswsxb','gxckkp','lohsr','qtctfpbvxr','mbjdtig','yf','nrywdysb','k','lpwqqr','vhvtnef','wrmicm','yvix','mhhmn','','shjywnp','lry','magitxckz','','bwp','','elwlbuev','x','mstkpnayvb','dvoadnenyf','','ro','','iy','c','','sjh','evx','dxifvxaf','fyjyapv','qbhip','yrnquh','t','pucywmgo','koi','a') NOT NULL,
`col621` time NOT NULL DEFAULT '14:10:45',
`col624` double unsigned zerofill NOT NULL DEFAULT '0000000000000000000649',
`col626` binary(1) NOT NULL,
`col627` timestamp NOT NULL DEFAULT '2012-05-18 11:48:10',
`col628` mediumblob NOT NULL,
`col629` point NOT NULL,
`col630` varbinary(210) NOT NULL,
`col632` decimal(18,10) NOT NULL DEFAULT '220.0000000000',
`col634` tinytext NOT NULL,
`col635` multilinestring NOT NULL,
`col637` float unsigned DEFAULT '0.000000839219',
`col639` timestamp NOT NULL DEFAULT '2012-08-23 01:45:54',
`col640` int(10) unsigned DEFAULT '100000',
`col641` date NOT NULL DEFAULT '2013-11-06',
`col642` bigint(20) DEFAULT '1293',
`col643` decimal(30,14) unsigned DEFAULT '0.00000000000000',
`col644` enum('hkq','etdrie','ut','p','ue','wddohecy','g','porppce','pmzxv','rkwkyitbo','jkyt','krybggdbmu','eazpm','xeqch','rqfxtk','jgubhucvx','rlkjmowh','ya','cdl','owtvw','bm','','vsgkgjyznk','f','','bwogshcyp','uqdiiuxax','ujhydniv','bagohlf','jz','hclmzg','mjd','poobjzj','qfcvsmpmlu','iarxcz','umjnao','nakxxeb','bwje','tl','uqqmk','fb','','ypqdh','stdwym','thgaj','vfzqhh','hfkvlhcj','d','ocvxdmvs') NOT NULL,
`col645` varchar(54) NOT NULL DEFAULT 'nfoennwiypblcpxphomdvgylngwbohbjrbiusjbdslho',
`col646` time NOT NULL DEFAULT '21:41:30',
`col647` geometrycollection NOT NULL,
PRIMARY KEY (`col642`,`col644`,`col646`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0010`
--
DROP TABLE IF EXISTS `t0010`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0010` (
`a10` int(10) unsigned DEFAULT NULL,
`col648` date NOT NULL DEFAULT '2012-10-18',
`col649` multipoint DEFAULT NULL,
`col650` mediumint(9) DEFAULT '-100001',
`col651` mediumint(8) unsigned DEFAULT '100001',
`col653` enum('nraycmi','','txceqpto','ogmgu','pztr','wpiildvnqf','jonadwrl','cmykpd','yfycvsgi','af','','myvpq','zrlrzpjrn','','jkqaecfq','ougklvdp','gs','mxi','smltrd','','f','kdieupg','mzqsflkr','','sguwat','','rezupgvic','kktmkmjsx','kloazq','rxnijnlhw','bqchhc','pq','uyuhu','nigbzozb','hdsgyooz','','waquidn','jyvrrfkwm','rdvbmrz','akltmseeem','xltnuvaeq','gjs','','wjgnjtbdhn','hxdoz','z','','xz','uclqsw','','ubenpryeed','lwxekmgob','rbzjcb','rvep','mmnrlvbd','uxutwgoeag','wrecftr','zodjsxi') NOT NULL,
`col654` mediumblob NOT NULL,
`col656` point DEFAULT NULL,
`col657` timestamp NOT NULL DEFAULT '2014-02-10 17:58:03',
`col658` int(10) unsigned zerofill DEFAULT '0000001207',
`col659` time NOT NULL DEFAULT '03:04:58',
`col660` mediumint(8) unsigned NOT NULL DEFAULT '254',
`col661` double DEFAULT '1355',
`col662` polygon NOT NULL,
`col663` tinytext NOT NULL,
`col664` int(11) DEFAULT '99999',
`col665` char(18) CHARACTER SET utf8 NOT NULL,
`col668` datetime NOT NULL DEFAULT '2013-03-11 16:20:01',
`col670` polygon DEFAULT NULL,
`col671` double unsigned DEFAULT '9.898803e-77',
`col672` time NOT NULL DEFAULT '16:45:41',
`col673` datetime DEFAULT '2013-03-08 05:24:28',
`col674` int(10) unsigned NOT NULL DEFAULT '511',
`col675` geometry NOT NULL,
`col676` tinyblob NOT NULL,
`col677` date DEFAULT '2014-03-02',
`col678` linestring NOT NULL,
`col679` datetime NOT NULL DEFAULT '2012-05-01 02:08:00',
`col680` multipoint NOT NULL,
`col681` bit(43) DEFAULT b'11000011010011111',
`col682` tinyblob NOT NULL,
`col683` multipolygon NOT NULL,
`col685` point DEFAULT NULL,
PRIMARY KEY (`col653`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0011`
--
DROP TABLE IF EXISTS `t0011`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0011` (
`a11` int(10) unsigned DEFAULT NULL,
`col687` enum('eredm','zysccdxbo','kmhwjyhy','ooiohstwcw','wvtwsob','no','ata','mprqtwkuq','owjellsn','njovobce','rw','khqs','','lalx','savtmenah','eitzppjs','','ckjdlq','j','lbkxoqa','bpdi','dscoyacpwa','xcj','yaak','gncjclpwgo','iaakektyr','vutulfsz','alrsw','ptjltr','rjjmkuure','zveof','cbqnk','ez','occ','ab','amdvoldq','q','v','hdqmnx','iwjaazh','sf','kdcqsxx','gtxks','nnvmlffwlx','kwczxo','jlmovfoi','uigvl','j','thfjpmmya','jcx','x','mp','kpe','qcp','u','','b','uyb','d','','avwcml','w','nk','tuu','lejg') NOT NULL,
`col688` date NOT NULL DEFAULT '2014-02-24',
`col689` decimal(47,20) NOT NULL DEFAULT '473.00000000000000000000',
`col690` geometry NOT NULL,
`col691` datetime DEFAULT '2012-04-26 01:21:13',
`col692` double unsigned NOT NULL DEFAULT '0',
`col693` longtext NOT NULL,
`col694` int(10) unsigned NOT NULL DEFAULT '350',
`col695` enum('lb','ympmqb','ad','ylhhfsd','zyelkfire','bi','e','cihl','zikenyvlyx','hitcrqs','qtemaq','ot','nlzong','wzc','rbhukqzui','xju') NOT NULL,
`col696` date DEFAULT '2012-09-03',
`col697` multilinestring DEFAULT NULL,
`col698` binary(1) NOT NULL,
`col700` double DEFAULT '-84.4441',
`col701` binary(1) NOT NULL,
`col702` bigint(20) NOT NULL DEFAULT '-1664',
`col703` time DEFAULT '17:31:12',
`col705` longtext NOT NULL,
`col706` linestring DEFAULT NULL,
`col708` time DEFAULT '17:20:54',
`col709` mediumint(8) unsigned DEFAULT '1485',
`col710` multipoint NOT NULL,
`col715` multipoint DEFAULT NULL,
`col717` enum('rhbmxth','jnzxgblza','mlipwrx','xllgxdh') NOT NULL,
`col719` timestamp NOT NULL DEFAULT '2013-09-01 18:16:30',
`col720` bit(35) NOT NULL DEFAULT b'110010110',
`col721` point DEFAULT NULL,
`col722` float NOT NULL DEFAULT '-8.34178e-40',
`col723` geometry NOT NULL,
`col724` point NOT NULL,
`col725` datetime DEFAULT '2012-09-17 22:47:55',
`col726` linestring DEFAULT NULL,
`col728` mediumtext NOT NULL,
`col731` mediumtext NOT NULL,
`col732` date NOT NULL DEFAULT '2013-08-16',
`col733` polygon DEFAULT NULL,
`col735` mediumint(8) unsigned DEFAULT '1068',
`col736` varchar(225) NOT NULL DEFAULT 'qgibultftfdpflydsxcnbgjh',
`col739` binary(1) NOT NULL,
`col740` date NOT NULL DEFAULT '2012-08-08',
PRIMARY KEY (`col692`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0012`
--
DROP TABLE IF EXISTS `t0012`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0012` (
`a12` int(11) NOT NULL,
`col741` date NOT NULL DEFAULT '2013-09-05',
`col745` geometrycollection NOT NULL,
`col746` time DEFAULT '08:40:10',
`col747` point DEFAULT NULL,
`col750` multilinestring DEFAULT NULL,
`col751` linestring NOT NULL,
`col752` linestring NOT NULL,
`col753` binary(1) NOT NULL,
`col754` int(11) DEFAULT '-874',
PRIMARY KEY (`a12`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0013`
--
DROP TABLE IF EXISTS `t0013`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0013` (
`a13` int(10) unsigned NOT NULL,
`col756` multipoint NOT NULL,
`col757` linestring NOT NULL,
`col758` multipoint DEFAULT NULL,
`col759` geometrycollection NOT NULL,
`col760` geometrycollection DEFAULT NULL,
`col762` date NOT NULL DEFAULT '2014-04-07',
`col763` geometrycollection DEFAULT NULL,
`col764` timestamp NOT NULL DEFAULT '2012-09-23 19:20:25',
`col765` multipoint DEFAULT NULL,
`col766` date DEFAULT '2013-11-07',
`col767` polygon NOT NULL,
`col768` date DEFAULT '2012-05-21',
`col769` double unsigned DEFAULT '1.2118637e86',
`col770` mediumblob NOT NULL,
`col771` polygon DEFAULT NULL,
`col772` polygon DEFAULT NULL,
`col773` multilinestring NOT NULL,
`col774` decimal(50,24) unsigned DEFAULT '1401.906100000000000000000000',
`col775` time NOT NULL DEFAULT '06:02:02',
`col776` polygon DEFAULT NULL,
`col777` polygon DEFAULT NULL,
`col778` mediumblob NOT NULL,
`col780` tinyblob NOT NULL,
`col781` multilinestring NOT NULL,
`col782` geometry NOT NULL,
`col783` polygon NOT NULL,
`col784` point DEFAULT NULL,
`col785` text NOT NULL,
`col786` varbinary(103) NOT NULL,
`col787` mediumblob NOT NULL,
`col788` polygon DEFAULT NULL,
`col789` date DEFAULT '2013-02-15',
`col790` geometrycollection DEFAULT NULL,
`col792` binary(1) NOT NULL,
`col793` year(4) DEFAULT '0000',
`col794` multipolygon NOT NULL,
`col795` point DEFAULT NULL,
`col796` multipolygon DEFAULT NULL,
`col797` multilinestring DEFAULT NULL,
`col798` double NOT NULL DEFAULT '-7.72764e45',
`col799` binary(1) NOT NULL,
`col801` geometrycollection NOT NULL,
`col802` timestamp NOT NULL DEFAULT '2013-10-25 19:28:56',
`col803` multipolygon NOT NULL,
`col804` datetime NOT NULL DEFAULT '2013-07-01 10:32:08',
`col805` date NOT NULL DEFAULT '2014-02-01',
`col807` int(11) NOT NULL DEFAULT '-461',
`col810` longblob NOT NULL,
`col812` timestamp NOT NULL DEFAULT '2013-09-23 14:32:18',
`col813` char(176) CHARACTER SET utf8 NOT NULL,
`col815` multilinestring DEFAULT NULL,
`col816` timestamp NOT NULL DEFAULT '2012-11-09 13:31:44',
`col817` varchar(246) CHARACTER SET utf8 NOT NULL DEFAULT 'tyoixxqyblstuashcnrngnpzejabnszbznnblgbey',
`col818` point DEFAULT NULL,
`col819` varbinary(61) NOT NULL,
`col821` multipoint NOT NULL,
`col822` geometry DEFAULT NULL,
`col823` linestring DEFAULT NULL,
`col824` multipoint NOT NULL,
`col826` text NOT NULL,
`col827` datetime DEFAULT '2012-05-21 20:00:15',
`col828` linestring NOT NULL,
`col829` point NOT NULL,
`col830` longtext NOT NULL,
`col831` varchar(212) NOT NULL DEFAULT 'njlxuxwtkoxwdeyvzogriyfavpsbkoizuqfwhrwfocjplmqljqdgaunnycqkucwpahwkabnnqjuvfohwvgjhtnmthwocjnweomjoembotvzpoyxoikvazuhoqrldunerkiticivnzilqjbswrnfkvxvzklyrubeywaamfyqigxvwieltiwcsapvtce',
`col832` linestring NOT NULL,
`col833` varchar(191) CHARACTER SET utf8 NOT NULL DEFAULT 'kehkgrfdsisnsxiqenjwltmdcchzpflclhkbwkktdokmbswxkarduvtbzjaquqjjxgyxgfjbzvnijttgyzvpkbgkouclikxytrvwzyduzbupiiqpcvbfrdehgvejwsnvdlyqretfrvscaronuirmsigbrovkxjzjcctuvwlhpscaxtaxsjt',
`col836` double NOT NULL DEFAULT '54.2142',
`col837` decimal(35,15) NOT NULL DEFAULT '704.414400000000000',
`col840` timestamp NOT NULL DEFAULT '2012-08-31 22:12:40',
`col841` date NOT NULL DEFAULT '2013-10-15',
`col842` decimal(39,0) unsigned DEFAULT '100001',
`col844` geometrycollection DEFAULT NULL,
`col846` text NOT NULL,
`col847` datetime DEFAULT '2013-08-16 04:10:12',
`col849` datetime DEFAULT '2013-12-08 20:59:35',
`col850` mediumblob NOT NULL,
`col852` multipoint NOT NULL,
`col853` char(79) NOT NULL DEFAULT 'ptkbvncizwwjmdmruqgikpfedieofnfuo',
`col854` date NOT NULL DEFAULT '2012-06-05',
`col855` timestamp NOT NULL DEFAULT '2013-05-15 20:12:59',
`col856` decimal(51,30) NOT NULL DEFAULT '100001.000000000000000000000000000000',
`col857` double unsigned DEFAULT '204',
`col859` linestring NOT NULL,
`col860` timestamp NOT NULL DEFAULT '2013-08-17 10:47:32',
`col861` multilinestring NOT NULL,
`col862` decimal(50,4) NOT NULL DEFAULT '99999.0000',
`col864` decimal(22,22) NOT NULL DEFAULT '0.0000000000000000000000',
`col865` decimal(62,25) NOT NULL DEFAULT '0.0000000000000000000000000',
`col866` date NOT NULL DEFAULT '2012-08-08',
`col867` mediumint(8) unsigned NOT NULL DEFAULT '61',
PRIMARY KEY (`col816`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0014`
--
DROP TABLE IF EXISTS `t0014`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0014` (
`a14` int(10) unsigned zerofill NOT NULL,
`col868` multipolygon DEFAULT NULL,
`col869` timestamp NOT NULL DEFAULT '2012-11-23 18:32:24',
`col870` tinyint(1) DEFAULT '0',
`col871` time DEFAULT '05:59:38',
`col872` decimal(55,16) unsigned NOT NULL DEFAULT '788.0069000000000000',
`col873` geometry NOT NULL,
`col876` text NOT NULL,
`col877` multipoint NOT NULL,
`col878` multipoint NOT NULL,
`col879` varchar(149) CHARACTER SET utf8 NOT NULL DEFAULT 'tzqieyuucanudmggbvlolfmcntqghngsuevrbzbsqavsjnrczesdfcfyvpwrwejwjwigwyjjtkirgmurzboiqmybgndwrxjxxtiybvmamhkhdt',
`col880` multilinestring DEFAULT NULL,
`col881` polygon DEFAULT NULL,
`col882` set('pzgyh','jny','iga','pbmjsbju','rlp','l','jqrmmjm','yihdc','tfjymidbt','lmbyyyqdo','byvu','wfupflxvvc','u','bsocplx','pixh','uk','vqyo','ltnbcft','wpjkd','pmmw','jja','r','gsvc','ukrlzfhy','vva','fwz','j','disicz','iqbnkvl','dn','jfswp','','iswt','davtmti','peszdwedh') NOT NULL,
`col883` multipoint DEFAULT NULL,
`col885` multilinestring NOT NULL,
`col886` decimal(37,18) DEFAULT '0.000000000000000000',
`col887` set('','','zf','r','lmzi','cf','gsh','','xyeiywtu','dfady','ihjn','lghz','ww','getkyctxrp','a','umtbgewyke','kdwyoatcq','','qckkgg','ddjeooboqn','ctlj','qwm','','qmizqfg','scuo','yca','wumgefjf','qijyxykju','ed','nxbaseiw','u','d') NOT NULL,
`col888` multipoint NOT NULL,
`col890` point NOT NULL,
`col892` geometry DEFAULT NULL,
`col893` multilinestring NOT NULL,
`col895` date DEFAULT '2012-05-14',
`col896` longblob NOT NULL,
`col897` geometrycollection NOT NULL,
`col899` varbinary(4) NOT NULL,
`col900` year(4) DEFAULT '2037',
`col901` varchar(34) CHARACTER SET utf8 NOT NULL DEFAULT 'cmuuvkzlxtaosyfwaqngwishvlvhan',
`col903` datetime NOT NULL DEFAULT '2012-07-17 15:29:37',
`col904` decimal(31,17) unsigned zerofill NOT NULL DEFAULT '00000000000000.00000000000000000',
`col905` point NOT NULL,
`col906` linestring NOT NULL,
`col907` multipolygon NOT NULL,
`col910` enum('aemki','xlkxnve','','','xjwa','vmdxvsv','yndoitoabs','iwednuknpy','','ktgmjs','usaiax','q','edtjbunm','ata','vfs','lepik','qe','vygiwud','mqujmzdfqe','vd','phujb') NOT NULL,
`col911` tinyblob NOT NULL,
`col912` multipoint DEFAULT NULL,
`col913` float NOT NULL DEFAULT '-893.54',
`col914` multipolygon NOT NULL,
`col915` timestamp NOT NULL DEFAULT '2012-12-09 05:33:08',
`col916` date NOT NULL DEFAULT '2013-11-22',
`col917` decimal(43,6) NOT NULL DEFAULT '-1516.114100',
`col919` timestamp NOT NULL DEFAULT '2012-04-29 11:52:27',
`col920` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`col921` geometry DEFAULT NULL,
`col922` varchar(202) CHARACTER SET utf8 NOT NULL DEFAULT 'z',
`col923` multilinestring DEFAULT NULL,
`col924` geometry NOT NULL,
`col925` multipolygon DEFAULT NULL,
`col926` geometry NOT NULL,
`col927` multipoint DEFAULT NULL,
`col929` decimal(30,17) DEFAULT '-296.05950000000000000',
`col930` int(10) unsigned zerofill NOT NULL DEFAULT '0000000371',
`col932` double DEFAULT '-1544.0139',
`col933` mediumblob NOT NULL,
`col934` multipoint DEFAULT NULL,
`col935` longblob NOT NULL,
`col936` timestamp NOT NULL DEFAULT '2013-11-28 10:38:29',
`col937` decimal(45,15) unsigned DEFAULT NULL,
`col938` int(11) DEFAULT '0',
`col939` polygon DEFAULT NULL,
`col940` longtext NOT NULL,
`col941` time NOT NULL DEFAULT '08:08:06',
`col942` text NOT NULL,
`col943` geometrycollection NOT NULL,
`col944` point DEFAULT NULL,
`col946` decimal(36,20) unsigned zerofill DEFAULT '0000000000000062.00000000000000000000',
`col947` geometrycollection DEFAULT NULL,
`col949` linestring NOT NULL,
`col950` geometry DEFAULT NULL,
`col951` time NOT NULL DEFAULT '14:39:31',
`col952` timestamp NOT NULL DEFAULT '2013-08-01 02:47:25',
`col953` char(181) CHARACTER SET utf8 NOT NULL DEFAULT 'xvbyfvhnirzxxuuvbkibjylprpyvojevdckgcrwjudwsppyiusrjcukdzgibvqohdxcbvlvyjpuxvoyngelvdfyygiqphkhkokpflrgkguathvtxgvcetrmwmagevxhdnt',
`col955` date DEFAULT '2013-11-26',
`col956` point DEFAULT NULL,
`col957` time DEFAULT '04:49:30',
`col958` multilinestring DEFAULT NULL,
`col959` int(11) NOT NULL DEFAULT '-99999',
`col960` point DEFAULT NULL,
`col961` date NOT NULL DEFAULT '2012-07-25',
`col962` binary(1) NOT NULL,
`col963` time NOT NULL DEFAULT '07:53:54',
`col964` multipolygon NOT NULL,
`col965` linestring DEFAULT NULL,
`col966` datetime DEFAULT '2012-09-12 17:10:26',
PRIMARY KEY (`col911`(180))
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0015`
--
DROP TABLE IF EXISTS `t0015`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0015` (
`a15` int(10) unsigned NOT NULL,
`col968` multipoint NOT NULL,
`col969` double unsigned zerofill NOT NULL DEFAULT '0000000001.0936282e-37',
`col970` smallint(5) unsigned DEFAULT '1330',
`col971` longtext NOT NULL,
`col972` longblob NOT NULL,
`col973` decimal(8,6) NOT NULL DEFAULT '0.000000',
`col974` timestamp NOT NULL DEFAULT '2013-10-14 00:57:04',
`col977` geometrycollection NOT NULL,
`col978` datetime NOT NULL DEFAULT '2012-06-07 17:24:55',
`col979` mediumblob NOT NULL,
`col980` datetime DEFAULT '2012-11-01 04:17:58',
`col982` tinyint(4) NOT NULL DEFAULT '0',
`col983` longtext NOT NULL,
`col984` timestamp NOT NULL DEFAULT '2014-04-01 09:32:14',
`col985` geometry NOT NULL,
`col986` mediumtext NOT NULL,
`col988` datetime NOT NULL DEFAULT '2013-05-27 11:03:54',
`col989` multipolygon DEFAULT NULL,
`col990` point DEFAULT NULL,
`col991` date DEFAULT '2013-09-14',
`col992` decimal(60,22) DEFAULT '99999.0000000000000000000000',
`col994` point NOT NULL,
`col995` int(11) DEFAULT NULL,
`col996` linestring NOT NULL,
`col999` linestring NOT NULL,
`col1000` year(4) NOT NULL DEFAULT '0000',
`col1001` multipolygon DEFAULT NULL,
`col1003` char(241) CHARACTER SET utf8 NOT NULL DEFAULT 'daecplmeulhcukipaytdmxakydsevqomndsauzupvhzlqdpjrm',
`col1004` point NOT NULL,
`col1005` datetime NOT NULL DEFAULT '2013-04-26 07:42:37',
`col1006` time DEFAULT '04:24:57',
`col1008` bigint(20) unsigned zerofill NOT NULL DEFAULT '00000000000000100000',
`col1010` time DEFAULT '09:40:32',
`col1011` time NOT NULL DEFAULT '11:58:31',
`col1012` multipoint DEFAULT NULL,
`col1013` geometry NOT NULL,
`col1015` multipoint NOT NULL,
`col1016` double NOT NULL DEFAULT '1670',
`col1018` point DEFAULT NULL,
`col1019` binary(1) NOT NULL,
`col1020` time DEFAULT '18:25:51',
`col1021` time DEFAULT '05:19:46',
`col1022` double unsigned DEFAULT '624',
`col1023` polygon DEFAULT NULL,
`col1024` decimal(48,14) unsigned DEFAULT '1359.24930000000000',
`col1026` time DEFAULT '10:46:36',
`col1028` char(157) CHARACTER SET utf8 NOT NULL DEFAULT 'okypcqcawwiacioaurokkfwebjoyxsrhdhvxwulkaafsxtgrvpgbvhwjzezjpjoksspkfmtxtjmpwtoujonnwghoqbvclhvutgtbmvchpwmqxirpv',
`col1029` decimal(45,2) DEFAULT '-21.00',
`col1032` geometry DEFAULT NULL,
`col1033` datetime DEFAULT '2013-11-29 17:58:26',
`col1034` polygon NOT NULL,
`col1035` date NOT NULL DEFAULT '2013-09-05',
`col1036` time NOT NULL DEFAULT '23:39:55',
`col1037` decimal(48,10) unsigned DEFAULT '1120.3694000000',
`col1038` point DEFAULT NULL,
`col1039` decimal(59,1) NOT NULL DEFAULT '99999.0',
`col1040` geometrycollection NOT NULL,
`col1041` double unsigned NOT NULL DEFAULT '814',
`col1042` char(109) CHARACTER SET utf8 NOT NULL DEFAULT 'bvjezkzdncjwbgkqrarurhukjpkufpndufglnzoefwlydyuzrrpfcbq',
`col1043` datetime DEFAULT '2013-02-02 02:48:51',
`col1045` multilinestring NOT NULL,
`col1046` multipoint DEFAULT NULL,
`col1047` set('qiaa','cjsi','wqybnqaix','g','zywczkbqy','numkcscysn','oreb','inx','bm','i','xdpxhfjcn','ecns','hmosptjdd','czvkvkuk','gk') NOT NULL,
`col1048` int(11) NOT NULL DEFAULT '-616',
`col1049` date DEFAULT '2012-07-17',
`col1050` linestring NOT NULL,
`col1051` multipoint DEFAULT NULL,
`col1052` linestring NOT NULL,
`col1053` geometrycollection DEFAULT NULL,
`col1054` varbinary(221) NOT NULL,
`col1055` longblob NOT NULL,
`col1056` polygon NOT NULL,
`col1057` time DEFAULT '23:25:52',
`col1058` polygon NOT NULL,
`col1059` set('noogwcj','','cfnekzkrjq','brhpf','hybpsk','m','bafnlyx','','am','nbn','twao','stia','shsjnbiit','mvs','cjna','ilyum','dgajzpx','p','hltj','fioec','nmdtay','p','cerafgwnqb','ssxc','arvugjnhtx','hkdeqjsx','oiepzn','aqptepbd','oso','xavxru','eyk') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0016`
--
DROP TABLE IF EXISTS `t0016`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0016` (
`a16` int(10) unsigned DEFAULT NULL,
`col1063` longtext NOT NULL,
`col1066` time DEFAULT '13:25:56',
`col1067` linestring NOT NULL,
`col1068` int(10) unsigned zerofill DEFAULT '0000000000',
`col1070` polygon NOT NULL,
`col1072` text NOT NULL,
`col1073` varchar(176) NOT NULL DEFAULT 'jfssujwzxnwchxlhjcxhndwvuazzi',
`col1074` multilinestring NOT NULL,
`col1075` geometrycollection NOT NULL,
`col1076` binary(1) NOT NULL,
`col1077` mediumint(9) DEFAULT '782',
`col1078` multipolygon NOT NULL,
`col1080` double unsigned zerofill NOT NULL DEFAULT '0000000000000000000995',
`col1081` decimal(14,4) unsigned DEFAULT '100001.0000',
`col1083` datetime DEFAULT '2013-07-19 03:16:51',
`col1084` date NOT NULL DEFAULT '2013-05-04',
`col1085` binary(1) NOT NULL,
`col1087` mediumtext NOT NULL,
`col1089` multilinestring NOT NULL,
`col1093` geometrycollection NOT NULL,
`col1094` multipolygon NOT NULL,
`col1096` int(10) unsigned NOT NULL DEFAULT '1312',
`col1097` enum('zv','hsateueif','vspy','eaeeoyxfwq','sthkaaefr','rmtqryy','gpj','wgmxf','','dxy','w','bdwjuggq','elkfy','ary','herzeoia','hmzck','srm','rvydfkhf','xtwvlxms','udlth','ywhwbxxacq','bnzbquff','','','vwd','yvna','kqdbnkkbr','pfbbooq','reycu','jvgvhg','rztqiojgna','r','f','wgpr','uuwiwej','jify','dzypn','rccvoy','','xstyshh','bee','zcxxwndz','v','jhzn') NOT NULL,
`col1098` tinyint(3) unsigned DEFAULT '0',
`col1099` tinyint(3) unsigned DEFAULT '0',
`col1100` decimal(56,20) unsigned NOT NULL DEFAULT '621.00000000000000000000',
`col1101` binary(1) NOT NULL,
`col1102` varchar(30) NOT NULL DEFAULT 'ynxdnsh',
`col1103` timestamp NOT NULL DEFAULT '2013-08-11 10:17:55',
`col1104` datetime DEFAULT '2012-08-30 23:58:53',
`col1105` time DEFAULT '00:32:48',
`col1106` enum('azc','gbw','erizemkxub','','irqharjs','yatteb','apc','hsaq','yq','yqiasrgl','ugvqdhsrxd','','kqxaywfql','geq','yevqzf','badhobm','zx','sowkzt','','mask','sp','ysone','w','xjyi','b','','zed','uvqb','tbey','','yiqodqshwx','tfqzzuyjl','cdnvrwuh','tjhbnm','ngvxaiq','yghsbmwyw','sffo','od','xmeleeymp','wvqpl','sx','fmtx','','siyuovchtw','cpxzx','vjji') NOT NULL,
`col1107` datetime DEFAULT '2012-08-04 20:17:10',
`col1108` multilinestring DEFAULT NULL,
`col1110` polygon DEFAULT NULL,
`col1111` bit(12) DEFAULT b'1000011001',
`col1112` char(227) CHARACTER SET utf8 NOT NULL DEFAULT 'dvtqkkqlbotvwkphqecddxgpdamsfcsnylbxyzizrloulhuopcthczniutrxinuzrgsgvimooshhdadermfrmlvuzkjyafayfwyakhoh',
`col1113` linestring DEFAULT NULL,
`col1116` varbinary(150) NOT NULL,
`col1117` timestamp NOT NULL DEFAULT '2012-11-14 16:42:46',
`col1118` geometry NOT NULL,
`col1119` linestring NOT NULL,
`col1120` double unsigned NOT NULL DEFAULT '1557.1214',
`col1122` timestamp NOT NULL DEFAULT '2014-01-17 05:44:02',
`col1123` multilinestring DEFAULT NULL,
`col1124` decimal(58,24) DEFAULT '0.000000000000000000000000',
`col1125` float DEFAULT '-6.1078',
`col1126` point DEFAULT NULL,
`col1128` timestamp NOT NULL DEFAULT '2012-04-12 20:48:26',
`col1129` longtext NOT NULL,
`col1130` tinytext NOT NULL,
`col1132` date DEFAULT '2013-08-29',
`col1133` point NOT NULL,
`col1135` varbinary(35) NOT NULL,
`col1136` geometrycollection DEFAULT NULL,
`col1137` multipoint DEFAULT NULL,
`col1138` char(151) NOT NULL DEFAULT 'ytvcdfwhhjxftfefycsscoudijjbcbjugmprcmqbriqnsxsucgwsbxhmlayqgv',
`col1139` geometrycollection NOT NULL,
`col1140` binary(1) NOT NULL,
`col1141` enum('','tyxrrexkck','sl','roqczt','mz','cornyz','') NOT NULL,
`col1143` text NOT NULL,
`col1144` timestamp NOT NULL DEFAULT '2013-11-18 21:49:23',
`col1145` binary(1) NOT NULL,
`col1146` mediumblob NOT NULL,
`col1147` date NOT NULL DEFAULT '2013-01-31',
`col1148` geometry NOT NULL,
`col1150` date DEFAULT '2012-06-16',
`col1151` polygon NOT NULL,
`col1152` decimal(57,17) NOT NULL DEFAULT '-250988000000000000000000000000000.00000000000000000',
`col1153` date DEFAULT '2013-08-31',
`col1154` int(10) unsigned zerofill DEFAULT '0000000112',
`col1155` date DEFAULT '2013-05-09',
`col1156` polygon NOT NULL,
`col1158` longtext NOT NULL,
`col1160` varchar(41) CHARACTER SET utf8 NOT NULL DEFAULT 'jiohvsmfvz',
`col1161` multipolygon DEFAULT NULL,
`col1162` multilinestring NOT NULL,
`col1163` time NOT NULL DEFAULT '07:10:49',
`col1165` date NOT NULL DEFAULT '2014-02-15',
`col1167` mediumblob NOT NULL,
`col1168` time DEFAULT '03:09:14',
`col1169` decimal(53,30) unsigned zerofill DEFAULT '00000000000000000100000.000000000000000000000000000000',
`col1171` multilinestring DEFAULT NULL,
`col1172` enum('csrcryw','','ouzkmrkr','','pwb','xuk','rs','woyhbyijlo','fcubwkuqet','xykfryigwb','oyxedo','uutuoa','jpax','h','ynvt','xkovhiiw','wl','vtcpuoe','bjwcvtsnpt','kt','ftyonjs','hfsibxcorg','houdny','fgmvvd','awmn','ehw','gvkw','d','rlga','rccpxa','bljkbqeio','fa','ebjnk','fcmujlyj','xpixyat','qdhpeord','y','mjqjbzmxo','anokxuloq','','','achuhaw','bhghxu','c','jyzi') NOT NULL,
`col1173` multipoint NOT NULL,
`col1174` enum('jplvfk','jzu','crmmcad','qdzpsygoij') NOT NULL,
`col1178` mediumtext NOT NULL,
`col1179` char(76) NOT NULL DEFAULT 'kzgsgehrzxehibpertgxscsjkum',
`col1180` varbinary(123) NOT NULL,
`col1182` linestring DEFAULT NULL,
PRIMARY KEY (`col1106`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0017`
--
DROP TABLE IF EXISTS `t0017`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0017` (
`a17` int(10) unsigned NOT NULL,
`col1183` char(75) NOT NULL DEFAULT 'baoxkotgsipncvpipmtutepzzoyqxrixoygkioklqjqvjokbsttgurlhajpjhgixlqmzt',
`col1184` date NOT NULL DEFAULT '2014-03-23',
`col1185` binary(1) NOT NULL,
`col1188` multipoint NOT NULL,
`col1189` date NOT NULL DEFAULT '2013-06-07',
`col1191` binary(1) NOT NULL,
`col1192` mediumblob NOT NULL,
`col1193` polygon NOT NULL,
`col1194` date DEFAULT '2012-04-28',
`col1195` double unsigned NOT NULL DEFAULT '4.854277e81',
`col1196` decimal(28,12) NOT NULL DEFAULT '0.000000000000',
`col1197` geometry NOT NULL,
`col1198` timestamp NOT NULL DEFAULT '2013-05-20 03:24:15',
`col1199` char(159) CHARACTER SET utf8 NOT NULL,
`col1200` point DEFAULT NULL,
`col1201` decimal(64,15) unsigned NOT NULL DEFAULT '0.000000000000000',
`col1202` time NOT NULL DEFAULT '17:12:50',
`col1203` char(177) NOT NULL DEFAULT 'risfaqkobrmpxlikxekmkpmnc',
`col1204` blob NOT NULL,
`col1206` char(73) CHARACTER SET utf8 NOT NULL,
`col1207` geometrycollection DEFAULT NULL,
`col1208` double unsigned NOT NULL DEFAULT '1.811703e-95',
`col1209` int(10) unsigned NOT NULL DEFAULT '1210',
`col1210` date NOT NULL DEFAULT '2012-07-21',
`col1211` enum('num','hkifohq','rkvmjxvrf','qhxu','lpbmgmceph','neidg','ufysduw','qnbkiuq','','jsmfvsw','jytne','zar','viu','i','tqtn','','wsgfu','rint','q','izgsko','ka','ihdrt','g','uyefhmkk','xmprnlott','byf','xuzksjbj','wirwiyb','yvuqfc','','iaupzyzb','ldjmled','hxtsrtzqe','ijulwdhxyh','ilfycvi','ipnv','ygjuswdqg','jd','xojpmzt','qmejp') NOT NULL,
`col1212` datetime NOT NULL DEFAULT '2013-12-29 01:30:10',
`col1213` multipoint NOT NULL,
`col1215` geometry NOT NULL,
`col1216` char(100) CHARACTER SET utf8 NOT NULL,
`col1218` tinytext NOT NULL,
`col1219` mediumblob NOT NULL,
`col1220` multilinestring NOT NULL,
`col1223` datetime NOT NULL DEFAULT '2012-07-02 02:58:40',
`col1224` datetime NOT NULL DEFAULT '2012-06-27 03:48:44',
`col1227` multipoint DEFAULT NULL,
`col1229` datetime DEFAULT '2012-06-26 09:01:05',
`col1231` geometry DEFAULT NULL,
`col1233` multipoint DEFAULT NULL,
`col1234` timestamp NOT NULL DEFAULT '2014-01-09 18:02:52',
`col1235` date NOT NULL DEFAULT '2013-07-07',
`col1236` timestamp NOT NULL DEFAULT '2013-04-18 19:24:36',
`col1237` polygon DEFAULT NULL,
`col1238` char(104) NOT NULL DEFAULT 'phkgiwzbbxa',
`col1240` geometrycollection NOT NULL,
`col1241` datetime DEFAULT '2012-09-26 17:25:13',
`col1242` datetime DEFAULT '2012-12-09 18:18:44',
`col1244` date NOT NULL DEFAULT '2012-11-26',
`col1245` time DEFAULT '12:16:19',
`col1248` mediumblob NOT NULL,
`col1249` multipoint DEFAULT NULL,
`col1250` linestring DEFAULT NULL,
PRIMARY KEY (`a17`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0018`
--
DROP TABLE IF EXISTS `t0018`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0018` (
`a18` int(10) unsigned zerofill NOT NULL,
`col1251` multipolygon NOT NULL,
`col1252` time DEFAULT '05:05:08',
`col1253` timestamp NOT NULL DEFAULT '2013-10-20 10:24:43',
`col1254` time NOT NULL DEFAULT '09:12:31',
`col1256` mediumblob NOT NULL,
`col1257` tinytext NOT NULL,
`col1258` float unsigned zerofill DEFAULT '00000168.297',
`col1261` text NOT NULL,
`col1262` blob NOT NULL,
`col1263` geometry DEFAULT NULL,
`col1264` geometry NOT NULL,
`col1265` datetime NOT NULL DEFAULT '2012-07-05 03:01:50',
`col1266` multipoint DEFAULT NULL,
`col1267` multilinestring NOT NULL,
`col1268` timestamp NOT NULL DEFAULT '2014-01-31 16:42:28',
`col1271` multipoint DEFAULT NULL,
`col1272` bigint(20) unsigned NOT NULL DEFAULT '660',
`col1274` mediumblob NOT NULL,
`col1275` blob NOT NULL,
`col1276` double DEFAULT '-1517',
`col1277` geometrycollection DEFAULT NULL,
`col1278` linestring DEFAULT NULL,
`col1280` multipoint NOT NULL,
`col1281` time DEFAULT '00:36:21',
`col1282` datetime NOT NULL DEFAULT '2013-07-11 11:51:40',
`col1284` decimal(62,23) NOT NULL DEFAULT '111.19190000000000000000000',
`col1285` multilinestring DEFAULT NULL,
`col1286` polygon DEFAULT NULL,
`col1290` int(11) NOT NULL DEFAULT '177',
`col1291` mediumblob NOT NULL,
`col1292` polygon NOT NULL,
`col1293` geometrycollection NOT NULL,
`col1295` longtext NOT NULL,
`col1296` longblob NOT NULL,
`col1300` geometrycollection NOT NULL,
`col1301` linestring DEFAULT NULL,
`col1302` datetime DEFAULT '2013-12-08 07:35:34',
`col1304` multilinestring DEFAULT NULL,
`col1305` double unsigned zerofill DEFAULT '00000000000000335.6767',
`col1306` longblob NOT NULL,
`col1307` blob NOT NULL,
`col1309` varbinary(79) NOT NULL,
`col1310` tinytext NOT NULL,
`col1311` mediumint(9) NOT NULL DEFAULT '-952',
`col1313` char(224) CHARACTER SET utf8 NOT NULL DEFAULT 'tobcniglirucygistwldqftcajeygtaiwnlqntknhsywguoeenteaex',
`col1314` enum('zttiomwx','ayvts','wq','zrwirwceu','fluvwksxz','ozdbgrbwm','szaz','nboefxltn','bckma','air','kmwkubqnsz','d') NOT NULL,
`col1316` geometry NOT NULL,
`col1317` binary(1) NOT NULL,
`col1319` geometry NOT NULL,
`col1320` float unsigned zerofill DEFAULT '000001546.78',
`col1321` timestamp NOT NULL DEFAULT '2013-02-27 05:04:16',
`col1322` longtext NOT NULL,
`col1323` tinyblob NOT NULL,
`col1324` date DEFAULT '2014-02-05'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0019`
--
DROP TABLE IF EXISTS `t0019`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0019` (
`col1325` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`col1326` char(245) NOT NULL DEFAULT 'uuawftxbhnxialosrbblxncpnppwdyeywzoqvilgigpadnfbaiwagbbfkymbgzipqtqjqth',
`col1327` char(73) CHARACTER SET utf8 NOT NULL,
`col1328` time NOT NULL DEFAULT '03:51:00',
`col1329` enum('','aeoq','ftohayvpqy','vdcsmsqsb','clcvox','wbegfjmxlb','uponqcql','dzlvheuwfc','cdaifnb','mimadcuuiv','ysnus','','zaaffru','mkhcyu','ylzjlmrgrv','hxwap','sku','sonoirwm','','df','snc','wrdskum','vrsnz','ialaqhb','glloat','itto','fczkd','enkms','xuanbw','oxpwe','ziqmou','fpcuf','yo','w','r','vmfho','oaqchqv','exflmndzrj','xwprjyciz','dbiq','mfa','kqvzotr','lyktyy','cjyquzklbm','rsqmi','','xnnocwkumd','lzcriack','t','','jopa','akmmhr','','jn','jktnno','empdkagqv') NOT NULL,
`col1330` time NOT NULL DEFAULT '22:13:05',
`col1331` varchar(144) NOT NULL DEFAULT 'ymyevgqqptfjyxwpwjdekmlmusdsrwgzkjxdvcowogqqdauackpubieawwtvfnmfgkbeqchgdthrsdbj',
`col1332` mediumtext NOT NULL,
`col1333` time DEFAULT '15:59:51',
`col1334` linestring NOT NULL,
`col1335` mediumblob NOT NULL,
`col1336` longblob NOT NULL,
`col1337` bit(48) NOT NULL DEFAULT b'10100101000',
`col1340` multipoint DEFAULT NULL,
`col1341` geometry NOT NULL,
`col1343` char(246) CHARACTER SET utf8 NOT NULL,
`col1344` longtext NOT NULL,
`col1345` multilinestring NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0020`
--
DROP TABLE IF EXISTS `t0020`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0020` (
`a20` int(10) unsigned NOT NULL,
`col1346` double NOT NULL DEFAULT '520',
`col1347` point NOT NULL,
`col1348` tinyint(4) DEFAULT NULL,
`col1349` enum('btvfowcq','tcxzwdmafh','ejjgekwgh','yzam','xsnp','mwgddkwu','mingydmmjd','zjvpogvula','sehzcz','lnkg','bf','','p','viwrg','kllnlpu','vypldlaoj','mdczd','','qojntczgru','','jv','kljsias','ipdihdzdc','e','qmya','enxuetlyuz','wcbsezl') NOT NULL,
`col1350` multipoint NOT NULL,
`col1351` float DEFAULT '15.8017',
`col1352` timestamp NOT NULL DEFAULT '2013-09-22 22:55:12',
`col1353` tinyint(1) DEFAULT '0',
`col1355` text NOT NULL,
`col1356` enum('','','wmhvsslkg','izu','','vm','','ehfze','dyw','duxj','rllroknn','aws','npnpqff','jlidfxjp','zhpmrv','tuqwmxkuv','qiy','yxaqltz','pqismxgzv','zanvcxkj','w','','p','rwr') NOT NULL,
`col1358` double unsigned zerofill DEFAULT '0000000000000000001341',
`col1360` point NOT NULL,
`col1361` double NOT NULL DEFAULT '-1.6438483e38',
`col1362` text NOT NULL,
`col1363` geometry DEFAULT NULL,
`col1364` timestamp NOT NULL DEFAULT '2014-02-11 16:21:38',
`col1365` date NOT NULL DEFAULT '2012-11-17',
`col1366` longtext NOT NULL,
`col1367` datetime NOT NULL DEFAULT '2013-06-22 16:21:21',
`col1368` int(10) unsigned zerofill DEFAULT '0000001596',
`col1369` decimal(41,1) DEFAULT '-100001.0',
`col1370` set('l','houybd','arij','vhqugan','tsgfcehxwd','sjasihoau','vhr','icfx','ig','mygpyjwdi','koycc','tzhx','ovpjw','','','x','tnuhli','fh','jnzswjrgn','r','z','oncciqohop','bnqwplw','','','imgwod','nqvwfzlfs','','vkarg','','hb','ugsenbjtj','qvkyj','injaumm','mpyidcn','qgqjl','kaddp','fzuswxsco') NOT NULL,
`col1371` time NOT NULL DEFAULT '19:53:22',
`col1372` point NOT NULL,
`col1373` date NOT NULL DEFAULT '2012-11-01',
`col1374` geometry NOT NULL,
`col1376` decimal(58,4) NOT NULL DEFAULT '-1156000000000000000000000000000000.0000',
`col1377` datetime NOT NULL DEFAULT '2014-03-15 21:28:00',
`col1378` point DEFAULT NULL,
`col1382` timestamp NOT NULL DEFAULT '2012-09-07 11:14:36',
`col1383` timestamp NOT NULL DEFAULT '2012-09-06 23:03:12',
`col1384` binary(1) NOT NULL,
`col1385` timestamp NOT NULL DEFAULT '2012-06-02 09:06:55',
`col1386` polygon NOT NULL,
`col1387` time DEFAULT '09:39:53',
`col1388` time DEFAULT '07:44:37',
`col1389` double unsigned NOT NULL DEFAULT '1090',
`col1392` varchar(159) CHARACTER SET utf8 NOT NULL DEFAULT 'nxjibdlqhzjpiymfsqdvqcnrxmkdhjrqsayymddiekubhkxcxeeasixdcq',
PRIMARY KEY (`col1353`) USING HASH,
FULLTEXT KEY `idx793` (`col1366`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0021`
--
DROP TABLE IF EXISTS `t0021`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0021` (
`a21` int(11) DEFAULT NULL,
`col1393` tinyblob NOT NULL,
`col1394` timestamp NOT NULL DEFAULT '2014-02-12 07:35:33',
`col1396` text NOT NULL,
`col1397` decimal(46,19) unsigned zerofill DEFAULT '000000000000000000000000589.0000000000000000000',
`col1398` time NOT NULL DEFAULT '02:39:07',
`col1400` timestamp NOT NULL DEFAULT '2012-12-17 06:38:01',
`col1401` polygon DEFAULT NULL,
`col1402` date DEFAULT '2013-10-13',
`col1403` set('bjdlbwvj','x','ndsdy','jqhmdn','n','lglfzz','wigzsqo','btdfoukf','rux','easufkhx','','fewhcgvte','','bdsnzsunfd','wm','dfqgzy') NOT NULL,
`col1404` time DEFAULT '05:40:15',
`col1405` mediumtext NOT NULL,
`col1407` multipolygon NOT NULL,
`col1408` decimal(48,18) unsigned zerofill NOT NULL DEFAULT '000000000000000000000000100001.000000000000000000',
`col1410` geometry NOT NULL,
`col1411` linestring NOT NULL,
`col1412` geometry NOT NULL,
`col1413` tinyint(1) NOT NULL DEFAULT '0',
`col1414` timestamp NOT NULL DEFAULT '2014-01-22 05:15:40',
`col1415` geometry NOT NULL,
`col1418` timestamp NOT NULL DEFAULT '2013-06-12 23:11:43',
`col1419` point NOT NULL,
`col1420` point NOT NULL,
`col1421` mediumblob NOT NULL,
`col1422` mediumint(9) NOT NULL DEFAULT '671',
`col1423` point NOT NULL,
`col1424` binary(1) NOT NULL,
`col1425` year(4) DEFAULT '0000',
`col1426` decimal(25,7) NOT NULL DEFAULT '534.3197000',
`col1428` int(11) NOT NULL DEFAULT '-861',
`col1429` date DEFAULT '2013-02-16',
`col1430` timestamp NOT NULL DEFAULT '2012-09-30 06:27:54',
`col1431` multilinestring NOT NULL,
`col1432` decimal(25,8) unsigned DEFAULT '279.77160000',
`col1433` float NOT NULL DEFAULT '1344.67',
`col1435` point NOT NULL,
`col1436` mediumtext NOT NULL,
`col1437` tinytext NOT NULL,
`col1438` mediumtext NOT NULL,
`col1439` binary(1) NOT NULL,
`col1441` blob NOT NULL,
`col1442` date NOT NULL DEFAULT '2012-07-16',
`col1443` multipolygon DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t0022`
--
DROP TABLE IF EXISTS `t0022`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t0022` (
`a22` int(11) DEFAULT NULL,
`col1444` bigint(20) unsigned NOT NULL DEFAULT '897',
`col1445` multilinestring NOT NULL,
`col1446` double unsigned zerofill NOT NULL DEFAULT '000000000001.481171e56',
`col1448` geometry DEFAULT NULL,
`col1449` double unsigned DEFAULT '1601.6937',
`col1450` blob NOT NULL,
`col1451` int(10) unsigned NOT NULL DEFAULT '100001',
`col1452` date DEFAULT '2013-05-27',
`col1453` decimal(50,1) DEFAULT '-100000.0',
`col1455` multipoint NOT NULL,
`col1456` multipoint DEFAULT NULL,
`col1457` multilinestring NOT NULL,
`col1458` int(10) unsigned zerofill DEFAULT '0000000000',
`col1459` linestring NOT NULL,
`col1460` multilinestring NOT NULL,
`col1461` time NOT NULL DEFAULT '03:58:44',
`col1462` bigint(20) DEFAULT '524',
`col1463` double NOT NULL DEFAULT '-9.31e-79'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!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 2013-04-10 13:19:24 | the_stack |
-- 2021-05-11T08:08:42.768Z
-- 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,543838,543067,TO_TIMESTAMP('2021-05-11 11:08:42','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2021-05-11 11:08:42','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit')
;
-- 2021-05-11T08:08:42.775Z
-- 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 t.AD_UI_Section_ID=543067 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)
;
-- 2021-05-11T08:09:00.755Z
-- 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,543858,543067,TO_TIMESTAMP('2021-05-11 11:09:00','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2021-05-11 11:09:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:09:19.690Z
-- 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,543858,545813,TO_TIMESTAMP('2021-05-11 11:09:19','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,TO_TIMESTAMP('2021-05-11 11:09:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:09:36.601Z
-- 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,643991,0,543838,584731,545813,'F',TO_TIMESTAMP('2021-05-11 11:09:36','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','N','Y','N','N','N',0,'Zugangs-ID',10,0,0,TO_TIMESTAMP('2021-05-11 11:09:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:11:37.713Z
-- 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,543859,543067,TO_TIMESTAMP('2021-05-11 11:11:37','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2021-05-11 11:11:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:12:09.262Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=584731
;
-- 2021-05-11T08:12:14.798Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=545813
;
-- 2021-05-11T08:12:31.810Z
-- 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,543859,545814,TO_TIMESTAMP('2021-05-11 11:12:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,TO_TIMESTAMP('2021-05-11 11:12:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:12:49.083Z
-- 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,643991,0,543838,584732,545814,'F',TO_TIMESTAMP('2021-05-11 11:12:48','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','N','Y','N','N','N',0,'Zugangs-ID',10,0,0,TO_TIMESTAMP('2021-05-11 11:12:48','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:16:14.889Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=584732
;
-- 2021-05-11T08:16:18.551Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=545814
;
-- 2021-05-11T08:16:24.755Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=543859
;
-- 2021-05-11T08:16:43.308Z
-- 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,543858,545815,TO_TIMESTAMP('2021-05-11 11:16:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,'primary',TO_TIMESTAMP('2021-05-11 11:16:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T08:17:09.449Z
-- 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,643991,0,543838,584733,545815,'F',TO_TIMESTAMP('2021-05-11 11:17:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','N','Y','N','N','N',0,'Zugangs-ID',10,0,0,TO_TIMESTAMP('2021-05-11 11:17:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T09:14:15.464Z
-- 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,643992,0,543838,584734,545815,'F',TO_TIMESTAMP('2021-05-11 12:14:15','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','N','Y','N','N','N',0,'Sicherheitsschlüssel',20,0,0,TO_TIMESTAMP('2021-05-11 12:14:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T09:14:35.409Z
-- 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) VALUES (0,643995,0,543838,584735,545815,'F',TO_TIMESTAMP('2021-05-11 12:14:35','YYYY-MM-DD HH24:MI:SS'),100,'JSON-Path, der angibt wo innerhalb einer kundenspezifisch Angepassten Shopware-Order die permanente ID des Kunden ausgelesen werden kann. ACHTUNG: wenn gesetzt, dann werden Orders ohne einen entsprechenden Wert ignoriert!','Y','Y','N','Y','N','N','N',0,'Kunden JSON-Path',30,0,0,TO_TIMESTAMP('2021-05-11 12:14:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T09:14:46.724Z
-- 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) VALUES (0,643996,0,543838,584736,545815,'F',TO_TIMESTAMP('2021-05-11 12:14:46','YYYY-MM-DD HH24:MI:SS'),100,'JSON-Path, der angibt wo innerhalb einer kundenspezifisch Angepassten Shopware-Addresse die die permanente Address-ID ausgelesen werden kann. ACHTUNG: wenn gesetzt, dann werden Addressen ohne einen entsprechenden Wert ignoriert!','Y','Y','N','Y','N','N','N',0,'Adress JSON-Path',40,0,0,TO_TIMESTAMP('2021-05-11 12:14:46','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T09:15:12.027Z
-- 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) VALUES (0,645427,0,543838,584737,545815,'F',TO_TIMESTAMP('2021-05-11 12:15:11','YYYY-MM-DD HH24:MI:SS'),100,'JSON-Path, der angibt wo innerhalb einer kundenspezifisch Angepassten Shopware-Order der Suchschlüssel der Vertriebspartners zu ausgelesen werden kann.','Y','N','N','Y','N','N','N',0,'Vertriebpartner JSON-Path',50,0,0,TO_TIMESTAMP('2021-05-11 12:15:11','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-05-11T09:17:18.511Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2021-05-11 12:17:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=584737
;
-- 2021-05-11T09:18:19.492Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=584737
;
-- 2021-05-11T09:19:10.762Z
-- 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) VALUES (0,645427,0,543838,584738,545815,'F',TO_TIMESTAMP('2021-05-11 12:19:10','YYYY-MM-DD HH24:MI:SS'),100,'JSON-Path, der angibt wo innerhalb einer kundenspezifisch Angepassten Shopware-Order der Suchschlüssel der Vertriebspartners zu ausgelesen werden kann.','Y','Y','N','Y','N','N','N',0,'Vertriebpartner JSON-Path',50,0,0,TO_TIMESTAMP('2021-05-11 12:19:10','YYYY-MM-DD HH24:MI:SS'),100)
; | the_stack |
Known Issues & Limitations:
- no support for Multi-Dimensional Segment Clustering in this Version: 1.5.0, August 2017
Changes in 1.0.2
+ Added schema information and quotes for the table name
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added support for the Index Location (Disk-Based, InMemory)
+ Added new parameter for filtering the indexes, based on their location (Disk-Based or In-Memory) - @indexLocation
Changes in 1.3.1
- Added support for Databases with collations different to TempDB
Changes in 1.5.0
+ Added new parameter that allows to filter the results by specific partition number (@partitionNumber)
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
+ Added new parameter for showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition and the overall recommendation number (@showSegmentAnalysis)
+ Added new parameter for showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results are included in the overall recommendation for segment elimination
+ Added information on the Predicate Pushdown support (it will be showing results depending on the used edition) - column [Predicate Pushdown]
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server version is:' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetAlignment' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetAlignment as select 1');
GO
/*
CSIL - Columnstore Indexes Scripts Library for SQL Server 2012:
Columnstore Alignment - Shows the alignment (ordering) between the different Columnstore Segments
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetAlignment(
-- Params --
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@showSegmentAnalysis BIT = 0, -- Allows showing the overall recommendation for aligning order for each table/partition
@countDistinctValues BIT = 0, -- Allows showing the number of distinct values within the segments, the percentage related to the total number of the rows within table/partition (@countDistinctValues)
@scanExecutionPlans BIT = 0, -- Allows showing the frequency of the column usage as predicates during querying (@scanExecutionPlans), which results is included in the overall recommendation for segment elimination
@indexLocation varchar(15) = NULL, -- Allows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@showPartitionStats bit = 1, -- Shows alignment statistics based on the partition
@partitionNumber int = 0, -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1
@showUnsupportedSegments bit = 1, -- Shows unsupported Segments in the result set
@columnName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular column name
@columnId int = NULL -- Allows to filter one specific column Id
-- end of --
) as
begin
set nocount on;
IF OBJECT_ID('tempdb..#column_store_segments') IS NOT NULL
DROP TABLE #column_store_segments
SELECT SchemaName, TableName, object_id, partition_number, hobt_id, partition_id, column_id, segment_id, min_data_id, max_data_id
INTO #column_store_segments
FROM ( select object_schema_name(part.object_id) as SchemaName, object_name(part.object_id) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id
FROM sys.column_store_segments seg
INNER JOIN sys.partitions part
ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
union all
select object_schema_name(part.object_id,db_id('tempdb')) as SchemaName, object_name(part.object_id,db_id('tempdb')) as TableName, part.object_id, part.partition_number, part.hobt_id, part.partition_id, seg.column_id, seg.segment_id, seg.min_data_id, seg.max_data_id
FROM tempdb.sys.column_store_segments seg
INNER JOIN tempdb.sys.partitions part
ON seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
) as Res
ALTER TABLE #column_store_segments
ADD UNIQUE (hobt_id, partition_id, column_id, min_data_id, segment_id);
ALTER TABLE #column_store_segments
ADD UNIQUE (hobt_id, partition_id, column_id, max_data_id, segment_id);
IF OBJECT_ID('tempdb..#SegmentAlignmentResults', 'U') IS NOT NULL
DROP TABLE #SegmentAlignmentResults;
with cteSegmentAlignment as (
select part.object_id,
quotename(object_schema_name(part.object_id)) + '.' + quotename(object_name(part.object_id)) as TableName,
case @showPartitionStats when 1 then part.partition_number else 1 end as partition_number,
seg.partition_id, seg.column_id, cols.name as ColumnName, tp.name as ColumnType,
seg.segment_id,
CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS hasOverlappingSegment
from sys.column_store_segments seg
inner join sys.partitions part
on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
inner join sys.columns cols
on part.object_id = cols.object_id and seg.column_id = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
outer apply (
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1
UNION ALL
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2
) filteredSeg
where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and 1 = case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else 1 end
group by part.object_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id
UNION ALL
select part.object_id,
quotename(object_schema_name(part.object_id,db_id('tempdb'))) + '.' + quotename(object_name(part.object_id,db_id('tempdb'))) as TableName,
case @showPartitionStats when 1 then part.partition_number else 1 end as partition_number,
seg.partition_id, seg.column_id, cols.name COLLATE DATABASE_DEFAULT as ColumnName, tp.name COLLATE DATABASE_DEFAULT as ColumnType,
seg.segment_id,
CONVERT(BIT, MAX(CASE WHEN filteredSeg.segment_id IS NOT NULL THEN 1 ELSE 0 END)) AS hasOverlappingSegment
from tempdb.sys.column_store_segments seg
inner join tempdb.sys.partitions part
on seg.hobt_id = part.hobt_id and seg.partition_id = part.partition_id
inner join tempdb.sys.columns cols
on part.object_id = cols.object_id and seg.column_id = cols.column_id
inner join tempdb.sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
outer apply (
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg --WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.min_data_id and seg.max_data_id > otherSeg.min_data_id ) -- Scenario 1
UNION ALL
SELECT TOP 1 otherSeg.segment_id
FROM #column_store_segments otherSeg --WITH (FORCESEEK)
WHERE seg.hobt_id = otherSeg.hobt_id
AND seg.partition_id = otherSeg.partition_id
AND seg.column_id = otherSeg.column_id
AND seg.segment_id <> otherSeg.segment_id
AND (seg.min_data_id < otherSeg.max_data_id and seg.max_data_id > otherSeg.max_data_id ) -- Scenario 2
) filteredSeg
where (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and 1 = case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else 1 end
group by part.object_id, case @showPartitionStats when 1 then part.partition_number else 1 end, seg.partition_id, seg.column_id, cols.name, tp.name, seg.segment_id
)
select TableName, 'Disk-Based' as Location, partition_number as 'Partition', cte.column_id as 'Column Id', cte.ColumnName,
cte.ColumnType,
case cte.ColumnType when 'numeric' then 'not supported'
when 'datetimeoffset' then 'not supported'
when 'char' then 'not supported'
when 'nchar' then 'not supported'
when 'varchar' then 'not supported'
when 'nvarchar' then 'not supported'
when 'sysname' then 'not supported'
when 'binary' then 'not supported'
when 'varbinary' then 'not supported'
when 'uniqueidentifier' then 'not supported'
else 'OK' end as 'Segment Elimination',
case cte.ColumnType when 'numeric' then 'not supported'
when 'datetimeoffset' then 'not supported'
when 'char' then 'not supported'
when 'nchar' then 'not supported'
when 'varchar' then 'not supported'
when 'nvarchar' then 'not supported'
when 'sysname' then 'not supported'
when 'binary' then 'not supported'
when 'varbinary' then 'not supported'
when 'uniqueidentifier' then 'not supported'
else 'OK' end as [Predicate Pushdown],
sum(CONVERT(INT, hasOverlappingSegment)) as [Dealigned Segments],
count(*) as [Total Segments],
100 - cast( sum(CONVERT(INT, hasOverlappingSegment)) * 100.0 / (count(*)) as Decimal(6,2)) as [Segment Alignment %]
INTO #SegmentAlignmentResults
from cteSegmentAlignment cte
where ((@showUnsupportedSegments = 0 and cte.ColumnType COLLATE DATABASE_DEFAULT not in ('numeric','datetimeoffset','char', 'nchar', 'varchar', 'nvarchar', 'sysname','binary','varbinary','uniqueidentifier') )
OR @showUnsupportedSegments = 1)
and cte.ColumnName COLLATE DATABASE_DEFAULT = isnull(@columnName,cte.ColumnName COLLATE DATABASE_DEFAULT)
and cte.column_id = isnull(@columnId,cte.column_id)
group by TableName, partition_number, cte.column_id, cte.ColumnName, cte.ColumnType
order by TableName, partition_number, cte.column_id;
--- *****************************************************
IF @showSegmentAnalysis = 1
BEGIN
DECLARE @alignedColumnList NVARCHAR(MAX) = NULL;
DECLARE @alignedColumnNamesList NVARCHAR(MAX) = NULL;
DECLARE @alignedTable NVARCHAR(128) = NULL,
@alignedPartition INT = NULL,
@partitioningClause NVARCHAR(500) = NULL;
IF OBJECT_ID('tempdb..#DistinctCounts', 'U') IS NOT NULL
DROP TABLE #DistinctCounts;
CREATE TABLE #DistinctCounts(
TableName SYSNAME NOT NULL,
PartitionId INT NOT NULL,
ColumnName SYSNAME NOT NULL,
DistinctCount BIGINT NOT NULL,
TotalRowCount BIGINT NOT NULL
);
DECLARE alignmentTablesCursor CURSOR LOCAL FAST_FORWARD FOR
SELECT DISTINCT TableName, [Partition]
FROM #SegmentAlignmentResults;
OPEN alignmentTablesCursor
FETCH NEXT FROM alignmentTablesCursor
INTO @alignedTable, @alignedPartition;
WHILE @@FETCH_STATUS = 0
BEGIN
IF @countDistinctValues = 1
BEGIN
-- Define Partitioning Clause when showing partitioning information
SET @partitioningClause = '';
SELECT @partitioningClause = 'WHERE $PARTITION.[' + pf.name + ']([' + cols.name + ']) = ' + CAST(@alignedPartition AS VARCHAR(8))
FROM sys.indexes ix
INNER JOIN sys.partition_schemes ps on ps.data_space_id = ix.data_space_id
INNER JOIN sys.partition_functions pf on pf.function_id = ps.function_id
INNER JOIN sys.index_columns ic
ON ic.object_id = ix.object_id AND ix.index_id = ic.index_id
INNER JOIN sys.all_columns cols
ON ic.column_id = cols.column_id AND ic.object_id = cols.object_id
WHERE ix.object_id = object_id(@alignedTable)
AND ic.partition_ordinal = 1 AND @showPartitionStats = 1;
-- Get the list with COUNT(DISTINCT [ColumnName])
SELECT @alignedColumnList = STUFF((
SELECt ', COUNT( DISTINCT ' + QUOTENAME(name) + ') as [' + name + ']'
FROM sys.columns cols
WHERE OBJECT_ID(@alignedTable) = cols.object_id
AND cols.name = isnull(@columnName,cols.name)
AND cols.column_id = isnull(@columnId,cols.column_id)
ORDER BY cols.column_id DESC
FOR XML PATH('')
), 1, 1, '');
SELECT @alignedColumnNamesList = STUFF((
SELECt ', [' + name + ']'
FROM sys.columns cols
WHERE OBJECT_ID(@alignedTable) = cols.object_id
AND cols.name = isnull(@columnName,cols.name)
AND cols.column_id = isnull(@columnId,cols.column_id)
ORDER BY cols.column_id DESC
FOR XML PATH('')
), 1, 1, '');
-- Insert Count(*) and COUNT(DISTINCT*) into the #DistinctCounts table
EXEC ( N'INSERT INTO #DistinctCounts ' +
'SELECT ''' + @alignedTable + ''' as TableName, ' + @alignedPartition + ' as PartitionNumber, ColumnName, DistinctCount, __TotalRowCount__ as TotalRowCount ' +
' FROM (SELECT ''DistCount'' as [__Op__], COUNT(*) as __TotalRowCount__, ' + @alignedColumnList +
' FROM ' + @alignedTable + @partitioningClause + ') res ' +
' UNPIVOT ' +
' ( DistinctCount FOR ColumnName IN(' + @alignedColumnNamesList + ') ' +
' ) AS finalResult;' );
END
FETCH NEXT FROM alignmentTablesCursor
INTO @alignedTable, @alignedPartition;
END
CLOSE alignmentTablesCursor;
DEALLOCATE alignmentTablesCursor;
-- Create table storing results of the access via cached execution plans
IF OBJECT_ID('tempdb..#CachedAccessToColumnstore', 'U') IS NOT NULL
DROP TABLE #CachedAccessToColumnstore;
CREATE TABLE #CachedAccessToColumnstore(
[Schema] SYSNAME NOT NULL,
[Table] SYSNAME NOT NULL,
[TableName] SYSNAME NOT NULL,
[ColumnName] SYSNAME NOT NULL,
[ScanFrequency] BIGINT,
[ScanRank] DECIMAL(16,6)
);
-- Scan cached execution plans and extract the frequency with which the table columns are searched
IF @scanExecutionPlans = 1
BEGIN
-- Extract information from the cached execution plans to determine the frequency of the used(pushed down) predicates against Columnstore Indexes
;WITH XMLNAMESPACES (DEFAULT 'http://schemas.microsoft.com/sqlserver/2004/07/showplan')
INSERT INTO #CachedAccessToColumnstore
SELECT [Schema],
[Table],
[Schema] + '.' + [Table] as TableName,
[Column] as ColumnName,
SUM(execution_count) as ScanFrequency,
Cast(0. as Decimal(16,6)) as ScanRank
FROM (
SELECT x.value('(@Database)[1]', 'nvarchar(128)') AS [Database],
x.value('(@Schema)[1]', 'nvarchar(128)') AS [Schema],
x.value('(@Table)[1]', 'nvarchar(128)') AS [Table],
x.value('(@Alias)[1]', 'nvarchar(128)') AS [Alias],
x.value('(@Column)[1]', 'nvarchar(128)') AS [Column],
xmlRes.execution_count
FROM (
SELECT dm_exec_query_plan.query_plan,
dm_exec_query_stats.execution_count
FROM sys.dm_exec_query_stats
CROSS APPLY sys.dm_exec_sql_text(dm_exec_query_stats.sql_handle)
CROSS APPLY sys.dm_exec_query_plan(dm_exec_query_stats.plan_handle)
WHERE query_plan.exist('//RelOp//IndexScan[@Storage = "ColumnStore"]') = 1
AND query_plan.exist('//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference') = 1
) xmlRes
CROSS APPLY xmlRes.query_plan.nodes('//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference') x1(x) --[@Database = "[' + @dbName + ']"]
WHERE
-- Avoid Inter-column Search references since they are not supporting Segment Elimination
NOT (query_plan.exist('(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[1]') = 1
AND query_plan.exist('(//RelOp//IndexScan//Predicate//Compare//ScalarOperator//Identifier//ColumnReference[@Table])[2]') = 1
AND x.value('(@Table)[1]', 'nvarchar(128)') = x.value('(@Table)[2]', 'nvarchar(128)') )
) res
WHERE res.[Database] = QUOTENAME(DB_NAME()) AND res.[Schema] IS NOT NULL AND res.[Table] IS NOT NULL
AND res.[Column] COLLATE DATABASE_DEFAULT = isnull(@columnName,res.[Column])
GROUP BY [Schema], [Table], [Column];
-- Distribute Rank based on the values between 0 & 100
UPDATE #CachedAccessToColumnstore
SET ScanRank = ScanFrequency * 100. / (SELECT MAX(ScanFrequency) FROM #CachedAccessToColumnstore);
END
-- Deliver the final result
SELECT res.*, cnt.DistinctCount, cnt.TotalRowCount,
CAST(cnt.DistinctCount * 100. / CASE cnt.TotalRowCount WHEN 0 THEN 1 ELSE cnt.TotalRowCount END as Decimal(8,3)) as [PercDistinct],
ISNULL(ScanFrequency,0) AS ScanFrequency,
DENSE_RANK() OVER ( PARTITION BY res.[TableName], [Partition]
ORDER BY ISNULL(ScanRank,-100) +
CASE WHEN [DistinctCount] < [Total Segments] OR [DistinctCount] < 2 THEN - 100 ELSE 0 END +
( ISNULL(cnt.DistinctCount,0) * 100. / CASE ISNULL(cnt.TotalRowCount,0) WHEN 0 THEN 1 ELSE cnt.TotalRowCount END)
- CASE [Segment Elimination] WHEN 'OK' THEN 0. ELSE 1000. END
DESC ) AS [Recommendation]
FROM #SegmentAlignmentResults res
LEFT OUTER JOIN #DistinctCounts cnt
ON res.TableName = cnt.TableName COLLATE DATABASE_DEFAULT
AND res.ColumnName = cnt.ColumnName COLLATE DATABASE_DEFAULT
AND res.[Partition] = cnt.PartitionId
LEFT OUTER JOIN #CachedAccessToColumnstore cache
ON res.TableName = cache.TableName COLLATE DATABASE_DEFAULT
AND res.ColumnName = cache.ColumnName COLLATE DATABASE_DEFAULT
ORDER BY res.TableName, res.Partition, res.[Column Id];
END
ELSE
BEGIN
SELECT res.*
FROM #SegmentAlignmentResults res
ORDER BY res.TableName, res.Partition, res.[Column Id];
END
-- Cleanup
IF OBJECT_ID('tempdb..#SegmentAlignmentResults', 'U') IS NOT NULL
DROP TABLE #SegmentAlignmentResults;
IF OBJECT_ID('tempdb..#DistinctCounts', 'U') IS NOT NULL
DROP TABLE #DistinctCounts;
IF OBJECT_ID('tempdb..#CachedAccessToColumnstore', 'U') IS NOT NULL
DROP TABLE #CachedAccessToColumnstore;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Dictionaries Analysis - Shows detailed information about the Columnstore Dictionaries
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
Licensed under the Apache License, Version: 1.5.0, August 2017 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.
*/
/*
Changes in 1.0.1:
+ Added information about Id of the column in the dictionary, for better debugging
+ Added ordering by the columnId
+ Added new parameter to filter Dictionaries by the type: @showDictionaryType
+ Added quotes for displaying the name of any tables correctly
Changes in 1.0.3:
+ Added information about maximum sizes for the Global & Local dictionaries
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
- Fixed error with row groups information returning back an error, because of the non-existing view (the code was copied from 2014 Version: 1.5.0, August 2017)
Changes in 1.2.0
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
- Fixed bug with non-existing DMV sys.column_store_row_groups
* Removed Duplicate information on the ColumnId
* Changed the title of the return information for the column from the SegmentId to the DictionaryId
+ Added information on the Index Location (In-Memory or Disk-Based) and the respective filter
+ Added information on the type of the Index (Clustered or Nonclustered) and the respective filter
Changes in 1.3.1
- Added support for Databases with collations different to TempDB
Changes in 1.5.0
+ Added new parameter that allows to filter the results by specific partition number (@partitionNumber)
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server version is:' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetDictionaries' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetDictionaries as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Dictionaries Analysis - Shows detailed information about the Columnstore Dictionaries
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetDictionaries(
-- Params --
@showDetails bit = 1, -- Enables showing the details of all Dictionaries
@showWarningsOnly bit = 0, -- Enables to filter out the dictionaries based on the Dictionary Size (@warningDictionarySizeInMB) and Entry Count (@warningEntryCount)
@warningDictionarySizeInMB Decimal(8,2) = 6., -- The size of the dictionary, after which the dictionary should be selected. The value is in Megabytes
@warningEntryCount Int = 1000000, -- Enables selecting of dictionaries with more than this number
@showAllTextDictionaries bit = 0, -- Enables selecting all textual dictionaries independently from their warning status
@showDictionaryType nvarchar(52) = NULL, -- Enables to filter out dictionaries by type with possible values 'Local', 'Global' or NULL for both
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@partitionNumber int = 0, -- Allows to filter data on a specific partion.
@columnName nvarchar(256) = NULL, -- Allows to filter out data base on 1 particular column name
@indexLocation varchar(15) = NULL, -- Allows to filter Columnstore Indexes based on their location: Disk-Based & In-Memory
@indexType char(2) = NULL -- Allows to filter Columnstore Indexes by their type, with possible values (CC for 'Clustered', NC for 'Nonclustered' or NULL for both)
-- end of --
) as
begin
set nocount on;
declare @table_object_id int = NULL;
if (@tableName is not NULL )
set @table_object_id = isnull(object_id(@tableName),-1);
else
set @table_object_id = NULL;
SELECT QuoteName(object_schema_name(i.object_id)) + '.' + QuoteName(object_name(i.object_id)) as 'TableName',
case i.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
case i.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as [Location],
p.partition_number as 'Partition',
(select count(distinct rg.segment_id) from sys.column_store_segments rg
where rg.hobt_id = p.hobt_id and rg.partition_id = p.partition_id) as 'RowGroups',
count(csd.column_id) as 'Dictionaries',
sum(csd.entry_count) as 'EntriesCount',
min(p.rows) as 'Rows Serving',
cast( SUM(csd.on_disk_size)/(1024.0*1024.0) as Decimal(8,3)) as 'Total Size in MB',
cast( MAX(case dictionary_id when 0 then csd.on_disk_size else 0 end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Global Size in MB',
cast( MAX(case dictionary_id when 0 then 0 else csd.on_disk_size end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Local Size in MB'
FROM sys.indexes AS i
inner join sys.partitions AS p
on i.object_id = p.object_id
inner join sys.column_store_dictionaries AS csd
on csd.hobt_id = p.hobt_id and csd.partition_id = p.partition_id
where i.type in (5,6)
AND (@preciseSearch = 0 AND (@tableName is null or object_name (i.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (i.object_id) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( i.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( i.object_id ) = @schemaName))
AND (ISNULL(@objectId,i.object_id) = i.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and i.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else i.data_space_id end, i.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else i.type end = i.type
group by object_schema_name(i.object_id) + '.' + object_name(i.object_id), i.object_id, p.hobt_id, p.partition_number, p.partition_id, i.data_space_id, i.type
union all
SELECT QuoteName(object_schema_name(i.object_id,db_id('tempdb'))) + '.' + QuoteName(object_name(i.object_id,db_id('tempdb'))) as 'TableName',
case i.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
case i.data_space_id when 0 then 'In-Memory' else 'Disk-Based' end as [Location],
p.partition_number as 'Partition',
(select count(distinct rg.segment_id) from tempdb.sys.column_store_segments rg
where rg.hobt_id = p.hobt_id and rg.partition_id = p.partition_id) as 'RowGroups',
count(csd.column_id) as 'Dictionaries',
sum(csd.entry_count) as 'EntriesCount',
min(p.rows) as 'Rows Serving',
cast( SUM(csd.on_disk_size)/(1024.0*1024.0) as Decimal(8,3)) as 'Total Size in MB',
cast( MAX(case dictionary_id when 0 then csd.on_disk_size else 0 end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Global Size in MB',
cast( MAX(case dictionary_id when 0 then 0 else csd.on_disk_size end)/(1024.0*1024.0) as Decimal(8,3)) as 'Max Local Size in MB'
FROM tempdb.sys.indexes AS i
inner join tempdb.sys.partitions AS p
on i.object_id = p.object_id
inner join tempdb.sys.column_store_dictionaries AS csd
on csd.hobt_id = p.hobt_id and csd.partition_id = p.partition_id
where i.type in (5,6)
AND (@preciseSearch = 0 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (p.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( p.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,p.object_id) = p.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and i.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else i.data_space_id end, i.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else i.type end = i.type
group by object_schema_name(i.object_id,db_id('tempdb')) + '.' + object_name(i.object_id,db_id('tempdb')), i.object_id, p.hobt_id, p.partition_id, p.partition_number, i.data_space_id, i.type;
if @showDetails = 1
select QuoteName(object_schema_name(part.object_id)) + '.' + QuoteName(object_name(part.object_id)) as 'TableName',
ind.name as 'IndexName',
part.partition_number as 'Partition',
cols.name as ColumnName,
dict.column_id as [ColumnId],
dict.dictionary_id as 'SegmentId',
tp.name as ColumnType,
case dictionary_id when 0 then 'Global' else 'Local' end as 'Type',
part.rows as 'Rows Serving',
entry_count as 'Entry Count',
cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) 'SizeInMb'
from sys.column_store_dictionaries dict
inner join sys.partitions part
ON dict.hobt_id = part.hobt_id and dict.partition_id = part.partition_id
inner join sys.indexes ind
on part.object_id = ind.object_id and part.index_id = ind.index_id
inner join sys.columns cols
on part.object_id = cols.object_id and dict.column_id = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
where
(( @showWarningsOnly = 1
AND
( cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) > @warningDictionarySizeInMB OR
entry_count > @warningEntryCount
)
) OR @showWarningsOnly = 0 )
AND
(( @showAllTextDictionaries = 1
AND
case tp.name
when 'char' then 1
when 'nchar' then 1
when 'varchar' then 1
when 'nvarchar' then 1
when 'sysname' then 1
end = 1
) OR @showAllTextDictionaries = 0 )
AND (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end
and cols.name = isnull(@columnName,cols.name)
and case dictionary_id when 0 then 'Global' else 'Local' end = isnull(@showDictionaryType, case dictionary_id when 0 then 'Global' else 'Local' end)
and ind.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else ind.data_space_id end, ind.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
union all
select QuoteName(object_schema_name(part.object_id,db_id('tempdb'))) + '.' + QuoteName(object_name(part.object_id,db_id('tempdb'))) as 'TableName',
ind.name COLLATE DATABASE_DEFAULT as 'IndexName',
part.partition_number as 'Partition',
cols.name COLLATE DATABASE_DEFAULT as ColumnName,
dict.column_id as [ColumnId],
dict.dictionary_id as 'SegmentId',
tp.name COLLATE DATABASE_DEFAULT as ColumnType,
case dictionary_id when 0 then 'Global' else 'Local' end as 'Type',
part.rows as 'Rows Serving',
entry_count as 'Entry Count',
cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) 'SizeInMb'
from tempdb.sys.column_store_dictionaries dict
inner join tempdb.sys.partitions part
ON dict.hobt_id = part.hobt_id and dict.partition_id = part.partition_id
inner join tempdb.sys.indexes ind
on part.object_id = ind.object_id and part.index_id = ind.index_id
inner join tempdb.sys.columns cols
on part.object_id = cols.object_id and dict.column_id = cols.column_id
inner join tempdb.sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
where
(( @showWarningsOnly = 1
AND
( cast( on_disk_size / 1024. / 1024. as Decimal(8,2)) > @warningDictionarySizeInMB OR
entry_count > @warningEntryCount
)
) OR @showWarningsOnly = 0 )
AND
(( @showAllTextDictionaries = 1
AND
case tp.name
when 'char' then 1
when 'nchar' then 1
when 'varchar' then 1
when 'nvarchar' then 1
when 'sysname' then 1
end = 1
) OR @showAllTextDictionaries = 0 )
AND (@preciseSearch = 0 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (part.object_id,db_id('tempdb')) = @tableName) )
AND (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( part.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,part.object_id) = part.object_id)
AND partition_number = case @partitionNumber when 0 then partition_number else @partitionNumber end and cols.name = isnull(@columnName,cols.name)
and cols.name = isnull(@columnName,cols.name)
and case dictionary_id when 0 then 'Global' else 'Local' end = isnull(@showDictionaryType, case dictionary_id when 0 then 'Global' else 'Local' end)
and ind.data_space_id = isnull( case @indexLocation when 'In-Memory' then 0 when 'Disk-Based' then 1 else ind.data_space_id end, ind.data_space_id )
and case @indexType when 'CC' then 5 when 'NC' then 6 else ind.type end = ind.type
order by TableName, ind.name, part.partition_number, dict.column_id;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
MemoryInfo - Shows the content of the Columnstore Object Pool
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
Licensed under the Apache License, Version: 1.5.0, August 2017 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.
*/
/*
Changes in 1.0.4
+ Added new parameter for filtering on the schema - @schemaName
* Changed the output from '% of Total' to '% of Total Column Structures' for better clarity
- Fixed error where the delta-stores were counted as one of the objects to be inside Columnstore Object Pool
Changes in 1.1.0
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
*/
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server version is:' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetMemory' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetMemory as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
MemoryInfo - Shows the content of the Columnstore Object Pool
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetMemory(
-- Params --
@showColumnDetails bit = 1, -- Drills down into each of the columns inside the memory
@showObjectTypeDetails bit = 1, -- Shows details about the type of the object that is located in memory
@minMemoryInMb Decimal(8,2) = 0.0, -- Filters the minimum amount of memory that the Columnstore object should occupy
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to 1 particular table
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@columnName nvarchar(256) = NULL, -- Allows to filter a specific column name
@objectType nvarchar(50) = NULL -- Allows to filter a specific type of the memory object. Possible values are 'Segment','Global Dictionary','Local Dictionary','Primary Dictionary Bulk','Deleted Bitmap'
-- end of --
) as
begin
set nocount on;
with memCache as (
select name, entry_data, pages_kb, cast( '<cache ' + replace(substring(entry_data,2,len(entry_data)-1),'''','"') as xml) as 'cache'
from sys.dm_os_memory_cache_entries mem
where type = 'CACHESTORE_COLUMNSTOREOBJECTPOOL'
),
MemCacheXML as (
select cache.value('(/cache/@hobt_id)[1]', 'bigint') as Hobt,
part.object_id, part.partition_number,
object_schema_name(part.object_id) + '.' + object_name(part.object_id) as TableName,
cache.value('(/cache/@column_id)[1]', 'int')-1 as ColumnId,
cache.value('(/cache/@object_type)[1]', 'tinyint') as ObjectType,
memCache.name,
entry_data,
pages_kb
from memCache
inner join sys.partitions part
on cache.value('(/cache/@hobt_id)[1]', 'bigint') = part.hobt_id
where cache.value('(/cache/@db_id)[1]', 'smallint') = db_id()
and (@tableName is null or object_name (part.object_id) like '%' + @tableName + '%')
and (@schemaName is null or object_schema_name(part.object_id) = @schemaName)
and part.object_id = isnull(@objectId, part.object_id)
)
select TableName,
case @showColumnDetails when 1 then ColumnId else NULL end as ColumnId,
case @showColumnDetails when 1 then cols.name else NULL end as ColumnName,
case @showColumnDetails when 1 then tp.name else NULL end as ColumnType,
case @showObjectTypeDetails
when 1 then
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end
else NULL end as ObjectType,
count(*) as Fragments,
cast((select count(mem.TableName) * 100./count(distinct rg.segment_id)
* max(case ObjectType when 1 then 1 else 0 end) -- Count only Segments
* max(case @showObjectTypeDetails & @showColumnDetails when 1 then 1 else 0 end) -- Show calculations only when @showObjectTypeDetails & @showColumnDetails are set
+ max(case @showObjectTypeDetails & @showColumnDetails when 1 then (case ObjectType when 1 then 0 else NULL end) else NULL end)
-- Resets to -1 when when @showObjectTypeDetails & @showColumnDetails are not set
from sys.column_store_segments rg
inner join sys.partitions part
on rg.hobt_id = part.hobt_id and rg.partition_id = part.partition_id
where part.object_id = mem.object_id) as Decimal(8,2)) as '% of Total',
cast( sum( pages_kb ) / 1024. as Decimal(8,3) ) as 'SizeInMB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from MemCacheXML mem
left join sys.columns cols
on mem.object_id = cols.object_id and mem.ColumnId = cols.column_id
inner join sys.types tp
on cols.system_type_id = tp.system_type_id and cols.user_type_id = tp.user_type_id
left join sys.dm_db_index_usage_stats stat
on mem.object_id = stat.object_id
where cols.name = isnull(@columnName,cols.name)
and (case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end = isnull(@objectType,
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end))
group by mem.object_id, TableName,
case @showColumnDetails when 1 then ColumnId else NULL end,
case @showObjectTypeDetails
when 1 then
case ObjectType
when 1 then 'Segment'
when 2 then 'Global Dictionary'
when 4 then 'Local Dictionary'
when 5 then 'Primary Dictionary Bulk'
when 6 then 'Deleted Bitmap'
else 'Unknown' end
else NULL end,
case @showColumnDetails when 1 then cols.name else NULL end,
case @showColumnDetails when 1 then tp.name else NULL end
having sum( pages_kb ) / 1024. >= @minMemoryInMb
order by TableName, ColumnId, sum( pages_kb ) / 1024. desc;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Row Groups - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
Licensed under the Apache License, Version: 1.5.0, August 2017 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.
*/
/*
Known Issues & Limitations:
Changes in 1.0.3
+ Added parameter for showing aggregated information on the whole table, instead of partitioned view as before
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
Changes in 1.1.0
- Fixed error with a semicolon inside the parameters of the stored procedure
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
Changes in 1.2.0
- Fixed bug with conVersion: 1.5.0, August 2017 to bigint for row_count
- Fixed bug with including aggregating tables without taking care of the database name, thus potentially including results from the equally named table from a different database
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added new parameter for filtering a specific partition
Changes in 1.4.0
- Fixed an extremely rare bug with the sys.dm_db_index_usage_stats DMV, where it contains queries for the local databases object made from other databases only
Changes in 1.4.2
- Fixed bug on lookup for the Object Name for the empty Columnstore tables
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
--Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server version is:' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetRowGroups' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetRowGroups as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Row Groups - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetRowGroups(
-- Params --
@indexType char(2) = NULL, -- Allows to filter Columnstore Indexes by their type, with possible values (CC for 'Clustered', NC for 'Nonclustered' or NULL for both)
@compressionType varchar(15) = NULL, -- Allows to filter by the compression type with following values 'ARCHIVE', 'COLUMNSTORE' or NULL for both
@minTotalRows bigint = 000000, -- Minimum number of rows for a table to be included
@minSizeInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be included
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@showPartitionDetails bit = 1, -- Allows to show details of each of the available partitions
@partitionId int = NULL -- Allows to filter data on a specific partion. Works only if @showPartitionDetails is set = 1
-- end of --
) as
begin
set nocount on;
select quotename(object_schema_name(ind.object_id)) + '.' + quotename(object_name(ind.object_id)) as 'TableName',
case ind.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
(case @showPartitionDetails when 1 then ISNULL(part.partition_number,1) else 1 end) as 'Partition',
ISNULL(part.data_compression_desc,'COLUMNSTORE') as 'Compression Type',
0 as 'Bulk Load RG',
0 as 'Open DS',
0 as 'Closed DS',
count(distinct segment_id) as 'Compressed',
count(distinct segment_id) as 'Total',
cast( sum(isnull(0,0))/1000000. as Decimal(16,6)) as 'Deleted Rows (M)',
cast( sum(isnull(cast(row_count as bigint)-0,0))/(case count(distinct column_id) when 0 then 1 else count(distinct column_id) end)/1000000. as Decimal(16,6)) as 'Active Rows (M)',
cast( sum(isnull(cast(row_count as bigint),0))/(case count(distinct column_id) when 0 then 1 else count(distinct column_id) end)/1000000. as Decimal(16,6)) as 'Total Rows (M)',
cast( sum(isnull(on_disk_size,0) / 1024. / 1024 / 1024) as Decimal(8,2)) as 'Size in GB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from sys.column_store_segments rg
left join sys.partitions part with(READUNCOMMITTED)
on rg.hobt_id = part.hobt_id and isnull(rg.partition_id,1) = part.partition_id
right join sys.indexes ind
on ind.object_id = part.object_id
left join sys.dm_db_index_usage_stats stat with(READUNCOMMITTED)
on part.object_id = stat.object_id and ind.index_id = stat.index_id
and isnull(stat.database_id,db_id()) = db_id()
where ind.type in (5,6) -- Clustered & Nonclustered Columnstore
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id)
and ((part.object_id is NOT NULL
and case @compressionType when 'Columnstore' then 3 when 'Archive' then 4 else part.data_compression end = part.data_compression
and part.object_id = isnull(@objectId, part.object_id)
and part.partition_number = isnull(@partitionId, part.partition_number) -- Partition Filtering
)
OR
part.object_id is NULL )
group by ind.object_id, ind.type, part.partition_number, part.data_compression_desc
having cast( sum(isnull(on_disk_size,0) / 1024. / 1024 / 1024) as Decimal(8,2)) >= @minSizeInGB
and sum(isnull(cast(row_count as bigint),0)) >= @minTotalRows
union all
select quotename(object_schema_name(ind.object_id, db_id('tempdb'))) + '.' + quotename(object_name(ind.object_id, db_id('tempdb'))) as 'TableName',
case ind.type when 5 then 'Clustered' when 6 then 'Nonclustered' end as 'Type',
(case @showPartitionDetails when 1 then part.partition_number else 1 end) as 'Partition',
part.data_compression_desc as 'Compression Type',
0 as 'Bulk Load RG',
0 as 'Open DS',
0 as 'Closed DS',
count(distinct segment_id) as 'Compressed',
count(distinct segment_id) as 'Total',
cast( sum(isnull(0,0))/1000000. as Decimal(16,6)) as 'Deleted Rows (M)',
cast( sum(isnull(cast(row_count as bigint)-0,0))/count(distinct column_id)/1000000. as Decimal(16,6)) as 'Active Rows (M)',
cast( sum(isnull(cast(row_count as bigint),0))/count(distinct column_id)/1000000. as Decimal(16,6)) as 'Total Rows (M)',
cast( sum(isnull(on_disk_size,0) / 1024. / 1024 / 1024) as Decimal(8,2)) as 'Size in GB',
isnull(sum(stat.user_scans)/count(*),0) as 'Scans',
isnull(sum(stat.user_updates)/count(*),0) as 'Updates',
max(stat.last_user_scan) as 'LastScan'
from tempdb.sys.column_store_segments rg
left join tempdb.sys.partitions part with(READUNCOMMITTED)
on rg.hobt_id = part.hobt_id and isnull(rg.partition_id,1) = part.partition_id
inner join tempdb.sys.indexes ind
on ind.object_id = part.object_id
left join tempdb.sys.dm_db_index_usage_stats stat with(READUNCOMMITTED)
on part.object_id = stat.object_id and ind.index_id = stat.index_id
where ind.type in (5,6) -- Clustered & Nonclustered Columnstore
and part.data_compression_desc in ('COLUMNSTORE')
and case @compressionType when 'Columnstore' then 3 when 'Archive' then 4 else part.data_compression end = part.data_compression
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id)
and isnull(stat.database_id, db_id('tempdb')) = db_id('tempdb')
and part.partition_number = isnull(@partitionId, part.partition_number) -- Partition Filtering
group by ind.object_id, ind.type, part.partition_number, part.data_compression_desc
having cast( sum(isnull(on_disk_size,0) / 1024. / 1024 / 1024) as Decimal(8,2)) >= @minSizeInGB
and sum(isnull(cast(row_count as bigint),0)) >= @minTotalRows
order by TableName,
(case @showPartitionDetails when 1 then ISNULL(part.partition_number,1) else 1 end);
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Row Groups Details - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
Licensed under the Apache License, Version: 1.5.0, August 2017 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.
*/
/*
Changes in 1.1.0
- Fixed error with a semicolon inside the parameters of the stored procedure
+ Added new parameter for filtering on the object id - @objectId
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
Changes in 1.2.0
- Fixed bug with conVersion: 1.5.0, August 2017 to bigint for row_count
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added compatibility support for the SQL Server 2016 internals information on Location, Row Group Trimming, Build Process, Vertipaq Optimisations, Sequential Generation Id, Closed DateTime & Creation DateTime
+ Added 2 new compatibility parameters for filtering out the Min & Max Creation DateTimes
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
--Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server version is:' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetRowGroupsDetails' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetRowGroupsDetails as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Row Groups Details - Shows detailed information on the Columnstore Row Groups
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_GetRowGroupsDetails(
-- Params --
@objectId int = NULL, -- Allows to idenitfy a table thorugh the ObjectId
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@partitionNumber bigint = 0, -- Allows to show details of each of the available partitions, where 0 stands for no filtering
@showTrimmedGroupsOnly bit = 0, -- Filters only those Row Groups, which size <> 1048576
@showNonCompressedOnly bit = 0, -- Filters out the comrpessed Row Groups
@showFragmentedGroupsOnly bit = 0, -- Allows to show the Row Groups that have Deleted Rows in them
@minSizeInMB Decimal(16,3) = NULL, -- Minimum size in MB for a table to be included
@maxSizeInMB Decimal(16,3) = NULL, -- Maximum size in MB for a table to be included
@minCreatedDateTime Datetime = NULL, -- The earliest create datetime for Row Group to be included
@maxCreatedDateTime Datetime = NULL -- The lateste create datetime for Row Group to be included-- end of --
) as
BEGIN
set nocount on;
select quotename(object_schema_name(part.object_id)) + '.' + quotename(object_name(part.object_id)) as 'TableName',
'Disk-Based' as [Location],
part.partition_number,
rg.segment_id as row_group_id,
3 as state,
'COMPRESSED' as state_description,
sum(cast(rg.row_count as bigint))/count(distinct rg.column_id) as total_rows,
0 as deleted_rows,
cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) as [Size in MB]
from sys.column_store_segments rg
left join sys.partitions part with(READUNCOMMITTED)
on rg.hobt_id = part.hobt_id and isnull(rg.partition_id,1) = part.partition_id
inner join sys.objects ind
on part.object_id = ind.object_id
where 1 = case @showNonCompressedOnly when 0 then 1 else -1 end
and 1 = case @showFragmentedGroupsOnly when 1 then 0 else 1 end
and part.object_id = isnull(@objectId, part.object_id)
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id)
and part.partition_number = case @partitionNumber when 0 then part.partition_number else @partitionNumber end
and ind.create_date between isnull(@minCreatedDateTime,ind.create_date) and isnull(@maxCreatedDateTime,ind.create_date)
group by part.object_id, part.partition_number, rg.segment_id
having sum(cast(rg.row_count as bigint))/count(distinct rg.column_id) <> case @showTrimmedGroupsOnly when 1 then 1048576 else -1 end
and cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) >= isnull(@minSizeInMB,0.)
and cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) <= isnull(@maxSizeInMB,999999999.)
union all
select quotename(object_schema_name(part.object_id, db_id('tempdb'))) + '.' + quotename(object_name(part.object_id, db_id('tempdb'))) as 'TableName',
'Disk-Based' as [Location],
part.partition_number,
rg.segment_id as row_group_id,
3 as state,
'COMPRESSED' as state_description,
sum(cast(rg.row_count as bigint))/count(distinct rg.column_id) as total_rows,
0 as deleted_rows,
cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) as [Size in MB]
from tempdb.sys.column_store_segments rg
left join tempdb.sys.partitions part with(READUNCOMMITTED)
on rg.hobt_id = part.hobt_id and isnull(rg.partition_id,1) = part.partition_id
inner join tempdb.sys.objects ind
on part.object_id = ind.object_id
where 1 = case @showNonCompressedOnly when 0 then 1 else -1 end
and 1 = case @showFragmentedGroupsOnly when 1 then 0 else 1 end
and part.object_id = isnull(@objectId, part.object_id)
and (@preciseSearch = 0 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (ind.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( ind.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,ind.object_id) = ind.object_id)
and part.partition_number = case @partitionNumber when 0 then part.partition_number else @partitionNumber end
and ind.create_date between isnull(@minCreatedDateTime,ind.create_date) and isnull(@maxCreatedDateTime,ind.create_date)
group by part.object_id, part.partition_number, rg.segment_id
having sum(cast(rg.row_count as bigint))/count(distinct rg.column_id) <> case @showTrimmedGroupsOnly when 1 then 1048576 else -1 end
and cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) >= isnull(@minSizeInMB,0.)
and cast(sum(isnull(rg.on_disk_size,0)) / 1024. / 1024 as Decimal(8,3)) <= isnull(@maxSizeInMB,999999999.)
order by quotename(object_schema_name(part.object_id)) + '.' + quotename(object_name(part.object_id)),
part.partition_number, rg.segment_id
END
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
SQL Server Instance Information - Provides with the list of the known SQL Server Versions that have bugfixes or improvements over your current Version + lists currently enabled trace flags on the instance & session
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- Custom non-standard (non-CU & non-SP) Versions are not targeted yet
- Duplicate Fixes & Improvements (CU12 for SP1 & CU2 for SP2, for example) are not eliminated from the list yet
*/
/*
Changes in 1.0.1
+ Added drops for the existing temp tables: #SQLColumnstoreImprovements, #SQLBranches, #SQLVersions
+ Added new parameter for Enables showing the SQL Server Versions that are posterior the current Version
* Added more source code description in the comments
+ Removed some redundant information (column UpdateName from the #SQLColumnstoreImprovements) which were left from the very early Versions
+ Added information about CU8 for SQL Server 2012 SP 2
Changes in 1.0.2
+ Added column with the CU Version for the Bugfixes output
* Updated temporary tables in order to avoid error messages
Changes in 1.0.3
+ Added information about CU8 for SQL Server 2012 SP 2
+ Added information about SQL Server 2012 SP 3
Changes in 1.0.4
+ Added information about each release date and the number of days since the installed released was published
Changes in 1.1.0
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version can be easily determined.
Changes in 1.1.1
+ Added information about CU10 for SQL Server 2012 SP 2
+ Added information about CU1 for SQL Server 2012 SP 3
Changes in 1.2.0
+ Added information about CU 11 for SQL Server 2012 SP 2
+ Added information about CU 2 for SQL Server 2012 SP 3
Changes in 1.3.0
+ Added information about CU 12 & CU 13 for SQL Server 2012 SP 2
+ Added information about CU 3 & CU 4 for SQL Server 2012 SP 3
Changes in 1.4.0
+ Added information about CU 14 for SQL Server 2012 SP 2 & CU 5 for SQL Server 2012 SP3
- Fixed Bug with Duplicate Fixes & Improvements (CU12 for SP1 & CU2 for SP2, for example) not being eliminated from the list
Changes in 1.5.0
+ Added information on the CU 16 for SQL Server 2012 SP2 and CU 7 for SQL Server 2012 SP3
+ Added information on the CU 8, CU 9, CU 10 for SQL Server 2012 SP3
+ Added displaying information on the date of each of the service releases (when using parameter @showNewerVersions)
*/
-- Params --
declare @showUnrecognizedTraceFlags bit = 1, -- Enables showing active trace flags, even if they are not columnstore indexes related
@identifyCurrentVersion bit = 1, -- Enables identification of the currently used SQL Server Instance Version
@showNewerVersions bit = 0; -- Enables showing the SQL Server Versions that are posterior the current Version
-- end of --
--------------------------------------------------------------------------------------------------------------------
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128)),
@SQLServerBuild smallint = NULL;
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server Version is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_GetSQLInfo' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_GetSQLInfo as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
SQL Server Instance Information - Provides with the list of the known SQL Server Versions that have bugfixes or improvements over your current Version + lists currently enabled trace flags on the instance & session
Version
*/
alter procedure dbo.cstore_GetSQLInfo(
-- Params --
@showUnrecognizedTraceFlags bit = 1, -- Enables showing active trace flags, even if they are not columnstore indexes related
@identifyCurrentVersion bit = 1, -- Enables identification of the currently used SQL Server Instance Version
@showNewerVersions bit = 0 -- Enables showing the SQL Server Versions that are posterior the current Version
-- end of --
) as
begin
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @SQLServerBuild smallint = substring(@SQLServerVersion,CHARINDEX('.',@SQLServerVersion,5)+1,CHARINDEX('.',@SQLServerVersion,8)-CHARINDEX('.',@SQLServerVersion,5)-1);
--------------------------------------------------------------------------------------------------------------------
set @SQLServerBuild = substring(@SQLServerVersion,CHARINDEX('.',@SQLServerVersion,5)+1,CHARINDEX('.',@SQLServerVersion,8)-CHARINDEX('.',@SQLServerVersion,5)-1);
if OBJECT_ID('tempdb..#SQLColumnstoreImprovements', 'U') IS NOT NULL
drop table #SQLColumnstoreImprovements;
if OBJECT_ID('tempdb..#SQLBranches', 'U') IS NOT NULL
drop table #SQLBranches;
if OBJECT_ID('tempdb..#SQLVersions', 'U') IS NOT NULL
drop table #SQLVersions;
create table #SQLColumnstoreImprovements(
BuildVersion smallint not null,
SQLBranch char(3) not null,
Description nvarchar(500) not null,
URL nvarchar(1000)
);
create table #SQLBranches(
SQLBranch char(3) not null Primary Key,
MinVersion smallint not null );
create table #SQLVersions(
SQLBranch char(3) not null,
SQLVersion smallint not null Primary Key,
ReleaseDate datetime not null,
SQLVersionDescription nvarchar(100) );
insert into #SQLBranches (SQLBranch, MinVersion)
values ('RTM', 2100 ), ('SP1', 3000), ('SP2', 5058), ('SP3', 6020);
insert #SQLVersions( SQLBranch, SQLVersion, ReleaseDate, SQLVersionDescription )
values
( 'RTM', 2000, convert(datetime,'06-03-2012',105), 'SQL Server 2012 RTM' ),
( 'RTM', 2316, convert(datetime,'12-04-2012',105), 'CU 1 for SQL Server 2012 RTM' ),
( 'RTM', 2325, convert(datetime,'18-06-2012',105), 'CU 2 for SQL Server 2012 RTM' ),
( 'RTM', 2332, convert(datetime,'29-08-2012',105), 'CU 3 for SQL Server 2012 RTM' ),
( 'RTM', 2383, convert(datetime,'18-10-2012',105), 'CU 4 for SQL Server 2012 RTM' ),
( 'RTM', 2395, convert(datetime,'18-12-2012',105), 'CU 5 for SQL Server 2012 RTM' ),
( 'RTM', 2401, convert(datetime,'18-02-2013',105), 'CU 6 for SQL Server 2012 RTM' ),
( 'RTM', 2405, convert(datetime,'15-04-2013',105), 'CU 7 for SQL Server 2012 RTM' ),
( 'RTM', 2410, convert(datetime,'18-06-2013',105), 'CU 8 for SQL Server 2012 RTM' ),
( 'RTM', 2419, convert(datetime,'21-08-2013',105), 'CU 9 for SQL Server 2012 RTM' ),
( 'RTM', 2420, convert(datetime,'21-10-2013',105), 'CU 10 for SQL Server 2012 RTM' ),
( 'RTM', 2424, convert(datetime,'17-12-2013',105), 'CU 11 for SQL Server 2012 RTM' ),
( 'SP1', 3000, convert(datetime,'06-11-2012',105), 'SQL Server 2012 SP1' ),
( 'SP1', 3321, convert(datetime,'20-11-2012',105), 'CU 1 for SQL Server 2012 SP1' ),
( 'SP1', 3339, convert(datetime,'25-01-2013',105), 'CU 2 for SQL Server 2012 SP1' ),
( 'SP1', 3349, convert(datetime,'18-03-2013',105), 'CU 3 for SQL Server 2012 SP1' ),
( 'SP1', 3368, convert(datetime,'31-05-2013',105), 'CU 4 for SQL Server 2012 SP1' ),
( 'SP1', 3373, convert(datetime,'16-07-2013',105), 'CU 5 for SQL Server 2012 SP1' ),
( 'SP1', 3381, convert(datetime,'16-09-2013',105), 'CU 6 for SQL Server 2012 SP1' ),
( 'SP1', 3393, convert(datetime,'18-11-2013',105), 'CU 7 for SQL Server 2012 SP1' ),
( 'SP1', 3401, convert(datetime,'20-01-2014',105), 'CU 8 for SQL Server 2012 SP1' ),
( 'SP1', 3412, convert(datetime,'18-03-2014',105), 'CU 9 for SQL Server 2012 SP1' ),
( 'SP1', 3431, convert(datetime,'19-05-2014',105), 'CU 10 for SQL Server 2012 SP1' ),
( 'SP1', 3449, convert(datetime,'21-07-2014',105), 'CU 11 for SQL Server 2012 SP1' ),
( 'SP1', 3470, convert(datetime,'15-09-2014',105), 'CU 12 for SQL Server 2012 SP1' ),
( 'SP1', 3482, convert(datetime,'17-11-2014',105), 'CU 13 for SQL Server 2012 SP1' ),
( 'SP1', 3486, convert(datetime,'19-01-2015',105), 'CU 14 for SQL Server 2012 SP1' ),
( 'SP1', 3487, convert(datetime,'16-03-2015',105), 'CU 15 for SQL Server 2012 SP1' ),
( 'SP1', 3492, convert(datetime,'18-05-2015',105), 'CU 16 for SQL Server 2012 SP1' ),
( 'SP2', 5058, convert(datetime,'10-06-2014',105), 'SQL Server 2012 SP2' ),
( 'SP2', 5532, convert(datetime,'24-07-2014',105), 'CU 1 for SQL Server 2012 SP2' ),
( 'SP2', 5548, convert(datetime,'15-09-2014',105), 'CU 2 for SQL Server 2012 SP2' ),
( 'SP2', 5556, convert(datetime,'17-11-2014',105), 'CU 3 for SQL Server 2012 SP2' ),
( 'SP2', 5569, convert(datetime,'20-01-2015',105), 'CU 4 for SQL Server 2012 SP2' ),
( 'SP2', 5582, convert(datetime,'16-03-2015',105), 'CU 5 for SQL Server 2012 SP2' ),
( 'SP2', 5592, convert(datetime,'19-05-2015',105), 'CU 6 for SQL Server 2012 SP2' ),
( 'SP2', 5623, convert(datetime,'20-07-2015',105), 'CU 7 for SQL Server 2012 SP2' ),
( 'SP2', 5634, convert(datetime,'21-09-2015',105), 'CU 8 for SQL Server 2012 SP2' ),
( 'SP2', 5641, convert(datetime,'18-11-2015',105), 'CU 9 for SQL Server 2012 SP2' ),
( 'SP2', 5643, convert(datetime,'19-01-2016',105), 'CU 10 for SQL Server 2012 SP2' ),
( 'SP2', 5646, convert(datetime,'22-03-2016',105), 'CU 11 for SQL Server 2012 SP2' ),
( 'SP2', 5649, convert(datetime,'17-05-2016',105), 'CU 12 for SQL Server 2012 SP2' ),
( 'SP2', 5644, convert(datetime,'18-07-2016',105), 'CU 13 for SQL Server 2012 SP2' ),
( 'SP2', 5657, convert(datetime,'20-09-2016',105), 'CU 14 for SQL Server 2012 SP2' ),
( 'SP2', 5676, convert(datetime,'17-11-2016',105), 'CU 15 for SQL Server 2012 SP2' ),
( 'SP2', 5678, convert(datetime,'18-01-2017',105), 'CU 16 for SQL Server 2012 SP2' ),
( 'SP3', 6020, convert(datetime,'23-11-2015',105), 'SQL Server 2012 SP3' ),
( 'SP3', 6518, convert(datetime,'19-01-2016',105), 'CU 1 for SQL Server 2012 SP3' ),
( 'SP3', 6523, convert(datetime,'22-03-2016',105), 'CU 2 for SQL Server 2012 SP3' ),
( 'SP3', 6537, convert(datetime,'17-05-2016',105), 'CU 3 for SQL Server 2012 SP3' ),
( 'SP3', 6540, convert(datetime,'18-07-2016',105), 'CU 4 for SQL Server 2012 SP3' ),
( 'SP3', 6544, convert(datetime,'21-09-2016',105), 'CU 5 for SQL Server 2012 SP3' ),
( 'SP3', 6567, convert(datetime,'17-11-2016',105), 'CU 6 for SQL Server 2012 SP3' ),
( 'SP3', 6579, convert(datetime,'18-01-2017',105), 'CU 7 for SQL Server 2012 SP3' ),
( 'SP3', 6594, convert(datetime,'21-03-2017',105), 'CU 8 for SQL Server 2012 SP3' ),
( 'SP3', 6598, convert(datetime,'15-05-2017',105), 'CU 9 for SQL Server 2012 SP3' ),
( 'SP3', 6607, convert(datetime,'08-08-2017',105), 'CU 10 for SQL Server 2012 SP3' );
insert into #SQLColumnstoreImprovements (BuildVersion, SQLBranch, Description, URL )
values
( 2325, 'RTM', 'FIX: An access violation occurs intermittently when you run a query against a table that has a columnstore index in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2711683' ),
( 2332, 'RTM', 'FIX: Incorrect results when you run a parallel query that uses a columnstore index in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2703193' ),
( 2332, 'RTM', 'FIX: Access violation when you try to build a columnstore index for a table in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2708786' ),
( 3321, 'SP1', 'FIX: Incorrect results when you run a parallel query that uses a columnstore index in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2703193' ),
( 3321, 'SP1', 'FIX: Access violation when you try to build a columnstore index for a table in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2708786' ),
( 3368, 'SP1', 'FIX: Out of memory error when you build a columnstore index on partitioned tables in SQL Server 2012', 'https://support.microsoft.com/en-us/kb/2834062' ),
( 3470, 'SP1', 'FIX: Some columns in sys.column_store_segments view show NULL value when the table has non-dbo schema in SQL Server', 'https://support.microsoft.com/en-us/kb/2989704' ),
( 5548, 'SP2', 'FIX: UPDATE STATISTICS performs incorrect sampling and processing for a table with columnstore index in SQL Server', 'https://support.microsoft.com/en-us/kb/2986627' ),
( 5548, 'SP2', 'FIX: Some columns in sys.column_store_segments view show NULL value when the table has non-dbo schema in SQL Server', 'https://support.microsoft.com/en-us/kb/2989704' );
if @identifyCurrentVersion = 1
begin
if OBJECT_ID('tempdb..#TempVersionResults') IS NOT NULL
drop table #TempVersionResults;
create table #TempVersionResults(
MessageText nvarchar(512) NOT NULL,
SQLVersionDescription nvarchar(200) NOT NULL,
SQLBranch char(3) not null,
SQLVersion smallint NULL,
ReleaseDate date NULL );
-- Identify the number of days that has passed since the installed release
declare @daysSinceLastRelease int = NULL;
select @daysSinceLastRelease = datediff(dd,max(ReleaseDate),getdate())
from #SQLVersions
where SQLBranch = ServerProperty('ProductLevel')
and SQLVersion = cast(@SQLServerBuild as int);
-- Get information about current SQL Server Version
if( exists (select 1
from #SQLVersions
where SQLVersion = cast(@SQLServerBuild as int) ) )
select 'You are Running:' as MessageText, SQLVersionDescription, SQLBranch, SQLVersion as BuildVersion, 'Your Version is ' + cast(@daysSinceLastRelease as varchar(3)) + ' days old' as DaysSinceRelease
from #SQLVersions
where SQLVersion = cast(@SQLServerBuild as int);
else
select 'You are Running a Non RTM/SP/CU standard Version:' as MessageText, '-' as SQLVersionDescription,
ServerProperty('ProductLevel') as SQLBranch, @SQLServerBuild as SQLVersion, 'Your Version is ' + cast(@daysSinceLastRelease as varchar(3)) + ' days old' as DaysSinceRelease;
-- Select information about all newer SQL Server Versions that are known
if @showNewerVersions = 1
begin
insert into #TempVersionResults
select 'Available Newer Versions:' as MessageText
, '' as SQLVersionDescription
, '' as SQLBranch, NULL as BuildVersion
, NULL as ReleaseDate
UNION ALL
select '' as MessageText, SQLVersionDescription as SQLVersionDescription
, SQLBranch as SQLVersionDescription
, SQLVersion as BuildVersion
, ReleaseDate as ReleaseDate
from #SQLVersions
where @SQLServerBuild < SQLVersion;
select *
from #TempVersionResults;
drop table #TempVersionResults;
end
end
-- Select all known bugfixes that are applied to the newer Versions of SQL Server
select min(imps.BuildVersion) as BuildVersion, min(vers.SQLVersionDescription) as SQLVersionDescription, imps.Description, imps.URL
from #SQLColumnstoreImprovements imps
inner join #SQLBranches branch
on imps.SQLBranch = branch.SQLBranch
inner join #SQLVersions vers
on imps.BuildVersion = vers.SQLVersion
where BuildVersion > @SQLServerBuild
and branch.SQLBranch >= ServerProperty('ProductLevel')
and branch.MinVersion < BuildVersion
group by Description, URL, SQLVersionDescription
having min(imps.BuildVersion) = (select min(imps2.BuildVersion) from #SQLColumnstoreImprovements imps2 where imps.Description = imps2.Description and imps2.BuildVersion > @SQLServerBuild group by imps2.Description)
order by BuildVersion;
-- Drop used temporary tables
drop table #SQLColumnstoreImprovements;
drop table #SQLBranches;
drop table #SQLVersions;
--------------------------------------------------------------------------------------------------------------------
-- Trace Flags part
create table #ActiveTraceFlags(
TraceFlag nvarchar(20) not null,
Status bit not null,
Global bit not null,
Session bit not null );
insert into #ActiveTraceFlags
exec sp_executesql N'DBCC TRACESTATUS()';
create table #ColumnstoreTraceFlags(
TraceFlag int not null,
Description nvarchar(500) not null,
URL nvarchar(600),
SupportedStatus bit not null
);
insert into #ColumnstoreTraceFlags (TraceFlag, Description, URL, SupportedStatus )
values
( 834, 'Enable Large Pages', 'https://support.microsoft.com/en-us/kb/920093?wa=wsignin1.0', 0 ),
( 646, 'Gets text output messages that show what segments (row groups) were eliminated during query processing', 'http://social.technet.microsoft.com/wiki/contents/articles/5611.verifying-columnstore-segment-elimination.aspx', 1 ),
( 9453, 'Disables Batch Execution Mode', 'http://www.nikoport.com/2014/07/24/clustered-columnstore-indexes-part-35-trace-flags-query-optimiser-rules/', 1 );
select tf.TraceFlag, isnull(conf.Description,'Unrecognized') as Description, isnull(conf.URL,'-') as URL, SupportedStatus
from #ActiveTraceFlags tf
left join #ColumnstoreTraceFlags conf
on conf.TraceFlag = tf.TraceFlag
where @showUnrecognizedTraceFlags = 1 or (@showUnrecognizedTraceFlags = 0 AND Description is not null);
drop table #ColumnstoreTraceFlags;
drop table #ActiveTraceFlags;
end
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Suggested Tables - Lists tables which potentially can be interesting for implementing Columnstore Indexes
Version: 1.5.0, August 2017
Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/)
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.
*/
/*
Known Issues & Limitations:
- @showTSQLCommandsBeta parameter is in alpha Version: 1.5.0, August 2017 and not pretending to be complete any time soon. This output is provided as a basic help & guide convertion to Columnstore Indexes.
- CLR support is not included or tested
- Output [Min RowGroups] is not taking present partitions into calculations yet :)
- Data Precision is not being taken into account
Changes in 1.0.3
* Changed the name of the @tableNamePattern to @tableName to follow the same standard across all CISL functions
Changes in 1.0.4
- Bug fixes for the Nonclustered Columnstore Indexes creation conditions
- Buf fixes for the data types of the monitored functionalities, that in certain condition would give an error message
- Bug fix for displaying the same primary key index twice in the T-SQL drop script
Changes in 1.1.0
* Changed constant creation and dropping of the stored procedure to 1st time execution creation and simple alteration after that
* The description header is copied into making part of the function code that will be stored on the server. This way the CISL Version: 1.5.0, August 2017 can be easily determined.
Changes in 1.2.0
- Fixed displaying wrong number of rows for the found suggested tables
- Fixed error for filtering out the secondary nonclustered indexes in some bigger databases
+ Included support for the temporary tables with Columnstore Indexes (global & local)
Changes in 1.3.0
+ Added information about the converted table location (Disk-Based)
Changes in 1.3.1
- Fixed a bug with filtering out the exact number of @minRows instead of including it
- Fixed a cast bug, that would filter out some of the indexes, based on the casting of the hidden numbers (3rd number behind the comma)
+ Added new parameter for the index location (@indexLocation) with one actual usable parameter for this SQL Server Version: 1.5.0, August 2017 'Disk-Based'.
Changes in 1.5.0
+ Added new parameter for the searching precise name of the object (@preciseSearch)
+ Added new parameter for the identifying the object by its object_id (@objectId)
+ Expanded search of the schema to include the pattern search with @preciseSearch = 0
- Fixed bug with the partitioned table not showing the correct number of rows
+ Added new result column [Partitions] showing the total number of the partitions
*/
declare @SQLServerVersion nvarchar(128) = cast(SERVERPROPERTY('ProductVersion') as NVARCHAR(128)),
@SQLServerEdition nvarchar(128) = cast(SERVERPROPERTY('Edition') as NVARCHAR(128));
declare @errorMessage nvarchar(512);
-- Ensure that we are running SQL Server 2012
if substring(@SQLServerVersion,1,CHARINDEX('.',@SQLServerVersion)-1) <> N'11'
begin
set @errorMessage = (N'You are not running a SQL Server 2012. Your SQL Server is ' + @SQLServerVersion);
Throw 51000, @errorMessage, 1;
end
if SERVERPROPERTY('EngineEdition') <> 3
begin
set @errorMessage = (N'Your SQL Server 2012 Edition is not an Enterprise or a Developer Edition: Your are running a ' + @SQLServerEdition);
Throw 51000, @errorMessage, 1;
end
--------------------------------------------------------------------------------------------------------------------
if NOT EXISTS (select * from sys.objects where type = 'p' and name = 'cstore_SuggestedTables' and schema_id = SCHEMA_ID('dbo') )
exec ('create procedure dbo.cstore_SuggestedTables as select 1');
GO
/*
Columnstore Indexes Scripts Library for SQL Server 2012:
Suggested Tables - Lists tables which potentially can be interesting for implementing Columnstore Indexes
Version: 1.5.0, August 2017
*/
alter procedure dbo.cstore_SuggestedTables(
-- Params --
@minRowsToConsider bigint = 500000, -- Minimum number of rows for a table to be considered for the suggestion inclusion
@minSizeToConsiderInGB Decimal(16,3) = 0.00, -- Minimum size in GB for a table to be considered for the suggestion inclusion
@schemaName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified schema
@tableName nvarchar(256) = NULL, -- Allows to show data filtered down to the specified table name pattern
@preciseSearch bit = 0, -- Defines if the schema and data search with the parameters @schemaName & @tableName will be precise or pattern-like
@objectId INT = NULL, -- Allows to show data filtered down to the specific object_id
@indexLocation varchar(15) = NULL, -- Allows to filter tables based on their location: Disk-Based & In-Memory
@considerColumnsOver8K bit = 1, -- Include in the results tables, which columns sum extends over 8000 bytes (and thus not supported in Columnstore)
@showReadyTablesOnly bit = 0, -- Shows only those Rowstore tables that can already get Columnstore Index without any additional work
@showUnsupportedColumnsDetails bit = 0, -- Shows a list of all Unsupported from the listed tables
@showTSQLCommandsBeta bit = 0 -- Shows a list with Commands for dropping the objects that prevent Columnstore Index creation
-- end of --
) as
begin
set nocount on;
-- Returns tables suggested for using Columnstore Indexes for the DataWarehouse environments
if OBJECT_ID('tempdb..#TablesToColumnstore') IS NOT NULL
drop table #TablesToColumnstore;
create table #TablesToColumnstore(
[ObjectId] int NOT NULL PRIMARY KEY,
[TableLocation] varchar(15) NOT NULL,
[TableName] nvarchar(1000) NOT NULL,
[ShortTableName] nvarchar(256) NOT NULL,
[Partitions] BIGINT NOT NULL,
[Row Count] bigint NOT NULL,
[Min RowGroups] smallint NOT NULL,
[Size in GB] decimal(16,3) NOT NULL,
[Cols Count] smallint NOT NULL,
[String Cols] smallint NOT NULL,
[Sum Length] int NOT NULL,
[Unsupported] smallint NOT NULL,
[LOBs] smallint NOT NULL,
[Computed] smallint NOT NULL,
[Clustered Index] tinyint NOT NULL,
[Nonclustered Indexes] smallint NOT NULL,
[XML Indexes] smallint NOT NULL,
[Spatial Indexes] smallint NOT NULL,
[Primary Key] tinyint NOT NULL,
[Foreign Keys] smallint NOT NULL,
[Unique Constraints] smallint NOT NULL,
[Triggers] smallint NOT NULL,
[RCSI] tinyint NOT NULL,
[Snapshot] tinyint NOT NULL,
[CDC] tinyint NOT NULL,
[CT] tinyint NOT NULL,
[Replication] tinyint NOT NULL,
[FileStream] tinyint NOT NULL,
[FileTable] tinyint NOT NULL
);
insert into #TablesToColumnstore
select t.object_id as [ObjectId]
, 'Disk-Based'
, quotename(object_schema_name(t.object_id)) + '.' + quotename(object_name(t.object_id)) as 'TableName'
, replace(object_name(t.object_id),' ', '') as 'ShortTableName'
, COUNT(DISTINCT p.partition_number) as [Partitions]
, isnull(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END),0) as 'Row Count'
, ceiling(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END)/1045678.) as 'Min RowGroups'
, cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) as 'size in GB'
, (select count(*) from sys.columns as col
where t.object_id = col.object_id ) as 'Cols Count'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR','SYSNAME')
) as 'String Cols'
, (select sum(col.max_length)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id
) as 'Sum Length'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
) as 'Unsupported'
, (select count(*)
from sys.columns as col
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
) as 'LOBs'
, (select count(*)
from sys.columns as col
where is_computed = 1 ) as 'Computed'
, (select count(*)
from sys.indexes ind
where type = 1 AND ind.object_id = t.object_id ) as 'Clustered Index'
, (select count(*)
from sys.indexes ind
where type = 2 AND ind.object_id = t.object_id ) as 'Nonclustered Indexes'
, (select count(*)
from sys.indexes ind
where type = 3 AND ind.object_id = t.object_id ) as 'XML Indexes'
, (select count(*)
from sys.indexes ind
where type = 4 AND ind.object_id = t.object_id ) as 'Spatial Indexes'
, (select count(*)
from sys.objects
where UPPER(type) = 'PK' AND parent_object_id = t.object_id ) as 'Primary Key'
, (select count(*)
from sys.objects
where UPPER(type) = 'F' AND parent_object_id = t.object_id ) as 'Foreign Keys'
, (select count(*)
from sys.objects
where UPPER(type) in ('UQ') AND parent_object_id = t.object_id ) as 'Unique Constraints'
, (select count(*)
from sys.objects
where UPPER(type) in ('TA','TR') AND parent_object_id = t.object_id ) as 'Triggers'
, 0 as 'RCSI'
, 0 as 'Snapshot'
, t.is_tracked_by_cdc as 'CDC'
, (select count(*)
from sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) as 'CT'
, t.is_replicated as 'Replication'
, coalesce(t.filestream_data_space_id,0,1) as 'FileStream'
, t.is_filetable as 'FileTable'
from sys.tables t
inner join sys.partitions as p
ON t.object_id = p.object_id
inner join sys.allocation_units as a
ON p.partition_id = a.container_id
where p.data_compression in (0,1,2) -- None, Row, Page
and (select count(*)
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0
and (@preciseSearch = 0 AND (@tableName is null or object_name (t.object_id) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (t.object_id) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( t.object_id ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( t.object_id ) = @schemaName))
AND (ISNULL(@objectId,t.object_id) = t.object_id)
and (( @showReadyTablesOnly = 1
and
(select count(*)
from sys.columns as col
inner join sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY'))
) = 0
and (select count(*)
from sys.objects so
where UPPER(so.type) in ('PK','F','UQ','TA','TR') and parent_object_id = t.object_id ) = 0
and (select count(*)
from sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (3,4) ) = 0
and (select count(*)
from sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from sys.change_tracking_databases ctdb)) = 0
and t.is_tracked_by_cdc = 0
--and t.is_memory_optimized = 0
and t.is_replicated = 0
and coalesce(t.filestream_data_space_id,0,1) = 0
and t.is_filetable = 0
)
or @showReadyTablesOnly = 0)
group by t.object_id, t.is_tracked_by_cdc, t.is_filetable, t.is_replicated, t.filestream_data_space_id
having sum(p.rows) >= @minRowsToConsider
and
(((select sum(col.max_length)
from sys.columns as col
inner join sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id
) < 8000 and @considerColumnsOver8K = 0 )
OR
@considerColumnsOver8K = 1 )
and
(cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) >= @minSizeToConsiderInGB)
and 0 = case isnull(@indexLocation,'Null')
when 'In-Memory' then 1
when 'Disk-Based' then 0
when 'Null' then 0
else 255 end
union all
select t.object_id as [ObjectId]
, 'Disk-Based'
, quotename(object_schema_name(t.object_id,db_id('tempdb'))) + '.' + quotename(object_name(t.object_id,db_id('tempdb'))) as 'TableName'
, replace(object_name(t.object_id,db_id('tempdb')),' ', '') as 'ShortTableName'
, COUNT(DISTINCT p.partition_number) as [Partitions]
, isnull(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END),0) as 'Row Count'
, ceiling(SUM(CASE WHEN p.index_id < 2 THEN p.rows ELSE 0 END)/1045678.) as 'Min RowGroups'
, cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) as 'size in GB'
, (select count(*) from tempdb.sys.columns as col
where t.object_id = col.object_id ) as 'Cols Count'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR','SYSNAME')
) as 'String Cols'
, (select sum(col.max_length)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id
) as 'Sum Length'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
) as 'Unsupported'
, (select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.user_type_id = tp.user_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
) as 'LOBs'
, (select count(*)
from tempdb.sys.columns as col
where is_computed = 1 ) as 'Computed'
, (select count(*)
from tempdb.sys.indexes ind
where type = 1 AND ind.object_id = t.object_id ) as 'Clustered Index'
, (select count(*)
from tempdb.sys.indexes ind
where type = 2 AND ind.object_id = t.object_id ) as 'Nonclustered Indexes'
, (select count(*)
from tempdb.sys.indexes ind
where type = 3 AND ind.object_id = t.object_id ) as 'XML Indexes'
, (select count(*)
from tempdb.sys.indexes ind
where type = 4 AND ind.object_id = t.object_id ) as 'Spatial Indexes'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) = 'PK' AND parent_object_id = t.object_id ) as 'Primary Key'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) = 'F' AND parent_object_id = t.object_id ) as 'Foreign Keys'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) in ('UQ') AND parent_object_id = t.object_id ) as 'Unique Constraints'
, (select count(*)
from tempdb.sys.objects
where UPPER(type) in ('TA','TR') AND parent_object_id = t.object_id ) as 'Triggers'
, 0 as 'RCSI'
, 0 as 'Snapshot'
, t.is_tracked_by_cdc as 'CDC'
, (select count(*)
from tempdb.sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from tempdb.sys.change_tracking_databases ctdb)) as 'CT'
, t.is_replicated as 'Replication'
, coalesce(t.filestream_data_space_id,0,1) as 'FileStream'
, t.is_filetable as 'FileTable'
from tempdb.sys.tables t
inner join tempdb.sys.partitions as p
ON t.object_id = p.object_id
inner join tempdb.sys.allocation_units as a
ON p.partition_id = a.container_id
where p.data_compression in (0,1,2) -- None, Row, Page
and (select count(*)
from tempdb.sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (5,6) ) = 0
and (@preciseSearch = 0 AND (@tableName is null or object_name (t.object_id,db_id('tempdb')) like '%' + @tableName + '%')
OR @preciseSearch = 1 AND (@tableName is null or object_name (t.object_id,db_id('tempdb')) = @tableName) )
and (@preciseSearch = 0 AND (@schemaName is null or object_schema_name( t.object_id,db_id('tempdb') ) like '%' + @schemaName + '%')
OR @preciseSearch = 1 AND (@schemaName is null or object_schema_name( t.object_id,db_id('tempdb') ) = @schemaName))
AND (ISNULL(@objectId,t.object_id) = t.object_id)
and (( @showReadyTablesOnly = 1
and
(select count(*)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id and
(UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY'))
) = 0
and (select count(*)
from tempdb.sys.objects so
where UPPER(so.type) in ('PK','F','UQ','TA','TR') and parent_object_id = t.object_id ) = 0
and (select count(*)
from tempdb.sys.indexes ind
where t.object_id = ind.object_id
and ind.type in (3,4) ) = 0
and (select count(*)
from tempdb.sys.change_tracking_tables ctt with(READUNCOMMITTED)
where ctt.object_id = t.object_id and ctt.is_track_columns_updated_on = 1
and DB_ID() in (select database_id from tempdb.sys.change_tracking_databases ctdb)) = 0
and t.is_tracked_by_cdc = 0
--and t.is_memory_optimized = 0
and t.is_replicated = 0
and coalesce(t.filestream_data_space_id,0,1) = 0
and t.is_filetable = 0
)
or @showReadyTablesOnly = 0)
group by t.object_id, t.is_tracked_by_cdc, t.is_filetable, t.is_replicated, t.filestream_data_space_id
having sum(p.rows) >= @minRowsToConsider
and
(((select sum(col.max_length)
from tempdb.sys.columns as col
inner join tempdb.sys.types as tp
on col.system_type_id = tp.system_type_id
where t.object_id = col.object_id
) < 8000 and @considerColumnsOver8K = 0 )
OR
@considerColumnsOver8K = 1 )
and
(cast( sum(a.total_pages) * 8.0 / 1024. / 1024 as decimal(16,3)) >= @minSizeToConsiderInGB)
and 0 = case isnull(@indexLocation,'Null')
when 'In-Memory' then 1
when 'Disk-Based' then 0
when 'Null' then 0
else 255 end
-- Show the found results
select case when ([Replication] + [FileStream] + [FileTable] + [Unsupported]
- ([LOBs] + [Computed])) <= 0 then 'Nonclustered Columnstore'
when ([Primary Key] + [Foreign Keys] + [Unique Constraints] + [Triggers] + [CDC] + [CT] +
[Replication] + [FileStream] + [FileTable] + [Unsupported]
- ([LOBs] + [Computed])) > 0 then 'None'
end as 'Compatible With'
, [TableLocation]
, [TableName], [Partitions], [Row Count], [Min RowGroups], [Size in GB], [Cols Count], [String Cols], [Sum Length], [Unsupported], [LOBs], [Computed]
, [Clustered Index], [Nonclustered Indexes], [XML Indexes], [Spatial Indexes], [Primary Key], [Foreign Keys], [Unique Constraints]
, [Triggers], [RCSI], [Snapshot], [CDC], [CT], [Replication], [FileStream], [FileTable]
from #TablesToColumnstore
order by [Row Count] desc;
if( @showUnsupportedColumnsDetails = 1 )
begin
select quotename(object_schema_name(t.object_id)) + '.' + quotename(object_name (t.object_id)) as 'TableName',
col.name as 'Unsupported Column Name',
tp.name as 'Data Type',
col.max_length as 'Max Length',
col.precision as 'Precision',
col.is_computed as 'Computed'
from sys.tables t
inner join sys.columns as col
on t.object_id = col.object_id
inner join sys.types as tp
on col.user_type_id = tp.user_type_id
where ((UPPER(tp.name) in ('TEXT','NTEXT','TIMESTAMP','HIERARCHYID','SQL_VARIANT','XML','GEOGRAPHY','GEOMETRY') OR
(UPPER(tp.name) in ('VARCHAR','NVARCHAR','CHAR','NCHAR') and (col.max_length = 8000 or col.max_length = -1))
)
OR col.is_computed = 1 )
and t.object_id in (select ObjectId from #TablesToColumnstore);
end
if( @showTSQLCommandsBeta = 1 )
begin
select coms.TableName, coms.[TSQL Command], coms.[type]
from (
select t.TableName,
'create nonclustered columnstore index ' +
'NCCI'
+ '_' + t.[ShortTableName] +
' on ' + t.TableName + '()' + ';' as [TSQL Command]
, 'CCL' as type,
101 as [Sort Order]
from #TablesToColumnstore t
union all
select t.TableName, 'alter table ' + t.TableName + ' drop constraint ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ';' as [TSQL Command], [type],
case UPPER(type) when 'PK' then 100 when 'F' then 1 when 'UQ' then 100 end as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('PK','F','UQ')
union all
select t.TableName, 'drop trigger ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ';' as [TSQL Command], type,
50 as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('TR')
union all
select t.TableName, 'drop assembly ' + (quotename(so.name) collate SQL_Latin1_General_CP1_CI_AS) + ' WITH NO DEPENDENTS ;' as [TSQL Command], type,
50 as [Sort Order]
from #TablesToColumnstore t
inner join sys.objects so
on t.ObjectId = so.parent_object_id
where UPPER(type) in ('TA')
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'CL' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 1 and not exists
(select 1 from #TablesToColumnstore t1
inner join sys.objects so1
on t1.ObjectId = so1.parent_object_id
where UPPER(so1.type) in ('PK','F','UQ')
and quotename(ind.name) <> quotename(so1.name))
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'NC' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 2 and not exists
(select 1 from #TablesToColumnstore t1
inner join sys.objects so1
on t1.ObjectId = so1.parent_object_id
where UPPER(so1.type) in ('PK','F','UQ')
and quotename(ind.name) <> quotename(so1.name) and t.ObjectId = t1.ObjectId )
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'XML' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 3
union all
select t.TableName, 'drop index ' + (quotename(ind.name) collate SQL_Latin1_General_CP1_CI_AS) + ' on ' + t.TableName + ';' as [TSQL Command], 'SPAT' as type,
10 as [Sort Order]
from #TablesToColumnstore t
inner join sys.indexes ind
on t.ObjectId = ind.object_id
where type = 4
union all
select t.TableName, '-- - - - - - - - - - - - - - - - - - - - - -' as [TSQL Command], '---' as type,
0 as [Sort Order]
from #TablesToColumnstore t
) coms
order by coms.type desc, coms.[Sort Order]; --coms.TableName
end
drop table #TablesToColumnstore;
end
GO | the_stack |
-- 2017-06-04T10:14:08.387
-- 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_Reference_Value_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,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,556869,109,0,18,327,114,'N','AD_Language',TO_TIMESTAMP('2017-06-04 10:14:08','YYYY-MM-DD HH24:MI:SS'),100,'N','Sprache für diesen Eintrag','D',6,'Definiert die Sprache für Anzeige und Aufbereitung','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Sprache',0,TO_TIMESTAMP('2017-06-04 10:14:08','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2017-06-04T10:14:08.397
-- 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=556869 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)
;
-- 2017-06-04T10:14:21.205
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('ad_user','ALTER TABLE public.AD_User ADD COLUMN AD_Language VARCHAR(6)')
;
-- 2017-06-04T10:14:21.505
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE AD_User ADD CONSTRAINT ADLangu_ADUser FOREIGN KEY (AD_Language) REFERENCES public.AD_Language DEFERRABLE INITIALLY DEFERRED
;
-- 2017-06-04T10:15:31.732
-- 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,543358,0,'Avatar_ID',TO_TIMESTAMP('2017-06-04 10:15:31','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Avatar','Avatar',TO_TIMESTAMP('2017-06-04 10:15:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:15:31.737
-- 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=543358 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)
;
-- 2017-06-04T10:16:15.251
-- 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,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,556870,543358,0,32,114,'N','Avatar_ID',TO_TIMESTAMP('2017-06-04 10:16:15','YYYY-MM-DD HH24:MI:SS'),100,'N','D',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Avatar',0,TO_TIMESTAMP('2017-06-04 10:16:15','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2017-06-04T10:16:15.254
-- 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=556870 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)
;
-- 2017-06-04T10:16:19.616
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('ad_user','ALTER TABLE public.AD_User ADD COLUMN Avatar_ID NUMERIC(10)')
;
-- 2017-06-04T10:16:19.800
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE AD_User ADD CONSTRAINT Avatar_ADUser FOREIGN KEY (Avatar_ID) REFERENCES public.AD_Image DEFERRABLE INITIALLY DEFERRED
;
-- 2017-06-04T10:17:07.079
-- 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,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,556869,558688,0,118,0,TO_TIMESTAMP('2017-06-04 10:17:07','YYYY-MM-DD HH24:MI:SS'),100,'Sprache für diesen Eintrag',0,'D','Definiert die Sprache für Anzeige und Aufbereitung',0,'Y','Y','Y','Y','N','N','N','N','N','Sprache',420,420,0,1,1,TO_TIMESTAMP('2017-06-04 10:17:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:17:07.082
-- 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=558688 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)
;
-- 2017-06-04T10:17:20.911
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2017-06-04 10:17:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558688
;
-- 2017-06-04T10:18:15.028
-- 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,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,556870,558689,0,118,0,TO_TIMESTAMP('2017-06-04 10:18:14','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','N','N','N','N','N','N','N','Avatar',430,430,0,1,1,TO_TIMESTAMP('2017-06-04 10:18:14','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:18:15.031
-- 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=558689 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)
;
-- 2017-06-04T10:25:06.746
-- 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,558688,0,118,540190,545357,TO_TIMESTAMP('2017-06-04 10:25:06','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sprache',390,0,0,TO_TIMESTAMP('2017-06-04 10:25:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:25:15.607
-- 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,558689,0,118,540190,545358,TO_TIMESTAMP('2017-06-04 10:25:15','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Avatar',400,0,0,TO_TIMESTAMP('2017-06-04 10:25:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:25:26.840
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 10:25:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545357
;
-- 2017-06-04T10:25:28.198
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 10:25:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545358
;
-- 2017-06-04T10:28:02.455
-- 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,540132,540591,TO_TIMESTAMP('2017-06-04 10:28:02','YYYY-MM-DD HH24:MI:SS'),100,'Y','avatar',5,TO_TIMESTAMP('2017-06-04 10:28:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:28:13.360
-- 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,558689,0,118,540591,545359,TO_TIMESTAMP('2017-06-04 10:28:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Avatar',10,0,0,TO_TIMESTAMP('2017-06-04 10:28:13','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:29:17.973
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545358
;
-- 2017-06-04T10:42:45.889
-- 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,303,0,118,540591,545360,TO_TIMESTAMP('2017-06-04 10:42:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Aktiv',20,0,0,TO_TIMESTAMP('2017-06-04 10:42:45','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:43:20.805
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=5,Updated=TO_TIMESTAMP('2017-06-04 10:43:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545360
;
-- 2017-06-04T10:45:05.133
-- 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,558688,0,118,540591,545361,TO_TIMESTAMP('2017-06-04 10:45:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sprache',7,0,0,TO_TIMESTAMP('2017-06-04 10:45:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:45:17.141
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-06-04 10:45:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545361
;
-- 2017-06-04T10:45:43.708
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545357
;
-- 2017-06-04T10:46:23.962
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542485
;
-- 2017-06-04T10:48:55.410
-- 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,118,540254,TO_TIMESTAMP('2017-06-04 10:48:55','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-04 10:48:55','YYYY-MM-DD HH24:MI:SS'),100,'secondary')
;
-- 2017-06-04T10:48:55.415
-- 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=540254 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-04T10:48:58.043
-- 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,540346,540254,TO_TIMESTAMP('2017-06-04 10:48:58','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-04 10:48:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:48:59.659
-- 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,540347,540254,TO_TIMESTAMP('2017-06-04 10:48:59','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-06-04 10:48:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:49:09.911
-- 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,540346,540592,TO_TIMESTAMP('2017-06-04 10:49:09','YYYY-MM-DD HH24:MI:SS'),100,'Y','greeting',10,TO_TIMESTAMP('2017-06-04 10:49:09','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:49:32.252
-- 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,6513,0,118,540592,545362,TO_TIMESTAMP('2017-06-04 10:49:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Anrede',10,0,0,TO_TIMESTAMP('2017-06-04 10:49:32','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:49:42.519
-- 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,6521,0,118,540592,545363,TO_TIMESTAMP('2017-06-04 10:49:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Titel',20,0,0,TO_TIMESTAMP('2017-06-04 10:49:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:49:51.777
-- 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,12324,0,118,540592,545364,TO_TIMESTAMP('2017-06-04 10:49:51','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Position',30,0,0,TO_TIMESTAMP('2017-06-04 10:49:51','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:50:12.869
-- 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,6514,0,118,540592,545365,TO_TIMESTAMP('2017-06-04 10:50:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Telefon',40,0,0,TO_TIMESTAMP('2017-06-04 10:50:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:50:42.969
-- 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,540347,540593,TO_TIMESTAMP('2017-06-04 10:50:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','flags & org',10,TO_TIMESTAMP('2017-06-04 10:50:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:51:45.961
-- 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,12323,0,118,540593,545366,TO_TIMESTAMP('2017-06-04 10:51:45','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Full BP Access',10,0,0,TO_TIMESTAMP('2017-06-04 10:51:45','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:51:59.226
-- 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,553935,0,118,540593,545367,TO_TIMESTAMP('2017-06-04 10:51:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Einkaufskontakt',20,0,0,TO_TIMESTAMP('2017-06-04 10:51:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:52:12.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,Updated,UpdatedBy) VALUES (0,0,540347,540594,TO_TIMESTAMP('2017-06-04 10:52:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-06-04 10:52:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:52:16.033
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET Name='flags',Updated=TO_TIMESTAMP('2017-06-04 10:52:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540593
;
-- 2017-06-04T10:52:24.308
-- 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,2001,0,118,540594,545368,TO_TIMESTAMP('2017-06-04 10:52:24','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sektion',10,0,0,TO_TIMESTAMP('2017-06-04 10:52:24','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:52:31.604
-- 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,309,0,118,540594,545369,TO_TIMESTAMP('2017-06-04 10:52:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Mandant',20,0,0,TO_TIMESTAMP('2017-06-04 10:52:31','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:53:24.975
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_Field_ID=6517,Updated=TO_TIMESTAMP('2017-06-04 10:53:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545365
;
-- 2017-06-04T10:55:04.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,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,551896,0,118,540592,545370,TO_TIMESTAMP('2017-06-04 10:55:04','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Nutzer gesperrt',50,0,0,TO_TIMESTAMP('2017-06-04 10:55:04','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:55:19.658
-- 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,551899,0,118,540592,545371,TO_TIMESTAMP('2017-06-04 10:55:19','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Nutzer entsperren',60,0,0,TO_TIMESTAMP('2017-06-04 10:55:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T10:56:26.577
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544479
;
-- 2017-06-04T10:56:26.594
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544480
;
-- 2017-06-04T10:56:30.095
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540202
;
-- 2017-06-04T10:56:36.285
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542493
;
-- 2017-06-04T10:56:36.308
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542494
;
-- 2017-06-04T10:56:39.756
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540201
;
-- 2017-06-04T10:56:45.920
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542486
;
-- 2017-06-04T10:56:45.934
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542488
;
-- 2017-06-04T10:56:45.943
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542489
;
-- 2017-06-04T10:56:45.951
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=542491
;
-- 2017-06-04T10:56:49.615
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540200
;
-- 2017-06-04T10:56:56.375
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=10,Updated=TO_TIMESTAMP('2017-06-04 10:56:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540591
;
-- 2017-06-04T10:57:38.777
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544474
;
-- 2017-06-04T10:57:38.809
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544475
;
-- 2017-06-04T10:57:38.821
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544476
;
-- 2017-06-04T10:57:38.830
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544477
;
-- 2017-06-04T10:57:38.839
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=544478
;
-- 2017-06-04T10:57:44.585
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540203
;
-- 2017-06-04T11:01:37.455
-- 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,118,540255,TO_TIMESTAMP('2017-06-04 11:01:37','YYYY-MM-DD HH24:MI:SS'),100,'Y',30,TO_TIMESTAMP('2017-06-04 11:01:37','YYYY-MM-DD HH24:MI:SS'),100,'advanced edit')
;
-- 2017-06-04T11:01:37.459
-- 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=540255 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-04T11:01:42.432
-- 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,540348,540255,TO_TIMESTAMP('2017-06-04 11:01:42','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-06-04 11:01:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T11:02:23.586
-- 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,540348,540595,TO_TIMESTAMP('2017-06-04 11:02:23','YYYY-MM-DD HH24:MI:SS'),100,'Y','advanced edit',10,TO_TIMESTAMP('2017-06-04 11:02:23','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T11:02:48.729
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET AD_UI_Column_ID=540348, SeqNo=20,Updated=TO_TIMESTAMP('2017-06-04 11:02:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540190
;
-- 2017-06-04T11:03:14.306
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=540595
;
-- 2017-06-04T11:03:18.353
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET SeqNo=10,Updated=TO_TIMESTAMP('2017-06-04 11:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540190
;
-- 2017-06-04T11:03:44.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=160,Updated=TO_TIMESTAMP('2017-06-04 11:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542379
;
-- 2017-06-04T11:04:22.360
-- 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,551898,0,118,540190,545372,TO_TIMESTAMP('2017-06-04 11:04:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Datum Login Fehlversuch',390,0,0,TO_TIMESTAMP('2017-06-04 11:04:22','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T11:04:44.559
-- 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,551895,0,118,540190,545373,TO_TIMESTAMP('2017-06-04 11:04:44','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Anzahl Login Fehlversuche',400,0,0,TO_TIMESTAMP('2017-06-04 11:04:44','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T11:05:11.654
-- 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,551897,0,118,540190,545374,TO_TIMESTAMP('2017-06-04 11:05:11','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Gesperrt von IP',410,0,0,TO_TIMESTAMP('2017-06-04 11:05:11','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T11:05:19.610
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-06-04 11:05:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545372
;
-- 2017-06-04T11:05:22.058
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=20,Updated=TO_TIMESTAMP('2017-06-04 11:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545373
;
-- 2017-06-04T11:05:24.453
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET SeqNo=30,Updated=TO_TIMESTAMP('2017-06-04 11:05:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545374
;
-- 2017-06-04T11:05:24.883
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 11:05:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545372
;
-- 2017-06-04T11:05:25.358
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 11:05:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545373
;
-- 2017-06-04T11:05:27.020
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-06-04 11:05:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545374
;
-- 2017-06-04T11:06:22.139
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_ElementGroup SET UIStyle='primary',Updated=TO_TIMESTAMP('2017-06-04 11:06:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540190
;
-- 2017-06-04T12:02:54.283
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545362
;
-- 2017-06-04T12:02:54.285
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542480
;
-- 2017-06-04T12:02:54.286
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542481
;
-- 2017-06-04T12:02:54.287
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542484
;
-- 2017-06-04T12:02:54.288
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542482
;
-- 2017-06-04T12:02:54.289
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544468
;
-- 2017-06-04T12:02:54.290
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542398
;
-- 2017-06-04T12:02:54.293
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544471
;
-- 2017-06-04T12:02:54.294
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545368
;
-- 2017-06-04T12:02:54.297
-- 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 12:02:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545369
;
-- 2017-06-04T12:03:32.598
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 12:03:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542479
;
-- 2017-06-04T12:03:38.098
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 12:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542480
;
-- 2017-06-04T12:03:48.628
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='L',Updated=TO_TIMESTAMP('2017-06-04 12:03:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542481
;
-- 2017-06-04T12:03:54.473
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 12:03:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542484
;
-- 2017-06-04T12:04:21.269
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2017-06-04 12:04:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545362
;
-- 2017-06-04T12:04:57.989
-- 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-06-04 12:04:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545360
;
-- 2017-06-04T12:05:18.483
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545360
;
-- 2017-06-04T12:05:18.484
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545361
;
-- 2017-06-04T12:05:18.485
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542484
;
-- 2017-06-04T12:05:18.486
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542482
;
-- 2017-06-04T12:05:18.487
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544468
;
-- 2017-06-04T12:05:18.488
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542398
;
-- 2017-06-04T12:05:18.489
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=544471
;
-- 2017-06-04T12:05:18.490
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545368
;
-- 2017-06-04T12:05:18.491
-- 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 12:05:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=545369
;
-- 2017-06-04T12:12:01.828
-- 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,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,556870,558690,0,53282,0,TO_TIMESTAMP('2017-06-04 12:12:01','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','Y','N','N','N','N','N','Avatar',300,310,0,1,1,TO_TIMESTAMP('2017-06-04 12:12:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T12:12:01.843
-- 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=558690 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)
;
-- 2017-06-04T12:12:19.517
-- 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,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsCentrallyMaintained,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,556869,558691,0,53282,0,TO_TIMESTAMP('2017-06-04 12:12:19','YYYY-MM-DD HH24:MI:SS'),100,'Sprache für diesen Eintrag',6,'D','Definiert die Sprache für Anzeige und Aufbereitung',0,'Y','Y','Y','Y','N','N','N','N','N','Sprache',310,320,0,1,1,TO_TIMESTAMP('2017-06-04 12:12:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T12:12:19.519
-- 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=558691 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)
;
-- 2017-06-04T12:12:24.271
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2017-06-04 12:12:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558691
;
-- 2017-06-04T12:12:30.563
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2017-06-04 12:12:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=558690
;
-- 2017-06-04T12:12:52.277
-- 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,558690,0,53282,540588,545375,TO_TIMESTAMP('2017-06-04 12:12:52','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Avatar',30,0,0,TO_TIMESTAMP('2017-06-04 12:12:52','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T12:13:05.251
-- 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,558691,0,53282,540588,545376,TO_TIMESTAMP('2017-06-04 12:13:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sprache',40,0,0,TO_TIMESTAMP('2017-06-04 12:13:05','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T12:13:11.223
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545352
;
-- 2017-06-04T12:13:31.090
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=545376
;
-- 2017-06-04T12:13:53.274
-- 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,558691,0,53282,540586,545377,TO_TIMESTAMP('2017-06-04 12:13:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Y','N','N','Sprache',40,0,0,TO_TIMESTAMP('2017-06-04 12:13:53','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-06-04T12:14:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Kennwort',Updated=TO_TIMESTAMP('2017-06-04 12:14:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57994
;
-- 2017-06-04T12:14:36.003
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57994
;
-- 2017-06-04T12:15:14.053
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='eMail', PrintName='eMail',Updated=TO_TIMESTAMP('2017-06-04 12:15:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=881
;
-- 2017-06-04T12:15:14.060
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=881
;
-- 2017-06-04T12:15:14.064
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='EMail', Name='eMail', Description='EMail-Adresse', Help='The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.' WHERE AD_Element_ID=881
;
-- 2017-06-04T12:15:14.107
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='EMail', Name='eMail', Description='EMail-Adresse', Help='The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.', AD_Element_ID=881 WHERE UPPER(ColumnName)='EMAIL' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2017-06-04T12:15:14.109
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='EMail', Name='eMail', Description='EMail-Adresse', Help='The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.' WHERE AD_Element_ID=881 AND IsCentrallyMaintained='Y'
;
-- 2017-06-04T12:15:14.113
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='eMail', Description='EMail-Adresse', Help='The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=881) AND IsCentrallyMaintained='Y'
;
-- 2017-06-04T12:15:14.143
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='eMail', Name='eMail' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=881)
;
-- 2017-06-04T12:18:00.642
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Geburtstag',Updated=TO_TIMESTAMP('2017-06-04 12:18:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57997
;
-- 2017-06-04T12:18:00.643
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57997
;
-- 2017-06-04T12:18:14.257
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Mobil',Updated=TO_TIMESTAMP('2017-06-04 12:18:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57999
;
-- 2017-06-04T12:18:14.262
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57999
;
-- 2017-06-04T12:18:23.801
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Telefon',Updated=TO_TIMESTAMP('2017-06-04 12:18:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57998
;
-- 2017-06-04T12:18:23.805
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57998
;
-- 2017-06-04T12:18:34.764
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Titel',Updated=TO_TIMESTAMP('2017-06-04 12:18:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57996
;
-- 2017-06-04T12:18:34.766
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57996
;
-- 2017-06-04T12:18:48.217
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Anrede',Updated=TO_TIMESTAMP('2017-06-04 12:18:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58010
;
-- 2017-06-04T12:18:48.220
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=58010
;
-- 2017-06-04T12:19:01.734
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Mandant',Updated=TO_TIMESTAMP('2017-06-04 12:19:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57984
;
-- 2017-06-04T12:19:01.738
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57984
;
-- 2017-06-04T12:20:02.903
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Aktiv',Updated=TO_TIMESTAMP('2017-06-04 12:20:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57990
;
-- 2017-06-04T12:20:02.904
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=57990
; | the_stack |
-- 2017-04-27T11:50:16.105
-- URL zum Konzept
INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,Name,Updated,UpdatedBy) VALUES (0,0,540176,TO_TIMESTAMP('2017-04-27 11:50:15','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N','C_Order (PO) -> Vendor Return InOutLine',TO_TIMESTAMP('2017-04-27 11:50:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-04-27T11:50:51.053
-- URL zum Konzept
UPDATE AD_RelationType SET AD_Reference_Source_ID=540676,Updated=TO_TIMESTAMP('2017-04-27 11:50:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540176
;
-- 2017-04-27T11:51:32.787
-- URL zum Konzept
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,540717,TO_TIMESTAMP('2017-04-27 11:51:32','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N','Vendor Return InOutLine Target for C_Order',TO_TIMESTAMP('2017-04-27 11:51:32','YYYY-MM-DD HH24:MI:SS'),100,'T')
;
-- 2017-04-27T11:51:32.789
-- URL zum Konzept
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=540717 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)
;
-- 2017-04-27T11:52:00.314
-- URL zum Konzept
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,3529,0,540717,320,TO_TIMESTAMP('2017-04-27 11:52:00','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N',TO_TIMESTAMP('2017-04-27 11:52:00','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-04-27T11:52:07.871
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=53098,Updated=TO_TIMESTAMP('2017-04-27 11:52:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T13:38:03.423
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='exists (
select 1 from M_InOut io
join M_InOutLine iol on io.M_InOut_ID = iol.M_InOut_ID
join M_InOutLine iol on iol.VendorReturn_Origin_InOutLine_ID = iol.M_InOutLine_ID
join C_OrderLine ol on iol.C_OrderLine_ID = ol.C_OrderLine_ID
join C_Order o on ol.C_Order_ID = o.C_Order_ID
where o.C_Order_ID = @C_Order_ID/-1@ and o.IsSOTrx = ''N'' and M_InOut.M_InOut_ID = io.M_InOut_ID
)',Updated=TO_TIMESTAMP('2017-04-27 13:38:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T13:38:22.207
-- URL zum Konzept
UPDATE AD_RelationType SET AD_Reference_Target_ID=540717,Updated=TO_TIMESTAMP('2017-04-27 13:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540176
;
-- 2017-04-27T13:42:42.952
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=53098,Updated=TO_TIMESTAMP('2017-04-27 13:42:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540716
;
-- 2017-04-27T13:42:49.220
-- URL zum Konzept
INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_Reference_Source_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,Name,Updated,UpdatedBy) VALUES (0,0,540716,540177,TO_TIMESTAMP('2017-04-27 13:42:49','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N','Vendor Return InOutLine -> Order (PO)',TO_TIMESTAMP('2017-04-27 13:42:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-04-27T13:43:41.153
-- URL zum Konzept
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,540718,TO_TIMESTAMP('2017-04-27 13:43:41','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N','C_Order POTrx target for Vendor Return InOutLine',TO_TIMESTAMP('2017-04-27 13:43:41','YYYY-MM-DD HH24:MI:SS'),100,'T')
;
-- 2017-04-27T13:43:41.159
-- URL zum Konzept
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=540718 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)
;
-- 2017-04-27T13:46:32.137
-- URL zum Konzept
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,2161,0,540718,259,181,TO_TIMESTAMP('2017-04-27 13:46:32','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N',TO_TIMESTAMP('2017-04-27 13:46:32','YYYY-MM-DD HH24:MI:SS'),100,'
exists (
select 1 from C_Order o
join C_OrderLine ol on o.C_Order_ID = ol.C_Order_ID
join M_InOutLine iol on ol.C_OrderLine_ID = iol.C_OrderLine_ID
join M_InOutLine ret on iol.M_InOutLine_ID = ret.VendorReturn_Origin_InOutLine_ID
join M_InOut io on ret.M_InOut_ID = io.M_InOut_ID
where io.M_InOut_ID = @M_InOut_ID/-1@ and o.IsSOTrx = ''N'' and C_Order.C_Order_ID = o.C_Order_ID
)')
;
-- 2017-04-27T13:48:12.083
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='exists (
select 1 from M_InOut io
join M_InOutLine ret on io.M_InOut_ID = ret.M_InOut_ID
join M_InOutLine iol on ret.VendorReturn_Origin_InOutLine_ID = iol.M_InOutLine_ID
join C_OrderLine ol on iol.C_OrderLine_ID = ol.C_OrderLine_ID
join C_Order o on ol.C_Order_ID = o.C_Order_ID
where o.C_Order_ID = @C_Order_ID/-1@ and o.IsSOTrx = ''N'' and M_InOut.M_InOut_ID = io.M_InOut_ID
)',Updated=TO_TIMESTAMP('2017-04-27 13:48:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T14:35:10.466
-- URL zum Konzept
UPDATE AD_RelationType SET AD_Reference_Target_ID=540718,Updated=TO_TIMESTAMP('2017-04-27 14:35:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540177
;
-- 2017-04-27T14:41:26.332
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Key=3521, AD_Table_ID=319,Updated=TO_TIMESTAMP('2017-04-27 14:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T14:47:32.552
-- URL zum Konzept
UPDATE AD_RelationType SET AD_Reference_Source_ID=337,Updated=TO_TIMESTAMP('2017-04-27 14:47:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540177
;
-- 2017-04-27T15:07:16.170
-- URL zum Konzept
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,540719,TO_TIMESTAMP('2017-04-27 15:07:16','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N','Vendor Return Source',TO_TIMESTAMP('2017-04-27 15:07:16','YYYY-MM-DD HH24:MI:SS'),100,'T')
;
-- 2017-04-27T15:07:16.176
-- URL zum Konzept
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=540719 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)
;
-- 2017-04-27T15:07:43.817
-- URL zum Konzept
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) VALUES (0,3521,0,540719,319,53098,TO_TIMESTAMP('2017-04-27 15:07:43','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.inout','Y','N',TO_TIMESTAMP('2017-04-27 15:07:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-04-27T15:11:38.639
-- URL zum Konzept
UPDATE AD_RelationType SET AD_Reference_Source_ID=540719,Updated=TO_TIMESTAMP('2017-04-27 15:11:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540177
;
-- 2017-04-27T15:36:16.062
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='
exists (
select 1 from C_Order o
join C_OrderLine ol on o.C_Order_ID = ol.C_Order_ID
join M_InOutLine iol on ol.C_OrderLine_ID = iol.C_OrderLine_ID
join M_InOutLine ret on iol.M_InOutLine_ID = ret.VendorReturn_Origin_InOutLine_ID
join M_InOut io on ret.M_InOut_ID = io.M_InOut_ID
where io.M_InOut_ID = @M_InOut_ID/-1@ and o.IsSOTrx = ''N'' and C_Order.C_Order_ID = o.C_Order_ID
)',Updated=TO_TIMESTAMP('2017-04-27 15:36:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-04-27T15:42:28.088
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='exists (
select 1 from M_InOut io
join M_InOutLine ret on io.M_InOut_ID = ret.M_InOut_ID
join M_InOutLine iol on ret.VendorReturn_Origin_InOutLine_ID = iol.M_InOutLine_ID
join C_OrderLine ol on iol.C_OrderLine_ID = ol.C_OrderLine_ID
join C_Order o on ol.C_Order_ID = o.C_Order_ID
where o.C_Order_ID = @C_Order_ID/-1@ and o.IsSOTrx = ''N'' and M_InOut.M_InOut_ID = io.M_InOut_ID
)',Updated=TO_TIMESTAMP('2017-04-27 15:42:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T16:31:20.715
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_Value_ID=295,Updated=TO_TIMESTAMP('2017-04-27 16:31:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=556514
;
-- 2017-04-27T16:36:38.640
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='IsSOTrx = ''N''',Updated=TO_TIMESTAMP('2017-04-27 16:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540719
;
-- 2017-04-27T16:47:47.217
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='
exists (
select 1 from C_Ordepr o
join C_OrderLine ol on o.C_Order_ID = ol.C_Order_ID
join M_InOutLine iol on ol.C_OrderLine_ID = iol.C_OrderLine_ID
join M_InOutLine ret on iol.M_InOutLine_ID = ret.VendorReturn_Origin_InOutLine_ID
join M_InOut io on ret.M_InOut_ID = io.M_InOut_ID
where io.M_InOut_ID = @M_InOut_ID/-1@ and o.IsSOTrx = ''N'' and C_Order.C_Order_ID = o.C_Order_ID
)',Updated=TO_TIMESTAMP('2017-04-27 16:47:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-04-27T16:48:12.447
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='
exists (
select 1 from C_Order o
join C_OrderLine ol on o.C_Order_ID = ol.C_Order_ID
join M_InOutLine iol on ol.C_OrderLine_ID = iol.C_OrderLine_ID
join M_InOutLine ret on iol.M_InOutLine_ID = ret.VendorReturn_Origin_InOutLine_ID
join M_InOut io on ret.M_InOut_ID = io.M_InOut_ID
where io.M_InOut_ID = @M_InOut_ID/-1@ and o.IsSOTrx = ''N'' and C_Order.C_Order_ID = o.C_Order_ID
)',Updated=TO_TIMESTAMP('2017-04-27 16:48:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-04-27T16:51:12.563
-- URL zum Konzept
UPDATE AD_Ref_Table SET WhereClause='
exists (
select 1 from C_Order o
join C_OrderLine ol on o.C_Order_ID = ol.C_Order_ID
join M_InOutLine iol on ol.C_OrderLine_ID = iol.C_OrderLine_ID
join M_InOutLine ret on iol.M_InOutLine_ID = ret.VendorReturn_Origin_InOutLine_ID
join M_InOut io on ret.M_InOut_ID = io.M_InOut_ID
where io.M_InOut_ID = @M_InOut_ID/-1@ and o.IsSOTrx = ''N'' and C_Order.C_Order_ID = o.C_Order_ID
)',Updated=TO_TIMESTAMP('2017-04-27 16:51:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-04-27T17:07:32.318
-- URL zum Konzept
UPDATE AD_RelationType SET IsDirected='Y',Updated=TO_TIMESTAMP('2017-04-27 17:07:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540176
;
-- 2017-04-27T17:07:32.775
-- URL zum Konzept
UPDATE AD_RelationType SET IsDirected='Y',Updated=TO_TIMESTAMP('2017-04-27 17:07:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540177
;
-- 2017-04-27T17:07:33.107
-- URL zum Konzept
UPDATE AD_RelationType SET IsDirected='Y',Updated=TO_TIMESTAMP('2017-04-27 17:07:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540175
;
-- 2017-04-27T17:07:37.127
-- URL zum Konzept
UPDATE AD_RelationType SET IsDirected='N',Updated=TO_TIMESTAMP('2017-04-27 17:07:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=540175
;
-- 2017-04-27T17:20:55.750
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2017-04-27 17:20:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T17:22:50.190
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=53098,Updated=TO_TIMESTAMP('2017-04-27 17:22:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540717
;
-- 2017-04-27T17:23:08.047
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2017-04-27 17:23:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-05-02T13:52:55.244
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=181,Updated=TO_TIMESTAMP('2017-05-02 13:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-05-02T13:57:39.790
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2017-05-02 13:57:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-05-02T14:14:54.652
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Display=2161,Updated=TO_TIMESTAMP('2017-05-02 14:14:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
;
-- 2017-05-02T14:15:17.493
-- URL zum Konzept
UPDATE AD_Ref_Table SET AD_Window_ID=181,Updated=TO_TIMESTAMP('2017-05-02 14:15:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540718
; | the_stack |
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Language SET IsActive='Y', IsSystemLanguage='Y',Updated=TO_TIMESTAMP('2016-02-26 09:58:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language_ID=192
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_BoilerPlate_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_BoilerPlate_ID, TextSnippext)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_BoilerPlate_ID, t.TextSnippext
FROM AD_BoilerPlate t LEFT JOIN AD_BoilerPlate_Trl trl ON trl.AD_BoilerPlate_ID = t.AD_BoilerPlate_ID AND trl.AD_Language='en_US'
WHERE trl.AD_BoilerPlate_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Column_ID, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Column_ID, t.Name
FROM AD_Column t LEFT JOIN AD_Column_Trl trl ON trl.AD_Column_ID = t.AD_Column_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Column_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Desktop_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Desktop_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Desktop_ID, t.Description, t.Help, t.Name
FROM AD_Desktop t LEFT JOIN AD_Desktop_Trl trl ON trl.AD_Desktop_ID = t.AD_Desktop_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Desktop_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Element_ID, Description, Help, Name, PO_Description, PO_Help, PO_Name, PO_PrintName, PrintName)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Element_ID, t.Description, t.Help, t.Name, t.PO_Description, t.PO_Help, t.PO_Name, t.PO_PrintName, t.PrintName
FROM AD_Element t LEFT JOIN AD_Element_Trl trl ON trl.AD_Element_ID = t.AD_Element_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Element_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Field_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Field_ID, t.Description, t.Help, t.Name
FROM AD_Field t LEFT JOIN AD_Field_Trl trl ON trl.AD_Field_ID = t.AD_Field_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Field_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_FieldGroup_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_FieldGroup_ID, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_FieldGroup_ID, t.Name
FROM AD_FieldGroup t LEFT JOIN AD_FieldGroup_Trl trl ON trl.AD_FieldGroup_ID = t.AD_FieldGroup_ID AND trl.AD_Language='en_US'
WHERE trl.AD_FieldGroup_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Form_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Form_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Form_ID, t.Description, t.Help, t.Name
FROM AD_Form t LEFT JOIN AD_Form_Trl trl ON trl.AD_Form_ID = t.AD_Form_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Form_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Index_Table_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Index_Table_ID, ErrorMsg)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Index_Table_ID, t.ErrorMsg
FROM AD_Index_Table t LEFT JOIN AD_Index_Table_Trl trl ON trl.AD_Index_Table_ID = t.AD_Index_Table_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Index_Table_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_InfoColumn_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_InfoColumn_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_InfoColumn_ID, t.Description, t.Help, t.Name
FROM AD_InfoColumn t LEFT JOIN AD_InfoColumn_Trl trl ON trl.AD_InfoColumn_ID = t.AD_InfoColumn_ID AND trl.AD_Language='en_US'
WHERE trl.AD_InfoColumn_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_InfoWindow_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_InfoWindow_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_InfoWindow_ID, t.Description, t.Help, t.Name
FROM AD_InfoWindow t LEFT JOIN AD_InfoWindow_Trl trl ON trl.AD_InfoWindow_ID = t.AD_InfoWindow_ID AND trl.AD_Language='en_US'
WHERE trl.AD_InfoWindow_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Menu_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Menu_ID, Description, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Menu_ID, t.Description, t.Name
FROM AD_Menu t LEFT JOIN AD_Menu_Trl trl ON trl.AD_Menu_ID = t.AD_Menu_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Menu_ID IS NULL
;
-- 26.02.2016 09:58
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Message_ID, MsgText, MsgTip)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Message_ID, t.MsgText, t.MsgTip
FROM AD_Message t LEFT JOIN AD_Message_Trl trl ON trl.AD_Message_ID = t.AD_Message_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Message_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_PrintFormatItem_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_PrintFormatItem_ID, PrintName, PrintNameSuffix)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_PrintFormatItem_ID, t.PrintName, t.PrintNameSuffix
FROM AD_PrintFormatItem t LEFT JOIN AD_PrintFormatItem_Trl trl ON trl.AD_PrintFormatItem_ID = t.AD_PrintFormatItem_ID AND trl.AD_Language='en_US'
WHERE trl.AD_PrintFormatItem_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_PrintLabelLine_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_PrintLabelLine_ID, PrintName)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_PrintLabelLine_ID, t.PrintName
FROM AD_PrintLabelLine t LEFT JOIN AD_PrintLabelLine_Trl trl ON trl.AD_PrintLabelLine_ID = t.AD_PrintLabelLine_ID AND trl.AD_Language='en_US'
WHERE trl.AD_PrintLabelLine_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Process_Para_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Process_Para_ID, t.Description, t.Help, t.Name
FROM AD_Process_Para t LEFT JOIN AD_Process_Para_Trl trl ON trl.AD_Process_Para_ID = t.AD_Process_Para_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Process_Para_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Process_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Process_ID, t.Description, t.Help, t.Name
FROM AD_Process t LEFT JOIN AD_Process_Trl trl ON trl.AD_Process_ID = t.AD_Process_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Process_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Ref_List_ID, Description, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Ref_List_ID, t.Description, t.Name
FROM AD_Ref_List t LEFT JOIN AD_Ref_List_Trl trl ON trl.AD_Ref_List_ID = t.AD_Ref_List_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Ref_List_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Reference_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Reference_ID, t.Description, t.Help, t.Name
FROM AD_Reference t LEFT JOIN AD_Reference_Trl trl ON trl.AD_Reference_ID = t.AD_Reference_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Reference_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Tab_ID, CommitWarning, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Tab_ID, t.CommitWarning, t.Description, t.Help, t.Name
FROM AD_Tab t LEFT JOIN AD_Tab_Trl trl ON trl.AD_Tab_ID = t.AD_Tab_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Tab_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Table_ID, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Table_ID, t.Name
FROM AD_Table t LEFT JOIN AD_Table_Trl trl ON trl.AD_Table_ID = t.AD_Table_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Table_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Task_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Task_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Task_ID, t.Description, t.Help, t.Name
FROM AD_Task t LEFT JOIN AD_Task_Trl trl ON trl.AD_Task_ID = t.AD_Task_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Task_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_WF_Node_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_WF_Node_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_WF_Node_ID, t.Description, t.Help, t.Name
FROM AD_WF_Node t LEFT JOIN AD_WF_Node_Trl trl ON trl.AD_WF_Node_ID = t.AD_WF_Node_ID AND trl.AD_Language='en_US'
WHERE trl.AD_WF_Node_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Window_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Window_ID, t.Description, t.Help, t.Name
FROM AD_Window t LEFT JOIN AD_Window_Trl trl ON trl.AD_Window_ID = t.AD_Window_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Window_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Workbench_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Workbench_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Workbench_ID, t.Description, t.Help, t.Name
FROM AD_Workbench t LEFT JOIN AD_Workbench_Trl trl ON trl.AD_Workbench_ID = t.AD_Workbench_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Workbench_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Workflow_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, AD_Workflow_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.AD_Workflow_ID, t.Description, t.Help, t.Name
FROM AD_Workflow t LEFT JOIN AD_Workflow_Trl trl ON trl.AD_Workflow_ID = t.AD_Workflow_ID AND trl.AD_Language='en_US'
WHERE trl.AD_Workflow_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_Charge_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_Charge_ID, Description, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_Charge_ID, t.Description, t.Name
FROM C_Charge t LEFT JOIN C_Charge_Trl trl ON trl.C_Charge_ID = t.C_Charge_ID AND trl.AD_Language='en_US'
WHERE trl.C_Charge_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_Country_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_Country_ID, Description, Name, RegionName)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_Country_ID, t.Description, t.Name, t.RegionName
FROM C_Country t LEFT JOIN C_Country_Trl trl ON trl.C_Country_ID = t.C_Country_ID AND trl.AD_Language='en_US'
WHERE trl.C_Country_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_Currency_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_Currency_ID, CurSymbol, Description)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_Currency_ID, t.CurSymbol, t.Description
FROM C_Currency t LEFT JOIN C_Currency_Trl trl ON trl.C_Currency_ID = t.C_Currency_ID AND trl.AD_Language='en_US'
WHERE trl.C_Currency_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_DocType_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_DocType_ID, DocumentNote, Name, PrintName)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_DocType_ID, t.DocumentNote, t.Name, t.PrintName
FROM C_DocType t LEFT JOIN C_DocType_Trl trl ON trl.C_DocType_ID = t.C_DocType_ID AND trl.AD_Language='en_US'
WHERE trl.C_DocType_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_DunningLevel_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_DunningLevel_ID, Note, NoteHeader, PrintName)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_DunningLevel_ID, t.Note, t.NoteHeader, t.PrintName
FROM C_DunningLevel t LEFT JOIN C_DunningLevel_Trl trl ON trl.C_DunningLevel_ID = t.C_DunningLevel_ID AND trl.AD_Language='en_US'
WHERE trl.C_DunningLevel_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_ElementValue_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_ElementValue_ID, Description, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_ElementValue_ID, t.Description, t.Name
FROM C_ElementValue t LEFT JOIN C_ElementValue_Trl trl ON trl.C_ElementValue_ID = t.C_ElementValue_ID AND trl.AD_Language='en_US'
WHERE trl.C_ElementValue_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_Greeting_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_Greeting_ID, Greeting, Letter_Salutation, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_Greeting_ID, t.Greeting, t.Letter_Salutation, t.Name
FROM C_Greeting t LEFT JOIN C_Greeting_Trl trl ON trl.C_Greeting_ID = t.C_Greeting_ID AND trl.AD_Language='en_US'
WHERE trl.C_Greeting_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_PaymentTerm_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_PaymentTerm_ID, Description, DocumentNote, Name, Name_Invoice)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_PaymentTerm_ID, t.Description, t.DocumentNote, t.Name, t.Name_Invoice
FROM C_PaymentTerm t LEFT JOIN C_PaymentTerm_Trl trl ON trl.C_PaymentTerm_ID = t.C_PaymentTerm_ID AND trl.AD_Language='en_US'
WHERE trl.C_PaymentTerm_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_Tax_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_Tax_ID, Description, Name, TaxIndicator)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_Tax_ID, t.Description, t.Name, t.TaxIndicator
FROM C_Tax t LEFT JOIN C_Tax_Trl trl ON trl.C_Tax_ID = t.C_Tax_ID AND trl.AD_Language='en_US'
WHERE trl.C_Tax_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_TaxCategory_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_TaxCategory_ID, Description, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_TaxCategory_ID, t.Description, t.Name
FROM C_TaxCategory t LEFT JOIN C_TaxCategory_Trl trl ON trl.C_TaxCategory_ID = t.C_TaxCategory_ID AND trl.AD_Language='en_US'
WHERE trl.C_TaxCategory_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_UOM_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, C_UOM_ID, Description, Name, UOMSymbol)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.C_UOM_ID, t.Description, t.Name, t.UOMSymbol
FROM C_UOM t LEFT JOIN C_UOM_Trl trl ON trl.C_UOM_ID = t.C_UOM_ID AND trl.AD_Language='en_US'
WHERE trl.C_UOM_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO CM_Container_Element_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, CM_Container_Element_ID, ContentHTML, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.CM_Container_Element_ID, t.ContentHTML, t.Description, t.Help, t.Name
FROM CM_Container_Element t LEFT JOIN CM_Container_Element_Trl trl ON trl.CM_Container_Element_ID = t.CM_Container_Element_ID AND trl.AD_Language='en_US'
WHERE trl.CM_Container_Element_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO CM_Container_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, CM_Container_ID, ContainerXML, Meta_Description, Meta_Keywords, Name, StructureXML, Title)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.CM_Container_ID, t.ContainerXML, t.Meta_Description, t.Meta_Keywords, t.Name, t.StructureXML, t.Title
FROM CM_Container t LEFT JOIN CM_Container_Trl trl ON trl.CM_Container_ID = t.CM_Container_ID AND trl.AD_Language='en_US'
WHERE trl.CM_Container_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO CM_CStage_Element_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, CM_CStage_Element_ID, ContentHTML, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.CM_CStage_Element_ID, t.ContentHTML, t.Description, t.Help, t.Name
FROM CM_CStage_Element t LEFT JOIN CM_CStage_Element_Trl trl ON trl.CM_CStage_Element_ID = t.CM_CStage_Element_ID AND trl.AD_Language='en_US'
WHERE trl.CM_CStage_Element_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO CM_CStage_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, CM_CStage_ID, ContainerXML, Meta_Description, Meta_Keywords, Name, StructureXML, Title)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.CM_CStage_ID, t.ContainerXML, t.Meta_Description, t.Meta_Keywords, t.Name, t.StructureXML, t.Title
FROM CM_CStage t LEFT JOIN CM_CStage_Trl trl ON trl.CM_CStage_ID = t.CM_CStage_ID AND trl.AD_Language='en_US'
WHERE trl.CM_CStage_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO M_Product_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, M_Product_ID, Description, DocumentNote, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.M_Product_ID, t.Description, t.DocumentNote, t.Name
FROM M_Product t LEFT JOIN M_Product_Trl trl ON trl.M_Product_ID = t.M_Product_ID AND trl.AD_Language='en_US'
WHERE trl.M_Product_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Order_BOM_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Order_BOM_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Order_BOM_ID, t.Description, t.Help, t.Name
FROM PP_Order_BOM t LEFT JOIN PP_Order_BOM_Trl trl ON trl.PP_Order_BOM_ID = t.PP_Order_BOM_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Order_BOM_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Order_BOMLine_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Order_BOMLine_ID, Description, Help)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Order_BOMLine_ID, t.Description, t.Help
FROM PP_Order_BOMLine t LEFT JOIN PP_Order_BOMLine_Trl trl ON trl.PP_Order_BOMLine_ID = t.PP_Order_BOMLine_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Order_BOMLine_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Order_Node_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Order_Node_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Order_Node_ID, t.Description, t.Help, t.Name
FROM PP_Order_Node t LEFT JOIN PP_Order_Node_Trl trl ON trl.PP_Order_Node_ID = t.PP_Order_Node_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Order_Node_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Order_Workflow_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Order_Workflow_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Order_Workflow_ID, t.Description, t.Help, t.Name
FROM PP_Order_Workflow t LEFT JOIN PP_Order_Workflow_Trl trl ON trl.PP_Order_Workflow_ID = t.PP_Order_Workflow_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Order_Workflow_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Product_BOM_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Product_BOM_ID, Description, Help, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Product_BOM_ID, t.Description, t.Help, t.Name
FROM PP_Product_BOM t LEFT JOIN PP_Product_BOM_Trl trl ON trl.PP_Product_BOM_ID = t.PP_Product_BOM_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Product_BOM_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO PP_Product_BOMLine_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, PP_Product_BOMLine_ID, Description, Help)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.PP_Product_BOMLine_ID, t.Description, t.Help
FROM PP_Product_BOMLine t LEFT JOIN PP_Product_BOMLine_Trl trl ON trl.PP_Product_BOMLine_ID = t.PP_Product_BOMLine_ID AND trl.AD_Language='en_US'
WHERE trl.PP_Product_BOMLine_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO R_MailText_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, R_MailText_ID, MailHeader, MailText, MailText2, MailText3, Name)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.R_MailText_ID, t.MailHeader, t.MailText, t.MailText2, t.MailText3, t.Name
FROM R_MailText t LEFT JOIN R_MailText_Trl trl ON trl.R_MailText_ID = t.R_MailText_ID AND trl.AD_Language='en_US'
WHERE trl.R_MailText_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO W_MailMsg_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, W_MailMsg_ID, Message, Message2, Message3, Subject)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.W_MailMsg_ID, t.Message, t.Message2, t.Message3, t.Subject
FROM W_MailMsg t LEFT JOIN W_MailMsg_Trl trl ON trl.W_MailMsg_ID = t.W_MailMsg_ID AND trl.AD_Language='en_US'
WHERE trl.W_MailMsg_ID IS NULL
;
-- 26.02.2016 09:59
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO W_Store_Trl(AD_Language, IsTranslated, AD_Client_ID, AD_Org_ID, Createdby, UpdatedBy, W_Store_ID, EMailFooter, EMailHeader, WebInfo, WebParam1, WebParam2, WebParam3, WebParam4, WebParam5, WebParam6)
SELECT 'en_US', 'N', t.AD_Client_ID, t.AD_Org_ID, 100, 100, t.W_Store_ID, t.EMailFooter, t.EMailHeader, t.WebInfo, t.WebParam1, t.WebParam2, t.WebParam3, t.WebParam4, t.WebParam5, t.WebParam6
FROM W_Store t LEFT JOIN W_Store_Trl trl ON trl.W_Store_ID = t.W_Store_ID AND trl.AD_Language='en_US'
WHERE trl.W_Store_ID IS NULL
; | the_stack |
-- 2017-12-23T10:22:42.927
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window (AD_Client_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsOneInstanceOnly,IsSOTrx,Name,Processing,Updated,UpdatedBy,WindowType,WinHeight,WinWidth) VALUES (0,0,540392,TO_TIMESTAMP('2017-12-23 10:22:42','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','Y','Lager Konten','N',TO_TIMESTAMP('2017-12-23 10:22:42','YYYY-MM-DD HH24:MI:SS'),100,'M',0,0)
;
-- 2017-12-23T10:22:42.933
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Window_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_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=540392 AND NOT EXISTS (SELECT 1 FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID)
;
-- 2017-12-23T10:22:51.813
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET IsSOTrx='N',Updated=TO_TIMESTAMP('2017-12-23 10:22:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540392
;
-- 2017-12-23T10:23:21.737
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridModeOnly,IsInfoTab,IsInsertRecord,IsQueryOnLoad,IsReadOnly,IsRefreshAllOnActivate,IsSearchActive,IsSearchCollapsed,IsSingleRow,IsSortTab,IsTranslationTab,MaxQueryRecords,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,540977,191,540392,TO_TIMESTAMP('2017-12-23 10:23:21','YYYY-MM-DD HH24:MI:SS'),100,'D','N','N','Y','N','Y','N','N','Y','Y','Y','N','N','Y','Y','N','N','N',0,'Lager Konten','N',10,0,TO_TIMESTAMP('2017-12-23 10:23:21','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:21.741
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,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_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=540977 AND NOT EXISTS (SELECT 1 FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID)
;
-- 2017-12-23T10:23:28.081
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1156,561255,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Rules for accounting',22,'D','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar','Y','Y','N','N','N','N','N','Buchführungs-Schema',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.083
-- 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=561255 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-23T10:23:28.112
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1157,561256,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point',22,'D','The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','N','N','N','Lager',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.113
-- 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=561256 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-23T10:23:28.142
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,2443,561257,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.143
-- 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=561257 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-23T10:23:28.170
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,2444,561258,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',22,'D','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','N','N','N','N','N','Sektion',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.171
-- 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=561258 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-23T10:23:28.201
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,2445,561259,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'The record is active in the system',1,'D','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.204
-- 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=561259 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-23T10:23:28.243
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,3386,561260,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Warehouse Inventory Asset Account - Currently not used',22,'D','The Warehouse Inventory Asset Account identifies the account used for recording the value of your inventory. This is the counter account for inventory revaluation differences. The Product Asset account maintains the product asset value.','Y','Y','N','N','N','N','N','(Not Used)',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.246
-- 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=561260 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-23T10:23:28.282
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,3387,561261,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Differenzen im Lagerbestand (erfasst durch Inventur)',22,'D','The Warehouse Differences Account indicates the account used recording differences identified during inventory counts.','Y','Y','N','N','N','N','N','Lager Bestand Korrektur',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.284
-- 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=561261 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-23T10:23:28.316
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,5133,561262,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Lager Wert Korrektur Währungsdifferenz',22,'D','The Inventory Revaluation Account identifies the account used to records changes in inventory value due to currency revaluation.','Y','Y','N','N','N','N','N','Lager Wert Korrektur Währungsdifferenz',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.318
-- 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=561262 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-23T10:23:28.357
-- 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,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,6124,561263,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Korrekturen am Lager Wert (i.d.R. mit Konto Warenbestand identisch)',22,'D','In actual costing systems, this account is used to post Inventory value adjustments. You could set it to the standard Inventory Asset account.','Y','Y','N','N','N','N','N','Lager Wert Korrektur',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.360
-- 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=561263 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-23T10:23:28.396
-- 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,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557269,561264,0,540977,TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','N','N','N','N','N','N','N','M_Warehouse_Acct',TO_TIMESTAMP('2017-12-23 10:23:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:23:28.399
-- 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=561264 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-23T10:24:03.145
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:24:03','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse Accounts' WHERE AD_Window_ID=540392 AND AD_Language='en_US'
;
-- 2017-12-23T10:24:10.583
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:24:10','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse Accounts' WHERE AD_Tab_ID=540977 AND AD_Language='en_US'
;
-- 2017-12-23T10:24:18.443
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET InternalName='_Lagerkonten',Updated=TO_TIMESTAMP('2017-12-23 10:24:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540392
;
-- 2017-12-23T10:25:02.303
-- 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,541002,0,540392,TO_TIMESTAMP('2017-12-23 10:25:02','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.materialtracking.ch.lagerkonf','_Lagerkonten','Y','N','N','N','N','Lager Konten',TO_TIMESTAMP('2017-12-23 10:25:02','YYYY-MM-DD HH24:MI:SS'),100,'Lager Konten')
;
-- 2017-12-23T10:25:02.308
-- 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=541002 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-23T10:25:02.312
-- 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, 541002, 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=541002)
;
-- 2017-12-23T10:25:02.962
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000104 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.965
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000085 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.966
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000086 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.967
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000059 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.968
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000067 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.969
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000077 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:02.970
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000018, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=541002 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.464
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541000 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.464
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=541001 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.465
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=541002 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.465
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=540956 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.466
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540881 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.467
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540882 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.467
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=540842 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.468
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=540843 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.469
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=540810 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.469
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=540812 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.470
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=540813 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:07.470
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=1000072, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540780 AND AD_Tree_ID=10
;
-- 2017-12-23T10:25:29.962
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:25:29','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse Accounts',WEBUI_NameBrowse='Warehouse Accounts' WHERE AD_Menu_ID=541002 AND AD_Language='en_US'
;
-- 2017-12-23T10:30:41.915
-- 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,540977,540575,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100,'main')
;
-- 2017-12-23T10:30:41.916
-- 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=540575 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-23T10:30:41.947
-- 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,540771,540575,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:41.974
-- 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,540772,540575,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100,'Y',20,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.020
-- 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,540771,541325,TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100,'Y','default',10,'primary',TO_TIMESTAMP('2017-12-23 10:30:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.081
-- 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,561255,0,540977,541325,549870,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Rules for accounting','An Accounting Schema defines the rules used in accounting such as costing method, currency and calendar','Y','N','Y','Y','N','Buchführungs-Schema',10,10,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.114
-- 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,561256,0,540977,541325,549871,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point','The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','N','Y','Y','N','Lager',20,20,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.151
-- 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,561257,0,540977,541325,549872,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','Y','Y','N','Mandant',30,30,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.181
-- 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,561258,0,540977,541325,549873,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','N','Y','Y','N','Sektion',40,40,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.206
-- 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,561259,0,540977,541325,549874,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','Y','Y','N','Aktiv',50,50,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.233
-- 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,561260,0,540977,541325,549875,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Warehouse Inventory Asset Account - Currently not used','The Warehouse Inventory Asset Account identifies the account used for recording the value of your inventory. This is the counter account for inventory revaluation differences. The Product Asset account maintains the product asset value.','Y','N','Y','Y','N','(Not Used)',60,60,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.259
-- 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,561261,0,540977,541325,549876,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Differenzen im Lagerbestand (erfasst durch Inventur)','The Warehouse Differences Account indicates the account used recording differences identified during inventory counts.','Y','N','Y','Y','N','Lager Bestand Korrektur',70,70,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.287
-- 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,561262,0,540977,541325,549877,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Lager Wert Korrektur Währungsdifferenz','The Inventory Revaluation Account identifies the account used to records changes in inventory value due to currency revaluation.','Y','N','Y','Y','N','Lager Wert Korrektur Währungsdifferenz',80,80,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:30:42.311
-- 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,561263,0,540977,541325,549878,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100,'Konto für Korrekturen am Lager Wert (i.d.R. mit Konto Warenbestand identisch)','In actual costing systems, this account is used to post Inventory value adjustments. You could set it to the standard Inventory Asset account.','Y','N','Y','Y','N','Lager Wert Korrektur',90,90,0,TO_TIMESTAMP('2017-12-23 10:30:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:32:03.754
-- 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,540772,541326,TO_TIMESTAMP('2017-12-23 10:32:03','YYYY-MM-DD HH24:MI:SS'),100,'Y','flags',10,TO_TIMESTAMP('2017-12-23 10:32:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:32:07.601
-- 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,540772,541327,TO_TIMESTAMP('2017-12-23 10:32:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','org',20,TO_TIMESTAMP('2017-12-23 10:32:07','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-12-23T10:32:23.584
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541327, SeqNo=10,Updated=TO_TIMESTAMP('2017-12-23 10:32:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549873
;
-- 2017-12-23T10:32:33.002
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541327, SeqNo=20,Updated=TO_TIMESTAMP('2017-12-23 10:32:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549872
;
-- 2017-12-23T10:32:40.255
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541326, SeqNo=10,Updated=TO_TIMESTAMP('2017-12-23 10:32:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549874
;
-- 2017-12-23T10:33:33.769
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=549875
;
-- 2017-12-23T10:35:22.631
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549872
;
-- 2017-12-23T10:35:22.632
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549871
;
-- 2017-12-23T10:35:22.634
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549870
;
-- 2017-12-23T10:35:22.635
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549876
;
-- 2017-12-23T10:35:22.636
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549877
;
-- 2017-12-23T10:35:22.637
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549878
;
-- 2017-12-23T10:35:22.638
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=60,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549874
;
-- 2017-12-23T10:35:22.639
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-12-23 10:35:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549873
;
-- 2017-12-23T10:35:33.436
-- 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-23 10:35:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549871
;
-- 2017-12-23T10:35:33.437
-- 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-23 10:35:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549870
;
-- 2017-12-23T10:35:33.439
-- 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-23 10:35:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549874
;
-- 2017-12-23T10:35:33.441
-- 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-23 10:35:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549873
;
-- 2017-12-23T10:36:55.077
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:36:55','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Accounting Schema' WHERE AD_Field_ID=561255 AND AD_Language='en_US'
;
-- 2017-12-23T10:37:08.998
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:37:08','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse' WHERE AD_Field_ID=561256 AND AD_Language='en_US'
;
-- 2017-12-23T10:37:20.031
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:37:20','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client' WHERE AD_Field_ID=561257 AND AD_Language='en_US'
;
-- 2017-12-23T10:37:32.727
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:37:32','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=561258 AND AD_Language='en_US'
;
-- 2017-12-23T10:37:41.814
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:37:41','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Active' WHERE AD_Field_ID=561259 AND AD_Language='en_US'
;
-- 2017-12-23T10:38:06.232
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:38:06','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Differences Account',Description='' WHERE AD_Field_ID=561261 AND AD_Language='en_US'
;
-- 2017-12-23T10:38:28.305
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:38:28','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Revaluation Account',Description='' WHERE AD_Field_ID=561262 AND AD_Language='en_US'
;
-- 2017-12-23T10:38:59.152
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:38:59','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Adjust Value Account',Description='' WHERE AD_Field_ID=561263 AND AD_Language='en_US'
;
-- 2017-12-23T10:39:24.465
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-23 10:39:24','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Warehouse Accounts' WHERE AD_Field_ID=561264 AND AD_Language='en_US'
;
-- 2017-12-23T10:41:26.435
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AD_Window_ID=540391,Updated=TO_TIMESTAMP('2017-12-23 10:41:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=191
;
-- 2017-12-23T10:44:34.029
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Section SET IsActive='N',Updated=TO_TIMESTAMP('2017-12-23 10:44:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Section_ID=540495
;
-- 2017-12-23T10:45:52.894
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548741
;
-- 2017-12-23T10:45:52.932
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548738
;
-- 2017-12-23T10:45:52.960
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548736
;
-- 2017-12-23T10:45:52.976
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548739
;
-- 2017-12-23T10:45:52.991
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548740
;
-- 2017-12-23T10:45:53.005
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548742
;
-- 2017-12-23T10:45:53.021
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548743
;
-- 2017-12-23T10:45:53.034
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548744
;
-- 2017-12-23T10:45:53.051
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=548737
;
-- 2017-12-23T10:45:56.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_ElementGroup WHERE AD_UI_ElementGroup_ID=541167
;
-- 2017-12-23T10:46:09.067
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Section SET IsActive='Y',Updated=TO_TIMESTAMP('2017-12-23 10:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Section_ID=540495
;
-- 2017-12-23T10:46:12.610
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Column WHERE AD_UI_Column_ID=540665
;
-- 2017-12-23T10:46:16.577
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Section_Trl WHERE AD_UI_Section_ID=540495
;
-- 2017-12-23T10:46:16.581
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Section WHERE AD_UI_Section_ID=540495
;
-- 2017-12-23T10:47:29.475
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET TabLevel=2,Updated=TO_TIMESTAMP('2017-12-23 10:47:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=209
;
-- 2017-12-23T10:50:00.595
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2017-12-23 10:50:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=209
;
-- 2017-12-23T10:50:39.098
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AD_Window_ID=540392,Updated=TO_TIMESTAMP('2017-12-23 10:50:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=191
; | the_stack |
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
-- TABLE: EVENTS
CREATE TABLE IF NOT EXISTS `bx_events_data` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`author` int(10) unsigned NOT NULL,
`added` int(11) NOT NULL,
`changed` int(11) NOT NULL,
`picture` int(11) NOT NULL,
`cover` int(11) NOT NULL,
`event_name` varchar(255) NOT NULL,
`event_cat` int(11) NOT NULL,
`event_desc` text NOT NULL,
`date_start` int(11) DEFAULT NULL,
`date_end` int(11) DEFAULT NULL,
`timezone` varchar(255) DEFAULT 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',
`join_confirmation` tinyint(4) NOT NULL DEFAULT '1',
`reminder` int(11) NOT NULL DEFAULT '1',
`allow_view_to` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `search_fields` (`event_name`, `event_desc`)
);
-- TABLE: REPEATING INTERVALS
CREATE TABLE IF NOT EXISTS `bx_events_intervals` (
`interval_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`event_id` int(10) unsigned NOT NULL,
`repeat_year` int(11) NOT NULL,
`repeat_month` int(11) NOT NULL,
`repeat_week_of_month` int(11) NOT NULL,
`repeat_day_of_month` int(11) NOT NULL,
`repeat_day_of_week` int(11) NOT NULL,
`repeat_stop` int(10) unsigned NOT NULL,
PRIMARY KEY (`interval_id`),
KEY `event_id` (`event_id`)
) AUTO_INCREMENT=1000;
-- TABLE: STORAGES & TRANSCODERS
CREATE TABLE `bx_events_pics` (
`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 `bx_events_pics_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_events_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: VIEWS
CREATE TABLE `bx_events_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: VOTES
CREATE TABLE IF NOT EXISTS `bx_events_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_events_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: REPORTS
CREATE TABLE IF NOT EXISTS `bx_events_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_events_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: metas
CREATE TABLE IF NOT EXISTS `bx_events_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 IF NOT EXISTS `bx_events_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: fans
CREATE TABLE IF NOT EXISTS `bx_events_fans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`initiator` int(11) NOT NULL,
`content` int(11) NOT NULL,
`mutual` tinyint(4) NOT NULL,
`added` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `initiator` (`initiator`,`content`),
KEY `content` (`content`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- TABLE: admins
CREATE TABLE IF NOT EXISTS `bx_events_admins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_profile_id` int(10) unsigned NOT NULL,
`fan_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `admin` (`group_profile_id`,`fan_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- TABLE: favorites
CREATE TABLE `bx_events_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_events_pics', @sStorageEngine, '', 360, 2592000, 3, 'bx_events_pics', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
('bx_events_pics_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_events_pics_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_events_icon', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_thumb', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_avatar', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_picture', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_cover', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_cover_thumb', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0'),
('bx_events_gallery', 'bx_events_pics_resized', 'Storage', 'a:1:{s:6:"object";s:14:"bx_events_pics";}', 'no', '1', '2592000', '0');
INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
('bx_events_icon', 'Resize', 'a:3:{s:1:"w";s:2:"32";s:1:"h";s:2:"32";s:13:"square_resize";s:1:"1";}', '0'),
('bx_events_thumb', 'Resize', 'a:3:{s:1:"w";s:2:"48";s:1:"h";s:2:"48";s:13:"square_resize";s:1:"1";}', '0'),
('bx_events_avatar', 'Resize', 'a:3:{s:1:"w";s:2:"96";s:1:"h";s:2:"96";s:13:"square_resize";s:1:"1";}', '0'),
('bx_events_picture', 'Resize', 'a:3:{s:1:"w";s:4:"1024";s:1:"h";s:4:"1024";s:13:"square_resize";s:1:"0";}', '0'),
('bx_events_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
('bx_events_cover_thumb', 'Resize', 'a:3:{s:1:"w";s:2:"48";s:1:"h";s:2:"48";s:13:"square_resize";s:1:"1";}', '0'),
('bx_events_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '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_event', 'bx_events', '_bx_events_form_profile', '', 'a:1:{s:7:\"enctype\";s:19:\"multipart/form-data\";}', 'bx_events_data', 'id', '', '', 'do_submit', '', 0, 1, 'BxEventsFormEntry', 'modules/boonex/events/classes/BxEventsFormEntry.php');
INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
('bx_event', 'bx_event_add', 'bx_events', 0, '_bx_events_form_profile_display_add'),
('bx_event', 'bx_event_delete', 'bx_events', 0, '_bx_events_form_profile_display_delete'),
('bx_event', 'bx_event_edit', 'bx_events', 0, '_bx_events_form_profile_display_edit'),
('bx_event', 'bx_event_edit_cover', 'bx_events', 0, '_bx_events_form_profile_display_edit_cover'),
('bx_event', 'bx_event_view', 'bx_events', 1, '_bx_events_form_profile_display_view'),
('bx_event', 'bx_event_view_full', 'bx_events', 1, '_bx_events_form_profile_display_view_full'),
('bx_event', 'bx_event_invite', 'bx_events', 0, '_bx_events_form_profile_display_invite');
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_event', 'bx_events', 'allow_view_to', 3, '', 0, 'custom', '_bx_events_form_profile_input_sys_allow_view_to', '_bx_events_form_profile_input_allow_view_to', '_bx_events_form_profile_input_allow_view_to_desc', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_event', 'bx_events', 'cover', 'a:1:{i:0;s:20:\"bx_events_cover_crop\";}', 'a:1:{s:20:\"bx_events_cover_crop\";s:24:\"_sys_uploader_crop_title\";}', 0, 'files', '_bx_events_form_profile_input_sys_cover', '_bx_events_form_profile_input_cover', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_event', 'bx_events', 'date_end', 0, '', 0, 'datetime', '_bx_events_form_profile_input_sys_date_end', '_bx_events_form_profile_input_date_end', '', 0, 0, 0, '', '', '', '', '', '_bx_events_form_profile_input_date_end_err', 'DateTimeUtc', '', 1, 0),
('bx_event', 'bx_events', 'date_start', 0, '', 0, 'datetime', '_bx_events_form_profile_input_sys_date_start', '_bx_events_form_profile_input_date_start', '', 0, 0, 0, '', '', '', '', '', '_bx_events_form_profile_input_date_start_err', 'DateTimeUtc', '', 1, 0),
('bx_event', 'bx_events', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_events_form_profile_input_sys_delete_confirm', '_bx_events_form_profile_input_delete_confirm', '_bx_events_form_profile_input_delete_confirm_info', 1, 0, 0, '', '', '', 'avail', '', '_bx_events_form_profile_input_delete_confirm_error', '', '', 1, 0),
('bx_event', 'bx_events', 'do_submit', '_sys_form_account_input_submit', '', 0, 'submit', '_bx_events_form_profile_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_event', 'bx_events', 'event_cat', '', '#!bx_events_cats', 0, 'select', '_bx_events_form_profile_input_sys_event_cat', '_bx_events_form_profile_input_event_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_events_form_profile_input_event_cat_err', 'Xss', '', 1, 1),
('bx_event', 'bx_events', 'reminder', '', '#!bx_events_reminder', 0, 'select', '_bx_events_form_profile_input_sys_reminder', '_bx_events_form_profile_input_reminder', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 1),
('bx_event', 'bx_events', 'event_desc', '', '', 0, 'textarea', '_bx_events_form_profile_input_sys_event_desc', '_bx_events_form_profile_input_event_desc', '', 0, 0, 2, '', '', '', '', '', '', 'XssHtml', '', 1, 1),
('bx_event', 'bx_events', 'event_name', '', '', 0, 'text', '_bx_events_form_profile_input_sys_event_name', '_bx_events_form_profile_input_event_name', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_events_form_profile_input_event_name_err', 'Xss', '', 1, 0),
('bx_event', 'bx_events', 'initial_members', '', '', 0, 'custom', '_bx_events_form_profile_input_sys_initial_members', '_bx_events_form_profile_input_initial_members', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1),
('bx_event', 'bx_events', 'join_confirmation', 1, '', 1, 'switcher', '_bx_events_form_profile_input_sys_join_confirm', '_bx_events_form_profile_input_join_confirm', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
('bx_event', 'bx_events', 'picture', 'a:1:{i:0;s:22:\"bx_events_picture_crop\";}', 'a:1:{s:22:\"bx_events_picture_crop\";s:24:\"_sys_uploader_crop_title\";}', 0, 'files', '_bx_events_form_profile_input_sys_picture', '_bx_events_form_profile_input_picture', '', 0, 0, 0, '', '', '', '', '', '_bx_events_form_profile_input_picture_err', '', '', 1, 0),
('bx_event', 'bx_events', 'reoccurring', '', '', 0, 'custom', '_bx_events_form_profile_input_sys_reoccurring', '_bx_events_form_profile_input_reoccurring', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 1),
('bx_event', 'bx_events', 'time', '', '', 0, 'custom', '_bx_events_form_profile_input_sys_time', '_bx_events_form_profile_input_time', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_event', 'bx_events', 'timezone', 'UTC', '', 0, 'select', '_bx_events_form_profile_input_sys_timezone', '_bx_events_form_profile_input_timezone', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 1, 0),
('bx_event', 'bx_events', 'location', '', '', 0, 'location', '_sys_form_input_sys_location', '_sys_form_input_location', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0);
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
('bx_event_add', 'time', 2147483647, 0, 1),
('bx_event_add', 'delete_confirm', 2147483647, 0, 2),
('bx_event_add', 'cover', 2147483647, 0, 3),
('bx_event_add', 'initial_members', 2147483647, 1, 4),
('bx_event_add', 'picture', 2147483647, 1, 5),
('bx_event_add', 'event_name', 2147483647, 1, 6),
('bx_event_add', 'event_cat', 2147483647, 1, 7),
('bx_event_add', 'event_desc', 2147483647, 1, 8),
('bx_event_add', 'location', 2147483647, 1, 9),
('bx_event_add', 'date_start', 2147483647, 1, 10),
('bx_event_add', 'date_end', 2147483647, 1, 11),
('bx_event_add', 'timezone', 2147483647, 1, 12),
('bx_event_add', 'reoccurring', 2147483647, 1, 13),
('bx_event_add', 'join_confirmation', 2147483647, 1, 14),
('bx_event_add', 'reminder', 2147483647, 1, 15),
('bx_event_add', 'allow_view_to', 2147483647, 1, 16),
('bx_event_add', 'do_submit', 2147483647, 1, 17),
('bx_event_invite', 'initial_members', 2147483647, 1, 1),
('bx_event_invite', 'do_submit', 2147483647, 1, 2),
('bx_event_delete', 'cover', 2147483647, 0, 0),
('bx_event_delete', 'picture', 2147483647, 0, 0),
('bx_event_delete', 'delete_confirm', 2147483647, 1, 0),
('bx_event_delete', 'do_submit', 2147483647, 1, 1),
('bx_event_delete', 'event_name', 2147483647, 0, 2),
('bx_event_delete', 'event_cat', 2147483647, 0, 3),
('bx_event_edit', 'time', 2147483647, 0, 1),
('bx_event_edit', 'initial_members', 2147483647, 0, 2),
('bx_event_edit', 'delete_confirm', 2147483647, 0, 3),
('bx_event_edit', 'cover', 2147483647, 0, 4),
('bx_event_edit', 'picture', 2147483647, 1, 5),
('bx_event_edit', 'event_name', 2147483647, 1, 6),
('bx_event_edit', 'event_cat', 2147483647, 1, 7),
('bx_event_edit', 'event_desc', 2147483647, 1, 8),
('bx_event_edit', 'location', 2147483647, 1, 9),
('bx_event_edit', 'date_start', 2147483647, 1, 10),
('bx_event_edit', 'date_end', 2147483647, 1, 11),
('bx_event_edit', 'timezone', 2147483647, 1, 12),
('bx_event_edit', 'reoccurring', 2147483647, 1, 13),
('bx_event_edit', 'join_confirmation', 2147483647, 1, 14),
('bx_event_edit', 'reminder', 2147483647, 1, 15),
('bx_event_edit', 'allow_view_to', 2147483647, 1, 16),
('bx_event_edit', 'do_submit', 2147483647, 1, 17),
('bx_event_edit_cover', 'allow_view_to', 2147483647, 0, 1),
('bx_event_edit_cover', 'time', 2147483647, 0, 2),
('bx_event_edit_cover', 'reoccurring', 2147483647, 0, 3),
('bx_event_edit_cover', 'join_confirmation', 2147483647, 0, 4),
('bx_event_edit_cover', 'initial_members', 2147483647, 0, 5),
('bx_event_edit_cover', 'timezone', 2147483647, 0, 6),
('bx_event_edit_cover', 'event_desc', 2147483647, 0, 7),
('bx_event_edit_cover', 'date_start', 2147483647, 0, 8),
('bx_event_edit_cover', 'date_end', 2147483647, 0, 9),
('bx_event_edit_cover', 'delete_confirm', 2147483647, 0, 10),
('bx_event_edit_cover', 'event_name', 2147483647, 0, 11),
('bx_event_edit_cover', 'location', 2147483647, 0, 12),
('bx_event_edit_cover', 'picture', 2147483647, 0, 13),
('bx_event_edit_cover', 'event_cat', 2147483647, 0, 14),
('bx_event_edit_cover', 'cover', 2147483647, 1, 15),
('bx_event_edit_cover', 'do_submit', 2147483647, 1, 16),
('bx_event_view', 'allow_view_to', 2147483647, 0, 1),
('bx_event_view', 'reoccurring', 2147483647, 0, 2),
('bx_event_view', 'join_confirmation', 2147483647, 0, 3),
('bx_event_view', 'initial_members', 2147483647, 0, 4),
('bx_event_view', 'delete_confirm', 2147483647, 0, 5),
('bx_event_view', 'picture', 2147483647, 0, 6),
('bx_event_view', 'cover', 2147483647, 0, 7),
('bx_event_view', 'do_submit', 2147483647, 0, 8),
('bx_event_view', 'event_name', 2147483647, 1, 9),
('bx_event_view', 'event_cat', 2147483647, 1, 10),
('bx_event_view', 'date_start', 2147483647, 1, 11),
('bx_event_view', 'date_end', 2147483647, 1, 12),
('bx_event_view', 'time', 2147483647, 1, 13),
('bx_event_view', 'timezone', 0, 1, 14),
('bx_event_view', 'event_desc', 2147483647, 0, 15),
('bx_event_view_full', 'allow_view_to', 2147483647, 0, 1),
('bx_event_view_full', 'reoccurring', 2147483647, 0, 2),
('bx_event_view_full', 'picture', 2147483647, 0, 3),
('bx_event_view_full', 'join_confirmation', 2147483647, 0, 4),
('bx_event_view_full', 'initial_members', 2147483647, 0, 5),
('bx_event_view_full', 'do_submit', 2147483647, 0, 6),
('bx_event_view_full', 'delete_confirm', 2147483647, 0, 7),
('bx_event_view_full', 'cover', 2147483647, 0, 8),
('bx_event_view_full', 'event_name', 2147483647, 1, 9),
('bx_event_view_full', 'event_cat', 2147483647, 1, 10),
('bx_event_view_full', 'date_start', 2147483647, 1, 11),
('bx_event_view_full', 'date_end', 2147483647, 1, 12),
('bx_event_view_full', 'time', 2147483647, 1, 13),
('bx_event_view_full', 'timezone', 0, 1, 14),
('bx_event_view_full', 'event_desc', 2147483647, 0, 15);
-- PRE-VALUES
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_reminder', '_bx_events_pre_lists_reminder', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_reminder', '0', 0, '_bx_events_reminder_none', ''),
('bx_events_reminder', '1', 1, '_bx_events_reminder_1h', ''),
('bx_events_reminder', '2', 2, '_bx_events_reminder_2h', ''),
('bx_events_reminder', '3', 3, '_bx_events_reminder_3h', ''),
('bx_events_reminder', '6', 4, '_bx_events_reminder_6h', ''),
('bx_events_reminder', '12', 5, '_bx_events_reminder_12h', ''),
('bx_events_reminder', '24', 6, '_bx_events_reminder_24h', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_cats', '_bx_events_pre_lists_cats', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_cats', '', 0, '_sys_please_select', ''),
('bx_events_cats', '1', 1, '_bx_events_cat_Conference', ''),
('bx_events_cats', '2', 2, '_bx_events_cat_Festival', ''),
('bx_events_cats', '3', 3, '_bx_events_cat_Fundraiser', ''),
('bx_events_cats', '4', 4, '_bx_events_cat_Lecture', ''),
('bx_events_cats', '5', 5, '_bx_events_cat_Market', ''),
('bx_events_cats', '6', 6, '_bx_events_cat_Meal', ''),
('bx_events_cats', '7', 7, '_bx_events_cat_Social_Mixer', ''),
('bx_events_cats', '8', 8, '_bx_events_cat_Tour', ''),
('bx_events_cats', '9', 9, '_bx_events_cat_Volunteering', ''),
('bx_events_cats', '10', 10, '_bx_events_cat_Workshop', ''),
('bx_events_cats', '11', 11, '_bx_events_cat_Other', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_repeat_year', '_bx_events_pre_lists_repeat_year', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_repeat_year', '1', 1, '_bx_events_cat_repeat_year_every_year', ''),
('bx_events_repeat_year', '2', 2, '_bx_events_cat_repeat_year_every_2_years', ''),
('bx_events_repeat_year', '3', 3, '_bx_events_cat_repeat_year_every_3_years', ''),
('bx_events_repeat_year', '4', 4, '_bx_events_cat_repeat_year_every_4_years', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_repeat_month', '_bx_events_pre_lists_repeat_month', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_repeat_month', '0', 0, '_bx_events_cat_repeat_month_every_month', ''),
('bx_events_repeat_month', '1', 1, '_bx_events_cat_repeat_month_jan', ''),
('bx_events_repeat_month', '2', 2, '_bx_events_cat_repeat_month_feb', ''),
('bx_events_repeat_month', '3', 3, '_bx_events_cat_repeat_month_mar', ''),
('bx_events_repeat_month', '4', 4, '_bx_events_cat_repeat_month_apr', ''),
('bx_events_repeat_month', '5', 5, '_bx_events_cat_repeat_month_may', ''),
('bx_events_repeat_month', '6', 6, '_bx_events_cat_repeat_month_jun', ''),
('bx_events_repeat_month', '7', 7, '_bx_events_cat_repeat_month_jul', ''),
('bx_events_repeat_month', '8', 8, '_bx_events_cat_repeat_month_aug', ''),
('bx_events_repeat_month', '9', 9, '_bx_events_cat_repeat_month_sep', ''),
('bx_events_repeat_month', '10', 10, '_bx_events_cat_repeat_month_oct', ''),
('bx_events_repeat_month', '11', 11, '_bx_events_cat_repeat_month_nov', ''),
('bx_events_repeat_month', '12', 12, '_bx_events_cat_repeat_month_dec', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_repeat_week_of_month', '_bx_events_pre_lists_repeat_week_of_month', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_repeat_week_of_month', '0', 0, '_bx_events_cat_repeat_week_of_month_every_week', ''),
('bx_events_repeat_week_of_month', '1', 1, '_bx_events_cat_repeat_week_of_month_first_week_of_month', ''),
('bx_events_repeat_week_of_month', '2', 2, '_bx_events_cat_repeat_week_of_month_second_week_of_month', ''),
('bx_events_repeat_week_of_month', '3', 3, '_bx_events_cat_repeat_week_of_month_third_week_of_month', ''),
('bx_events_repeat_week_of_month', '4', 4, '_bx_events_cat_repeat_week_of_month_fourth_week_of_month', ''),
('bx_events_repeat_week_of_month', '5', 5, '_bx_events_cat_repeat_week_of_month_fifth_week_of_month', ''),
('bx_events_repeat_week_of_month', '6', 6, '_bx_events_cat_repeat_week_of_month_sixth_week_of_month', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_repeat_day_of_month', '_bx_events_pre_lists_repeat_day_of_month', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_repeat_day_of_month', '0', 0, '_bx_events_cat_repeat_day_of_month_every_day', ''),
('bx_events_repeat_day_of_month', '1', 1, '1', ''),
('bx_events_repeat_day_of_month', '2', 2, '2', ''),
('bx_events_repeat_day_of_month', '3', 3, '3', ''),
('bx_events_repeat_day_of_month', '4', 4, '4', ''),
('bx_events_repeat_day_of_month', '5', 5, '5', ''),
('bx_events_repeat_day_of_month', '6', 6, '6', ''),
('bx_events_repeat_day_of_month', '7', 7, '7', ''),
('bx_events_repeat_day_of_month', '8', 8, '8', ''),
('bx_events_repeat_day_of_month', '9', 9, '9', ''),
('bx_events_repeat_day_of_month', '10', 10, '10', ''),
('bx_events_repeat_day_of_month', '11', 11, '11', ''),
('bx_events_repeat_day_of_month', '12', 12, '12', ''),
('bx_events_repeat_day_of_month', '13', 13, '13', ''),
('bx_events_repeat_day_of_month', '14', 14, '14', ''),
('bx_events_repeat_day_of_month', '15', 15, '15', ''),
('bx_events_repeat_day_of_month', '16', 16, '16', ''),
('bx_events_repeat_day_of_month', '17', 17, '17', ''),
('bx_events_repeat_day_of_month', '18', 18, '18', ''),
('bx_events_repeat_day_of_month', '19', 19, '19', ''),
('bx_events_repeat_day_of_month', '20', 20, '20', ''),
('bx_events_repeat_day_of_month', '21', 21, '21', ''),
('bx_events_repeat_day_of_month', '22', 22, '22', ''),
('bx_events_repeat_day_of_month', '23', 23, '23', ''),
('bx_events_repeat_day_of_month', '24', 24, '24', ''),
('bx_events_repeat_day_of_month', '25', 25, '25', ''),
('bx_events_repeat_day_of_month', '26', 26, '26', ''),
('bx_events_repeat_day_of_month', '27', 27, '27', ''),
('bx_events_repeat_day_of_month', '28', 28, '28', ''),
('bx_events_repeat_day_of_month', '29', 29, '29', ''),
('bx_events_repeat_day_of_month', '30', 30, '30', ''),
('bx_events_repeat_day_of_month', '31', 31, '31', '');
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
('bx_events_repeat_day_of_week', '_bx_events_pre_lists_repeat_day_of_week', 'bx_events', '0');
INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
('bx_events_repeat_day_of_week', '0', 0, '_bx_events_cat_repeat_day_of_week_every_day', ''),
('bx_events_repeat_day_of_week', '1', 1, '_bx_events_cat_repeat_day_of_week_mon', ''),
('bx_events_repeat_day_of_week', '2', 2, '_bx_events_cat_repeat_day_of_week_tue', ''),
('bx_events_repeat_day_of_week', '3', 3, '_bx_events_cat_repeat_day_of_week_wed', ''),
('bx_events_repeat_day_of_week', '4', 4, '_bx_events_cat_repeat_day_of_week_thu', ''),
('bx_events_repeat_day_of_week', '5', 5, '_bx_events_cat_repeat_day_of_week_fri', ''),
('bx_events_repeat_day_of_week', '6', 6, '_bx_events_cat_repeat_day_of_week_sat', ''),
('bx_events_repeat_day_of_week', '7', 7, '_bx_events_cat_repeat_day_of_week_sun', '');
-- 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_events', '_bx_events', 'bx_events', 'added', 'edited', 'deleted', '', ''),
('bx_events_cmts', '_bx_events_cmts', 'bx_events', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES
('bx_events', 'bx_events_administration', 'td`.`id', '', ''),
('bx_events', 'bx_events_common', 'td`.`id', '', '');
-- SEARCH EXTENDED
INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
('bx_events', 'bx_events', 'bx_events', '_bx_events_search_extended', 1, '', ''),
('bx_events_cmts', 'bx_events_cmts', 'bx_events', '_bx_events_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
-- STUDIO PAGE & WIDGET
INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
(3, 'bx_events', '_bx_events', '_bx_events', 'bx_events@modules/boonex/events/|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_events', '{url_studio}module.php?name=bx_events', '', 'bx_events@modules/boonex/events/|std-icon.svg', '_bx_events', '', '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 |
-- 14.11.2016 18:05
-- 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,JasperReport_Tabular,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp
-- ,Statistic_Count,Statistic_Seconds
,Type,Updated,UpdatedBy,Value)
VALUES ('3',0,0,540743,'Y','org.compiere.report.ReportStarter','N',TO_TIMESTAMP('2016-11-14 18:05:16','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Y','Y','N','N','N','Y','N','Y','@PREFIX@de/metas/reports/qty_statistics_kg_week/report.jasper','@PREFIX@de/metas/reports/qty_statistics_kg_week/report_tabular.jasper',0,'Statistik nach Mengen Gesamt Woche','N','Y'
-- ,0,0
,'Java',TO_TIMESTAMP('2016-11-14 18:05:16','YYYY-MM-DD HH24:MI:SS'),100,'Statistik nach Mengen Gesamt Woche (Jasper)')
;
-- 14.11.2016 18:05
-- 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=540743 AND NOT EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;
-- 14.11.2016 18:05
-- 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,Help,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,ReadOnlyLogic,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,540743,541086,19,'AD_Org_ID',TO_TIMESTAMP('2016-11-14 18:05:50','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Org_ID@','Organisatorische Einheit des Mandanten','de.metas.fresh',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','1=1',10,TO_TIMESTAMP('2016-11-14 18:05:50','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:05
-- 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=541086 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:06
-- 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,223,0,540743,541087,19,'C_Year_ID',TO_TIMESTAMP('2016-11-14 18:06:42','YYYY-MM-DD HH24:MI:SS'),100,'Kalenderjahr','de.metas.fresh',0,'"Jahr" bezeichnet ein eindeutiges Jahr eines Kalenders.','Y','N','Y','N','Y','N','Jahr',20,TO_TIMESTAMP('2016-11-14 18:06:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:06
-- 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=541087 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:07
-- 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,ValueMax,ValueMin) VALUES (0,543077,0,540743,541088,11,'week',TO_TIMESTAMP('2016-11-14 18:07:03','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh',0,'Y','N','Y','N','Y','N','Week',30,TO_TIMESTAMP('2016-11-14 18:07:03','YYYY-MM-DD HH24:MI:SS'),100,'53','1')
;
-- 14.11.2016 18:07
-- 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=541088 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:07
-- 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,1106,0,540743,541089,20,'IsSOTrx',TO_TIMESTAMP('2016-11-14 18:07:25','YYYY-MM-DD HH24:MI:SS'),100,'This is a Sales Transaction','de.metas.fresh',0,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','Y','N','N','N','Verkaufstransaktion',40,TO_TIMESTAMP('2016-11-14 18:07:25','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:07
-- 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=541089 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:07
-- 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,540743,541090,30,'C_BPartner_ID',TO_TIMESTAMP('2016-11-14 18:07:41','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner','de.metas.fresh',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',50,TO_TIMESTAMP('2016-11-14 18:07:41','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:07
-- 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=541090 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=541090
;
-- 14.11.2016 18:08
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=541090
;
-- 14.11.2016 18:08
-- 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,1005,0,540743,541091,19,'C_Activity_ID',TO_TIMESTAMP('2016-11-14 18:08:54','YYYY-MM-DD HH24:MI:SS'),100,'Kostenstelle','de.metas.fresh',0,'Erfassung der zugehörigen Kostenstelle','Y','N','Y','N','N','N','Kostenstelle',50,TO_TIMESTAMP('2016-11-14 18:08:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:08
-- 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=541091 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:09
-- 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,454,0,540743,541092,30,'M_Product_ID',TO_TIMESTAMP('2016-11-14 18:09:06','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel','de.metas.fresh',0,'Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','Y','Y','N','N','N','Produkt',60,TO_TIMESTAMP('2016-11-14 18:09:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:09
-- 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=541092 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:09
-- 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,453,0,540743,541093,19,'M_Product_Category_ID',TO_TIMESTAMP('2016-11-14 18:09:27','YYYY-MM-DD HH24:MI:SS'),100,'Kategorie eines Produktes','de.metas.fresh',0,'Identifiziert die Kategorie zu der ein Produkt gehört. Produktkategorien werden für Preisfindung und Auswahl verwendet.','Y','N','Y','N','N','N','Produkt-Kategorie',70,TO_TIMESTAMP('2016-11-14 18:09:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:09
-- 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=541093 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:09
-- 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,2019,0,540743,541094,35,'M_AttributeSetInstance_ID',TO_TIMESTAMP('2016-11-14 18:09:42','YYYY-MM-DD HH24:MI:SS'),100,'Instanz des Merkmals-Satzes zum Produkt','de.metas.fresh',0,'The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','Y','N','N','N','Ausprägung Merkmals-Satz',80,TO_TIMESTAMP('2016-11-14 18:09:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:09
-- 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=541094 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:10
-- 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,DefaultValue,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540743,541095,20,'convert_to_kg',TO_TIMESTAMP('2016-11-14 18:10:14','YYYY-MM-DD HH24:MI:SS'),100,'''Y''','de.metas.fresh',0,'Y','N','Y','N','N','N','Nach kg umrechnen',90,TO_TIMESTAMP('2016-11-14 18:10:14','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:10
-- 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=541095 AND NOT EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;
-- 14.11.2016 18:11
-- 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,540742,0,540743,TO_TIMESTAMP('2016-11-14 18:11:02','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.fresh','Statistik nach Mengen Gesamt Woche (Jasper)','Y','N','N','N','N','Statistik nach Mengen Gesamt Woche',TO_TIMESTAMP('2016-11-14 18:11:02','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 14.11.2016 18:11
-- 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=540742 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- 14.11.2016 18:11
-- 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, 540742, 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=540742)
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=53035 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=1, Updated=now(), UpdatedBy=100 WHERE Node_ID=53036 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=2, Updated=now(), UpdatedBy=100 WHERE Node_ID=53037 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=3, Updated=now(), UpdatedBy=100 WHERE Node_ID=53038 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=4, Updated=now(), UpdatedBy=100 WHERE Node_ID=540539 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=5, Updated=now(), UpdatedBy=100 WHERE Node_ID=540593 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=6, Updated=now(), UpdatedBy=100 WHERE Node_ID=53039 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=7, Updated=now(), UpdatedBy=100 WHERE Node_ID=53040 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=8, Updated=now(), UpdatedBy=100 WHERE Node_ID=53224 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=9, Updated=now(), UpdatedBy=100 WHERE Node_ID=53041 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=10, Updated=now(), UpdatedBy=100 WHERE Node_ID=53042 AND AD_Tree_ID=10
;
-- 14.11.2016 18:11
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_TreeNodeMM SET Parent_ID=53034, SeqNo=11, Updated=now(), UpdatedBy=100 WHERE Node_ID=540742 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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
;
-- 15.11.2016 18:05
-- 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=540616 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540681 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540617 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540742 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540618 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540619 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540632 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540635 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540698 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540637 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540638 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540648 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540674 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540709 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540708 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540679 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540678 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540684 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540686 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540706 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540701 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540712 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540722 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540723 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540725 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540739 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540740 AND AD_Tree_ID=10
;
-- 15.11.2016 18:05
-- 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=540741 AND AD_Tree_ID=10
; | the_stack |
-- ----------------------------
-- 1、菜单权限表 mate_sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_menu`;
CREATE TABLE `mate_sys_menu` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`name` varchar(32) DEFAULT NULL COMMENT '菜单标题',
`permission` varchar(32) DEFAULT NULL COMMENT '菜单权限',
`path` varchar(128) DEFAULT NULL COMMENT '路径',
`component` varchar(128) DEFAULT NULL COMMENT '组件',
`parent_id` bigint(20) DEFAULT '0' COMMENT '父菜单ID',
`icon` varchar(32) DEFAULT NULL COMMENT '菜单图标',
`sort` int(11) DEFAULT '1' COMMENT '排序值',
`keep_alive` char(1) DEFAULT '0' COMMENT '是否缓存该页面: 1:是 0:不是',
`type` char(1) DEFAULT '0' COMMENT '菜单类型',
`hidden` char(1) NOT NULL DEFAULT '0' COMMENT '是否显示',
`target` char(1) NOT NULL DEFAULT '0' COMMENT '是否外链',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`status` char(1) DEFAULT NULL COMMENT '状态',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`tenant_id` bigint(20) unsigned DEFAULT '0' COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2069 DEFAULT CHARSET=utf8mb4 COMMENT='菜单权限表';
-- ----------------------------
-- 初始化-菜单权限表数据
-- ----------------------------
INSERT INTO `mate_sys_menu` VALUES (1000, '系统管理', NULL, '/system', 'Layout', -1, 'ant-design:appstore-outlined', 1, '0', '0', '0', '1', NULL, NULL, '2020-06-17 14:21:45', '2021-08-13 20:56:34', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1100, '用户管理', NULL, '/system/user', '/system/user/index', 1000, 'ant-design:user-outlined', 2, '0', '1', '0', '1', NULL, NULL, '2020-06-18 14:28:36', '2021-08-13 21:28:25', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1101, '用户新增', 'sys:user:add', '', NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-17 14:32:51', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1102, '用户修改', 'sys:user:edit', NULL, NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:27:40', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1103, '用户删除', 'sys:user:delete', NULL, NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:27:56', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1104, '用户启用', 'sys:user:enable', NULL, NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 08:49:47', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1105, '用户禁用', 'sys:user:disable', NULL, NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 08:50:16', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1106, '用户导出', 'sys:user:export', NULL, NULL, 1100, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 08:50:58', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1200, '角色管理', NULL, '/system/role', '/system/role/index', 1000, 'ant-design:team-outlined', 4, '0', '1', '0', '1', NULL, NULL, '2020-06-19 16:36:01', '2021-08-14 07:17:58', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1201, '角色新增', 'sys:role:add', NULL, NULL, 1200, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:37:12', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1202, '角色修改', 'sys:role:edit', NULL, NULL, 1200, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:38:23', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1203, '角色删除', 'sys:role:delete', NULL, NULL, 1200, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:38:53', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1204, '角色导出', 'sys:role:export', NULL, NULL, 1200, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:02:37', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1205, '角色权限', 'sys:role:perm', NULL, NULL, 1200, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:03:32', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1300, '菜单管理', NULL, '/system/menu', '/system/menu/index', 1000, 'ant-design:menu-unfold-outlined', 1, '0', '1', '0', '1', NULL, NULL, '2020-06-19 16:39:07', '2021-08-13 21:03:17', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1301, '菜单新增', 'sys:menu:add', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:39:48', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1302, '菜单修改', 'sys:menu:edit', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:40:21', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1303, '菜单删除', 'sys:menu:delete', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-20 00:40:42', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1304, '菜单启用', 'sys:menu:enable', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:12:59', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1305, '菜单禁用', 'sys:menu:disable', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:13:34', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1306, '菜单导出', 'sys:menu:export', NULL, NULL, 1300, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:14:32', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1400, '部门管理', NULL, '/system/depart', '/system/depart/index', 1000, 'ant-design:apartment-outlined', 3, '0', '1', '0', '1', NULL, NULL, '2020-06-26 22:52:41', '2021-08-13 21:20:11', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1401, '部门新增', 'sys:depart:add', NULL, NULL, 1400, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-27 14:53:37', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1402, '部门修改', 'sys:depart:edit', NULL, NULL, 1400, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-27 14:54:47', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1403, '部门删除', 'sys:depart:delete', NULL, NULL, 1400, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-06-27 14:55:15', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (1404, '部门导出', 'sys:depart:export', NULL, NULL, 1400, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-03 14:27:26', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2015, '开发运维', NULL, '/devops', 'Layout', -1, 'ant-design:tool-outlined', 3, '0', '0', '0', '1', NULL, NULL, '2020-07-05 11:20:31', '2021-08-14 15:00:56', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2016, '数据源管理', '', '/devops/datasource', '/devops/datasource/index', 2015, 'ant-design:database-outlined', 1, '0', '1', '0', '1', NULL, NULL, '2020-07-06 19:21:58', '2021-08-16 23:06:52', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2017, '数据源新增', 'sys:datasource:add', NULL, NULL, 2016, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-07 04:08:11', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2018, '数据源修改', 'sys:datasource:edit', NULL, NULL, 2016, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-07 04:08:40', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2019, '数据源删除', 'sys:datasource:delete', NULL, NULL, 2016, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-07 04:09:05', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2020, '数据源导出', 'sys:datasource:export', NULL, NULL, 2016, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-07 04:09:25', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2021, '代码生成', NULL, '/devops/generator', '/devops/generator/index', 2015, 'ant-design:experiment-outlined', 2, '0', '1', '0', '1', NULL, NULL, '2020-07-09 07:08:50', '2021-09-06 14:39:11', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2022, '代码生成', 'devops:gen', NULL, NULL, 2021, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-08 23:09:45', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2023, '监控配置中心', NULL, '/devops/monitor', '/devops/monitor/index', 2015, 'ant-design:desktop-outlined', 3, '0', '1', '0', '1', NULL, NULL, '2020-07-10 20:23:07', '2021-09-06 14:38:58', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2026, '客户端管理', NULL, '/system/client', '/system/client/index', 1000, 'ant-design:mobile-outlined', 7, '0', '1', '0', '1', NULL, NULL, '2020-07-13 22:47:20', '2021-08-14 14:52:32', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2027, '新增客户端', 'sys:client:add', NULL, NULL, 2026, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-13 22:47:44', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2028, '修改客户端', 'sys:client:edit', NULL, NULL, 2026, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-13 23:47:37', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2029, '删除客户端', 'sys:client:delete', NULL, NULL, 2026, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-13 23:48:11', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2030, '导出客户端', 'sys:client:export', NULL, NULL, 2026, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-13 23:48:28', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2031, '启禁客户端', 'sys:client:status', NULL, NULL, 2026, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-13 23:49:22', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2032, '操作日志', NULL, '/system/log', '/system/log/index', 1000, 'ant-design:ordered-list-outlined', 8, '0', '1', '0', '1', NULL, NULL, '2020-07-15 05:11:09', '2021-08-14 14:55:52', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2033, '详细日志', 'sys:log:detail', NULL, NULL, 2032, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-16 04:05:48', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2034, '日志删除', 'sys:log:delete', NULL, NULL, 2032, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-16 04:06:16', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2035, '字典管理', NULL, '/system/dict', '/system/dict/index', 1000, 'ant-design:read-outlined', 6, '0', '1', '0', '1', NULL, NULL, '2020-07-17 09:29:31', '2021-08-14 14:36:16', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2036, '新增字典', 'sys:dict:add', NULL, NULL, 2035, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-20 02:48:01', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2037, '修改字典', 'sys:dict:edit', NULL, NULL, 2035, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-20 02:48:20', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2038, '删除字典', 'sys:dict:delete', NULL, NULL, 2035, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-07-20 02:48:39', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2039, '组件管理', NULL, '/content/component', '/content/component/index', 2040, 'ant-design:usb-outlined', 1, '0', '1', '0', '1', NULL, NULL, '2020-08-08 05:35:05', '2021-08-16 23:09:40', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2040, '内容管理', NULL, '/content', 'Layout', -1, 'ant-design:dribbble-outlined', 4, '0', '0', '0', '1', NULL, NULL, '2020-08-09 00:21:42', '2021-08-14 15:01:58', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2041, '文件管理', NULL, '/content/attachment', '/content/attachment/index', 2040, 'ant-design:folder-open-twotone', 2, '0', '1', '0', '1', NULL, NULL, '2020-08-09 00:27:06', '2021-08-16 23:10:21', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2042, '修改组件', 'sys:comp:edit', NULL, NULL, 2039, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-10 00:42:28', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2043, '上传文件', 'sys:attach:add', NULL, NULL, 2041, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-10 08:43:52', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2044, '删除文件', 'sys:attach:delete', NULL, NULL, 2041, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-10 08:44:29', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2045, '网关中心', NULL, '/gateway', 'Layout', -1, 'ant-design:instagram-outlined', 2, '0', '0', '0', '1', NULL, NULL, '2020-08-28 19:12:00', '2021-08-14 14:58:31', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2047, '黑名单管理', NULL, '/gateway/blacklist', '/gateway/blacklist/index', 2045, 'ant-design:codepen-square-filled', 3, '0', '1', '0', '1', NULL, NULL, '2020-08-29 03:15:34', '2021-08-16 23:03:31', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2048, '新增黑名单', 'gw:bl:add', NULL, NULL, 2047, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-29 09:38:52', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2049, '修改黑名单', 'gw:bl:edit', NULL, NULL, 2047, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-29 09:39:27', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2050, '删除黑名单', 'gw:bl:del', NULL, NULL, 2047, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-29 09:39:51', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2051, '黑名单状态', 'gw:bl:status', NULL, NULL, 2047, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-08-29 09:44:20', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2055, 'API管理', NULL, '/gateway/api', '/gateway/api/index', 2045, 'ant-design:sliders-outlined', 2, '0', '1', '0', '1', NULL, NULL, '2020-10-14 14:00:06', '2021-08-16 23:02:57', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2056, '微服务管理', NULL, '/gateway/route', '/gateway/route/index', 2045, 'ant-design:ungroup-outlined', 1, '0', '1', '0', '1', NULL, NULL, '2020-10-17 12:53:27', '2021-08-16 22:56:32', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2057, '同步API', 'gw:api:sync', NULL, NULL, 2055, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-17 14:16:06', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2058, '删除API', 'gw:api:del', NULL, NULL, 2055, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-17 14:17:25', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2059, '修改API', 'gw:api:edit', NULL, NULL, 2055, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-17 14:17:58', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2060, '新增微服务', 'gw:route:add', NULL, NULL, 2056, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-19 05:19:45', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2061, '修改微服务', 'gw:route:edit', NULL, NULL, 2056, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-19 05:20:49', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2062, '删除微服务', 'gw:route:del', NULL, NULL, 2056, NULL, 1, '0', '2', '0', '1', NULL, NULL, '2020-10-19 05:21:03', '2021-07-24 23:29:27', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2064, '工作台', NULL, '/dashboard', 'Layout', -1, 'ant-design:windows-outlined', 0, '0', '0', '0', '0', NULL, NULL, '2021-08-16 09:07:39', '2021-08-16 18:29:30', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2065, '分析页', NULL, '/dashboard', '/dashboard/analysis/index', 2064, 'ant-design:rise-outlined', 0, '0', '1', '0', '0', NULL, NULL, '2021-08-16 09:14:24', '2021-08-16 16:07:05', '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2068, '工作台', NULL, '/dashboard/workbench', '/dashboard/workbench/index', 2064, 'ant-design:block-outlined', 2, '0', '1', '0', '0', NULL, NULL, '2021-08-16 20:23:58', NULL, '0', '0', 0);
INSERT INTO `mate_sys_menu` VALUES (2069, '关于Artemis', NULL, '/about/index', '/sys/about/index', -1, 'ant-design:info-circle-outlined', 100, '0', '1', '0', '0', NULL, NULL, '2021-08-30 15:19:47', '2021-08-30 15:35:44', '0', '0', 0);
-- ----------------------------
-- 2、用户表 mate_sys_user
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_user`;
CREATE TABLE `mate_sys_user` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`tenant_id` varchar(12) DEFAULT '100000' COMMENT '租户ID',
`account` varchar(45) DEFAULT NULL COMMENT '账号',
`password` varchar(200) DEFAULT NULL COMMENT '密码',
`name` varchar(20) DEFAULT NULL COMMENT '昵称',
`real_name` varchar(10) DEFAULT NULL COMMENT '真名',
`avatar` varchar(200) DEFAULT NULL COMMENT '头像',
`email` varchar(45) DEFAULT NULL COMMENT '邮箱',
`telephone` varchar(45) DEFAULT NULL COMMENT '手机',
`birthday` datetime DEFAULT NULL COMMENT '生日',
`sex` smallint(6) DEFAULT NULL COMMENT '性别',
`role_id` bigint(20) DEFAULT '0' COMMENT '角色id',
`depart_id` bigint(20) DEFAULT '0' COMMENT '部门id',
`status` char(1) DEFAULT NULL COMMENT '状态',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` char(1) NOT NULL DEFAULT '0' COMMENT '逻辑删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
-- ----------------------------
-- 初始化-用户表数据
-- ----------------------------
INSERT INTO `mate_sys_user` VALUES (2, '100000', 'admin', '{bcrypt}$2a$10$IhNoDpkdJ1VzbnfX1pH35.S25n2tHaxU4hSltf7An.wdiXAsYe2Jm', 'admin', '超级管理员', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18810001000', NULL, 1, 1, 1, '0', NULL, NULL, NULL, '2020-07-02 07:29:12', '2021-08-16 22:40:45', '0');
INSERT INTO `mate_sys_user` VALUES (3, '100000', 'admin2', '{bcrypt}$2a$10$pDzXQpiSIl74Jekj9CxMWOPbEV9MHkjkZ7GXX/RomtIyXz8m6Ruia', 'admin2', '杨幂', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 2, 4, '0', NULL, NULL, NULL, '2020-06-16 20:05:43', '2021-08-14 07:08:24', '0');
INSERT INTO `mate_sys_user` VALUES (4, '100000', 'admin4', '{bcrypt}$2a$10$UIrEMyC0GUIUdJuGPYeGO.Nc8AZYlTiC8MUttPaYQ7P.V5q/cTAAG', 'admin4', '刘德华', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 2, 1, '0', NULL, NULL, NULL, '2020-06-17 04:05:43', '2021-08-23 07:28:50', '0');
INSERT INTO `mate_sys_user` VALUES (5, '100000', 'admin5', '{bcrypt}$2a$10$WF2dEcJetVqRFOn/AfrfZu4.Z5HcBFZ49/fL/KKOQ6b.xJtXZHoqe', 'admin5', 'mate', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 1, 1, '0', NULL, NULL, NULL, '2020-06-17 04:05:43', '2021-08-23 07:25:50', '0');
INSERT INTO `mate_sys_user` VALUES (6, '100000', 'admin6', '{bcrypt}$2a$10$pDzXQpiSIl74Jekj9CxMWOPbEV9MHkjkZ7GXX/RomtIyXz8m6Ruia', 'admin6', 'mate', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 1, 1, '0', NULL, NULL, NULL, '2020-06-17 12:05:43', '2020-07-02 13:39:01', '0');
INSERT INTO `mate_sys_user` VALUES (7, '100000', 'admin7', '{bcrypt}$2a$10$pDzXQpiSIl74Jekj9CxMWOPbEV9MHkjkZ7GXX/RomtIyXz8m6Ruia', 'admin6', 'mate', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 1, 1, '0', NULL, NULL, NULL, '2020-06-16 12:05:43', '2020-06-30 12:55:52', '0');
INSERT INTO `mate_sys_user` VALUES (8, '100000', 'admin8', '{bcrypt}$2a$10$6YPJ0dkaqh9x3zwTfidRBeT0U5vJ7Si7wXFx9Gc/K3pMxz8J18TrW', 'admin6', 'mate', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 2, 1, '0', NULL, NULL, NULL, '2020-06-16 20:05:43', '2020-07-15 04:31:24', '0');
INSERT INTO `mate_sys_user` VALUES (9, '100000', 'admin9', '{bcrypt}$2a$10$pDzXQpiSIl74Jekj9CxMWOPbEV9MHkjkZ7GXX/RomtIyXz8m6Ruia', 'admin6', 'mate', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 1, 1, '1', NULL, NULL, NULL, '2020-06-16 20:05:43', '2020-07-01 21:39:03', '0');
INSERT INTO `mate_sys_user` VALUES (10, '100000', 'admin10', '{bcrypt}$2a$10$A5cfRbFDCsOg.1UTlWyEZu8DJHSr9GnANXQMsRSIDAtZHuiQicr0K', 'admin6', '测试管理员', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'mate@mate.vip', '18910001000', NULL, 1, 1, 1, '1', '测试管理员', NULL, NULL, '2020-06-15 12:05:43', '2021-08-29 15:57:25', '0');
INSERT INTO `mate_sys_user` VALUES (22, '100000', 'pp1', '{bcrypt}$2a$10$jddK.xwTn99XM9ggy64Zgu.eBK2GBiyk9RmtQEjg99S2F8otQ8ieq', 'pp1', '11', 'https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2084118128,2518711034&fm=26&gp=0.jpg', 'pp1@163.com', '1899', '2020-06-26 16:00:00', 2, 2, 1, '0', NULL, NULL, NULL, '2020-06-30 09:57:13', '2021-08-18 21:54:06', '0');
-- ----------------------------
-- 3、组织机构表 mate_sys_depart
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_depart`;
CREATE TABLE `mate_sys_depart` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门ID',
`name` varchar(50) DEFAULT NULL COMMENT '部门名称',
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`parent_id` bigint(20) DEFAULT '0' COMMENT '上级ID',
`tenant_id` bigint(20) DEFAULT '0' COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='组织机构表';
-- ----------------------------
-- 初始化-组织机构表数据
-- ----------------------------
INSERT INTO `mate_sys_depart` VALUES (1, '开发部', 0, NULL, NULL, '2020-06-27 15:30:50', '2020-07-01 20:49:08', '0', -1, 0);
INSERT INTO `mate_sys_depart` VALUES (2, '开发分部', 0, NULL, NULL, '2020-06-29 11:14:37', NULL, '0', 1, 0);
INSERT INTO `mate_sys_depart` VALUES (3, '开发二部', 1, NULL, NULL, '2020-06-29 15:54:27', NULL, '0', 1, 0);
INSERT INTO `mate_sys_depart` VALUES (4, '产品部', 1, NULL, NULL, '2020-06-29 07:58:54', '2020-08-17 06:53:59', '0', -1, 0);
INSERT INTO `mate_sys_depart` VALUES (5, '产品一部', 1, NULL, NULL, '2020-06-29 15:59:14', NULL, '0', 4, 0);
-- ----------------------------
-- 4、角色表 for mate_sys_role
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_role`;
CREATE TABLE `mate_sys_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`role_name` varchar(64) DEFAULT NULL COMMENT '角色名称',
`role_code` varchar(64) DEFAULT NULL COMMENT '角色编码',
`description` varchar(255) DEFAULT NULL COMMENT '描述',
`sort` int(11) DEFAULT '0' COMMENT '排序',
`status` char(1) DEFAULT NULL COMMENT '状态',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_role_role_code` (`role_code`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='角色表';
-- ----------------------------
-- 初始化-角色表数据
-- ----------------------------
INSERT INTO `mate_sys_role` VALUES (1, '管理员', 'admin', '管理员组', 0, '0', NULL, NULL, '2020-06-28 15:02:16', '2021-09-25 16:16:31', '0', NULL);
INSERT INTO `mate_sys_role` VALUES (2, '演示会员', 'demo2', '演示会员组', 0, '0', NULL, NULL, '2020-06-28 07:02:36', '2021-09-25 16:16:18', '0', NULL);
-- ----------------------------
-- 5、字典表 mate_sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_dict`;
CREATE TABLE `mate_sys_dict` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`parent_id` bigint(64) DEFAULT '0' COMMENT '父主键',
`code` varchar(255) DEFAULT NULL COMMENT '字典码',
`dict_key` varchar(255) DEFAULT NULL COMMENT '字典值',
`dict_value` varchar(255) DEFAULT NULL COMMENT '字典名称',
`sort` int(11) DEFAULT NULL COMMENT '排序',
`remark` varchar(255) DEFAULT NULL COMMENT '字典备注',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`is_deleted` int(2) DEFAULT '0' COMMENT '是否已删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COMMENT='字典表';
-- ----------------------------
-- 初始化-字典表数据
-- ----------------------------
INSERT INTO `mate_sys_dict` VALUES (1, 0, 'status', '-1', '状态', 1, '', NULL, NULL, '2020-07-01 09:59:15', '2020-07-01 10:02:00', 0);
INSERT INTO `mate_sys_dict` VALUES (2, 1, 'status', '0', '启用', 1, NULL, NULL, NULL, '2020-07-01 10:02:23', '2020-07-01 10:02:59', 0);
INSERT INTO `mate_sys_dict` VALUES (3, 1, 'status', '1', '禁用', 2, NULL, NULL, NULL, '2020-07-01 10:02:34', '2020-07-01 10:02:59', 0);
INSERT INTO `mate_sys_dict` VALUES (4, 0, 'dbtype', '-1', '数据库类型', 1, NULL, NULL, NULL, '2020-07-11 08:47:02', NULL, 0);
INSERT INTO `mate_sys_dict` VALUES (5, 4, 'dbtype', 'mysql', 'com.mysql.cj.jdbc.Driver', 1, NULL, NULL, NULL, '2020-07-11 08:47:44', '2020-07-11 08:53:11', 0);
INSERT INTO `mate_sys_dict` VALUES (6, 4, 'dbtype', 'oracle', 'oracle.jdbc.OracleDriver', 2, NULL, NULL, NULL, '2020-07-11 08:48:00', '2020-07-11 08:54:05', 0);
INSERT INTO `mate_sys_dict` VALUES (7, 4, 'dbtype', 'oracle12c', 'oracle.jdbc.OracleDriver', 3, NULL, NULL, NULL, '2020-07-11 08:49:10', '2020-07-11 08:54:12', 0);
INSERT INTO `mate_sys_dict` VALUES (24, 0, 'ok', '-1', '确认', NULL, NULL, NULL, NULL, '2020-07-19 13:31:16', '2020-07-19 21:31:28', 0);
INSERT INTO `mate_sys_dict` VALUES (25, 24, 'ok', 'yes', '是', NULL, NULL, NULL, NULL, '2020-07-19 21:31:40', '2020-07-20 05:32:12', 0);
INSERT INTO `mate_sys_dict` VALUES (26, 24, 'ok', 'no', '否', NULL, NULL, NULL, NULL, '2020-07-20 05:32:06', NULL, 0);
-- ----------------------------
-- 6、客户端表 mate_sys_client
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_client`;
CREATE TABLE `mate_sys_client` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`client_id` varchar(48) NOT NULL COMMENT '客户端id',
`client_secret` varchar(256) NOT NULL COMMENT '客户端密钥',
`resource_ids` varchar(256) DEFAULT NULL COMMENT '资源集合',
`scope` varchar(256) NOT NULL COMMENT '授权范围',
`authorized_grant_types` varchar(256) NOT NULL COMMENT '授权类型',
`web_server_redirect_uri` varchar(256) DEFAULT NULL COMMENT '回调地址',
`authorities` varchar(256) DEFAULT NULL COMMENT '权限',
`access_token_validity` int(11) NOT NULL COMMENT '令牌过期秒数',
`refresh_token_validity` int(11) NOT NULL COMMENT '刷新令牌过期秒数',
`additional_information` varchar(4096) DEFAULT NULL COMMENT '附加说明',
`autoapprove` varchar(256) DEFAULT NULL COMMENT '自动授权',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`status` char(1) NOT NULL DEFAULT '0' COMMENT '状态',
`is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '是否已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='客户端表';
-- ----------------------------
-- 初始化-客户端表数据
-- ----------------------------
INSERT INTO `mate_sys_client` VALUES (1, 'mate', 'mate_secret', NULL, 'all', 'refresh_token,password,authorization_code,captcha,sms,social', 'http://localhost:10001', NULL, 3600, 3600, NULL, NULL, NULL, NULL, '2020-07-12 14:49:23', '2020-07-28 04:22:54', '0', 0);
-- ----------------------------
-- 7、配置表 mate_sys_config
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_config`;
CREATE TABLE `mate_sys_config` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`parent_id` bigint(64) DEFAULT '0' COMMENT '父主键',
`code` varchar(255) DEFAULT NULL COMMENT '码',
`c_key` varchar(255) DEFAULT NULL COMMENT '值',
`value` varchar(255) DEFAULT NULL COMMENT '名称',
`sort` int(11) DEFAULT NULL COMMENT '排序',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`tenant_id` int(11) DEFAULT '1',
`is_deleted` int(2) DEFAULT '0' COMMENT '是否已删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COMMENT='配置表';
-- ----------------------------
-- 初始化-配置表数据
-- ----------------------------
INSERT INTO `mate_sys_config` VALUES (1, 0, 'oss', 'default', 'qiniuoss', 0, '默认OSS配置', NULL, NULL, '2020-08-08 01:44:31', '2020-12-16 09:37:21', 1, 0);
INSERT INTO `mate_sys_config` VALUES (2, 1, 'alioss', 'endpoint', 'oss-cn-beijing.aliyuncs.com', 1, '对象存储服务的URL', NULL, NULL, '2020-08-08 01:46:10', '2020-08-09 16:14:15', 1, 0);
INSERT INTO `mate_sys_config` VALUES (3, 1, 'alioss', 'customDomain', 'mall-zaitong.oss-cn-beijing.aliyuncs.com', 2, '自定义域名', NULL, NULL, '2020-08-08 01:46:32', '2020-08-09 16:14:08', 1, 0);
INSERT INTO `mate_sys_config` VALUES (4, 1, 'alioss', 'pathStyleAccess', 'false', 3, 'pathStyleAccess', NULL, NULL, '2020-08-08 01:47:21', '2020-08-08 01:47:35', 1, 0);
INSERT INTO `mate_sys_config` VALUES (5, 1, 'alioss', 'accessKey', 'LTA******rzjrV', 4, 'Access Key', NULL, NULL, '2020-08-08 01:47:40', '2020-08-09 07:53:48', 1, 0);
INSERT INTO `mate_sys_config` VALUES (6, 1, 'alioss', 'secretKey', '9H6Bxg**************bfNoy4E', 5, 'Access Secret', NULL, NULL, '2020-08-08 01:53:13', '2020-08-10 01:31:53', 1, 0);
INSERT INTO `mate_sys_config` VALUES (7, 1, 'alioss', 'bucketName', 'm********g', 6, '空间名', NULL, NULL, '2020-08-08 01:53:14', '2020-08-09 16:13:15', 1, 0);
INSERT INTO `mate_sys_config` VALUES (8, 1, 'qiniuoss', 'endpoint', 's3-cn-south-1.qiniucs.com', 1, '对象存储服务的URL', NULL, NULL, '2020-08-08 01:46:10', '2020-08-10 01:33:31', 1, 0);
INSERT INTO `mate_sys_config` VALUES (9, 1, 'qiniuoss', 'customDomain', 'cd**********com8878556757657', 2, '自定义域名', NULL, NULL, '2020-08-08 01:46:32', '2020-11-15 20:02:32', 1, 0);
INSERT INTO `mate_sys_config` VALUES (10, 1, 'qiniuoss', 'pathStyleAccess', 'false', 3, 'pathStyleAccess', NULL, NULL, '2020-08-08 01:47:21', '2020-08-08 01:47:35', 1, 0);
INSERT INTO `mate_sys_config` VALUES (11, 1, 'qiniuoss', 'accessKey', 'pj2M-4k_*********************dQpjb1L', 4, 'Access Key', NULL, NULL, '2020-08-08 01:47:40', '2020-08-10 01:33:31', 1, 0);
INSERT INTO `mate_sys_config` VALUES (12, 1, 'qiniuoss', 'secretKey', 'Dx17O-dbR*******************Mxlc4bb', 5, 'Access Secret', NULL, NULL, '2020-08-08 01:53:13', '2020-08-10 01:33:31', 1, 0);
INSERT INTO `mate_sys_config` VALUES (13, 1, 'qiniuoss', 'bucketName', 'ckjia', 6, '空间名', NULL, NULL, '2020-08-08 01:53:14', '2020-08-10 01:33:31', 1, 0);
INSERT INTO `mate_sys_config` VALUES (14, 1, 'miniooss', 'endpoint', '66666', 1, '对象存储服务的URL', NULL, NULL, '2020-08-08 01:46:10', '2020-08-09 02:03:52', 1, 0);
INSERT INTO `mate_sys_config` VALUES (15, 1, 'miniooss', 'customDomain', '2222', 2, '自定义域名', NULL, NULL, '2020-08-08 01:46:32', '2020-08-08 16:55:54', 1, 0);
INSERT INTO `mate_sys_config` VALUES (16, 1, 'miniooss', 'pathStyleAccess', 'false', 3, 'pathStyleAccess', NULL, NULL, '2020-08-08 01:47:21', '2020-08-08 01:47:35', 1, 0);
INSERT INTO `mate_sys_config` VALUES (17, 1, 'miniooss', 'accessKey', '3333', 4, 'Access Key', NULL, NULL, '2020-08-08 01:47:40', '2020-08-08 16:55:58', 1, 0);
INSERT INTO `mate_sys_config` VALUES (18, 1, 'miniooss', 'secretKey', '4444', 5, 'Access Secret', NULL, NULL, '2020-08-08 01:53:13', '2020-08-08 16:56:02', 1, 0);
INSERT INTO `mate_sys_config` VALUES (19, 1, 'miniooss', 'bucketName', '5555', 6, '空间名', NULL, NULL, '2020-08-08 01:53:14', '2020-08-08 16:56:06', 1, 0);
-- ----------------------------
-- 8、系统日志表 mate_sys_log
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_log`;
CREATE TABLE `mate_sys_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`type` char(1) DEFAULT '1' COMMENT '日志类型',
`trace_id` varchar(64) DEFAULT NULL COMMENT '跟踪ID',
`title` varchar(64) DEFAULT NULL COMMENT '日志标题',
`operation` text COMMENT '操作内容',
`method` varchar(64) DEFAULT NULL COMMENT '执行方法',
`params` text COMMENT '参数',
`url` varchar(128) DEFAULT NULL COMMENT '请求路径',
`ip` varchar(64) DEFAULT NULL COMMENT 'ip地址',
`exception` text,
`execute_time` decimal(11,0) DEFAULT NULL COMMENT '耗时',
`location` varchar(64) DEFAULT NULL COMMENT '地区',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='系统日志表';
-- ----------------------------
-- 初始化-系统日志表数据
-- ----------------------------
-- ----------------------------
-- 9、角色和部门关联表 mate_sys_role_depart
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_role_depart`;
CREATE TABLE `mate_sys_role_depart` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`depart_id` bigint(20) NOT NULL COMMENT '部门ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='角色和部门关联表';
-- ----------------------------
-- 初始化-角色和部门关联表数据
-- ----------------------------
-- ----------------------------
-- 10、角色和部门关联表 mate_sys_role_permission
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_role_permission`;
CREATE TABLE `mate_sys_role_permission` (
`id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '主键',
`menu_id` bigint(64) DEFAULT NULL COMMENT '菜单id',
`role_id` bigint(64) DEFAULT NULL COMMENT '角色id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2710 DEFAULT CHARSET=utf8mb4 COMMENT='角色权限表';
-- ----------------------------
-- 初始化-角色权限表数据
-- ----------------------------
INSERT INTO `mate_sys_role_permission` VALUES (977, 1000, 2);
INSERT INTO `mate_sys_role_permission` VALUES (978, 1300, 2);
INSERT INTO `mate_sys_role_permission` VALUES (979, 1301, 2);
INSERT INTO `mate_sys_role_permission` VALUES (980, 1302, 2);
INSERT INTO `mate_sys_role_permission` VALUES (981, 1303, 2);
INSERT INTO `mate_sys_role_permission` VALUES (982, 2009, 2);
INSERT INTO `mate_sys_role_permission` VALUES (2171, NULL, NULL);
INSERT INTO `mate_sys_role_permission` VALUES (2370, 1000, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2371, 1300, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2372, 1301, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2373, 1302, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2374, 1303, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2375, 1304, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2376, 1305, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2377, 1306, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2378, 1100, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2379, 1101, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2380, 1102, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2381, 1103, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2382, 1104, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2383, 1105, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2384, 1106, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2385, 1400, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2386, 1401, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2387, 1402, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2388, 1403, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2389, 1404, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2390, 1200, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2391, 1201, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2392, 1202, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2393, 1203, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2394, 1204, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2395, 1205, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2396, 2039, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2397, 2042, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2398, 2035, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2399, 2036, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2400, 2037, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2401, 2038, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2402, 2026, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2403, 2027, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2404, 2028, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2405, 2029, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2406, 2030, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2407, 2031, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2408, 2032, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2409, 2033, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2410, 2034, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2411, 2045, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2412, 2056, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2413, 2060, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2414, 2061, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2415, 2062, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2416, 2055, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2417, 2057, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2418, 2058, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2419, 2059, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2420, 2047, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2421, 2048, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2422, 2049, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2423, 2050, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2424, 2051, 3);
INSERT INTO `mate_sys_role_permission` VALUES (2567, 2064, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2568, 2065, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2569, 1000, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2570, 1300, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2571, 1301, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2572, 1302, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2573, 1303, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2574, 1304, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2575, 1305, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2576, 1306, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2577, 1100, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2578, 1101, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2579, 1102, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2580, 1103, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2581, 1104, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2582, 1105, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2583, 1106, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2584, 1400, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2585, 1401, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2586, 1402, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2587, 1403, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2588, 1404, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2589, 1200, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2590, 1201, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2591, 1202, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2592, 1203, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2593, 1204, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2594, 1205, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2595, 2035, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2596, 2036, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2597, 2037, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2598, 2038, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2599, 2026, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2600, 2027, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2601, 2028, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2602, 2029, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2603, 2030, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2604, 2031, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2605, 2032, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2606, 2033, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2607, 2034, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2608, 2045, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2609, 2056, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2610, 2060, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2611, 2061, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2612, 2062, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2613, 2055, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2614, 2057, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2615, 2058, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2616, 2059, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2617, 2047, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2618, 2048, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2619, 2049, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2620, 2050, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2621, 2051, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2622, 2015, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2623, 2016, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2624, 2017, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2625, 2018, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2626, 2019, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2627, 2020, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2628, 2021, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2629, 2022, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2630, 2023, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2631, 2040, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2632, 2053, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2633, 2039, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2634, 2042, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2635, 2041, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2636, 2043, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2637, 2044, 4);
INSERT INTO `mate_sys_role_permission` VALUES (2638, 1000, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2639, 1300, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2640, 1301, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2641, 1302, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2642, 1303, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2643, 1304, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2644, 1305, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2645, 1306, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2646, 1100, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2647, 1101, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2648, 1102, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2649, 1103, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2650, 1104, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2651, 1105, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2652, 1106, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2653, 1400, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2654, 1401, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2655, 1402, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2656, 1403, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2657, 1404, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2658, 1200, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2659, 1201, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2660, 1202, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2661, 1203, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2662, 1204, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2663, 1205, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2664, 2035, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2665, 2036, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2666, 2037, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2667, 2038, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2668, 2026, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2669, 2027, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2670, 2028, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2671, 2029, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2672, 2030, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2673, 2031, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2674, 2032, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2675, 2033, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2676, 2034, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2677, 2039, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2678, 2042, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2679, 2040, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2680, 2053, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2681, 2041, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2682, 2043, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2683, 2044, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2684, 2045, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2685, 2056, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2686, 2060, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2687, 2061, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2688, 2062, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2689, 2055, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2690, 2057, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2691, 2058, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2692, 2059, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2693, 2047, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2694, 2048, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2695, 2049, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2696, 2050, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2697, 2051, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2698, 2015, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2699, 2016, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2700, 2017, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2701, 2018, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2702, 2019, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2703, 2020, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2704, 2021, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2705, 2022, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2706, 2023, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2707, 2065, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2708, 2068, 1);
INSERT INTO `mate_sys_role_permission` VALUES (2709, 2064, 1);
-- ----------------------------
-- 11、系统接口表 mate_sys_api
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_api`;
CREATE TABLE `mate_sys_api` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`code` varchar(255) NOT NULL COMMENT '接口编码',
`name` varchar(100) DEFAULT NULL COMMENT '接口名称',
`notes` varchar(200) DEFAULT NULL COMMENT '接口描述',
`method` varchar(20) DEFAULT NULL COMMENT '请求方法',
`class_name` varchar(255) DEFAULT NULL COMMENT '类名',
`method_name` varchar(100) DEFAULT NULL COMMENT '方法名',
`path` varchar(255) DEFAULT NULL COMMENT '请求路径',
`content_type` varchar(100) DEFAULT NULL COMMENT '响应类型',
`service_id` varchar(100) DEFAULT NULL COMMENT '服务ID',
`status` char(1) DEFAULT '0' COMMENT 'API状态:0:启用 1:禁用',
`auth` char(1) DEFAULT '0' COMMENT '是否认证:0:不认证 1:认证',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4 COMMENT='系统接口表';
-- ----------------------------
-- 12、系统路由表 mate_sys_route
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_route`;
CREATE TABLE `mate_sys_route` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`name` varchar(100) DEFAULT NULL COMMENT '服务名称',
`path` varchar(255) DEFAULT NULL COMMENT '服务前缀',
`url` varchar(255) DEFAULT NULL COMMENT '地址',
`service_id` varchar(100) DEFAULT NULL COMMENT '服务编码',
`status` char(1) DEFAULT '0' COMMENT 'API状态:0:启用 1:禁用',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='系统路由表';
-- ----------------------------
-- 初始化-系统路由表数据
-- ----------------------------
INSERT INTO `mate_sys_route` VALUES (1, '系统服务', '/mate-system/**', 'mate-system', 'mate-system', '0', NULL, NULL, '2020-10-18 22:59:02', '2021-09-23 14:13:21', '0', NULL);
INSERT INTO `mate_sys_route` VALUES (2, '认证服务', '/mate-uaa/**', 'mate-uaa', 'mate-uaa', '0', NULL, NULL, '2020-10-18 15:14:13', '2021-09-23 14:13:36', '0', NULL);
INSERT INTO `mate_sys_route` VALUES (3, '代码服务', '/mate-code/**', 'mate-code', 'mate-code', '0', NULL, NULL, '2020-10-18 20:21:25', '2021-09-23 14:13:31', '0', NULL);
INSERT INTO `mate_sys_route` VALUES (4, '组件服务', '/mate-component/**', 'mate-component', 'mate-component', '0', NULL, NULL, '2020-10-18 20:22:42', '2021-09-23 14:13:27', '0', NULL);
-- ----------------------------
-- 13、系统黑名单表 mate_sys_blacklist
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_blacklist`;
CREATE TABLE `mate_sys_blacklist` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`ip` varchar(20) DEFAULT NULL COMMENT 'IP地址',
`request_uri` varchar(100) DEFAULT NULL COMMENT '请求地址',
`request_method` varchar(10) DEFAULT NULL COMMENT '请求方法',
`start_time` varchar(32) DEFAULT NULL COMMENT '开始时间',
`end_time` varchar(32) DEFAULT NULL COMMENT '结束时间',
`status` char(1) DEFAULT '0' COMMENT '状态:0:关闭 1:开启',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='系统黑名单表';
-- ----------------------------
-- 初始化-系统黑名单表
-- ----------------------------
BEGIN;
INSERT INTO `mate_sys_blacklist` VALUES (1, NULL, '/**/actuator/**', 'ALL', NULL, NULL, '1', NULL, NULL, '2020-08-22 01:40:16', '2020-08-22 01:40:34');
COMMIT;
-- ----------------------------
-- 14、系统数据源表 mate_sys_data_source
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_data_source`;
CREATE TABLE `mate_sys_data_source` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` varchar(100) DEFAULT NULL COMMENT '名称',
`db_type` varchar(50) NOT NULL DEFAULT '' COMMENT '数据库类型',
`driver_class` varchar(100) DEFAULT NULL COMMENT '驱动类型',
`url` varchar(500) DEFAULT NULL COMMENT '连接地址',
`username` varchar(50) DEFAULT NULL COMMENT '用户名',
`password` varchar(50) DEFAULT NULL COMMENT '密码',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`status` tinyint(1) DEFAULT NULL COMMENT '状态',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '逻辑删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='数据源表';
-- ----------------------------
-- 初始化-数据源表数据
-- ----------------------------
INSERT INTO `mate_sys_data_source` VALUES (1, 'ldx', 'mysql', 'com.mysql.cj.jdbc.Driver', 'localhost:3306', 'root', 'root', NULL, NULL, NULL, NULL, '2020-12-08 15:17:40', NULL, 0);
-- ----------------------------
-- 15、系统附件表 mate_sys_attachment
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_attachment`;
CREATE TABLE `mate_sys_attachment` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '附件ID',
`storage_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '存储ID',
`attachment_group_id` int(11) NOT NULL DEFAULT '0' COMMENT '组ID',
`name` varchar(128) NOT NULL COMMENT '文件名称',
`size` int(11) NOT NULL COMMENT '文件大小',
`url` varchar(2080) NOT NULL COMMENT '文件地址',
`file_name` varchar(200) DEFAULT NULL COMMENT '上传文件名',
`thumb_url` varchar(2080) NOT NULL DEFAULT '' COMMENT '缩略图地址',
`type` tinyint(2) NOT NULL COMMENT '类型',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`is_deleted` char(1) DEFAULT '0' COMMENT '删除标识',
`is_recycle` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否加入回收站 0.否|1.是',
PRIMARY KEY (`id`),
KEY `type` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COMMENT='附件表';
-- ----------------------------
-- 初始化-附件表数据
-- ----------------------------
INSERT INTO `mate_sys_attachment` VALUES (13, 0, 0, 'timg (3).jpeg', 26516, 'https://cdn.ckjia.com/10e258da699b4c318ff59e24f2599420.jpeg', '10e258da699b4c318ff59e24f2599420.jpeg', '', 1, NULL, NULL, '2020-08-10 03:29:26', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (16, 0, 0, 'background.jpg', 261548, 'https://cdn.ckjia.com/3b8f8e2b5ffb43b0905397b82a6b3ec6.jpg', '3b8f8e2b5ffb43b0905397b82a6b3ec6.jpg', '', 1, NULL, NULL, '2020-08-10 11:55:53', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (17, 0, 0, 'nav-icon-new.active.png', 3036, 'https://cdn.ckjia.com/5efe50fcd0e744eaa7a2e7c6d851dd82.png', '5efe50fcd0e744eaa7a2e7c6d851dd82.png', '', 1, NULL, NULL, '2020-08-10 13:39:06', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (18, 0, 0, 'nav-icon-user.active.png', 2150, 'https://cdn.ckjia.com/90cef6a278b34c1690af938193e2d813.png', '90cef6a278b34c1690af938193e2d813.png', '', 1, NULL, NULL, '2020-08-10 13:40:56', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (19, 0, 0, 'nav-icon-cat.active.png', 3338, 'https://cdn.ckjia.com/8ffa2bf6e6e7491b8460bf308abd30de.png', '8ffa2bf6e6e7491b8460bf308abd30de.png', '', 1, NULL, NULL, '2020-08-10 13:41:49', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (20, 0, 0, 'nav-icon-index.active.png', 2754, 'https://cdn.ckjia.com/478acfc9aeb140a4b79c6402ba3bd021.png', '478acfc9aeb140a4b79c6402ba3bd021.png', '', 1, NULL, NULL, '2020-08-10 13:54:53', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (21, 0, 0, 'baiduzhifu2x.png', 19415, 'https://cdn.ckjia.com/5ba794ec8d054ce995d37d364c5a9836.png', '5ba794ec8d054ce995d37d364c5a9836.png', '', 1, NULL, NULL, '2020-08-10 13:56:10', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (22, 0, 0, 'h_seckill.png', 6008, 'https://cdn.ckjia.com/897d70b0635f48999baa635d6debbbee.png', '897d70b0635f48999baa635d6debbbee.png', '', 1, NULL, NULL, '2020-08-10 13:59:47', NULL, '0', 0);
INSERT INTO `mate_sys_attachment` VALUES (24, 0, 0, 'mate-bg2.jpeg', 79028, 'https://cdn.ckjia.com/7667a4086d3c40948207dc8e02b52ff9.jpeg', '7667a4086d3c40948207dc8e02b52ff9.jpeg', '', 1, NULL, NULL, '2020-08-11 14:19:53', NULL, '0', 0);
-- ----------------------------
-- 16、系统租户表 mate_sys_tenant
-- ----------------------------
DROP TABLE IF EXISTS `mate_sys_tenant`;
CREATE TABLE `mate_sys_tenant` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '租户id',
`name` varchar(255) DEFAULT NULL COMMENT '租户名称',
`code` varchar(64) DEFAULT NULL COMMENT '租户编码',
`start_time` timestamp NULL DEFAULT NULL COMMENT '开始时间',
`end_time` timestamp NULL DEFAULT NULL COMMENT '结束时间',
`status` char(1) DEFAULT '0' COMMENT '状态',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标识',
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='租户表';
-- ----------------------------
-- 初始化-租户表数据
-- ---------------------------- | the_stack |
CREATE MATERIALIZED VIEW IF NOT EXISTS MV_Fact_Acct_Sum AS
select fa.AD_Client_ID
, fa.AD_Org_ID
, fa.Account_ID
, fa.C_AcctSchema_ID
, fa.PostingType
, fa.DateAcct
, fa.C_Tax_ID
, fa.vatcode
, p.C_Period_ID
, p.C_Year_ID
-- Aggregated amounts
, COALESCE(SUM(AmtAcctDr), 0) as AmtAcctDr
, COALESCE(SUM(AmtAcctCr), 0) as AmtAcctCr
, COALESCE(SUM(Qty), 0) as Qty
FROM Fact_Acct fa
left outer join C_Period p on (p.C_Period_ID = fa.C_Period_ID)
GROUP BY fa.AD_Client_ID
, fa.AD_Org_ID
, p.C_Period_ID
, fa.DateAcct
, fa.C_AcctSchema_ID
, fa.PostingType
, fa.Account_ID
, fa.C_Tax_ID
, fa.vatcode;
DROP FUNCTION IF EXISTS de_metas_acct.balanceToDate(p_AD_Org_ID numeric(10, 0), p_Account_ID numeric,
p_DateAcct date,
p_C_Vat_Code_ID numeric);
CREATE OR REPLACE FUNCTION de_metas_acct.balanceToDate(p_AD_Org_ID numeric(10, 0),
p_Account_ID numeric,
p_DateAcct date,
p_C_Vat_Code_ID numeric)
RETURNS TABLE
(
vatcode varchar,
C_Tax_ID numeric,
accountNo varchar,
accountName varchar,
Balance de_metas_acct.BalanceAmt
)
AS
$BODY$
WITH records AS
(
WITH filteredRecords AS (
with fact_records AS
(
select fa.AD_Client_ID
, fa.AD_Org_ID
, fa.Account_ID
, fa.C_AcctSchema_ID
, fa.PostingType
, fa.DateAcct
, fa.C_Tax_ID
, fa.vatcode
, p.C_Period_ID
, p.C_Year_ID
-- Aggregated amounts
, COALESCE(SUM(AmtAcctDr), 0) as AmtAcctDr
, COALESCE(SUM(AmtAcctCr), 0) as AmtAcctCr
, COALESCE(SUM(Qty), 0) as Qty
FROM Fact_Acct fa
left outer join C_Period p on (p.C_Period_ID = fa.C_Period_ID)
GROUP BY fa.AD_Client_ID, fa.AD_Org_ID
, p.C_Period_ID
, fa.DateAcct
, fa.C_AcctSchema_ID
, fa.PostingType
, fa.Account_ID
, fa.C_Tax_ID
, fa.vatcode
)
select fa.AD_Client_ID
, fa.AD_Org_ID
, fa.Account_ID
, fa.C_Tax_ID
, fa.vatcode
, fa.C_AcctSchema_ID
, fa.PostingType
, fa.DateAcct
-- Aggregated amounts: (beginning) to Date
, SUM(AmtAcctDr) over facts_ToDate as AmtAcctDr
, SUM(AmtAcctCr) over facts_ToDate as AmtAcctCr
, SUM(Qty) over facts_ToDate as Qty
-- Aggregated amounts: Year to Date
, SUM(AmtAcctDr) over facts_YearToDate as AmtAcctDr_YTD
, SUM(AmtAcctCr) over facts_YearToDate as AmtAcctCr_YTD
from MV_Fact_Acct_Sum fa
window
facts_ToDate as (partition by fa.AD_Client_ID, fa.AD_Org_ID, fa.C_AcctSchema_ID, fa.PostingType, fa.Account_ID, fa.C_Tax_ID, fa.vatcode order by fa.DateAcct)
, facts_YearToDate as (partition by fa.AD_Client_ID, fa.AD_Org_ID, fa.C_AcctSchema_ID, fa.PostingType, fa.Account_ID, fa.C_Tax_ID
, fa.vatcode, fa.C_Year_ID order by fa.DateAcct)
)
SELECT --
fa.PostingType,
ev.AccountType,
fa.AmtAcctCr,
fa.AmtAcctCr_YTD,
fa.AmtAcctDr,
fa.AmtAcctDr_YTD,
fa.DateAcct,
fa.c_tax_id,
fa.vatcode,
ev.value as AccountNo,
ev.Name as AccountName
FROM filteredRecords fa
INNER JOIN C_ElementValue ev ON (ev.C_ElementValue_ID = fa.Account_ID) AND ev.isActive = 'Y'
LEFT OUTER JOIN C_Vat_Code vat on vat.C_Vat_Code_ID = p_C_Vat_Code_ID and vat.isActive = 'Y'
WHERE fa.DateAcct <= p_DateAcct
AND fa.account_id = p_Account_ID
AND fa.ad_org_id = p_AD_Org_ID
AND (CASE WHEN vat.vatcode IS NULL THEN TRUE ELSE vat.vatcode = fa.VatCode END)
)
select vatcode,
C_Tax_ID, AccountNo, AccountName,
ROW (SUM((Balance).Balance), SUM((Balance).Debit), SUM((Balance).Credit))::de_metas_acct.BalanceAmt
from (
(
select *
from (
SELECT (CASE
-- When the account is Expense/Revenue => we shall consider only the Year to Date amount
WHEN fo.AccountType IN ('E', 'R') AND
fo.DateAcct >= date_trunc('year', to_date('01.03.2019', 'dd.mm.yyyy'))
THEN ROW (fo.AmtAcctDr_YTD - fo.AmtAcctCr_YTD, fo.AmtAcctDr_YTD, fo.AmtAcctCr_YTD)::de_metas_acct.BalanceAmt
WHEN fo.AccountType IN ('E', 'R') THEN ROW (0, 0, 0)::de_metas_acct.BalanceAmt
-- For any other account => we consider from the beginning to Date amount
ELSE ROW (fo.AmtAcctDr - fo.AmtAcctCr, fo.AmtAcctDr, fo.AmtAcctCr)::de_metas_acct.BalanceAmt
END) AS Balance, AccountNo, AccountName,
C_tax_id,
vatcode,
ROW_NUMBER()
OVER (
PARTITION BY C_tax_id, vatcode
ORDER BY dateacct desc ) AS RowNo
FROM records fo
WHERE TRUE
AND fo.PostingType = 'A'
ORDER BY fo.DateAcct DESC, c_tax_id, vatcode
) as a1
where RowNo = 1
)
-- Include posting type Year End
UNION ALL
(
select *
from (
SELECT (CASE
-- When the account is Expense/Revenue => we shall consider only the Year to Date amount
WHEN fo.AccountType IN ('E', 'R') AND
fo.DateAcct >= date_trunc('year', to_date('01.03.2019', 'dd.mm.yyyy'))
THEN ROW (fo.AmtAcctDr_YTD - fo.AmtAcctCr_YTD, fo.AmtAcctDr_YTD, fo.AmtAcctCr_YTD)::de_metas_acct.BalanceAmt
WHEN fo.AccountType IN ('E', 'R') THEN ROW (0, 0, 0)::de_metas_acct.BalanceAmt
-- For any other account => we consider from the beginning to Date amount
ELSE ROW (fo.AmtAcctDr - fo.AmtAcctCr, fo.AmtAcctDr, fo.AmtAcctCr)::de_metas_acct.BalanceAmt
END) AS Balance, AccountNo, AccountName,
C_tax_id,
vatcode,
ROW_NUMBER()
OVER (
PARTITION BY C_tax_id, vatcode
ORDER BY dateacct desc ) AS RowNo
FROM records fo
WHERE TRUE
-- AND $6 = 'N' -- p_ExcludePostingTypeYearEnd
AND fo.PostingType = 'Y'
ORDER BY fo.DateAcct DESC, c_tax_id, vatcode
) as a2
where RowNo = 1
)
-- Include posting type Statistical
UNION ALL
(
select *
from (
SELECT (CASE
-- When the account is Expense/Revenue => we shall consider only the Year to Date amount
WHEN fo.AccountType IN ('E', 'R') AND
fo.DateAcct >= date_trunc('year', to_date('01.03.2019', 'dd.mm.yyyy'))
THEN ROW (fo.AmtAcctDr_YTD - fo.AmtAcctCr_YTD, fo.AmtAcctDr_YTD, fo.AmtAcctCr_YTD)::de_metas_acct.BalanceAmt
WHEN fo.AccountType IN ('E', 'R') THEN ROW (0, 0, 0)::de_metas_acct.BalanceAmt
-- For any other account => we consider from the beginning to Date amount
ELSE ROW (fo.AmtAcctDr - fo.AmtAcctCr, fo.AmtAcctDr, fo.AmtAcctCr)::de_metas_acct.BalanceAmt
END) AS Balance, AccountNo, AccountName,
C_tax_id,
vatcode,
ROW_NUMBER()
OVER (
PARTITION BY C_tax_id, vatcode
ORDER BY dateacct desc ) AS RowNo
FROM records fo
WHERE TRUE
-- AND $5 = 'Y' -- p_IncludePostingTypeStatistical
AND fo.PostingType = 'S'
ORDER BY fo.DateAcct DESC, c_tax_id, vatcode
) as a3
where RowNo = 1
)
) a
group by vatcode, C_Tax_ID, AccountNo, AccountName
$BODY$
LANGUAGE sql STABLE;
DROP FUNCTION IF EXISTS de_metas_acct.taxaccounts_details(p_AD_Org_ID numeric(10, 0),
p_Account_ID numeric,
p_C_Vat_Code_ID numeric,
p_DateFrom date,
p_DateTo date);
CREATE OR REPLACE FUNCTION de_metas_acct.taxaccounts_details(p_AD_Org_ID numeric(10, 0),
p_Account_ID numeric,
p_C_Vat_Code_ID numeric,
p_DateFrom date,
p_DateTo date)
RETURNS TABLE
(
Balance numeric,
BalanceYear numeric,
accountNo varchar,
accountName varchar,
taxName varchar,
C_Tax_ID numeric,
vatcode varchar,
C_ElementValue_ID numeric,
param_startdate date,
param_enddate date,
param_konto varchar,
param_vatcode varchar,
param_org varchar
)
AS
$BODY$
with accounts as
(
select C_ElementValue_ID
from c_elementvalue
where IsActive = 'Y'
AND CASE WHEN p_Account_ID IS NULL THEN 1 = 1 ELSE C_ElementValue_ID = p_Account_ID END
),
balanceRecords AS
(
Select b.*, a.C_ElementValue_ID
from accounts a
join de_metas_acct.balanceToDate(p_AD_Org_ID,
C_ElementValue_ID,
p_DateTo,
p_C_Vat_Code_ID) as b on 1 = 1
),
balanceRecords_dateFrom AS
(
Select b.*, a.C_ElementValue_ID
from accounts a
join de_metas_acct.balanceToDate(p_AD_Org_ID,
C_ElementValue_ID,
p_DateFrom,
p_C_Vat_Code_ID) as b on 1 = 1
),
balance AS
(
Select (coalesce((b2.Balance).Balance, 0) - coalesce((b1.Balance).Balance, 0)) as Balance,
coalesce((b2.Balance).Balance, 0) as YearBalance,
b2.accountno,
b2.accountname,
b2.C_Tax_ID,
b2.vatcode,
b2.C_ElementValue_ID
from balanceRecords b2
left join balanceRecords_dateFrom b1 on b1.c_elementvalue_id = b2.c_elementvalue_id
and b1.accountno = b2.accountno
and b1.accountname = b2.accountname
and coalesce(b1.vatcode, '') = coalesce(b2.vatcode, '')
and coalesce(b1.c_tax_id, 0) = coalesce(b2.c_tax_id, 0)
where (b2.Balance).Debit > 0
or (b2.Balance).Credit > 0
)
select Balance,
YearBalance,
b.accountno,
b.accountname,
t.Name as taxName,
b.C_Tax_ID,
b.vatcode,
b.C_ElementValue_ID,
p_DateFrom AS param_startdate,
p_DateTo AS param_enddate,
(CASE
WHEN p_Account_ID IS NULL
THEN NULL
ELSE (SELECT value || ' - ' || name
from C_ElementValue
WHERE C_ElementValue_ID = p_Account_ID
and isActive = 'Y') END) AS param_konto,
(CASE
WHEN p_C_Vat_Code_ID IS NULL
THEN NULL
ELSE (SELECT vatcode
FROM C_Vat_Code
WHERE C_Vat_Code_ID = p_C_Vat_Code_ID
and isActive = 'Y') END) AS param_vatcode,
(CASE
WHEN p_AD_Org_ID IS NULL
THEN NULL
ELSE (SELECT name
from ad_org
where ad_org_id = p_AD_Org_ID
and isActive = 'Y') END) AS param_org
from balance as b
left outer join C_Tax t on t.C_tax_ID = b.C_tax_ID
order by vatcode, accountno
$BODY$
LANGUAGE sql STABLE;
DROP FUNCTION IF EXISTS report.tax_accounting_report_details(IN p_dateFrom date,
IN p_dateTo date,
IN p_vatcode varchar,
IN p_account_id numeric,
IN p_c_tax_id numeric,
IN p_org_id numeric,
IN p_ad_language character varying(6));
CREATE OR REPLACE FUNCTION report.tax_accounting_report_details(IN p_dateFrom date,
IN p_dateTo date,
IN p_vatcode varchar,
IN p_account_id numeric,
IN p_c_tax_id numeric,
IN p_org_id numeric,
IN p_ad_language character varying(6))
RETURNS TABLE
(
vatcode character varying(10),
kontono character varying(40),
kontoname character varying(60),
dateacct date,
documentno character varying(40),
taxname character varying(60),
taxrate numeric,
bpName character varying,
taxbaseamt numeric,
taxamt numeric,
taxamtperaccount numeric,
IsTaxLine character(1),
iso_code character(3),
param_startdate date,
param_enddate date,
param_konto character varying,
param_vatcode character varying,
param_org character varying,
C_Tax_ID numeric,
account_id numeric,
ad_org_id numeric
)
AS
$$
SELECT DISTINCT ON (x.vatcode, x.kontono, x.kontoname, x.dateacct, x.documentno, x.taxname, x.taxrate, x.bpName, x.IsTaxLine, x.iso_code) x.vatcode,
x.kontono,
x.kontoname,
x.dateacct :: date,
x.documentno,
x.taxname,
x.taxrate,
x.bpName,
COALESCE(
COALESCE(
coalesce(x.inv_baseamt, x.gl_baseamt),
x.hdr_baseamt,
0 :: numeric)) as taxbaseamt,
COALESCE(
COALESCE(
coalesce(x.inv_taxamt, x.gl_taxamt),
x.hdr_taxamt,
0 :: numeric)) as taxamt,
taxamtperaccount,
IsTaxLine,
x.iso_code,
x.p_dateFrom as param_startdate,
x.p_dateTo as param_endtdate,
x.param_konto,
x.param_vatcode,
x.param_org,
x.C_Tax_ID,
x.account_id,
x.ad_org_id
FROM (
SELECT ev.value AS kontono,
ev.name AS kontoname,
fa.dateacct,
fa.documentno,
tax.name AS taxname,
tax.rate AS taxrate,
bp.name as bpName,
i.taxbaseamt AS inv_baseamt,
gl.taxbaseamt AS gl_baseamt,
hdr.taxbaseamt AS hdr_baseamt,
i.taxamt AS inv_taxamt,
gl.taxamt AS gl_taxamt,
hdr.taxamt AS hdr_taxamt,
(case
when fa.line_id is null and fa.C_Tax_id is not null
then (fa.amtacctdr - fa.amtacctcr)
else 0
end) AS taxamtperaccount,
c.iso_code,
(case
when fa.line_id is null and fa.C_Tax_id is not null
then 'Y'
else 'N'
end) AS IsTaxLine,
fa.vatcode AS vatcode,
p_dateFrom,
p_dateTo,
(CASE
WHEN p_account_id IS NULL
THEN NULL
ELSE (SELECT value || ' - ' || name
from C_ElementValue
WHERE C_ElementValue_ID = p_account_id
and isActive = 'Y') END) AS param_konto,
(CASE
WHEN p_vatcode IS NULL
THEN NULL
ELSE p_vatcode END) AS param_vatcode,
(CASE
WHEN p_org_id IS NULL
THEN NULL
ELSE (SELECT name
from ad_org
where ad_org_id = p_org_id
and isActive = 'Y') END) AS param_org,
fa.C_Tax_ID,
fa.account_id,
fa.ad_org_id
FROM public.fact_acct fa
-- gh #489: explicitly select from public.fact_acct, bacause the function de_metas_acct.Fact_Acct_EndingBalance expects it.
JOIN c_elementvalue ev ON ev.c_elementvalue_id = fa.account_id and ev.isActive = 'Y'
JOIN c_tax tax ON fa.c_tax_id = tax.c_tax_id and tax.isActive = 'Y'
LEFT JOIN C_Currency c on fa.c_Currency_ID = c.C_Currency_ID
LEFT OUTER JOIN c_bpartner bp on fa.c_bpartner_id = bp.c_bpartner_id
--Show all accounts, not only tax accounts
LEFT OUTER JOIN (select distinct vc.Account_ID as C_ElementValue_ID
from C_Tax_Acct ta
inner join C_ValidCombination vc on (vc.C_ValidCombination_ID in
(ta.T_Liability_Acct,
ta.T_Receivables_Acct, ta.T_Due_Acct,
ta.T_Credit_Acct, ta.T_Expense_Acct))
and vc.isActive = 'Y'
where ta.isActive = 'Y'
) ta ON ta.C_ElementValue_ID = ev.C_ElementValue_ID
--if invoice
LEFT OUTER JOIN
(SELECT (case
when dt.docbasetype <> 'APC'
then inv_tax.taxbaseamt
else (-1) * inv_tax.taxbaseamt
end) as taxbaseamt,
(case
when dt.docbasetype <> 'APC'
then inv_tax.taxamt
else (-1) * inv_tax.taxamt
end) as taxamt,
i.c_invoice_id,
inv_tax.c_tax_id
FROM c_invoice i
JOIN C_InvoiceTax inv_tax on i.c_invoice_id = inv_tax.c_invoice_id and inv_tax.isActive = 'Y'
join C_DocType dt on dt.C_DocType_ID = i.C_DocTypeTarget_id
WHERE i.isActive = 'Y'
) i ON fa.record_id = i.c_invoice_id AND fa.ad_table_id = get_Table_Id('C_Invoice') AND
i.c_tax_id = fa.c_tax_id
--if gl journal
LEFT OUTER JOIN (SELECT (CASE
WHEN gll.dr_autotaxaccount = 'Y'
THEN gll.dr_taxbaseamt
WHEN cr_autotaxaccount = 'Y'
THEN gll.cr_taxbaseamt END) AS taxbaseamt,
(CASE
WHEN gll.dr_autotaxaccount = 'Y'
THEN gll.dr_taxamt
WHEN cr_autotaxaccount = 'Y'
THEN gll.cr_taxamt END) AS taxamt,
gl.gl_journal_id,
gll.gl_journalline_id,
COALESCE(gll.dr_tax_id, gll.cr_tax_id) AS tax_id
FROM gl_journal gl
JOIN GL_JournalLine gll
ON gl.gl_journal_id = gll.gl_journal_id and gll.isActive = 'Y'
WHERE gl.isActive = 'Y'
) gl ON fa.record_id = gl.gl_journal_id AND fa.ad_table_id = get_Table_Id('GL_Journal') AND
gl.gl_journalline_id = fa.line_id AND gl.tax_id = fa.c_tax_id
--if allocationHdr
LEFT OUTER JOIN (
SELECT hdr.C_AllocationHdr_ID,
hdrl.C_AllocationLine_ID,
0 :: numeric as taxbaseamt,
-- leave taxbaseamt empty for now in allocationhdr
0 :: numeric as taxamt -- leave taxamt empty for now in allocationhdr
FROM C_AllocationHdr hdr
JOIN C_AllocationLine hdrl
on hdr.C_AllocationHdr_ID = hdrl.C_AllocationHdr_ID and hdrl.isActive = 'Y'
WHERE hdr.isActive = 'Y'
) hdr
ON hdr.C_AllocationHdr_ID = fa.record_id AND
fa.ad_table_id = get_Table_Id('C_AllocationHdr') AND
fa.line_id = hdr.C_AllocationLine_ID
WHERE fa.DateAcct >= p_dateFrom
AND fa.DateAcct <= p_dateTo
AND fa.postingtype IN ('A', 'Y')
AND fa.ad_org_id = p_org_id
AND (CASE
WHEN p_vatcode IS NULL
THEN TRUE
ELSE fa.VatCode = p_vatcode END)
AND (CASE
WHEN p_account_id IS NULL
THEN TRUE
ELSE p_account_id = fa.account_id END)
AND (CASE
WHEN p_c_tax_id IS NULL
THEN (fa.C_Tax_id is null)
ELSE p_c_tax_id = fa.C_Tax_id END)
AND fa.isActive = 'Y'
) x
ORDER BY x.vatcode, x.kontono, x.kontoname, x.dateacct, x.documentno, x.taxname, x.taxrate, x.bpName
$$
LANGUAGE sql
STABLE; | the_stack |
-----------------------------------------------------------------------------
-- (c) Copyright IBM Corp. 2007 All rights reserved.
--
-- The following sample of source code ("Sample") is owned by International
-- Business Machines Corporation or one of its subsidiaries ("IBM") and is
-- copyrighted and licensed, not sold. You may use, copy, modify, and
-- distribute the Sample in any form without payment to IBM, for the purpose of
-- assisting you in the development of your applications.
--
-- The Sample code is provided to you on an "AS IS" basis, without warranty of
-- any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR
-- IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions do
-- not allow for the exclusion or limitation of implied warranties, so the above
-- limitations or exclusions may not apply to you. IBM shall not be liable for
-- any damages you suffer as a result of using, copying, modifying or
-- distributing the Sample, even if IBM has been advised of the possibility of
-- such damages.
-----------------------------------------------------------------------------
--
-- SAMPLE FILE NAME: databaseroles.db2
--
-- PURPOSE : To demonstrate how database roles can be used in DB2 LUW.
--
-- USAGE SCENARIO : In an enterprise, each employee has certain privileges
-- based on his/her role in each department. When an
-- employee joins, leaves or moves to or from a different
-- department, permissions need to be
-- granted, revoked, or transferred on department specific
-- database objects individually. This sample demonstrates
-- how all these can easily be done in single statement using
-- roles.
--
-- The sample uses a scenario of an enterprise with three
-- departments DEVELOPMENT, TESTING, and SALES and three new
-- employees JOE, BOB, and PAT, joining the three departments
-- respectively. Employees for each department should have
-- access to only department specific information (tables)
-- and in case an employee gets transferred to another
-- department or leaves the enterprise, the permissions need
-- to be modified accordingly. The sample demonstrates how
-- the enterprise DBA's task of modifying permission on
-- different database objects for different users can be
-- simplified by the creation of database roles.
--
-- PREREQUISITE : The following users should exist in the operating system.
--
-- newton with password "Way2discoveR" in SYSADM group.
-- john with password "john123456"
-- joe with password "joe123456"
-- bob with password "bob123456"
-- pat with password "pat123456"
--
--
-- EXECUTION : db2 -tvf databaseroles.db2
--
-- INPUTS : NONE
--
-- OUTPUTS : Roles will be created and dropped in the database.
--
-- OUTPUT FILE : databaseroles.out (available in the online documentation)
--
-- DEPENDENCIES : NONE
--
-- SQL STATEMENTS USED:
-- CREATE ROLE
-- CREATE TABLE
-- CRETE VIEW
-- CONNECT
-- DROP
-- GRANT
-- INSERT
-- REVOKE
-- SELECT
-- TRANSFER
-- ****************************************************************************
-- For more information about the command line processor (CLP) scripts,
-- see the README file.
-- For information on using SQL statements, see the SQL Reference.
--
-- For the latest information on programming, building, and running DB2
-- applications, visit the DB2 application development website:
-- http://www.software.ibm.com/data/db2/udb/ad
-- ****************************************************************************
-- SAMPLE DESCRIPTION
-- ****************************************************************************
-- 1: How to GRANT select privilege to users through ROLES.
-- 2. How to replace GROUPS with ROLES.
-- 3: How to transfer ownership of database objects.
-- 4: How to REVOKE privileges from roles.
-- 5: How to build a role hierarchy.
-- 6: GRANT-ing and REVOKE-ing WITH ADMIN OPTIONS to and from an
-- authorization ID.
-- ****************************************************************************
-- ****************************************************************************
-- SETUP
-- ****************************************************************************
CONNECT TO sample;
-- Create tables TEMP_EMPLOYEE and TEMP_DEPARTMENT under 'newton' schema.
CREATE TABLE newton.TEMP_EMPLOYEE LIKE EMPLOYEE;
CREATE TABLE newton.TEMP_DEPARTMENT LIKE DEPARTMENT;
-- Populate the above created tables with the data from EMPLOYEE & DEPARTMENT tables.
-- export the table data to file 'load_employee.ixf'.
EXPORT TO load_employee.ixf OF IXF SELECT * FROM EMPLOYEE;
-- loading data from data file inserting data into the table TEMP_EMPLOYEE.
LOAD FROM load_employee.ixf of IXF INSERT INTO newton.TEMP_EMPLOYEE;
-- export the table data to file 'load_department.ixf'.
EXPORT TO load_department.ixf OF IXF SELECT * FROM DEPARTMENT;
-- loading data from data file inserting data into the table TEMP_DEPARTMENT.
LOAD FROM load_department.ixf of IXF INSERT INTO newton.TEMP_DEPARTMENT;
-- ----------------------------------------------------------------------------
-- 1: How to GRANT select privilege to users through ROLES.
-- ----------------------------------------------------------------------------
-- Usage scenario :
-- The code below shows how to GRANT/REVOKE select privilege to users JOE and
-- BOB through role DEVELOPMENT_ROLE. User JOHN, who is a
-- security administrator(SECADM), creates a role DEVELOPMENT_ROLE and grants
-- employees JOE and BOB, working in department DEVELOPMENT, SELECT privilege
-- on tables DEV_TABLE1 and DEV_TABLE2 via DEVELOPMENT_ROLE.
-- The sample also shows how REVOKING of the DEVELOPMENT_ROLE from employees
-- JOE and BOB causes employees JOE and BOB to lose SELECT privilege on
-- tables DEV_TABLE1 and DEV_TABLE2. At this point, if employees JOE and
-- BOB try to perform a select operation on tables DEV_TABLE1 and DEV_TABLE2,
-- the select statement will fail. The sample also shows when a new
-- employee PAT joins department DEVELOPMENT, she is granted SELECT privilege
-- on the two development tables via DEVELOPMENT_ROLE.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user NEWTON.
CONNECT TO sample user newton using Way2discoveR;
-- Grant SECADM authority to a user JOHN.
GRANT SECADM ON DATABASE TO USER john;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO sample USER john USING john123456;
-- Create role DEVELOPMENT_ROLE. Only a user with SECADM authority can create
-- the role. In this sample user JOHN is assigned SECADM authority and has
-- the privilege to create the roles.
CREATE ROLE development_role;
-- Create tables DEV_TABLE1 and DEV_TABLE2. Any user can create these tables.
-- In the sample these tables are created by user JOHN.
CREATE TABLE dev_table1 (project VARCHAR(25), dept_no INT);
INSERT INTO dev_table1 VALUES ('DB0', 1);
CREATE TABLE dev_table2 (defect_no INT, scheme_repository VARCHAR(25));
INSERT INTO dev_table2 VALUES (100, 'wsdbu');
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user NEWTON(SYSADM).
-- User NEWTON is system administrator(SYSADM).
CONNECT TO sample user newton using Way2discoveR;
-- Grant SELECT privilege on tables DEV_TABLE1 and DEV_TABLE2 to role
-- DEVELOPMENT_ROLE.
GRANT SELECT ON TABLE john.dev_table1
TO ROLE development_role;
GRANT SELECT ON TABLE john.dev_table2
TO ROLE development_role;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO sample user john using john123456;
-- Grant role DEVELOPMENT_ROLE to users JOE and BOB.
GRANT ROLE development_role TO USER joe, USER bob;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOE.
CONNECT TO sample USER joe USING joe123456;
-- User JOE is granted DEVELOPMENT_ROLE role and hence gains select privilege
-- on the tables DEV_TABLE1 and DEV_TABLE2 through membership of this role.
-- SELECT from tables DEV_TABLE1 and DEV_TABLE2 to verify user JOHN has
-- select privileges.
SELECT * FROM john.dev_table1;
SELECT * FROM john.dev_table2;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user BOB
CONNECT TO sample USER bob USING bob123456;
-- User BOB is granted DEVELOPMENT_ROLE role and hence gains select privilege
-- on the tables DEV_TABLE1 and DEV_TABLE2 through membership of this role.
-- SELECT from tables DEV_TABLE1 and DEV_TABLE2 to verify user BOB has select
-- privileges.
SELECT * FROM john.dev_table1;
SELECT * FROM john.dev_table2;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO sample user john using john123456;
-- REVOKE the role DEVELOPMENT_ROLE from users JOE and BOB.
REVOKE ROLE development_role FROM USER joe, USER bob;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOE.
CONNECT TO sample USER joe USING joe123456;
-- The following two SELECT statements will fail. Users JOE cannot perform
-- SELECT on the tables DEV_TABLE1 and DEV_TABLE2 now. JOE has lost SELECT
-- privilege on these tables as role DEVELOPMENT_ROLE was revoked from him.
-- Error displayed for the following SELECT statement will be :
-- SQL0551N "JOE" does not have the privilege to perform operation "SELECT"
-- on object "JOHN.DEV_TABLE1". SQLSTATE=42501
SELECT * FROM john.dev_table1;
!echo "Above error is expected !";
-- Error displayed for the following SELECT statement will be :
-- SQL0551N "JOE" does not have the privilege to perform operation "SELECT"
-- on object "JOHN.DEV_TABLE2". SQLSTATE=42501
SELECT * FROM john.dev_table2;
!echo "Above error is expected !";
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user BOB
CONNECT TO sample USER bob USING bob123456;
-- The following two SELECT statements will fail as user BOB has lost SELECT
-- privilege on these tables as the role DEVELOPMENT_ROLE was revoked
-- from him.
-- Error displayed for the following SELECT statement will be :
-- SQL0551N "BOB" does not have the privilege to perform operation "SELECT"
-- on object "JOHN.DEV_TABLE1". SQLSTATE=42501
SELECT * FROM john.dev_table1;
!echo "Above error is expected !";
-- Error displayed for the following SELECT statement will be :
-- SQL0551N "BOB" does not have the privilege to perform operation "SELECT"
-- on object "JOHN.DEV_TABLE2". SQLSTATE=42501
SELECT * FROM john.dev_table2;
!echo "Above error is expected !";
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN.
CONNECT TO sample USER john USING john123456;
-- Grant role DEVELOPMENT_ROLE to new employee PAT.
-- Once this is done, PAT can SELECT from tables DEV_TABLE1
-- and DEV_TABLE2.
GRANT ROLE development_role TO USER pat;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user PAT.
CONNECT TO sample USER pat USING pat123456;
-- The following two SELECT statements will be successful.
SELECT * FROM john.dev_table1;
SELECT * FROM john.dev_table2;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO sample USER john USING john123456;
-- Drop the tables.
DROP TABLE dev_table1;
DROP TABLE dev_table2;
-- Drop the role. Only a user having SECADM authority can drop the role.
DROP ROLE development_role;
-- Disconnect from sample database.
CONNECT RESET;
-- ----------------------------------------------------------------------------
-- 2. How to replace GROUPS with ROLES.
-- ----------------------------------------------------------------------------
-- Usage scenario:
-- Assume there are three groups DEVELOPER_G, TESTER_G, and SALES_G and three
-- users (BOB, JOE and PAT) defined in the operating system.
-- BOB belongs to group DEVELOPER_G and SALES_G, JOE
-- belongs to group TESTER_G and SALES_G and PAT belongs to group TESTER_G.
-- Roles DEVELOPER, TESTER and SALES will be created and used instead of groups
-- DEVELOPER_G, TESTER_G, and SALES_G respectively . In this scenario, all the
-- privileges held by GROUPS will be granted to appropriate ROLES and revoked
-- from the GROUPS. This leaves the users with the same privileges but now
-- held through ROLES instead of GROUPS.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user JOHN.
CONNECT TO sample USER john USING john123456;
-- Create roles DEVELOPER, TESTER and SALES.
CREATE ROLE developer;
CREATE ROLE tester;
CREATE ROLE sales;
-- Grant role DEVELOPER to user BOB.
GRANT ROLE developer TO USER bob;
-- Grant role TESTER to users JOE and PAT.
GRANT ROLE tester TO USER joe, USER pat;
-- Grant role SALES to users JOE and BOB.
GRANT ROLE sales TO USER joe, USER bob;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user BOB.
CONNECT TO SAMPLE USER bob USING bob123456;
-- Create table TEMP1.
CREATE TABLE temp1 (a int);
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user Newton(SYSADM)so that he can grant
-- ALTER privilege to role DEVELOPER. (DBADM can also grant ALTER privilege).
CONNECT TO SAMPLE USER newton USING Way2discoveR;
-- Grant ALTER privilege on table TEMP1 to role DEVELOPER. NEWTON(SYSADM)
-- (also DBADM) can grant the ALTER privilege on tables.
-- Once ALTER privilege is granted to role DEVELOPER, any user who
-- is part of role DEVELOPER can ALTER this table. So in this sample,
-- user BOB can perform an alter operation on table TEMP1. Users belonging to
-- other roles cannot perform alter operation on TEMP1 unless they have
-- privilege granted.
GRANT ALTER ON bob.temp1 TO ROLE developer;
CONNECT RESET;
-- The following statements show that a trigger TRG1 will be created
-- when user BOB holds the privilege through role DEVELOPER. But this is
-- not possible if user BOB is part of group DEVELOPER_G.
-- Connect to sample database using user BOB.
CONNECT TO SAMPLE USER bob using bob123456;
-- Create trigger TRG1. The following statements show that trigger TRG1 can
-- only be created by user BOB, as he holds the privilege through role
-- DEVELOPER. But this is not possible if user BOB holds the necessary
-- privileges through a group.
CREATE TRIGGER trg1 AFTER DELETE ON bob.temp1
FOR EACH STATEMENT MODE DB2SQL INSERT INTO bob.temp1 VALUES (1);
-- Drop the table TEMP1.
DROP TABLE bob.temp1;
-- Drop the trigger TRG1.
DROP trigger trg1;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john using john123456;
-- Drop the roles. Only a user with SECADM authority can drop the roles.
-- In this sample, user JOHN(SECADM) can only drop the roles.
DROP ROLE developer;
DROP ROLE tester;
DROP ROLE sales;
-- Disconnect from sample database.
CONNECT RESET;
-- ----------------------------------------------------------------------------
-- 3: How to transfer ownership of database objects.
-- ----------------------------------------------------------------------------
-- Usage scenario:
-- Consider the tables TEMP_EMPLOYEE and TEMP_DEPARTMENT in the sample database. User BOB
-- creates a view EMP_DEPT on tables TEMP_EMPLOYEE and TEMP_DEPARTMENT.
-- The user JOHN(SECADM) creates a role EMP_DEPT_ROLE which is granted SELECT
-- privilege on table TEMP_EMPLOYEE and TEMP_DEPARTMENT. The sample shows how to transfer
-- ownership of view BOB.EMP_DEPT, which depends on tables TEMP_EMPLOYEE and
-- TEMP_DEPARTMENT, to new user JOE. For the TRANSFER to work, new user JOE must
-- hold SELECT privilege on the above two table.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- Create role EMP_DEPT_ROLE.
CREATE ROLE emp_dept_role;
-- Disconnect from sample database.
CONNECT RESET;
-- User NEWTON(SYSADM) grants SELECT privilege on tables TEMP_EMPLOYEE and TEMP_DEPARTMENT
-- to role EMP_DEPT_ROLE.
-- Connect to sample database using user NEWTON.
CONNECT TO sample user newton using Way2discoveR;
GRANT SELECT ON TABLE newton.temp_employee
TO ROLE emp_dept_role;
GRANT SELECT ON TABLE newton.temp_department
TO ROLE emp_dept_role;
-- Disconnect from sample database.
CONNECT RESET;
-- To transfer ownership of view EMP_DEPT(created below), BOB must hold SELECT
-- privilege on table TEMP_EMPLOYEE and table TEMP_DEPARTMENT.
-- Since role EMP_DEPT_ROLE has these privileges, role EMP_DEPT_ROLE
-- is granted to user BOB using the statement, below.
-- For the TRANSFER to work, new user JOE must also hold SELECT privilege on
-- the above two tables. Hence user JOHN(SECADM) grants SELECT privilege
-- to user JOE also.
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
GRANT ROLE emp_dept_role TO USER bob, USER joe;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user BOB.
CONNECT TO SAMPLE USER bob USING bob123456;
-- User BOB creates a view EMP_DEPT which depends upon tables
-- TEMP_EMPLOYEE and TEMP_DEPARTMENT.
-- Create view EMP_DEPT using tables TEMP_EMPLOYEE and TEMP_DEPARTMENT.
CREATE VIEW emp_dept AS SELECT * FROM newton.temp_employee, newton.temp_department;
-- Transfer view EMP_DEPT to user JOE from user BOB.
TRANSFER OWNERSHIP OF VIEW bob.emp_dept TO USER joe PRESERVE PRIVILEGES;
-- Connect to sample database using user JOE.
CONNECT TO SAMPLE USER joe using joe123456;
-- After the TANSFER is done,user BOB cannot drop the view. Only new user JOE,
-- who is current owner of the view, can drop it.
DROP VIEW bob.emp_dept;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john using john123456;
-- User JOHN(SECADM) drops the role.
DROP ROLE emp_dept_role;
-- Disconnect from sample database.
CONNECT RESET;
-- ----------------------------------------------------------------------------
-- 4: How to REVOKE privileges from roles.
-- ----------------------------------------------------------------------------
-- Usage scenario:
-- To show the effect on a user~Rs access privilege to a database object, if
-- some privileges are revoked from an authorization ID and privileges are
-- held only through a role. User JOE creates a table TEMP_TABLE.
-- User JOHN(SECADM) creates a role DEVELOPER and is grants it to user BOB.
-- User NEWTON(SYSADM) grants SELECT and INSERT privileges on table JOE.TEMP_TABLE to
-- PUBLIC and to role DEVELOPER. User BOB creates a view VIEW_TEMP which is
-- dependent on table JOE.TEMP_TABLE. The sample shows what happens to
-- user BOB's access privilege when SELECT privilege is revoked from PUBLIC
-- and from role developer.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user JOE.
CONNECT TO SAMPLE USER joe USING joe123456;
-- Create table TEMP_TABLE.
CREATE TABLE temp_table (x int);
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- Create role DEVELOPER.
CREATE ROLE developer;
-- Grant role DEVELOPER to user BOB
GRANT ROLE developer TO USER bob;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user NEWTON(SYSADM).
CONNECT TO SAMPLE USER newton using Way2discoveR;
-- Grant SELECT and INSERT privileges on table TEMP_TABLE to PUBLIC and
-- to role DEVELOPER. Only a user with SYSADM or DBADM authority can grant
-- the privileges on the table.
-- In this sample, the user NEWTON(SYSADM)can grant the SELECT and the INSERT
-- privileges on the table TEMP_TABLE to PUBLIC and to role DEVELOPER.
GRANT SELECT ON TABLE joe. temp_table TO PUBLIC;
GRANT INSERT ON TABLE joe. temp_table TO PUBLIC;
GRANT SELECT ON TABLE joe. temp_table
TO ROLE developer;
GRANT INSERT ON TABLE joe. temp_table
TO developer;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database uing user BOB.
CONNECT TO SAMPLE USER bob USING bob123456;
-- Create a view VIEW_TEMP on the table TEMP_TABLE.
CREATE VIEW view_temp
AS SELECT * FROM joe.temp_table;
-- Disconnect form sample database.
CONNECT RESET;
-- Connect to sample database using user NEWTON(SYSADM).
CONNECT TO SAMPLE USER newton using Way2discoveR;
-- If SELECT privilege on table JOE.TEMP_TABLE is revoked from PUBLIC,
-- the view, BOB.VIEW_TEMP will still be accessible by users who are
-- part of the role DEVELOPER.
REVOKE SELECT ON joe. temp_table FROM PUBLIC;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user NEWTON(SYSADM).
CONNECT TO sample USER newton USING Way2discoveR;
-- If SELECT privilege on table JOE.TEMP_TABLE is revoked from the role
-- DEVELOPER, user BOB will lose SELECT privilege on the table JOE.TEMP_TABLE
-- because required privileges are not held through either role DEVELOPER
-- or any other means.
REVOKE SELECT ON TABLE joe. temp_table FROM ROLE developer;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user BOB.
CONNECT TO sample USER bob USING bob123456;
-- Drop a view VIEW_TEMP.
DROP VIEW bob.view_temp;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOE.
CONNECT TO SAMPLE USER joe USING joe123456;
-- Drop a table TEMP_TABLE.
DROP TABLE joe.temp_table;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- Drop a role DEVELOPER.
DROP ROLE developer;
-- Disconnect from sample database.
CONNECT RESET;
-- ----------------------------------------------------------------------------
-- 5: How to build a role hierarchy.
-- ----------------------------------------------------------------------------
-- Usage scenario:
-- The following sample demonstrates how to represent hierarchy levels
-- in an enterprise by building a role hierarchy.
-- Consider an enterprise having the following roles: MANAGER, TECH_LEAD and
-- DEVELOPER. A role hierarchy is built by granting a role to another role, but
-- without creating cycles. Role DEVELOPER will be granted to role TECH_LEAD,
-- and role TECH_LEAD will be granted to role MANAGER. Granting role MANAGER to
-- role DEVELOPER will create a cycle and it is not allowed.
-- By building a hierarchy, role MANAGER will have all the privileges of roles
-- DEVELOPER and TECH_LEAD along with the privileges granted to it directly.
-- Role TECH_LEAD will have privileges of role DEVELOPER and the privileges
-- granted to it directly. Role DEVELOPER will just have the privileges granted
-- to it. Later, depending upon the enterprise needs, each role can be granted
-- to specific employees to form the hierarchy.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- Create roles MANAGER, TECH_LEAD and DEVELOPER.
CREATE ROLE manager;
CREATE ROLE tech_lead;
CREATE ROLE developer;
-- These two statements create a role hierarchy.
GRANT ROLE developer TO ROLE tech_lead;
GRANT ROLE tech_lead TO ROLE manager;
-- Drop roles MANAGER, TECH_LEAD and DEVELOPER.
DROP ROLE manager;
DROP ROLE tech_lead;
DROP ROLE developer;
-- Disconnect from sample database.
CONNECT RESET;
-- ----------------------------------------------------------------------------
-- 6: GRANT-ing and REVOKE-ing WITH ADMIN OPTIONS to and from an
-- authorization ID.
-- ----------------------------------------------------------------------------
-- Usage scenario:
-- A security administrator will create role DEVELOPER and grant it to user JOE
-- using WITH ADMIN OPTION. Once the ADMIN OPTION is granted to user JOE, he can
-- GRANT or REVOKE role DEVELOPER to or from another user BOB who is a member of
-- this role. But JOE will not get the authority to drop role DEVELOPER or to
-- grant ADMIN OPTION to another user. User JOE is not allowed to REVOKE the
-- ADMIN OPTION from role DEVELOPER because he does not have SECADM authority.
-- A security administrator can revoke the ADMIN OPTION from role DEVELOPER,
-- and user JOE will still have role DEVELOPER granted.
-- If a SECADM revokes the role DEVELOPER from the user JOE, the user JOE will
-- lose all the privileges he has received by being a member of role DEVELOPER
-- and the ADMIN OPTION on role DEVELOPER if this was held.
-- ----------------------------------------------------------------------------
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- Create role DEVELOPER.
CREATE ROLE developer;
-- Grant role DEVELOPER to user JOE and give the WITH ADMIN privilege.
GRANT ROLE developer TO USER joe WITH ADMIN OPTION;
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOE.
CONNECT TO SAMPLE USER joe USING joe123456;
-- The following statements will be successful because user JOE has the
-- WITH ADMIN privileges on role DEVELOPER.
-- User JOE can GRANT and REVOKE ROLE to/from the other users.
GRANT ROLE developer TO USER bob;
REVOKE ROLE developer FROM USER bob;
-- The following statement will fail since user JOE doesn't have the privilege
-- to drop the role DEVELOPER. Only user JOHN(SECADM) is allowed to drop the
-- role.
-- Error displayed will be:
-- SQL0552N "JOE" does not have the privilege to perform operation
-- "DROP ROLE". SQLSTATE=42502
DROP ROLE developer;
!echo "Above error is expected!";
-- The following statement will fail because user JOE cannot GRANT/REVOKE
-- the role DEVELOPER to another user by using the WITH ADMIN OPTION clause.
-- Only a SECADM can grant/revoke the WITH ADMIN OPTION.
-- Error displayed will be:
-- SQL0551N .JOE" does not have the privilege to perform operation
-- "GRANT/REVOKE" on object "DEVELOPER". SQLSTATE=42501
GRANT ROLE DEVELOPER TO USER bob WITH ADMIN OPTION;
!echo "Above error is expected!";
REVOKE ADMIN OPTION FOR ROLE developer FROM USER bob;
!echo "Above error is expected!";
-- Disconnect from sample database.
CONNECT RESET;
-- Connect to sample database using user JOHN(SECADM).
CONNECT TO SAMPLE USER john USING john123456;
-- The following statement will be successful because user JOHN(SECADM)
-- is executing it.
-- With the command below, only ADMIN OPTION is revoked, role DEVELOPER is
-- still granted to user JOE.
REVOKE ADMIN OPTION FOR ROLE developer FROM USER joe;
-- Revoke role DEVELOPER from user JOE.
REVOKE ROLE developer FROM USER joe;
-- Drop a role.
DROP ROLE developer;
-- Disconnect from sample database.
CONNECT RESET;
-- ****************************************************************************
-- CLEAN UP
-- ****************************************************************************
-- Drop the temporary tables created.
CONNECT TO SAMPLE;
DROP TABLE newton.TEMP_EMPLOYEE;
DROP TABLE newton.TEMP_DEPARTMENT;
TERMINATE; | the_stack |
set query_dop=1002;
create schema nodegroup_multigroup_test;
set current_schema = nodegroup_multigroup_test;
create node group ngroup1 with (datanode1, datanode3, datanode5, datanode7);
create node group ngroup2 with (datanode2, datanode4, datanode6, datanode8, datanode10, datanode12);
create node group ngroup3 with (datanode1, datanode2, datanode3, datanode4, datanode5, datanode6);
-- insert select
create table t1ng1(c1 int, c2 int) distribute by hash(c1) to group ngroup1;
create table t1ng2(c1 int, c2 int) distribute by hash(c1) to group ngroup2;
create table t1ng3(c1 int, c2 int) distribute by hash(c1) to group ngroup3;
insert into t1ng1 select v,v from generate_series(1,30) as v;
insert into t1ng2 select * from t1ng1;
insert into t1ng3 select * from t1ng2;
set enable_nodegroup_explain = on;
-- test Hash Join
set enable_hashjoin=true;
set enable_mergejoin=false;
set enable_nestloop=false;
set expected_computing_nodegroup='group1';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
set expected_computing_nodegroup='ngroup1';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
set expected_computing_nodegroup='ngroup2';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
-- test MergeJoin
set enable_hashjoin=false;
set enable_mergejoin=true;
set enable_nestloop=false;
set expected_computing_nodegroup='group1';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
set expected_computing_nodegroup='ngroup1';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
set expected_computing_nodegroup='ngroup2';
-- T1's distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c1 order by 1;
-- T1's distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c1 = t2.c2 order by 1;
-- T1's none-distribution key join T2's distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c1 order by 1;
-- T1's none-distribution key join T2's none-distribution key
explain (costs off) select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
select * from t1ng1 as t1 join t1ng2 as t2 on t1.c2 = t2.c2 order by 1;
drop table t1ng1;
drop table t1ng2;
drop table t1ng3;
reset expected_computing_nodegroup;
drop node group ngroup1;
drop node group ngroup2;
drop node group ngroup3;
/*
* Test BROADCAST can work with REDISTRIBUTION
* proposed by Yonghua
*/
create node group ng1 with(datanode2, datanode3);
create node group ng2 with(datanode1, datanode4);
create node group ng3 with(datanode1, datanode2, datanode3, datanode4, datanode5, datanode6, datanode7, datanode8);
create table t1ng1(c1 int, c2 int) distribute by hash(c1) to group ng1;
create table t1ng2(c1 int, c2 int) distribute by hash(c1) to group ng2;
insert into t1ng1 select v,v%5 from generate_series(1,10) as v;
insert into t1ng2 select v,v%5 from generate_series(1,10) as v;
-- TODO, fix me as we have some issues support ANALYZE nodegorup table, so just hack statistics
update pg_class set reltuples = 500000 where relname = 't1ng2';
update pg_class set relpages = 500000 where relname = 't1ng2';
/* Verify HashJoin */
set enable_hashjoin=on;
set enable_mergejoin=off;
set enable_nestloop=off;
set expected_computing_nodegroup = 'group1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng2';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng3';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
/* Verify MergeJoin */
set enable_hashjoin=off;
set enable_mergejoin=on;
set enable_nestloop=off;
set expected_computing_nodegroup = 'group1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng2';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng3';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
/* Verify Nestloop */
set enable_hashjoin=off;
set enable_mergejoin=off;
set enable_nestloop=on;
set expected_computing_nodegroup = 'group1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng1';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng2';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup = 'ng3';
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c2 order by 1,2,3,4 limit 5;
-- also verify distribution-key
explain (costs off) select * from t1ng1 as t1, t1ng2 as t2 where t1.c1 = t2.c1;
select * from t1ng1 as t1, t1ng2 as t2 where t1.c2 = t2.c1 order by 1,2,3,4 limit 5;
set expected_computing_nodegroup=optimal;
select c1, count(c2) from t1ng1 group by 1 order by 1,2;
drop table t1ng1;
drop table t1ng2;
reset expected_computing_nodegroup;
drop node group ng1;
drop node group ng2;
drop node group ng3;
drop schema nodegroup_multigroup_test cascade;
reset query_dop;
--end | the_stack |
-- 2017-09-05T21:04:26.565
-- 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,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,557126,1675,0,10,540836,'N','ProductValue',TO_TIMESTAMP('2017-09-05 21:04:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Schlüssel des Produktes','de.metas.flatrate',255,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Produktschlüssel',0,0,TO_TIMESTAMP('2017-09-05 21:04:26','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2017-09-05T21:04:26.567
-- 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=557126 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-09-05T21:04:32.197
-- 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 ProductValue VARCHAR(255)')
;
-- 2017-09-05T21:04:47.002
-- 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,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,557127,454,0,30,540836,'N','M_Product_ID',TO_TIMESTAMP('2017-09-05 21:04:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Produkt, Leistung, Artikel','de.metas.flatrate',10,'Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Produkt',0,0,TO_TIMESTAMP('2017-09-05 21:04:46','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2017-09-05T21:04:47.003
-- 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=557127 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-09-05T21:04:55.044
-- 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 M_Product_ID NUMERIC(10)')
;
-- 2017-09-05T21:04:55.054
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE I_Flatrate_Term ADD CONSTRAINT MProduct_IFlatrateTerm FOREIGN KEY (M_Product_ID) REFERENCES public.M_Product DEFERRABLE INITIALLY DEFERRED
;
-- 2017-09-05T21:05:18.338
-- 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,IsSelectionColumn,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,557128,1416,0,12,540836,'N','Price',TO_TIMESTAMP('2017-09-05 21:05:18','YYYY-MM-DD HH24:MI:SS'),100,'N','Preis','de.metas.flatrate',14,'Bezeichnet den Preis für ein Produkt oder eine Dienstleistung.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Preis',0,0,TO_TIMESTAMP('2017-09-05 21:05:18','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2017-09-05T21:05:18.340
-- 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=557128 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-09-05T21:05:25.504
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2017-09-05 21:05:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=557128
;
-- 2017-09-05T21:05:34.488
-- 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 Price NUMERIC')
;
-- 2017-09-05T21:06:01.055
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AD_Window_ID=540358,Updated=TO_TIMESTAMP('2017-09-05 21:06:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540836
;
-- 2017-09-05T21:06:20.386
-- 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,557126,559609,0,540858,TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100,'Schlüssel des Produktes',255,'de.metas.flatrate','Y','Y','Y','N','N','N','N','N','Produktschlüssel',TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-05T21:06:20.397
-- 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=559609 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-09-05T21:06:20.467
-- 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,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557127,559610,0,540858,TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100,'Produkt, Leistung, Artikel',10,'de.metas.flatrate','Bezeichnet eine Einheit, die in dieser Organisation gekauft oder verkauft wird.','Y','Y','Y','N','N','N','N','N','Produkt',TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-05T21:06:20.468
-- 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=559610 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-09-05T21:06:20.534
-- 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,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,557128,559611,0,540858,TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100,'Preis',10,'de.metas.flatrate','Bezeichnet den Preis für ein Produkt oder eine Dienstleistung.','Y','Y','Y','N','N','N','N','N','Preis',TO_TIMESTAMP('2017-09-05 21:06:20','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-05T21:06:20.536
-- 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=559611 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-09-05T21:06:49.621
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559609
;
-- 2017-09-05T21:06:49.625
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559610
;
-- 2017-09-05T21:06:49.628
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559611
;
-- 2017-09-05T21:06:49.631
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559602
;
-- 2017-09-05T21:06:49.634
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559603
;
-- 2017-09-05T21:06:49.636
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=120,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559600
;
-- 2017-09-05T21:06:49.639
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559601
;
-- 2017-09-05T21:06:49.642
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=140,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559599
;
-- 2017-09-05T21:06:49.644
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=150,Updated=TO_TIMESTAMP('2017-09-05 21:06:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559606
;
-- 2017-09-05T21:07:02.864
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2017-09-05 21:07:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559610
;
-- 2017-09-05T21:07:07.197
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLength=10,Updated=TO_TIMESTAMP('2017-09-05 21:07:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559609
;
-- 2017-09-05T21:07:17.128
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=140,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559599
;
-- 2017-09-05T21:07:17.131
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=120,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559600
;
-- 2017-09-05T21:07:17.132
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=130,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559601
;
-- 2017-09-05T21:07:17.134
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559602
;
-- 2017-09-05T21:07:17.136
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=110,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559603
;
-- 2017-09-05T21:07:17.138
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=150,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559606
;
-- 2017-09-05T21:07:17.139
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=70,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559609
;
-- 2017-09-05T21:07:17.141
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=80,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559610
;
-- 2017-09-05T21:07:17.143
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2017-09-05 21:07:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=559611
;
-- 2017-09-05T21:08:12.144
-- 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,557126,540010,540110,0,TO_TIMESTAMP('2017-09-05 21:08:12','YYYY-MM-DD HH24:MI:SS'),100,'S','.','N',0,'Y','Produktschlüssel',50,5,TO_TIMESTAMP('2017-09-05 21:08:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-05T21:08:36.166
-- 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,557128,540010,540111,0,TO_TIMESTAMP('2017-09-05 21:08:36','YYYY-MM-DD HH24:MI:SS'),100,'N','.','N',0,'Y','Preis',60,6,TO_TIMESTAMP('2017-09-05 21:08:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2017-09-05T21:20:58.434
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsSelectionColumn='N',Updated=TO_TIMESTAMP('2017-09-05 21:20:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=557098
; | the_stack |
--
-- Pre 12c
--
-- Install XDB.XDBPM_DBMS_XDB as a definers rights package
-- XDB.XDBPM_DBMS_XDB is a facade for XDB.DBMS_XDB
-- Grant XDBPM access to XDB.XDBPM_DBMS_XDB
--
-- Install XDBPM.XDBPM_DBMS_XDB as an invokers rights package
-- XDBPM.XDBPM_DBMS_XDB is a facade for XDB.XDBPM_DBMS_XDB
--
-- 12c and later
--
-- Install XDBPM.XDBPM_DBMS_XDB as as invokers rights package
-- XDBPM.XDBPM_DBMS_XDB is a facade for XDB.DBMS_XDB
-- Grant XDBADIM to XDBPM.XDBPM_DBMS_XDB
--
-- Modify code that used XDBPM.XDBPM_XDB to use XDBPM.XDBPM_DBMS_XDB
--
var XDBPM_HELPER VARCHAR2(120)
--
declare
V_XDBPM_HELPER VARCHAR2(120) := 'XDBPM_HELPER_12100.sql';
begin
$IF DBMS_DB_VERSION.VER_LE_10_2 $THEN
V_XDBPM_HELPER := 'XDBPM_HELPER_10200.sql';
$ELSIF DBMS_DB_VERSION.VER_LE_11_1 $THEN
V_XDBPM_HELPER := 'XDBPM_HELPER_10200.sql';
$ELSIF DBMS_DB_VERSION.VER_LE_11_2 $THEN
V_XDBPM_HELPER := 'XDBPM_HELPER_10200.sql';
$END
:XDBPM_HELPER := V_XDBPM_HELPER;
end;
/
undef XDBPM_HELPER
--
column XDBPM_HELPER new_value XDBPM_HELPER
--
select :XDBPM_HELPER XDBPM_HELPER
from dual
/
select '&XDBPM_HELPER'
from DUAL
/
set define on
--
@@&XDBPM_HELPER
--
alter session set current_schema = XDBPM
/
create or replace type DECODED_REFERENCE_T
as object (
OWNER VARCHAR2(32),
TABLE_NAME VARCHAR2(32),
OBJECT_ID RAW(16)
);
/
show errors
--
grant execute on DECODED_REFERENCE_T to public
/
set define on
--
@@XDBPM_CHECK_PERMISSIONS
--
var XDBPM_SYSDBA_INTERNAL VARCHAR2(120)
--
declare
V_XDBPM_SYSDBA_INTERNAL VARCHAR2(120);
begin
$IF XDBPM.XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
V_XDBPM_SYSDBA_INTERNAL := 'XDBPM_SYSDBA_SYSDBA.sql';
$ELSIF XDBPM.XDBPM_INSTALLER_PERMISSIONS.IS_SYSTEM $THEN
V_XDBPM_SYSDBA_INTERNAL := 'XDBPM_SYSDBA_SYSTEM.sql';
$ELSIF XDBPM.XDBPM_INSTALLER_PERMISSIONS.HAS_DBA $THEN
V_XDBPM_SYSDBA_INTERNAL := 'XDBPM_DO_NOTHING.sql';
$ELSE
V_XDBPM_SYSDBA_INTERNAL := 'XDBPM_DO_NOTHING.sql';
$END
:XDBPM_SYSDBA_INTERNAL := V_XDBPM_SYSDBA_INTERNAL;
end;
/
undef XDBPM_SYSDBA_INTERNAL
--
column XDBPM_SYSDBA_INTERNAL new_value XDBPM_SYSDBA_INTERNAL
--
select :XDBPM_SYSDBA_INTERNAL XDBPM_SYSDBA_INTERNAL
from dual
/
select '&XDBPM_SYSDBA_INTERNAL'
from DUAL
/
set define on
--
create or replace package XDBPM_INTERNAL_CONSTANTS
AUTHID DEFINER
as
function getTraceFileId return VARCHAR2;
end;
/
show errors
--
create or replace package body XDBPM_INTERNAL_CONSTANTS
as
--
function getTraceFileId
return VARCHAR2
--
-- Return the current session id used in trace file names...
--
as
V_TRACE_ID VARCHAR2(32);
begin
select p.spid || nvl2(p.traceid, '_' || p.traceid, null )
into V_TRACE_ID
from v$process p
join v$session s
on p.addr = s.paddr
where s.audsid=sys_context('userenv','sessionid');
return V_TRACE_ID;
end;
--
end;
/
show errors
--
@@&XDBPM_SYSDBA_INTERNAL
--
show user
--
create or replace package XDBPM_SYSDBA_INTERNAL
as
C_WRITE_TO_TRACE_FILE constant binary_integer := 1;
procedure resetResConfigs(P_RESID RAW);
procedure resetLobLocator(P_RESID RAW);
procedure setBinaryContent(P_RESID RAW, P_SCHEMA_OID RAW, P_BINARY_ELEMENT_ID NUMBER);
procedure setTextContent(P_RESID RAW, P_SCHEMA_OID RAW, P_TEXT_ELEMENT_ID NUMBER);
procedure setXMLContent(P_RESID RAW);
procedure setXMLContent(P_RESID RAW, P_XMLREF REF XMLTYPE);
procedure setSBXMLContent(P_RESID RAW, P_XMLREF REF XMLTYPE, P_SCHEMA_OID RAW, P_GLOBAL_ELEMENT_ID NUMBER);
procedure releaseDavLocks;
procedure updateRootInfoRCList(P_NEW_OIDLIST VARCHAR2);
procedure cleanupSchema(P_OWNER VARCHAR2);
procedure CLEAN_UP_XMLSCHEMA(P_SCHEMA_URL VARCHAR2, P_OWNER VARCHAR2 DEFAULT SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), P_LOCAL VARCHAR2 DEFAULT 'YES');
procedure writeToTraceFile(P_COMMENT VARCHAR2);
procedure flushTraceFile;
end;
/
show errors
--
create or replace package body XDBPM_SYSDBA_INTERNAL
as
--
UNIMPLEMENTED_FEATURE EXCEPTION;
PRAGMA EXCEPTION_INIT(UNIMPLEMENTED_FEATURE , -03001 );
--
procedure flushTraceFile
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
sys.dbms_system.KSDFLS;
$ELSE
NULL;
$END
end;
--
procedure writeToTraceFile(P_COMMENT VARCHAR2)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
sys.dbms_system.KSDWRT(C_WRITE_TO_TRACE_FILE,P_COMMENT);
sys.dbms_system.KSDFLS();
$ELSE
NULL;
$END
end;
--
procedure resetLobLocator(P_RESID RAW)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.XMLLOB = empty_blob()
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure resetResConfigs(P_RESID RAW)
as
/*
**
** TODO: Delete the offending object(s) rather than the entire set of RESCONFIG entries.
**
** Remove the RCList (entry) if the RCLIST contains a reference to a non existing RESCONFIG.
**
*/
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.RCLIST = NULL
where OBJECT_ID = P_RESID
and r.XMLDATA.RCLIST is not NULL
and exists (
select 1
from XDB.XDB$RESOURCE r,
table(r.XMLDATA.RCLIST.OID) x
where OBJECT_ID = P_RESID
and not exists (
select 1
from XDB.XDB$RESCONFIG rc
where COLUMN_VALUE = rc.OBJECT_ID
)
);
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure setBinaryContent(P_RESID RAW, P_SCHEMA_OID RAW, P_BINARY_ELEMENT_ID NUMBER)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.XMLLOB = empty_blob(),
r.XMLDATA.SCHOID = P_SCHEMA_OID,
r.XMLDATA.ELNUM = P_BINARY_ELEMENT_ID
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure setTextContent(P_RESID RAW, P_SCHEMA_OID RAW, P_TEXT_ELEMENT_ID NUMBER)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.XMLLOB = empty_blob(),
r.XMLDATA.SCHOID = P_SCHEMA_OID,
r.XMLDATA.ELNUM = P_TEXT_ELEMENT_ID
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure setXMLContent(P_RESID RAW)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.XMLLOB = empty_blob(),
r.XMLDATA.SCHOID = NULL,
r.XMLDATA.ELNUM = NULL
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure setXMLContent(P_RESID RAW, P_XMLREF REF XMLTYPE)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.xmlref = P_XMLREF
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure setSBXMLContent(P_RESID RAW, P_XMLREF REF XMLTYPE, P_SCHEMA_OID RAW, P_GLOBAL_ELEMENT_ID NUMBER)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$RESOURCE r
set r.XMLDATA.xmlref = P_XMLREF,
r.XMLDATA.SCHOID = P_SCHEMA_OID,
r.XMLDATA.ELNUM = P_GLOBAL_ELEMENT_ID
where OBJECT_ID = P_RESID
and r.XMLDATA.XMLLOB is null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure releaseDavLocks
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
delete from XDB.XDB$NLOCKS;
update XDB.XDB$RESOURCE r
set r.XMLDATA.LOCKS = null
where r.XMLDATA.LOCKS is not null;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure updateRootInfoRCList(P_NEW_OIDLIST VARCHAR2)
as
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
update XDB.XDB$ROOT_INFO
set RCLIST = hexToRaw(P_NEW_OIDLIST);
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
procedure CLEAN_UP_XMLSCHEMA(P_SCHEMA_URL VARCHAR2, P_OWNER VARCHAR2 DEFAULT SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), P_LOCAL VARCHAR2 DEFAULT 'YES')
as
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
INVALID_OPERATION EXCEPTION;
PRAGMA EXCEPTION_INIT( INVALID_OPERATION, -20001 );
V_RESOURCE_PATH VARCHAR2(4000) := P_SCHEMA_URL;
V_OBJECT_COUNT NUMBER(5);
V_SCHEMA_ID RAW(16);
V_SCHEMA_REF REF XMLTYPE;
cursor CLEAN_UP_SCHEMAS
is
select ref(x) SCHEMA_REF
from XDB.XDB$SCHEMA x
where x.XMLDATA.SCHEMA_URL = P_SCHEMA_URL
and x.XMLDATA.SCHEMA_OWNER = P_OWNER;
begin
if (instr(P_SCHEMA_URL,'://') > 0) then
V_RESOURCE_PATH := substr(V_RESOURCE_PATH,INSTR(P_SCHEMA_URL,'://')+3);
end if;
if (P_LOCAL = 'YES') then
V_RESOURCE_PATH := '/sys/schemas/' || SYS_CONTEXT('USERENV','CURRENT_SCHEMA') || '/' || V_RESOURCE_PATH;
end if;
if (P_LOCAL = 'NO') then
V_RESOURCE_PATH := '/sys/schemas/PUBLIC/' || V_RESOURCE_PATH;
end if;
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': Checking for existance of resource "' || V_RESOURCE_PATH || '"');
if DBMS_XDB.existsResource(V_RESOURCE_PATH) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': Resource exists.');
RAISE_APPLICATION_ERROR( -20001, 'XMLSchema "' || P_SCHEMA_URL || '": Still present in XDB Repository as resource "' || V_RESOURCE_PATH || '". Please use DBMS_XMLSCHEMA.deleteSchema().');
end if;
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": no longer found in the XDB Repository as resource "' || V_RESOURCE_PATH || '". Attempting direct clean-up of schema artifacts.' );
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$SCHEMA x
where x.XMLDATA.SCHEMA_URL = P_SCHEMA_URL
and x.XMLDATA.SCHEMA_OWNER = P_OWNER;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Located 1 or more entries in XDB.XDB$SCHEMA.');
for s in CLEAN_UP_SCHEMAS loop
-- XDB.XDB$ANY
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ANY x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ANY.');
delete
from XDB.XDB$ANY x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$ALL_MODEL
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ALL_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ALL_MODEL.');
delete
from XDB.XDB$ALL_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$ANYATTR
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ANYATTR x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ANYATTR.');
delete
from XDB.XDB$ANYATTR x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$ATTRGROUP_DEF
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ATTRGROUP_DEF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ATTRGROUP_DEF.');
delete
from XDB.XDB$ATTRGROUP_DEF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$ATTRGROUP_REF
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ATTRGROUP_REF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ATTRGROUP_REF.');
delete
from XDB.XDB$ATTRGROUP_REF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB$XDB.XDB$ATTRIBUTE
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ATTRIBUTE x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ATTRIBUTE.');
delete
from XDB.XDB$ATTRIBUTE x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$CHOICE_MODEL
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$CHOICE_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$CHOICE_MODEL.');
delete
from XDB.XDB$CHOICE_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$COMPLEX_TYPE
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$COMPLEX_TYPE x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$COMPLEX_TYPE.');
delete
from XDB.XDB$COMPLEX_TYPE x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$ELEMENT
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ELEMENT x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$ELEMENT.');
delete
from XDB.XDB$ELEMENT x
where X.XMLDATA.PROPERTY.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$GROUP_DEF
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$GROUP_DEF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$GROUP_DEF.');
delete
from XDB.XDB$GROUP_DEF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$GROUP_REF
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$GROUP_REF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$GROUP_REF.');
delete
from XDB.XDB$GROUP_REF x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$SEQUENCE_MODEL
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$SEQUENCE_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$SEQUENCE_MODEL.');
delete
from XDB.XDB$SEQUENCE_MODEL x
where X.XMLDATA.PARENT_SCHEMA = s.SCHEMA_REF;
commit;
end if;
-- XDB.XDB$SCHEMA
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$SCHEMA x
where ref(x) = s.SCHEMA_REF;
if (V_OBJECT_COUNT > 0) then
DBMS_OUTPUT.put_line(SYSTIMESTAMP || ': XMLSchema "' || P_SCHEMA_URL ||'": Removing ' || V_OBJECT_COUNT || ' entries from XDB.XDB$SCHEMA.');
delete
from XDB.XDB$SCHEMA x
where ref(x) = s.SCHEMA_REF;
commit;
end if;
end loop;
end if;
end;
$ELSE
begin
raise UNIMPLEMENTED_FEATURE;
end;
$END
--
procedure cleanupSchema(P_OWNER VARCHAR2)
as
V_OBJECT_COUNT number;
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_SYSDBA $THEN
select count(*)
into V_OBJECT_COUNT
from ALL_USERS
where USERNAME = P_OWNER;
if (V_OBJECT_COUNT > 0) then
RAISE_APPLICATION_ERROR( -20000, 'User "' || P_OWNER || '" exists. XML Schema clean up only valid for dropped users.');
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$SCHEMA x
where x.XMLDATA.SCHEMA_OWNER = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$SCHEMA x
where x.XMLDATA.SCHEMA_OWNER = P_OWNER;
commit;
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$COMPLEX_TYPE x
where x.XMLDATA.SQLSCHEMA = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$COMPLEX_TYPE x
where x.XMLDATA.SQLSCHEMA = P_OWNER;
commit;
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ELEMENT x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$ELEMENT x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
commit;
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ATTRIBUTE x
where x.XMLDATA.SQLSCHEMA = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$ATTRIBUTE x
where x.XMLDATA.SQLSCHEMA = P_OWNER;
commit;
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ANYATTR x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$ANYATTR x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
commit;
end if;
select count(*)
into V_OBJECT_COUNT
from XDB.XDB$ANY x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
if (V_OBJECT_COUNT > 0) then
delete
from XDB.XDB$ANY x
where x.XMLDATA.PROPERTY.SQLSCHEMA = P_OWNER;
commit;
end if;
$ELSE
raise UNIMPLEMENTED_FEATURE;
$END
end;
--
end;
/
show errors
--
create or replace package XDBPM_HELPER
AUTHID DEFINER
as
--
C_ORACLE_TRACE_DIRECTORY CONSTANT VARCHAR2(128) := 'ORACLE_TRACE_DIRECTORY';
C_PACKAGE_TRACE_LOGFILE CONSTANT VARCHAR2(128) := '/public/XDBPM_PACKAGE_TRACE_' || XDBPM_INTERNAL_CONSTANTS.getTraceFileId() || '.log';
TYPE RESOURCE_EXPORT_ROW_T
is record (
RESID RAW(16),
VERSION NUMBER(4),
ACLOID RAW(16),
RES CLOB,
XMLLOB BLOB,
TABLE_NAME VARCHAR2(30),
OWNER VARCHAR2(30),
OBJECT_ID RAW(16)
);
TYPE RESOURCE_EXPORT_TABLE_T
is table of RESOURCE_EXPORT_ROW_T;
TYPE DECODED_REFERENCE_ROW_T
IS RECORD (
OWNER VARCHAR2(32),
TABLE_NAME VARCHAR2(32),
OBJECT_ID RAW(16)
);
TYPE DECODED_REFERENCE_TABLE_T
IS TABLE OF DECODED_REFERENCE_ROW_T;
function isCheckedOutByResID(P_RESOID RAW) return BOOLEAN;
function getXMLReference(P_PATH VARCHAR2) return REF XMLType;
function getXMLReferenceByResID(P_RESOID RAW) return REF XMLType;
function decodeXMLReference(P_XMLREF REF XMLTYPE) return DECODED_REFERENCE_TABLE_T pipelined;
function getComplexType(P_PROP_NUMBER NUMBER, P_SCHEMA_NAMESPACE_MAPPINGS VARCHAR2) return XMLType;
function getTraceFileName return VARCHAR2;
function getTraceFileContents return CLOB;
function getVersionDetails(P_RESID RAW) return RESOURCE_EXPORT_TABLE_T pipelined;
--
end XDBPM_HELPER;
/
show errors
--
create or replace synonym XDB_HELPER for XDBPM_HELPER
/
--
-- & characters the HTML code
--
set define off
--
create or replace package body XDBPM_HELPER
as
--
FILE_NOT_FOUND EXCEPTION;
PRAGMA EXCEPTION_INIT(FILE_NOT_FOUND, -22288);
DIRECTORY_NOT_FOUND EXCEPTION;
PRAGMA EXCEPTION_INIT(DIRECTORY_NOT_FOUND, -22285);
--
function getComplexType(P_PROP_NUMBER NUMBER, P_SCHEMA_NAMESPACE_MAPPINGS VARCHAR2)
return XMLType
as
V_COMPLEX_TYPE xmlType;
V_WRAPPER xmlType;
begin
select DEREF(e.XMLDATA.PROPERTY.TYPE_REF).extract('/complexType')
into V_COMPLEX_TYPE
from XDB.XDB$ELEMENT e
where e.XMLDATA.PROPERTY.PROP_NUMBER = P_PROP_NUMBER;
V_WRAPPER := XMLType('<nshack:wrapper xmlns:nshack="NAMESPACE_HACK" ' || P_SCHEMA_NAMESPACE_MAPPINGS || '>' || V_COMPLEX_TYPE.getClobVal() || '</nshack:wrapper>');
V_COMPLEX_TYPE := V_WRAPPER.extract('/nshack:wrapper/xsd:complexType',xdb_namespaces.XMLSCHEMA_PREFIX_XSD || ' xmlns:nshack="NAMESPACE_HACK"');
return V_COMPLEX_TYPE;
end;
--
function getTraceFileName
return VARCHAR2
--
-- Return the trace file name for the specified session id
--
as
V_TRACE_FILE_NAME VARCHAR2(32) := XDBPM_INTERNAL_CONSTANTS.getTraceFileId();
begin
select p.value || '_ora_' || V_TRACE_FILE_NAME || '.trc'
into V_TRACE_FILE_NAME
from v$parameter p
where p.name = 'db_name';
return V_TRACE_FILE_NAME;
end;
--
function getTraceFileHandle
return bfile
as
pragma autonomous_transaction;
V_TRACE_FILE_NAME VARCHAR2(256);
begin
V_TRACE_FILE_NAME := getTraceFileName();
return bfilename(C_ORACLE_TRACE_DIRECTORY,V_TRACE_FILE_NAME);
end;
--
$IF DBMS_DB_VERSION.VER_LE_12_1 $THEN
$ELSE
function getTraceFileFromView
return CLOB
as
V_TRACE_FILE_NAME VARCHAR2(64) := lower(getTraceFileName());
V_TRACE_FILE_CONTENTS CLOB;
cursor getTraceFileContent(C_TRACE_FILE_NAME VARCHAR2)
is
select PAYLOAD
from V$DIAG_TRACE_FILE_CONTENTS
order by LINE_NUMBER;
begin
DBMS_LOB.createTemporary(V_TRACE_FILE_CONTENTS,FALSE,DBMS_LOB.SESSION);
for l in getTraceFileContent(V_TRACE_FILE_NAME) loop
DBMS_LOB.writeAppend(V_TRACE_FILE_CONTENTS,length(l.PAYLOAD),l.PAYLOAD);
end loop;
if (DBMS_LOB.getLength(V_TRACE_FILE_CONTENTS) = 0) then
V_TRACE_FILE_CONTENTS := 'No content found for Trace File "' || V_TRACE_FILE_NAME || '".';
end if;
return V_TRACE_FILE_CONTENTS;
end;
--
$END
function getTraceFileContents
return CLOB
as
V_TRACE_FILE_CONTENTS CLOB;
begin
begin
dbms_lob.createTemporary(V_TRACE_FILE_CONTENTS,TRUE,dbms_lob.session);
XDBPM_SYSDBA_INTERNAL.flushTraceFile();
V_TRACE_FILE_CONTENTS := xdb_utilities.getFileContent(getTraceFileHandle());
exception
$IF DBMS_DB_VERSION.VER_LE_12_1 $THEN
$ELSE
when DIRECTORY_NOT_FOUND then
V_TRACE_FILE_CONTENTS := getTraceFileFromView();
when FILE_NOT_FOUND then
V_TRACE_FILE_CONTENTS := getTraceFileFromView();
$END
when OTHERS then
RAISE;
end;
return V_TRACE_FILE_CONTENTS;
end;
--
function isCheckedOutByRESID(P_RESOID RAW)
return BOOLEAN
as
V_RESULT NUMBER(1) := 0;
begin
select 1
into V_RESULT
from XDB.XDB$CHECKOUTS where VERSION = P_RESOID;
return TRUE;
exception
when no_data_found then
return FALSE;
end;
--
function getXMLReferenceByResID(P_RESOID RAW)
return REF XMLType
as
V_XMLREF REF XMLType;
begin
select r.XMLDATA.XMLREF
into V_XMLREF
from XDB.XDB$RESOURCE r
where OBJECT_ID = P_RESOID;
return V_XMLREF;
end;
--
function getXMLReference(P_PATH VARCHAR2)
return REF XMLType
as
V_XMLREF REF XMLType;
begin
select r.XMLDATA.XMLREF
into V_XMLREF
from XDB.XDB$RESOURCE r, RESOURCE_VIEW
where RESID = OBJECT_ID
and equals_path(RES,P_PATH) = 1;
return V_XMLREF;
end;
--
function decodeXMLReference(P_XMLREF REF XMLTYPE)
return DECODED_REFERENCE_TABLE_T pipelined
as
V_DECODED_REFERENCE DECODED_REFERENCE_ROW_T;
begin
V_DECODED_REFERENCE.OBJECT_ID := NULL;
V_DECODED_REFERENCE.TABLE_NAME := NULL;
V_DECODED_REFERENCE.OWNER := NULL;
if P_XMLREF is not NULL then
select ao.OBJECT_NAME, ao.OWNER, r.OBJECT_ID
into V_DECODED_REFERENCE.TABLE_NAME, V_DECODED_REFERENCE.OWNER, V_DECODED_REFERENCE.OBJECT_ID
from DBA_OBJECTS ao, SYS.OBJ$ o,
(
select HEXTORAW(SUBSTR(XMLREF,41,32)) TABLE_ID, HEXTORAW(SUBSTR(XMLREF,9,32)) OBJECT_ID
from (
select RAWTOHEX(P_XMLREF) XMLREF from dual
)
) r
where ao.OBJECT_ID = o.OBJ#
and o.OID$ = r.TABLE_ID;
end if;
pipe row (V_DECODED_REFERENCE);
end;
--
function getVersionDetails(P_RESID RAW)
return RESOURCE_EXPORT_TABLE_T pipelined
as
V_RESOURCE_EXPORT_ROW RESOURCE_EXPORT_ROW_T;
begin
select xr.OBJECT_ID
,extractValue(xr.OBJECT_VALUE,'/Resource/@VersionID')
,extractValue(xr.OBJECT_VALUE,'/Resource/ACLOID')
,xr.OBJECT_VALUE.getClobVal()
,extractValue(xr.OBJECT_VALUE,'/Resource/XMLLob')
,td.TABLE_NAME
,td.OWNER
,td.OBJECT_ID
into V_RESOURCE_EXPORT_ROW.RESID,
V_RESOURCE_EXPORT_ROW.VERSION,
V_RESOURCE_EXPORT_ROW.ACLOID,
V_RESOURCE_EXPORT_ROW.RES,
V_RESOURCE_EXPORT_ROW.XMLLOB,
V_RESOURCE_EXPORT_ROW.TABLE_NAME,
V_RESOURCE_EXPORT_ROW.OWNER,
V_RESOURCE_EXPORT_ROW.OBJECT_ID
from XDB.XDB$RESOURCE xr,
TABLE(XDBPM_HELPER.DECODEXMLREFERENCE(extractValue(xr.OBJECT_VALUE,'/Resource/XMLRef'))) td
where xr.OBJECT_ID = P_RESID;
pipe row (V_RESOURCE_EXPORT_ROW);
return;
end;
--
function getTraceFileDirectoryLocation
return VARCHAR2
as
V_USER_TRACE_LOCATION VARCHAR2(512);
begin
$IF DBMS_DB_VERSION.VER_LE_10_2 $THEN
execute immediate 'select VALUE from SYS.V_$PARAMETER where NAME = ''user_dump_dest''' into V_USER_TRACE_LOCATION;
$ELSIF DBMS_DB_VERSION.VER_LE_11_1 $THEN
execute immediate 'select VALUE from SYS.V_$PARAMETER where NAME = ''user_dump_dest''' into V_USER_TRACE_LOCATION;
$ELSIF DBMS_DB_VERSION.VER_LE_11_2 $THEN
execute immediate 'select VALUE from SYS.V_$PARAMETER where NAME = ''user_dump_dest''' into V_USER_TRACE_LOCATION;
$ELSE
execute immediate 'select VALUE from V$DIAG_INFO where NAME = ''Diag Trace''' into V_USER_TRACE_LOCATION;
$END
return V_USER_TRACE_LOCATION;
end;
--
procedure createTraceFileDirectory
--
-- Create a SQL Directory object pointing at the user trace directory. Enables access to Trace Files via the BFILE constructor.
--
as
pragma autonomous_transaction;
V_STATEMENT VARCHAR2(256);
V_DBNAME VARCHAR2(256);
begin
$IF XDBPM_INSTALLER_PERMISSIONS.HAS_CREATE_DIRECTORY $THEN
V_STATEMENT := 'create or replace directory ' || C_ORACLE_TRACE_DIRECTORY || ' as ''' || getTraceFileDirectoryLocation() || '''';
execute immediate V_STATEMENT;
rollback;
$ELSE
NULL;
$END
end;
--
procedure checkTraceFileDirectory
as
V_DIRECTORY_PATH VARCHAR2(4000);
begin
begin
select DIRECTORY_PATH
into V_DIRECTORY_PATH
from ALL_DIRECTORIES
where DIRECTORY_NAME = XDBPM_HELPER.C_ORACLE_TRACE_DIRECTORY;
exception
when NO_DATA_FOUND then
createTraceFileDirectory();
when OTHERS then
RAISE;
end;
end;
--
begin
checkTraceFileDirectory();
end XDBPM_HELPER;
/
show errors
--
create or replace package XDBPM_IMPORT_HELPER
AUTHID DEFINER
as
TYPE DECODED_REFERENCE_ROW_T
IS RECORD (
OWNER VARCHAR2(32),
TABLE_NAME VARCHAR2(32),
OBJECT_ID RAW(16)
);
TYPE DECODED_REFERENCE_TABLE_T
IS TABLE OF DECODED_REFERENCE_ROW_T;
function decodeXMLReference(P_XMLREF REF XMLTYPE) return DECODED_REFERENCE_TABLE_T pipelined;
end;
/
show errors
--
create or replace synonym XDB_IMPORT_HELPER for XDBPM_IMPORT_HELPER
/
grant execute on XDBPM_IMPORT_HELPER to public
/
create or replace package body XDBPM_IMPORT_HELPER
as
function decodeXMLReference(P_XMLREF REF XMLTYPE)
return DECODED_REFERENCE_TABLE_T pipelined
as
V_DECODED_REFERENCE DECODED_REFERENCE_ROW_T;
begin
V_DECODED_REFERENCE.OBJECT_ID := NULL;
V_DECODED_REFERENCE.TABLE_NAME := NULL;
V_DECODED_REFERENCE.OWNER := NULL;
if P_XMLREF is not NULL then
select TABLE_NAME, OWNER, OBJECT_ID
into V_DECODED_REFERENCE.TABLE_NAME, V_DECODED_REFERENCE.OWNER, V_DECODED_REFERENCE.OBJECT_ID
from TABLE(XDBPM.XDBPM_HELPER.DECODEXMLREFERENCE(P_XMLREF));
pipe row (V_DECODED_REFERENCE);
end if;
end;
--
end;
/
alter session set current_schema = SYS
/
show errors
-- | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.