Skip to content

Commit 80ffed9

Browse files
committed
new db types (dictionary,basics,concurrent map,uuid)
ColumnDefinition entity system migration fixes cascade foreign keys fulltext indexes
1 parent 8a94e37 commit 80ffed9

File tree

12 files changed

+1033
-230
lines changed

12 files changed

+1033
-230
lines changed

evo.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package evo
22

33
import (
44
"github.com/getevo/evo/v2/lib/application"
5+
"github.com/getevo/evo/v2/lib/args"
6+
"github.com/getevo/evo/v2/lib/log"
57
"github.com/getevo/evo/v2/lib/settings"
6-
"log"
78

89
dbo "github.com/getevo/evo/v2/lib/db"
910
"github.com/getevo/evo/v2/lib/generic"
@@ -48,6 +49,17 @@ func Setup() {
4849
// Run start EVO Server
4950
func Run() {
5051
Application.Run()
52+
53+
//do database migrations
54+
if args.Exists("--migration-do") {
55+
err := dbo.DoMigration()
56+
if err != nil {
57+
log.Fatal("unable to perform database migrations: ", err)
58+
} else {
59+
log.Info("database migrations performed successfully")
60+
}
61+
}
62+
5163
if Any != nil {
5264
app.Use(func(ctx *fiber.Ctx) error {
5365
r := Upgrade(ctx)

go.mod

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22
55
toolchain go1.22.0
66

77
require (
8-
github.com/alecthomas/repr v0.2.0
8+
github.com/alecthomas/repr v0.4.0
99
github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de
1010
github.com/awoodbeck/strftime v0.0.0-20180221155908-016cde65fcde
1111
github.com/aws/aws-sdk-go-v2 v1.18.0
@@ -14,30 +14,33 @@ require (
1414
github.com/fatih/structs v1.1.0
1515
github.com/ganbarodigital/go_glob v1.0.0
1616
github.com/getevo/json v0.0.0-20240816130540-f0ea83b195d9
17+
github.com/getevo/restify v0.0.0-20241218131058-fbfe13ac4b80
1718
github.com/go-redis/redis/v8 v8.11.5
18-
github.com/gofiber/fiber/v2 v2.51.0
19-
github.com/gofiber/utils/v2 v2.0.0-beta.1
20-
github.com/iancoleman/strcase v0.2.0
19+
github.com/gofiber/fiber/v2 v2.52.5
20+
github.com/gofiber/utils/v2 v2.0.0-beta.6
21+
github.com/google/uuid v1.6.0
22+
github.com/iancoleman/strcase v0.3.0
2123
github.com/jlaffaye/ftp v0.1.0
22-
github.com/kelindar/binary v1.0.17
24+
github.com/kelindar/binary v1.0.19
2325
github.com/nats-io/nats.go v1.31.0
24-
github.com/otiai10/copy v1.9.0
26+
github.com/otiai10/copy v1.14.0
2527
github.com/pkg/sftp v1.13.5
2628
github.com/segmentio/kafka-go v0.4.39
27-
github.com/stretchr/testify v1.8.2
28-
github.com/tidwall/gjson v1.7.4
29-
github.com/valyala/fasthttp v1.50.0
30-
golang.org/x/crypto v0.16.0
31-
golang.org/x/text v0.14.0
29+
github.com/stretchr/testify v1.9.0
30+
github.com/tidwall/gjson v1.17.3
31+
github.com/valyala/fasthttp v1.55.0
32+
golang.org/x/crypto v0.26.0
33+
golang.org/x/text v0.17.0
3234
gopkg.in/yaml.v3 v3.0.1
33-
gorm.io/driver/mysql v1.4.7
34-
gorm.io/driver/sqlite v1.4.4
35-
gorm.io/driver/sqlserver v1.4.2
36-
gorm.io/gorm v1.24.6
35+
gorm.io/driver/mysql v1.5.7
36+
gorm.io/driver/sqlite v1.5.6
37+
gorm.io/driver/sqlserver v1.5.3
38+
gorm.io/gorm v1.25.11
3739
)
3840

3941
require (
40-
github.com/andybalholm/brotli v1.0.5 // indirect
42+
filippo.io/edwards25519 v1.1.0 // indirect
43+
github.com/andybalholm/brotli v1.1.0 // indirect
4144
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 // indirect
4245
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 // indirect
4346
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 // indirect
@@ -51,32 +54,33 @@ require (
5154
github.com/davecgh/go-spew v1.1.1 // indirect
5255
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
5356
github.com/fsnotify/fsnotify v1.6.0 // indirect
54-
github.com/go-sql-driver/mysql v1.7.0 // indirect
57+
github.com/getevo/postman v0.0.0-20240821202756-0e5fab66b666 // indirect
58+
github.com/go-sql-driver/mysql v1.8.1 // indirect
5559
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
5660
github.com/golang-sql/sqlexp v0.1.0 // indirect
57-
github.com/google/uuid v1.4.0 // indirect
5861
github.com/hashicorp/errwrap v1.1.0 // indirect
5962
github.com/hashicorp/go-multierror v1.1.1 // indirect
6063
github.com/jinzhu/inflection v1.0.0 // indirect
6164
github.com/jinzhu/now v1.1.5 // indirect
62-
github.com/klauspost/compress v1.17.3 // indirect
65+
github.com/klauspost/compress v1.17.9 // indirect
6366
github.com/kr/fs v0.1.0 // indirect
6467
github.com/kr/pretty v0.3.0 // indirect
6568
github.com/mattn/go-colorable v0.1.13 // indirect
6669
github.com/mattn/go-isatty v0.0.20 // indirect
67-
github.com/mattn/go-runewidth v0.0.15 // indirect
68-
github.com/mattn/go-sqlite3 v1.14.15 // indirect
69-
github.com/microsoft/go-mssqldb v0.19.0 // indirect
70+
github.com/mattn/go-runewidth v0.0.16 // indirect
71+
github.com/mattn/go-sqlite3 v1.14.22 // indirect
72+
github.com/microsoft/go-mssqldb v1.7.2 // indirect
7073
github.com/nats-io/nkeys v0.4.6 // indirect
7174
github.com/nats-io/nuid v1.0.1 // indirect
7275
github.com/pierrec/lz4/v4 v4.1.18 // indirect
7376
github.com/pmezard/go-difflib v1.0.0 // indirect
74-
github.com/rivo/uniseg v0.2.0 // indirect
77+
github.com/rivo/uniseg v0.4.7 // indirect
7578
github.com/rogpeppe/go-internal v1.10.0 // indirect
76-
github.com/tidwall/match v1.0.3 // indirect
77-
github.com/tidwall/pretty v1.1.0 // indirect
79+
github.com/tidwall/match v1.1.1 // indirect
80+
github.com/tidwall/pretty v1.2.1 // indirect
7881
github.com/valyala/bytebufferpool v1.0.0 // indirect
7982
github.com/valyala/tcplisten v1.0.0 // indirect
80-
golang.org/x/sys v0.15.0 // indirect
83+
golang.org/x/sync v0.8.0 // indirect
84+
golang.org/x/sys v0.24.0 // indirect
8185
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
8286
)

0 commit comments

Comments
 (0)