Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamidreza <70919649+hamid-gh98@users.noreply.github.com>2023-07-01 15:26:43 +0300
committerGitHub <noreply@github.com>2023-07-01 15:26:43 +0300
commit10283193862e7bd36b20e6b2c41411d251961c27 (patch)
tree892d133611c08e01db4b372645d8bcf579635739 /database
parentf726474a5db3fa68eeb78729a58629382f6d2699 (diff)
🚀 Some improvements for x-ui.sh and ip job (#665)
Diffstat (limited to 'database')
-rw-r--r--database/db.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/db.go b/database/db.go
index 97ef2160..aaeb8bd9 100644
--- a/database/db.go
+++ b/database/db.go
@@ -6,6 +6,7 @@ import (
"io/fs"
"os"
"path"
+
"x-ui/config"
"x-ui/database/model"
"x-ui/xray"
@@ -26,7 +27,6 @@ var initializers = []func() error{
}
func initUser() error {
-
err := db.AutoMigrate(&model.User{})
if err != nil {
return err
@@ -54,9 +54,11 @@ func initInbound() error {
func initSetting() error {
return db.AutoMigrate(&model.Setting{})
}
+
func initInboundClientIps() error {
return db.AutoMigrate(&model.InboundClientIps{})
}
+
func initClientTraffic() error {
return db.AutoMigrate(&xray.ClientTraffic{})
}