Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

501 B
Raw Blame
package main

import (
	"context"
	"log/slog"
	"os"

	"github.com/simplexai-labs/linger/apps/teamhub/internal/config"
	"github.com/simplexai-labs/linger/apps/teamhub/internal/platform/migrations"
)

func main() {
	cfg, err := config.LoadMigration()
	if err != nil {
		slog.Error("load config", "error", err)
		os.Exit(1)
	}
	if err := migrations.Up(context.Background(), cfg.DatabaseURL); err != nil {
		slog.Error("migrate", "error", err)
		os.Exit(1)
	}
	slog.Info("database migrations complete")
}