diff --git a/Makefile b/Makefile index 294f9e105..a49551fd9 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifeq ($(BUILD_NUMBER),) BUILD_DATE := n/a 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.BuildDate=$(BUILD_DATE)" diff --git a/server/services/store/sqlstore/blocks.go b/server/services/store/sqlstore/blocks.go index e84d1b6ed..361128eca 100644 --- a/server/services/store/sqlstore/blocks.go +++ b/server/services/store/sqlstore/blocks.go @@ -10,7 +10,6 @@ import ( sq "github.com/Masterminds/squirrel" _ "github.com/lib/pq" // postgres driver "github.com/mattermost/focalboard/server/model" - _ "github.com/mattn/go-sqlite3" // sqlite driver "github.com/mattermost/mattermost-server/v6/shared/mlog" ) diff --git a/server/services/store/sqlstore/data_retention.go b/server/services/store/sqlstore/data_retention.go index 402df0fc6..519a2d7c1 100644 --- a/server/services/store/sqlstore/data_retention.go +++ b/server/services/store/sqlstore/data_retention.go @@ -12,7 +12,6 @@ import ( sq "github.com/Masterminds/squirrel" _ "github.com/lib/pq" // postgres driver "github.com/mattermost/focalboard/server/model" - _ "github.com/mattn/go-sqlite3" // sqlite driver "github.com/mattermost/mattermost-server/v6/shared/mlog" ) diff --git a/server/services/store/sqlstore/sqlite.go b/server/services/store/sqlstore/sqlite.go new file mode 100644 index 000000000..8f63feaa8 --- /dev/null +++ b/server/services/store/sqlstore/sqlite.go @@ -0,0 +1,5 @@ +//go:build sqlite3 + +package sqlstore + +import _ "github.com/mattn/go-sqlite3" // sqlite driver