From d5abbeef2174becda596dc11c080cddcd9383022 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 10 Aug 2019 11:40:01 +0200 Subject: [PATCH] beautiy init query --- src/Model/Product.hs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Model/Product.hs b/src/Model/Product.hs index 7a15f34..b6090aa 100644 --- a/src/Model/Product.hs +++ b/src/Model/Product.hs @@ -36,16 +36,16 @@ import Model.Amount initProduct :: PGS.Query initProduct = mconcat - [ "create table if not exists \"product\" (" - , "product_id serial primary key," - , "product_ident varchar(128) not null," - , "product_ml integer not null," - , "product_avatar integer," - , "product_supplier integer," - , "product_max_amount integer not null," - , "product_amount_per_crate integer not null," - , "product_price_per_crate integer," - , "product_art_nr varchar(128)" + [ "CREATE TABLE IF NOT EXISTS \"product\" (" + , "product_id SERIAL PRIMARY KEY," + , "product_ident TEXT NOT NULL," + , "product_ml INTEGER NOT NULL," + , "product_avatar INTEGER," + , "product_supplier INTEGER," + , "product_max_amount INTEGER NOT NULL," + , "product_amount_per_crate INTEGER NOT NULL," + , "product_price_per_crate INTEGER," + , "product_art_nr TEXT" , ")" ]