From d1b2b7be950e03d820eac51161bf1158d11f950f Mon Sep 17 00:00:00 2001 From: Markus Johansen Date: Fri, 4 Aug 2023 10:53:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Endret=20datatype=20p=C3=A5=20ak?= =?UTF-8?q?torid=20i=20database=20til=20BIGINT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Amalie Mansåker --- .../src/main/kotlin/no/nav/helse/sprik/db/FeilmeldingTable.kt | 2 +- .../resources/db/migration/V7__endrerDatatypeForAktorid.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 backend/src/main/resources/db/migration/V7__endrerDatatypeForAktorid.sql diff --git a/backend/src/main/kotlin/no/nav/helse/sprik/db/FeilmeldingTable.kt b/backend/src/main/kotlin/no/nav/helse/sprik/db/FeilmeldingTable.kt index 6fd60f4..9279ae0 100644 --- a/backend/src/main/kotlin/no/nav/helse/sprik/db/FeilmeldingTable.kt +++ b/backend/src/main/kotlin/no/nav/helse/sprik/db/FeilmeldingTable.kt @@ -11,5 +11,5 @@ object FeilmeldingTable : Table("feilmelding") { val arbeidsstatus = integer("arbeidsstatus") val haster = bool("haster") val kommentar = text("kommentar") - val aktorid = integer("aktorid") + val aktorid = long("aktorid") } \ No newline at end of file diff --git a/backend/src/main/resources/db/migration/V7__endrerDatatypeForAktorid.sql b/backend/src/main/resources/db/migration/V7__endrerDatatypeForAktorid.sql new file mode 100644 index 0000000..69dc5d2 --- /dev/null +++ b/backend/src/main/resources/db/migration/V7__endrerDatatypeForAktorid.sql @@ -0,0 +1,2 @@ +ALTER TABLE feilmelding +ALTER COLUMN aktorid TYPE BIGINT