24 lines
543 B
Go
24 lines
543 B
Go
// SPDX-License-Identifier: MIT
|
|
|
|
// +build dev
|
|
|
|
/*
|
|
This is the development version of the migrations folder, where they are read directly from the local filesystem.
|
|
|
|
to use this pass '-tags dev' to your go build or test commands.
|
|
*/
|
|
|
|
package sqlite
|
|
|
|
import (
|
|
"net/http"
|
|
"path/filepath"
|
|
|
|
"go.mindeco.de/goutils"
|
|
)
|
|
|
|
// absolute path of where this package is located
|
|
var pkgDir = goutils.MustLocatePackage("github.com/ssb-ngi-pointer/go-ssb-room/admindb/sqlite")
|
|
|
|
var Migrations http.FileSystem = http.Dir(filepath.Join(pkgDir, "migrations"))
|