-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6668 from ita-social-projects/habit-achievement
Habit achievement
Showing
15 changed files
with
467 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
dao/src/main/resources/db/changelog/logs/ch-add-column-user_actions-Spodaryk.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<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-3.4.xsd"> | ||
<changeSet id="Spodaryk-28" author="Oksana Spodaryk"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<columnExists tableName="user_actions" columnName="habit_id"/> | ||
</not> | ||
</preConditions> | ||
<addColumn tableName="user_actions"> | ||
<column name="habit_id" type="BIGINT"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
<addForeignKeyConstraint baseColumnNames="habit_id" | ||
baseTableName="user_actions" | ||
constraintName="fk_user_actions_habit" | ||
onDelete="RESTRICT" | ||
onUpdate="RESTRICT" | ||
referencedColumnNames="id" | ||
referencedTableName="habits"/> | ||
</changeSet> | ||
<changeSet id="Spodaryk-29" author="Oksana Spodaryk"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<columnExists tableName="user_achievements" columnName="habit_id"/> | ||
</not> | ||
</preConditions> | ||
<addColumn tableName="user_achievements"> | ||
<column name="habit_id" type="BIGINT"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
<addForeignKeyConstraint baseColumnNames="habit_id" | ||
baseTableName="user_achievements" | ||
constraintName="fk_user_achievements_habit" | ||
onDelete="RESTRICT" | ||
onUpdate="RESTRICT" | ||
referencedColumnNames="id" | ||
referencedTableName="habits"/> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.