mirror of
https://github.com/usememos/memos.git
synced 2024-11-12 17:06:48 +03:00
chore: release mysql driver
This commit is contained in:
parent
4b91738f21
commit
d06d01cef2
@ -14,11 +14,6 @@ func NewDBDriver(profile *profile.Profile) (store.Driver, error) {
|
||||
var driver store.Driver
|
||||
var err error
|
||||
|
||||
// As mysql driver is not fully implemented, we use sqlite for now in prod mode.
|
||||
if profile.Mode == "prod" && profile.Driver != "sqlite" {
|
||||
return nil, errors.New("Only SQLite is supported in prod mode")
|
||||
}
|
||||
|
||||
switch profile.Driver {
|
||||
case "sqlite":
|
||||
driver, err = sqlite.NewDB(profile)
|
||||
|
Loading…
Reference in New Issue
Block a user