<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<integrate-test-cases>
    <ddl-test-case sql-case-id="create_table">
        <assertion table="t_log" expected-data-file="create_table.xml" />
    </ddl-test-case>

    <ddl-test-case sql-case-id="create_table_with_keyword">
        <assertion table="t_log" expected-data-file="create_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_table_if_not_exists">
        <assertion table="t_log" expected-data-file="create_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_temporary_table_if_not_exists">
        <assertion table="t_temp_log" expected-data-file="create_temporary_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_global_temporary_table">
        <assertion table="t_temp_log" expected-data-file="create_temporary_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_local_temp_table">
        <assertion table="t_temp_log" expected-data-file="create_temporary_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_unlogged_table">
        <assertion table="t_log" expected-data-file="create_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_index">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="create_index.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="create_unique_index">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="create_unique_index.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="alter_table">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="alter_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="alter_table_if_exists_only">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="alter_table.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_table">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_table_if_exists">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_temporary_table_if_exists">
        <assertion init-sql="CREATE TABLE t_temp_log(id int, status varchar(10))" table="t_temp_log" expected-data-file="empty_temp_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_table_restrict">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_table_cascade">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_table_cascade_constraints_and_purge">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_index">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10));CREATE INDEX t_log_index ON t_log(status)" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_index_without_on">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10));CREATE INDEX t_log_index ON t_log(status)" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="drop_index_if_exists">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="truncate_table">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
    
    <ddl-test-case sql-case-id="truncate_table_only">
        <assertion init-sql="CREATE TABLE t_log(id int, status varchar(10))" table="t_log" expected-data-file="empty_log.xml" />
    </ddl-test-case>
</integrate-test-cases>
