Initial multi-user support using namespaces

This commit is contained in:
Juan Font Alonso committed 2021-02-28 00:58:09 +01:00
1 parent 562e996996
commit b7655b1f68
6 files changed
+229 -41

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ func (h *Headscale) initDB() error {
db.Exec("create extension if not exists \"uuid-ossp\";")
db.AutoMigrate(&Machine{})
db.AutoMigrate(&KV{})
db.AutoMigrate(&Namespace{})
db.Close()
h.setValue("db_version", dbVersion)