From 577377bcbfaf84dc782c30dd22e8255e54b430f1 Mon Sep 17 00:00:00 2001 From: KP9lK Date: Wed, 11 Jun 2025 13:26:59 +0300 Subject: [PATCH] hot fix v2 --- src/main/kotlin/data/database/tables/AddressTable.kt | 2 +- src/main/kotlin/dto/request/AddAddressRequest.kt | 2 +- src/main/kotlin/dto/response/AddressResponse.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/data/database/tables/AddressTable.kt b/src/main/kotlin/data/database/tables/AddressTable.kt index 67a9e3f..78d9153 100644 --- a/src/main/kotlin/data/database/tables/AddressTable.kt +++ b/src/main/kotlin/data/database/tables/AddressTable.kt @@ -8,6 +8,6 @@ object AddressTable: Table("user_address") { val entrance = integer("address_entrance") val floor = integer("address_floor") val apartment = integer("address_apartment") - val comment = text("address_comment") + val comment = text("address_comment").nullable() override val primaryKey: PrimaryKey = PrimaryKey(id) } \ No newline at end of file diff --git a/src/main/kotlin/dto/request/AddAddressRequest.kt b/src/main/kotlin/dto/request/AddAddressRequest.kt index 8138f4a..091e48b 100644 --- a/src/main/kotlin/dto/request/AddAddressRequest.kt +++ b/src/main/kotlin/dto/request/AddAddressRequest.kt @@ -8,5 +8,5 @@ data class AddAddressRequest( val entrance: Int, val floor: Int, val apartment: Int, - val comment: String + val comment: String? = null, ) \ No newline at end of file diff --git a/src/main/kotlin/dto/response/AddressResponse.kt b/src/main/kotlin/dto/response/AddressResponse.kt index 6fc0511..752bcc0 100644 --- a/src/main/kotlin/dto/response/AddressResponse.kt +++ b/src/main/kotlin/dto/response/AddressResponse.kt @@ -11,6 +11,6 @@ data class AddressResponse( val entrance: Int, val floor: Int, val apartment: Int, - val comment: String, + val comment: String?, val address: String, ) \ No newline at end of file