-
Notifications
You must be signed in to change notification settings - Fork 80
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 #6419 from ita-social-projects/change-structure-ac…
…heievements Change structure achievements
- Loading branch information
Showing
43 changed files
with
186 additions
and
432 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
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
37 changes: 0 additions & 37 deletions
37
dao/src/main/java/greencity/entity/localization/AchievementTranslation.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
23 changes: 0 additions & 23 deletions
23
dao/src/main/java/greencity/repository/AchievementTranslationRepo.java
This file was deleted.
Oops, something went wrong.
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
47 changes: 47 additions & 0 deletions
47
dao/src/main/resources/db/changelog/logs/ch-add-column-achievements-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,47 @@ | ||
<?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-22" author="Oksana Spodaryk"> | ||
<preConditions onFail="MARK_RAN"> | ||
<and> | ||
<tableExists tableName="achievements"/> | ||
<not> | ||
<columnExists tableName="achievements" columnName="title"/> | ||
</not> | ||
<not> | ||
<columnExists tableName="achievements" columnName="name"/> | ||
</not> | ||
<not> | ||
<columnExists tableName="achievements" columnName="name_eng"/> | ||
</not> | ||
<not> | ||
<columnExists tableName="achievements" columnName="score"/> | ||
</not> | ||
</and> | ||
</preConditions> | ||
|
||
<addColumn tableName="achievements"> | ||
<column name="title" type="VARCHAR(255)"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
<addColumn tableName="achievements"> | ||
<column name="name" type="VARCHAR(255)"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
<addColumn tableName="achievements"> | ||
<column name="name_eng" type="VARCHAR(255)"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
<addColumn tableName="achievements"> | ||
<column name="score" type="INT"> | ||
<constraints nullable="true"/> | ||
</column> | ||
</addColumn> | ||
</changeSet> | ||
|
||
|
||
</databaseChangeLog> |
11 changes: 11 additions & 0 deletions
11
...rc/main/resources/db/changelog/logs/ch-delete-table-achievement_translations-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,11 @@ | ||
<?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-25" author="Oksana Spodaryk"> | ||
<preConditions onFail="MARK_RAN"> | ||
<tableExists tableName="achievement_translations"/> | ||
</preConditions> | ||
<dropTable tableName="achievement_translations"/> | ||
</changeSet> | ||
</databaseChangeLog> |
11 changes: 11 additions & 0 deletions
11
dao/src/main/resources/db/changelog/logs/ch-drop-column-user_achievements-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,11 @@ | ||
<?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-24" author="Oksana Spodaryk"> | ||
<preConditions onFail="MARK_RAN"> | ||
<columnExists tableName="user_achievements" columnName="achievement_status"/> | ||
</preConditions> | ||
<dropColumn tableName="user_achievements" columnName="achievement_status"/> | ||
</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
Oops, something went wrong.