Skip to content

Commit 78afa46

Browse files
committed
DMP-5282 Database - Data type consistency check
Fixed bug that was introduced when certain ids where converted to bigints in the db but where they were used as foreign keys in other tables, they were still integers, which caused a mismatch between longs in java and integers in the DB
1 parent dbcf502 commit 78afa46

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/main/resources/db/migration/common/V1_491_1__update_id_values_size.sql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ ALTER TABLE object_admin_action
1919
ALTER COLUMN ado_id TYPE bigint,
2020
ALTER COLUMN cad_id TYPE bigint,
2121
ALTER COLUMN trd_id TYPE bigint;
22-
23-
ALTER TABLE external_object_directory
24-
ALTER COLUMN ado_id TYPE bigint,
25-
ALTER COLUMN cad_id TYPE bigint,
26-
ALTER COLUMN trd_id TYPE bigint;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ALTER TABLE external_object_directory
2+
ALTER COLUMN ado_id TYPE bigint,
3+
ALTER COLUMN cad_id TYPE bigint,
4+
ALTER COLUMN trd_id TYPE bigint;

0 commit comments

Comments
 (0)