add $fileName to values
This commit is contained in:
@@ -127,10 +127,10 @@ initRepo root ref = do
|
||||
let cls =
|
||||
M.toList . M.unionsWith (++) $
|
||||
map (\f -> M.singleton (takeDirectory f) [f]) fs
|
||||
colls <- forM cls $ \(path, (file : files)) -> do
|
||||
colls <- forM cls $ \(path, files) -> do
|
||||
(value : values) <- do
|
||||
liftIO $ Q.withStore root ref do
|
||||
mapM (Q.withCommit cid . Q.readFile) (file : files)
|
||||
liftIO . Q.withStore root ref . Q.withCommit cid $ do
|
||||
Q.query (fromString ("SELECT " <> path <> " FROM " <> path))
|
||||
let schema = U.autoTypes' value values
|
||||
pure $ Collection path files schema
|
||||
let schemaVersion =
|
||||
|
||||
Reference in New Issue
Block a user