From 6de6f78fe2362dcde71d8f36a1bd0d39dcb2a361 Mon Sep 17 00:00:00 2001 From: luevard <99143550+saucepommefrite@users.noreply.github.com> Date: Thu, 30 May 2024 13:42:37 +0200 Subject: [PATCH] :sparkles: [no_ci] Add SQL table for user image --- .../kotlin/allin/data/postgres/PostgresDataSource.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt b/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt index 41b075b..8df9ea3 100644 --- a/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt +++ b/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt @@ -125,6 +125,16 @@ class PostgresDataSource : AllInDataSource() { ) """.trimIndent() ) + + database.execute( + """ + CREATE TABLE IF NOT EXISTS public.userimage + ( + user_id VARCHAR(255) PRIMARY KEY, + image bytea + ) + """.trimIndent() + ) } override val userDataSource: UserDataSource by lazy { PostgresUserDataSource(database) }