chore(release): v1.1 #2

Merged
bedroomghost merged 6 commits from develop into main 2025-04-21 19:39:49 +00:00
4 changed files with 18 additions and 8 deletions
Showing only changes of commit 9caff32574 - Show all commits

View File

@ -13,5 +13,6 @@ spring.h2.console.path=/h2-console
# Flyway
spring.flyway.enabled=true
spring.flyway.locations=filesystem:infrastructure/out/sql-repository/sql/migration
spring.flyway.locations=filesystem:../infrastructure/out/sql-repository/src/main/resources/sql/migration
spring.flyway.baseline-on-migrate=true
spring.flyway.fail-on-missing-locations=true

View File

@ -44,4 +44,11 @@ public class PriceEntity {
@Column(name = "currency")
private String currency;
@Column(name = "last_update")
@Temporal(TemporalType.TIMESTAMP)
private LocalDateTime lastUpdate;
@Column(name = "last_update_by")
private String lastUpdateBy;
}

View File

@ -7,5 +7,7 @@ CREATE TABLE prices (
product_id BIGINT NOT NULL,
priority BIGINT NOT NULL,
price DECIMAL(10, 2) NOT NULL,
currency VARCHAR(3)
currency VARCHAR(3),
last_update TIMESTAMP,
last_update_by VARCHAR(255)
);

View File

@ -1,6 +1,6 @@
INSERT INTO prices (brand_id, start_date, end_date, price_list, product_id, priority, price, currency)
INSERT INTO prices (brand_id, start_date, end_date, price_list, product_id, priority, price, currency, last_update, last_update_by)
VALUES
(1, '2020-06-14 00:00:00', '2020-12-31 23:59:59', 1, 35455, 0, 35.50, 'EUR'),
(1, '2020-06-14 15:00:00', '2020-06-14 18:30:00', 2, 35455, 1, 25.45, 'EUR'),
(1, '2020-06-15 00:00:00', '2020-06-15 11:00:00', 3, 35455, 1, 30.50, 'EUR'),
(1, '2020-06-15 16:00:00', '2020-12-31 23:59:59', 4, 35455, 1, 38.95, 'EUR');
(1, '2020-06-14 00:00:00', '2020-12-31 23:59:59', 1, 35455, 0, 35.50, 'EUR', '2020-03-26 14:49:07', 'user1'),
(1, '2020-06-14 15:00:00', '2020-06-14 18:30:00', 2, 35455, 1, 25.45, 'EUR', '2020-05-26 15:38:22', 'user1'),
(1, '2020-06-15 00:00:00', '2020-06-15 11:00:00', 3, 35455, 1, 30.50, 'EUR', '2020-05-26 15:39:22', 'user2'),
(1, '2020-06-15 16:00:00', '2020-12-31 23:59:59', 4, 35455, 1, 38.95, 'EUR', '2020-06-02 10:14:00', 'user1')