Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add creation of petl_load_times #386

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dmdesimone
Copy link
Contributor

No description provided.

@dmdesimone dmdesimone requested a review from mseaton November 1, 2022 18:50
<changeSet id="20221101-initial-create-of-petl-load-times-table" author="ddesimone">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
select table_exists("petl_load_times");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to follow existing standard and conventions here. See where I add the authentication_event_log table. Something like:

<not><tableExists tableName="petl_load_times"/></not>

create table petl_load_times
(loaded_domain varchar(50),
last_loaded_time datetime);
</sql>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, better to use the liquibase constructs for this, as done throughout this liquibase.xml file. First, no need (and not desireable) to have the drop table if exists... statement. Your precondition already guarantees that it doesn't exist. Second, in order to create the table, use the liquibase tags for this (again, see where I add the authentication event log table). Something like:

        <createTable tableName="petl_load_times">
            <column name="loaded_domain" type="varchar(50)"/>
            <column name="last_loaded_time" type="datetime"/>
        </createTable>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants