Skip to content

Commit

Permalink
Normalize line endings to LF for xml files
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jan 4, 2025
1 parent c67c4c5 commit 9863ddb
Show file tree
Hide file tree
Showing 28 changed files with 792 additions and 791 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.xml text eol=lf
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
<changeSet author="app" id="createTable-customers">
<createSequence
sequenceName="customers_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="customers">
<column name="id" type="bigint" defaultValueSequenceNext="customers_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(1024)">
<constraints nullable="false"/>
</column>
<column name="address" type="varchar(1024)"/>
<column name="gender" type="varchar(10)"/>
</createTable>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">
<changeSet author="app" id="createTable-customers">
<createSequence
sequenceName="customers_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="customers">
<column name="id" type="bigint" defaultValueSequenceNext="customers_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(1024)">
<constraints nullable="false"/>
</column>
<column name="address" type="varchar(1024)"/>
<column name="gender" type="varchar(10)"/>
</createTable>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">


<property name="stringType" dbms="postgres" value="text"/>
<property name="stringType" dbms="!postgres" value="varchar(50)"/>

<changeSet id="1689581050846-1" author="rajakolli">
<preConditions>
<not>
<sequenceExists sequenceName="tracking_state_seq"/>
</not>
</preConditions>
<createSequence sequenceName="tracking_state_seq" startValue="1" incrementBy="50"/>
</changeSet>

<changeSet id="1" author="rajakolli">
<preConditions>
<not>
<tableExists tableName="tracking_state"/>
</not>
</preConditions>
<createTable tableName="tracking_state">
<column name="id" type="bigint" defaultValueSequenceNext="tracking_state_seq">
<constraints primaryKey="true" primaryKeyName="tracking_state_id"/>
</column>
<column name="correlation_id" type="${stringType}">
<constraints nullable="false" unique="true"/>
</column>
<column name="ack" type="boolean" />
<column name="status" type="${stringType}">
<constraints nullable="false"/>
</column>
<column name="cause" type="${stringType}" />
</createTable>
</changeSet>

</databaseChangeLog>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">


<property name="stringType" dbms="postgres" value="text"/>
<property name="stringType" dbms="!postgres" value="varchar(50)"/>

<changeSet id="1689581050846-1" author="rajakolli">
<preConditions>
<not>
<sequenceExists sequenceName="tracking_state_seq"/>
</not>
</preConditions>
<createSequence sequenceName="tracking_state_seq" startValue="1" incrementBy="50"/>
</changeSet>

<changeSet id="1" author="rajakolli">
<preConditions>
<not>
<tableExists tableName="tracking_state"/>
</not>
</preConditions>
<createTable tableName="tracking_state">
<column name="id" type="bigint" defaultValueSequenceNext="tracking_state_seq">
<constraints primaryKey="true" primaryKeyName="tracking_state_id"/>
</column>
<column name="correlation_id" type="${stringType}">
<constraints nullable="false" unique="true"/>
</column>
<column name="ack" type="boolean" />
<column name="status" type="${stringType}">
<constraints nullable="false"/>
</column>
<column name="cause" type="${stringType}" />
</createTable>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-tags">
<createSequence
sequenceName="tags_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="tags">
<column name="id" type="bigint" defaultValueSequenceNext="tags_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="${string.type}">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>

<changeSet id="create_unique_column" author="app">
<addUniqueConstraint columnNames="name" constraintName="uc_tag_name" tableName="tags"/>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-tags">
<createSequence
sequenceName="tags_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="tags">
<column name="id" type="bigint" defaultValueSequenceNext="tags_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="${string.type}">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>

<changeSet id="create_unique_column" author="app">
<addUniqueConstraint columnNames="name" constraintName="uc_tag_name" tableName="tags"/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-posts">
<createSequence
sequenceName="posts_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="posts">
<column name="id" type="bigint" defaultValueSequenceNext="posts_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="title" type="${string.type}">
<constraints nullable="false"/>
</column>
<column name="content" type="${string.type}">
<constraints nullable="false" />
</column>
<column name="created_on" type="DATETIME"/>
<column name="details_id" type="BIGINT"/>
</createTable>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-posts">
<createSequence
sequenceName="posts_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="posts">
<column name="id" type="bigint" defaultValueSequenceNext="posts_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="title" type="${string.type}">
<constraints nullable="false"/>
</column>
<column name="content" type="${string.type}">
<constraints nullable="false" />
</column>
<column name="created_on" type="DATETIME"/>
<column name="details_id" type="BIGINT"/>
</createTable>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-post_comments">
<createSequence
sequenceName="post_comments_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="post_comments">
<column name="id" type="bigint" defaultValueSequenceNext="post_comments_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="review" type="${string.type}">
<constraints nullable="false"/>
</column>
<column name="created_on" type="DATETIME"/>
<column name="post_id" type="BIGINT"/>
</createTable>
</changeSet>

<changeSet id="add_foreign_key_post_comment" author="app">
<addForeignKeyConstraint baseColumnNames="post_id" baseTableName="post_comments"
constraintName="FK_POST_COMMENT_ON_POSTS" referencedColumnNames="id"
referencedTableName="posts"/>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-post_comments">
<createSequence
sequenceName="post_comments_seq"
incrementBy="50"
startValue="1"
/>
<createTable tableName="post_comments">
<column name="id" type="bigint" defaultValueSequenceNext="post_comments_seq">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="review" type="${string.type}">
<constraints nullable="false"/>
</column>
<column name="created_on" type="DATETIME"/>
<column name="post_id" type="BIGINT"/>
</createTable>
</changeSet>

<changeSet id="add_foreign_key_post_comment" author="app">
<addForeignKeyConstraint baseColumnNames="post_id" baseTableName="post_comments"
constraintName="FK_POST_COMMENT_ON_POSTS" referencedColumnNames="id"
referencedTableName="posts"/>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-post_tags">
<createTable tableName="post_tags">
<column name="created_on" type="DATETIME"/>
<column name="post_id" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_post_tag"/>
</column>
<column name="tag_id" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_post_tag"/>
</column>
</createTable>

<addForeignKeyConstraint baseColumnNames="post_id" baseTableName="post_tags" constraintName="FK_POST_TAG_ON_POST"
referencedColumnNames="id" referencedTableName="posts"/>
<addForeignKeyConstraint baseColumnNames="tag_id" baseTableName="post_tags" constraintName="FK_POST_TAG_ON_TAG"
referencedColumnNames="id" referencedTableName="tags"/>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://docs.liquibase.com/concepts/changelogs/xml-format.html -->
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.20.xsd">

<property name="string.type" value="varchar(255)" dbms="!postgresql"/>
<property name="string.type" value="text" dbms="postgresql"/>

<changeSet author="app" id="createTable-post_tags">
<createTable tableName="post_tags">
<column name="created_on" type="DATETIME"/>
<column name="post_id" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_post_tag"/>
</column>
<column name="tag_id" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_post_tag"/>
</column>
</createTable>

<addForeignKeyConstraint baseColumnNames="post_id" baseTableName="post_tags" constraintName="FK_POST_TAG_ON_POST"
referencedColumnNames="id" referencedTableName="posts"/>
<addForeignKeyConstraint baseColumnNames="tag_id" baseTableName="post_tags" constraintName="FK_POST_TAG_ON_TAG"
referencedColumnNames="id" referencedTableName="tags"/>
</changeSet>
</databaseChangeLog>
Loading

0 comments on commit 9863ddb

Please sign in to comment.