-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for specifying Solovyov catalog numbers.
Fix #770
- Loading branch information
Showing
31 changed files
with
298 additions
and
2 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
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/liquibase/sql/test-series-with-solovyov-numbers.sql
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,6 @@ | ||
-- | ||
-- Auto-generated by Maven, based on values from src/main/resources/test/spring/test-data.properties | ||
-- | ||
|
||
INSERT INTO solovyov_catalog(id, code) VALUES(1, '@existing_solovyov_number@'); | ||
INSERT INTO series_solovyov_catalog(series_id, solovyov_id) VALUES(1, 1); |
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
46 changes: 46 additions & 0 deletions
46
src/main/resources/liquibase/version/0.4/2017-12-21--solovyov_catalog.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,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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.1.xsd"> | ||
|
||
<changeSet id="create-solovyov_catalog-table" author="php-coder" context="scheme"> | ||
|
||
<createTable tableName="solovyov_catalog"> | ||
<column name="id" type="INTEGER" autoIncrement="true"> | ||
<constraints primaryKey="true" /> | ||
</column> | ||
<column name="code" type="VARCHAR(4)"> | ||
<constraints nullable="false" unique="true" uniqueConstraintName="uc_solovyov_catalog_code" /> | ||
</column> | ||
</createTable> | ||
|
||
</changeSet> | ||
|
||
<changeSet id="create-series_solovyov_catalog-table" author="php-coder" context="scheme"> | ||
|
||
<createTable tableName="series_solovyov_catalog"> | ||
<column name="series_id" type="INTEGER"> | ||
<constraints primaryKey="true" references="series(id)" foreignKeyName="fk_series_solovyov_catalog_series_id" /> | ||
</column> | ||
<column name="solovyov_id" type="INTEGER"> | ||
<constraints primaryKey="true" references="solovyov_catalog(id)" foreignKeyName="fk_series_solovyov_catalog_solovyov_id" /> | ||
</column> | ||
</createTable> | ||
|
||
</changeSet> | ||
|
||
<changeSet id="add-solovyov_price-field-to-series-field" author="php-coder" context="scheme"> | ||
|
||
<addColumn tableName="series"> | ||
<column name="solovyov_price" type="DECIMAL(19,2)" afterColumn="gibbons_price" /> | ||
</addColumn> | ||
|
||
</changeSet> | ||
|
||
<changeSet id="add-solovyov-numbers-to-series" author="php-coder" context="test-data"> | ||
<sqlFile path="../../sql/test-series-with-solovyov-numbers.sql" relativeToChangelogFile="true" /> | ||
</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
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.
14583e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
769-4310f3c0
discovered insrc/test/java/ru/mystamps/web/tests/Random.java
and submitted as #773. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, butwe discovered it only now.
14583e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
770-3251a080
discovered insrc/main/java/ru/mystamps/web/controller/dto/AddSeriesForm.java
and submitted as #774. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, butwe discovered it only now.
14583e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
769-d2cdc518
discovered insrc/main/java/ru/mystamps/web/controller/dto/AddSeriesForm.java
and submitted as #775. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, butwe discovered it only now.
14583e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
769-9c37cac2
discovered insrc/main/java/ru/mystamps/web/controller/SeriesController.java
and submitted as #776. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, butwe discovered it only now.
14583e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Puzzle
770-c8c03da2
discovered insrc/main/java/ru/mystamps/web/controller/SeriesController.java
and submitted as #777. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, butwe discovered it only now.