fix: migration not applying on db

This commit is contained in:
2025-09-22 22:33:05 +05:30
parent 13702d117a
commit d150af5d10
4 changed files with 29 additions and 34 deletions

View File

@@ -2,6 +2,8 @@ package utils
import (
"fmt"
"os"
"path"
"github.com/charmbracelet/lipgloss"
)
@@ -11,3 +13,14 @@ var ErrStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#F00"))
func ErrPrint(data string) {
fmt.Println(ErrStyle.Render(data))
}
var EnvyPath string
func Init() {
conf, err := os.UserConfigDir()
if err != nil {
panic("Couldn't find config directory:" + err.Error())
}
EnvyPath = path.Join(conf, "envy")
}