BJ-960: Change accountId type to long

This commit is contained in:
a.romanov 2020-08-03 11:50:01 +03:00 committed by a.romanov
parent a35c7dee34
commit a832e75c87
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public class OperationLogEntity implements Serializable {
@Type(type = "pgsql_enum") @Type(type = "pgsql_enum")
private ValidationError validationError; private ValidationError validationError;
private String accountId; private Long accountId;
private Long amountWithSign; private Long amountWithSign;
private String currencySymbolicCode; private String currencySymbolicCode;
private String description; private String description;

View File

@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS scrooge.operation_log
sequence_id BIGINT NOT NULL, sequence_id BIGINT NOT NULL,
plan_operations_count BIGINT NOT NULL, plan_operations_count BIGINT NOT NULL,
operation_type scrooge.operation_type NOT NULL, operation_type scrooge.operation_type NOT NULL,
account_id CHARACTER VARYING NOT NULL, account_id BIGINT NOT NULL,
amount_with_sign BIGINT NOT NULL, amount_with_sign BIGINT NOT NULL,
currency_symbolic_code CHARACTER VARYING NOT NULL, currency_symbolic_code CHARACTER VARYING NOT NULL,
description CHARACTER VARYING NOT NULL, description CHARACTER VARYING NOT NULL,

View File

@ -81,7 +81,7 @@ public class OperationLogRepositoryTest {
.creationTime(LocalDateTime.now()) .creationTime(LocalDateTime.now())
.batchHash(9999L) .batchHash(9999L)
.amountWithSign(-100L) .amountWithSign(-100L)
.accountId("account_id") .accountId(1L)
.build(); .build();
entities.add(entity); entities.add(entity);