[FIX] Order 1 and Order 2, node size ok.
[gargantext.git] / src / Gargantext / Database / Schema / NodeNodeNgrams2.hs
index 40cd63848b1de0023a9a41f5278037daf74e7d97..e65597b20f498be86e927caf2519d19935bc925d 100644 (file)
@@ -12,12 +12,7 @@ Portability : POSIX
 {-# OPTIONS_GHC -fno-warn-orphans #-}
 
 {-# LANGUAGE Arrows                 #-}
-{-# LANGUAGE FlexibleContexts       #-}
-{-# LANGUAGE FlexibleInstances      #-}
 {-# LANGUAGE FunctionalDependencies #-}
-{-# LANGUAGE MultiParamTypeClasses  #-}
-{-# LANGUAGE NoImplicitPrelude      #-}
-{-# LANGUAGE RankNTypes             #-}
 {-# LANGUAGE TemplateHaskell        #-}
 
 module Gargantext.Database.Schema.NodeNodeNgrams2
@@ -25,7 +20,6 @@ module Gargantext.Database.Schema.NodeNodeNgrams2
 
 import Gargantext.Database.Schema.Prelude
 import Gargantext.Database.Schema.NodeNgrams (NodeNgramsId)
-import Gargantext.Database.Admin.Types.Node (pgNodeId)
 import Gargantext.Database.Admin.Types.Node
 import Prelude
 
@@ -59,9 +53,9 @@ makeLenses ''NodeNodeNgrams2Poly
 nodeNodeNgrams2Table :: Table NodeNodeNgrams2Write NodeNodeNgrams2Read
 nodeNodeNgrams2Table  = Table "node_node_ngrams2"
                           ( pNodeNodeNgrams2 NodeNodeNgrams2
-                               { _nnng2_node_id        = required "node_id"
-                               , _nnng2_nodengrams_id  = required "nodengrams_id"
-                               , _nnng2_weight         = required "weight"
+                               { _nnng2_node_id        = requiredTableField "node_id"
+                               , _nnng2_nodengrams_id  = requiredTableField "nodengrams_id"
+                               , _nnng2_weight         = requiredTableField "weight"
                                }
                           )