sql
stringlengths
6
1.05M
-- 2018-06-07T15:25:49.948 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,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,560280,202,0,21,540972,'N','C_Location_ID','(select p.C_Location_ID from MKTG_ContactPerson p where p.MKTG_ContactPerson_ID= MKTG_Campaign_ContactPerson.MKTG_ContactPerson_ID)',TO_TIMESTAMP('2018-06-07 15:25:49','YYYY-MM-DD HH24:MI:SS'),100,'N','Adresse oder Anschrift','de.metas.marketing.base',10,'Das Feld "Adresse" definiert die Adressangaben eines Standortes.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','Anschrift',0,0,TO_TIMESTAMP('2018-06-07 15:25:49','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-06-07T15:25:49.963 -- 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=560280 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) ; -- 2018-06-07T15:26:35.970 -- 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,560280,564475,0,541102,0,TO_TIMESTAMP('2018-06-07 15:26:35','YYYY-MM-DD HH24:MI:SS'),100,'Adresse oder Anschrift',0,'de.metas.marketing.base','Das Feld "Adresse" definiert die Adressangaben eines Standortes.',0,'Y','Y','Y','N','N','N','N','N','Anschrift',150,80,0,1,1,TO_TIMESTAMP('2018-06-07 15:26:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-06-07T15:26:35.976 -- 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=564475 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) ; -- 2018-06-11T13:45:35.618 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,Description,Help,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,564475,0,541102,552191,541591,'F',TO_TIMESTAMP('2018-06-11 13:45:34','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','N','Y','N','Y','Anschrift',85,0,80,TO_TIMESTAMP('2018-06-11 13:45:34','YYYY-MM-DD HH24:MI:SS'),100) ;
<filename>tables.sql<gh_stars>0 CREATE TABLE golfer ( id int auto_increment not null, first_name varchar(128) not null, last_name varchar(128) not null, middle_name varchar(128), email varchar(256), city varchar(128), state varchar(128), zip varchar(128), home_phone varchar(128), work_phone varchar(128), notes varchar(256), date_added DATETIME not null default NOW(), primary key (id) ); CREATE TABLE golfer_status ( golfer_id int not null, status_id varchar(128) not null, updated datetime not null default NOW(), primary key (golfer_id, status_id), FOREIGN KEY (golfer_id) REFERENCES golfer (id), FOREIGN KEY (status_id) REFERENCES status (name) ); CREATE TABLE status ( name varchar(128) not null, description varchar(256), primary key (name) ); CREATE TABLE team_member ( team_id int not null, golfer_id int not null, primary key (team_id, golfer_id), FOREIGN KEY (team_id) REFERENCES team (id), FOREIGN KEY (golfer_id) REFERENCES golfer (id) ); CREATE TABLE team ( id int auto_increment not null, league_id int not null, name varchar(128), description varchar(128), primary key (id), FOREIGN KEY (league_id) REFERENCES league (id) ); CREATE TABLE team_flight ( team_id int not null, flight_id int not null, PRIMARY KEY (team_id, flight_id), FOREIGN KEY (team_id) references team (id), FOREIGN KEY (flight_id) references flight (id) ); CREATE TABLE flight ( id int not null auto_increment, league_id int not null, start TIME not null, end TIME not null, primary key (id), FOREIGN KEY (league_id) references league (id), UNIQUE (league_id, start, end) ); CREATE TABLE league ( id int auto_increment not null, name varchar(256) not null, primary key (id) ); CREATE TABLE season ( id int auto_increment not null, year YEAR not null, league_id int not null, course_id int not null, primary key (id), FOREIGN KEY (league_id) REFERENCES league (id), FOREIGN KEY (course_id) REFERENCES course (id), UNIQUE (year, league_id, course_id) ); CREATE TABLE event ( id int not null auto_increment, season_id int not null, day DATE not null, event_type VARCHAR(128) not null, notes VARCHAR(256), PRIMARY KEY (id), FOREIGN KEY (season_id) REFERENCES season (id), FOREIGN KEY (event_type) REFERENCES event_type (name) ); CREATE TABLE event_type ( name VARCHAR(128) NOT NULL, description VARCHAR(256), PRIMARY KEY (name) ); CREATE TABLE team_event ( event_id int not null auto_increment, team_id int not null, PRIMARY KEY (event_id, team_id), FOREIGN KEY (event_id) REFERENCES event (id), FOREIGN KEY (team_id) REFERENCES team (id) ); CREATE TABLE course ( id int auto_increment not null, name varchar(256) not null, primary key (id) ); CREATE TABLE nine ( course_id int not null, name varchar(256) not null, primary key (course_id, name), FOREIGN KEY (course_id) REFERENCES course (id) ); CREATE TABLE hole ( id int not null, course_id int not null, nine_name varchar(256) not null, hole_number int not null, primary key (id), FOREIGN KEY (course_id, nine_name) REFERENCES nine (course_id, name), UNIQUE (course_id, nine_name, hole_number) ); CREATE TABLE hole_handicap ( hole_id int not null, created DATETIME not null DEFAULT NOW(), handicap int not null, PRIMARY KEY (hole_id, created), FOREIGN KEY (hole_id) REFERENCES hole (id) ); CREATE TABLE hole_par ( hole_id int not null, created DATETIME not null DEFAULT NOW(), par int not null, PRIMARY KEY (hole_id, created), FOREIGN KEY (hole_id) REFERENCES hole (id) ); CREATE TABLE player_handicap ( id INT auto_increment not null, golfer_id int not null, created DATETIME NOT NULL default NOW(), handicap int not null, PRIMARY KEY (id), FOREIGN KEY (golfer_id) references golfer (id) ); CREATE TABLE round ( id int not null auto_increment, event_id int not null, golfer_id int not null, primary key (id), FOREIGN KEY (event_id) references event (id), FOREIGN KEY (golfer_id) REFERENCES golfer (id), UNIQUE (event_id, golfer_id) ); CREATE TABLE score ( round_id int not null, hole_id int not null, score int not null, PRIMARY KEY (round_id, hole_id), FOREIGN KEY (round_id) REFERENCES round (id), FOREIGN KEY (hole_id) REFERENCES hole (id) )
<reponame>MaikMichel/utPLSQL /* utPLSQL - Version 3 Copyright 2016 - 2021 utPLSQL Project 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. Create all necessary grant for the user who owns test packages and want to execute utPLSQL framework */ @@define_ut3_owner_param.sql column 2 new_value 2 noprint select null as "2" from dual where 1=0; spool params.sql.tmp select case when '&&2' is null then q'[ACCEPT ut3_user CHAR DEFAULT 'PUBLIC' PROMPT 'Provide schema which should own synonyms for the utPLSQL v3 framework (PUBLIC): ']' else 'define ut3_user=&&2.' end from dual; spool off set termout on @params.sql.tmp set termout off spool params.sql.tmp select case when upper('&&ut3_user') = 'PUBLIC' then q'[define action_type='or replace public' ]'||q'[define ut3_user='' ]'||q'[define grantee='PUBLIC']' else q'[define action_type='or replace' ]'||q'[define grantee='&&ut3_user'] ]'||q'[define ut3_user='&&ut3_user..']' end from dual; spool off set termout on @params.sql.tmp set termout off /* cleanup temporary sql files */ --try running on windows $ del params.sql.tmp --try running on linux/unix ! rm params.sql.tmp set termout on set echo off set feedback on set heading off set verify off whenever sqlerror exit failure rollback whenever oserror exit failure rollback alter session set current_schema = &&ut3_owner; prompt Creating synonyms for UTPLSQL objects in &&ut3_owner schema to user &&grantee --public API create &action_type. synonym &ut3_user.ut for &&ut3_owner..ut; create &action_type. synonym &ut3_user.ut_runner for &&ut3_owner..ut_runner; create &action_type. synonym &ut3_user.ut_file_mappings for &&ut3_owner..ut_file_mappings; create &action_type. synonym &ut3_user.ut_file_mapping for &&ut3_owner..ut_file_mapping; create &action_type. synonym &ut3_user.ut_file_mapper for &&ut3_owner..ut_file_mapper; create &action_type. synonym &ut3_user.ut_suite_items_info for &&ut3_owner..ut_suite_items_info; create &action_type. synonym &ut3_user.ut_suite_item_info for &&ut3_owner..ut_suite_item_info; create &action_type. synonym &ut3_user.ut_run_info for &&ut3_owner..ut_run_info; create &action_type. synonym &ut3_user.ut_coverage_options for &&ut3_owner..ut_coverage_options; --generic types create &action_type. synonym &ut3_user.ut_varchar2_list for &&ut3_owner..ut_varchar2_list; create &action_type. synonym &ut3_user.ut_varchar2_rows for &&ut3_owner..ut_varchar2_rows; create &action_type. synonym &ut3_user.ut_integer_list for &&ut3_owner..ut_integer_list; create &action_type. synonym &ut3_user.ut_key_value_pairs for &&ut3_owner..ut_key_value_pairs; create &action_type. synonym &ut3_user.ut_key_value_pair for &&ut3_owner..ut_key_value_pair; --expectations create &action_type. synonym &ut3_user.ut_expectation for &&ut3_owner..ut_expectation; create &action_type. synonym &ut3_user.ut_expectation_compound for &&ut3_owner..ut_expectation_compound; create &action_type. synonym &ut3_user.ut_expectation_json for &&ut3_owner..ut_expectation_json; --matchers create &action_type. synonym &ut3_user.ut_matcher for &&ut3_owner..ut_matcher; create &action_type. synonym &ut3_user.be_between for &&ut3_owner..be_between; create &action_type. synonym &ut3_user.be_empty for &&ut3_owner..be_empty; create &action_type. synonym &ut3_user.be_false for &&ut3_owner..be_false; create &action_type. synonym &ut3_user.be_greater_or_equal for &&ut3_owner..be_greater_or_equal; create &action_type. synonym &ut3_user.be_greater_than for &&ut3_owner..be_greater_than; create &action_type. synonym &ut3_user.be_less_or_equal for &&ut3_owner..be_less_or_equal; create &action_type. synonym &ut3_user.be_less_than for &&ut3_owner..be_less_than; create &action_type. synonym &ut3_user.be_like for &&ut3_owner..be_like; create &action_type. synonym &ut3_user.be_not_null for &&ut3_owner..be_not_null; create &action_type. synonym &ut3_user.be_null for &&ut3_owner..be_null; create &action_type. synonym &ut3_user.be_true for &&ut3_owner..be_true; create &action_type. synonym &ut3_user.contain for &&ut3_owner..contain; create &action_type. synonym &ut3_user.equal for &&ut3_owner..equal; create &action_type. synonym &ut3_user.have_count for &&ut3_owner..have_count; create &action_type. synonym &ut3_user.match for &&ut3_owner..match; --reporters - test results create &action_type. synonym &ut3_user.ut_teamcity_reporter for &&ut3_owner..ut_teamcity_reporter; create &action_type. synonym &ut3_user.ut_xunit_reporter for &&ut3_owner..ut_xunit_reporter; create &action_type. synonym &ut3_user.ut_junit_reporter for &&ut3_owner..ut_junit_reporter; create &action_type. synonym &ut3_user.ut_tfs_junit_reporter for &&ut3_owner..ut_tfs_junit_reporter; create &action_type. synonym &ut3_user.ut_documentation_reporter for &&ut3_owner..ut_documentation_reporter; create &action_type. synonym &ut3_user.ut_sonar_test_reporter for &&ut3_owner..ut_sonar_test_reporter; create &action_type. synonym &ut3_user.ut_realtime_reporter for &&ut3_owner..ut_realtime_reporter; --reporters - coverage create &action_type. synonym &ut3_user.ut_coverage_html_reporter for &&ut3_owner..ut_coverage_html_reporter; create &action_type. synonym &ut3_user.ut_coverage_sonar_reporter for &&ut3_owner..ut_coverage_sonar_reporter; create &action_type. synonym &ut3_user.ut_coveralls_reporter for &&ut3_owner..ut_coveralls_reporter; create &action_type. synonym &ut3_user.ut_coverage_cobertura_reporter for &&ut3_owner..ut_coverage_cobertura_reporter; --reporters - debug create &action_type. synonym &ut3_user.ut_debug_reporter for &&ut3_owner..ut_debug_reporter; --reporters - base types create &action_type. synonym &ut3_user.ut_reporters for &&ut3_owner..ut_reporters; create &action_type. synonym &ut3_user.ut_reporter_base for &&ut3_owner..ut_reporter_base; create &action_type. synonym &ut3_user.ut_output_reporter_base for &&ut3_owner..ut_output_reporter_base; --other synonyms create &action_type. synonym &ut3_user.dbmspcc_blocks for &&ut3_owner..dbmspcc_blocks; create &action_type. synonym &ut3_user.dbmspcc_runs for &&ut3_owner..dbmspcc_runs; create &action_type. synonym &ut3_user.dbmspcc_units for &&ut3_owner..dbmspcc_units;
\o @path@/expected/results/st_equals.out select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((2 2, 9 2, 9 9, 2 9, 2 2))'::geometry) as geos; select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry) as geos; select st_equals('POLYGON ((1 1, 1 5, 5 5, 1 1))'::geometry, 'POLYGON ((2 2, 2 3, 3 3, 2 2))'::geometry) as geos; select st_equals('POLYGON ((2 2, 2 3, 3 3, 2 2))'::geometry, 'POLYGON ((1 1, 1 5, 5 5, 1 1))'::geometry) as geos; select st_equals('POLYGON ((2 2, 7 2, 7 5, 2 5, 2 2))'::geometry, 'POLYGON ((1 1, 8 1, 8 7, 1 7, 1 1))'::geometry) as geos; select st_equals('POLYGON ((0 2, 5 2, 5 5, 0 5, 0 2))'::geometry, 'POLYGON ((1 1, 8 1, 8 7, 1 7, 1 1))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POLYGON ((-1 3,2 1,0 -3,-1 3))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POINT (0 0)'::geometry) as geos; select st_equals('POINT (0 0)'::geometry, 'POINT (0 0)'::geometry) as geos; select st_equals('POINT (0 0)'::geometry, 'POLYGON ((0 2,1 1,0 -1,0 2))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POINT (0.5 0)'::geometry) as geos; select st_equals('POINT (0.5 0)'::geometry, 'POLYGON ((0 2,1 1,0 -1,0 2))'::geometry) as geos; select st_equals('LINESTRING (0 0, 10 10)'::geometry, 'LINESTRING (0 0, 5 5, 10 10)'::geometry) as geos; select st_equals('LINESTRING (10 10, 0 0)'::geometry, 'LINESTRING (0 0, 5 5, 10 10)'::geometry) as geos; select st_equals('LINESTRING(0 0, 1 1)'::geometry, 'LINESTRING(1 1, 0 0)'::geometry) as geos; select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((2 2, 9 2, 9 9, 2 9, 2 2))'::geometry) as geos; select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry) as geos; select st_equals('POLYGON ((1 1, 1 5, 5 5, 1 1))'::geometry, 'POLYGON ((2 2, 2 3, 3 3, 2 2))'::geometry) as geos; select st_equals('POLYGON ((2 2, 2 3, 3 3, 2 2))'::geometry, 'POLYGON ((1 1, 1 5, 5 5, 1 1))'::geometry) as geos; select st_equals('POLYGON ((2 2, 7 2, 7 5, 2 5, 2 2))'::geometry, 'POLYGON ((1 1, 8 1, 8 7, 1 7, 1 1))'::geometry) as geos; select st_equals('POLYGON ((0 2, 5 2, 5 5, 0 5, 0 2))'::geometry, 'POLYGON ((1 1, 8 1, 8 7, 1 7, 1 1))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POLYGON ((-1 3,2 1,0 -3,-1 3))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POINT (0 0)'::geometry) as geos; select st_equals('POINT (0 0)'::geometry, 'POINT (0 0)'::geometry) as geos; select st_equals('POINT (0 0)'::geometry, 'POLYGON ((0 2,1 1,0 -1,0 2))'::geometry) as geos; select st_equals('POLYGON ((0 2,1 1,0 -1,0 2))'::geometry, 'POINT (0.5 0)'::geometry) as geos; select st_equals('POINT (0.5 0)'::geometry, 'POLYGON ((0 2,1 1,0 -1,0 2))'::geometry) as geos; select st_equals('LINESTRING (0 0, 10 10)'::geometry, 'LINESTRING (0 0, 5 5, 10 10)'::geometry) as geos; select st_equals('LINESTRING (10 10, 0 0)'::geometry, 'LINESTRING (0 0, 5 5, 10 10)'::geometry) as geos; select st_equals('LINESTRING(0 0, 1 1)'::geometry, 'LINESTRING(1 1, 0 0)'::geometry) as geos; select st_equals('POLYGON EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('LINESTRING EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('POINT EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('MULTIPOLYGON EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('MULTILINESTRING EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('MULTIPOINT EMPTY'::geometry, 'POINT EMPTY'::geometry) as geos; select st_equals('MULTIPOLYGON (((0 0,4 0,4 4,0 4,0 0)),((1 8,2 8,2 9,1 9,1 8)),((6 6,6 12,12 12,12 6,6 6),(7 7,7 8,8 8,9 7,7 7)))'::geometry, 'MULTIPOLYGON (((0 0,4 0,4 4,0 4,0 0)),((1 8,2 8,2 9,1 9,1 8)),((6 6,6 12,12 12,12 6,6 6),(7 7,7 8,8 8,8 7,7 7)))'::geometry) as geos; select st_equals('POLYGON ((1 2,2 3,3 4,1 2))'::geometry, 'LINESTRING (1 2,3 4)'::geometry) as geos; select st_equals('MULTIPOLYGON (((0 0,1 0,1 1,0 1,0 0)),((1 0,2 0,2 1,1 1,1 0)))'::geometry, 'POLYGON((0 0,2 0,2 1,0 1,0 0))'::geometry) as geos; \o
<gh_stars>1-10 CREATE SCHEMA [Setting] AUTHORIZATION [dbo];
<gh_stars>1-10 -- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. SET ROLE :ROLE_CLUSTER_SUPERUSER; -- cleanup from previous tests DROP DATABASE IF EXISTS data_node_1; DROP DATABASE IF EXISTS data_node_2; DROP DATABASE IF EXISTS data_node_3; SELECT * FROM add_data_node('data_node_1', host => 'localhost', database => 'data_node_1'); SELECT * FROM add_data_node('data_node_2', host => 'localhost', database => 'data_node_2'); SELECT * FROM add_data_node('data_node_3', host => 'localhost', database => 'data_node_3'); CREATE TABLE disttable(time timestamptz, device int, temp float); SELECT * FROM create_distributed_hypertable('disttable', 'time', 'device', 3); SELECT setseed(1); INSERT INTO disttable SELECT t, (abs(timestamp_hash(t::timestamp)) % 10) + 1, random() * 10 FROM generate_series('2019-01-01'::timestamptz, '2019-01-02'::timestamptz, '1 second') as t;
-- This package is not accepted by greenwood because -- it has two "elm-version" fields INSERT INTO packages (timestamp, major, minor, patch, author, name, summary, license, elm_version, dependencies, format ) VALUES (1540223747, 1, 0, 0, 'alex-tan', 'loadable', 'Separate the loading of your application from the logic.', 'MIT', '0.19.0 <= v < 0.20.0', '{"elm/browser":"1.0.0 <= v < 2.0.0","elm/core":"1.0.0 <= v < 2.0.0","elm/html":"1.0.0 <= v < 2.0.0"}', 19 );
<gh_stars>0 /* Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table: Equilateral: It's a triangle with 3 sides of equal length. Isosceles: It's a triangle with 2 sides of equal length. Scalene: It's a triangle with 3 sides of differing lengths. Not A Triangle: The given values of A, B, and C don't form a triangle. */ select case when A+B>C and A=B and B=C and A=C then 'Equilateral' when A+B>C and A=B or B=C or A=C then 'Isosceles' when A+B>C and A!=B then 'Scalene' else 'Not A Triangle' end from TRIANGLES;
CREATE DEFINER=`root`@`localhost` PROCEDURE `insertHubunganCustomer`( in customer1 int, in customer2 int, in hubungan int ) BEGIN INSERT INTO hubunganCustomer (idcustomer1, idCustomer2, idHubungan,isValid, idHubSebelum) SELECT customer1, customer2, hubungan, 1, NULL WHERE NOT EXISTS ( SELECT idcustomer1, idcustomer2, idhubungan FROM hubungancustomer WHERE hubungancustomer.idcustomer1=customer1 AND hubungancustomer.idcustomer2=customer2 AND hubungancustomer.idhubungan = hubungan ); END
<gh_stars>0 Use Ratemanagement3; INSERT INTO `tblGateway` (`GatewayID`, `Title`, `Name`, `Status`, `CreatedBy`, `created_at`, `ModifiedBy`, `updated_at`) VALUES (14, 'VOS5000', 'VOS5000', 1, 'RateManagementSystem', '2017-12-30 13:06:00', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (172, 14, 'SSH Password', '<PASSWORD>password', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (171, 14, 'SSH Username', 'sshusername', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (170, 14, 'SSH Host', 'sshhost', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (169, 14, 'Auto Add IP', 'AutoAddIP', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (168, 14, 'Prefix Translation Rule', 'PrefixTranslationRule', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (167, 14, 'CLD Translation Rule', 'CLDTranslationRule', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (166, 14, 'CLI Translation Rule', 'CLITranslationRule', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (165, 14, 'Rate Format', 'RateFormat', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (164, 14, 'CDR ReRate', 'RateCDR', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (163, 14, 'Billing Time', 'BillingTime', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (162, 14, 'SFTP CDR Download Path', 'cdr_folder', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (161, 14, 'Authentication Rule', 'NameFormat', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (160, 14, 'Password', 'password', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (159, 14, 'User Name', 'username', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Title`, `Name`, `Status`, `Created_at`, `CreatedBy`, `updated_at`, `ModifiedBy`) VALUES (158, 14, 'SFTP Host IP', 'host', 1, '2017-12-30 13:06:00', 'RateManagementSystem', NULL, NULL); INSERT INTO `tblCompanyConfiguration` (`CompanyID`, `Key`, `Value`) VALUES (1, 'VOS5000_LOCATION', '/home/neon/vos5000_files_staging'); INSERT INTO `tblCompanyConfiguration` (`CompanyID`, `Key`, `Value`) VALUES (1, 'VOS5000_DOWNLOAD_CRONJOB', '{"FilesDownloadLimit":"10","ThresholdTime":"120","SuccessEmail":"","ErrorEmail":"","JobTime":"MINUTE","JobInterval":"1","JobDay":["SUN","MON","TUE","WED","THU","FRI","SAT"],"JobStartTime":"12:00:00 AM","CompanyGatewayID":""}'); INSERT INTO `tblCompanyConfiguration` (`CompanyID`, `Key`, `Value`) VALUES (1, 'VOS5000_PROCESS_CRONJOB', '{"FilesMaxProccess":"5","ThresholdTime":"30","SuccessEmail":"","ErrorEmail":"","JobTime":"MINUTE","JobInterval":"2","JobDay":["SUN","MON","TUE","WED","THU","FRI","SAT"],"JobStartTime":"12:00:00 AM","CompanyGatewayID":""}'); INSERT INTO `tblCronJobCommand` (`CompanyID`, `GatewayID`, `Title`, `Command`, `Settings`, `Status`, `created_at`, `created_by`) VALUES (1, 14, 'Download VOS5000 CDR', 'vos5000accountusage', '[[{"title":"Files Max Proccess","type":"text","value":"","name":"FilesMaxProccess"},{"title":"Threshold Time (Minute)","type":"text","value":"","name":"ThresholdTime"},{"title":"Success Email","type":"text","value":"","name":"SuccessEmail"},{"title":"Error Email","type":"text","value":"","name":"ErrorEmail"}]]', 1, '2015-05-29 13:05:56', 'RateManagementSystem'); INSERT INTO `tblCronJobCommand` (`CompanyID`, `GatewayID`, `Title`, `Command`, `Settings`, `Status`, `created_at`, `created_by`) VALUES (1, 14, 'Download VOS5000 SFTP File', 'vos5000downloadcdr', '[[{"title":"Max File Download Limit","type":"text","value":"","name":"FilesDownloadLimit"},{"title":"Threshold Time (Minute)","type":"text","value":"","name":"ThresholdTime"},{"title":"Success Email","type":"text","value":"","name":"SuccessEmail"},{"title":"Error Email","type":"text","value":"","name":"ErrorEmail"}]]', 1, '2015-06-09 13:05:56', 'RateManagementSystem');
<gh_stars>0 DROP TABLE if exists public.speakers; CREATE TABLE if not exists public.speakers ( speaker jsonb NOT NULL, speaker_id text COLLATE pg_catalog."default", identifier text COLLATE pg_catalog."default", speaker_name text COLLATE pg_catalog."default", last_name text COLLATE pg_catalog."default", roles jsonb ) TABLESPACE pg_default; ALTER TABLE public.speakers OWNER to postgres; insert into public.speakers(speaker, speaker_id, identifier, speaker_name, last_name, roles) select distinct speaker, speaker->>'ID', speaker->>'identifier', speaker->>'name', speaker->>'last_name', case when jsonb_typeof(speaker->'roles') = 'array' then speaker->'roles' else jsonb_build_array(speaker->'roles') end from ( select jsonb_array_elements(jsonb_array_elements(raw_file->'transcript'->'sections')->'turns')->'speaker' as speaker from raw.oa ) s1 where (speaker != 'null' and speaker is not null) ; CREATE INDEX IF NOT EXISTS speakers_speaker_id_index ON public.speakers(speaker_id);
DROP INDEX node_path_gin; DROP TABLE node;
<reponame>meszike91/freshproject<filename>laravel6.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Gép: 1172.16.58.3 -- Létrehozás ideje: 2020. Sze 14. 11:28 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Adatbázis: `laravel6` -- -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `articles` -- CREATE TABLE `articles` ( `user_id` bigint(20) UNSIGNED NOT NULL, `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `excerpt` text COLLATE utf8mb4_unicode_ci NOT NULL, `body` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- A tábla adatainak kiíratása `articles` -- INSERT INTO `articles` (`user_id`, `id`, `title`, `excerpt`, `body`, `created_at`, `updated_at`) VALUES (1, 1, 'Learn Laravel', 'Vel qui recusandae quia aut.', 'Non consequuntur voluptas rem dolores dolores voluptas voluptate aut. Atque placeat impedit eligendi nisi. Possimus aut deserunt sit qui possimus odit. Sint laboriosam odio sint consequatur voluptates et.', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (2, 2, 'Ut adipisci aut et voluptate.', 'Magni quo doloribus ipsa ut autem sit.', 'Ipsam ea voluptatem est sit maxime corrupti. Ab distinctio ut odit impedit. Facere accusantium illo expedita eveniet rerum recusandae molestias doloribus.', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (3, 3, 'Quas ipsam reiciendis dolor maxime repellendus ut.', 'Velit labore et molestias rerum eaque asperiores earum.', 'Cumque et blanditiis est atque. Aperiam amet cumque neque accusantium quia. Ab fugiat quia in necessitatibus perspiciatis.', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (4, 4, 'Adipisci reprehenderit quis animi impedit veniam qui quisquam.', 'Quia praesentium vitae deserunt a dolor et sint aliquam.', 'Adipisci laudantium ratione repellendus modi ex iusto velit. Possimus quae aut omnis distinctio impedit. Impedit possimus qui quisquam laudantium.', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (5, 5, 'Enim dolorum dolor quas error nisi dolorum.', 'Maxime at saepe ut laborum magni officia dolorum.', 'Sit magnam et facilis dolorem. Accusamus magni amet sunt illum. Est ut officiis consequatur rerum esse. Molestiae quasi illo deleniti.', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (1, 22, 'teszt', 'ds', 'ds', '2020-07-22 09:16:29', '2020-07-22 09:16:29'); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `article_tag` -- CREATE TABLE `article_tag` ( `id` bigint(20) UNSIGNED NOT NULL, `article_id` bigint(20) UNSIGNED NOT NULL, `tag_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- A tábla adatainak kiíratása `article_tag` -- INSERT INTO `article_tag` (`id`, `article_id`, `tag_id`, `created_at`, `updated_at`) VALUES (1, 1, 2, '2020-07-22 07:09:11', '2020-07-22 07:09:11'), (2, 1, 3, '2020-07-22 07:09:11', '2020-07-22 07:09:11'), (3, 1, 4, '2020-07-22 07:09:11', '2020-07-22 07:09:11'), (7, 5, 1, NULL, NULL), (8, 5, 2, NULL, NULL), (9, 5, 3, NULL, NULL), (10, 5, 4, NULL, NULL), (29, 22, 1, '2020-07-22 09:16:29', '2020-07-22 09:16:29'), (30, 22, 2, '2020-07-22 09:16:29', '2020-07-22 09:16:29'); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `assignments` -- CREATE TABLE `assignments` ( `id` bigint(20) UNSIGNED NOT NULL, `body` text COLLATE utf8mb4_unicode_ci NOT NULL, `completed` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `due_date` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- A tábla adatainak kiíratása `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_07_06_100912_create_posts_table', 1), (5, '2020_07_08_103525_create_projects_table', 1), (6, '2020_07_08_104424_create_assignments_table', 1), (7, '2020_07_10_082802_create_articles_table', 1), (8, '2020_07_21_110820_create_tags_table', 1), (9, '2020_07_21_112055_create_article_tag_table', 1); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `posts` -- CREATE TABLE `posts` ( `id` bigint(20) UNSIGNED NOT NULL, `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `body` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `published_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `projects` -- CREATE TABLE `projects` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `tags` -- CREATE TABLE `tags` ( `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- A tábla adatainak kiíratása `tags` -- INSERT INTO `tags` (`name`, `id`, `created_at`, `updated_at`) VALUES ('php', 1, '2020-07-22 07:05:55', '2020-07-22 07:05:55'), ('laravel', 2, '2020-07-22 07:05:55', '2020-07-22 07:05:55'), ('work', 3, '2020-07-22 07:05:55', '2020-07-22 07:05:55'), ('education', 4, '2020-07-22 07:05:55', '2020-07-22 07:05:55'); -- -------------------------------------------------------- -- -- Tábla szerkezet ehhez a táblához `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- A tábla adatainak kiíratása `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', '2020-07-22 05:02:38', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'BpdkPd8rEc', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (2, 'Prof. Eldora West MD', '<EMAIL>', '2020-07-22 05:02:38', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '8YVyVdcq3a', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (3, 'Dr. <NAME>', '<EMAIL>', '2020-07-22 05:02:38', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'bdc7ZzWRLE', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (4, '<NAME>', '<EMAIL>', '2020-07-22 05:02:38', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '4WO9hnu49c', '2020-07-22 05:02:38', '2020-07-22 05:02:38'), (5, '<NAME>', '<EMAIL>', '2020-07-22 05:02:38', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'xwZmrmrXTo', '2020-07-22 05:02:38', '2020-07-22 05:02:38'); -- -- Indexek a kiírt táblákhoz -- -- -- A tábla indexei `articles` -- ALTER TABLE `articles` ADD PRIMARY KEY (`id`), ADD KEY `articles_user_id_foreign` (`user_id`); -- -- A tábla indexei `article_tag` -- ALTER TABLE `article_tag` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `article_tag_article_id_tag_id_unique` (`article_id`,`tag_id`), ADD KEY `article_tag_tag_id_foreign` (`tag_id`); -- -- A tábla indexei `assignments` -- ALTER TABLE `assignments` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- A tábla indexei `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `projects` -- ALTER TABLE `projects` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- A tábla indexei `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- A kiírt táblák AUTO_INCREMENT értéke -- -- -- AUTO_INCREMENT a táblához `articles` -- ALTER TABLE `articles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT a táblához `article_tag` -- ALTER TABLE `article_tag` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT a táblához `assignments` -- ALTER TABLE `assignments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT a táblához `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT a táblához `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT a táblához `posts` -- ALTER TABLE `posts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT a táblához `projects` -- ALTER TABLE `projects` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT a táblához `tags` -- ALTER TABLE `tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT a táblához `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Megkötések a kiírt táblákhoz -- -- -- Megkötések a táblához `articles` -- ALTER TABLE `articles` ADD CONSTRAINT `articles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Megkötések a táblához `article_tag` -- ALTER TABLE `article_tag` ADD CONSTRAINT `article_tag_article_id_foreign` FOREIGN KEY (`article_id`) REFERENCES `articles` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `article_tag_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE; COMMIT; /*!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 */;
-------------------------------------------------------- -- DDL for Materialized View GS_EDIT_LOG -------------------------------------------------------- CREATE MATERIALIZED VIEW "GROUNDFISH"."GS_EDIT_LOG" ("MISSION", "SETNO", "SPEC", "FSHNO", "FSEX", "FLEN", "TABLE_NAME", "FIELD_NAME", "MESSAGE_NUMBER", "CALCULATED_VALUE", "OLD_VALUE", "NEW_VALUE", "EDITOR_RESPONSE") ORGANIZATION HEAP PCTFREE 5 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "MFD_GROUNDFISH" BUILD IMMEDIATE USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "MFD_GROUNDFISH" REFRESH FORCE ON DEMAND START WITH sysdate+0 NEXT (trunc(sysdate+1)+19/24) WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT DISABLE QUERY REWRITE AS SELECT "GS_EDIT_LOG"."MISSION" "MISSION","GS_EDIT_LOG"."SETNO" "SETNO","GS_EDIT_LOG"."SPEC" "SPEC","GS_EDIT_LOG"."FSHNO" "FSHNO","GS_EDIT_LOG"."FSEX" "FSEX","GS_EDIT_LOG"."FLEN" "FLEN","GS_EDIT_LOG"."TABLE_NAME" "TABLE_NAME","GS_EDIT_LOG"."FIELD_NAME" "FIELD_NAME","GS_EDIT_LOG"."MESSAGE_NUMBER" "MESSAGE_NUMBER","GS_EDIT_LOG"."CALCULATED_VALUE" "CALCULATED_VALUE","GS_EDIT_LOG"."OLD_VALUE" "OLD_VALUE","GS_EDIT_LOG"."NEW_VALUE" "NEW_VALUE","GS_EDIT_LOG"."EDITOR_RESPONSE" "EDITOR_RESPONSE" FROM "GROUNDFISH"."GS_EDIT_LOG"@GROUNDFISH.SABS "GS_EDIT_LOG"; CREATE UNIQUE INDEX "GROUNDFISH"."I_SNAP$_GS_EDIT_LOG" ON "GROUNDFISH"."GS_EDIT_LOG" ("M_ROW$$") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "MFD_GROUNDFISH" ; COMMENT ON MATERIALIZED VIEW "GROUNDFISH"."GS_EDIT_LOG" IS 'snapshot table for snapshot GROUNDFISH.GS_EDIT_LOG'; GRANT SELECT ON "GROUNDFISH"."GS_EDIT_LOG" TO PUBLIC; GRANT SELECT ON "GROUNDFISH"."GS_EDIT_LOG" TO "HUBLEYB"; GRANT SELECT ON "GROUNDFISH"."GS_EDIT_LOG" TO "GREYSONP";
<reponame>navikt/sykepengesoknad-arkivering-oppgave<gh_stars>0 ALTER TABLE oppgavefordeling ADD COLUMN korrigert_av VARCHAR(100) NULL;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Mar 2021 pada 12.47 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `ci4` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_activation_attempts` -- CREATE TABLE `auth_activation_attempts` ( `id` int(11) UNSIGNED NOT NULL, `ip_address` varchar(255) NOT NULL, `user_agent` varchar(255) NOT NULL, `token` varchar(255) DEFAULT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_groups` -- CREATE TABLE `auth_groups` ( `id` int(11) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `auth_groups` -- INSERT INTO `auth_groups` (`id`, `name`, `description`) VALUES (1, 'admin', 'administrator'); -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_groups_permissions` -- CREATE TABLE `auth_groups_permissions` ( `group_id` int(11) UNSIGNED NOT NULL DEFAULT 0, `permission_id` int(11) UNSIGNED NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `auth_groups_permissions` -- INSERT INTO `auth_groups_permissions` (`group_id`, `permission_id`) VALUES (1, 2); -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_groups_users` -- CREATE TABLE `auth_groups_users` ( `group_id` int(11) UNSIGNED NOT NULL DEFAULT 0, `user_id` int(11) UNSIGNED NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_logins` -- CREATE TABLE `auth_logins` ( `id` int(11) UNSIGNED NOT NULL, `ip_address` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `user_id` int(11) UNSIGNED DEFAULT NULL, `date` datetime NOT NULL, `success` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `auth_logins` -- INSERT INTO `auth_logins` (`id`, `ip_address`, `email`, `user_id`, `date`, `success`) VALUES (34, '::1', '<EMAIL>', 1, '2021-03-03 05:09:28', 1), (35, '::1', 'Super Admin 22', NULL, '2021-03-03 05:21:50', 0), (36, '::1', '<EMAIL>', 1, '2021-03-03 05:37:53', 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_permissions` -- CREATE TABLE `auth_permissions` ( `id` int(11) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `auth_permissions` -- INSERT INTO `auth_permissions` (`id`, `name`, `description`) VALUES (2, 'superadmin', 'kelola data'); -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_reset_attempts` -- CREATE TABLE `auth_reset_attempts` ( `id` int(11) UNSIGNED NOT NULL, `email` varchar(255) NOT NULL, `ip_address` varchar(255) NOT NULL, `user_agent` varchar(255) NOT NULL, `token` varchar(255) DEFAULT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_tokens` -- CREATE TABLE `auth_tokens` ( `id` int(11) UNSIGNED NOT NULL, `selector` varchar(255) NOT NULL, `hashedValidator` varchar(255) NOT NULL, `user_id` int(11) UNSIGNED NOT NULL, `expires` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Struktur dari tabel `auth_users_permissions` -- CREATE TABLE `auth_users_permissions` ( `user_id` int(11) UNSIGNED NOT NULL DEFAULT 0, `permission_id` int(11) UNSIGNED NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Struktur dari tabel `migrations` -- CREATE TABLE `migrations` ( `id` bigint(20) UNSIGNED NOT NULL, `version` varchar(255) NOT NULL, `class` varchar(255) NOT NULL, `group` varchar(255) NOT NULL, `namespace` varchar(255) NOT NULL, `time` int(11) NOT NULL, `batch` int(11) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `migrations` -- INSERT INTO `migrations` (`id`, `version`, `class`, `group`, `namespace`, `time`, `batch`) VALUES (1, '2017-11-20-223112', 'Myth\\Auth\\Database\\Migrations\\CreateAuthTables', 'default', 'Myth\\Auth', 1614753027, 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `semnas` -- CREATE TABLE `semnas` ( `id` int(11) NOT NULL, `email` varchar(50) NOT NULL, `nama` varchar(50) NOT NULL, `insek` varchar(30) NOT NULL, `wa` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `semnas` -- INSERT INTO `semnas` (`id`, `email`, `nama`, `insek`, `wa`) VALUES (1, '<EMAIL>', '<NAME>', 'Microsoft', '+12 0044004'), (2, '<EMAIL>', '<NAME>', 'Facebook', '+12 0800690'), (3, '<EMAIL>', '<NAME>', 'Twitter', '+12 0512463'), (4, '<EMAIL>', '<NAME>', 'Google', '+12 0411822'), (5, '<EMAIL>', '<NAME>', 'CI Group', '+12 0411623'), (6, '<EMAIL>', '<NAME>', 'Asia Network', '0838 3232 5492'), (7, '<EMAIL>', '<NAME>', 'UI', '0878 7232 3490'), (8, '<EMAIL>', '<NAME>', 'UTM', '0821 2152 4563'), (9, '<EMAIL>', '<NAME>', 'UB', '0822 3252 4552'), (10, '<EMAIL>', '<NAME>', 'UGM', '0811 2112 2444'), (11, '<EMAIL>', '<NAME>', 'UPN Jakarta', '0828 2117 2278'), (12, '<EMAIL>', '<NAME>', 'UPN Jatim', '0852 4578 9090'), (13, '<EMAIL>', '<NAME>', 'UPN Jatim', '0812 1245 5444'), (14, '<EMAIL>', '<NAME>', 'ITS', '0828 8787 4532'), (15, '<EMAIL>', '<NAME> ', 'UB', '0812 2454 8754'), (16, '<EMAIL>', '<NAME>', 'ITN Malang', '0838 2455 2444'), (17, '<EMAIL>', '<NAME>', 'STIKOM', '0838 8585 3434'), (18, '<EMAIL>', '<NAME>', 'UPN Yogyakarta', '0858 5245 2422'), (19, '<EMAIL>', 'Intan Mutiara Prawesti', 'UPN Yogyakarta', '0858 2324 9090'), (20, '<EMAIL>', '<NAME>', 'IPB', '0828 4040 6785'), (21, '<EMAIL>', '<NAME>', 'UPN Veteran Jatim', '0878 2452 8724'), (22, '<EMAIL>', '<NAME>', 'UPN Veteran Jatim', '0878 2452 8788'); -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` int(11) UNSIGNED NOT NULL, `email` varchar(255) NOT NULL, `username` varchar(30) DEFAULT NULL, `password_hash` varchar(255) NOT NULL, `reset_hash` varchar(255) DEFAULT NULL, `reset_at` datetime DEFAULT NULL, `reset_expires` datetime DEFAULT NULL, `activate_hash` varchar(255) DEFAULT NULL, `status` varchar(255) DEFAULT NULL, `status_message` varchar(255) DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT 0, `force_pass_reset` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`id`, `email`, `username`, `password_hash`, `reset_hash`, `reset_at`, `reset_expires`, `activate_hash`, `status`, `status_message`, `active`, `force_pass_reset`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, '<EMAIL>', 'Super Admin', '$2y$10$7Zcv8jWdu57WZld7k3m.9e/oH06Okf3ZTj/ahhsyP2dZUT1Jc2dyq', NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, '2021-03-03 04:06:14', '2021-03-03 04:06:14', NULL); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `auth_activation_attempts` -- ALTER TABLE `auth_activation_attempts` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `auth_groups` -- ALTER TABLE `auth_groups` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `auth_groups_permissions` -- ALTER TABLE `auth_groups_permissions` ADD KEY `auth_groups_permissions_permission_id_foreign` (`permission_id`), ADD KEY `group_id_permission_id` (`group_id`,`permission_id`); -- -- Indeks untuk tabel `auth_groups_users` -- ALTER TABLE `auth_groups_users` ADD KEY `auth_groups_users_user_id_foreign` (`user_id`), ADD KEY `group_id_user_id` (`group_id`,`user_id`); -- -- Indeks untuk tabel `auth_logins` -- ALTER TABLE `auth_logins` ADD PRIMARY KEY (`id`), ADD KEY `email` (`email`), ADD KEY `user_id` (`user_id`); -- -- Indeks untuk tabel `auth_permissions` -- ALTER TABLE `auth_permissions` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `auth_reset_attempts` -- ALTER TABLE `auth_reset_attempts` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `auth_tokens` -- ALTER TABLE `auth_tokens` ADD PRIMARY KEY (`id`), ADD KEY `auth_tokens_user_id_foreign` (`user_id`), ADD KEY `selector` (`selector`); -- -- Indeks untuk tabel `auth_users_permissions` -- ALTER TABLE `auth_users_permissions` ADD KEY `auth_users_permissions_permission_id_foreign` (`permission_id`), ADD KEY `user_id_permission_id` (`user_id`,`permission_id`); -- -- Indeks untuk tabel `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `semnas` -- ALTER TABLE `semnas` ADD PRIMARY KEY (`id`); -- -- Indeks untuk tabel `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `username` (`username`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `auth_activation_attempts` -- ALTER TABLE `auth_activation_attempts` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `auth_groups` -- ALTER TABLE `auth_groups` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `auth_logins` -- ALTER TABLE `auth_logins` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37; -- -- AUTO_INCREMENT untuk tabel `auth_permissions` -- ALTER TABLE `auth_permissions` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT untuk tabel `auth_reset_attempts` -- ALTER TABLE `auth_reset_attempts` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT untuk tabel `auth_tokens` -- ALTER TABLE `auth_tokens` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT untuk tabel `migrations` -- ALTER TABLE `migrations` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT untuk tabel `semnas` -- ALTER TABLE `semnas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT untuk tabel `users` -- ALTER TABLE `users` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `auth_groups_permissions` -- ALTER TABLE `auth_groups_permissions` ADD CONSTRAINT `auth_groups_permissions_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `auth_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `auth_groups_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `auth_permissions` (`id`) ON DELETE CASCADE; -- -- Ketidakleluasaan untuk tabel `auth_groups_users` -- ALTER TABLE `auth_groups_users` ADD CONSTRAINT `auth_groups_users_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `auth_groups` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `auth_groups_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Ketidakleluasaan untuk tabel `auth_tokens` -- ALTER TABLE `auth_tokens` ADD CONSTRAINT `auth_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Ketidakleluasaan untuk tabel `auth_users_permissions` -- ALTER TABLE `auth_users_permissions` ADD CONSTRAINT `auth_users_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `auth_permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `auth_users_permissions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!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 */;
CREATE VIEW [dbo].[hlsyspersonphonenumbervw] AS SELECT CAST(0 AS INT) AS [personid] , CAST(0 AS INT) AS [persondefid] , CAST(0 AS NVARCHAR(255)) AS [phonenumber] , CAST(0 AS BIT) AS [isdefault] FROM (VALUES(CAST(N'### DB ARTIFACTS WERE NOT REBUILT AFTER DEPLOY! ###' AS BIT))) AS [x]([a]) -- use Server.RebuildModelApp.exe
<gh_stars>1-10 --- Extraindo dados de FATO_Venda da Fonte/Source --- Fonte: Banco de dados Firebird SELECT V2."DATA" , v.CODIGOMESTRE AS COD_VENDA, V2.OPERADOR AS VENDEDOR, v2.CLIENTE , V."QUANTIDADE" , V.PRODUTO, V.UNITARIO , V.DESCONTO , V.SUBTOTAL , (v.SUBTOTAL - v.DESCONTO ) AS TOTALPAGO, V2.PARCELADO , V2.A_VISTA_CART_DEB , V2.A_VISTA_CART_CRED , V2.A_PRAZO_CART_CRED , V2."REFERENCIA" , V2.HISTORICO, V2.MODULO_ORIGEM, v3.TIPO , v3."VALOR" , v3.QTDE_PARC , v3.OPERADORA , v3.BANDEIRA FROM VENDADETALHE v INNER JOIN VENDAMESTRE v2 ON v.CODIGOMESTRE = v2.CODIGOMESTRE INNER JOIN VENDARCBTOS v3 ON v.CODIGOMESTRE = v3.CODIGOMESTRE WHERE v2.SITUACAO = '3 - Autorizada'; -- OBS: Data de corte para extração dos dados definimos aqui.
create materialized view notes_customers_view as select n.id, -- Customer case when count(c) = 0 then null else to_json(( c.id, c.name, c.email, c.is_blacklisted, to_char(c.created_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') )::export_customers) end as customer from notes as n left join customers as c on (n.reference_id = c.id AND n.reference_type = 'customer') group by n.id, c.id; create unique index notes_customers_view_idx on notes_customers_view (id);
<filename>data/en/mysql/subdivisions_TJ.mysql.sql<gh_stars>10-100 CREATE TABLE subdivision_TJ (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `subdivision_TJ` (`id`, `name`, `level`) VALUES ('TJ-GB', 'Gorno-Badakhshan Autonomous Province', 'autonomous region'); INSERT INTO `subdivision_TJ` (`id`, `name`, `level`) VALUES ('TJ-KT', 'Khatlon Province', 'region'); INSERT INTO `subdivision_TJ` (`id`, `name`, `level`) VALUES ('TJ-SU', 'Sughd Province', 'region');
<gh_stars>100-1000 -- where.test -- -- execsql { -- CREATE TABLE t99(Dte INT, X INT); -- DELETE FROM t99 WHERE (Dte = 2451337) OR (Dte = 2451339) OR -- (Dte BETWEEN 2451345 AND 2451347) OR (Dte = 2451351) OR -- (Dte BETWEEN 2451355 AND 2451356) OR (Dte = 2451358) OR -- (Dte = 2451362) OR (Dte = 2451365) OR (Dte = 2451367) OR -- (Dte BETWEEN 2451372 AND 2451376) OR (Dte BETWEEN 2451382 AND 2451384) OR -- (Dte = 2451387) OR (Dte BETWEEN 2451389 AND 2451391) OR -- (Dte BETWEEN 2451393 AND 2451395) OR (Dte = 2451400) OR -- (Dte = 2451402) OR (Dte = 2451404) OR (Dte BETWEEN 2451416 AND 2451418) OR -- (Dte = 2451422) OR (Dte = 2451426) OR (Dte BETWEEN 2451445 AND 2451446) OR -- (Dte = 2451456) OR (Dte = 2451458) OR (Dte BETWEEN 2451465 AND 2451467) OR -- (Dte BETWEEN 2451469 AND 2451471) OR (Dte = 2451474) OR -- (Dte BETWEEN 2451477 AND 2451501) OR (Dte BETWEEN 2451503 AND 2451509) OR -- (Dte BETWEEN 2451511 AND 2451514) OR (Dte BETWEEN 2451518 AND 2451521) OR -- (Dte BETWEEN 2451523 AND 2451531) OR (Dte BETWEEN 2451533 AND 2451537) OR -- (Dte BETWEEN 2451539 AND 2451544) OR (Dte BETWEEN 2451546 AND 2451551) OR -- (Dte BETWEEN 2451553 AND 2451555) OR (Dte = 2451557) OR -- (Dte BETWEEN 2451559 AND 2451561) OR (Dte = 2451563) OR -- (Dte BETWEEN 2451565 AND 2451566) OR (Dte BETWEEN 2451569 AND 2451571) OR -- (Dte = 2451573) OR (Dte = 2451575) OR (Dte = 2451577) OR (Dte = 2451581) OR -- (Dte BETWEEN 2451583 AND 2451586) OR (Dte BETWEEN 2451588 AND 2451592) OR -- (Dte BETWEEN 2451596 AND 2451598) OR (Dte = 2451600) OR -- (Dte BETWEEN 2451602 AND 2451603) OR (Dte = 2451606) OR (Dte = 2451611); -- } CREATE TABLE t99(Dte INT, X INT); DELETE FROM t99 WHERE (Dte = 2451337) OR (Dte = 2451339) OR (Dte BETWEEN 2451345 AND 2451347) OR (Dte = 2451351) OR (Dte BETWEEN 2451355 AND 2451356) OR (Dte = 2451358) OR (Dte = 2451362) OR (Dte = 2451365) OR (Dte = 2451367) OR (Dte BETWEEN 2451372 AND 2451376) OR (Dte BETWEEN 2451382 AND 2451384) OR (Dte = 2451387) OR (Dte BETWEEN 2451389 AND 2451391) OR (Dte BETWEEN 2451393 AND 2451395) OR (Dte = 2451400) OR (Dte = 2451402) OR (Dte = 2451404) OR (Dte BETWEEN 2451416 AND 2451418) OR (Dte = 2451422) OR (Dte = 2451426) OR (Dte BETWEEN 2451445 AND 2451446) OR (Dte = 2451456) OR (Dte = 2451458) OR (Dte BETWEEN 2451465 AND 2451467) OR (Dte BETWEEN 2451469 AND 2451471) OR (Dte = 2451474) OR (Dte BETWEEN 2451477 AND 2451501) OR (Dte BETWEEN 2451503 AND 2451509) OR (Dte BETWEEN 2451511 AND 2451514) OR (Dte BETWEEN 2451518 AND 2451521) OR (Dte BETWEEN 2451523 AND 2451531) OR (Dte BETWEEN 2451533 AND 2451537) OR (Dte BETWEEN 2451539 AND 2451544) OR (Dte BETWEEN 2451546 AND 2451551) OR (Dte BETWEEN 2451553 AND 2451555) OR (Dte = 2451557) OR (Dte BETWEEN 2451559 AND 2451561) OR (Dte = 2451563) OR (Dte BETWEEN 2451565 AND 2451566) OR (Dte BETWEEN 2451569 AND 2451571) OR (Dte = 2451573) OR (Dte = 2451575) OR (Dte = 2451577) OR (Dte = 2451581) OR (Dte BETWEEN 2451583 AND 2451586) OR (Dte BETWEEN 2451588 AND 2451592) OR (Dte BETWEEN 2451596 AND 2451598) OR (Dte = 2451600) OR (Dte BETWEEN 2451602 AND 2451603) OR (Dte = 2451606) OR (Dte = 2451611);
<gh_stars>10-100 -- file:rules.sql ln:409 expect:true insert into rtest_nothn4 values (10, 'too small')
<gh_stars>1-10 -- View: edi_cctop_901_991_v DROP VIEW IF EXISTS edi_cctop_901_991_v; CREATE OR REPLACE VIEW edi_cctop_901_991_v AS SELECT i.c_invoice_id AS edi_cctop_901_991_v_id, i.c_invoice_id, i.c_invoice_id AS edi_cctop_invoic_v_id, it.taxamt + it.taxbaseamt AS totalamt, it.taxamt, it.taxbaseamt, t.rate, i.ad_client_id, i.ad_org_id, i.created, i.createdby, i.updated, i.updatedby, i.isactive, REGEXP_REPLACE(rn.referenceNo, '\s+$', '') AS ESRReferenceNumber FROM c_invoice i LEFT JOIN c_invoicetax it ON it.c_invoice_id = i.c_invoice_id LEFT JOIN c_tax t ON t.c_tax_id = it.c_tax_id LEFT JOIN ( SELECT sit.c_invoice_id, count(DISTINCT st.rate) AS tax_count FROM c_invoicetax sit LEFT JOIN c_tax st ON st.c_tax_id = sit.c_tax_id GROUP BY sit.c_invoice_id ) tc ON tc.c_invoice_id = it.c_invoice_id LEFT JOIN c_referenceno_doc rnd on rnd.record_id=i.c_invoice_id and rnd.ad_table_id=318 /* C_Invoice DocumentType */ LEFT JOIN c_referenceno rn on rn.c_referenceno_id=rnd.c_referenceno_id WHERE tc.tax_count > 0 -- can either be an ESRReferenceNumber, or we may not have it at all. Regardless, both cases should work. AND (rn.c_referenceno_type_id = 540005 OR rnd.c_referenceno_doc_id is null) /* c_referenceno_type_id = 540005 (ESRReferenceNumber) */;
<gh_stars>1000+ -- 2018-01-31T14:17:00.493 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,0,540929,'N',TO_TIMESTAMP('2018-01-31 14:17:00','YYYY-MM-DD HH24:MI:SS'),100,'D','N','Y','N','N','Y','N','N','N','N',0,'Bussines Partner Credit Limit','L','C_BPartner_CreditLimit',TO_TIMESTAMP('2018-01-31 14:17:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:17:00.504 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_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_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=540929 AND NOT EXISTS (SELECT 1 FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID) ; -- 2018-01-31T14:17:00.609 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,554497,TO_TIMESTAMP('2018-01-31 14:17:00','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table C_BPartner_CreditLimit',1,'Y','N','Y','Y','C_BPartner_CreditLimit','N',1000000,TO_TIMESTAMP('2018-01-31 14:17:00','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:17:39.966 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558964,102,0,19,540929,'AD_Client_ID',TO_TIMESTAMP('2018-01-31 14:17:39','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.','D',10,'Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','Y','N','N','N','N','N','Mandant',0,TO_TIMESTAMP('2018-01-31 14:17:39','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:39.968 -- 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=558964 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) ; -- 2018-01-31T14:17:40.037 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558965,113,0,19,540929,'AD_Org_ID',TO_TIMESTAMP('2018-01-31 14:17:39','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten','D',10,'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','Y','N','Y','N','N','N','Sektion',0,TO_TIMESTAMP('2018-01-31 14:17:39','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.039 -- 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=558965 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) ; -- 2018-01-31T14:17:40.113 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558966,126,0,19,540929,'AD_Table_ID',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Database Table information','D',10,'The Database Table provides the information of the table definition','Y','Y','N','N','N','N','Y','N','N','N','N','Y','DB-Tabelle',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.114 -- 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=558966 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) ; -- 2018-01-31T14:17:40.203 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558967,2978,0,19,540929,'CM_Template_ID',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Template defines how content is displayed','D',10,'A template describes how content should get displayed, it contains layout and maybe also scripts on how to handle the content','Y','Y','N','N','N','N','Y','Y','N','N','N','N','Vorlage',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.205 -- 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=558967 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) ; -- 2018-01-31T14:17:40.285 -- 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,543843,0,'C_BPartner_CreditLimit_ID',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Bussines Partner Credit Limit','Bussines Partner Credit Limit',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:17:40.289 -- 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=543843 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2018-01-31T14:17:40.369 -- 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,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558968,543843,0,13,540929,'C_BPartner_CreditLimit_ID',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'D',10,'Y','N','N','N','Y','Y','N','N','N','N','N','Bussines Partner Credit Limit',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.372 -- 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=558968 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) ; -- 2018-01-31T14:17:40.454 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558969,245,0,16,540929,'Created',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag erstellt wurde','D',7,'Das Feld Erstellt zeigt an, zu welchem Datum dieser Eintrag erstellt wurde.','Y','N','N','N','N','N','Y','N','N','N','N','N','Erstellt',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.457 -- 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=558969 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) ; -- 2018-01-31T14:17:40.540 -- 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,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558970,246,0,18,110,540929,'CreatedBy',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag erstellt hat','D',10,'Das Feld Erstellt durch zeigt an, welcher Nutzer diesen Eintrag erstellt hat.','Y','N','N','N','N','N','Y','N','N','N','N','N','Erstellt durch',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.543 -- 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=558970 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) ; -- 2018-01-31T14:17:40.620 -- 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,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558971,275,0,10,540929,'Description',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'D',255,'Y','Y','N','N','N','N','N','N','N','N','N','Y','Beschreibung',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.621 -- 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=558971 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) ; -- 2018-01-31T14:17:40.708 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558972,348,0,20,540929,'IsActive',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv','D',1,'Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','Y','N','N','N','N','Y','Aktiv',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.711 -- 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=558972 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) ; -- 2018-01-31T14:17:40.796 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558973,469,0,10,540929,'Name',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Alphanumeric identifier of the entity','D',120,'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','Y','Y','N','N','Y','N','Y','N','Y','N','N','Y','Name',1,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.800 -- 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=558973 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) ; -- 2018-01-31T14:17:40.875 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558974,2642,0,14,540929,'OtherClause',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Other SQL Clause','D',2000,'Any other complete clause like GROUP BY, HAVING, ORDER BY, etc. after WHERE clause.','Y','Y','N','N','N','N','N','N','N','N','N','Y','Other SQL Clause',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.879 -- 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=558974 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) ; -- 2018-01-31T14:17:40.968 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558975,607,0,16,540929,'Updated',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Datum, an dem dieser Eintrag aktualisiert wurde','D',7,'Aktualisiert zeigt an, wann dieser Eintrag aktualisiert wurde.','Y','N','N','N','N','N','Y','N','N','N','N','N','Aktualisiert',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:40.972 -- 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=558975 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) ; -- 2018-01-31T14:17:41.059 -- 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,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558976,608,0,18,110,540929,'UpdatedBy',TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,'Nutzer, der diesen Eintrag aktualisiert hat','D',10,'Aktualisiert durch zeigt an, welcher Nutzer diesen Eintrag aktualisiert hat.','Y','N','N','N','N','N','Y','N','N','N','N','N','Aktualisiert durch',0,TO_TIMESTAMP('2018-01-31 14:17:40','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:41.063 -- 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=558976 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) ; -- 2018-01-31T14:17:41.146 -- 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,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558977,630,0,14,540929,'WhereClause',TO_TIMESTAMP('2018-01-31 14:17:41','YYYY-MM-DD HH24:MI:SS'),100,'Fully qualified SQL WHERE clause','D',2000,'The Where Clause indicates the SQL WHERE clause to use for record selection. The WHERE clause is added to the query. Fully qualified means "tablename.columnname".','Y','Y','N','N','N','N','N','N','N','N','N','Y','Sql WHERE',0,TO_TIMESTAMP('2018-01-31 14:17:41','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:17:41.149 -- 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=558977 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) ; -- 2018-01-31T14:17:48.199 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558967 ; -- 2018-01-31T14:17:48.227 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558967 ; -- 2018-01-31T14:18:06.867 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558966 ; -- 2018-01-31T14:18:06.869 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558966 ; -- 2018-01-31T14:18:06.930 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558971 ; -- 2018-01-31T14:18:06.935 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558971 ; -- 2018-01-31T14:18:07.006 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558973 ; -- 2018-01-31T14:18:07.008 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558973 ; -- 2018-01-31T14:18:07.044 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558974 ; -- 2018-01-31T14:18:07.046 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558974 ; -- 2018-01-31T14:18:07.103 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column_Trl WHERE AD_Column_ID=558977 ; -- 2018-01-31T14:18:07.105 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Column WHERE AD_Column_ID=558977 ; -- 2018-01-31T14:18:36.689 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540830,TO_TIMESTAMP('2018-01-31 14:18:36','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','CreditLimit_Type',TO_TIMESTAMP('2018-01-31 14:18:36','YYYY-MM-DD HH24:MI:SS'),100,'L') ; -- 2018-01-31T14:18:36.699 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540830 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID) ; -- 2018-01-31T14:19:09.555 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,541585,540830,TO_TIMESTAMP('2018-01-31 14:19:09','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Insurance',TO_TIMESTAMP('2018-01-31 14:19:09','YYYY-MM-DD HH24:MI:SS'),100,'Ins','Ins') ; -- 2018-01-31T14:19:09.567 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_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_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=541585 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) ; -- 2018-01-31T14:19:34.513 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,541586,540830,TO_TIMESTAMP('2018-01-31 14:19:34','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Managing Director',TO_TIMESTAMP('2018-01-31 14:19:34','YYYY-MM-DD HH24:MI:SS'),100,'Man','Man') ; -- 2018-01-31T14:19:34.515 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_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_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=541586 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) ; -- 2018-01-31T14:20:04.849 -- 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,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558978,600,0,17,540830,540929,'N','Type',TO_TIMESTAMP('2018-01-31 14:20:04','YYYY-MM-DD HH24:MI:SS'),100,'N','Type of Validation (SQL, Java Script, Java Language)','D',5,'The Type indicates the type of validation that will occur. This can be SQL, Java Script or Java Language.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Art',0,0,TO_TIMESTAMP('2018-01-31 14:20:04','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:20:04.854 -- 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=558978 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) ; -- 2018-01-31T14:20:43.892 -- 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,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558979,542844,0,15,540929,'N','DateGeneral',TO_TIMESTAMP('2018-01-31 14:20:43','YYYY-MM-DD HH24:MI:SS'),100,'N','D',7,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Datum',0,0,TO_TIMESTAMP('2018-01-31 14:20:43','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:20:43.893 -- 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=558979 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) ; -- 2018-01-31T14:21:19.297 -- 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,543844,0,'ApprovedBy',TO_TIMESTAMP('2018-01-31 14:21:19','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Approved By','Approved By',TO_TIMESTAMP('2018-01-31 14:21:19','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:21:19.299 -- 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=543844 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2018-01-31T14:21:34.587 -- 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,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558980,543844,0,10,540929,'N','ApprovedBy',TO_TIMESTAMP('2018-01-31 14:21:34','YYYY-MM-DD HH24:MI:SS'),100,'N','D',4,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Approved By',0,0,TO_TIMESTAMP('2018-01-31 14:21:34','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:21:34.590 -- 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=558980 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) ; -- 2018-01-31T14:21:56.515 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=110, FieldLength=10,Updated=TO_TIMESTAMP('2018-01-31 14:21:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558980 ; -- 2018-01-31T14:22:03.592 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2018-01-31 14:22:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558978 ; -- 2018-01-31T14:22:30.413 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558981,1367,0,22,540929,'N','Amount',TO_TIMESTAMP('2018-01-31 14:22:30','YYYY-MM-DD HH24:MI:SS'),100,'N','Betrag in einer definierten Währung','D',10,'"Betrag" gibt den Betrag für diese Dokumentenposition an','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','Y','N','Betrag',0,0,TO_TIMESTAMP('2018-01-31 14:22:30','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:22:30.416 -- 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=558981 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) ; -- 2018-01-31T14:25:33.664 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='ApprovedBy_ID',Updated=TO_TIMESTAMP('2018-01-31 14:25:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543844 ; -- 2018-01-31T14:25:33.665 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='ApprovedBy_ID', Name='Approved By', Description=NULL, Help=NULL WHERE AD_Element_ID=543844 ; -- 2018-01-31T14:25:33.680 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ApprovedBy_ID', Name='Approved By', Description=NULL, Help=NULL, AD_Element_ID=543844 WHERE UPPER(ColumnName)='APPROVEDBY_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2018-01-31T14:25:33.682 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='ApprovedBy_ID', Name='Approved By', Description=NULL, Help=NULL WHERE AD_Element_ID=543844 AND IsCentrallyMaintained='Y' ; -- 2018-01-31T14:25:49.932 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ CREATE TABLE public.C_BPartner_CreditLimit (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, Amount NUMERIC NOT NULL, ApprovedBy_ID NUMERIC(10), C_BPartner_CreditLimit_ID NUMERIC(10) NOT NULL, Created TIMESTAMP WITH TIME ZONE NOT NULL, CreatedBy NUMERIC(10) NOT NULL, DateGeneral TIMESTAMP WITHOUT TIME ZONE, IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, Type VARCHAR(5) NOT NULL, Updated TIMESTAMP WITH TIME ZONE NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT ApprovedBy_CBPartnerCreditLimi FOREIGN KEY (ApprovedBy_ID) REFERENCES public.AD_User DEFERRABLE INITIALLY DEFERRED, CONSTRAINT C_BPartner_CreditLimit_Key PRIMARY KEY (C_BPartner_CreditLimit_ID)) ; -- 2018-01-31T14:26:19.199 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=123,Updated=TO_TIMESTAMP('2018-01-31 14:26:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540929 ; -- 2018-01-31T14:28:00.420 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=540354,Updated=TO_TIMESTAMP('2018-01-31 14:28:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540929 ; -- 2018-01-31T14:28:59.754 -- 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,540993,540929,540354,TO_TIMESTAMP('2018-01-31 14:28:59','YYYY-MM-DD HH24:MI:SS'),100,'D','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','N','N','N',0,'Bussines Partner Credit Limit','N',100,0,TO_TIMESTAMP('2018-01-31 14:28:59','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:28:59.763 -- 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=540993 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) ; -- 2018-01-31T14:29:10.517 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET IsSingleRow='Y',Updated=TO_TIMESTAMP('2018-01-31 14:29:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540993 ; -- 2018-01-31T14:29:35.109 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558982,187,0,19,540929,'N','C_BPartner_ID',TO_TIMESTAMP('2018-01-31 14:29:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Bezeichnet einen Geschäftspartner','D',10,'Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Geschäftspartner',0,0,TO_TIMESTAMP('2018-01-31 14:29:34','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T14:29:35.114 -- 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=558982 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) ; -- 2018-01-31T14:29:37.315 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('C_BPartner_CreditLimit','ALTER TABLE public.C_BPartner_CreditLimit ADD COLUMN C_BPartner_ID NUMERIC(10)') ; -- 2018-01-31T14:29:37.327 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE C_BPartner_CreditLimit ADD CONSTRAINT CBPartner_CBPartnerCreditLimit FOREIGN KEY (C_BPartner_ID) REFERENCES public.C_BPartner DEFERRABLE INITIALLY DEFERRED ; -- 2018-01-31T14:29:57.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET AD_Column_ID=558982,Updated=TO_TIMESTAMP('2018-01-31 14:29:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540993 ; -- 2018-01-31T14:32:05.080 -- 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,558964,561817,0,540993,TO_TIMESTAMP('2018-01-31 14:32:04','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'D','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2018-01-31 14:32:04','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:05.081 -- 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=561817 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) ; -- 2018-01-31T14:32:05.083 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(102,NULL) ; -- 2018-01-31T14:32:05.997 -- 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,558965,561818,0,540993,TO_TIMESTAMP('2018-01-31 14:32:05','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'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('2018-01-31 14:32:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:05.999 -- 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=561818 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) ; -- 2018-01-31T14:32:06.002 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(113,NULL) ; -- 2018-01-31T14:32:06.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,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558968,561819,0,540993,TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','N','N','N','N','N','N','N','Bussines Partner Credit Limit',TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:06.389 -- 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=561819 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) ; -- 2018-01-31T14:32:06.392 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543843,NULL) ; -- 2018-01-31T14:32:06.558 -- 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,558972,561820,0,540993,TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',1,'D','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:06.560 -- 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=561820 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) ; -- 2018-01-31T14:32:06.563 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(348,NULL) ; -- 2018-01-31T14:32:07.019 -- 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,558978,561821,0,540993,TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100,'Type of Validation (SQL, Java Script, Java Language)',5,'D','The Type indicates the type of validation that will occur. This can be SQL, Java Script or Java Language.','Y','Y','N','N','N','N','N','Art',TO_TIMESTAMP('2018-01-31 14:32:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:07.023 -- 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=561821 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) ; -- 2018-01-31T14:32:07.025 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(600,NULL) ; -- 2018-01-31T14:32:07.177 -- 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,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558979,561822,0,540993,TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100,7,'D','Y','Y','N','N','N','N','N','Datum',TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:07.179 -- 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=561822 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) ; -- 2018-01-31T14:32:07.180 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(542844,NULL) ; -- 2018-01-31T14:32:07.354 -- 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,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558980,561823,0,540993,TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','N','N','N','N','N','Approved By',TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:07.356 -- 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=561823 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) ; -- 2018-01-31T14:32:07.357 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543844,NULL) ; -- 2018-01-31T14:32:07.497 -- 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,558981,561824,0,540993,TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100,'Betrag in einer definierten Währung',10,'D','"Betrag" gibt den Betrag für diese Dokumentenposition an','Y','Y','N','N','N','N','N','Betrag',TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:07.500 -- 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=561824 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) ; -- 2018-01-31T14:32:07.504 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1367,NULL) ; -- 2018-01-31T14:32:07.664 -- 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,558982,561825,0,540993,TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner',10,'D','Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','Y','N','N','N','N','N','Geschäftspartner',TO_TIMESTAMP('2018-01-31 14:32:07','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T14:32:07.667 -- 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=561825 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) ; -- 2018-01-31T14:32:07.669 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(187,NULL) ; -- 2018-01-31T14:32:39.762 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561817 ; -- 2018-01-31T14:32:39.769 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561818 ; -- 2018-01-31T14:32:39.775 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561825 ; -- 2018-01-31T14:32:39.780 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561821 ; -- 2018-01-31T14:32:39.785 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561824 ; -- 2018-01-31T14:32:39.788 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561822 ; -- 2018-01-31T14:32:39.790 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561823 ; -- 2018-01-31T14:32:39.793 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60,Updated=TO_TIMESTAMP('2018-01-31 14:32:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561820 ; -- 2018-01-31T15:00:09.032 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2018-01-31 15:00:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540993 ; -- 2018-01-31T15:03:17.546 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561825 ; -- 2018-01-31T15:03:17.553 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561821 ; -- 2018-01-31T15:03:17.556 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561824 ; -- 2018-01-31T15:03:17.559 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561822 ; -- 2018-01-31T15:03:17.561 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561823 ; -- 2018-01-31T15:03:17.564 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2018-01-31 15:03:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561820 ; -- 2018-01-31T15:10:00.167 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561821 ; -- 2018-01-31T15:10:00.172 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561821 ; -- 2018-01-31T15:10:00.218 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561824 ; -- 2018-01-31T15:10:00.220 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561824 ; -- 2018-01-31T15:10:00.254 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561822 ; -- 2018-01-31T15:10:00.257 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561822 ; -- 2018-01-31T15:10:00.295 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561823 ; -- 2018-01-31T15:10:00.298 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561823 ; -- 2018-01-31T15:10:00.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561820 ; -- 2018-01-31T15:10:00.334 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561820 ; -- 2018-01-31T15:10:00.366 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561825 ; -- 2018-01-31T15:10:00.368 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561825 ; -- 2018-01-31T15:10:00.398 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561818 ; -- 2018-01-31T15:10:00.400 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561818 ; -- 2018-01-31T15:10:00.431 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561817 ; -- 2018-01-31T15:10:00.432 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561817 ; -- 2018-01-31T15:10:00.460 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=561819 ; -- 2018-01-31T15:10:00.462 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=561819 ; -- 2018-01-31T15:10:04.691 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=540993 ; -- 2018-01-31T15:10:04.692 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Tab WHERE AD_Tab_ID=540993 ; -- 2018-01-31T15:11:16.781 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=123,Updated=TO_TIMESTAMP('2018-01-31 15:11:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540929 ; -- 2018-01-31T15:11:36.080 -- 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,540994,540929,123,TO_TIMESTAMP('2018-01-31 15:11:35','YYYY-MM-DD HH24:MI:SS'),100,'D','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','Y','N','N',0,'Bussines Partner Credit Limit','N',220,1,TO_TIMESTAMP('2018-01-31 15:11:35','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:36.082 -- 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=540994 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) ; -- 2018-01-31T15:11:43.568 -- 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,558964,561826,0,540994,TO_TIMESTAMP('2018-01-31 15:11:43','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'D','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2018-01-31 15:11:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:43.570 -- 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=561826 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) ; -- 2018-01-31T15:11:43.572 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(102,NULL) ; -- 2018-01-31T15:11:43.953 -- 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,558965,561827,0,540994,TO_TIMESTAMP('2018-01-31 15:11:43','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'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('2018-01-31 15:11:43','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:43.956 -- 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=561827 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) ; -- 2018-01-31T15:11:43.958 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(113,NULL) ; -- 2018-01-31T15:11:44.285 -- 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,558968,561828,0,540994,TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','N','N','N','N','N','N','N','Bussines Partner Credit Limit',TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:44.287 -- 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=561828 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) ; -- 2018-01-31T15:11:44.290 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543843,NULL) ; -- 2018-01-31T15:11:44.453 -- 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,558972,561829,0,540994,TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',1,'D','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:44.457 -- 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=561829 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) ; -- 2018-01-31T15:11:44.460 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(348,NULL) ; -- 2018-01-31T15:11:44.872 -- 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,558978,561830,0,540994,TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100,'Type of Validation (SQL, Java Script, Java Language)',5,'D','The Type indicates the type of validation that will occur. This can be SQL, Java Script or Java Language.','Y','Y','N','N','N','N','N','Art',TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:44.873 -- 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=561830 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) ; -- 2018-01-31T15:11:44.874 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(600,NULL) ; -- 2018-01-31T15:11:45.025 -- 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,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558979,561831,0,540994,TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100,7,'D','Y','Y','N','N','N','N','N','Datum',TO_TIMESTAMP('2018-01-31 15:11:44','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:45.027 -- 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=561831 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) ; -- 2018-01-31T15:11:45.030 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(542844,NULL) ; -- 2018-01-31T15:11:45.211 -- 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,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558980,561832,0,540994,TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100,10,'D','Y','Y','N','N','N','N','N','Approved By',TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:45.214 -- 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=561832 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) ; -- 2018-01-31T15:11:45.216 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543844,NULL) ; -- 2018-01-31T15:11:45.365 -- 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,558981,561833,0,540994,TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100,'Betrag in einer definierten Währung',10,'D','"Betrag" gibt den Betrag für diese Dokumentenposition an','Y','Y','N','N','N','N','N','Betrag',TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:45.367 -- 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=561833 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) ; -- 2018-01-31T15:11:45.369 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(1367,NULL) ; -- 2018-01-31T15:11:45.540 -- 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,558982,561834,0,540994,TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100,'Bezeichnet einen Geschäftspartner',10,'D','Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','Y','N','N','N','N','N','Geschäftspartner',TO_TIMESTAMP('2018-01-31 15:11:45','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:11:45.543 -- 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=561834 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) ; -- 2018-01-31T15:11:45.545 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(187,NULL) ; -- 2018-01-31T15:12:12.454 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561834 ; -- 2018-01-31T15:12:12.459 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561826 ; -- 2018-01-31T15:12:12.461 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561827 ; -- 2018-01-31T15:12:12.464 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561830 ; -- 2018-01-31T15:12:12.467 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=20,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561833 ; -- 2018-01-31T15:12:12.469 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561831 ; -- 2018-01-31T15:12:12.472 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561832 ; -- 2018-01-31T15:12:12.474 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50,Updated=TO_TIMESTAMP('2018-01-31 15:12:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561829 ; -- 2018-01-31T15:12:20.246 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET AD_Column_ID=558982,Updated=TO_TIMESTAMP('2018-01-31 15:12:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540994 ; -- 2018-01-31T15:44:18.995 -- 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,Value) VALUES (0,0,540994,540629,TO_TIMESTAMP('2018-01-31 15:44:18','YYYY-MM-DD HH24:MI:SS'),100,'Y','main',10,TO_TIMESTAMP('2018-01-31 15:44:18','YYYY-MM-DD HH24:MI:SS'),100,'main') ; -- 2018-01-31T15:44:19 -- 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=540629 AND NOT EXISTS (SELECT 1 FROM AD_UI_Section_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_UI_Section_ID=t.AD_UI_Section_ID) ; -- 2018-01-31T15:44:25.074 -- 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,540845,540629,TO_TIMESTAMP('2018-01-31 15:44:24','YYYY-MM-DD HH24:MI:SS'),100,'Y',10,TO_TIMESTAMP('2018-01-31 15:44:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:44:34.876 -- 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,540845,541427,TO_TIMESTAMP('2018-01-31 15:44:34','YYYY-MM-DD HH24:MI:SS'),100,'Y','main',10,TO_TIMESTAMP('2018-01-31 15:44:34','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:45:14.828 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET Name='default', UIStyle='primary',Updated=TO_TIMESTAMP('2018-01-31 15:45:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=541427 ; -- 2018-01-31T15:45:33.749 -- I forgot to set the 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,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561830,0,540994,550544,541427,'F',TO_TIMESTAMP('2018-01-31 15:45:33','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Art',10,0,0,TO_TIMESTAMP('2018-01-31 15:45:33','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:45:48.069 -- I forgot to set the 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,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561833,0,540994,550545,541427,'F',TO_TIMESTAMP('2018-01-31 15:45:47','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Betrag',20,0,0,TO_TIMESTAMP('2018-01-31 15:45:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:45:58.781 -- I forgot to set the 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,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561831,0,540994,550546,541427,'F',TO_TIMESTAMP('2018-01-31 15:45:58','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Datum',30,0,0,TO_TIMESTAMP('2018-01-31 15:45:58','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:46:13.622 -- I forgot to set the 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,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561832,0,540994,550547,541427,'F',TO_TIMESTAMP('2018-01-31 15:46:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Approved By',40,0,0,TO_TIMESTAMP('2018-01-31 15:46:13','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T15:46:29.998 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2018-01-31 15:46:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550544 ; -- 2018-01-31T15:46:30.001 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=20,Updated=TO_TIMESTAMP('2018-01-31 15:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550545 ; -- 2018-01-31T15:46:30.004 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=30,Updated=TO_TIMESTAMP('2018-01-31 15:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550546 ; -- 2018-01-31T15:46:30.007 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2018-01-31 15:46:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=550547 ; -- 2018-01-31T15:53:29.010 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsParent='Y', IsUpdateable='N',Updated=TO_TIMESTAMP('2018-01-31 15:53:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558982 ; -- 2018-01-31T16:05:54.200 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-31 16:05:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561832 ; -- 2018-01-31T16:13:19.271 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DefaultValue='@CreatedBy@',Updated=TO_TIMESTAMP('2018-01-31 16:13:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558980 ; -- 2018-01-31T16:13:35.739 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2018-01-31 16:13:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558980 ; /* DDL */ SELECT public.db_alter_table('C_BPartner_CreditLimit','ALTER TABLE public.C_BPartner_CreditLimit ADD CONSTRAINT CreditLimit_UQTypeBP UNIQUE (C_BPartner_ID, Type)') ; -- 2018-01-31T16:59:11.072 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List SET Value='2_Ins',Updated=TO_TIMESTAMP('2018-01-31 16:59:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=541585 ; -- 2018-01-31T16:59:15.866 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List SET Value='1_Man',Updated=TO_TIMESTAMP('2018-01-31 16:59:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=541586 ; -- 2018-01-31T16:59:31.412 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2018-01-31 16:59:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558978 ; -- 2018-01-31T16:59:33.668 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('c_bpartner_creditlimit','Type','VARCHAR(10)',null,null) ; -- 2018-01-31T17:05:33.122 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543845,0,'CreditLimitUsage',TO_TIMESTAMP('2018-01-31 17:05:32','YYYY-MM-DD HH24:MI:SS'),100,'Percent of Credit used from the limit','D','','Y','Credit limit Usage','Credit limit Usage',TO_TIMESTAMP('2018-01-31 17:05:32','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T17:05:33.124 -- 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=543845 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) ; -- 2018-01-31T17:05:41.815 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET Name='Credit limit usage', PrintName='Credit limit usage',Updated=TO_TIMESTAMP('2018-01-31 17:05:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:05:41.825 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='CreditLimitUsage', Name='Credit limit usage', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:05:41.836 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitUsage', Name='Credit limit usage', Description='Percent of Credit used from the limit', Help='', AD_Element_ID=543845 WHERE UPPER(ColumnName)='CREDITLIMITUSAGE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2018-01-31T17:05:41.839 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitUsage', Name='Credit limit usage', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 AND IsCentrallyMaintained='Y' ; -- 2018-01-31T17:05:41.840 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Credit limit usage', Description='Percent of Credit used from the limit', Help='' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543845) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543845) ; -- 2018-01-31T17:05:41.854 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Credit limit usage', Name='Credit limit usage' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543845) ; -- 2018-01-31T17:06:15.325 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator', PrintName='Credit limit indicator',Updated=TO_TIMESTAMP('2018-01-31 17:06:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:06:15.329 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:06:15.342 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator', Description='Percent of Credit used from the limit', Help='', AD_Element_ID=543845 WHERE UPPER(ColumnName)='CREDITLIMITINDICATOR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2018-01-31T17:06:15.343 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 AND IsCentrallyMaintained='Y' ; -- 2018-01-31T17:06:15.345 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Credit limit indicator', Description='Percent of Credit used from the limit', Help='' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543845) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543845) ; -- 2018-01-31T17:06:15.357 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Credit limit indicator', Name='Credit limit indicator' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543845) ; -- 2018-01-31T17:08:18.433 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,FormatPattern,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558986,543845,0,22,291,'N','CreditLimitIndicator','(select round((cl.Amount - s.SO_CreditUsed)/cl.Amount,3), cl.Type from C_BPartner_Stats s join C_BPartner_CreditLimit cl on (s.C_BPartner_ID = cl.C_Bpartner_ID and s.C_Bpartner_ID = C_Bpartner.C_Bpartner_ID) order by Type limit 1)',TO_TIMESTAMP('2018-01-31 17:08:18','YYYY-MM-DD HH24:MI:SS'),100,'N','Percent of Credit used from the limit','D',14,'#,##.#%','','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Credit limit indicator',0,0,TO_TIMESTAMP('2018-01-31 17:08:18','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-31T17:08:18.439 -- 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=558986 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) ; -- 2018-01-31T17:08:48.040 -- 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,558986,561919,0,220,0,TO_TIMESTAMP('2018-01-31 17:08:47','YYYY-MM-DD HH24:MI:SS'),100,'Percent of Credit used from the limit',0,'D','',0,'Y','Y','Y','N','N','N','N','N','Credit limit indicator',350,340,0,1,1,TO_TIMESTAMP('2018-01-31 17:08:47','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T17:08:48.043 -- 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=561919 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) ; -- 2018-01-31T17:08:48.051 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(543845,NULL) ; -- 2018-01-31T17:10:29.065 -- 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,1000003,541428,TO_TIMESTAMP('2018-01-31 17:10:28','YYYY-MM-DD HH24:MI:SS'),100,'Y','creditlimit',16,TO_TIMESTAMP('2018-01-31 17:10:28','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T17:10:49.735 -- I forgot to set the 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,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,561919,0,220,550549,541428,'F',TO_TIMESTAMP('2018-01-31 17:10:49','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','Credit limit indicator',10,0,0,TO_TIMESTAMP('2018-01-31 17:10:49','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-31T17:11:36.964 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnSQL='(select round((cl.Amount - s.SO_CreditUsed)/cl.Amount,3), cl.Type from C_BPartner_Stats s join C_BPartner_CreditLimit cl on (s.C_BPartner_ID = cl.C_Bpartner_ID and s.C_Bpartner_ID = C_Bpartner.C_BPartner_ID) order by Type limit 1)',Updated=TO_TIMESTAMP('2018-01-31 17:11:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:11:44.079 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnSQL='(select round((cl.Amount - s.SO_CreditUsed)/cl.Amount,3), cl.Type from C_BPartner_Stats s join C_BPartner_CreditLimit cl on (s.C_BPartner_ID = cl.C_Bpartner_ID and s.C_Bpartner_ID = C_BPartner.C_BPartner_ID) order by Type limit 1)',Updated=TO_TIMESTAMP('2018-01-31 17:11:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:16:23.843 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnSQL='(select round((cl.Amount - s.SO_CreditUsed)/cl.Amount,3) from C_BPartner_Stats s join C_BPartner_CreditLimit cl on (s.C_BPartner_ID = cl.C_Bpartner_ID and s.C_Bpartner_ID = C_BPartner.C_BPartner_ID) order by Type limit 1)',Updated=TO_TIMESTAMP('2018-01-31 17:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:18:28.042 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=11,Updated=TO_TIMESTAMP('2018-01-31 17:18:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:18:56.335 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=22,Updated=TO_TIMESTAMP('2018-01-31 17:18:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:26:52.453 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FormatPattern='%#,##.#',Updated=TO_TIMESTAMP('2018-01-31 17:26:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558986 ; -- 2018-01-31T17:28:39.240 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET Name='Credit limit indicator %', PrintName='Credit limit indicator %',Updated=TO_TIMESTAMP('2018-01-31 17:28:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:28:39.241 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator %', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 ; -- 2018-01-31T17:28:39.255 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator %', Description='Percent of Credit used from the limit', Help='', AD_Element_ID=543845 WHERE UPPER(ColumnName)='CREDITLIMITINDICATOR' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2018-01-31T17:28:39.256 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='CreditLimitIndicator', Name='Credit limit indicator %', Description='Percent of Credit used from the limit', Help='' WHERE AD_Element_ID=543845 AND IsCentrallyMaintained='Y' ; -- 2018-01-31T17:28:39.257 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Credit limit indicator %', Description='Percent of Credit used from the limit', Help='' WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543845) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543845) ; -- 2018-01-31T17:28:39.279 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='Credit limit indicator %', Name='Credit limit indicator %' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543845) ; CREATE INDEX C_BPartner_CreditLimit_bpIdIndex ON public.C_BPartner_CreditLimit (C_BPartner_ID);
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 05/24/2018 21:19:31 -- Generated from EDMX file: D:\git\nangular\server\NAngular.DataAccess\AppDataModel.edmx -- -------------------------------------------------- SET QUOTED_IDENTIFIER OFF; GO USE [nangular]; GO IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]'); GO -- -------------------------------------------------- -- Dropping existing FOREIGN KEY constraints -- -------------------------------------------------- -- -------------------------------------------------- -- Dropping existing tables -- -------------------------------------------------- -- -------------------------------------------------- -- Creating all tables -- -------------------------------------------------- -- Creating table 'Users' CREATE TABLE [dbo].[Users] ( [UserId] int IDENTITY(1,1) NOT NULL, [UserName] nvarchar(40) NOT NULL, [Email] nvarchar(200) NOT NULL ); GO -- Creating table 'Activities' CREATE TABLE [dbo].[Activities] ( [ActivityId] int IDENTITY(1,1) NOT NULL, [Title] nvarchar(200) NOT NULL, [Description] nvarchar(max) NULL, [User_UserId] int NOT NULL ); GO -- -------------------------------------------------- -- Creating all PRIMARY KEY constraints -- -------------------------------------------------- -- Creating primary key on [UserId] in table 'Users' ALTER TABLE [dbo].[Users] ADD CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED ([UserId] ASC); GO -- Creating primary key on [ActivityId] in table 'Activities' ALTER TABLE [dbo].[Activities] ADD CONSTRAINT [PK_Activities] PRIMARY KEY CLUSTERED ([ActivityId] ASC); GO -- -------------------------------------------------- -- Creating all FOREIGN KEY constraints -- -------------------------------------------------- -- Creating foreign key on [User_UserId] in table 'Activities' ALTER TABLE [dbo].[Activities] ADD CONSTRAINT [FK_UserActivity] FOREIGN KEY ([User_UserId]) REFERENCES [dbo].[Users] ([UserId]) ON DELETE NO ACTION ON UPDATE NO ACTION; GO -- Creating non-clustered index for FOREIGN KEY 'FK_UserActivity' CREATE INDEX [IX_FK_UserActivity] ON [dbo].[Activities] ([User_UserId]); GO -- -------------------------------------------------- -- Script has ended -- --------------------------------------------------
DELIMITER // -- Trigger/Proceduer section 1: Verify book rating and book reviews CREATE OR REPLACE TRIGGER `verifyBookRating` before insert on `audiobook_reviews` for each row begin if (NEW.rating > 6 OR NEW.rating < 0) then SIGNAL sqlstate '45001' set message_text = "The rating has to be between 1 and 5"; end if; end // CREATE OR REPLACE TRIGGER `verifyBookReviews` before insert on `audiobook_reviews` for each row begin SET @purchased_boolean = 0; (SELECT COUNT(audiobook_purchases.customer_ID AND audiobook_purchases.ISBN) INTO @purchased_boolean FROM audiobook_purchases where audiobook_purchases.customer_ID = NEW.customer_ID AND audiobook_purchases.ISBN = NEW.ISBN); if (@purchased_boolean = 0) then set NEW.verified = 0; ELSE set NEW.verified = 1; end if; end // -- Trigger/Proceduer section 2: Enforce age ratings CREATE OR REPLACE TRIGGER `enforceAgeRating` before insert on `audiobook_purchases` for each row begin SET @rating = 0; (SELECT audiobook.age_rating INTO @rating FROM audiobook where audiobook.ISBN = NEW.ISBN); SET @customer_age = 0; (SELECT timestampdiff(year,person.date_of_birth,now()) INTO @customer_age FROM person where person.ID = NEW.customer_ID); if (@rating > @customer_age) then SIGNAL sqlstate '45001' set message_text = "Underaged To Buy this Audiobook"; end if; end // -- Trigger/Proceduer section 3: Ensure each person is either a customer or contributor (or both). Prevent direct entry into the ‘person’ relation. -- The procedure to insert data into person table CREATE PROCEDURE insertPerson(personalID INT,forename VARCHAR(20), middle_initials VARCHAR(20), surname VARCHAR(20), date_ofbirth DATE) BEGIN INSERT INTO person(ID, forename, middle_initials, surname, date_of_birth) values (personalID, forename, middle_initials, surname, date_of_birth); END // -- The procedure to insert data into contributor table. CREATE PROCEDURE insertAsContributor(personalID INT, biography VARCHAR(1024)) BEGIN INSERT INTO contributor (personalID, biography) values (personalID, biography); END // -- The procedure to insert data into the person table and the contributor table. CREATE PROCEDURE insertContributor(biography VARCHAR(1024), forename VARCHAR(20), middle_initials VARCHAR(20), surname VARCHAR(20), date_of_birth DATE) BEGIN DECLARE personExist INT; DECLARE personCount INT; SET personExist = 0; SET personCount = 0; (SELECT COUNT(person.ID) INTO personExist FROM person where person.forename = forename AND person.middle_initials = middle_initials AND person.surname = surname AND person.date_of_birth = date_of_birth); IF(personExist = 0) THEN (SELECT COUNT(person.ID) INTO personCount FROM person); SET personCount = personCount + 1; call insertPerson(personCount, forename, middle_initials, surname, date_of_birth); ELSE SET personCount = (SELECT person.ID FROM person where (person.forename = forename AND person.middle_initials = middle_initials AND person.surname = surname AND person.date_of_birth = date_of_birth)); END IF; call insertAsContributor(personCount, biography); END // -- The procedure to insert data into customer table. CREATE PROCEDURE insertAsCustomer(personalID INT, email_address VARCHAR(100), pwd VARCHAR(150)) BEGIN INSERT INTO customer (personalID, email_address, pwd) values (personalID, email_address, SHA2(pwd, 512)); END // -- The procedure to insert into the person table and the customer table CREATE PROCEDURE insertCustomer(email_address VARCHAR(100), pwd VARCHAR(150), forename VARCHAR(20), middle_initials VARCHAR(20), surname VARCHAR(20), date_of_birth DATE) BEGIN DECLARE personExist INT; DECLARE personCount INT; SET personExist = 0; SET personCount = 0; (SELECT COUNT(person.ID) INTO personExist FROM person where person.forename = forename AND person.middle_initials = middle_initials AND person.surname = surname AND person.date_of_birth = date_of_birth); IF(personExist = 0) AND (email_address IS NOT NULL) AND (pwd IS NOT NULL) THEN (SELECT COUNT(person.ID) INTO personCount FROM person); SET personCount = personCount + 1; call insertPerson(personCount, forename, middle_initials, surname, date_of_birth); ELSE SET personCount = (SELECT person.ID FROM person where (person.forename = forename AND person.middle_initials = middle_initials AND person.surname = surname AND person.date_of_birth = date_of_birth)); END IF; call insertAsCustomer(personCount, email_address, pwd); END // DELIMITER ; --reset the delimiter to semi-colon.
/* * Copyright (c) 2017 LabKey Corporation * * 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. */ SELECT d.Id, (SELECT GROUP_CONCAT(flag) from study.flags f where f.Id = d.Id and SUBSTRING (f.flag,1,3)='VAS') AS VAS, case when d.Id.age.ageInDays > 6940 then 'X' end as Geriatric, case when d.Id.curLocation.location != d.Id.homeLocation.location then d.Id.curLocation.location end as "hoLocation", case --Serum when ( d.Id.age.ageInDays > 180 and ( id.DemographicsMostRecentSerum.id is null or ( id.DemographicsMostRecentSerum.DaysSinceSample > 180 and (select count(*) from study.serum s where s.Id = d.Id group by s.Id) < 3 )) ) then 'X' when ((d.Id.age.ageInDays > 730) and id.DemographicsMostRecentSerum.DaysSinceSample > 730 ) then 'X' end as SerumBank, case --Tetanus when (d.Id.age.ageInDays > 180 and (id.DemographicsMostRecentTetanus.id is null))then 'X' when (d.Id.age.ageInDays > 180 and id.DemographicsMostRecentTetanus.TetanusCount < 2 and id.DemographicsMostRecentTetanus.DaysSinceTetanus > 365 )then 'X' when (d.Id.age.ageInDays > 730 and id.DemographicsMostRecentTetanus.DaysSinceTetanus > 365 and( id.DemographicsMostRecentTetanus.TetanusCount < 2 or id.DemographicsMostRecentTetanus.DaysSinceTetanus > 1825 ) )then 'X' end as Tetanus, case -- Measles when (d.Id.age.ageInDays > 180 and NOT EXISTS (SELECT * from study.drug dr WHERE dr.Id = d.Id AND SUBSTRING (code,1,1) IN ('M','K')) and Id.DemographicsActivePregnancy.Id is null and (Id.activeFlagList.values is null or Id.activeFlagList.values not like '%NOVA%') ) THEN 'X' END AS Measles, case when( EXISTS(Select * from study.flags f where f.Id = d.Id and (flag like '%AN%' or flag like '%AP%'))) then '' else 'X' end as VGL, case -- Dam when d.Id.age.ageInDays < 365 then Id.Demographics.Dam END as Dam FROM demographics d where d.calculated_status = 'Alive'
<reponame>MCZbase/DDL CREATE UNIQUE INDEX "SYS_C0014332" ON "PLSQL_PROFILER_RUNS" ("RUNID")
SELECT * FROM nested_test
SELECT e.ssn, e.fname, e.lname FROM Employee e WHERE e.super_ssn IS NOT NULL AND e.ssn IN (SELECT super_ssn FROM Employee);
<reponame>VictorGMBraga/clowdr<filename>hasura/migrations/default/1632093882626_alter_table_video_EventParticipantStream_update_comment/up.sql comment on TABLE "video"."EventParticipantStream" is E'Current streams in Vonage sessions.';
<filename>openGaussBase/testcase/KEYWORDS/Datetime_Interval_Code/Opengauss_Function_Keyword_Datetime_Interval_Code_Case0032.sql -- @testpoint:opengauss关键字datetime_interval_code(非保留),作为用户名 --关键字datetime_interval_code作为用户名不带引号,创建成功 drop user if exists datetime_interval_code; CREATE USER datetime_interval_code PASSWORD '<PASSWORD>'; drop user datetime_interval_code; --关键字datetime_interval_code作为用户名加双引号,创建成功 drop user if exists "datetime_interval_code"; CREATE USER "datetime_interval_code" PASSWORD '<PASSWORD>'; drop user "datetime_interval_code"; --关键字datetime_interval_code作为用户名加单引号,合理报错 CREATE USER 'datetime_interval_code' PASSWORD '<PASSWORD>'; --关键字datetime_interval_code作为用户名加反引号,合理报错 CREATE USER `datetime_interval_code` PASSWORD '<PASSWORD>';
BEGIN; ALTER TABLE poster ADD COLUMN access_log boolean, ADD COLUMN author_online_only boolean; UPDATE poster SET access_log = false, author_online_only = false; ALTER TABLE poster ALTER COLUMN access_log SET NOT NULL, ALTER COLUMN author_online_only SET NOT NULL; ALTER TABLE poster_viewer ADD COLUMN access_log boolean; UPDATE poster_viewer SET access_log = false; ALTER TABLE poster ALTER COLUMN access_log SET NOT NULL; COMMIT;
<reponame>VazgenMatevosyan/Learning<gh_stars>0 Insert INTO Courses ([title],[description]) Values ('C++','C++') Insert INTO Courses ([title],[description]) Values ('Math','Math') Insert INTO Courses ([title],[description]) Values ('Physic','Physic') Insert Into Students([name],[surname],[SSN]) Values ('Hrant','Arakelyan','AP1231345') Insert Into Students([name],[surname],[SSN]) Values('Narek','Hovhannisyan','AP154812') Insert Into Students([name],[surname],[SSN]) Values ('Vrezh','Arakelyan','AP4556789') Insert Into Teachers([name],[surname],[SSN]) Values ('Georg','Cantor','AR458756') Insert Into Teachers([name],[surname],[SSN]) Values ('Albert','Einstein','AR49864') Insert Into Teachers([name],[surname],[SSN]) Values ('Bjarne','Stroustrup','AR125888') Insert Into Topics([course_title],[name]) Values ('C++','Introduction') Insert Into Topics([course_title],[name]) Values ('C++','HelloWorld') Insert Into Topics([course_title],[name]) Values ('Math','Euclids algorithm') Insert Into Topics([course_title],[name]) Values ('Physic','Relativity theory') Insert Into CoursesTeachersRelation([id_teacher],[title_course]) Values(1,'Math') Insert Into CoursesTeachersRelation([id_teacher],[title_course]) Values(2,'Physic') Insert Into CoursesTeachersRelation([id_teacher],[title_course]) Values(3,'C++') Insert Into CoursesStudentsRelation([id_student],[title_course],[grade]) Values(1,'C++',20) Insert Into CoursesStudentsRelation([id_student],[title_course],[grade]) Values(2,'C++',19) Insert Into CoursesStudentsRelation([id_student],[title_course]) Values(1,'Math')
<reponame>jhein420/php_CRUD -- -- Table structure for table `products` -- CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `description` text NOT NULL, `price` double NOT NULL, `created` datetime NOT NULL, `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2021 at 09:24 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `akhlak` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_akun` -- CREATE TABLE `tb_akun` ( `kd_akun` varchar(10) NOT NULL, `kd_pengguna` varchar(10) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(41) NOT NULL, `level_akses` enum('ADMIN','MANAGER','AGEN') NOT NULL, `status` enum('AKTIF','BANNED') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_akun` -- INSERT INTO `tb_akun` (`kd_akun`, `kd_pengguna`, `username`, `password`, `level_akses`, `status`) VALUES ('KDA0000001', '<PASSWORD>', '<PASSWORD>', '<PASSWORD>', 'ADMIN', 'AKTIF'), ('KDA0000002', 'KDP0000002', 'KDP0000002', '75b596b974a9fb1c86b5e14753ae75d914c84b3d', 'AGEN', 'AKTIF'), ('KDA0000003', 'KDP0000003', 'KDP0000003', '75b596b974a9fb1c86b5e14753ae75d914c84b3d', 'MANAGER', 'AKTIF'); -- -------------------------------------------------------- -- -- Table structure for table `tb_kegiatan` -- CREATE TABLE `tb_kegiatan` ( `kd_kegiatan` varchar(10) NOT NULL, `nama_kegiatan` varchar(200) NOT NULL, `bulan_kegiatan` date NOT NULL, `tanggal_kumpul` date NOT NULL, `jumlah_rkap_laporan` int(11) NOT NULL, `status` enum('TERSEDIA','HAPUS') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_kegiatan` -- INSERT INTO `tb_kegiatan` (`kd_kegiatan`, `nama_kegiatan`, `bulan_kegiatan`, `tanggal_kumpul`, `jumlah_rkap_laporan`, `status`) VALUES ('KDK0000001', 'ayammm', '2021-07-01', '2021-05-28', 10, 'TERSEDIA'); -- -------------------------------------------------------- -- -- Table structure for table `tb_laporan` -- CREATE TABLE `tb_laporan` ( `kd_laporan` varchar(10) NOT NULL, `kd_kegiatan` varchar(10) NOT NULL, `kd_unit` varchar(10) NOT NULL, `laporan` varchar(100) NOT NULL, `tanggal_upload` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tb_pengguna` -- CREATE TABLE `tb_pengguna` ( `kd_pengguna` varchar(10) NOT NULL, `kd_unit` varchar(10) NOT NULL, `nama` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_pengguna` -- INSERT INTO `tb_pengguna` (`kd_pengguna`, `kd_unit`, `nama`) VALUES ('KDP0000001', 'KDU0000004', '<NAME>'), ('KDP0000002', 'KDU0000003', 'Isrina barara'), ('KDP0000003', 'KDU0000003', 'namakabagpulautiga'); -- -------------------------------------------------------- -- -- Table structure for table `tb_unit` -- CREATE TABLE `tb_unit` ( `kd_unit` varchar(10) NOT NULL, `unit` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_unit` -- INSERT INTO `tb_unit` (`kd_unit`, `unit`) VALUES ('KDU0000003', 'kebun pulau tiga'), ('KDU0000004', 'Kantor Pusat'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_akun` -- ALTER TABLE `tb_akun` ADD PRIMARY KEY (`kd_akun`), ADD KEY `kd_pengguna` (`kd_pengguna`); -- -- Indexes for table `tb_kegiatan` -- ALTER TABLE `tb_kegiatan` ADD PRIMARY KEY (`kd_kegiatan`); -- -- Indexes for table `tb_laporan` -- ALTER TABLE `tb_laporan` ADD PRIMARY KEY (`kd_laporan`), ADD KEY `kd_kegiatan` (`kd_kegiatan`), ADD KEY `kd_unit` (`kd_unit`); -- -- Indexes for table `tb_pengguna` -- ALTER TABLE `tb_pengguna` ADD PRIMARY KEY (`kd_pengguna`), ADD KEY `kode_unit` (`kd_unit`); -- -- Indexes for table `tb_unit` -- ALTER TABLE `tb_unit` ADD PRIMARY KEY (`kd_unit`); -- -- Constraints for dumped tables -- -- -- Constraints for table `tb_akun` -- ALTER TABLE `tb_akun` ADD CONSTRAINT `tb_akun_ibfk_1` FOREIGN KEY (`kd_pengguna`) REFERENCES `tb_pengguna` (`kd_pengguna`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `tb_laporan` -- ALTER TABLE `tb_laporan` ADD CONSTRAINT `tb_laporan_ibfk_1` FOREIGN KEY (`kd_kegiatan`) REFERENCES `tb_kegiatan` (`kd_kegiatan`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `tb_laporan_ibfk_2` FOREIGN KEY (`kd_unit`) REFERENCES `tb_unit` (`kd_unit`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `tb_pengguna` -- ALTER TABLE `tb_pengguna` ADD CONSTRAINT `tb_pengguna_ibfk_1` FOREIGN KEY (`kd_unit`) REFERENCES `tb_unit` (`kd_unit`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!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 */;
--wait type reference: http://msdn.microsoft.com/en-us/library/ms179984.aspx --All waits by total wait time select wait_type, wait_time_ms AS total_wait_time_ms, waiting_tasks_count, max_wait_time_ms, signal_wait_time_ms from sys.dm_os_wait_stats order by wait_time_ms DESC --Lock waits by max wait select wait_type, max_wait_time_ms, wait_time_ms AS total_wait_time_ms, waiting_tasks_count, signal_wait_time_ms from sys.dm_os_wait_stats --where wait_type like 'LCK%' order by max_wait_time_ms DESC --CLEAR THE CONTENTS OF THE VIEW: --DBCC SQLPERF ('sys.dm_os_wait_stats', CLEAR); -- Total waits are wait_time_ms (high signal waits indicates CPU pressure) --useful to help confirm CPU pressure. Signal waits are time waiting for a CPU to service a thread. Seeing total signal waits above roughly 10-15% is a pretty good indicator of CPU pressure, although you should be aware of what your baseline value for signal waits is, and watch the trend over time. SELECT CAST(100.0 * SUM(signal_wait_time_ms)/ SUM (wait_time_ms)AS NUMERIC(20,2)) AS [%signal (cpu) waits], CAST(100.0 * SUM(wait_time_ms - signal_wait_time_ms) / SUM (wait_time_ms) AS NUMERIC(20,2)) AS [%resource waits] FROM sys.dm_os_wait_stats; -- top waits since server restart or stats clear WITH Waits AS (SELECT wait_type, wait_time_ms / 1000. AS wait_time_s, 100. * wait_time_ms / SUM(wait_time_ms) OVER() AS pct, ROW_NUMBER() OVER(ORDER BY wait_time_ms DESC) AS rn FROM sys.dm_os_wait_stats WHERE wait_type NOT IN ('CLR_SEMAPHORE','LAZYWRITER_SLEEP','RESOURCE_QUEUE','SLEEP_TASK' ,'SLEEP_SYSTEMTASK','SQLTRACE_BUFFER_FLUSH','WAITFOR', 'LOGMGR_QUEUE','CHECKPOINT_QUEUE' ,'REQUEST_FOR_DEADLOCK_SEARCH','XE_TIMER_EVENT','BROKER_TO_FLUSH','BROKER_TASK_STOP','CLR_MANUAL_EVENT' ,'CLR_AUTO_EVENT','DISPATCHER_QUEUE_SEMAPHORE', 'FT_IFTS_SCHEDULER_IDLE_WAIT' ,'XE_DISPATCHER_WAIT', 'XE_DISPATCHER_JOIN')) SELECT W1.wait_type, CAST(W1.wait_time_s AS DECIMAL(12, 2)) AS wait_time_s, CAST(W1.pct AS DECIMAL(12, 2)) AS pct, CAST(SUM(W2.pct) AS DECIMAL(12, 2)) AS running_pct FROM Waits AS W1 INNER JOIN Waits AS W2 ON W2.rn <= W1.rn GROUP BY W1.rn, W1.wait_type, W1.wait_time_s, W1.pct HAVING SUM(W2.pct) - W1.pct < 95; -- percentage threshold
<filename>sql_database/alter_tablet_atencion_20181123_090300.sql ALTER TABLE `atenciones` ADD `pago_com_tec` INT NULL DEFAULT NULL AFTER `pagado_com`;
DROP TABLE IF EXISTS PROJECT; DROP TABLE IF EXISTS JWT; DROP TABLE IF EXISTS USERS; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE USERS( id uuid DEFAULT uuid_generate_v4 () PRIMARY KEY, user_name VARCHAR(100) UNIQUE, hashed_password VARCHAR(250) NOT NULL, email VARCHAR(150) NOT NULL UNIQUE, is_admin BOOLEAN DEFAULT FALSE, created_at timestamp not null default current_timestamp ); CREATE TABLE JWT( id uuid DEFAULT uuid_generate_v4 () PRIMARY KEY, user_id uuid NOT NULL UNIQUE, access_token VARCHAR(250) NOT NULL, refresh_token VARCHAR(250) NOT NULL, created_at timestamp not null default current_timestamp, FOREIGN KEY (user_id) REFERENCES USERS(id) ); CREATE TABLE PROJECT( id uuid DEFAULT uuid_generate_v4 () PRIMARY KEY, user_id uuid NOT NULL, project_name VARCHAR(250), project_description TEXT NOT NULL, project_sector VARCHAR(250) NOT NULL, project_status VARCHAR(250) NOT NULL DEFAULT 'PENDING', created_at timestamp not null default current_timestamp, FOREIGN KEY (user_id) REFERENCES USERS(id) );
CREATE DATABASE jurassite; USE jurassite; CREATE TABLE site( `id` INT AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(255) NOT NULL, `longitude` VARCHAR(255) NOT NULL, `latitude` VARCHAR(255) NOT NULL, `manager` VARCHAR(255) NOT NULL, `phone` INT NOT NULL ); CREATE TABLE notes( `id` INT NOT NULL, `title` VARCHAR(255) NOT NULL, `content` TEXT NOT NULL, `date` DATE NOT NULL, CONSTRAINT fk_notes_site FOREIGN KEY(`id`) REFERENCES site(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE TABLE dino( `id` INT AUTO_INCREMENT PRIMARY KEY, `site_id` INT NOT NULL, `name` VARCHAR(255) NOT NULL, `type` TEXT NOT NULL, `family` TEXT NOT NULL, `x` INT NOT NULL, `y` INT NOT NULL, `z` VARCHAR(255) NOT NULL, `picture` TEXT NOT NULL, `conservation` VARCHAR(255) NOT NULL, CONSTRAINT fk_dino_site FOREIGN KEY(`site_id`) REFERENCES site(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE TABLE remarks( `id` INT NOT NULL, `title` VARCHAR(255) NOT NULL, `content` TEXT NOT NULL, CONSTRAINT fk_remarks_dino FOREIGN KEY(`id`) REFERENCES dino(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); INSERT INTO `site` (`name`, `longitude`, `latitude`, `manager`, `phone`) VALUES ('Glanum', '43°4701"N', '4°5032"E', '<NAME>', '0123456789'),('Ambrussum', '43°4308"N', '4°0848"E', '<NAME>', '0123456798'); INSERT INTO `dino` (`name`, `site_id`, `type`, `family`,`x`, `y`, `z`, `picture`, `conservation`) VALUES ('Triceratops', '1', 'Herbivore', 'Cératopsidés','620', '555', '6 metres', '<img src="https://visitmuseum.gencat.cat/media/cache/1140x684/uploads/objects/photos/56cc7043e28a2_esquelet-sencer-de-triceratops.jpeg" alt="Triceratops" width="200" height="200" frameBorder="0" allowFullScreen>', '90%'),('Velociraptor', '2', 'Carnivore', 'Theropodes(Saurischien)', '785', '412', '12 metres', '<img src="https://i.pinimg.com/474x/42/61/c0/4261c0407cee38eb64461bd7e8cd11cd.jpg" alt="Velociraptor" width="200" height="200" frameBorder="0" allowFullScreen>', '100%'),('Stégosaure', '1', 'Vegetivore', 'Stegosaurus', '123', '456', '90 metres', '<img src="https://images.lpcdn.ca/924x615/201504/22/999496-squelette-plus-complet-stegosaure-expose.jpg" alt="Stegosaure" width="200" height="200" frameBorder="0" allowFullScreen>', '40%'),('Tyrannosaurus Rex', '2', 'Carnivore', 'Theropodes(Saurischien)', '69', '69', '69 metres', '<img src="https://cdn-europe1.lanmedia.fr/var/europe1/storage/images/europe1/culture/a-la-rencontre-de-trix-lexceptionnel-squelette-de-t-rex-du-museum-dhistoire-naturelle-3673340/48590600-1-fre-FR/A-la-rencontre-de-Trix-l-exceptionnel-squelette-de-T-Rex-du-Museum-d-Histoire-naturelle.jpg" alt="T-rex" width="200" height="200" frameBorder="0" allowFullScreen>', '69%'); INSERT INTO `notes` (`id`, `title`, `content`, `date`) VALUES ('1', 'Decouverte Triceratops', "On voit la tête !!!", '2005/06/06'),('1', 'Decouverte Stégosaure', 'On voit la patte !!', '2008/07/08'),('2', 'Decouverte Velociraptor', 'Bordel il est trop classe !!', '2002/08/07'),('2', 'Decouverte T-rex', 'Baleeeeeze', '2004/05/02'); INSERT INTO `remarks` (`id`, `title`, `content`) VALUES ('1', 'Triceratops', "Triceratops est un genre éteint célèbre de dinosaures herbivores de la famille des cératopsidés qui a vécu à la fin du Maastrichtien, au Crétacé supérieur, il y a 68 à 66 millions d'années, dans ce qui est maintenant l'Amérique du Nord. Il a été l'un des derniers dinosaures non-aviens vivant avant leur disparition lors de la grande extinction Crétacé-Tertiaire, il y a 66 Ma (millions d'années)3. Ayant une grande collerette osseuse, trois cornes et quatre grandes pattes, et montrant des similitudes avec le rhinocéros, le tricératops est l'un des dinosaures le plus reconnaissable et le genre le plus connu des cératopsidés. Il a notamment vécu à la même période que le redoutable tyrannosaure dont il était la proie."),('2', 'Velociraptor', "Le vélociraptor possède de puissantes mâchoires portant environ 80 dents acérées. Le vélociraptor mesurait, de la tête à la queue, environ 1,5 à 2 mètres pour une hauteur de 75 centimètres. Son poids avoisinait 15 à 20 kilogrammes2,3. Ses membres postérieurs sont pourvus d'une griffe rétractile, capable de se positionner presque à la verticale pour poignarder la peau de sa proie. Sa queue, rigidifiée par des tendons osseux, l'aide à s'équilibrer lorsqu'il se dresse pour harponner sa proie. Cette technique de chasse a été confirmée par la découverte d'un fossile de vélociraptor dont cette fameuse griffe se trouvait à l'emplacement du cou d'un protoceratops. On suppose que le prédateur et sa proie ont été brusquement ensevelis par un glissement de terrain en plein combat. "),('3', 'Stégosaure', "Stegosaurus, communément appelé stégosaure, est un genre éteint de grands dinosaures herbivores à dos cuirassé par des plaques osseuses. Il a vécu sur les terres des États-Unis et du Portugal actuels durant le Jurassique supérieur (Kimméridgien à Tithonien inférieur), il y a environ entre 155 et 150 Ma (millions d'années). Le plus ancien stégosaure jamais trouvé a été découvert dans la région de Boulahfa en Moyen Atlas au Maroc."),('4', 'T-rex', "Tyrannosaurus, communément appelé tyrannosaure, est un genre éteint de dinosaures théropodes appartenant à la famille des Tyrannosauridae et ayant vécu durant la partie supérieure du Maastrichtien, dernier étage du système Crétacé1, il y a environ 68 à 66 millions d'années2, dans ce qui est actuellement l'Amérique du Nord. Tyrannosaurus rex, dont l'étymologie du nom signifie « roi des lézards tyrans », est l'une des plus célèbres espèces de dinosaure et l'unique espèce de Tyrannosaurus si le taxon Tarbosaurus bataar n'est pas considéré comme faisant partie du même genre. Tyrannosaurus fut l'un des derniers dinosaures non-aviens à avoir vécu jusqu'à l'extinction survenue à la limite Crétacé-Paléocène il y a 66 millions d'années.");
CONNECT 'jdbc:derby://10.11.1.111:1527/product-db;create=true;user=APP;password=<PASSWORD>'; CREATE TABLE PRODUCT( ID INT NOT NULL, DESCRIPTION VARCHAR(32), PRICE INT, PRIMARY KEY( ID ) ); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(1, 'Prodotto 1', 10); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(2, 'Prodotto 2', 20); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(3, 'Prodotto 3', 30); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(4, 'Prodotto 4', 40); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(5, 'Prodotto 5', 50); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(6, 'Prodotto 6', 60); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(7, 'Prodotto 7', 70); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(8, 'Prodotto 8', 80); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(9, 'Prodotto 9', 90); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(10, 'Prodotto 10', 100);
SELECT Username, Age FROM Users ORDER BY Age, Username DESC
-- Create a temporary table that stores the card IDs of cards that match the search parameters. WITH found_cards_ids AS (SELECT cards.card_id FROM cards LEFT JOIN taggings ON cards.card_id = taggings.card_id LEFT JOIN tags ON taggings.tag_id = tags.tag_id WHERE COALESCE(tags.content, '') LIKE ? -- Find cards tagged with a specific tag. Parameter #1. AND COALESCE(cards.title, '') LIKE ? -- Find cards with titles containing a specific string. Set NULL to not use this part of the query. Parameter #2. AND COALESCE(cards.caption, '') LIKE ? -- Find cards with captions containing a specific string. Set NULL to not use this part of the query. Parameter #3 GROUP BY cards.card_id) -- Deduplicate. SELECT cards.card_id AS card_id, cards.user_id AS user_id, media.media_url AS media_url, cards.creation_time AS creation_time, title, caption, ( SELECT COUNT(*) FROM likes WHERE likes.card_id = cards.card_id ) AS likes, COALESCE( ( SELECT GROUP_CONCAT(tags.content SEPARATOR ',') FROM tags INNER JOIN taggings ON tags.tag_id = taggings.tag_id WHERE taggings.card_id = cards.card_id ) , '') AS tags FROM cards INNER JOIN found_cards_ids ON cards.card_id = found_cards_ids.card_id INNER JOIN media ON cards.media_id = media.media_id ORDER BY creation_time DESC LIMIT ? -- Specifies how many of the most-liked cards to retrieve. Parameter #4.
<gh_stars>10-100 CREATE TABLE subdivision_MT (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-04', 'Біркіркара', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-09', 'Флоріана', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-10', 'Фонтана', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-26', 'Марса', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-29', 'Мдіна', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-46', 'Рабат', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-56', 'Сліма', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-60', 'Валетта', 'local council');
<filename>server/schema.sql<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS flags ( flag TEXT PRIMARY KEY, sploit TEXT, team TEXT, time INTEGER, status TEXT, checksystem_response TEXT ); CREATE INDEX IF NOT EXISTS flags_sploit ON flags(sploit); CREATE INDEX IF NOT EXISTS flags_team ON flags(team); CREATE INDEX IF NOT EXISTS flags_status_time ON flags(status, time); CREATE INDEX IF NOT EXISTS flags_time ON flags(time);
-- file:updatable_views.sql ln:647 expect:true SELECT * FROM information_schema.views WHERE table_name = 'rw_view1'
<filename>src/test/resources/sql/select/25160a08.sql -- file:select.sql ln:223 expect:true select unique2 from onek2 where unique2 = 11 and stringu1 < 'B'
<gh_stars>100-1000 SELECT trim_wspace('\n \nquick fox\tbrown dog\t\t ') = 'quick fox\tbrown dog' ;
<reponame>sungshikbaik/BOOKS<filename>CsharpBasic/RoadBook.CsharpBasic.Chapter08/SQL/SQL006.sql USE testdb DELETE FROM TB_USER WHERE ID = 'U001'
-- 31.01.2017 17:03 -- URL zum Konzept 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,540394,0,298,TO_TIMESTAMP('2017-01-31 17:03:25','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment.esr','Y','N','C_BP_BankAccount_IsEsrAccount_UC','N',TO_TIMESTAMP('2017-01-31 17:03:25','YYYY-MM-DD HH24:MI:SS'),100,'IsActive=''Y'' AND IsEsrAccount=''Y''') ; -- 31.01.2017 17:03 -- URL zum Konzept 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=540394 AND NOT EXISTS (SELECT * FROM AD_Index_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Index_Table_ID=t.AD_Index_Table_ID) ; -- 31.01.2017 17:03 -- URL zum Konzept 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,3102,540787,540394,0,TO_TIMESTAMP('2017-01-31 17:03:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment.esr','Y',10,TO_TIMESTAMP('2017-01-31 17:03:40','YYYY-MM-DD HH24:MI:SS'),100) ; -- 31.01.2017 17:04 -- URL zum Konzept 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,548019,540788,540394,0,TO_TIMESTAMP('2017-01-31 17:04:05','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment.esr','Y',20,TO_TIMESTAMP('2017-01-31 17:04:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 31.01.2017 17:05 -- URL zum Konzept INSERT INTO AD_Index_Column (AD_Client_ID,AD_Column_ID,AD_Index_Column_ID,AD_Index_Table_ID,AD_Org_ID,ColumnSQL,Created,CreatedBy,EntityType,IsActive,SeqNo,Updated,UpdatedBy) VALUES (0,3105,540789,540394,0,'COALESCE(AccountNo, ''0000000'')',TO_TIMESTAMP('2017-01-31 17:05:20','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment.esr','Y',30,TO_TIMESTAMP('2017-01-31 17:05:20','YYYY-MM-DD HH24:MI:SS'),100) ; -- 31.01.2017 17:06 -- URL zum Konzept UPDATE AD_Index_Table SET ErrorMsg='Bei ESR-Konten müssen Teilnehmernummer und Kontonummer pro Geschäftspartner eindeutig sein.', IsUnique='Y',Updated=TO_TIMESTAMP('2017-01-31 17:06:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Index_Table_ID=540394 ; -- 31.01.2017 17:06 -- URL zum Konzept UPDATE AD_Index_Table_Trl SET IsTranslated='N' WHERE AD_Index_Table_ID=540394 ; -- 31.01.2017 17:09 -- URL zum Konzept CREATE UNIQUE INDEX IF NOT EXISTS C_BP_BankAccount_IsEsrAccount_UC ON C_BP_BankAccount (C_BPartner_ID,ESR_RenderedAccountNo,COALESCE(AccountNo, '0000000')) WHERE IsActive='Y' AND IsEsrAccount='Y' ;
<gh_stars>0 --! Previous: sha1:c74494aa5cadafb887de99310ede54fecfec11b5 --! Hash: sha1:2b7a395a8bebd239d0431876f545a4c98f91cda5 --! split: 1-current.sql create or replace function app_public.accept_friend_request(user_id uuid) returns void language plpgsql security definer set search_path to 'pg_catalog', 'public', 'pg_temp' as $$ declare v_current_status app_public.friends; v_current_user uuid; begin v_current_user := app_public.current_user_id(); if v_current_user is null then raise exception 'you must log in to accept a friendship relation' using errcode = 'login'; end if; select * from app_public.friends where (user_id_1 = v_current_user and user_id_2 = user_id) or (user_id_1 = user_id and user_id_2 = v_current_user) into v_current_status; if v_current_status = null then raise exception 'no such friend request exists' using errcode = 'inval'; elseif (select status from v_current_status) = 'accepted' then raise exception 'you are already friends' using errcode = 'inval'; end if; update app_public.friends set (status) = ('accepted') where user_id = (select user_id_1 from v_current_status) and user_id_2 = (select user_id_2 from v_current_status); end; $$;
<gh_stars>0 -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.19 - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.5.0.5196 -- -------------------------------------------------------- /*!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' */; -- 导出 表 wenxiaocms_db.admins 结构 CREATE TABLE IF NOT EXISTS `admins` ( `id` int(4) NOT NULL AUTO_INCREMENT, `login_name` char(20) NOT NULL DEFAULT '', `password` char(32) NOT NULL DEFAULT '', `salt` char(6) NOT NULL DEFAULT '', `department` varchar(50) NOT NULL DEFAULT '', `real_name` varchar(10) NOT NULL DEFAULT '', `type` tinyint(1) NOT NULL DEFAULT '0', `disabled` tinyint(1) NOT NULL DEFAULT '0', `issendmaile` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否可以发送邮件1可以0不可以', `isfujian` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否可以发送邮件附件1可以0不可以', `add_time` int(10) NOT NULL DEFAULT '0', `role_id` int(11) NOT NULL DEFAULT '0', `is_allwelfare_id` int(11) NOT NULL DEFAULT '0' COMMENT '是否审批号码0不是1是', `coderole` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可以生成可用兑换码', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- 正在导出表 wenxiaocms_db.admins 的数据:0 rows /*!40000 ALTER TABLE `admins` DISABLE KEYS */; /*!40000 ALTER TABLE `admins` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_appname_list 结构 CREATE TABLE IF NOT EXISTS `admin_appname_list` ( `id` int(10) NOT NULL AUTO_INCREMENT, `appname` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), KEY `appname` (`appname`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='程序应用名字管理'; -- 正在导出表 wenxiaocms_db.admin_appname_list 的数据:~2 rows (大约) /*!40000 ALTER TABLE `admin_appname_list` DISABLE KEYS */; INSERT INTO `admin_appname_list` (`id`, `appname`) VALUES (2, 'admin'), (1, 'index'); /*!40000 ALTER TABLE `admin_appname_list` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_control 结构 CREATE TABLE IF NOT EXISTS `admin_control` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL DEFAULT '0', `permission_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='和sons表合并改完无限权限'; -- 正在导出表 wenxiaocms_db.admin_control 的数据:0 rows /*!40000 ALTER TABLE `admin_control` DISABLE KEYS */; /*!40000 ALTER TABLE `admin_control` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_control_sons 结构 CREATE TABLE IF NOT EXISTS `admin_control_sons` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL DEFAULT '0', `permission_sons_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='管理员子权限关系表 和admin_control合并改完无限权限配置'; -- 正在导出表 wenxiaocms_db.admin_control_sons 的数据:~0 rows (大约) /*!40000 ALTER TABLE `admin_control_sons` DISABLE KEYS */; /*!40000 ALTER TABLE `admin_control_sons` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_log 结构 CREATE TABLE IF NOT EXISTS `admin_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `mid` int(11) NOT NULL DEFAULT '0', `login_name` varchar(50) NOT NULL DEFAULT '', `real_name` varchar(20) NOT NULL DEFAULT '', `role_name` varchar(20) NOT NULL DEFAULT '', `add_time` int(11) NOT NULL DEFAULT '0', `ip` varchar(50) NOT NULL DEFAULT '', `object` varchar(200) NOT NULL DEFAULT '', `operation` varchar(200) NOT NULL DEFAULT '', `before` varchar(200) NOT NULL DEFAULT '', `after` varchar(200) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='admin_log操作日志日志改为计入redis,每2小时向数据库事务插入,操作日志保留最近默认三个月的,保留时间后台可设置。'; -- 正在导出表 wenxiaocms_db.admin_log 的数据:0 rows /*!40000 ALTER TABLE `admin_log` DISABLE KEYS */; /*!40000 ALTER TABLE `admin_log` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_permission 结构 CREATE TABLE IF NOT EXISTS `admin_permission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `m` varchar(20) NOT NULL DEFAULT '', `a` varchar(20) NOT NULL DEFAULT '', `op` varchar(20) NOT NULL DEFAULT '', `data` varchar(30) NOT NULL DEFAULT '', `disabled` tinyint(1) NOT NULL DEFAULT '0', `display_order` tinyint(4) NOT NULL DEFAULT '0', `appname` varchar(50) DEFAULT NULL, `iconname` varchar(50) DEFAULT NULL COMMENT '图标名字', PRIMARY KEY (`id`), KEY `appname` (`appname`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='admin_permission 和 admin_permission_sons表合并改为无限权限分配表,权限内容存入redis,有变化则更新redis'; -- 正在导出表 wenxiaocms_db.admin_permission 的数据:2 rows /*!40000 ALTER TABLE `admin_permission` DISABLE KEYS */; INSERT INTO `admin_permission` (`id`, `name`, `m`, `a`, `op`, `data`, `disabled`, `display_order`, `appname`, `iconname`) VALUES (1, '主控', 'main', '', '', '', 0, 0, 'index', NULL), (2, '主控', 'main', '', '', '', 0, 0, 'admin', NULL); /*!40000 ALTER TABLE `admin_permission` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_permission_sons 结构 CREATE TABLE IF NOT EXISTS `admin_permission_sons` ( `id` int(10) NOT NULL AUTO_INCREMENT, `m` varchar(50) DEFAULT NULL, `a` varchar(50) DEFAULT NULL, `title` varchar(50) DEFAULT NULL, `disabled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示0显示1不显示', `display_order` tinyint(4) NOT NULL DEFAULT '0' COMMENT '显示顺序', `iconname` varchar(50) DEFAULT NULL COMMENT '图标名字', `additional` varchar(500) NOT NULL DEFAULT '&' COMMENT '附加参数', PRIMARY KEY (`id`), KEY `m` (`m`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='子权限'; -- 正在导出表 wenxiaocms_db.admin_permission_sons 的数据:~0 rows (大约) /*!40000 ALTER TABLE `admin_permission_sons` DISABLE KEYS */; /*!40000 ALTER TABLE `admin_permission_sons` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.admin_role 结构 CREATE TABLE IF NOT EXISTS `admin_role` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '权限名字', `des` varchar(255) NOT NULL DEFAULT '' COMMENT '权限描述', `display_order` smallint(5) NOT NULL DEFAULT '0' COMMENT '显示顺序', `disabled` tinyint(1) NOT NULL DEFAULT '0', `delt` tinyint(1) NOT NULL DEFAULT '0', `action_url` varchar(200) DEFAULT NULL COMMENT '跳转路径', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='后台权限表'; -- 正在导出表 wenxiaocms_db.admin_role 的数据:0 rows /*!40000 ALTER TABLE `admin_role` DISABLE KEYS */; /*!40000 ALTER TABLE `admin_role` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.wenxiaocms_header 结构 CREATE TABLE IF NOT EXISTS `wenxiaocms_header` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` varchar(20) NOT NULL DEFAULT '' COMMENT '属性', `value` varchar(200) NOT NULL DEFAULT '' COMMENT '值', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='文晓CMS包含头配置'; -- 正在导出表 wenxiaocms_db.wenxiaocms_header 的数据:11 rows /*!40000 ALTER TABLE `wenxiaocms_header` DISABLE KEYS */; INSERT INTO `wenxiaocms_header` (`id`, `key`, `value`) VALUES (1, 'lang', 'en'), (2, 'charset', 'utf-8'), (3, 'http-equiv', 'X-UA-Compatible'), (4, 'http-equiv_content', 'IE=edge'), (5, 'viewport', 'width=device-width, initial-scale=1'), (6, 'author', '3'), (7, 'description', '4'), (8, 'title', 'wenxiaoCMS-时代的未来'), (9, 'body_css', ''), (10, 'logo_path', 'images/logo.png'), (11, 'logo_alt', 'wrapkit'); /*!40000 ALTER TABLE `wenxiaocms_header` ENABLE KEYS */; -- 导出 表 wenxiaocms_db.wenxiaocms_topbar 结构 CREATE TABLE IF NOT EXISTS `wenxiaocms_topbar` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) DEFAULT NULL COMMENT '菜单名称', `level` int(11) NOT NULL DEFAULT '0' COMMENT '菜单等级', `father_id` int(11) NOT NULL DEFAULT '0' COMMENT '父菜单ID', `col-lg` tinyint(1) NOT NULL DEFAULT '0' COMMENT '大屏显示列数', `col-md` tinyint(1) NOT NULL DEFAULT '0' COMMENT '中屏显示列数', `href` varchar(200) DEFAULT NULL COMMENT '菜单链接', `target` varchar(200) NOT NULL DEFAULT '_blank', `bg-img` varchar(200) NOT NULL DEFAULT '' COMMENT '菜单背景图', `title` varchar(200) NOT NULL DEFAULT '' COMMENT '父菜单标题', `father_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单类型:0无,1带背景图片和标题 2列表样式', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=125 DEFAULT CHARSET=utf8 COMMENT='CMS导航条'; -- 正在导出表 wenxiaocms_db.wenxiaocms_topbar 的数据:124 rows /*!40000 ALTER TABLE `wenxiaocms_topbar` DISABLE KEYS */; INSERT INTO `wenxiaocms_topbar` (`id`, `name`, `level`, `father_id`, `col-lg`, `col-md`, `href`, `target`, `bg-img`, `title`, `father_type`) VALUES (1, 'Demos', 0, 0, 3, 0, '#', '_blank', 'images/mega-bg.jpg', 'Most Powerfull Bootstrap 4 UI Kit', 1), (2, 'Niche Homepages', 1, 1, 2, 6, '#', '_blank', '', '', 0), (3, 'Business', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (4, 'Creative', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (5, 'Health & Medical', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (6, 'Software Application', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (7, 'Real Estate', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (8, 'Restaurant', 2, 2, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (9, '&nbsp;', 1, 1, 2, 6, '#', '_blank', '', '', 0), (10, 'Web-Agency', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (11, 'Fitness', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (12, 'Accounting', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (13, 'One Page', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (14, 'Marketing / SEO', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (15, 'Industrial', 2, 9, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (16, 'Landing Pages', 1, 1, 2, 6, '#', '_blank', '', '', 0), (17, 'App Landing', 2, 16, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (20, 'Form Landing', 2, 16, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (18, 'Health & Medical', 2, 16, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (19, 'Personal Landing', 2, 16, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (21, 'Appointment Landing', 2, 16, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (22, 'More Coming soon...', 2, 16, 0, 0, '#', '_blank', '', '', 0), (23, 'Freelancer / Portfolio', 1, 1, 2, 6, '#', '_blank', '', '', 0), (24, 'Freelancer 1', 2, 23, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (25, 'Freelancer 2', 2, 23, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (26, 'Photographer Light', 2, 23, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (27, 'Photographer Dark', 2, 23, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (28, 'Comming Soon', 2, 23, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (29, 'Sections', 0, 0, 4, 0, '#', '_blank', 'images/mega-bg2.jpg', 'Create anything <br/>with our amazing <br/>sections', 1), (30, 'Headers &amp; Footers', 1, 29, 2, 4, '#', '_blank', '', '', 0), (31, 'Banners', 2, 30, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (32, 'Navigation 1-10', 2, 30, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (33, 'Navigation 11-20', 2, 30, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (34, 'Footers', 2, 30, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (35, 'Call to Actions', 2, 30, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (36, 'Sliders', 1, 29, 1, 4, '#', '_blank', '', '', 0), (37, 'Slider1', 1, 36, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (38, 'Slider2', 1, 36, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (39, 'Slider3', 1, 36, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (40, 'Slider4', 1, 36, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (41, 'Slider5', 1, 36, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (42, '&nbsp;', 1, 29, 1, 4, '#', '_blank', '', '', 0), (43, 'Slider6', 1, 42, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (44, 'Slider7', 1, 42, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (45, 'Slider8', 1, 42, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (46, 'Slider9', 1, 42, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (47, 'Slider10', 1, 42, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (48, 'Other Sections', 1, 29, 2, 4, '#', '_blank', '', '', 0), (49, 'Contacts', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (50, 'Blogs', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (51, 'Pricing', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (52, 'Popups / Modals', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (53, 'Teams', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (54, 'Testimonials', 1, 48, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (55, 'Features', 1, 29, 2, 4, '#', '_blank', '', '', 0), (56, 'Features 1-10', 1, 55, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (57, 'Features 11-20', 1, 55, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (58, 'Features 21-30', 1, 55, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (59, 'Features 31-40', 1, 55, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (60, 'Features 41-50', 1, 55, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (61, 'Pages', 0, 0, 0, 0, '#', '_blank', '', '', 2), (62, 'About Us', 1, 61, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (63, 'Pricing', 1, 61, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (64, 'Services', 1, 61, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (65, '', 1, 61, 0, 0, '#', '_blank', '', '', 0), (66, 'Portfolio', 1, 61, 0, 0, 'javascript:void(0)', '_blank', '', '', 2), (67, 'Portfolio 1 Column', 2, 66, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (68, 'Portfolio 2 Column', 2, 66, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (69, 'Portfolio 3 Column', 2, 66, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (70, '', 2, 66, 0, 0, '#', '_blank', '', '', 0), (71, 'Portfolio with Masonry', 2, 66, 0, 0, 'javascript:void(0)', '_blank', '', '', 2), (72, 'Portfolio with Popup', 2, 66, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (73, 'Portfolio Detail', 2, 66, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (74, 'Portfolio Detail', 1, 61, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (75, '', 1, 61, 0, 0, '#', '_blank', '', '', 0), (76, 'Blog', 1, 61, 0, 0, '#', '_blank', '', '', 0), (77, 'Blog Single', 1, 61, 0, 0, '#', '_blank', '', '', 0), (78, 'Contact Us', 1, 61, 0, 0, '#', '_blank', '', '', 0), (79, 'Shop', 0, 0, 0, 0, '#', '_blank', '', '', 2), (80, 'Shop Listing', 1, 79, 0, 0, 'javascript:void(0)', '_blank', '', '', 2), (81, 'With Sidebar', 2, 80, 0, 0, '#', '_blank', '', '', 0), (82, '2 Columns', 2, 80, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (83, '3 Columns', 2, 80, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (84, '', 2, 80, 0, 0, '', '', '', '', 0), (85, 'Without Sidebar', 2, 80, 0, 0, '#', '_blank', '', '', 0), (86, '3 Columns', 2, 80, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (87, '4 Columns', 2, 80, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (88, 'Shop Details', 1, 79, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (89, 'Shopping Cart', 1, 79, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (90, 'Checkout', 1, 79, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (91, 'Elements', 0, 0, 5, 0, '#', '_blank', 'images/mega-bg2.jpg', '<h3 class="text-white font-light">Create anything <br/>with our amazing <br/>Elements</h3>', 1), (92, '', 1, 91, 2, 4, NULL, '_blank', '', '', 0), (93, 'Breadcrumb', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (94, 'Buttons', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (95, 'Bootstrap Ui', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (96, 'Cards', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (97, 'Carousel', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (98, 'Counter', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (99, 'Typography', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (100, 'Dropdowns', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (101, 'Overlays', 2, 92, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (102, NULL, 1, 91, 2, 4, NULL, '_blank', '', '', 0), (103, 'Custom Modal', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (104, 'Forms', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (105, 'Grid', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (106, 'List media', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (107, 'Modals', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (108, 'Tables', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (109, 'Videos', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (110, 'Animations', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (111, 'Iconmind', 2, 102, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (112, NULL, 1, 91, 2, 4, NULL, '_blank', '', '', 0), (113, 'Notifications', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (114, 'Progressbar', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (115, 'Tabs', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (116, 'Timeline', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (117, 'Tooltip / Popover', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (118, 'Typed Text', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (119, 'Utility Classes', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (120, 'Accordions', 2, 112, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (121, 'Documentation', 0, 0, 5, 0, 'http://www.baidu.com', '_blank', '', '', 0), (122, 'Portfolio with Masonry1', 3, 71, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0), (123, 'Portfolio with Masonry2', 3, 71, 0, 0, 'javascript:void(0)', '_blank', '', '', 2), (124, 'Portfolio with Masonry22', 4, 123, 0, 0, 'http://www.baidu.com', '_blank', '', '', 0); /*!40000 ALTER TABLE `wenxiaocms_topbar` 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 */;
USE RLCO GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF OBJECT_ID('dbo.daily_price', 'U') IS NOT NULL DROP TABLE dbo.daily_price CREATE TABLE dbo.daily_price ( price_time date NOT NULL, ticker varchar(10) NOT NULL, price_open money NOT NULL, price_high money NOT NULL, price_low money NOT NULL, price_close money NOT NULL, rl10 money NOT NULL, rl30 money NOT NULL ) ON [PRIMARY] ALTER TABLE dbo.daily_price ADD CONSTRAINT pk_daily_price PRIMARY KEY (price_time, ticker) GO
<reponame>scala-steward/switchmap<filename>src/main/resources/db/migration/V5__Remove_unused_columns.sql<gh_stars>0 ALTER TABLE switches DROP COLUMN ports_number; ALTER TABLE switches DROP CONSTRAINT fk_switch; ALTER TABLE switches DROP COLUMN up_switch_mac;
-- Create the database, let's call it 'tutorial' CREATE database tutorial; -- Extend the database with TimescaleDB CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
<filename>src/Test/DbScripts/MySql/T_user_ddl.sql -- 测试环境 -- MySQL 5.7.21 CREATE TABLE `smartsqltestdb`.`t_user` ( `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '长整型主键,自增', `UserName` VARCHAR(50) NULL, `Status` SMALLINT NULL, PRIMARY KEY (`id`)) COMMENT = 'SmartSql测试用表';
<filename>atc/db/migration/migrations/1579713188_add_rerun_of_builds.down.sql BEGIN; ALTER TABLE builds DROP COLUMN "rerun_of", DROP COLUMN "rerun_number"; ALTER TABLE successful_build_outputs DROP COLUMN "rerun_of"; COMMIT;
<gh_stars>1-10 -- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. \c :TEST_DBNAME --list all extension functions in public schema SELECT DISTINCT proname FROM pg_proc WHERE OID IN ( SELECT objid FROM pg_catalog.pg_depend WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = (select oid from pg_extension where extname='timescaledb') AND deptype = 'e' and classid = 'pg_catalog.pg_proc'::regclass ) AND pronamespace = 'public'::regnamespace ORDER BY proname;
<filename>applications/credhub-api/src/main/resources/db/migration/h2/V4__add_canary_table.sql<gh_stars>100-1000 CREATE SEQUENCE SYSTEM_SEQUENCE_NAMED_CANARY START WITH 1 BELONGS_TO_TABLE; CREATE CACHED TABLE NAMED_CANARY( ID BIGINT DEFAULT (NEXT VALUE FOR SYSTEM_SEQUENCE_NAMED_CANARY) NOT NULL NULL_TO_DEFAULT SEQUENCE SYSTEM_SEQUENCE_NAMED_CANARY, ENCRYPTED_VALUE BINARY(7016), NAME VARCHAR(255) NOT NULL, NONCE BINARY(16) );
SELECT pt_temporal_bbox(ptime) FROM pt_simpleio_table; SELECT pt_centroid('2013'); SELECT pt_centroid('2013-2-2T12:30:40.123'); SELECT pt_centroid('CAL0022013-2-2T12:30:40.123'); SELECT pt_centroid('R21/2014-2-3/P1D/P2D'); SELECT pt_centroid('R86/2014-2-3/P1DT2.123S'); SELECT pt_centroid('2013-2-2T12:30:40.123/2013-2-4T12:30:40.123'); SELECT pt_centroid('TCS002123456/234567'); SELECT pt_centroid('2013-2-2T12:30:40.123,2013-2-4T12:30:40.123,2015-2-2T12:30:40.123,2016-2-4T12:30:40.124,2017-2-2T12:30:40.123,2018-2-4T12:30:40.123,2019-2-2T12:30:40.123,2020-2-4T12:30:40.124,2021-2-2T12:30:40.123,2022-2-4T12:30:40.123,2023-2-2T12:30:40.123,2024-2-4T12:30:40.124,2013-2-2T12:30:40.123,2025-2-4T12:30:40.123,2026-2-2T12:30:40.123,2027-2-4T12:30:40.124'); SELECT pt_centroid('ORD001Ediacaran,Proterozoic');
@@rooms.sql @@remove_rooms_by_name.sql @@test_remove_rooms_by_name.pkg set serveroutput on size unlimited format truncated exec ut.run(user||'.test_remove_rooms_by_name'); drop package test_remove_rooms_by_name; drop procedure remove_rooms_by_name; drop table room_contents; drop table rooms;
<filename>repl/q/asnqspcreate.sql DROP PROCEDURE SPSAMPLE (integer, VARCHAR(10) , char(10) for bit data , timestamp, varchar(30), varchar(30), float, char(3) ); CREATE PROCEDURE SPSAMPLE(INOUT operation integer, IN suppression_ind VARCHAR(10) , IN SRC_COMMIT_LSN char(10) for bit data , IN SRC_TRANS_TIME timestamp, IN Xitem varchar(30), IN item varchar(30), IN price float, IN currency char(3) ) DYNAMIC RESULT SETS 0 LANGUAGE C PARAMETER STYLE GENERAL WITH NULLS NO DBINFO FENCED MODIFIES SQL DATA PROGRAM TYPE SUB EXTERNAL NAME 'asnqspC!server1';
<filename>src/init_sql/v1.6.1_v1.6.2.sql -- 资源组和用户关联表 CREATE TABLE `resource_group_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `resource_group_id` int(11) NOT NULL COMMENT '资源组', `user_id` int(11) NOT NULL COMMENT '用户', `create_time` datetime(6) NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_user_id` (`user_id`), UNIQUE uniq_resource_group_id_instance_id(`resource_group_id`,`user_id`), CONSTRAINT `fk_resource_group_user_resource_group` FOREIGN KEY (`resource_group_id`) REFERENCES `resource_group` (`group_id`), CONSTRAINT `fk_resource_group_user` FOREIGN KEY (`user_id`) REFERENCES `sql_users` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- 资源组和实例关联表 CREATE TABLE `resource_group_instance` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `resource_group_id` int(11) NOT NULL COMMENT '资源组', `instance_id` int(11) NOT NULL COMMENT '实例', `create_time` datetime(6) NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KEY `idx_instance_id` (`instance_id`), UNIQUE uniq_resource_group_id_instance_id(`resource_group_id`,`instance_id`), CONSTRAINT `fk_resource_group_instance_resource_group` FOREIGN KEY (`resource_group_id`) REFERENCES `resource_group` (`group_id`), CONSTRAINT `fk_resource_group_instance` FOREIGN KEY (`instance_id`) REFERENCES `sql_instance` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- 数据清洗 set foreign_key_checks = 0; -- 用户关系数据 insert into resource_group_user (resource_group_id, user_id, create_time) select group_id,object_id,create_time from resource_group_relations where object_type=0; -- 实例关系数据 insert into resource_group_instance (resource_group_id, instance_id, create_time) select group_id,object_id,create_time from resource_group_relations where object_type=1; set foreign_key_checks = 1; -- 删除旧表 drop table resource_group_relations; -- SQL上线工单增加可执行时间选择 ALTER TABLE sql_workflow ADD run_date_start datetime(6) DEFAULT NULL COMMENT '可执行起始时间', ADD run_date_end datetime(6) DEFAULT NULL COMMENT '可执行结束时间'; -- 实例配置增加默认字符集信息 ALTER TABLE sql_instance ADD `charset` varchar(20) DEFAULT NULL COMMENT '字符集' after `password`;
<reponame>lintzc/GPDB<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_udf/gptoolkit_sql/gptoolkit_setup.sql -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore DROP TABLE IF EXISTS foo; CREATE TABLE foo (a INT, b INT) WITH (appendonly=true); INSERT INTO foo SELECT i as a, i as b FROM generate_series(1,20) AS i; UPDATE foo SET b = 0 WHERE a = 1; DELETE FROM foo WHERE a = 2; DROP TABLE IF EXISTS foocs; CREATE TABLE foocs (a INT, b INT) WITH (appendonly=true, orientation=column); INSERT INTO foocs SELECT i as a, i as b FROM generate_series(1,20) AS i; UPDATE foocs SET b = 0 WHERE a = 1; DELETE FROM foocs WHERE a = 2;
SELECT '#1 ' as run, ST_AsText((gval).geom), (gval).val::text FROM (SELECT ST_DumpAsPolygons(ST_Union(rast) ) As gval FROM ( SELECT i As rid, ST_AddBand( ST_MakeEmptyRaster(10, 10, 10*i, 10*i, 2, 2, 0, 0, ST_SRID(ST_Point(0,0) )), '8BUI'::text, 10*i, 0) As rast FROM generate_series(0,10) As i ) As foo ) As foofoo ORDER BY (gval).val; SELECT '#2 ' As run, ST_AsText((gval).geom), (gval).val::text FROM (SELECT ST_DumpAsPolygons(ST_Union(rast,'MEAN') ) As gval FROM ( SELECT i As rid, ST_AddBand( ST_MakeEmptyRaster(10, 10, 10*i, 10*i, 2, 2, 0, 0, ST_SRID(ST_Point(0,0) )), '8BUI'::text, 10*i, 0) As rast FROM generate_series(0,10) As i ) As foo ) As foofoo ORDER BY (gval).val LIMIT 2;
<filename>yii2boke.sql<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50553 Source Host : localhost:3306 Source Database : yii2boke Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-03-17 13:06:05 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for admin -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `username` varchar(255) NOT NULL COMMENT '用户名', `auth_key` varchar(32) NOT NULL COMMENT '自动登录key', `password_hash` varchar(255) NOT NULL COMMENT '加密密码', `password_reset_token` varchar(255) DEFAULT NULL COMMENT '重置密码token', `email_validate_token` varchar(255) DEFAULT NULL COMMENT '邮箱验证token', `email` varchar(255) NOT NULL COMMENT '邮箱', `role` smallint(6) NOT NULL DEFAULT '10' COMMENT '角色等级', `status` smallint(6) NOT NULL DEFAULT '10' COMMENT '状态', `avatar` varchar(255) DEFAULT NULL COMMENT '头像', `vip_lv` int(11) DEFAULT '0' COMMENT 'vip等级', `created_at` int(11) NOT NULL COMMENT '创建时间', `updated_at` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=561 DEFAULT CHARSET=utf8 COMMENT='管理员表'; -- ---------------------------- -- Records of admin -- ---------------------------- INSERT INTO `admin` VALUES ('560', 'admin', 'dU51useQY_rzD25oOfzINZwCFboNadZS', <PASSWORD>', null, null, '<EMAIL>', '10', '10', null, '0', '1552118895', '1552118895'); -- ---------------------------- -- Table structure for cats -- ---------------------------- DROP TABLE IF EXISTS `cats`; CREATE TABLE `cats` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `cat_name` varchar(255) DEFAULT NULL COMMENT '分类名称', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='分类表'; -- ---------------------------- -- Records of cats -- ---------------------------- INSERT INTO `cats` VALUES ('1', '新闻'); INSERT INTO `cats` VALUES ('2', '文章'); -- ---------------------------- -- Table structure for feeds -- ---------------------------- DROP TABLE IF EXISTS `feeds`; CREATE TABLE `feeds` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL COMMENT '用户id', `content` varchar(255) NOT NULL COMMENT '内容', `created_at` int(11) NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='聊天信息表'; -- ---------------------------- -- Records of feeds -- ---------------------------- INSERT INTO `feeds` VALUES ('10', '560', '111111', '1552722590'); INSERT INTO `feeds` VALUES ('11', '560', '你大爷', '1552722615'); INSERT INTO `feeds` VALUES ('12', '560', '哈哈哈', '1552722625'); INSERT INTO `feeds` VALUES ('13', '560', '11111', '1552722939'); INSERT INTO `feeds` VALUES ('14', '560', '3333333333333333333333333', '1552744136'); INSERT INTO `feeds` VALUES ('15', '560', '222222222222222222222222222222', '1552744143'); INSERT INTO `feeds` VALUES ('16', '560', '1111', '1552748390'); INSERT INTO `feeds` VALUES ('17', '560', '1111', '1552748395'); -- ---------------------------- -- Table structure for posts -- ---------------------------- DROP TABLE IF EXISTS `posts`; CREATE TABLE `posts` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `title` varchar(255) DEFAULT NULL COMMENT '标题', `summary` varchar(255) DEFAULT NULL COMMENT '摘要', `content` text COMMENT '内容', `label_img` varchar(255) DEFAULT NULL COMMENT '标签图', `cat_id` int(11) DEFAULT NULL COMMENT '分类id', `user_id` int(11) DEFAULT NULL COMMENT '用户id', `user_name` varchar(255) DEFAULT NULL COMMENT '用户名', `is_valid` tinyint(1) DEFAULT '0' COMMENT '是否有效:0-未发布 1-已发布', `created_at` int(11) DEFAULT NULL COMMENT '创建时间', `updated_at` int(11) DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_cat_valid` (`cat_id`,`is_valid`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8 COMMENT='文章主表'; -- ---------------------------- -- Records of posts -- ---------------------------- INSERT INTO `posts` VALUES ('112', '1111', '111', '<p>111<br/></p>', '/image/20190310/1552229212207672.jpg', '1', '560', 'admin', '0', '1552229499', '1552229499'); INSERT INTO `posts` VALUES ('113', '22222', '11', '<p>11</p>', '/image/20190310/1552229760924224.jpg', '1', '560', 'admin', '1', '1552229770', '1552229770'); INSERT INTO `posts` VALUES ('115', '测试文件', '测试文件', '<p>测试文件</p>', '/image/20190311/1552311054377929.jpg', '1', '560', 'admin', '1', '1552311302', '1552311302'); INSERT INTO `posts` VALUES ('117', '22222', '11111111111111112222222', '<p>11111111111111112222222</p>', '/yii2boke/frontend/web/image/20190317/1552797683150543.jpg', '2', '560', 'admin', '1', '1552578116', '1552797715'); -- ---------------------------- -- Table structure for post_extends -- ---------------------------- DROP TABLE IF EXISTS `post_extends`; CREATE TABLE `post_extends` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `post_id` int(11) DEFAULT NULL COMMENT '文章id', `browser` int(11) DEFAULT '0' COMMENT '浏览量', `collect` int(11) DEFAULT '0' COMMENT '收藏量', `praise` int(11) DEFAULT '0' COMMENT '点赞', `comment` int(11) DEFAULT '0' COMMENT '评论', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COMMENT='文章扩展表'; -- ---------------------------- -- Records of post_extends -- ---------------------------- INSERT INTO `post_extends` VALUES ('38', '116', '5', '0', '0', '0'); INSERT INTO `post_extends` VALUES ('39', '117', '18', '0', '0', '0'); -- ---------------------------- -- Table structure for relation_post_tags -- ---------------------------- DROP TABLE IF EXISTS `relation_post_tags`; CREATE TABLE `relation_post_tags` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `post_id` int(11) DEFAULT NULL COMMENT '文章ID', `tag_id` int(11) DEFAULT NULL COMMENT '标签ID', PRIMARY KEY (`id`), UNIQUE KEY `post_id` (`post_id`,`tag_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='文章和标签关系表'; -- ---------------------------- -- Records of relation_post_tags -- ---------------------------- INSERT INTO `relation_post_tags` VALUES ('1', '115', '3'); INSERT INTO `relation_post_tags` VALUES ('2', '115', '4'); INSERT INTO `relation_post_tags` VALUES ('3', '116', '5'); INSERT INTO `relation_post_tags` VALUES ('4', '116', '6'); INSERT INTO `relation_post_tags` VALUES ('8', '117', '7'); INSERT INTO `relation_post_tags` VALUES ('9', '117', '8'); INSERT INTO `relation_post_tags` VALUES ('10', '117', '9'); INSERT INTO `relation_post_tags` VALUES ('11', '117', '10'); -- ---------------------------- -- Table structure for tags -- ---------------------------- DROP TABLE IF EXISTS `tags`; CREATE TABLE `tags` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `tag_name` varchar(255) DEFAULT NULL COMMENT '标签名称', `post_num` int(11) DEFAULT '0' COMMENT '关联文章数', PRIMARY KEY (`id`), UNIQUE KEY `tag_name` (`tag_name`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='标签表'; -- ---------------------------- -- Records of tags -- ---------------------------- INSERT INTO `tags` VALUES ('3', '测试文件1', '1'); INSERT INTO `tags` VALUES ('4', '测试文件2', '1'); INSERT INTO `tags` VALUES ('5', 'qqqq', '1'); INSERT INTO `tags` VALUES ('6', 'www', '1'); INSERT INTO `tags` VALUES ('7', '111', '2'); INSERT INTO `tags` VALUES ('8', '222', '2'); INSERT INTO `tags` VALUES ('9', '333', '2'); INSERT INTO `tags` VALUES ('10', '11111', '1'); -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `username` varchar(255) NOT NULL COMMENT '用户名', `auth_key` varchar(32) NOT NULL COMMENT '自动登录key', `password_hash` varchar(255) NOT NULL COMMENT '<PASSWORD>', `password_reset_token` varchar(255) DEFAULT NULL COMMENT '重置密码token', `email_validate_token` varchar(255) DEFAULT NULL COMMENT '邮箱验证token', `email` varchar(255) NOT NULL COMMENT '邮箱', `role` smallint(6) NOT NULL DEFAULT '10' COMMENT '角色等级', `status` smallint(6) NOT NULL DEFAULT '10' COMMENT '状态', `avatar` varchar(255) DEFAULT NULL COMMENT '头像', `vip_lv` int(11) DEFAULT '0' COMMENT 'vip等级', `created_at` int(11) NOT NULL COMMENT '创建时间', `updated_at` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=563 DEFAULT CHARSET=utf8 COMMENT='会员表'; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('560', 'admin', 'dU51useQY_rzD25oOfzINZwCFboNadZS', '$2y$13$kRC35O5PHYPxXqd1UC6tgO9L6GdUF2beV55.05fdTjLqVJ2BSSEKG', null, null, '<EMAIL>', '10', '10', null, '0', '1552118895', '1552795518'); INSERT INTO `user` VALUES ('561', '1111111', 'cK72Ys9iuJvhQvot_SpmSxweH8m_rAMU', '$2y$13$pUR99Rkh487Vg9MfxGU3YuKHKqXT7x0DzZoR2aS8RvBtecSCo7Oau', null, null, '<EMAIL>', '10', '10', null, '0', '1552126477', '1552126477'); INSERT INTO `user` VALUES ('562', '222222', 'u1HSbBYlfPxMNwIeVwRb8L2lhl_lavla', '$2y$13$WK9fW1bAzfIF6YZRcCXLourgkkWHg2TUedRCAM3kx5LMA7U99EcE6', null, null, '<EMAIL>', '10', '10', null, '0', '1552181574', '1552181574');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 05, 2019 at 01:59 PM -- Server version: 5.7.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `dev_persuratan` -- -- -------------------------------------------------------- -- -- Table structure for table `data_dosen` -- CREATE TABLE `data_dosen` ( `id_data_dosen` int(16) NOT NULL, `id_master_jabatan` int(16) NOT NULL, `id_master_departemen` int(16) NOT NULL, `nip_dosen` varchar(32) NOT NULL, `nama_dosen` varchar(100) NOT NULL, `tempat_lahir` varchar(64) NOT NULL, `tanggal_lahir` date NOT NULL, `alamat_dosen` text NOT NULL, `telepon_dosen` varchar(16) NOT NULL, `email_dosen` varchar(64) NOT NULL, `jenis_kelamin` varchar(32) NOT NULL, `agama` varchar(64) NOT NULL, `Iat` datetime NOT NULL, `Uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_dosen` -- INSERT INTO `data_dosen` (`id_data_dosen`, `id_master_jabatan`, `id_master_departemen`, `nip_dosen`, `nama_dosen`, `tempat_lahir`, `tanggal_lahir`, `alamat_dosen`, `telepon_dosen`, `email_dosen`, `jenis_kelamin`, `agama`, `Iat`, `Uat`) VALUES (1, 1, 1, '10001111222', '<NAME>, S.T', 'Indonesia', '1977-10-28', 'Jl. Kariango', '0800112233', '<EMAIL>', 'L', 'Islam', '0000-00-00 00:00:00', '2018-10-29 14:10:10'), (2, 2, 1, '0011001223', '<NAME>', 'Tenggarong', '1988-10-01', 'Dekat lapangan pemuda', '09991112222', '<EMAIL>', 'L', 'Islam', '0000-00-00 00:00:00', '2018-10-29 14:10:10'); -- -------------------------------------------------------- -- -- Table structure for table `data_mahasiswa` -- CREATE TABLE `data_mahasiswa` ( `id_data_mahasiswa` int(10) NOT NULL, `nim_mahasiswa` varchar(32) NOT NULL, `nama_mahasiswa` varchar(100) NOT NULL, `alamat_mahasiswa` text NOT NULL, `tempat_lahir` varchar(64) NOT NULL, `tanggal_lahir` date NOT NULL, `email_mahasiswa` varchar(64) NOT NULL, `jenis_kelamin` varchar(32) NOT NULL, `agama` varchar(64) NOT NULL, `telepon_mahasiswa` varchar(16) NOT NULL, `status_mahasiswa` varchar(64) NOT NULL, `Iat` datetime NOT NULL, `Uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_mahasiswa` -- INSERT INTO `data_mahasiswa` (`id_data_mahasiswa`, `nim_mahasiswa`, `nama_mahasiswa`, `alamat_mahasiswa`, `tempat_lahir`, `tanggal_lahir`, `email_mahasiswa`, `jenis_kelamin`, `agama`, `telepon_mahasiswa`, `status_mahasiswa`, `Iat`, `Uat`) VALUES (1, 'D42115320', '<NAME>', 'Jl. BTN G<NAME>', 'Makassar', '1997-02-01', '<EMAIL>', 'L', 'Islam', '089631837157', 'Aktif', '0000-00-00 00:00:00', '2018-11-06 06:15:17'), (3, 'D42115010', 'Ramadhan', 'disini', '', '0000-00-00', '<EMAIL>', 'L', '', '08123456789', '', '0000-00-00 00:00:00', '2018-11-21 04:03:47'), (4, 'D42115321', '<NAME>', 'disini', '', '0000-00-00', '<EMAIL>', 'P', '', '08123456789', '', '0000-00-00 00:00:00', '2018-11-21 05:25:47'); -- -------------------------------------------------------- -- -- Table structure for table `data_suratinvoice` -- CREATE TABLE `data_suratinvoice` ( `id_data_suratinvoice` int(16) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `pengirim` varchar(64) NOT NULL, `projek` varchar(128) NOT NULL, `tanggal_selesai` date NOT NULL, `deskripsi` text NOT NULL, `harga` varchar(255) NOT NULL, `status` varchar(64) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_suratinvoice` -- INSERT INTO `data_suratinvoice` (`id_data_suratinvoice`, `nomor_surat`, `pengirim`, `projek`, `tanggal_selesai`, `deskripsi`, `harga`, `status`, `iat`, `uat`) VALUES (1, '0001/INV/USI/XII/2018', '', '', '0000-00-00', '', '0', 'SELESAI', '0000-00-00 00:00:00', '2018-12-13 09:12:25'), (2, '0002/INV/USI/XII/2018', '', '', '0000-00-00', '', '0', '', '0000-00-00 00:00:00', '2018-12-19 04:57:17'); -- -------------------------------------------------------- -- -- Table structure for table `data_suratspk01` -- CREATE TABLE `data_suratspk01` ( `id_data_suratspk01` int(16) NOT NULL, `pemohon` varchar(64) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `perusahaan` varchar(64) NOT NULL, `jabatan_pemohon` varchar(128) NOT NULL, `alamat` text NOT NULL, `pesanan` text NOT NULL, `waktu_kerja` varchar(32) NOT NULL, `harga` varchar(255) NOT NULL, `bank` varchar(128) NOT NULL, `no_rekening` varchar(32) NOT NULL, `pemilik_rekening` varchar(64) NOT NULL, `status` varchar(32) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_suratspk01` -- INSERT INTO `data_suratspk01` (`id_data_suratspk01`, `pemohon`, `nomor_surat`, `perusahaan`, `jabatan_pemohon`, `alamat`, `pesanan`, `waktu_kerja`, `harga`, `bank`, `no_rekening`, `pemilik_rekening`, `status`, `iat`, `uat`) VALUES (1, '<NAME>', '0001/SPK-01/USI/XII/2018', 'PT. Billa Tiba Masanya', 'Pemimpin Redaksi PT. Billa Tiba Masanya', 'Jl. Dirgantara, Kec. Pallanga, Kab. Gowa', 'Sistem Informasi Pegawai PT. Billa Tiba Masanya', '120 Hari Kerja', '10000000', 'Bank Sendiri', '1221110021', 'Saya Sendiri', '', '0000-00-00 00:00:00', '2018-12-19 07:31:35'), (2, '<NAME>', '0002/SPK01/USI/XII/2018', 'PT. Dimanapun Berada', 'Anggota', 'disini', 'Game Harvest Moon', '120 hari', '100000', 'btpn', '11121222222112', 'saya', '', '0000-00-00 00:00:00', '2018-12-20 08:30:08'); -- -------------------------------------------------------- -- -- Table structure for table `data_suratspk02` -- CREATE TABLE `data_suratspk02` ( `id_data_suratspk02` int(16) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `status` varchar(32) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `pemohon` varchar(64) NOT NULL, `tempat_lahir` varchar(64) NOT NULL, `tanggal_lahir` varchar(64) NOT NULL, `alamat` text NOT NULL, `agama` varchar(32) NOT NULL, `no_ktp` varchar(32) NOT NULL, `tugas` varchar(128) NOT NULL, `waktu_kerja` varchar(64) NOT NULL, `tanggal_selesai` date NOT NULL, `harga` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `data_surat_aktifkuliah` -- CREATE TABLE `data_surat_aktifkuliah` ( `id_data_surat_aktifkuliah` int(16) NOT NULL, `id_data_mahasiswa` int(16) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `tanggal_pembuatan` date NOT NULL, `tanggal_selesai` date NOT NULL, `tanggal_kefakultas` date NOT NULL, `tanggal_prosesstaf` date NOT NULL, `proses` varchar(32) NOT NULL, `keterangan` varchar(32) NOT NULL, `arsip` varchar(32) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_surat_aktifkuliah` -- INSERT INTO `data_surat_aktifkuliah` (`id_data_surat_aktifkuliah`, `id_data_mahasiswa`, `nomor_surat`, `tanggal_pembuatan`, `tanggal_selesai`, `tanggal_kefakultas`, `tanggal_prosesstaf`, `proses`, `keterangan`, `arsip`, `iat`, `uat`) VALUES (1, 1, '82', '2018-11-01', '2018-11-03', '2018-11-02', '2018-11-02', 'Selesai', '-', '-', '0000-00-00 00:00:00', '2018-11-10 02:34:25'), (2, 3, '000011110000', '2018-11-01', '2018-11-03', '2018-11-02', '2018-11-02', 'Selesai', '-', '-', '0000-00-00 00:00:00', '2018-11-21 05:48:35'), (3, 3, '0101001', '2018-11-09', '2018-11-09', '2018-11-09', '2018-11-09', 'Proses', '-', '-', '0000-00-00 00:00:00', '2018-11-21 05:48:35'); -- -------------------------------------------------------- -- -- Table structure for table `data_surat_izinpenelitian` -- CREATE TABLE `data_surat_izinpenelitian` ( `id_data_surat_izinpenelitian` int(16) NOT NULL, `id_data_mahasiswa` int(16) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `judul_tugasakhir` varchar(128) NOT NULL, `tanggal_pembuatan` date NOT NULL, `tanggal_selesai` date NOT NULL, `tanggal_kefakultas` date NOT NULL, `tanggal_prosesstaf` date NOT NULL, `proses_surat` varchar(32) NOT NULL, `keterangan` varchar(32) NOT NULL, `arsip` varchar(32) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_surat_izinpenelitian` -- INSERT INTO `data_surat_izinpenelitian` (`id_data_surat_izinpenelitian`, `id_data_mahasiswa`, `nomor_surat`, `judul_tugasakhir`, `tanggal_pembuatan`, `tanggal_selesai`, `tanggal_kefakultas`, `tanggal_prosesstaf`, `proses_surat`, `keterangan`, `arsip`, `iat`, `uat`) VALUES (1, 3, '000011110000', 'MENGAPA MANUSIA BISA BERGERAK ?', '2018-11-01', '2018-11-30', '2018-11-14', '2018-11-21', 'Selesai', '-', '-', '0000-00-00 00:00:00', '2018-11-21 05:32:48'); -- -------------------------------------------------------- -- -- Table structure for table `data_surat_kerjapraktek` -- CREATE TABLE `data_surat_kerjapraktek` ( `id_data_surat_kerjapraktek` int(16) NOT NULL, `id_data_mahasiswa` int(16) NOT NULL, `nomor_surat` varchar(32) NOT NULL, `nama_perusahaan` varchar(64) NOT NULL, `alamat_perusahaan` text NOT NULL, `tanggal_mulai_kerjapraktek` date NOT NULL, `tanggal_selesai_kerjapraktek` date NOT NULL, `lama_kerjapraktek` varchar(32) NOT NULL, `tanggal_pembuatan` date NOT NULL, `tanggal_selesai` date NOT NULL, `tanggal_kefakultas` date NOT NULL, `tanggal_prosesstaf` date NOT NULL, `status_surat` varchar(32) NOT NULL, `keterangan` varchar(32) NOT NULL, `arsip` varchar(32) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `data_user` -- CREATE TABLE `data_user` ( `id_data_user` int(16) NOT NULL, `username` varchar(32) NOT NULL, `nama` varchar(100) NOT NULL, `password_admin` varchar(64) NOT NULL, `level_akses` varchar(32) NOT NULL, `remember_me` int(16) NOT NULL, `session_id` varchar(64) NOT NULL, `email_admin` varchar(64) NOT NULL, `telepon_admin` varchar(16) NOT NULL, `alamat_admin` text NOT NULL, `Iat` datetime NOT NULL, `Uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `data_user` -- INSERT INTO `data_user` (`id_data_user`, `username`, `nama`, `password_admin`, `level_akses`, `remember_me`, `session_id`, `email_admin`, `telepon_admin`, `alamat_admin`, `Iat`, `Uat`) VALUES (1, 'D42115320', '<NAME>', '<PASSWORD>', 'mahasiswa', 0, '8ojd596qnl4b192kd81ocvv6eti8vhn2', '<EMAIL>', '089631837157', 'Jl. BTN Griya Maros Indah', '0000-00-00 00:00:00', '2019-02-23 12:39:31'); -- -------------------------------------------------------- -- -- Table structure for table `master_departemen` -- CREATE TABLE `master_departemen` ( `id_master_departemen` int(16) NOT NULL, `nama_departemen` varchar(64) NOT NULL, `jurusan` varchar(64) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `master_departemen` -- INSERT INTO `master_departemen` (`id_master_departemen`, `nama_departemen`, `jurusan`, `iat`, `uat`) VALUES (1, 'Teknik Informatika', 'Teknik Elektro', '0000-00-00 00:00:00', '2018-10-28 17:41:11'), (2, 'Teknik Elektro', 'Teknik Elektro', '0000-00-00 00:00:00', '2018-10-28 17:41:11'); -- -------------------------------------------------------- -- -- Table structure for table `master_jabatan` -- CREATE TABLE `master_jabatan` ( `id_master_jabatan` int(16) NOT NULL, `nama_jabatan` varchar(64) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `master_jabatan` -- INSERT INTO `master_jabatan` (`id_master_jabatan`, `nama_jabatan`, `iat`, `uat`) VALUES (1, 'Ketua Program Studi Teknik Informatika', '0000-00-00 00:00:00', '2018-10-28 17:42:19'), (2, 'Sekretaris Mahasiswa Teknik Informatika', '0000-00-00 00:00:00', '2018-10-28 17:42:19'); -- -------------------------------------------------------- -- -- Table structure for table `master_surat` -- CREATE TABLE `master_surat` ( `id_master_surat` int(16) NOT NULL, `jenis` varchar(64) NOT NULL, `kode` varchar(16) NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `master_surat` -- INSERT INTO `master_surat` (`id_master_surat`, `jenis`, `kode`, `iat`, `uat`) VALUES (1, 'Surat Invoice', 'INV', '0000-00-00 00:00:00', '2018-12-19 04:36:21'), (2, 'Surat SPK 01', 'SPK01', '0000-00-00 00:00:00', '2018-12-20 07:04:41'), (3, 'Surat SPK 02', 'SPK02', '0000-00-00 00:00:00', '2018-12-20 07:04:49'); -- -------------------------------------------------------- -- -- Table structure for table `template_header_surat` -- CREATE TABLE `template_header_surat` ( `id_template_header_surat` int(16) NOT NULL, `id_master_departemen` int(16) NOT NULL, `header_surat1` text NOT NULL, `header_surat2` text NOT NULL, `header_surat3` text NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `template_surat_aktifkuliah` -- CREATE TABLE `template_surat_aktifkuliah` ( `id_template_surat_aktifkuliah` int(16) NOT NULL, `id_data_dosen` int(16) NOT NULL, `isi_pertama` text NOT NULL, `isi_kedua` text NOT NULL, `isi_ketiga` text NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `template_surat_izinpenelitian` -- CREATE TABLE `template_surat_izinpenelitian` ( `id_template_surat_izinpenelitian` int(16) NOT NULL, `id_data_dosen` int(16) NOT NULL, `isi_pertama` text NOT NULL, `isi_kedua` text NOT NULL, `isi_ketiga` text NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `template_surat_kerjapraktek` -- CREATE TABLE `template_surat_kerjapraktek` ( `id_template_surat_kerjapraktek` int(16) NOT NULL, `id_data_dosen` int(16) NOT NULL, `isi_pertama` text NOT NULL, `isi_kedua` text NOT NULL, `isi_ketiga` text NOT NULL, `iat` datetime NOT NULL, `uat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `data_dosen` -- ALTER TABLE `data_dosen` ADD PRIMARY KEY (`id_data_dosen`), ADD KEY `id_master_jabatan` (`id_master_jabatan`,`id_master_departemen`), ADD KEY `id_master_departemen` (`id_master_departemen`), ADD KEY `id_master_jabatan_2` (`id_master_jabatan`); -- -- Indexes for table `data_mahasiswa` -- ALTER TABLE `data_mahasiswa` ADD PRIMARY KEY (`id_data_mahasiswa`), ADD UNIQUE KEY `nim_mahasiswa` (`nim_mahasiswa`); -- -- Indexes for table `data_suratinvoice` -- ALTER TABLE `data_suratinvoice` ADD PRIMARY KEY (`id_data_suratinvoice`); -- -- Indexes for table `data_suratspk01` -- ALTER TABLE `data_suratspk01` ADD PRIMARY KEY (`id_data_suratspk01`); -- -- Indexes for table `data_suratspk02` -- ALTER TABLE `data_suratspk02` ADD PRIMARY KEY (`id_data_suratspk02`); -- -- Indexes for table `data_surat_aktifkuliah` -- ALTER TABLE `data_surat_aktifkuliah` ADD PRIMARY KEY (`id_data_surat_aktifkuliah`), ADD KEY `id_master_surat` (`id_data_mahasiswa`); -- -- Indexes for table `data_surat_izinpenelitian` -- ALTER TABLE `data_surat_izinpenelitian` ADD PRIMARY KEY (`id_data_surat_izinpenelitian`), ADD KEY `id_master_surat` (`id_data_mahasiswa`); -- -- Indexes for table `data_surat_kerjapraktek` -- ALTER TABLE `data_surat_kerjapraktek` ADD PRIMARY KEY (`id_data_surat_kerjapraktek`), ADD KEY `id_master_surat` (`id_data_mahasiswa`); -- -- Indexes for table `data_user` -- ALTER TABLE `data_user` ADD PRIMARY KEY (`id_data_user`), ADD UNIQUE KEY `username` (`username`); -- -- Indexes for table `master_departemen` -- ALTER TABLE `master_departemen` ADD PRIMARY KEY (`id_master_departemen`); -- -- Indexes for table `master_jabatan` -- ALTER TABLE `master_jabatan` ADD PRIMARY KEY (`id_master_jabatan`); -- -- Indexes for table `master_surat` -- ALTER TABLE `master_surat` ADD PRIMARY KEY (`id_master_surat`); -- -- Indexes for table `template_header_surat` -- ALTER TABLE `template_header_surat` ADD PRIMARY KEY (`id_template_header_surat`); -- -- Indexes for table `template_surat_aktifkuliah` -- ALTER TABLE `template_surat_aktifkuliah` ADD PRIMARY KEY (`id_template_surat_aktifkuliah`), ADD KEY `id_data_dosen` (`id_data_dosen`); -- -- Indexes for table `template_surat_izinpenelitian` -- ALTER TABLE `template_surat_izinpenelitian` ADD PRIMARY KEY (`id_template_surat_izinpenelitian`), ADD KEY `id_data_dosen` (`id_data_dosen`); -- -- Indexes for table `template_surat_kerjapraktek` -- ALTER TABLE `template_surat_kerjapraktek` ADD PRIMARY KEY (`id_template_surat_kerjapraktek`), ADD KEY `id_data_dosen` (`id_data_dosen`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `data_dosen` -- ALTER TABLE `data_dosen` MODIFY `id_data_dosen` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `data_mahasiswa` -- ALTER TABLE `data_mahasiswa` MODIFY `id_data_mahasiswa` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `data_suratinvoice` -- ALTER TABLE `data_suratinvoice` MODIFY `id_data_suratinvoice` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `data_suratspk01` -- ALTER TABLE `data_suratspk01` MODIFY `id_data_suratspk01` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `data_suratspk02` -- ALTER TABLE `data_suratspk02` MODIFY `id_data_suratspk02` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `data_surat_aktifkuliah` -- ALTER TABLE `data_surat_aktifkuliah` MODIFY `id_data_surat_aktifkuliah` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `data_surat_izinpenelitian` -- ALTER TABLE `data_surat_izinpenelitian` MODIFY `id_data_surat_izinpenelitian` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `data_surat_kerjapraktek` -- ALTER TABLE `data_surat_kerjapraktek` MODIFY `id_data_surat_kerjapraktek` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `data_user` -- ALTER TABLE `data_user` MODIFY `id_data_user` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `master_departemen` -- ALTER TABLE `master_departemen` MODIFY `id_master_departemen` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `master_jabatan` -- ALTER TABLE `master_jabatan` MODIFY `id_master_jabatan` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `master_surat` -- ALTER TABLE `master_surat` MODIFY `id_master_surat` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `template_header_surat` -- ALTER TABLE `template_header_surat` MODIFY `id_template_header_surat` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `template_surat_aktifkuliah` -- ALTER TABLE `template_surat_aktifkuliah` MODIFY `id_template_surat_aktifkuliah` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `template_surat_izinpenelitian` -- ALTER TABLE `template_surat_izinpenelitian` MODIFY `id_template_surat_izinpenelitian` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `template_surat_kerjapraktek` -- ALTER TABLE `template_surat_kerjapraktek` MODIFY `id_template_surat_kerjapraktek` int(16) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table `data_dosen` -- ALTER TABLE `data_dosen` ADD CONSTRAINT `data_dosen_ibfk_1` FOREIGN KEY (`id_master_jabatan`) REFERENCES `master_jabatan` (`id_master_jabatan`), ADD CONSTRAINT `data_dosen_ibfk_2` FOREIGN KEY (`id_master_departemen`) REFERENCES `master_departemen` (`id_master_departemen`); -- -- Constraints for table `data_surat_aktifkuliah` -- ALTER TABLE `data_surat_aktifkuliah` ADD CONSTRAINT `data_surat_aktifkuliah_ibfk_2` FOREIGN KEY (`id_data_mahasiswa`) REFERENCES `data_mahasiswa` (`id_data_mahasiswa`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `data_surat_izinpenelitian` -- ALTER TABLE `data_surat_izinpenelitian` ADD CONSTRAINT `data_surat_izinpenelitian_ibfk_2` FOREIGN KEY (`id_data_mahasiswa`) REFERENCES `data_mahasiswa` (`id_data_mahasiswa`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `data_surat_kerjapraktek` -- ALTER TABLE `data_surat_kerjapraktek` ADD CONSTRAINT `data_surat_kerjapraktek_ibfk_2` FOREIGN KEY (`id_data_mahasiswa`) REFERENCES `data_mahasiswa` (`id_data_mahasiswa`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `data_user` -- ALTER TABLE `data_user` ADD CONSTRAINT `data_user_ibfk_1` FOREIGN KEY (`username`) REFERENCES `data_mahasiswa` (`nim_mahasiswa`); -- -- Constraints for table `template_surat_aktifkuliah` -- ALTER TABLE `template_surat_aktifkuliah` ADD CONSTRAINT `template_surat_aktifkuliah_ibfk_1` FOREIGN KEY (`id_data_dosen`) REFERENCES `data_dosen` (`id_data_dosen`); -- -- Constraints for table `template_surat_izinpenelitian` -- ALTER TABLE `template_surat_izinpenelitian` ADD CONSTRAINT `template_surat_izinpenelitian_ibfk_1` FOREIGN KEY (`id_data_dosen`) REFERENCES `data_dosen` (`id_data_dosen`); -- -- Constraints for table `template_surat_kerjapraktek` -- ALTER TABLE `template_surat_kerjapraktek` ADD CONSTRAINT `template_surat_kerjapraktek_ibfk_1` FOREIGN KEY (`id_data_dosen`) REFERENCES `data_dosen` (`id_data_dosen`); /*!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 */;
-- dbengineer INSERT INTO user_account (first_name, last_name, email, phone_number, password, credit) VALUES('Moshiur', 'Rahman', '<EMAIL>', '+8801234567890', '$2b$10$cA33yKydRaExhkl4lqExNeKcC1KEPdsMBWapOyBe1D7cqDKInBguS', 500); -- backendengineer INSERT INTO user_account (first_name, last_name, email, phone_number, password, credit) VALUES('Samin', 'Islam', '<EMAIL>', '+8801357924680', '$2b$10$OwzKc1IfXw4kScnUrV/wiOZIQGaaGMkj5CdOnK2vscVKBfyNG4i7G', 500); -- frontendengineer INSERT INTO user_account (first_name, last_name, email, phone_number, password, credit) VALUES('Arafat', 'Khan', '<EMAIL>', '+8809876543210', '$2b$10$CWPzKtJI5ycddIcruIyFhOiiFEqX8APlAeBwtB8wM6nGCF2bK5arO', 500); INSERT INTO supervisor (user_id) VALUES (2); INSERT INTO supervisor (user_id) VALUES (3); INSERT INTO admin (user_id) VALUES ((SELECT user_id FROM user_account WHERE email = '<EMAIL>'));
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2021 at 06:10 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_test` -- -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_12_15_185801_create_tb_peserta_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `tb_peserta` -- CREATE TABLE `tb_peserta` ( `peserta_id` bigint(20) UNSIGNED NOT NULL, `peserta_nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `peserta_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `peserta_nilai_x` int(11) NOT NULL, `peserta_nilai_y` int(11) NOT NULL, `peserta_nilai_z` int(11) NOT NULL, `peserta_nilai_w` int(11) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tb_peserta` -- INSERT INTO `tb_peserta` (`peserta_id`, `peserta_nama`, `peserta_email`, `peserta_nilai_x`, `peserta_nilai_y`, `peserta_nilai_z`, `peserta_nilai_w`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, '<NAME>', '<EMAIL>', 14, 15, 4, 1, '2021-12-15 12:22:23', '2021-12-15 22:00:25', NULL), (2, '<NAME>', '<EMAIL>', 23, 23, 1, 3, '2021-12-15 12:22:33', '2021-12-15 22:01:07', NULL), (3, 'Ababil', '<EMAIL>', 12, 12, 10, 5, '2021-12-15 12:22:36', '2021-12-15 22:01:44', NULL), (7, 'Silfiani', '<EMAIL>', 3, 15, 14, 12, '2021-12-15 18:14:26', '2021-12-15 22:02:02', NULL), (8, '<NAME>', '<EMAIL>', 20, 19, 17, 6, '2021-12-15 18:14:54', '2021-12-15 22:02:54', NULL), (9, 'Topano', '<EMAIL>', 21, 12, 10, 7, '2021-12-15 18:15:02', '2021-12-15 22:04:07', NULL), (10, '<NAME>', 'wahyuu<EMAIL>', 19, 10, 5, 13, '2021-12-15 18:15:06', '2021-12-15 22:04:56', NULL), (11, 'Syahrul', '<EMAIL>', 19, 14, 11, 8, '2021-12-15 18:15:12', '2021-12-15 22:05:28', NULL), (12, '<NAME>', '<EMAIL>', 25, 12, 14, 13, '2021-12-15 18:15:22', '2021-12-15 22:06:27', NULL), (13, '<NAME>', '<EMAIL>', 19, 13, 8, 1, '2021-12-15 18:15:28', '2021-12-15 22:07:56', NULL), (14, '<NAME>', '<EMAIL>', 23, 5, 13, 9, '2021-12-15 18:15:32', '2021-12-15 22:09:21', NULL); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Indexes for dumped tables -- -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `tb_peserta` -- ALTER TABLE `tb_peserta` ADD PRIMARY KEY (`peserta_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_peserta` -- ALTER TABLE `tb_peserta` MODIFY `peserta_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; COMMIT; /*!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 */;
INSERT INTO movies (movies_name) VALUES ("Intro to JavaScript"), ("Data Science"), ("Linear Algebra"), ("History of the Internet"), ("Machine Learning"), ("Game Design"), ("Cloud Development"); INSERT INTO reviews (movie_id,review) VALUES (1,"GREAT movie"), (2,"Bad movie");
<gh_stars>1-10 UPDATE cms_portlets SET type = DeprecatedPlaceholder WHERE type = ResetPasswordPortlet UPDATE portlets SET type = DynamicPortlet where type != DynamicPortlet SELECT * FROM #{Cms::HtmlBlock.table_name} where id = #{@block.id}
<gh_stars>1-10 -- ---------------------------------------------------------------- -- -- This is a script to add the MIMIC-III constraints for MySQL. -- -- ---------------------------------------------------------------- -- The below command defines the schema where the data should reside use mimiciiiv14; -- Restoring the search path to its default value can be accomplished as follows: -- SET search_path TO "$user",public; DROP PROCEDURE IF EXISTS PROC_DROP_FOREIGN_KEY; DELIMITER $$ CREATE PROCEDURE PROC_DROP_FOREIGN_KEY(IN tableName VARCHAR(64), IN constraintName VARCHAR(64)) BEGIN IF EXISTS( SELECT * FROM information_schema.table_constraints WHERE table_schema = DATABASE() AND table_name = tableName AND constraint_name = constraintName AND constraint_type = 'FOREIGN KEY') THEN SET @query = CONCAT('ALTER TABLE ', tableName, ' DROP FOREIGN KEY ', constraintName, ';'); PREPARE stmt FROM @query; EXECUTE stmt; DEALLOCATE PREPARE stmt; END IF; END$$ DELIMITER ; -- ------------ -- ADMISSIONS-- -- ------------ -- subject_id CALL PROC_DROP_FOREIGN_KEY('ADMISSIONS', 'admissions_fk_subject_id') ALTER TABLE ADMISSIONS ADD CONSTRAINT admissions_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- --------- -- CALLOUT-- -- --------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('CALLOUT', 'callout_fk_subject_id') ALTER TABLE CALLOUT ADD CONSTRAINT callout_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('CALLOUT', 'callout_fk_hadm_id') ALTER TABLE CALLOUT ADD CONSTRAINT callout_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ------------- -- CAREGIVERS -- -- ------------- -- No foreign keys -- ------------- -- CHARTEVENTS-- -- ------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('CHARTEVENTS', 'chartevents_fk_subject_id') ALTER TABLE CHARTEVENTS ADD CONSTRAINT chartevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('CHARTEVENTS', 'chartevents_fk_cgid') ALTER TABLE CHARTEVENTS ADD CONSTRAINT chartevents_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('CHARTEVENTS', 'chartevents_fk_hadm_id') ALTER TABLE CHARTEVENTS ADD CONSTRAINT chartevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- item_id CALL PROC_DROP_FOREIGN_KEY('CHARTEVENTS', 'chartevents_fk_itemid') ALTER TABLE CHARTEVENTS ADD CONSTRAINT chartevents_fk_itemid FOREIGN KEY (ITEMID) REFERENCES D_ITEMS(ITEMID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('CHARTEVENTS', 'chartevents_fk_icustay_id') ALTER TABLE CHARTEVENTS ADD CONSTRAINT chartevents_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- ----------- -- CPTEVENTS-- -- ----------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('CPTEVENTS', 'cptevents_fk_subject_id') ALTER TABLE CPTEVENTS ADD CONSTRAINT cptevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('CPTEVENTS', 'cptevents_fk_hadm_id') ALTER TABLE CPTEVENTS ADD CONSTRAINT cptevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ---------------- -- DATETIMEEVENTS-- -- ---------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('DATETIMEEVENTS', 'datetimeevents_fk_subject_id') ALTER TABLE DATETIMEEVENTS ADD CONSTRAINT datetimeevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('DATETIMEEVENTS', 'datetimeevents_fk_cgid') ALTER TABLE DATETIMEEVENTS ADD CONSTRAINT datetimeevents_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('DATETIMEEVENTS', 'datetimeevents_fk_hadm_id') ALTER TABLE DATETIMEEVENTS ADD CONSTRAINT datetimeevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- item_id CALL PROC_DROP_FOREIGN_KEY('DATETIMEEVENTS', 'datetimeevents_fk_itemid') ALTER TABLE DATETIMEEVENTS ADD CONSTRAINT datetimeevents_fk_itemid FOREIGN KEY (ITEMID) REFERENCES D_ITEMS(ITEMID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('DATETIMEEVENTS', 'datetimeevents_fk_icustay_id') ALTER TABLE DATETIMEEVENTS ADD CONSTRAINT datetimeevents_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- --------------- -- DIAGNOSES_ICD-- -- --------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('DIAGNOSES_ICD', 'diagnoses_icd_fk_subject_id') ALTER TABLE DIAGNOSES_ICD ADD CONSTRAINT diagnoses_icd_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('DIAGNOSES_ICD', 'diagnoses_icd_fk_hadm_id') ALTER TABLE DIAGNOSES_ICD ADD CONSTRAINT diagnoses_icd_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ICD9_code -- Cannot impose this constraint because icd9_code contains 143 codes not in c_icd_diagnoses -- See https://github.com/MIT-LCP/mimic-code/issues/20 -- CALL PROC_DROP_FOREIGN_KEY('DIAGNOSES_ICD', 'diagnoses_icd_fk_icd9') -- ALTER TABLE DIAGNOSES_ICD -- ADD CONSTRAINT diagnoses_icd_fk_icd9 -- FOREIGN KEY (ICD9_CODE) -- REFERENCES D_ICD_DIAGNOSES(ICD9_CODE); -- ------------ -- DRGCODES --- -- ------------ -- subject_id CALL PROC_DROP_FOREIGN_KEY('DRGCODES', 'drgcodes_fk_subject_id') ALTER TABLE DRGCODES ADD CONSTRAINT drgcodes_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('DRGCODES', 'drgcodes_fk_hadm_id') ALTER TABLE DRGCODES ADD CONSTRAINT drgcodes_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- --------------- -- ICUSTAYS-- -- --------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('ICUSTAYS', 'icustays_fk_subject_id') ALTER TABLE ICUSTAYS ADD CONSTRAINT icustays_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('ICUSTAYS', 'icustays_fk_hadm_id') ALTER TABLE ICUSTAYS ADD CONSTRAINT icustays_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ---------- -- INPUTEVENTS_CV-- -- ---------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_CV', 'inputevents_cv_fk_subject_id') ALTER TABLE INPUTEVENTS_CV ADD CONSTRAINT inputevents_cv_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_CV', 'inputevents_cv_fk_hadm_id') ALTER TABLE INPUTEVENTS_CV ADD CONSTRAINT inputevents_cv_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_CV', 'inputevents_cv_fk_icustay_id') ALTER TABLE INPUTEVENTS_CV ADD CONSTRAINT inputevents_cv_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_CV', 'inputevents_cv_fk_cgid') ALTER TABLE INPUTEVENTS_CV ADD CONSTRAINT inputevents_cv_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- ---------- -- INPUTEVENTS_MV-- -- ---------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_MV', 'inputevents_mv_fk_subject_id') ALTER TABLE INPUTEVENTS_MV ADD CONSTRAINT inputevents_mv_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_MV', 'inputevents_mv_fk_hadm_id') ALTER TABLE INPUTEVENTS_MV ADD CONSTRAINT inputevents_mv_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_MV', 'inputevents_mv_fk_icustay_id') ALTER TABLE INPUTEVENTS_MV ADD CONSTRAINT inputevents_mv_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('INPUTEVENTS_MV', 'inputevents_mv_fk_cgid') ALTER TABLE INPUTEVENTS_MV ADD CONSTRAINT inputevents_mv_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- ----------- -- LABEVENTS-- -- ----------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('LABEVENTS', 'labevents_fk_subject_id') ALTER TABLE LABEVENTS ADD CONSTRAINT labevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('LABEVENTS', 'labevents_fk_hadm_id') ALTER TABLE LABEVENTS ADD CONSTRAINT labevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- item_id CALL PROC_DROP_FOREIGN_KEY('LABEVENTS', 'labevents_fk_itemid') ALTER TABLE LABEVENTS ADD CONSTRAINT labevents_fk_itemid FOREIGN KEY (ITEMID) REFERENCES D_LABITEMS(ITEMID); -- -------------------- -- MICROBIOLOGYEVENTS-- -- -------------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('MICROBIOLOGYEVENTS', 'microbiologyevents_fk_subject_id') ALTER TABLE MICROBIOLOGYEVENTS ADD CONSTRAINT microbiologyevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('MICROBIOLOGYEVENTS', 'microbiologyevents_fk_hadm_id') ALTER TABLE MICROBIOLOGYEVENTS ADD CONSTRAINT microbiologyevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ------------ -- NOTEEVENTS-- -- ------------ -- subject_id CALL PROC_DROP_FOREIGN_KEY('NOTEEVENTS', 'noteevents_fk_subject_id') ALTER TABLE NOTEEVENTS ADD CONSTRAINT noteevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('NOTEEVENTS', 'noteevents_fk_hadm_id') ALTER TABLE NOTEEVENTS ADD CONSTRAINT noteevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('NOTEEVENTS', 'noteevents_fk_cgid') ALTER TABLE NOTEEVENTS ADD CONSTRAINT noteevents_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- ---------- -- OUTPUTEVENTS-- -- ---------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('OUTPUTEVENTS', 'outputevents_fk_subject_id') ALTER TABLE OUTPUTEVENTS ADD CONSTRAINT outputevents_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('OUTPUTEVENTS', 'outputevents_fk_hadm_id') ALTER TABLE OUTPUTEVENTS ADD CONSTRAINT outputevents_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('OUTPUTEVENTS', 'outputevents_fk_icustay_id') ALTER TABLE OUTPUTEVENTS ADD CONSTRAINT outputevents_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('OUTPUTEVENTS', 'outputevents_fk_cgid') ALTER TABLE OUTPUTEVENTS ADD CONSTRAINT outputevents_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- --------------- -- PRESCRIPTIONS-- -- --------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('PRESCRIPTIONS', 'prescriptions_fk_subject_id') ALTER TABLE PRESCRIPTIONS ADD CONSTRAINT prescriptions_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('PRESCRIPTIONS', 'prescriptions_fk_hadm_id') ALTER TABLE PRESCRIPTIONS ADD CONSTRAINT prescriptions_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('PRESCRIPTIONS', 'prescriptions_fk_icustay_id') ALTER TABLE PRESCRIPTIONS ADD CONSTRAINT prescriptions_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- ---------------- -- PROCEDUREEVENTS_MV-- -- ---------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('PROCEDUREEVENTS_MV', 'procedureevents_mv_fk_subject_id') ALTER TABLE PROCEDUREEVENTS_MV ADD CONSTRAINT procedureevents_mv_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('PROCEDUREEVENTS_MV', 'procedureevents_mv_fk_hadm_id') ALTER TABLE PROCEDUREEVENTS_MV ADD CONSTRAINT procedureevents_mv_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- itemid CALL PROC_DROP_FOREIGN_KEY('PROCEDUREEVENTS_MV', 'procedureevents_mv_fk_icustay_id') ALTER TABLE PROCEDUREEVENTS_MV ADD CONSTRAINT procedureevents_mv_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); -- cgid CALL PROC_DROP_FOREIGN_KEY('PROCEDUREEVENTS_MV', 'procedureevents_mv_fk_cgid') ALTER TABLE PROCEDUREEVENTS_MV ADD CONSTRAINT procedureevents_mv_fk_cgid FOREIGN KEY (CGID) REFERENCES CAREGIVERS(CGID); -- ---------------- -- PROCEDURES_ICD-- -- ---------------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('PROCEDURES_ICD', 'procedures_icd_fk_subject_id') ALTER TABLE PROCEDURES_ICD ADD CONSTRAINT procedures_icd_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('PROCEDURES_ICD', 'procedures_icd_fk_hadm_id') ALTER TABLE PROCEDURES_ICD ADD CONSTRAINT procedures_icd_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ICD9_code -- Cannot impose this constraint because icd9_code contains 1238 codes not in c_icd_diagnoses -- See https://github.com/MIT-LCP/mimic-code/issues/20, by analogy -- CALL PROC_DROP_FOREIGN_KEY('PROCEDURES_ICD', 'procedures_icd_fk_icd9') -- ALTER TABLE PROCEDURES_ICD -- ADD CONSTRAINT procedures_icd_fk_icd9 -- FOREIGN KEY (icd9_code) -- REFERENCES d_icd_procedures(icd9_code); -- ---------- -- SERVICES-- -- ---------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('SERVICES', 'services_fk_subject_id') ALTER TABLE SERVICES ADD CONSTRAINT services_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('SERVICES', 'services_fk_hadm_id') ALTER TABLE SERVICES ADD CONSTRAINT services_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- ----------- -- TRANSFERS-- -- ----------- -- subject_id CALL PROC_DROP_FOREIGN_KEY('TRANSFERS', 'transfers_fk_subject_id') ALTER TABLE TRANSFERS ADD CONSTRAINT transfers_fk_subject_id FOREIGN KEY (SUBJECT_ID) REFERENCES PATIENTS(SUBJECT_ID); -- hadm_id CALL PROC_DROP_FOREIGN_KEY('TRANSFERS', 'transfers_fk_hadm_id') ALTER TABLE TRANSFERS ADD CONSTRAINT transfers_fk_hadm_id FOREIGN KEY (HADM_ID) REFERENCES ADMISSIONS(HADM_ID); -- icustay_id CALL PROC_DROP_FOREIGN_KEY('TRANSFERS', 'transfers_fk_icustay_id') ALTER TABLE TRANSFERS ADD CONSTRAINT transfers_fk_icustay_id FOREIGN KEY (ICUSTAY_ID) REFERENCES ICUSTAYS(ICUSTAY_ID); DROP PROCEDURE PROC_DROP_FOREIGN_KEY;
ALTER TABLE posts ADD COLUMN is_active TINYINT DEFAULT 0 NOT NULL; ALTER TABLE posts ADD COLUMN image_url VARCHAR(1000);
<reponame>skriems/rust-actix-graphql-sqlx-postgresql CREATE TABLE skill ( id UUID NOT NULL DEFAULT gen_random_uuid(), title VARCHAR(50) NOT NULL, description VARCHAR(100) NOT NULL, coder_id UUID NOT NULL, created_at TIMESTAMPTZ NOT NULL DEFAULT 'NOW'::timestamptz, PRIMARY KEY (id), CONSTRAINT fk_coder FOREIGN KEY(coder_id) REFERENCES coder(id) );
<reponame>heromark/x-pipe<filename>redis/redis-console/src/main/resources/sql/h2/xpipedemodbinitdata.sql insert into DC_TBL (id,dc_name,dc_active,dc_description,dc_last_modified_time) values (1,'A',1,'DC:A','0000000000000000'); insert into DC_TBL (id,dc_name,dc_active,dc_description,dc_last_modified_time) values (2,'B',1,'DC:B','0000000000000000'); insert into SETINEL_TBL (setinel_id,dc_id,setinel_address,setinel_description) values(1,1,'127.0.0.1:17171,127.0.0.1:17171','setinel no.1'); insert into SETINEL_TBL (setinel_id,dc_id,setinel_address,setinel_description) values(2,2,'127.0.0.1:17172,127.0.0.1:17172','setinel no.2'); insert into SETINEL_TBL (setinel_id,dc_id,setinel_address,setinel_description) values(4,2,'127.0.0.1:17174,127.0.0.1:17174','setinel no.4'); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (1,1,'127.0.0.1',7080,1); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (2,1,'127.0.0.1',7081,1); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (3,1,'127.0.0.1',7082,1); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (4,2,'127.0.0.1',7180,1); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (5,2,'127.0.0.1',7181,1); insert into KEEPERCONTAINER_TBL(keepercontainer_id,keepercontainer_dc,keepercontainer_ip,keepercontainer_port,keepercontainer_active) values (6,2,'127.0.0.1',7182,1);
CREATE TABLE `gin`.`relation` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `parent_entity_id` INT NOT NULL, `child_entity_id` INT NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), INDEX `id` (`id` ASC) VISIBLE, INDEX `parent_entity_id_idx` (`parent_entity` ASC) VISIBLE, INDEX `child_entity_id_idx` (`child_entity` ASC) VISIBLE, CONSTRAINT `parent_entity_id` FOREIGN KEY (`parent_entity`) REFERENCES `gin`.`entity` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `child_entity_id` FOREIGN KEY (`child_entity`) REFERENCES `gin`.`entity` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION);
<reponame>FrancoLiuDev/funtional-location-cn CREATE TABLE area ( id INTEGER PRIMARY KEY, name NVARCHAR(32), area_id INTEGER, city_id INTEGER, longitude FLOAT, latitude FLOAT ); CREATE TABLE city ( id INTEGER PRIMARY KEY AUTOINCREMENT, city_id INTEGER, name NVARCHAR(16), province_id INTEGER, longitude FLOAT, latitude FLOAT ); CREATE TABLE province ( id INTEGER PRIMARY KEY, name NVARCHAR(16), province_id INTEGER, longitude FLOAT, latitude FLOAT );
<gh_stars>10-100 SHOW DATABASES LIKE ?; SHOW TABLES FROM ??;
CREATE TABLE songs ( id int NOT NULL, title varchar(80) NOT NULL, artist int NOT NULL, PRIMARY KEY (id) )
<gh_stars>0 drop if exists t; create table t( a int, b date on update current_timestamp, c time on update current_timestamp, d timestamp on update current_timestamp, e datetime on update current_timestamp, f timestampltz on update current_timestamp, g timestamptz on update current_timestamp, h datetimeltz on update current_timestamp, i datetimetz on update current_timestamp ); insert into t values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select b from t); create or replace view v as select * from t; show columns from v; update v set a=2; set @y=(select b from t); select if (cast(@y as date)- cast(@x as date)>0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update current_datetime, c time on update current_datetime, d timestamp on update current_datetime, e datetime on update current_datetime, f timestampltz on update current_datetime, g timestamptz on update current_datetime, h datetimeltz on update current_datetime, i datetimetz on update current_datetime ); insert into t1 values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select c from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select c from t1); select if (cast(@y as time)- cast(@x as time)!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update current_date, d timestamp on update current_date, e datetime on update current_date, f timestampltz on update current_date, g timestamptz on update current_date, h datetimeltz on update current_date, i datetimetz on update current_date ); insert into t1 values ( 1, '2008-08-01', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select d from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select d from t1); select if (cast(@y as timestamp)- cast(@x as timestamp)!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update sys_timestamp, c time on update sys_timestamp, d timestamp on update sys_timestamp, e datetime on update sys_timestamp, f timestampltz on update sys_timestamp, g timestamptz on update sys_timestamp, h datetimeltz on update sys_timestamp, i datetimetz on update sys_timestamp ); insert into t1 values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select e from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select e from t1); select if (cast(@y as datetime)- cast(@x as datetime)!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update sys_datetime, c time on update sys_datetime, d timestamp on update sys_datetime, e datetime on update sys_datetime, f timestampltz on update sys_datetime, g timestamptz on update sys_datetime, h datetimeltz on update sys_datetime, i datetimetz on update sys_datetime ); insert into t1 values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select f from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select f from t1); select if (cast(@y as timestampltz )- cast(@x as timestampltz )!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update sysdatetime, c time on update sysdatetime, d timestamp on update sysdatetime, e datetime on update sysdatetime, f timestampltz on update sysdatetime, g timestamptz on update sysdatetime, h datetimeltz on update sysdatetime, i datetimetz on update sysdatetime ); insert into t1 values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select g from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select g from t1); select if (cast(@y as timestamptz )- cast(@x as timestamptz )!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update sysdate, d timestamp on update sysdate, e datetime on update sysdate, f timestampltz on update sysdate, g timestamptz on update sysdate, h datetimeltz on update sysdate, i datetimetz on update sysdate ); insert into t1 values ( 1, '2008-08-01', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select h from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select h from t1); select if (cast(@y as datetimeltz )- cast(@x as datetimeltz )!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, c time on update sys_time ); alter view v as select * from t1; show columns from v; drop if exists t1; create table t1( a int, c time on update systime ); alter view v as select * from t1; show columns from v; drop if exists t1; create table t1( a int, b date on update localtimestamp, c time on update localtimestamp, d timestamp on update localtimestamp, e datetime on update localtimestamp, f timestampltz on update localtimestamp, g timestamptz on update localtimestamp, h datetimeltz on update localtimestamp, i datetimetz on update localtimestamp ); insert into t1 values ( 1, '2008-08-01', '08:00:00', '2009-08-01 08:00:00', '2009-08-01 08:00:00.120', '2009-08-01 08:00:00 Asia/Seoul', '2009-08-01 08:00:00 Asia/Shanghai', '2009-08-01 08:00:00.120 Asia/Seoul', '2009-08-01 08:00:00.120 Asia/Shanghai' ); set @x=(select i from t1); alter view v as select * from t1; show columns from v; update v set a=2; set @y=(select i from t1); select if (cast(@y as datetimetz )- cast(@x as datetimetz )!=0,'ok','nok'); drop variable @x,@y; drop if exists t1; create table t1( a int, b date on update localtime, d timestamp on update localtime, c time on update localtime, e datetime on update localtime, f timestampltz on update localtime, g timestamptz on update localtime, h datetimeltz on update localtime, i datetimetz on update localtime ); alter view v as select * from t1; show columns from v; drop view if exists v; drop if exists t1,t;
CREATE TABLE tom_project ( id INTEGER NOT NULL, name TEXT, PRIMARY KEY (id) ); insert into tom_project (id, name) values (1, 'Projekt'); insert into tom_project (id, name) values (2, 'Projekt 2'); insert into tom_project (id, name) values (3, 'Projekt 3'); CREATE TABLE tom_task ( id INTEGER NOT NULL, project_id INTEGER NOT NULL, name TEXT NOT NULL, start_date TIMESTAMP(6) WITHOUT TIME ZONE NOT NULL, end_date TIMESTAMP(6) WITHOUT TIME ZONE NOT NULL, PRIMARY KEY (id) ); insert into tom_task (id, project_id, name, start_date, end_date) values (1, 1, 'Naloga 1', '2014-05-23 00:00:00', '2014-05-25 23:00:00'); insert into tom_task (id, project_id, name, start_date, end_date) values (2, 1, 'Naloga 2', '2014-05-23 00:00:00', '2014-06-23 23:00:00'); insert into tom_task (id, project_id, name, start_date, end_date) values (3, 1, 'Naloga 3', '2014-05-23 00:00:00', '2014-05-26 23:00:00'); insert into tom_task (id, project_id, name, start_date, end_date) values (4, 2, 'Naloga 1', '2014-05-23 00:00:00', '2014-06-23 23:00:00'); insert into tom_task (id, project_id, name, start_date, end_date) values (5, 3, 'Naloga 1', '2014-05-23 00:00:00', '2014-05-23 23:00:00'); CREATE TABLE tom_report ( id INTEGER NOT NULL, task_id INTEGER NOT NULL, name TEXT NOT NULL, percent_done INTEGER NOT NULL, PRIMARY KEY (id) ); insert into tom_report (id, task_id, name, percent_done) values (1, 1, 'Porocilo 1', 100); insert into tom_report (id, task_id, name, percent_done) values (2, 2, 'Porocilo 2', 30); insert into tom_report (id, task_id, name, percent_done) values (3, 2, 'Porocilo 3', 20); insert into tom_report (id, task_id, name, percent_done) values (4, 5, 'Porocilo 1', 100); insert into tom_report (id, task_id, name, percent_done) values (5, 4, 'Porocilo 1', 100);
-- +migrate Up ALTER TABLE "task" ADD COLUMN "tags" JSONB NOT NULL DEFAULT 'null'; ALTER TABLE "task_template" ADD COLUMN "tags" JSONB NOT NULL DEFAULT 'null'; -- See section 8.14.4 relative to jsonb indexing: -- https://www.postgresql.org/docs/9.4/datatype-json.html CREATE INDEX "task_tags_idx" ON "task" USING gin (tags jsonb_path_ops); -- +migrate Down ALTER TABLE "task" DROP COLUMN "tags"; ALTER TABLE "task_template" DROP COLUMN "tags"; DROP INDEX task_tags_idx;
-- @testpoint: 关键字valid,设置指定账号的有效期 --指定用户有效期的起止时间 drop user if exists valid_test_01; create user valid_test_01 with login password '<PASSWORD>' valid begin '2010-01-01' valid until '2030-12-31'; --指定用户有效期的开始时间 drop user if exists valid_test_02; create user valid_test_02 with login password '<PASSWORD>' valid begin '2010-01-01'; --指定用户有效期的结束时间 drop user if exists valid_test_03; create user valid_test_03 with login password '<PASSWORD>' valid until '2050-05-05'; --修改用户有效期的起止时间 alter user valid_test_01 with valid begin '2020-01-01' valid until '2030-12-31'; drop user if exists valid_test_01; drop user if exists valid_test_02; drop user if exists valid_test_03;
USE fujiji -- -- To fetch all attributes from the fujiji_user table in the fujiji db: SELECT * FROM fujiji_user; -- -- To fetch attributes from the fujiji_token table in the fujiji db: SELECT * FROM fujiji_token; -- -- To fetch attributes from the fujiji_listing table in the fujiji db: SELECT * FROM fujiji_listing; GO
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: May 20, 2019 at 02:24 AM -- Server version: 5.7.25 -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE DATABASE `cred10`; USE `cred10`; DROP TABLE IF EXISTS `clients`; DROP TABLE IF EXISTS `response`; DROP TABLE IF EXISTS `security`; -- -- Database: `cred10` -- -- -------------------------------------------------------- -- -- Table structure for table `clients` -- CREATE TABLE `clients` ( `id` int(11) NOT NULL, `recipient` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `clients` -- INSERT INTO `clients` (`id`, `recipient`) VALUES (1, '3187422609'); -- -------------------------------------------------------- -- -- Table structure for table `response` -- CREATE TABLE `response` ( `id` int(11) NOT NULL, `sender` varchar(12) NOT NULL, `message` varchar(100) NOT NULL, `date` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `response` -- INSERT INTO `response` (`id`, `sender`, `message`, `date`) VALUES (6, '', '5cdf1c30cbd9e5.25803887', '2019-05-17 22:40:30'), (7, '', '5cdf21332ddf06.41156523', '2019-05-17 23:01:42'), (8, '', '3A4A764D8215FB7E0A5E', '2019-05-17 23:02:22'); -- -------------------------------------------------------- -- -- Table structure for table `security` -- CREATE TABLE `security` ( `id` int(11) NOT NULL, `client_id` varchar(30) NOT NULL, `token` varchar(80) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `security` -- INSERT INTO `security` (`id`, `client_id`, `token`) VALUES (7, '<PASSWORD>', '<PASSWORD>'); -- -- Indexes for dumped tables -- -- -- Indexes for table `clients` -- ALTER TABLE `clients` ADD PRIMARY KEY (`id`); -- -- Indexes for table `response` -- ALTER TABLE `response` ADD PRIMARY KEY (`id`); -- -- Indexes for table `security` -- ALTER TABLE `security` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `clients` -- ALTER TABLE `clients` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `response` -- ALTER TABLE `response` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `security` -- ALTER TABLE `security` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
CREATE KEYSPACE IF NOT EXISTS logger WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; USER logger; CREATE TABLE IF NOT EXISTS logs ( id int, created_datetime timestamp, action text, log_text text, ip text, user_id uuid, PRIMARY KEY (id) );
<filename>09. Exam Prep/03. Exam - 03 January 2018/19. Move the Tally/Move the Tally.sql CREATE OR ALTER TRIGGER tr_AddMileageOnOrderUpdate ON Orders AFTER UPDATE AS BEGIN UPDATE Vehicles SET Mileage += (SELECT TotalMileage FROM inserted WHERE VehicleId = inserted.VehicleId) WHERE Id IN (SELECT i.VehicleId FROM inserted AS i JOIN deleted AS d ON d.Id = i.Id WHERE d.TotalMileage IS NULL) END GO UPDATE Orders SET TotalMileage = 100 WHERE Id = 16; SELECT Mileage FROM Vehicles WHERE Id = 25
<filename>SQL/TSQL/Get-memorypressure.sql /* -- Get the Instance Name of the Current Connection -- */ DECLARE @instancename AS VARCHAR(20) = ( SELECT @@SERVICENAME ) /* -- Take a 10 second sample of read/write activities -- */ DECLARE @PageReads BIGINT DECLARE @PageWrites BIGINT DECLARE @LazyWrites BIGINT SET @PageReads = ( SELECT [cntr_value] FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] IN ('Page reads/sec') ) --,'Page writes/sec' --,'Lazy writes/sec' SET @PageWrites = ( SELECT [cntr_value] FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] IN ( --'Page reads/sec' 'Page writes/sec' ) ) --,'Lazy writes/sec' SET @LazyWrites = ( SELECT [cntr_value] FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] IN ( --'Page reads/sec' --'Page writes/sec' 'Lazy writes/sec' ) ) WAITFOR DELAY '00:00:10' /* -- Buffer Cache Hit Ratio -- */ --The % of requests that can be satisifed by pages already in the memory buffer. --The higher the percentage the better the performance and less physical I/0 required. SELECT 'Buffer cache hit ratio' AS TheCounter ,(a.cntr_value * 1.0 / b.cntr_value) * 100.0 AS Value FROM sys.dm_os_performance_counters a JOIN ( SELECT cntr_value ,OBJECT_NAME FROM sys.dm_os_performance_counters WHERE counter_name = 'Buffer cache hit ratio base' AND OBJECT_NAME = 'MSSQL$' + @instancename + ':Buffer Manager' ) b ON a.OBJECT_NAME = b.OBJECT_NAME WHERE a.counter_name = 'Buffer cache hit ratio' AND a.OBJECT_NAME = 'MSSQL$' + @instancename + ':Buffer Manager' UNION ALL /*-- Page Life Expectancy --*/ --The measure, in seconds, of how long a page can remain in the buffer for before it --is trashed to make room for more pages. A value of lower than 300 is generally seen --as indicative of poor performance SELECT counter_name AS TheCounter ,cntr_value AS Value FROM sys.dm_os_performance_counters WHERE counter_name = 'Page life expectancy' AND OBJECT_NAME = 'MSSQL$' + @instancename + ':Buffer Manager' UNION ALL --Total Server Memory vs. Target Server Memory --Target Server Memory = The max available to SQL Server --Total Server Memory = The amount of RAM SQL is actually using SELECT counter_name AS TheCounter ,cntr_value AS Value FROM sys.dm_os_performance_counters WHERE counter_name IN ( 'Total Server Memory (KB)' ,'Target Server Memory (KB)' ,'Stolen Server Memory (KB)' ) UNION ALL --Memory Grants Pending --Should be <= 1. If higher than 1 it suggests that some operations --are waiting for memory to come available before SQL Server will allow --them to proceed. SELECT 'Memory grants pending' AS TheCounter ,[cntr_value] AS Value FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Memory Manager%' AND [counter_name] = 'Memory Grants Pending' UNION ALL SELECT [counter_name] AS TheCounter ,CASE WHEN counter_name = 'Page reads/sec' THEN ([cntr_value] - @PageReads) / 10 WHEN counter_name = 'Page writes/sec' THEN ([cntr_value] - @PageWrites) / 10 WHEN counter_name = 'Lazy writes/sec' THEN ([cntr_value] - @LazyWrites) / 10 END AS Value FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] IN ( 'Page reads/sec' ,'Page writes/sec' ,'Lazy writes/sec' )
DROP DATABASE IF EXISTS fplanalysis; CREATE DATABASE IF NOT EXISTS fplanalysis; USE fplanalysis; CREATE TABLE players_standard_stats ( id INTEGER PRIMARY KEY, player TEXT NOT NULL, nation TEXT NOT NULL, pos TEXT, primary_pos TEXT, age TEXT, mp INT, starts INT, min INT, 90s TEXT, gls INT, ast INT, pk INT, pkatt INT, crdy INT, crdr INT, xg FLOAT, npxg FLOAT, xa FLOAT, xpoints FLOAT, team TEXT ); CREATE TABLE teams ( team_id INTEGER PRIMARY KEY, name TEXT, goals_for INT, goals_against INT, xg FLOAT, xga FLOAT ); CREATE TABLE fixtures ( id INTEGER PRIMARY KEY AUTO_INCREMENT, home_team_id INT, home_goals INT, home_xg FLOAT, away_team_id INT, away_goals INT, away_xg FLOAT, gameweek INT, postponed BOOLEAN );
<reponame>jorgeibarra87/Sitpac<filename>sitpac.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-10-2015 a las 23:01:07 -- Versión del servidor: 5.6.20 -- Versión de PHP: 5.6.3 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 */; -- -- Base de datos: `sitpac` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cliente` -- CREATE TABLE IF NOT EXISTS `cliente` ( `idcliente` int(11) NOT NULL, `nombres` varchar(255) NOT NULL, `apellidos` varchar(255) NOT NULL, `direccion` longtext NOT NULL, `telefono` varchar(255) NOT NULL, `nacionalidad` varchar(255) NOT NULL, `empresa` varchar(255) DEFAULT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `salt` varchar(255) NOT NULL, `permite_email` tinyint(1) NOT NULL, `fecha_alta` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `cliente` -- INSERT INTO `cliente` (`idcliente`, `nombres`, `apellidos`, `direccion`, `telefono`, `nacionalidad`, `empresa`, `email`, `password`, `salt`, `permite_email`, `fecha_alta`) VALUES (1, '<NAME>', '<NAME>', 'direccion cliete 1', '12345', 'Colombiano', 'empresa cliete1', '<EMAIL>', 'cliente1', '', 0, '2015-03-21 00:00:00'), (2, '<NAME>', '<NAME>', 'direccion cliete 2', '12345', 'España', 'empresa cliete2', '<EMAIL>', 'cliente2', '', 0, '2015-03-22 00:00:00'), (3, 'cliente tres', 'apellido cliente tres', 'dir cliente tres', '333', 'Colombiano', 'Ninguna', '<EMAIL>', 'cliente3{45892fad9f2b77747ab81a4a9fec97cf}', '45892fad9f2b77747ab81a4a9fec97cf', 0, '2015-04-09 23:56:25'), (4, 'cliente cuatro', 'apellido cliente cuatro', '444', 'aaa', 'Peru', 'Viajes', '<EMAIL>', '4{e72bc07db51090dab869af35667da5af}', 'e72bc07db51090dab869af35667da5af', 0, '2015-04-10 00:22:49'), (7, 'cliente5', 'ap cliente5', '555', '555', 'Chileno', 'No', '<EMAIL>', 'cliente5{3a8328c46003a1dae140277954a072cf}', '3a8328c46003a1dae140277954a072cf', 1, '2015-04-10 06:55:36'), (8, 'cliente prueba', 'prueba', '1111111', '111', 'Colombiano', 'no', '<EMAIL>', 'prueba{d8c2647148b7d33f96d5d75ab21b7081}', 'd8c2647148b7d33f96d5d75ab21b7081', 1, '2015-04-13 17:03:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `comentarios` -- CREATE TABLE IF NOT EXISTS `comentarios` ( `idcomentarios` int(11) NOT NULL, `calificacion` int(11) NOT NULL, `comentario` longtext NOT NULL, `fecha` datetime NOT NULL, `cliente_idcliente` int(11) DEFAULT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `disponibilidad_alim` -- CREATE TABLE IF NOT EXISTS `disponibilidad_alim` ( `id_disp_alim` int(11) NOT NULL, `desde` datetime NOT NULL, `hasta` datetime NOT NULL, `estado` varchar(100) NOT NULL, `id_serv_alim` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `disponibilidad_alim` -- INSERT INTO `disponibilidad_alim` (`id_disp_alim`, `desde`, `hasta`, `estado`, `id_serv_alim`) VALUES (4, '2015-10-07 00:00:00', '2015-10-09 00:00:00', 'no disponible', 3), (5, '2015-10-07 00:00:00', '2015-10-08 00:00:00', 'no disponible', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `disponibilidad_alo` -- CREATE TABLE IF NOT EXISTS `disponibilidad_alo` ( `id_disp_alo` int(11) NOT NULL, `desde` datetime NOT NULL, `hasta` datetime NOT NULL, `estado` varchar(100) NOT NULL, `id_serv_alo` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `disponibilidad_excu` -- CREATE TABLE IF NOT EXISTS `disponibilidad_excu` ( `id_disp_excu` int(11) NOT NULL, `desde` datetime NOT NULL, `hasta` datetime NOT NULL, `estado` varchar(100) NOT NULL, `id_serv_excu` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `disponibilidad_excu` -- INSERT INTO `disponibilidad_excu` (`id_disp_excu`, `desde`, `hasta`, `estado`, `id_serv_excu`) VALUES (1, '2015-09-25 00:00:00', '2015-09-25 00:00:00', 'no disponible', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `disponibilidad_vehi` -- CREATE TABLE IF NOT EXISTS `disponibilidad_vehi` ( `id_disp_vehi` int(11) NOT NULL, `desde` datetime NOT NULL, `hasta` datetime NOT NULL, `estado` varchar(100) NOT NULL, `id_serv_vehi` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `disponibilidad_vehi` -- INSERT INTO `disponibilidad_vehi` (`id_disp_vehi`, `desde`, `hasta`, `estado`, `id_serv_vehi`) VALUES (1, '2015-09-25 00:00:00', '2015-09-25 00:00:00', 'no disponible', 1), (2, '2015-09-24 00:00:00', '2015-09-26 00:00:00', 'no disponible', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `disponibilidad_vuel` -- CREATE TABLE IF NOT EXISTS `disponibilidad_vuel` ( `id_disp_vuel` int(11) NOT NULL, `desde` datetime NOT NULL, `hasta` datetime NOT NULL, `estado` varchar(100) NOT NULL, `id_serv_vuel` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `disponibilidad_vuel` -- INSERT INTO `disponibilidad_vuel` (`id_disp_vuel`, `desde`, `hasta`, `estado`, `id_serv_vuel`) VALUES (1, '2015-09-25 00:00:00', '2015-09-25 00:00:00', 'no disponible', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `factura` -- CREATE TABLE IF NOT EXISTS `factura` ( `idfactura` int(11) NOT NULL, `estado` varchar(100) NOT NULL, `fecha_emision` datetime NOT NULL, `fecha_cobro` datetime NOT NULL, `valor` double NOT NULL, `iva` double NOT NULL, `total` double NOT NULL, `reserva_idreserva` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `intinerario_reserva` -- CREATE TABLE IF NOT EXISTS `intinerario_reserva` ( `id_intinerario` int(11) NOT NULL, `nombre_producto` varchar(100) NOT NULL, `nombre_servicio` varchar(100) NOT NULL, `detalles` longtext NOT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_fin` datetime NOT NULL, `descuento` int(11) NOT NULL, `precio_servicio` double NOT NULL, `id_proveedor` int(11) NOT NULL, `id_reserva` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `intinerario_reserva` -- INSERT INTO `intinerario_reserva` (`id_intinerario`, `nombre_producto`, `nombre_servicio`, `detalles`, `duracion`, `fecha_inicio`, `fecha_fin`, `descuento`, `precio_servicio`, `id_proveedor`, `id_reserva`) VALUES (1, 'Hotel San Martin', 'Suite Presidencial', 'En el primer piso podrás disfrutar de:\r\n\r\nLobby\r\nDos salas de diferente ambiente\r\nBar\r\nCocina completamente dotada\r\nBaño social\r\n1 Habitación sencilla con baño privado, minibar, Tv Led.\r\nLa mejor vista de la ciudad desde la terraza en donde ademas podrás realizar tus reuniones privadas con capacidad de hasta 30 personas.\r\n\r\nEn el segundo piso:\r\n\r\n2 Habitaciones con cama king size, Tv Led 40’, baño, jacuzzi, vestier, balcón exterior, wifi, cajilla de seguridad y minibar.\r\n1 Habitación sencilla con Tv Led y baño.', 3, '2015-09-01 00:00:00', '2015-09-04 00:00:00', 0, 100000, 6, 1), (2, 'Hotel San Martin', 'Suite San Martín', 'Disfrutarás en el primer piso de:\r\n\r\nSala\r\nComedor\r\nCocina completamente dotada\r\nBaño\r\nVista del norte de la ciudad\r\nWifi\r\n\r\nEl segundo nivel cuenta con dos habitaciones, cada una de ellas con:\r\n\r\nCama King Size\r\nTv Led de 42?\r\nBaño con jacuzzi\r\nVestier\r\nEscritorio', 0, '2015-09-01 00:00:00', '2015-09-03 00:00:00', 0, 150000, 6, 1), (3, 'Hotel San Martin', 'Suite Presidencial', 'En el primer piso podrás disfrutar de:\r\n\r\nLobby\r\nDos salas de diferente ambiente\r\nBar\r\nCocina completamente dotada\r\nBaño social\r\n1 Habitación sencilla con baño privado, minibar, Tv Led.\r\nLa mejor vista de la ciudad desde la terraza en donde ademas podrás realizar tus reuniones privadas con capacidad de hasta 30 personas.\r\n\r\nEn el segundo piso:\r\n\r\n2 Habitaciones con cama king size, Tv Led 40’, baño, jacuzzi, vestier, balcón exterior, wifi, cajilla de seguridad y minibar.\r\n1 Habitación sencilla con Tv Led y baño.', 0, '2015-09-01 00:00:00', '2015-09-04 00:00:00', 0, 100000, 6, 1), (4, '<NAME>', 'Lengua a la criolla', 'Suspendisse at libero porttitor nisi aliquet vulputate vitae at velit. Aliquam eget arcu magna, vel congue dui. Nunc auctor mauris tempor leo aliquam vel porta ante sodales. Nulla facilisi. In accumsan mattis odio vel luctus.\r\n\r\nAenean vehicula vehicula aliquam. Aliquam lobortis cursus erat, in dictum neque suscipit id. In eget ante massa. Mauris ut mauris vel libero sagittis congue. Aenean id turpis lectus. Duis eget consequat velit. Suspendisse cursus nulla vel eros blandit placerat. Aliquam volutpat justo sit amet dui sollicitudin eget interdum nibh gravida. Cras nec placerat libero. Cras id risus sem. Maecenas sit amet ligula turpis, malesuada convallis dui. Ut ligula lorem, vestibulum sit amet fringilla lobortis, posuere at odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Integer egestas lectus egestas erat convallis et eleifend sapien tempor. Nulla aliquam nisi sed lorem rhoncus ut adipiscing leo semper. Vestibulum sit amet libero ante, a porta augue. Morbi ornare, leo a tristique rutrum, arcu nulla ornare purus, et pharetra tortor lectus at lectus. Cras congue rhoncus eros et facilisis. Maecenas vehicula pretium turpis, in volutpat mauris imperdiet vel. Nulla facilisi. Sed at justo sem, at iaculis ligula. Phasellus ligula tortor, porttitor in imperdiet et, dignissim in metus. Etiam vitae lorem at felis porta auctor. Nullam semper pharetra gravida.', 0, '2015-09-01 00:00:00', '2015-09-02 00:00:00', 0, 16500, 1, 1), (5, 'Hotel San Martin', 'Máster Suite', 'En el primer nivel encontrará:\r\n\r\nSala-comedor\r\nCocina dotada\r\n\r\nEn el segundo nivel encontrará:\r\n\r\nCama King Size\r\nBaño con jacuzzi\r\nTv Led de 42?\r\nMinicomponente\r\nJacuzzi\r\nAmplio closet\r\nEscritorio', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 80000, 6, 2), (6, 'Asadero Pio Pio', 'Lengua a la criolla', 'Suspendisse at libero porttitor nisi aliquet vulputate vitae at velit. Aliquam eget arcu magna, vel congue dui. Nunc auctor mauris tempor leo aliquam vel porta ante sodales. Nulla facilisi. In accumsan mattis odio vel luctus.\r\n\r\nAenean vehicula vehicula aliquam. Aliquam lobortis cursus erat, in dictum neque suscipit id. In eget ante massa. Mauris ut mauris vel libero sagittis congue. Aenean id turpis lectus. Duis eget consequat velit. Suspendisse cursus nulla vel eros blandit placerat. Aliquam volutpat justo sit amet dui sollicitudin eget interdum nibh gravida. Cras nec placerat libero. Cras id risus sem. Maecenas sit amet ligula turpis, malesuada convallis dui. Ut ligula lorem, vestibulum sit amet fringilla lobortis, posuere at odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Integer egestas lectus egestas erat convallis et eleifend sapien tempor. Nulla aliquam nisi sed lorem rhoncus ut adipiscing leo semper. Vestibulum sit amet libero ante, a porta augue. Morbi ornare, leo a tristique rutrum, arcu nulla ornare purus, et pharetra tortor lectus at lectus. Cras congue rhoncus eros et facilisis. Maecenas vehicula pretium turpis, in volutpat mauris imperdiet vel. Nulla facilisi. Sed at justo sem, at iaculis ligula. Phasellus ligula tortor, porttitor in imperdiet et, dignissim in metus. Etiam vitae lorem at felis porta auctor. Nullam semper pharetra gravida.', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 16500, 1, 2), (7, 'Canopy las Ardillas', 'Zona de Vertigo', 'La emoción no se detiene en el canopy, continúa en los juegos de equilibrio sobre cinco desafiantes puentes colgantes para un recorrido de 155 metros, que te exigirán fuerza, destreza y resistencia para sobrepasarlos. Son los ideales para quienes les gusta asumir retos.', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 15000, 7, 2), (8, 'Canopy las Ardillas', 'Buseta', 'transportadora del terminal de Popayan', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 3000, 7, 2), (9, 'Avianca', 'Avianca', 'Hay muchas variaciones de los pasajes de Lorem Ipsum disponibles, pero la mayoría sufrió alteraciones en alguna manera, ya sea porque se le agregó humor, o palabras aleatorias que no parecen ni un poco creíbles. Si vas a utilizar un pasaje de Lorem Ipsum, necesitás estar seguro de que no hay nada avergonzante escondido en el medio del texto. Todos los generadores de Lorem Ipsum que se encuentran en Internet tienden a repetir trozos predefinidos cuando sea necesario, haciendo a este el único generador verdadero (válido) en la Internet. Usa un diccionario de mas de 200 palabras provenientes del latín, combinadas con estructuras muy útiles de sentencias, para generar texto de Lorem Ipsum que parezca razonable. Este Lorem Ipsum generado siempre estará libre de repeticiones, humor agregado o palabras no características del lenguaje, etc.', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 200000, 2, 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `municipio` -- CREATE TABLE IF NOT EXISTS `municipio` ( `idmunicipio` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `descripcion` longtext ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `municipio` -- INSERT INTO `municipio` (`idmunicipio`, `nombre`, `descripcion`) VALUES (1, 'Popayan', NULL), (2, 'Timbio', NULL), (3, 'Piendamo', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `operador` -- CREATE TABLE IF NOT EXISTS `operador` ( `idoperador` int(11) NOT NULL, `nombres` varchar(255) NOT NULL, `apellidos` varchar(255) NOT NULL, `direccion` longtext, `telefono` varchar(100) DEFAULT NULL, `email` varchar(255) NOT NULL, `Password` varchar(255) NOT NULL, `salt` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `operador` -- INSERT INTO `operador` (`idoperador`, `nombres`, `apellidos`, `direccion`, `telefono`, `email`, `Password`, `salt`) VALUES (1, 'Operador Nombre', 'Operador Apellido', '111111', '123456', '<EMAIL>', 'operador1', ''); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `paquete_turistico` -- CREATE TABLE IF NOT EXISTS `paquete_turistico` ( `idpaquete_turistico` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `foto` varchar(255) DEFAULT NULL, `preciototal` double NOT NULL, `creadocliente` tinyint(1) NOT NULL, `creador` int(11) NOT NULL, `municipio_idmunicipio` int(11) DEFAULT NULL, `descripcion` longtext, `detalles` longtext, `estado` varchar(100) NOT NULL, `plazas` int(11) NOT NULL, `reservas` int(11) NOT NULL, `observaciones` longtext, `fecha_creacion` datetime NOT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_cierre` datetime NOT NULL, `fecha_expiracion` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `paquete_turistico` -- INSERT INTO `paquete_turistico` (`idpaquete_turistico`, `nombre`, `foto`, `preciototal`, `creadocliente`, `creador`, `municipio_idmunicipio`, `descripcion`, `detalles`, `estado`, `plazas`, `reservas`, `observaciones`, `fecha_creacion`, `duracion`, `fecha_inicio`, `fecha_cierre`, `fecha_expiracion`) VALUES (1, 'Paquete Prueba 1', 'paquete1.jpg', 150000, 0, 1, 3, '\r\nEs un hecho establecido hace demasiado tiempo que un lector se distraerá con el contenido del texto de un sitio mientras que mira su diseño. El punto de usar Lorem Ipsum es que tiene una distribución más o menos normal de las letras, al contrario de usar textos como por ejemplo "Contenido aquí, contenido aquí". Estos textos hacen parecerlo un español que se puede leer. Muchos paquetes de autoedición y editores de páginas web usan el Lorem Ipsum como su texto por defecto, y al hacer una búsqueda de "Lorem Ipsum" va a dar por resultado muchos sitios web que usan este texto si se encuentran en estado de desarrollo. Muchas versiones han evolucionado a través de los años, algunas veces por accidente, otras veces a propósito (por ejemplo insertándole humor y cosas por el estilo).', NULL, 'Aprobado', 1, 0, NULL, '2015-05-04 00:00:00', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (2, 'Paquete Prueba 2', 'paquete2.jpg', 563000, 1, 1, 1, 'Hay muchas variaciones de los pasajes de Lorem Ipsum disponibles, pero la mayoría sufrió alteraciones en alguna manera, ya sea porque se le agregó humor, o palabras aleatorias que no parecen ni un poco creíbles. Si vas a utilizar un pasaje de Lorem Ipsum, necesitás estar seguro de que no hay nada avergonzante escondido en el medio del texto. Todos los generadores de Lorem Ipsum que se encuentran en Internet tienden a repetir trozos predefinidos cuando sea necesario, haciendo a este el único generador verdadero (válido) en la Internet. Usa un diccionario de mas de 200 palabras provenientes del latín, combinadas con estructuras muy útiles de sentencias, para generar texto de Lorem Ipsum que parezca razonable. Este Lorem Ipsum generado siempre estará libre de repeticiones, humor agregado o palabras no características del lenguaje, etc.', NULL, 'Pendiente', 1, 0, NULL, '2015-05-03 00:00:00', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (3, 'Paquete Prueba 3', 'sitpac-554b7f7ab6fd4-foto1.jpg', 600000, 1, 1, 1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis quam non eros tincidunt, in bibendum mauris tincidunt. Aliquam dignissim, turpis et egestas dignissim, arcu ante lacinia elit, eget pellentesque orci quam non dolor. Integer lacinia velit non neque porttitor, ac vehicula lacus maximus. Curabitur congue mi congue odio molestie semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dictum euismod tellus id consectetur. Aliquam lacinia consectetur urna, quis laoreet lorem tempus eget. Suspendisse commodo suscipit fringilla.', NULL, 'Solicitud registro', 1, 0, NULL, '2015-05-07 17:06:33', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (4, 'Paquete Prueba 4', 'sitpac-554b8187b11a8-foto1.jpg', 0, 0, 0, 1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis quam non eros tincidunt, in bibendum mauris tincidunt. Aliquam dignissim, turpis et egestas dignissim, arcu ante lacinia elit, eget pellentesque orci quam non dolor. Integer lacinia velit non neque porttitor, ac vehicula lacus maximus. Curabitur congue mi congue odio molestie semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dictum euismod tellus id consectetur. Aliquam lacinia consectetur urna, quis laoreet lorem tempus eget. Suspendisse commodo suscipit fringilla.', NULL, 'Solicitud registro', 5, 0, NULL, '2015-05-07 17:15:18', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (5, 'Paquete Prueba 5', 'sitpac-554b8219e1b77-foto1.jpg', 0, 0, 0, 1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis quam non eros tincidunt, in bibendum mauris tincidunt. Aliquam dignissim, turpis et egestas dignissim, arcu ante lacinia elit, eget pellentesque orci quam non dolor. Integer lacinia velit non neque porttitor, ac vehicula lacus maximus. Curabitur congue mi congue odio molestie semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dictum euismod tellus id consectetur. Aliquam lacinia consectetur urna, quis laoreet lorem tempus eget. Suspendisse commodo suscipit fringilla.', NULL, 'Solicitud registro', 5, 0, NULL, '2015-05-07 17:17:44', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (6, 'Paquete Prueba 6', 'sitpac-554b82c6a0178-foto1.jpg', 0, 0, 0, 1, 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry''s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', NULL, 'Solicitud registro', 5, 0, NULL, '2015-05-07 17:20:37', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (7, 'Paquete Prueba 7', 'sitpac-554b84d2627b6-foto1.jpg', 0, 0, 0, 1, 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ''Content here, content here'', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ''lorem ipsum'' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).', NULL, 'Solicitud registro', 5, 0, NULL, '2015-05-07 17:29:21', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (8, 'Paquete Prueba 8', 'sitpac-554b8543a079f-foto1.jpg', 0, 0, 1, 1, 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ''Content here, content here'', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ''lorem ipsum'' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).', NULL, 'Pendiente', 5, 0, NULL, '2015-05-07 17:31:14', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (9, 'Paquete Prueba 9', 'sitpac-554b869a77577-foto1.jpg', 175000, 0, 1, 1, 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn''t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures', NULL, 'Pendiente', 5, 0, NULL, '2015-05-07 17:36:57', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (10, 'Paquete Prueba 10', 'sitpac-554b873138727-foto1.jpg', 0, 0, 0, 1, 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don''t look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn''t anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures', NULL, 'Pendiente', 5, 0, NULL, '2015-05-07 17:39:28', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (11, 'Paquete Prueba 11', 'sitpac-554b89375ca3c-foto1.jpg', 0, 0, 0, 3, 'Maecenas sit amet porta est, sit amet sodales tellus. Fusce molestie nunc ut ex congue, eget dictum est vestibulum. Vestibulum eleifend orci non orci bibendum, vel efficitur nisi mollis. Vivamus scelerisque condimentum vulputate. Aliquam nec odio nec dolor rutrum hendrerit nec eget nisi. Mauris in risus et quam rhoncus mattis id vitae turpis. Donec nulla justo, ullamcorper sit amet dui et, aliquam dapibus mi. Integer tincidunt id nunc non fringilla. Sed hendrerit erat in eros euismod lobortis. Maecenas commodo lorem ut tortor ultricies lobortis. Praesent in tincidunt mi, nec fringilla mauris.', NULL, 'Aprobado', 5, 0, NULL, '2015-05-07 17:48:06', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (12, 'Paquete Prueba 12', 'sitpac-554ba53429c8a-foto1.jpg', 50000, 0, 0, 1, 'Maecenas sit amet porta est, sit amet sodales tellus. Fusce molestie nunc ut ex congue, eget dictum est vestibulum. Vestibulum eleifend orci non orci bibendum, vel efficitur nisi mollis. Vivamus scelerisque condimentum vulputate. Aliquam nec odio nec dolor rutrum hendrerit nec eget nisi. Mauris in risus et quam rhoncus mattis id vitae turpis. Donec nulla justo, ullamcorper sit amet dui et, aliquam dapibus mi. Integer tincidunt id nunc non fringilla. Sed hendrerit erat in eros euismod lobortis. Maecenas commodo lorem ut tortor ultricies lobortis. Praesent in tincidunt mi, nec fringilla mauris.', NULL, 'Aprobado', 5, 0, NULL, '2015-05-07 19:47:31', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (13, 'Paquete Prueba 13', 'sitpac-554bb1947a9cf-foto1.jpg', 916500, 0, 1, 1, 'Phasellus pretium, enim vitae vehicula fermentum, purus velit semper enim, vitae tempor nibh massa quis augue. Donec dapibus sed quam non tincidunt. Vestibulum et est fringilla, interdum purus et, ultrices mi. Morbi pharetra tempus congue. Sed vel lacus et lectus ullamcorper volutpat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus et nibh sed erat ultricies tempus ac pulvinar urna. Duis sed erat nec lorem ultricies auctor. Nulla sed vestibulum eros. Proin rhoncus tincidunt fermentum. Pellentesque suscipit euismod risus, vel tristique turpis maximus eget. Donec libero purus, laoreet blandit dapibus vel, fermentum eu metus. Praesent molestie euismod tristique.', NULL, 'Aprobado', 5, 0, NULL, '2015-05-07 20:40:19', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (14, 'Paquete cliente prueba', '', 491500, 1, 1, 3, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi et venenatis leo. Curabitur quis sem sit amet turpis fringilla finibus et cursus lorem. Maecenas eu est et felis laoreet dictum eget eu nunc. Sed ut feugiat augue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ac odio commodo, condimentum massa semper, convallis augue. Duis sed laoreet nibh. Nunc a magna quis odio ullamcorper posuere. Morbi facilisis dolor a mi viverra aliquet nec eget metus. Phasellus condimentum eget magna eget molestie. Praesent ultricies malesuada dui. Mauris sodales dictum tortor, eget congue nunc maximus a. Integer lacinia vulputate eros, in ultricies augue luctus non. Proin tincidunt mauris accumsan, lacinia justo vel, placerat tellus.', NULL, 'Solicitud registro', 1, 0, NULL, '2015-05-09 15:44:44', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (15, 'paquete cliente nuevo', '', 449500, 1, 1, 1, 'Lorem Ipsum es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido usó una galería de textos y los mezcló de tal manera que logró hacer un libro de textos especimen. No sólo sobrevivió 500 años, sino que tambien ingresó como texto de relleno en documentos electrónicos, quedando esencialmente igual al original. Fue popularizado en los 60s con la creación de las hojas "Letraset", las cuales contenian pasajes de Lorem Ipsum, y más recientemente con software de autoedición, como por ejemplo Aldus PageMaker, el cual incluye versiones de Lorem Ipsum.', NULL, 'Solicitud registro', 1, 0, NULL, '2015-05-10 20:08:52', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (16, 'Paquete Hotel Monasterio', 'sitpac-55623d25ebc75-foto1.jpg', 616500, 0, 1, 1, '¡Como lo buscas! Bienvenido al Hotel <NAME>, símbolo de la llamada Ciudad Blanca de Colombia: un antiguo convento franciscano de 1570 y arquitectura colonial española transformado en un hotel de lujo de la más alta calidad.\r\n\r\nCon su elegancia clásica y su emblemático pasado, este hotel de lujo en Popayán es una experiencia en sí mismo, un viaje al pasado, una estadía mágica en el corazón de una de las ciudades históricas de Colombia sin renunciar a los servicios más modernos.\r\n\r\nPatio interior, piscina, restaurante, desayuno americano, sauna y turco, gimnasio… Descanse en hotel de lujo en Popayán y déjese llevar por la belleza y elegancia de la memoria.', NULL, 'Solicitud registro', 5, 0, NULL, '2015-05-24 23:05:41', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (17, 'vacaciones', 'sitpac-55f83c5debbd9-foto1.jpg', 0, 1, 0, 1, 'gmgmgmgmjg', 'gffhfnhf', 'Solicitud Registro', 0, 0, NULL, '2015-09-15 17:42:20', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (18, 'Prueba cliente 18', NULL, 516500, 1, 1, 1, NULL, NULL, 'Creando', 0, 0, NULL, '2015-10-02 22:44:02', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-10 00:00:00'), (19, 'Prueba cliente 19', NULL, 334500, 1, 1, 1, 'descripcion', NULL, 'Creando', 0, 0, NULL, '2015-10-02 23:05:00', 4, '2015-12-01 00:00:00', '2015-12-05 00:00:00', '2015-12-11 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pqr` -- CREATE TABLE IF NOT EXISTS `pqr` ( `idpqr` int(11) NOT NULL, `tipo` varchar(100) NOT NULL, `descripcion` longtext NOT NULL, `fecha` datetime NOT NULL, `cliente_idcliente` int(11) DEFAULT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `producto` -- CREATE TABLE IF NOT EXISTS `producto` ( `idproducto` int(11) NOT NULL, `tipo_producto` varchar(100) NOT NULL, `nombre` varchar(255) NOT NULL, `foto` varchar(255) DEFAULT NULL, `descripcion` longtext NOT NULL, `detalles` longtext, `estado` varchar(100) NOT NULL, `fecha_creacion` datetime NOT NULL, `categoria` int(11) DEFAULT NULL, `proveedor_idproveedor` int(11) DEFAULT NULL, `observaciones` longtext ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `producto` -- INSERT INTO `producto` (`idproducto`, `tipo_producto`, `nombre`, `foto`, `descripcion`, `detalles`, `estado`, `fecha_creacion`, `categoria`, `proveedor_idproveedor`, `observaciones`) VALUES (1, 'Alojamiento', 'Hotel San Martin', 'sanmartin.jpg', 'De la ciudad histórica, culta y de tradiciones nace para Colombia y el Mundo, el hotel más moderno y grande de la ciudad blanca, el HOTEL SAN MARTÍN POPAYÁN.\r\n\r\nProporciona una autentica y moderna experiencia para nuestros clientes en la “ciudad blanca”. Ubicados al norte de la ciudad, en una de las zonas más exclusivas y seguras; a 5 minutos del Aeropuerto Guillermo León Valencia y del centro comercial Campanario y a tan sólo 10 minutos del sector histórico.\r\n\r\nLa ciudad de Popayán o también llamada La Jerusalén del nuevo continente es una ciudad antigua llena de historia, cultura y tradiciones.', NULL, 'Creando', '2015-04-25 00:00:00', 5, 6, NULL), (2, 'Alimentacion', '<NAME>', 'sitpac-55402d45a0153-foto1.jpg', 'En 1971 los hermanos Antonio y <NAME>, resolvieron abrir un restaurante y vender de forma directa la producción de pollo de una finca avícola de su familia, situada al oriente de Popayán, en cercanías al Molino de Moscopán, en Fucha. Los nuevos socios establecieron su negocio en un pequeño local, ubicado en la calle 6 # 8-11, al lado del afamado Sotareño, en el que instalaron cuatro mesas y 16 sillas. Su formato inicial era nocturno y de fines de semana. Pronto el Asadero PIO PIO se hizo conocer. Era usual que quienes salían de discotecas pasaran a PIO PIO a tomar consomé, comer pollo y seguir su camino a casa.', NULL, 'Creando', '2015-04-29 03:00:51', 5, 1, NULL), (3, 'Excursion', 'Canopy las Ardillas', 'sitpac-554265d305c2c-foto1.jpg', 'Para CANOPY LAS ARDILLAS es muy grato ofrecerles un nuevo atractivo Eco Turístico, el primero en el departamento del Cauca y una opción diferente a las necesidades de recreación de propios y foráneos.\r\n \r\nVen y siente la magia de volar entre árboles en el CANOPY LAS ARDILLAS, un espacio de AVENTURA EXTREMA creado especialmente para ti, donde podrás disfrutar de 6 recorridos en el aire y contemplar el relieve generoso de la finca La Carolina, vestido de pastizales, guaduales, robledales, cultivos de caña de azúcar, yuca y frutales en medio de cañadas y ganado vacuno.\r\n \r\nTambién podrás disfrutar del muro de escalar, la zona de vértigo con 5 desafiantes puentes colgantes y una caminata por nuestro sendero ecológico, rumbo al rio La Honda donde podrás practicar Neumating.\r\n\r\nEsto y mucho más, te espera en Canopy las Ardillas!', NULL, 'Creando', '2015-04-30 19:26:42', 5, 7, NULL), (4, 'Vuelo', 'Avianca', 'sitpac-5542ef1fb2a4a-foto1.jpg', '<NAME>., es la principal aerolínea de Colombia. Fundada el 5 de diciembre de 1919 bajo el nombre SCADTA, es la compañía aérea más antigua de América y la segunda más antigua en el mundo.\r\n\r\nDirector ejecutivo: <NAME>rez\r\nFundadores: <NAME>, <NAME>, <NAME>', NULL, 'Creando', '2015-05-01 05:12:30', 5, 2, NULL), (5, 'Transporte', 'prueba transporte', 'sitpac-55456fd27d414-foto1.jpg', 'Lorem Ipsum es simplemente el texto de relleno de las imprentas y archivos de texto. Lorem Ipsum ha sido el texto de relleno estándar de las industrias desde el año 1500, cuando un impresor (N. del T. persona que se dedica a la imprenta) desconocido usó una galería de textos y los mezcló de tal manera que logró hacer un libro de textos especimen. No sólo sobrevivió 500 años, sino que tambien ingresó como texto de relleno en documentos electrónicos, quedando esencialmente igual al original. Fue popularizado en los 60s con la creación de las hojas "Letraset", las cuales contenian pasajes de Lorem Ipsum, y más recientemente con software de autoedición, como por ejemplo Aldus PageMaker, el cual incluye versiones de Lorem Ipsum.', NULL, 'Solicitud Registro', '2015-05-02 20:56:00', 1, 2, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `proveedor` -- CREATE TABLE IF NOT EXISTS `proveedor` ( `idproveedor` int(11) NOT NULL, `nombres` varchar(255) NOT NULL, `apellidos` varchar(255) NOT NULL, `empresa` varchar(255) NOT NULL, `direccion` longtext NOT NULL, `telefono` varchar(45) NOT NULL, `fax` varchar(45) DEFAULT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `salt` varchar(255) NOT NULL, `fecha_alta` datetime NOT NULL, `documentos` varchar(255) NOT NULL, `estado` varchar(100) NOT NULL, `observaciones` longtext ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `proveedor` -- INSERT INTO `proveedor` (`idproveedor`, `nombres`, `apellidos`, `empresa`, `direccion`, `telefono`, `fax`, `email`, `password`, `salt`, `fecha_alta`, `documentos`, `estado`, `observaciones`) VALUES (1, 'Francisco', '<NAME>', 'empresa', '11111', '11111', '123', '<EMAIL>', 'proveedor1{8c355cd0a36a4584594db08fc67c0c48}', '8c355cd0a36a4584594db08fc67c0c48', '2015-04-15 00:57:03', 'C:\\xampp\\tmp\\php2A.tmp', 'Aprobado', NULL), (2, 'nombre2', 'apellido2', 'empresa2', '222222', '222222', '321', '<EMAIL>', 'proveedor2{a22e4f92a9082732d5f51044c35ba395}', 'a22e4f92a9082732d5f51044c35ba395', '2015-04-16 04:08:36', 'C:\\xampp\\tmp\\phpB441.tmp', 'Aprobado', NULL), (3, 'nombre3', 'apellido3', 'empresa3', '333333', '333333', '333', '<EMAIL>', 'proveedor3{00f43ab14ee63d66fccb891ba106992e}', '00f43ab14ee63d66fccb891ba106992e', '2015-04-16 04:40:19', 'C:\\xampp\\tmp\\phpB974.tmp', 'Pendiente', NULL), (4, 'nombre4', 'apellido4', 'empresa4', '444444', '444444', '444', '<EMAIL>', 'proveedor4{0dbb6b632af0dfec02298d1d60d856bd}', '0dbb6b632af0dfec02298d1d60d856bd', '2015-04-16 06:30:43', 'C:\\xampp\\tmp\\phpD8D9.tmp', 'Aprobado', NULL), (5, 'nombre5', 'apellido5', 'empresa5', '555555', '555555', '555', '<EMAIL>', 'proveedor5{98ac1709d9cc247fd9885d5f7a0ad782}', '98ac1709d9cc247fd9885d5f7a0ad782', '2015-04-16 06:52:51', 'C:\\xampp\\tmp\\php1C5E.tmp', 'Solicitud registro', NULL), (6, 'proveedor6', 'apellido6', 'empresa6', '123456', '123456', '654', '<EMAIL>', 'proveedor6{cd6ccfbc0fe377709833d6ab1daa1ffb}', 'cd6ccfbc0fe377709833d6ab1daa1ffb', '2015-04-17 06:37:38', 'SistemaIndicadores.pdf', 'Aprobado', NULL), (7, 'prov 7', 'apellido 7', 'la 7', '1234567', '777', '777', '<EMAIL>', 'proveedor7{44fe157c51ddb68471f4b0a4c0493a42}', '44fe157c51ddb68471f4b0a4c0493a42', '2015-04-30 19:14:05', 'CD-0275.pdf', 'Aprobado', NULL), (8, 'prov 8', 'apellido 8', 'empresa8', '88888888', '12345678', '888', '<EMAIL>', 'proveedor8{8d47ee349040dc0cb5aeac64714cec37}', '8d47ee349040dc0cb5aeac64714cec37', '2015-05-01 04:34:57', 'CD-0275.pdf', 'Solicitud registro', NULL), (9, 'prov 9', 'apellido 9', 'empresa9', '99999999', '987654321', '999', '<EMAIL>', 'proveedor9{1ca568943540a9a73f912cf7501332c1}', '1ca568943540a9a73f912cf7501332c1', '2015-05-01 04:44:00', 'sitpac-5542e8720d550-documento1.pdf', 'Solicitud registro', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `reserva` -- CREATE TABLE IF NOT EXISTS `reserva` ( `idreserva` int(11) NOT NULL, `nombre_cliente` varchar(100) NOT NULL, `origen` varchar(100) NOT NULL, `adultos` int(11) NOT NULL, `ninos` int(11) NOT NULL, `nombre_paquete` varchar(100) NOT NULL, `descripcion` longtext NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_cierre` datetime NOT NULL, `duracion` int(11) NOT NULL, `precio_paquete` double NOT NULL, `precio_total` double NOT NULL, `estado` varchar(100) NOT NULL, `fecha_reservado` datetime NOT NULL, `fecha_expiracion` datetime NOT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL, `cliente_idcliente` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `reserva` -- INSERT INTO `reserva` (`idreserva`, `nombre_cliente`, `origen`, `adultos`, `ninos`, `nombre_paquete`, `descripcion`, `fecha_inicio`, `fecha_cierre`, `duracion`, `precio_paquete`, `precio_total`, `estado`, `fecha_reservado`, `fecha_expiracion`, `paquete_turistico_idpaquete_turistico`, `cliente_idcliente`) VALUES (1, '<NAME>', 'Bogota', 2, 0, 'Paquete Prueba 13', 'Phasellus pretium, enim vitae vehicula fermentum, purus velit semper enim, vitae tempor nibh massa quis augue. Donec dapibus sed quam non tincidunt. Vestibulum et est fringilla, interdum purus et, ultrices mi. Morbi pharetra tempus congue. Sed vel lacus et lectus ullamcorper volutpat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus et nibh sed erat ultricies tempus ac pulvinar urna. Duis sed erat nec lorem ultricies auctor. Nulla sed vestibulum eros. Proin rhoncus tincidunt fermentum. Pellentesque suscipit euismod risus, vel tristique turpis maximus eget. Donec libero purus, laoreet blandit dapibus vel, fermentum eu metus. Praesent molestie euismod tristique.', '2015-12-01 00:00:00', '2015-12-05 00:00:00', 4, 916500, 1833000, 'En Reserva', '2015-10-25 02:02:48', '2015-11-04 00:00:00', 13, 1), (2, '<NAME>', 'Cali', 1, 0, 'Paquete Prueba 1', '\r\nEs un hecho establecido hace demasiado tiempo que un lector se distraerá con el contenido del texto de un sitio mientras que mira su diseño. El punto de usar Lorem Ipsum es que tiene una distribución más o menos normal de las letras, al contrario de usar textos como por ejemplo "Contenido aquí, contenido aquí". Estos textos hacen parecerlo un español que se puede leer. Muchos paquetes de autoedición y editores de páginas web usan el Lorem Ipsum como su texto por defecto, y al hacer una búsqueda de "Lorem Ipsum" va a dar por resultado muchos sitios web que usan este texto si se encuentran en estado de desarrollo. Muchas versiones han evolucionado a través de los años, algunas veces por accidente, otras veces a propósito (por ejemplo insertándole humor y cosas por el estilo).', '2015-12-01 00:00:00', '2015-12-05 00:00:00', 4, 150000, 150000, 'En Reserva', '2015-10-25 02:27:38', '2015-11-04 00:00:00', 1, 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_alimentacion` -- CREATE TABLE IF NOT EXISTS `servicio_alimentacion` ( `idalimentacion` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `tipo` varchar(100) NOT NULL, `foto` varchar(255) DEFAULT NULL, `hora` time NOT NULL, `direccion` longtext NOT NULL, `detalles` longtext, `precio` double NOT NULL, `fecha_creacion` datetime NOT NULL, `estado` varchar(100) NOT NULL, `producto_idproducto` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_alimentacion` -- INSERT INTO `servicio_alimentacion` (`idalimentacion`, `nombre`, `tipo`, `foto`, `hora`, `direccion`, `detalles`, `precio`, `fecha_creacion`, `estado`, `producto_idproducto`) VALUES (1, 'Lengua a la criolla', 'Almuerzo', 'sitpac-554253f612a3b-foto1.jpg', '12:00:00', '123123123', 'Suspendisse at libero porttitor nisi aliquet vulputate vitae at velit. Aliquam eget arcu magna, vel congue dui. Nunc auctor mauris tempor leo aliquam vel porta ante sodales. Nulla facilisi. In accumsan mattis odio vel luctus.\r\n\r\nAenean vehicula vehicula aliquam. Aliquam lobortis cursus erat, in dictum neque suscipit id. In eget ante massa. Mauris ut mauris vel libero sagittis congue. Aenean id turpis lectus. Duis eget consequat velit. Suspendisse cursus nulla vel eros blandit placerat. Aliquam volutpat justo sit amet dui sollicitudin eget interdum nibh gravida. Cras nec placerat libero. Cras id risus sem. Maecenas sit amet ligula turpis, malesuada convallis dui. Ut ligula lorem, vestibulum sit amet fringilla lobortis, posuere at odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Integer egestas lectus egestas erat convallis et eleifend sapien tempor. Nulla aliquam nisi sed lorem rhoncus ut adipiscing leo semper. Vestibulum sit amet libero ante, a porta augue. Morbi ornare, leo a tristique rutrum, arcu nulla ornare purus, et pharetra tortor lectus at lectus. Cras congue rhoncus eros et facilisis. Maecenas vehicula pretium turpis, in volutpat mauris imperdiet vel. Nulla facilisi. Sed at justo sem, at iaculis ligula. Phasellus ligula tortor, porttitor in imperdiet et, dignissim in metus. Etiam vitae lorem at felis porta auctor. Nullam semper pharetra gravida.', 16500, '2015-04-30 18:10:28', 'Creando', 2), (3, 'Combo sánwich especial', 'Almuerzo', 'sitpac-56009a3618986-foto1.jpg', '12:00:00', 'Calle 6 # 8 - 67', NULL, 9600, '2015-09-22 02:00:00', 'Creando', 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_alojamiento` -- CREATE TABLE IF NOT EXISTS `servicio_alojamiento` ( `idservicio_alojamiento` int(11) NOT NULL, `codigo_alojamiento` varchar(10) NOT NULL, `tipo_alojamiento` varchar(100) NOT NULL, `precio` double NOT NULL, `foto` varchar(255) DEFAULT NULL, `detalles` longtext, `fecha_creacion` datetime NOT NULL, `estado` varchar(100) NOT NULL, `producto_idproducto` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_alojamiento` -- INSERT INTO `servicio_alojamiento` (`idservicio_alojamiento`, `codigo_alojamiento`, `tipo_alojamiento`, `precio`, `foto`, `detalles`, `fecha_creacion`, `estado`, `producto_idproducto`) VALUES (1, '111', 'Suite Presidencial', 100000, 'suitepresidencial.jpg', 'En el primer piso podrás disfrutar de:\r\n\r\nLobby\r\nDos salas de diferente ambiente\r\nBar\r\nCocina completamente dotada\r\nBaño social\r\n1 Habitación sencilla con baño privado, minibar, Tv Led.\r\nLa mejor vista de la ciudad desde la terraza en donde ademas podrás realizar tus reuniones privadas con capacidad de hasta 30 personas.\r\n\r\nEn el segundo piso:\r\n\r\n2 Habitaciones con cama king size, Tv Led 40’, baño, jacuzzi, vestier, balcón exterior, wifi, cajilla de seguridad y minibar.\r\n1 Habitación sencilla con Tv Led y baño.', '2015-04-26 00:00:00', 'Creando', 1), (2, '222', 'Suite San Martín', 150000, 'suitesanmartin.jpg', 'Disfrutarás en el primer piso de:\r\n\r\nSala\r\nComedor\r\nCocina completamente dotada\r\nBaño\r\nVista del norte de la ciudad\r\nWifi\r\n\r\nEl segundo nivel cuenta con dos habitaciones, cada una de ellas con:\r\n\r\nCama King Size\r\nTv Led de 42?\r\nBaño con jacuzzi\r\nVestier\r\nEscritorio', '2015-04-26 00:00:00', 'Creando', 1), (3, '333', 'Máster Suite', 80000, 'mastersuite.jpg', 'En el primer nivel encontrará:\r\n\r\nSala-comedor\r\nCocina dotada\r\n\r\nEn el segundo nivel encontrará:\r\n\r\nCama King Size\r\nBaño con jacuzzi\r\nTv Led de 42?\r\nMinicomponente\r\nJacuzzi\r\nAmplio closet\r\nEscritorio', '2015-04-18 00:00:00', 'Creando', 1), (4, '444', 'Junior Suite', 60000, 'suitejunior.jpg', 'Cama King Size\r\nTv Led de 42?\r\nMini-bar\r\nRadio despertador\r\nClóset\r\nEscritorio\r\nWifi', '2015-04-14 00:00:00', 'Creando', 1), (5, '123', 'alojamiento prueba', 120000, 'sitpac-55465e0acc71c-foto1.jpg', 'asdasdasdasd', '2015-04-30 16:38:45', 'Creando', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_excursion` -- CREATE TABLE IF NOT EXISTS `servicio_excursion` ( `idexcursiones` int(11) NOT NULL, `nombre` varchar(255) NOT NULL, `tipo` varchar(100) NOT NULL, `foto` varchar(255) DEFAULT NULL, `detalles` longtext, `precio` double NOT NULL, `fecha_creacion` datetime NOT NULL, `estado` varchar(100) NOT NULL, `producto_idproducto` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_excursion` -- INSERT INTO `servicio_excursion` (`idexcursiones`, `nombre`, `tipo`, `foto`, `detalles`, `precio`, `fecha_creacion`, `estado`, `producto_idproducto`) VALUES (1, 'Zona de Vertigo', 'Aventura', 'sitpac-554267f346736-foto1.jpg', 'La emoción no se detiene en el canopy, continúa en los juegos de equilibrio sobre cinco desafiantes puentes colgantes para un recorrido de 155 metros, que te exigirán fuerza, destreza y resistencia para sobrepasarlos. Son los ideales para quienes les gusta asumir retos.', 15000, '2015-04-30 19:35:46', 'Creando', 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_paq_alim` -- CREATE TABLE IF NOT EXISTS `servicio_paq_alim` ( `idservicio_paq_alim` int(11) NOT NULL, `fotoservicio` varchar(255) DEFAULT NULL, `nombre` varchar(255) NOT NULL, `precioservicio` double NOT NULL, `idproducto` int(11) NOT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_fin` datetime NOT NULL, `descuento` int(11) NOT NULL, `fecha_creacion` datetime NOT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL, `servicio_alimentacion_idalimentacion` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_paq_alim` -- INSERT INTO `servicio_paq_alim` (`idservicio_paq_alim`, `fotoservicio`, `nombre`, `precioservicio`, `idproducto`, `duracion`, `fecha_inicio`, `fecha_fin`, `descuento`, `fecha_creacion`, `paquete_turistico_idpaquete_turistico`, `servicio_alimentacion_idalimentacion`) VALUES (1, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-06 00:00:00', 1, 1), (2, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '2015-09-01 00:00:00', '2015-09-02 00:00:00', 0, '2015-05-09 01:21:12', 13, 1), (3, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-09 19:15:50', 14, 1), (4, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-20 20:20:02', 15, 1), (5, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '2015-10-07 00:00:00', '2015-10-08 00:00:00', 0, '2015-05-25 01:12:28', 16, 1), (6, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 0, '2015-10-03 00:00:00', '2015-10-04 00:00:00', 0, '2015-10-05 04:13:10', 19, 1), (7, 'sitpac-554253f612a3b-foto1.jpg', 'Lengua a la criolla', 16500, 2, 1, '2015-12-01 00:00:00', '2015-12-01 00:00:00', 0, '2015-10-20 22:59:41', 18, 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_paq_alo` -- CREATE TABLE IF NOT EXISTS `servicio_paq_alo` ( `idservicio_paq_alo` int(11) NOT NULL, `fotoservicio` varchar(255) DEFAULT NULL, `tiposervicio` varchar(100) NOT NULL, `precioservicio` double NOT NULL, `idproducto` int(11) NOT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL, `servicio_habitacion_idservicio_habitacion` int(11) DEFAULT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_fin` datetime NOT NULL, `descuento` int(11) NOT NULL, `fecha_creacion` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_paq_alo` -- INSERT INTO `servicio_paq_alo` (`idservicio_paq_alo`, `fotoservicio`, `tiposervicio`, `precioservicio`, `idproducto`, `paquete_turistico_idpaquete_turistico`, `servicio_habitacion_idservicio_habitacion`, `duracion`, `fecha_inicio`, `fecha_fin`, `descuento`, `fecha_creacion`) VALUES (1, 'mastersuite.jpg', 'Máster Suite', 80000, 1, 1, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-04 00:00:00'), (2, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 13, 1, 0, '2015-09-01 00:00:00', '2015-09-04 00:00:00', 0, '2015-05-08 04:01:21'), (3, 'suitesanmartin.jpg', 'Suite San Martín', 150000, 1, 13, 2, 0, '2015-09-01 00:00:00', '2015-09-03 00:00:00', 0, '2015-05-08 04:13:30'), (4, 'mastersuite.jpg', 'Máster Suite', 80000, 1, 9, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-08 04:35:52'), (5, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 2, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 50, '2015-05-08 05:24:25'), (6, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 2, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 20, '2015-05-08 06:03:15'), (7, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 2, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 50, '2015-05-08 06:14:50'), (8, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 2, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 50, '2015-05-08 06:18:42'), (9, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 13, 1, 3, '2015-09-01 00:00:00', '2015-09-04 00:00:00', 0, '2015-05-08 19:52:00'), (10, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 14, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-09 19:12:35'), (11, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 15, 1, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-20 18:15:16'), (12, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-07 00:00:00', '2015-10-09 00:00:00', 50, '2015-05-25 00:38:41'), (13, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-09 00:00:00', '2015-10-11 00:00:00', 50, '2015-05-25 00:38:42'), (14, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-11 00:00:00', '2015-10-13 00:00:00', 50, '2015-05-25 00:45:15'), (15, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-07 00:00:00', '2015-10-09 00:00:00', 50, '2015-05-25 00:47:36'), (16, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-09 00:00:00', '2015-10-11 00:00:00', 50, '2015-05-25 00:54:05'), (17, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 16, 1, 0, '2015-10-12 00:00:00', '2015-10-14 00:00:00', 50, '2015-05-25 00:59:07'), (18, 'suitesanmartin.jpg', 'Suite San Martín', 150000, 1, 3, 2, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-09-15 18:04:21'), (19, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 19, 1, 0, '2015-10-03 00:00:00', '2015-10-04 00:00:00', 0, '2015-10-05 01:25:14'), (20, 'suitepresidencial.jpg', 'Suite Presidencial', 100000, 1, 18, 1, 5, '2015-10-03 00:00:00', '2015-10-08 00:00:00', 0, '2015-10-20 05:32:31'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_paq_excu` -- CREATE TABLE IF NOT EXISTS `servicio_paq_excu` ( `idservicio_paq_excu` int(11) NOT NULL, `fotoservicio` varchar(255) DEFAULT NULL, `nombre` varchar(255) NOT NULL, `precioservicio` double NOT NULL, `idproducto` int(11) NOT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_fin` datetime NOT NULL, `descuento` int(11) NOT NULL, `fecha_creacion` datetime NOT NULL, `servicio_excursion_idexcursiones` int(11) DEFAULT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_paq_excu` -- INSERT INTO `servicio_paq_excu` (`idservicio_paq_excu`, `fotoservicio`, `nombre`, `precioservicio`, `idproducto`, `duracion`, `fecha_inicio`, `fecha_fin`, `descuento`, `fecha_creacion`, `servicio_excursion_idexcursiones`, `paquete_turistico_idpaquete_turistico`) VALUES (1, 'sitpac-554267f346736-foto1.jpg', 'Zona de Vertigo', 15000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-06 00:00:00', 1, 1), (2, 'sitpac-554267f346736-foto1.jpg', 'Zona de Vertigo', 15000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-09 03:03:43', 1, 9), (3, 'sitpac-554267f346736-foto1.jpg', 'Zona de Vertigo', 15000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-09 19:16:47', 1, 14), (4, 'sitpac-554267f346736-foto1.jpg', 'Zona de Vertigo', 15000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-20 20:47:24', 1, 15), (5, 'sitpac-554267f346736-foto1.jpg', 'Zona de Vertigo', 15000, 3, 0, '2015-10-03 00:00:00', '2015-10-04 00:00:00', 0, '2015-10-05 04:46:58', 1, 19); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_paq_vehi` -- CREATE TABLE IF NOT EXISTS `servicio_paq_vehi` ( `idservicio_paq_vehi` int(11) NOT NULL, `fotoservicio` varchar(255) DEFAULT NULL, `tiposervicio` varchar(100) NOT NULL, `precioservicio` double NOT NULL, `idproducto` int(11) NOT NULL, `duracion` int(11) NOT NULL, `fecha_inicio` datetime NOT NULL, `fecha_fin` datetime NOT NULL, `descuento` int(11) NOT NULL, `fecha_creacion` datetime NOT NULL, `servicio_vehiculo_idservicio_vehiculo` int(11) DEFAULT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_paq_vehi` -- INSERT INTO `servicio_paq_vehi` (`idservicio_paq_vehi`, `fotoservicio`, `tiposervicio`, `precioservicio`, `idproducto`, `duracion`, `fecha_inicio`, `fecha_fin`, `descuento`, `fecha_creacion`, `servicio_vehiculo_idservicio_vehiculo`, `paquete_turistico_idpaquete_turistico`) VALUES (1, 'sitpac-55429a899bb34-foto1.jpg', 'Buseta', 3000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-06 00:00:00', 1, 1), (2, 'sitpac-55429a899bb34-foto1.jpg', 'Buseta', 3000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 50, '2015-05-09 04:23:46', 1, 2), (3, 'sitpac-55429a899bb34-foto1.jpg', 'Buseta', 3000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-09 19:18:06', 1, 14), (4, 'sitpac-55429a899bb34-foto1.jpg', 'Buseta', 3000, 3, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, '2015-05-20 21:22:43', 1, 15), (5, 'sitpac-55429a899bb34-foto1.jpg', 'Buseta', 3000, 3, 0, '2015-10-03 00:00:00', '2015-10-04 00:00:00', 0, '2015-10-05 06:07:36', 1, 19); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_paq_vuel` -- CREATE TABLE IF NOT EXISTS `servicio_paq_vuel` ( `idservicio_paq_vuel` int(11) NOT NULL, `fotoservicio` varchar(255) DEFAULT NULL, `compania` varchar(255) NOT NULL, `precioservicio` double NOT NULL, `idproducto` int(11) NOT NULL, `fecha_vuelo` datetime NOT NULL, `descuento` int(11) NOT NULL, `fecha_creacion` datetime NOT NULL, `servicio_vuelo_idservicio_vuelo` int(11) DEFAULT NULL, `paquete_turistico_idpaquete_turistico` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_paq_vuel` -- INSERT INTO `servicio_paq_vuel` (`idservicio_paq_vuel`, `fotoservicio`, `compania`, `precioservicio`, `idproducto`, `fecha_vuelo`, `descuento`, `fecha_creacion`, `servicio_vuelo_idservicio_vuelo`, `paquete_turistico_idpaquete_turistico`) VALUES (1, 'sitpac-5542f040110fe-foto1.jpg', 'Avianca', 200000, 4, '0000-00-00 00:00:00', 0, '2015-05-06 00:00:00', 1, 1), (2, 'sitpac-5542f040110fe-foto1.jpg', 'Avianca', 200000, 4, '0000-00-00 00:00:00', 50, '2015-05-09 06:31:31', 1, 2), (3, 'sitpac-5542f040110fe-foto1.jpg', 'Avianca', 200000, 4, '0000-00-00 00:00:00', 0, '2015-05-09 19:19:31', 1, 14), (4, 'sitpac-5542f040110fe-foto1.jpg', 'Avianca', 200000, 4, '0000-00-00 00:00:00', 0, '2015-05-20 21:39:04', 1, 15), (5, 'sitpac-5542f040110fe-foto1.jpg', 'Avianca', 200000, 4, '2015-10-03 00:00:00', 0, '2015-10-05 06:42:26', 1, 19); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_vehiculo` -- CREATE TABLE IF NOT EXISTS `servicio_vehiculo` ( `idservicio_vehiculo` int(11) NOT NULL, `tipo` varchar(100) NOT NULL, `chofer` varchar(255) NOT NULL, `foto` varchar(255) DEFAULT NULL, `modelo` varchar(20) NOT NULL, `placa` varchar(15) NOT NULL, `origen` varchar(255) NOT NULL, `destino` varchar(255) NOT NULL, `precio` double NOT NULL, `detalles` longtext, `fecha_creacion` datetime NOT NULL, `estado` varchar(100) NOT NULL, `producto_idproducto` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_vehiculo` -- INSERT INTO `servicio_vehiculo` (`idservicio_vehiculo`, `tipo`, `chofer`, `foto`, `modelo`, `placa`, `origen`, `destino`, `precio`, `detalles`, `fecha_creacion`, `estado`, `producto_idproducto`) VALUES (1, 'Buseta', 'pepito perez', 'sitpac-55429a899bb34-foto1.jpg', '1989', 'btx123', 'Popayan', 'Timbio', 3000, 'transportadora del terminal de Popayan', '2015-04-30 23:11:36', 'Creando', 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicio_vuelo` -- CREATE TABLE IF NOT EXISTS `servicio_vuelo` ( `idservicio_vuelo` int(11) NOT NULL, `compania` varchar(255) NOT NULL, `foto` varchar(255) DEFAULT NULL, `fecha` datetime NOT NULL, `origen` varchar(255) NOT NULL, `hora_salida` time NOT NULL, `destino` varchar(255) NOT NULL, `categoria` varchar(100) NOT NULL, `precio` double NOT NULL, `detalles` longtext, `fecha_creacion` datetime NOT NULL, `estado` varchar(100) NOT NULL, `producto_idproducto` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `servicio_vuelo` -- INSERT INTO `servicio_vuelo` (`idservicio_vuelo`, `compania`, `foto`, `fecha`, `origen`, `hora_salida`, `destino`, `categoria`, `precio`, `detalles`, `fecha_creacion`, `estado`, `producto_idproducto`) VALUES (1, 'Avianca', 'sitpac-5542f040110fe-foto1.jpg', '2015-04-10 00:00:00', 'Bogota', '10:00:00', 'Popayan', 'Estandar', 200000, 'Hay muchas variaciones de los pasajes de Lorem Ipsum disponibles, pero la mayoría sufrió alteraciones en alguna manera, ya sea porque se le agregó humor, o palabras aleatorias que no parecen ni un poco creíbles. Si vas a utilizar un pasaje de Lorem Ipsum, necesitás estar seguro de que no hay nada avergonzante escondido en el medio del texto. Todos los generadores de Lorem Ipsum que se encuentran en Internet tienden a repetir trozos predefinidos cuando sea necesario, haciendo a este el único generador verdadero (válido) en la Internet. Usa un diccionario de mas de 200 palabras provenientes del latín, combinadas con estructuras muy útiles de sentencias, para generar texto de Lorem Ipsum que parezca razonable. Este Lorem Ipsum generado siempre estará libre de repeticiones, humor agregado o palabras no características del lenguaje, etc.', '2015-05-01 05:17:18', 'Creando', 4); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `solicitudes` -- CREATE TABLE IF NOT EXISTS `solicitudes` ( `id_solicitud` int(11) NOT NULL, `descripcion` longtext NOT NULL, `respuesta` longtext, `estado` varchar(100) NOT NULL, `solicitante` int(11) NOT NULL, `id_elemento` int(11) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `solicitudes` -- INSERT INTO `solicitudes` (`id_solicitud`, `descripcion`, `respuesta`, `estado`, `solicitante`, `id_elemento`) VALUES (1, 'prueba de solicitud 1 de retiro de un proveedor', NULL, 'Solicitud retiro proveedor', 1, 1), (2, 'prueba 1 Actualización producto', NULL, 'Solicitud actualizacion producto', 1, 2), (3, 'prueba 1 de solicitud de retiro de producto', NULL, 'Solicitud retiro producto', 1, 1), (4, 'prueba 1 actualizacion alojamiento', NULL, 'Solicitud actualizacion alojamiento', 6, 5), (5, 'prueba 1 solicitud retiro alojamiento', NULL, 'Solicitud retiro alojamiento', 6, 1); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `cliente` -- ALTER TABLE `cliente` ADD PRIMARY KEY (`idcliente`), ADD UNIQUE KEY `UNIQ_3BA1A2B9E7927C74` (`email`); -- -- Indices de la tabla `comentarios` -- ALTER TABLE `comentarios` ADD PRIMARY KEY (`idcomentarios`), ADD KEY `fk_comentarios_cliente1_idx` (`cliente_idcliente`), ADD KEY `fk_comentarios_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`); -- -- Indices de la tabla `disponibilidad_alim` -- ALTER TABLE `disponibilidad_alim` ADD PRIMARY KEY (`id_disp_alim`), ADD KEY `fk_disponibilidad_alim_idx` (`id_serv_alim`); -- -- Indices de la tabla `disponibilidad_alo` -- ALTER TABLE `disponibilidad_alo` ADD PRIMARY KEY (`id_disp_alo`), ADD KEY `fk_disponibilidad_alo_idx` (`id_serv_alo`); -- -- Indices de la tabla `disponibilidad_excu` -- ALTER TABLE `disponibilidad_excu` ADD PRIMARY KEY (`id_disp_excu`), ADD KEY `fk_disponibilidad_excu_idx` (`id_serv_excu`); -- -- Indices de la tabla `disponibilidad_vehi` -- ALTER TABLE `disponibilidad_vehi` ADD PRIMARY KEY (`id_disp_vehi`), ADD KEY `fk_disponibilidad_vehi_idx` (`id_serv_vehi`); -- -- Indices de la tabla `disponibilidad_vuel` -- ALTER TABLE `disponibilidad_vuel` ADD PRIMARY KEY (`id_disp_vuel`), ADD KEY `fk_disponibilidad_vuel_idx` (`id_serv_vuel`); -- -- Indices de la tabla `factura` -- ALTER TABLE `factura` ADD PRIMARY KEY (`idfactura`), ADD KEY `fk_factura_reserva1_idx` (`reserva_idreserva`); -- -- Indices de la tabla `intinerario_reserva` -- ALTER TABLE `intinerario_reserva` ADD PRIMARY KEY (`id_intinerario`), ADD KEY `fk_intinerario_servicio_reserva1_idx` (`id_reserva`); -- -- Indices de la tabla `municipio` -- ALTER TABLE `municipio` ADD PRIMARY KEY (`idmunicipio`); -- -- Indices de la tabla `operador` -- ALTER TABLE `operador` ADD PRIMARY KEY (`idoperador`); -- -- Indices de la tabla `paquete_turistico` -- ALTER TABLE `paquete_turistico` ADD PRIMARY KEY (`idpaquete_turistico`), ADD KEY `fk_paquete_turistico_municipio1_idx` (`municipio_idmunicipio`); -- -- Indices de la tabla `pqr` -- ALTER TABLE `pqr` ADD PRIMARY KEY (`idpqr`), ADD KEY `fk_pqr_cliente1_idx` (`cliente_idcliente`), ADD KEY `fk_pqr_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`); -- -- Indices de la tabla `producto` -- ALTER TABLE `producto` ADD PRIMARY KEY (`idproducto`), ADD KEY `fk_producto_Proveedor1_idx` (`proveedor_idproveedor`); -- -- Indices de la tabla `proveedor` -- ALTER TABLE `proveedor` ADD PRIMARY KEY (`idproveedor`), ADD UNIQUE KEY `UNIQ_9431EA6DE7927C74` (`email`); -- -- Indices de la tabla `reserva` -- ALTER TABLE `reserva` ADD PRIMARY KEY (`idreserva`), ADD KEY `fk_reserva_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_reserva_cliente1_idx` (`cliente_idcliente`); -- -- Indices de la tabla `servicio_alimentacion` -- ALTER TABLE `servicio_alimentacion` ADD PRIMARY KEY (`idalimentacion`), ADD KEY `fk_servicio_alimentacion_producto1_idx` (`producto_idproducto`); -- -- Indices de la tabla `servicio_alojamiento` -- ALTER TABLE `servicio_alojamiento` ADD PRIMARY KEY (`idservicio_alojamiento`), ADD KEY `fk_servicio_habitacion_producto1_idx` (`producto_idproducto`); -- -- Indices de la tabla `servicio_excursion` -- ALTER TABLE `servicio_excursion` ADD PRIMARY KEY (`idexcursiones`), ADD KEY `fk_excursion_producto1_idx` (`producto_idproducto`); -- -- Indices de la tabla `servicio_paq_alim` -- ALTER TABLE `servicio_paq_alim` ADD PRIMARY KEY (`idservicio_paq_alim`), ADD KEY `fk_servicio_paq_alim_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_servicio_paq_alim_servicio_alimentacion1_idx` (`servicio_alimentacion_idalimentacion`); -- -- Indices de la tabla `servicio_paq_alo` -- ALTER TABLE `servicio_paq_alo` ADD PRIMARY KEY (`idservicio_paq_alo`), ADD KEY `fk_servicio_paq_aloj_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_servicio_paq_hab_servicio_habitacion1_idx` (`servicio_habitacion_idservicio_habitacion`); -- -- Indices de la tabla `servicio_paq_excu` -- ALTER TABLE `servicio_paq_excu` ADD PRIMARY KEY (`idservicio_paq_excu`), ADD KEY `fk_servicio_paq_excu_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_servicio_paq_excu_servicio_excursion1_idx` (`servicio_excursion_idexcursiones`); -- -- Indices de la tabla `servicio_paq_vehi` -- ALTER TABLE `servicio_paq_vehi` ADD PRIMARY KEY (`idservicio_paq_vehi`), ADD KEY `fk_servicio_paq_vehi_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_servicio_paq_vehi_servicio_vehiculo1_idx` (`servicio_vehiculo_idservicio_vehiculo`); -- -- Indices de la tabla `servicio_paq_vuel` -- ALTER TABLE `servicio_paq_vuel` ADD PRIMARY KEY (`idservicio_paq_vuel`), ADD KEY `fk_servicio_paq_vuel_paquete_turistico1_idx` (`paquete_turistico_idpaquete_turistico`), ADD KEY `fk_servicio_paq_vuel_servicio_vuelo1_idx` (`servicio_vuelo_idservicio_vuelo`); -- -- Indices de la tabla `servicio_vehiculo` -- ALTER TABLE `servicio_vehiculo` ADD PRIMARY KEY (`idservicio_vehiculo`), ADD KEY `fk_servicio_vehiculo_producto1_idx` (`producto_idproducto`); -- -- Indices de la tabla `servicio_vuelo` -- ALTER TABLE `servicio_vuelo` ADD PRIMARY KEY (`idservicio_vuelo`), ADD KEY `fk_servicio_vuelo_producto1_idx` (`producto_idproducto`); -- -- Indices de la tabla `solicitudes` -- ALTER TABLE `solicitudes` ADD PRIMARY KEY (`id_solicitud`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `cliente` -- ALTER TABLE `cliente` MODIFY `idcliente` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de la tabla `comentarios` -- ALTER TABLE `comentarios` MODIFY `idcomentarios` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `disponibilidad_alim` -- ALTER TABLE `disponibilidad_alim` MODIFY `id_disp_alim` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `disponibilidad_alo` -- ALTER TABLE `disponibilidad_alo` MODIFY `id_disp_alo` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `disponibilidad_excu` -- ALTER TABLE `disponibilidad_excu` MODIFY `id_disp_excu` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `disponibilidad_vehi` -- ALTER TABLE `disponibilidad_vehi` MODIFY `id_disp_vehi` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `disponibilidad_vuel` -- ALTER TABLE `disponibilidad_vuel` MODIFY `id_disp_vuel` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `factura` -- ALTER TABLE `factura` MODIFY `idfactura` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `intinerario_reserva` -- ALTER TABLE `intinerario_reserva` MODIFY `id_intinerario` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10; -- -- AUTO_INCREMENT de la tabla `municipio` -- ALTER TABLE `municipio` MODIFY `idmunicipio` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `operador` -- ALTER TABLE `operador` MODIFY `idoperador` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `paquete_turistico` -- ALTER TABLE `paquete_turistico` MODIFY `idpaquete_turistico` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20; -- -- AUTO_INCREMENT de la tabla `pqr` -- ALTER TABLE `pqr` MODIFY `idpqr` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `producto` -- ALTER TABLE `producto` MODIFY `idproducto` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `proveedor` -- ALTER TABLE `proveedor` MODIFY `idproveedor` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10; -- -- AUTO_INCREMENT de la tabla `reserva` -- ALTER TABLE `reserva` MODIFY `idreserva` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `servicio_alimentacion` -- ALTER TABLE `servicio_alimentacion` MODIFY `idalimentacion` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `servicio_alojamiento` -- ALTER TABLE `servicio_alojamiento` MODIFY `idservicio_alojamiento` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `servicio_excursion` -- ALTER TABLE `servicio_excursion` MODIFY `idexcursiones` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `servicio_paq_alim` -- ALTER TABLE `servicio_paq_alim` MODIFY `idservicio_paq_alim` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8; -- -- AUTO_INCREMENT de la tabla `servicio_paq_alo` -- ALTER TABLE `servicio_paq_alo` MODIFY `idservicio_paq_alo` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=21; -- -- AUTO_INCREMENT de la tabla `servicio_paq_excu` -- ALTER TABLE `servicio_paq_excu` MODIFY `idservicio_paq_excu` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `servicio_paq_vehi` -- ALTER TABLE `servicio_paq_vehi` MODIFY `idservicio_paq_vehi` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `servicio_paq_vuel` -- ALTER TABLE `servicio_paq_vuel` MODIFY `idservicio_paq_vuel` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de la tabla `servicio_vehiculo` -- ALTER TABLE `servicio_vehiculo` MODIFY `idservicio_vehiculo` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `servicio_vuelo` -- ALTER TABLE `servicio_vuelo` MODIFY `idservicio_vuelo` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `solicitudes` -- ALTER TABLE `solicitudes` MODIFY `id_solicitud` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `comentarios` -- ALTER TABLE `comentarios` ADD CONSTRAINT `fk_comentarios_cliente1` FOREIGN KEY (`cliente_idcliente`) REFERENCES `cliente` (`idcliente`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_comentarios_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `disponibilidad_alim` -- ALTER TABLE `disponibilidad_alim` ADD CONSTRAINT `disponibilidad_alim_ibfk_1` FOREIGN KEY (`id_serv_alim`) REFERENCES `servicio_alimentacion` (`idalimentacion`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `disponibilidad_alo` -- ALTER TABLE `disponibilidad_alo` ADD CONSTRAINT `disponibilidad_alo_ibfk_1` FOREIGN KEY (`id_serv_alo`) REFERENCES `servicio_alojamiento` (`idservicio_alojamiento`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `disponibilidad_excu` -- ALTER TABLE `disponibilidad_excu` ADD CONSTRAINT `disponibilidad_excu_ibfk_1` FOREIGN KEY (`id_serv_excu`) REFERENCES `servicio_excursion` (`idexcursiones`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `disponibilidad_vehi` -- ALTER TABLE `disponibilidad_vehi` ADD CONSTRAINT `disponibilidad_vehi_ibfk_1` FOREIGN KEY (`id_serv_vehi`) REFERENCES `servicio_vehiculo` (`idservicio_vehiculo`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `disponibilidad_vuel` -- ALTER TABLE `disponibilidad_vuel` ADD CONSTRAINT `disponibilidad_vuel_ibfk_1` FOREIGN KEY (`id_serv_vuel`) REFERENCES `servicio_vuelo` (`idservicio_vuelo`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `factura` -- ALTER TABLE `factura` ADD CONSTRAINT `fk_factura_reserva1` FOREIGN KEY (`reserva_idreserva`) REFERENCES `reserva` (`idreserva`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `intinerario_reserva` -- ALTER TABLE `intinerario_reserva` ADD CONSTRAINT `intinerario_reserva_ibfk_1` FOREIGN KEY (`id_reserva`) REFERENCES `reserva` (`idreserva`); -- -- Filtros para la tabla `paquete_turistico` -- ALTER TABLE `paquete_turistico` ADD CONSTRAINT `fk_paquete_turistico_municipio1` FOREIGN KEY (`municipio_idmunicipio`) REFERENCES `municipio` (`idmunicipio`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `pqr` -- ALTER TABLE `pqr` ADD CONSTRAINT `fk_pqr_cliente1` FOREIGN KEY (`cliente_idcliente`) REFERENCES `cliente` (`idcliente`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_pqr_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `producto` -- ALTER TABLE `producto` ADD CONSTRAINT `fk_producto_Proveedor1` FOREIGN KEY (`proveedor_idproveedor`) REFERENCES `proveedor` (`idproveedor`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `reserva` -- ALTER TABLE `reserva` ADD CONSTRAINT `fk_reserva_cliente1` FOREIGN KEY (`cliente_idcliente`) REFERENCES `cliente` (`idcliente`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_reserva_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_alimentacion` -- ALTER TABLE `servicio_alimentacion` ADD CONSTRAINT `fk_servicio_alimentacion_producto1` FOREIGN KEY (`producto_idproducto`) REFERENCES `producto` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_alojamiento` -- ALTER TABLE `servicio_alojamiento` ADD CONSTRAINT `fk_servicio_habitacion_producto1` FOREIGN KEY (`producto_idproducto`) REFERENCES `producto` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_excursion` -- ALTER TABLE `servicio_excursion` ADD CONSTRAINT `fk_excursion_producto1` FOREIGN KEY (`producto_idproducto`) REFERENCES `producto` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_paq_alim` -- ALTER TABLE `servicio_paq_alim` ADD CONSTRAINT `fk_servicio_paq_alim_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_servicio_paq_alim_servicio_alimentacion1` FOREIGN KEY (`servicio_alimentacion_idalimentacion`) REFERENCES `servicio_alimentacion` (`idalimentacion`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_paq_alo` -- ALTER TABLE `servicio_paq_alo` ADD CONSTRAINT `fk_servicio_paq_alo_servicio_alojamiento1` FOREIGN KEY (`servicio_habitacion_idservicio_habitacion`) REFERENCES `servicio_alojamiento` (`idservicio_alojamiento`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_servicio_paq_aloj_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_paq_excu` -- ALTER TABLE `servicio_paq_excu` ADD CONSTRAINT `fk_servicio_paq_excu_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_servicio_paq_excu_servicio_excursion1` FOREIGN KEY (`servicio_excursion_idexcursiones`) REFERENCES `servicio_excursion` (`idexcursiones`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_paq_vehi` -- ALTER TABLE `servicio_paq_vehi` ADD CONSTRAINT `fk_servicio_paq_vehi_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_servicio_paq_vehi_servicio_vehiculo1` FOREIGN KEY (`servicio_vehiculo_idservicio_vehiculo`) REFERENCES `servicio_vehiculo` (`idservicio_vehiculo`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_paq_vuel` -- ALTER TABLE `servicio_paq_vuel` ADD CONSTRAINT `fk_servicio_paq_vuel_paquete_turistico1` FOREIGN KEY (`paquete_turistico_idpaquete_turistico`) REFERENCES `paquete_turistico` (`idpaquete_turistico`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_servicio_paq_vuel_servicio_vuelo1` FOREIGN KEY (`servicio_vuelo_idservicio_vuelo`) REFERENCES `servicio_vuelo` (`idservicio_vuelo`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_vehiculo` -- ALTER TABLE `servicio_vehiculo` ADD CONSTRAINT `fk_servicio_vehiculo_producto1` FOREIGN KEY (`producto_idproducto`) REFERENCES `producto` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Filtros para la tabla `servicio_vuelo` -- ALTER TABLE `servicio_vuelo` ADD CONSTRAINT `fk_servicio_vuelo_producto1` FOREIGN KEY (`producto_idproducto`) REFERENCES `producto` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION; /*!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 */;
INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'guestG', 'false', 'true') INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'admins', 'false', 'false') INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'registered_users', 'true', 'false')
<filename>static/sql/who_is_discussing_each_language_the_most.sql SELECT hashtag, HashTagCount, screen_name FROM ( SELECT hashtag, screen_name, HashTagCount, rank() OVER (PARTITION BY hashtag ORDER BY HashTagCount DESC, screen_name) AS pos FROM ( SELECT hashtag, screen_name, COUNT(hashtag) as HashTagCount FROM ( SELECT screen_name, unnest(hashtags) as hashtag FROM massive ) as unwrap WHERE hashtag = 'Java' OR hashtag = 'Python' OR hashtag = 'JavaScript' OR hashtag = 'CPlusPlus' OR hashtag = 'Java' GROUP BY screen_name, hashtag ORDER BY hashtag, HashTagCount DESC ) as countedhashtags ) as ss WHERE pos < 4 ORDER BY hashtag, HashTagCount DESC
CREATE DATABASE dynamic_form_algorithm2; CREATE TABLE basicInfo ( id int not null AUTO_INCREMENT PRIMARY KEY, birthName char(255) not null, familyName char(255) not null, email char(255) not null, phone char(255) not null ); CREATE TABLE homeAddress ( id int not null, addressNum char(255) not null, street char(255) not null, city char(255) not null, prov char(255) not null, country char(255) not null, postCode char(255) not null ); CREATE TABLE personalInfo ( id int not null, birthDate char(255) not null, race char(255) not null, ethnic char(255) not null, dlNum char(255) not null );
-- DOWN DROP PROCEDURE IF EXISTS link_insert; -- UP DELIMITER // CREATE OR REPLACE PROCEDURE link_insert ( IN TYPE_ID INT, IN OWNER_TYPE_ID INT, IN OWNER_ID INT, IN A_TYPE_ID INT, IN A_ID INT, IN B_TYPE_ID INT, IN B_ID INT, OUT LINK_ID INT ) BEGIN INSERT INTO link ( type_id, owner_type_id, owner_id, a_type_id, a_id, b_type_id, b_id ) VALUES ( TYPE_ID, OWNER_TYPE_ID, OWNER_ID, A_TYPE_ID, A_ID , B_TYPE_ID, B_ID ); SELECT LAST_INSERT_ID() as id INTO LINK_ID; END // DELIMITER ;
ALTER TABLE dbo.SystemUser ADD CONSTRAINT PK_C_SystemUser_SystemUserId PRIMARY KEY (SystemUserId) GO
<reponame>meerkat-code/meerkat_country_server CREATE DATABASE odk_db; CREATE ROLE odk_user WITH PASSWORD 'password'; ALTER ROLE odk_user WITH login; GRANT ALL PRIVILEGES ON DATABASE odk_db TO odk_user; ALTER DATABASE odk_db owner TO odk_user; \c odk_db; CREATE SCHEMA odk_db; GRANT ALL PRIVILEGES ON schema odk_db TO odk_user;
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-05-2021 a las 04:29:10 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `dymstudio` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `clientes` -- CREATE TABLE `clientes` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `image` text NOT NULL, `cliente_url` text DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `clientes` -- INSERT INTO `clientes` (`id`, `name`, `image`, `cliente_url`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'boss shipping', 'images/clients/bossshipping.png', '', '2021-02-21 10:56:41', '2021-02-21 10:56:41', NULL), (2, 'covers', 'images/clients/covers.png', NULL, '2021-02-21 10:56:41', '2021-02-21 10:56:41', NULL), (3, 'el nylon', 'images/clients/elnylon.png', NULL, '2021-02-21 10:56:41', '2021-02-21 10:56:41', NULL), (4, 'luminare', 'images/clients/luminare.png', NULL, '2021-02-21 10:56:41', '2021-02-21 10:56:41', NULL), (5, 'nielsenpharma', 'images/clients/nielsenpharma.png', NULL, '2021-02-21 11:02:03', '2021-02-21 11:02:04', NULL), (6, 'volta', 'images/clients/volta.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (7, 'servirepuestos', 'images/clients/1613952906_450e67fdfbd22c8703ba.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (8, 'ewannas', 'images/clients/ewannas.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (9, 'intermovil', 'images/clients/intermovil.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (10, 'corpherc', 'images/clients/corpherc.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (11, 'ish', 'images/clients/ish.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (12, 'icad', 'images/clients/icad.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (13, 'rb', 'images/clients/rb.png', NULL, '2021-02-21 11:02:04', '2021-02-21 11:02:04', NULL), (14, 'Prueba', 'images/clients/1613956284_81392ce005dbe956bf25.png', '', NULL, NULL, '2021-02-21 19:20:59'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts` -- CREATE TABLE `contacts` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(100) NOT NULL, `email` varchar(255) NOT NULL, `subject` varchar(255) NOT NULL, `message` text NOT NULL, `readed` varchar(1) NOT NULL, `created_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `contacts` -- INSERT INTO `contacts` (`id`, `name`, `email`, `subject`, `message`, `readed`, `created_at`, `deleted_at`) VALUES (1, '<NAME>', '<EMAIL>', 'Correo de ejemplo', 'sgfdgfdbsdfb gdnbeg hnsgdnbgdsz e gsdfgsdg sdfsd d sgdfgg fdg sdgsfgf g d gfdgds bb bd fghshgsdfgb fd bvs bvbs gbsnb sgn sn sgbsnsgnsg ', 'F', '2021-03-07 20:25:41', NULL), (2, 'Pruba', '<EMAIL>', 'Otro correo de prueba', ' fgdb sb nbf fnnv b nsn bvcsdn gnfnfb nsdgb dsvng nwgndv bfg nfbnfbnfbnfsg nfg n', 'F', '2021-03-09 09:16:02', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `images` -- CREATE TABLE `images` ( `id` bigint(20) UNSIGNED NOT NULL, `url` varchar(255) NOT NULL, `post_id` bigint(20) UNSIGNED NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `mantenimientos` -- CREATE TABLE `mantenimientos` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `image` text DEFAULT NULL, `text` text DEFAULT NULL, `created_at` datetime DEFAULT NULL, `update_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `mantenimientos` -- INSERT INTO `mantenimientos` (`id`, `name`, `image`, `text`, `created_at`, `update_at`, `deleted_at`) VALUES (1, 'Background_image', 'images/1613845461_5dc902d11417e44b6c75.jpg', '', NULL, NULL, NULL), (2, 'Welcome', NULL, 'Salvadoreños. Pioneros en firma electrónica en Guatemala', NULL, NULL, NULL), (3, 'Logo', 'images/logo_transparent V2.png', NULL, NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `posts` -- CREATE TABLE `posts` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `extract` text DEFAULT NULL, `body` longtext DEFAULT NULL, `status` enum('1','2') NOT NULL, `user_id` bigint(20) NOT NULL, `catregory_id` bigint(20) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `posts_tags` -- CREATE TABLE `posts_tags` ( `id` bigint(20) NOT NULL, `post_id` bigint(20) NOT NULL, `tag_id` bigint(20) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles` -- CREATE TABLE `roles` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `roles` -- INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Admin', '2021-02-13 18:52:51', '2021-02-13 18:52:51', '0000-00-00 00:00:00'), (3, 'Bloger', '2021-02-13 20:53:24', '2021-02-13 20:53:24', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tags` -- CREATE TABLE `tags` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `trabajos` -- CREATE TABLE `trabajos` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `image` text NOT NULL, `image600` text NOT NULL, `image1200` text NOT NULL, `url` varchar(255) NOT NULL, `categoria` varchar(100) NOT NULL, `descripcion` text NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `trabajos` -- INSERT INTO `trabajos` (`id`, `name`, `image`, `image600`, `image1200`, `url`, `categoria`, `descripcion`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Ewannas', 'images/portfolio/gallery/ewannas.png', 'images/portfolio/600_ewannas.jpg', 'images/portfolio/1200_ewannas.jpg', 'https://www.ewannas.com/', 'Desarrollo Web', 'Vero molestiae sed aut natus excepturi. Et tempora numquam. Temporibus iusto quo.Unde dolorem corrupti neque nisi.', '2021-02-21 21:05:05', '2021-02-21 21:05:05', NULL), (2, 'Corporación Hércules', 'images/portfolio/gallery/corporacion-hercules.png', 'images/portfolio/600_corporacion-hercules.jpg', 'images/portfolio/1200_corporacion-hercules.jpg', 'https://www.corporacionhercules.net', 'Desarrollo Web', 'Página desarrollada', '2021-02-21 21:05:05', '2021-02-21 21:05:05', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `firstname` varchar(100) NOT NULL, `lastname` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(255) NOT NULL, `image` text DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp(), `deleted_at` datetime NOT NULL, `role_id` int(11) NOT NULL, `last_login` date NOT NULL, `deleted` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `firstname`, `lastname`, `email`, `password`, `image`, `created_at`, `updated_at`, `deleted_at`, `role_id`, `last_login`, `deleted`) VALUES (1, 'Walter', 'Soriano', '<EMAIL>', '<KEY>', 'images/avatars/1613845835_0555aecfd4dd550d62cb.jpg', '2021-02-22 21:00:13', '2021-02-22 21:00:13', '0000-00-00 00:00:00', 1, '0000-00-00', 0), (2, 'Yimy', 'Hércules', '<EMAIL>', '7bHd+k0vXhM0z0yZ9hEpNXQSVAn47PMRCDFwXBIQAyRSp4md1vnEGK9EHJANKqxgp9m/jFfRzEjOQYg+3+zBFoTCW9bOtgYhZtYmjPMHlNxhMW9d+Q9VCg==', 'images/avatars/1614219331_cf8efa5218fc895bee20.png', '2021-02-24 19:15:31', '2021-02-24 19:15:31', '0000-00-00 00:00:00', 1, '0000-00-00', 0), (3, 'Usuario', 'Prueba', '<EMAIL>', '9TFgT1z+joN2SaKJKqBVQavEw+zQSq8m0L0aRmugNnpzw8WDxbVDmpWDrWqbnIJci9OtfbvhLSJpK81D/DIPScO8W1NwrDWYkixqYEA1UFUDANk=', NULL, '2021-03-01 08:28:09', '2021-03-01 08:28:09', '0000-00-00 00:00:00', 3, '0000-00-00', 0); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `clientes` -- ALTER TABLE `clientes` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `contacts` -- ALTER TABLE `contacts` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `images` -- ALTER TABLE `images` ADD PRIMARY KEY (`id`), ADD KEY `images_posts_id_foreign` (`post_id`); -- -- Indices de la tabla `mantenimientos` -- ALTER TABLE `mantenimientos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`), ADD KEY `posts_category_id_foreign` (`catregory_id`), ADD KEY `posts_user_id_foreign` (`user_id`); -- -- Indices de la tabla `posts_tags` -- ALTER TABLE `posts_tags` ADD PRIMARY KEY (`id`), ADD KEY `post_tag_post_id_foreign` (`post_id`), ADD KEY `post_tag_tag_id_foreign` (`tag_id`); -- -- Indices de la tabla `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`); -- -- Indices de la tabla `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `trabajos` -- ALTER TABLE `trabajos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `email` (`email`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `clientes` -- ALTER TABLE `clientes` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT de la tabla `contacts` -- ALTER TABLE `contacts` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `images` -- ALTER TABLE `images` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `mantenimientos` -- ALTER TABLE `mantenimientos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `posts` -- ALTER TABLE `posts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `posts_tags` -- ALTER TABLE `posts_tags` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `roles` -- ALTER TABLE `roles` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `tags` -- ALTER TABLE `tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `trabajos` -- ALTER TABLE `trabajos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; -- -- Estructura de tabla para la tabla `categories` -- CREATE TABLE `categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `categories` -- INSERT INTO `categories` (`id`, `name`, `slug`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Categoría de prueba Editada', 'categoria-de-prueba-editada', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2021-07-17 20:05:20'), (2, 'Categoría de prueba', 'categoria-de-prueba', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (3, 'sdasdfsgs', 'sdasdfsgs', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (4, 'Nueva Categoría', 'nueva-categoria', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `posts` -- CREATE TABLE `posts` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `extract` text DEFAULT NULL, `body` longtext DEFAULT NULL, `tipo` enum('imagen','video') NOT NULL, `miniatura` char(255) DEFAULT NULL, `status` enum('0','1') NOT NULL, `user_id` bigint(20) NOT NULL, `category_id` bigint(20) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `posts` -- INSERT INTO `posts` (`id`, `name`, `slug`, `extract`, `body`, `tipo`, `miniatura`, `status`, `user_id`, `category_id`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Post de prueba', 'post-de-prueba', 'Este es un extracto más normal con texto.', '<figure class=\"table\"><table><tbody><tr><td><p>function pagination($sql_total_row, $post_per_page,$current_page=1, $url=\'\', $lasturl = \'\', $parameter =\'paging\') {    $number_page = ceil($sql_total_row / $post_per_page);if($number_page<=1) return false;    $uls =\'</p><ul><li>\'.$n.\'</li><li>\' : \'</li><li><a href=\"\'.$link.\'\">\'.$n.\'</a></li><li>...</li><li>\'.$urls;        }    }    for ($i = $current_page+1; $i < $number_page; $i++){        if($i<$l or $i > $number_page - $distanc)            $urls .= $li($i,$url.$i.$lasturl,$current_page);        else{            $i = $number_page - $distanc;            $urls.= \'</li><li>...</li><li>\';        }    }    return $uls.$urls.\'</li></ul><p>\'; }</p></td></tr></tbody></table></figure>', 'imagen', 'images/blog/1628292636_b88d965618188d0b1199.jpg', '1', 1, 4, '0000-00-00 00:00:00', '2021-08-06 19:22:41', '0000-00-00 00:00:00'), (2, 'webOS', 'webos', 'You say that you fixed the problem by moving the variables to the constructor and assigning them to the class, which is a good strategy, but does not solve your initial problem.', '<p>You say that you fixed the problem by moving the variables to the constructor and assigning them to the class, which is a good strategy, but does not solve your initial problem. The reason your var_dump was showing NULL, was because you weren\'t returning anything in your function, instead you were only using echo, which prints directly to the page. The reason that your problem was solved is because you changed all the echo calls to a return :) – <a href=\"https://stackoverflow.com/users/4519644/thijs-riezebeek\"><NAME></a> <a href=\"https://stackoverflow.com/questions/18868143/php-return-an-pagination-object-and-displaying-the-links-when-called#comment56221050_18890138\">Dec 12 \'15 at 11:40</a></p>', 'imagen', 'images/blog/1628291036_c5186d4438f025d3cf73.png', '1', 1, 2, '0000-00-00 00:00:00', '2021-08-06 19:27:32', '0000-00-00 00:00:00'), (3, 'Prueba 2', 'prueba-2', 'extracto del post', '<p>contenido del post</p>', 'video', 'https://www.youtube.com/embed/9Jht-yljeaE', '1', 1, 3, '2021-07-18 12:27:10', '2021-08-06 19:30:05', '0000-00-00 00:00:00'), (4, 'prueba 3', 'prueba-3', '<p>sdsd</p>', '<p>sdsd</p>', '', NULL, '0', 1, 3, '2021-07-18 12:33:19', '2021-07-18 12:42:58', '2021-07-18 13:42:58'), (5, '08-0106-0920', '08-0106-0920', '<figure class=\"table\"><table><tbody><tr><td>asas</td><td>asas</td><td>heee</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure>', '<p><i>zcxxcxc</i></p>', '', NULL, '0', 1, 4, '2021-07-18 16:58:08', '2021-07-18 16:58:08', '0000-00-00 00:00:00'), (6, '01-0813-0444 222', '01-0813-0444-222', '<p>fgfgfg</p>', '<p>fgfgfgdfg</p>', 'imagen', '', '0', 1, 2, '2021-07-18 16:59:52', '2021-07-18 16:59:52', '0000-00-00 00:00:00'), (7, '02-0528-0029', '02-0528-0029', '', '', 'video', 'https://hackstore.net/descargar-beastars-temporada-2-latino/', '0', 1, 2, '2021-07-18 17:14:07', '2021-07-18 17:14:07', '0000-00-00 00:00:00'), (8, 'Prueba 4', 'prueba-4', 'Weeee ahhhhhhhhhhh', '<p><strong>Weeee </strong>ahhhhhhhhhhh</p>', 'imagen', 'images/blog/1626875562_901653372aabb6b47f9d.jpg', '1', 1, 2, '2021-07-21 07:52:42', '2021-08-06 19:33:54', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `posts_tags` -- CREATE TABLE `posts_tags` ( `id` bigint(20) NOT NULL, `post_id` bigint(20) NOT NULL, `tag_id` bigint(20) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `posts_tags` -- INSERT INTO `posts_tags` (`id`, `post_id`, `tag_id`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 2, 3, '2021-07-18 08:51:08', '2021-08-06 19:27:32', '2021-08-06 19:27:32'), (2, 3, 4, '2021-07-18 12:27:10', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (3, 4, 3, '2021-07-18 12:33:19', '2021-07-18 12:33:19', '0000-00-00 00:00:00'), (4, 5, 2, '2021-07-18 16:58:08', '2021-07-18 16:58:08', '0000-00-00 00:00:00'), (5, 5, 3, '2021-07-18 16:58:08', '2021-07-18 16:58:08', '0000-00-00 00:00:00'), (6, 5, 4, '2021-07-18 16:58:08', '2021-07-18 16:58:08', '0000-00-00 00:00:00'), (7, 6, 2, '2021-07-18 16:59:52', '2021-07-18 16:59:52', '2021-07-18 23:19:45'), (8, 6, 3, '2021-07-18 16:59:52', '2021-07-18 16:59:52', '2021-07-18 23:19:45'), (9, 7, 3, '2021-07-18 17:14:07', '2021-07-18 17:14:07', '0000-00-00 00:00:00'), (10, 6, 2, '2021-07-18 22:19:45', '2021-07-18 22:19:45', '0000-00-00 00:00:00'), (11, 6, 4, '2021-07-18 22:19:45', '2021-07-18 22:19:45', '0000-00-00 00:00:00'), (12, 8, 3, '2021-07-21 07:52:42', '2021-08-06 19:33:54', '2021-08-06 19:33:54'), (13, 2, 3, '2021-07-31 19:04:36', '2021-08-06 19:27:32', '2021-08-06 19:27:32'), (14, 2, 4, '2021-07-31 19:04:36', '2021-08-06 19:27:32', '2021-08-06 19:27:32'), (15, 8, 3, '2021-08-01 18:10:34', '2021-08-06 19:33:54', '2021-08-06 19:33:54'), (16, 3, 4, '2021-08-01 18:18:25', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (17, 3, 5, '2021-08-01 18:18:25', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (18, 3, 7, '2021-08-01 18:18:25', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (19, 3, 4, '2021-08-01 18:20:49', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (20, 3, 5, '2021-08-01 18:20:49', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (21, 3, 7, '2021-08-01 18:20:49', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (22, 3, 4, '2021-08-04 23:07:42', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (23, 3, 5, '2021-08-04 23:07:42', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (24, 3, 7, '2021-08-04 23:07:42', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (25, 3, 4, '2021-08-04 23:12:02', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (26, 3, 5, '2021-08-04 23:12:02', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (27, 3, 7, '2021-08-04 23:12:03', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (28, 3, 4, '2021-08-05 09:56:51', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (29, 3, 5, '2021-08-05 09:56:51', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (30, 3, 7, '2021-08-05 09:56:51', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (31, 3, 4, '2021-08-05 09:57:30', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (32, 3, 5, '2021-08-05 09:57:30', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (33, 3, 7, '2021-08-05 09:57:30', '2021-08-06 19:30:05', '2021-08-06 19:30:05'), (34, 2, 3, '2021-08-06 18:03:56', '2021-08-06 19:27:32', '2021-08-06 19:27:32'), (35, 2, 4, '2021-08-06 18:03:56', '2021-08-06 19:27:32', '2021-08-06 19:27:32'), (36, 1, 2, '2021-08-06 18:07:01', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (37, 1, 2, '2021-08-06 18:16:15', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (38, 1, 2, '2021-08-06 18:20:51', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (39, 1, 2, '2021-08-06 18:22:03', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (40, 1, 2, '2021-08-06 18:25:55', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (41, 1, 2, '2021-08-06 18:26:30', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (42, 1, 2, '2021-08-06 18:30:36', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (43, 1, 2, '2021-08-06 18:31:02', '2021-08-06 19:22:41', '2021-08-06 19:22:41'), (44, 1, 2, '2021-08-06 19:22:41', '2021-08-06 19:22:41', '0000-00-00 00:00:00'), (45, 2, 3, '2021-08-06 19:27:32', '2021-08-06 19:27:32', '0000-00-00 00:00:00'), (46, 2, 4, '2021-08-06 19:27:32', '2021-08-06 19:27:32', '0000-00-00 00:00:00'), (47, 3, 4, '2021-08-06 19:30:05', '2021-08-06 19:30:05', '0000-00-00 00:00:00'), (48, 3, 5, '2021-08-06 19:30:05', '2021-08-06 19:30:05', '0000-00-00 00:00:00'), (49, 3, 7, '2021-08-06 19:30:05', '2021-08-06 19:30:05', '0000-00-00 00:00:00'), (50, 8, 3, '2021-08-06 19:33:54', '2021-08-06 19:33:54', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tags` -- CREATE TABLE `tags` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Volcado de datos para la tabla `tags` -- INSERT INTO `tags` (`id`, `name`, `slug`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Tag de pru', 'tag-de-pru', NULL, NULL, '2021-07-17 22:12:51'), (2, 'Etiqueta 2', 'etiqueta-2', '2021-07-17 21:17:30', '2021-07-17 21:17:30', NULL), (3, 'Etiqueta 3', 'etiqueta-3', '2021-07-17 21:21:19', '2021-07-31 21:20:01', NULL), (4, 'Etiqueta 4', 'etiqueta-4', '2021-07-17 21:21:32', '2021-07-17 21:21:32', NULL), (5, 'Etiqueta 5', 'etiqueta-5', '2021-07-31 15:26:30', '2021-07-31 15:26:30', NULL), (6, 'Etiqueta 6', 'etiqueta-6', '2021-07-31 15:29:37', '2021-07-31 17:06:19', '2021-07-31 17:06:19'), (7, 'Etiqueta 8', 'etiqueta-8', '2021-07-31 17:07:56', '2021-07-31 20:06:17', NULL), (8, 'Etiqueta 7', 'etiqueta-7', '2021-07-31 17:08:44', '2021-07-31 17:27:31', '2021-07-31 17:27:31'), (9, 'Etiqueta 7', 'etiqueta-7', '2021-07-31 17:10:37', '2021-07-31 17:27:20', '2021-07-31 17:27:20'), (10, 'Etiqueta 9', 'etiqueta-9', '2021-07-31 20:16:42', '2021-07-31 20:24:46', '2021-07-31 20:24:46'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`id`), ADD KEY `posts_category_id_foreign` (`category_id`), ADD KEY `posts_user_id_foreign` (`user_id`); -- -- Indices de la tabla `posts_tags` -- ALTER TABLE `posts_tags` ADD PRIMARY KEY (`id`), ADD KEY `post_tag_post_id_foreign` (`post_id`), ADD KEY `post_tag_tag_id_foreign` (`tag_id`); -- -- Indices de la tabla `tags` -- ALTER TABLE `tags` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `categories` -- ALTER TABLE `categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `posts` -- ALTER TABLE `posts` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de la tabla `posts_tags` -- ALTER TABLE `posts_tags` MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; -- -- AUTO_INCREMENT de la tabla `tags` -- ALTER TABLE `tags` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; COMMIT; /*!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 */;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Feb 2019 pada 13.37 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sogi_buah` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `buah` -- CREATE TABLE `buah` ( `kode_buah` int(11) NOT NULL, `buah` varchar(50) DEFAULT NULL, `tahun` int(11) DEFAULT NULL, `kode_kategori` int(11) DEFAULT NULL, `harga` int(11) DEFAULT NULL, `cover` varchar(100) DEFAULT NULL, `stok` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `buah` -- INSERT INTO `buah` (`kode_buah`, `buah`, `tahun`, `kode_kategori`, `harga`, `cover`, `stok`) VALUES (1, '<NAME>', 2017, 7, 15000, 'pt9.jpg', 34), (3, 'Manggis', 2016, 8, 23000, 'pt7.jpg', 20), (4, 'Mangga', 2012, 6, 34000, 'pt8.jpg', 90), (32, 'Durian', 2019, 7, 50000, 'pt1.jpg', 27), (33, 'Apel', 2015, 6, 22000, 'pt2.jpg', 35), (34, 'Jeruk', 2014, 6, 28000, 'pt3.jpg', 32), (35, 'Strowberry', 2017, 7, 45000, 'pt10.jpg', 16), (36, 'Semangka', 2018, 6, 23000, 'pt4.jpg', 36), (37, 'Kelengkeng', 2018, 6, 65000, 'pt11.jpg', 43); -- -------------------------------------------------------- -- -- Struktur dari tabel `detail_transaksi` -- CREATE TABLE `detail_transaksi` ( `kode_detail_transaksi` int(11) NOT NULL, `kode_transaksi` int(11) NOT NULL, `kode_makanan` int(11) NOT NULL, `jumlah` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `detail_transaksi` -- INSERT INTO `detail_transaksi` (`kode_detail_transaksi`, `kode_transaksi`, `kode_makanan`, `jumlah`) VALUES (1, 40, 3, 1), (2, 40, 4, 1), (3, 41, 4, 1), (4, 41, 1, 1), (5, 42, 4, 1), (6, 43, 4, 1), (7, 44, 4, 1); -- -------------------------------------------------------- -- -- Struktur dari tabel `kategori` -- CREATE TABLE `kategori` ( `kode_kategori` int(11) NOT NULL, `nama_kategori` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `kategori` -- INSERT INTO `kategori` (`kode_kategori`, `nama_kategori`) VALUES (6, 'Buah Lokal'), (7, 'Buah Impor'), (8, 'Buah Langka'); -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi` -- CREATE TABLE `transaksi` ( `kode_transaksi` int(11) NOT NULL, `kode_user` int(11) DEFAULT NULL, `nama_pembeli` varchar(50) DEFAULT NULL, `total` int(11) DEFAULT NULL, `tanggal_beli` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `transaksi` -- INSERT INTO `transaksi` (`kode_transaksi`, `kode_user`, `nama_pembeli`, `total`, `tanggal_beli`) VALUES (14, 1, 'boss', 145000, '2018-05-09'), (16, 1, 'edede', 7000, '2018-05-09'), (29, 5, 'bisa', 400000, '2018-05-09'), (36, 5, 'biss', 120000, '2018-05-09'), (37, 5, 'boss', 150000, '2018-05-09'), (38, 5, 'boss', 240000, '2018-05-09'), (39, 4, 'Aghna', 23000, '2019-02-06'), (40, 4, 'Aghna', 23000, '2019-02-06'), (41, 4, 'Aji', 25000, '2019-02-06'), (42, 4, 'Lyra', 10000, '2019-02-06'), (43, 4, 'Ami', 10000, '2019-02-06'), (44, 4, 'Daped', 10000, '2019-02-06'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `kode_user` int(11) NOT NULL, `nama_user` varchar(100) DEFAULT NULL, `username` varchar(100) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `level` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`kode_user`, `nama_user`, `username`, `password`, `level`) VALUES (1, 'Nofela', 'admin1', 'admin1', 'admin'), (4, 'SOGI', 'kasir1', 'kasir1', 'kasir'), (5, 'NURROHMAN', 'kasir2', 'kasir2', 'kasir'); -- -- Indexes for dumped tables -- -- -- Indexes for table `buah` -- ALTER TABLE `buah` ADD PRIMARY KEY (`kode_buah`), ADD KEY `kode_kategori` (`kode_kategori`); -- -- Indexes for table `detail_transaksi` -- ALTER TABLE `detail_transaksi` ADD PRIMARY KEY (`kode_detail_transaksi`), ADD KEY `kode_transaksi` (`kode_transaksi`), ADD KEY `kode_buku` (`kode_makanan`); -- -- Indexes for table `kategori` -- ALTER TABLE `kategori` ADD PRIMARY KEY (`kode_kategori`); -- -- Indexes for table `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`kode_transaksi`), ADD KEY `kode_user` (`kode_user`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`kode_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `buah` -- ALTER TABLE `buah` MODIFY `kode_buah` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38; -- -- AUTO_INCREMENT for table `detail_transaksi` -- ALTER TABLE `detail_transaksi` MODIFY `kode_detail_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `kategori` -- ALTER TABLE `kategori` MODIFY `kode_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `transaksi` -- ALTER TABLE `transaksi` MODIFY `kode_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `kode_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables) -- -- -- Ketidakleluasaan untuk tabel `buah` -- ALTER TABLE `buah` ADD CONSTRAINT `buah_ibfk_1` FOREIGN KEY (`kode_kategori`) REFERENCES `kategori` (`kode_kategori`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Ketidakleluasaan untuk tabel `detail_transaksi` -- ALTER TABLE `detail_transaksi` ADD CONSTRAINT `detail_transaksi_ibfk_1` FOREIGN KEY (`kode_transaksi`) REFERENCES `transaksi` (`kode_transaksi`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `detail_transaksi_ibfk_2` FOREIGN KEY (`kode_makanan`) REFERENCES `buah` (`kode_buah`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Ketidakleluasaan untuk tabel `transaksi` -- ALTER TABLE `transaksi` ADD CONSTRAINT `transaksi_ibfk_1` FOREIGN KEY (`kode_user`) REFERENCES `user` (`kode_user`) ON DELETE CASCADE ON UPDATE NO ACTION; /*!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 */;
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 29, 2015 at 10:01 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 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: `phpexport` -- -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `category` varchar(50) NOT NULL, `name` varchar(50) NOT NULL, `price` int(12) unsigned NOT NULL, `description` text NOT NULL, `image` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `name` (`name`), FULLTEXT KEY `description` (`description`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `category`, `name`, `price`, `description`, `image`) VALUES (1, 'Mobiles and Tablets', 'Moto G', 7000, '<p>Moto G in good condition purchased in January 2014.</p>\r\n<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras pulvinar arcu pulvinar, dictum turpis vel, semper risus. Curabitur ac augue et felis tempor molestie. Fusce ligula libero, dignissim eget ultrices ut, varius sit amet massa. Curabitur luctus nulla non lacus malesuada, eget elementum arcu lacinia. Fusce et metus non nulla sodales hendrerit. Aenean vitae enim nunc. Integer ultrices erat ac nunc commodo, in mattis mi viverra. Nullam et vehicula orci.</p>', 'moto_g.jpg'), (2, 'Vehicles', 'Indica Vista', 200000, '<p>Indica Vista purchased in 2011 travelled a total of 50,000 km. Price is negotiable.</p>\r\n<p>Sed accumsan, odio at vestibulum viverra, magna magna cursus mi, a venenatis nibh enim sagittis felis. Suspendisse elit tortor, dictum a est in, sollicitudin laoreet purus. Nullam quis porta tortor. Suspendisse potenti. Suspendisse commodo pulvinar arcu nec fringilla. Pellentesque dignissim scelerisque elit, nec sollicitudin turpis sodales ut. Sed eget elementum augue, non dapibus dui. Aenean non rhoncus nisi. Fusce non sem suscipit, posuere risus et, adipiscing ante. Maecenas nec neque ac urna bibendum viverra eu a eros. Maecenas quis eros a lorem blandit euismod sit amet venenatis leo. Praesent a justo ut turpis tristique volutpat. Sed volutpat felis eget enim laoreet, ac porttitor eros interdum.</p>', 'indica_vista.jpg'), (6, 'Electronics and Computer', 'HP Pavillion', 37000, '<p>HP Laptop White in color, 6GB RAM, 2GB NVIDIA GeForce 740M, 1TB Hard Disk, Windows 8.1, 15.6 inches screen in excellent condition.</p>\r\n<p>Praesent volutpat, mauris vitae feugiat ullamcorper, quam neque tristique risus, rhoncus tempus tellus metus imperdiet tellus. Duis dolor diam, posuere fermentum est in, convallis condimentum nisl. Suspendisse a nisl vitae velit accumsan pretium sed at quam. Aliquam tincidunt in odio in scelerisque.</p>', 'hp_laptop.jpg'), (10, 'Clothing and Accessories', 'Shirt', 1000, '<p>Designer Shirt size XL<p>\r\n<p> Nulla faucibus, est a interdum volutpat, sem neque interdum dui, aliquam accumsan velit sapien nec purus. Integer quis massa vel odio viverra molestie. Duis rhoncus posuere felis. Proin lobortis feugiat dui, eget posuere mauris aliquet ut. Integer sagittis lacinia varius. Aenean sit amet nunc mauris. Aenean sed lobortis justo, non pharetra justo.</p>', 'shirt.jpg'), (17, 'Sports Item', 'Football', 300, '<p>Reebok Football</p>\r\n<p>Ut lobortis elit ut lectus pretium blandit. In hac habitasse platea dictumst. Quisque euismod sit amet augue non malesuada. Etiam accumsan id tellus sed ullamcorper. Vivamus eros urna, auctor id pellentesque a, feugiat at dui. Vivamus sagittis porttitor euismod. Fusce vitae ante quis orci posuere aliquam. Nullam cursus erat eu vehicula volutpat. Maecenas ut magna risus. Nunc eu eleifend massa. </p>', 'football.jpg'); /*!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 */;
-- file_clearupone function deletes one temporary file which has not been added to an entity CREATE OR REPLACE FUNCTION _file_storage.file_clearupone(i_file_id uuid) RETURNS SETOF _file_storage."Files" AS $$ UPDATE _file_storage."Files" SET "deletedAt"=now() WHERE "id" = i_file_id AND "ownerUserId" = _auth.current_user_id() AND "entityId" IS NULL AND "deletedAt" IS NULL RETURNING *; $$ LANGUAGE sql SECURITY DEFINER;