chore(release): v1.1 #2
@ -13,5 +13,6 @@ spring.h2.console.path=/h2-console
|
|||||||
|
|
||||||
# Flyway
|
# Flyway
|
||||||
spring.flyway.enabled=true
|
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.baseline-on-migrate=true
|
||||||
|
spring.flyway.fail-on-missing-locations=true
|
||||||
@ -44,4 +44,11 @@ public class PriceEntity {
|
|||||||
@Column(name = "currency")
|
@Column(name = "currency")
|
||||||
private String currency;
|
private String currency;
|
||||||
|
|
||||||
|
@Column(name = "last_update")
|
||||||
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
|
private LocalDateTime lastUpdate;
|
||||||
|
|
||||||
|
@Column(name = "last_update_by")
|
||||||
|
private String lastUpdateBy;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,5 +7,7 @@ CREATE TABLE prices (
|
|||||||
product_id BIGINT NOT NULL,
|
product_id BIGINT NOT NULL,
|
||||||
priority BIGINT NOT NULL,
|
priority BIGINT NOT NULL,
|
||||||
price DECIMAL(10, 2) NOT NULL,
|
price DECIMAL(10, 2) NOT NULL,
|
||||||
currency VARCHAR(3)
|
currency VARCHAR(3),
|
||||||
|
last_update TIMESTAMP,
|
||||||
|
last_update_by VARCHAR(255)
|
||||||
);
|
);
|
||||||
@ -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
|
VALUES
|
||||||
(1, '2020-06-14 00:00:00', '2020-12-31 23:59:59', 1, 35455, 0, 35.50, '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'),
|
(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'),
|
(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');
|
(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')
|
||||||
Loading…
x
Reference in New Issue
Block a user