require build tag to include sqlite (#4213)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
f915a20c64
commit
824724387c
4 changed files with 6 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -12,7 +12,7 @@ ifeq ($(BUILD_NUMBER),)
|
||||||
BUILD_DATE := n/a
|
BUILD_DATE := n/a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILD_TAGS += json1
|
BUILD_TAGS += json1 sqlite3
|
||||||
|
|
||||||
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)"
|
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)"
|
||||||
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)"
|
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)"
|
||||||
|
|
|
@ -10,7 +10,6 @@ import (
|
||||||
sq "github.com/Masterminds/squirrel"
|
sq "github.com/Masterminds/squirrel"
|
||||||
_ "github.com/lib/pq" // postgres driver
|
_ "github.com/lib/pq" // postgres driver
|
||||||
"github.com/mattermost/focalboard/server/model"
|
"github.com/mattermost/focalboard/server/model"
|
||||||
_ "github.com/mattn/go-sqlite3" // sqlite driver
|
|
||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,7 +12,6 @@ import (
|
||||||
sq "github.com/Masterminds/squirrel"
|
sq "github.com/Masterminds/squirrel"
|
||||||
_ "github.com/lib/pq" // postgres driver
|
_ "github.com/lib/pq" // postgres driver
|
||||||
"github.com/mattermost/focalboard/server/model"
|
"github.com/mattermost/focalboard/server/model"
|
||||||
_ "github.com/mattn/go-sqlite3" // sqlite driver
|
|
||||||
|
|
||||||
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
"github.com/mattermost/mattermost-server/v6/shared/mlog"
|
||||||
)
|
)
|
||||||
|
|
5
server/services/store/sqlstore/sqlite.go
Normal file
5
server/services/store/sqlstore/sqlite.go
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
//go:build sqlite3
|
||||||
|
|
||||||
|
package sqlstore
|
||||||
|
|
||||||
|
import _ "github.com/mattn/go-sqlite3" // sqlite driver
|
Loading…
Reference in a new issue