From e813015ab242bea8c3281352d3aa3016a043e679 Mon Sep 17 00:00:00 2001 From: "arthur.valin" Date: Mon, 5 Feb 2024 17:21:39 +0100 Subject: [PATCH] try fix api pg enum --- .../main/kotlin/allin/data/postgres/PostgresDataSource.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt b/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt index 20794c2..c566306 100644 --- a/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt +++ b/Sources/src/main/kotlin/allin/data/postgres/PostgresDataSource.kt @@ -36,10 +36,10 @@ class PostgresDataSource : AllInDataSource() { database.Execute( """ - CREATE TYPE bet.status AS ENUM + CREATE TYPE betstatus AS ENUM ('InProgress', 'Waiting', 'Closing', 'Finished', 'Cancelled'); - CREATE TYPE bet.type AS ENUM + CREATE TYPE bettype AS ENUM ('Match', 'Binary', 'Custom'); CREATE TABLE IF not exists bet ( @@ -50,8 +50,8 @@ class PostgresDataSource : AllInDataSource() { sentencebet varchar(500), isprivate boolean, createdby varchar(250), - status bet.status, - type bet.type + status betstatus, + type bettype )""".trimIndent() )