This commit is contained in:
2026-08-07 15:19:21 +08:00
parent b0ea1a0c5c
commit a4a03a8ae8
7 changed files with 38 additions and 148 deletions
@@ -15,6 +15,8 @@ class PriceBookSqlContractTest {
void shouldProvidePriceBookTables() throws Exception {
String schema = new ClassPathResource("db/phase2-inbound-schema.sql")
.getContentAsString(StandardCharsets.UTF_8);
String migration = new ClassPathResource("db/phase2-fba-pricing-migration.sql")
.getContentAsString(StandardCharsets.UTF_8);
assertThat(schema)
.contains("CREATE TABLE IF NOT EXISTS fl_price_channel_catalog")
.contains("CREATE TABLE IF NOT EXISTS fl_price_origin_alias")
@@ -30,5 +32,9 @@ class PriceBookSqlContractTest {
.contains("destination_name VARCHAR(128)")
.contains("parse_issues_json JSON NULL")
.contains("DEFAULT 'PENDING_CONFIRMATION'");
assertThat(migration)
.doesNotContain("fl_price_book_version")
.doesNotContain("'pricing_tax_mode'")
.doesNotContain("'price_book_version_id'");
}
}