mirror of
https://github.com/valitydev/not-scrooge.git
synced 2024-11-06 08:15:16 +00:00
BJ-960: Change accountId type to long
This commit is contained in:
parent
a35c7dee34
commit
a832e75c87
@ -34,7 +34,7 @@ public class OperationLogEntity implements Serializable {
|
||||
@Type(type = "pgsql_enum")
|
||||
private ValidationError validationError;
|
||||
|
||||
private String accountId;
|
||||
private Long accountId;
|
||||
private Long amountWithSign;
|
||||
private String currencySymbolicCode;
|
||||
private String description;
|
||||
|
@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS scrooge.operation_log
|
||||
sequence_id BIGINT NOT NULL,
|
||||
plan_operations_count BIGINT 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,
|
||||
currency_symbolic_code CHARACTER VARYING NOT NULL,
|
||||
description CHARACTER VARYING NOT NULL,
|
||||
|
@ -81,7 +81,7 @@ public class OperationLogRepositoryTest {
|
||||
.creationTime(LocalDateTime.now())
|
||||
.batchHash(9999L)
|
||||
.amountWithSign(-100L)
|
||||
.accountId("account_id")
|
||||
.accountId(1L)
|
||||
.build();
|
||||
|
||||
entities.add(entity);
|
||||
|
Loading…
Reference in New Issue
Block a user