fix container customer snapshot schema migration
This commit is contained in:
+13
@@ -76,6 +76,19 @@ class SmartLoadingSqlContractTest {
|
||||
.contains("version INT UNSIGNED NOT NULL DEFAULT 0 COMMENT '乐观锁版本号'");
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("存量货柜迁移补齐BaseMapper所需客户快照列")
|
||||
void shouldMigrateContainerCustomerSnapshotColumns() throws Exception {
|
||||
for (String sql : Set.of(migration(), unifiedMigration())) {
|
||||
assertThat(sql)
|
||||
.contains("ADD COLUMN customer_id BIGINT UNSIGNED NULL")
|
||||
.contains("ADD COLUMN customer_name VARCHAR(128) NULL")
|
||||
.contains("JOIN fl_ocean_booking ocean_booking ON ocean_booking.id=container_booking.ocean_booking_id")
|
||||
.contains("container_booking.customer_id=COALESCE(container_booking.customer_id,ocean_booking.customer_id)")
|
||||
.contains("container_booking.customer_name=COALESCE(container_booking.customer_name,ocean_booking.customer_name)");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@DisplayName("仓库备注使用计划先行与明细单表CAS并允许已拣明细仅改备注")
|
||||
void shouldUpdateWarehouseRemarkWithoutMultiTableTriggerConflict() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user