File tree 6 files changed +38
-39
lines changed
src/main/resources/liquibase
6 files changed +38
-39
lines changed Original file line number Diff line number Diff line change 10
10
<!-- Depends on: series_import_request_statuses, users -->
11
11
<include file =" test-data/series_import_requests.xml" relativeToChangelogFile =" true" />
12
12
13
- <!-- Depends on: series_import_requests -->
13
+ <!-- Depends on: series_import_requests, categories -->
14
14
<include file =" test-data/series_import_parsed_data.xml" relativeToChangelogFile =" true" />
15
15
16
16
<!-- Depends on: series_import_requests, transaction_participants -->
Original file line number Diff line number Diff line change 5
5
xsi:schemaLocation=" http://www.liquibase.org/xml/ns/dbchangelog
6
6
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd" >
7
7
8
+ <changeSet id =" add-series-parsed-data-for-gh1256" author =" php-coder" context =" test-data" >
9
+
10
+ <insert tableName =" series_import_parsed_data" >
11
+ <column name =" request_id" valueComputed =" (SELECT id FROM series_import_requests WHERE url = 'http://example.com/issue/1256')" />
12
+ <column name =" category_id" valueComputed =" (SELECT id FROM categories WHERE slug = 'prehistoric-animals')" />
13
+ <column name =" image_url" value =" http://127.0.0.1:8080/image/1" />
14
+ <column name =" quantity" valueNumeric =" 3" />
15
+ <column name =" created_at" valueComputed =" ${NOW}" />
16
+ <column name =" updated_at" valueComputed =" ${NOW}" />
17
+ </insert >
18
+
19
+ </changeSet >
20
+
8
21
<changeSet id =" add-series-parsed-data-for-gh1232" author =" php-coder" context =" test-data" >
9
22
10
23
<insert tableName =" series_import_parsed_data" >
Original file line number Diff line number Diff line change 5
5
xsi:schemaLocation=" http://www.liquibase.org/xml/ns/dbchangelog
6
6
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd" >
7
7
8
+ <changeSet id =" add-import-request-for-gh1256" author =" php-coder" context =" test-data" >
9
+
10
+ <insert tableName =" series_import_requests" >
11
+ <column name =" url" value =" http://example.com/issue/1256" />
12
+ <column name =" status_id" valueComputed =" (SELECT id FROM series_import_request_statuses WHERE name = 'ParsingSucceeded')" />
13
+ <column name =" requested_at" valueComputed =" ${NOW}" />
14
+ <column name =" requested_by" valueComputed =" (SELECT id FROM users WHERE role = 'ADMIN' ORDER by id LIMIT 1)" />
15
+ <column name =" updated_at" valueComputed =" ${NOW}" />
16
+ </insert >
17
+
18
+ </changeSet >
19
+
8
20
<changeSet id =" add-import-request-for-gh1232" author =" php-coder" context =" test-data" >
9
21
10
22
<insert tableName =" series_import_requests" >
Original file line number Diff line number Diff line change 5
5
xsi:schemaLocation=" http://www.liquibase.org/xml/ns/dbchangelog
6
6
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd" >
7
7
8
+ <changeSet id =" add-series-sale-without-price" author =" php-coder" context =" test-data" >
9
+
10
+ <insert tableName =" series_sales_import_parsed_data" >
11
+ <column name =" request_id" valueComputed =" (SELECT id FROM series_import_requests WHERE url = 'http://example.com/issue/1256')" />
12
+ <column name =" seller_name" value =" Issue 1256" />
13
+ <column name =" seller_url" value =" http://example.com/issue/1256" />
14
+ <column name =" created_at" valueComputed =" ${NOW}" />
15
+ <column name =" updated_at" valueComputed =" ${NOW}" />
16
+ </insert >
17
+
18
+ </changeSet >
19
+
8
20
<changeSet id =" add-series-sale-without-seller-info-but-with-price" author =" php-coder" context =" test-data" >
9
21
10
22
<insert tableName =" series_sales_import_parsed_data" >
Original file line number Diff line number Diff line change 8
8
<include file =" 0.4.2/2019-11-17--drop_unique_series_from_collection.xml" relativeToChangelogFile =" true" />
9
9
<include file =" 0.4.2/2019-11-27--add_collections_series_id.xml" relativeToChangelogFile =" true" />
10
10
<include file =" 0.4.2/2020-02-11--downloading_failed_import_requests.xml" relativeToChangelogFile =" true" />
11
- <include file =" 0.4.2/2020-02-12--empty_price_import_request.xml" relativeToChangelogFile =" true" />
12
11
13
12
</databaseChangeLog >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments