Skip to content

Commit

Permalink
chore: upgrade go libs
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 29, 2024
1 parent 744002c commit 3170a6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10
github.com/bluele/gcache v0.0.2
github.com/dop251/goja v0.0.0-20241009100908-5f46f2705ca3
github.com/formancehq/go-libs/v2 v2.0.1-0.20241028111527-8a91fabc3076
github.com/formancehq/go-libs/v2 v2.0.1-0.20241029111513-edb146ee0db7
github.com/formancehq/ledger/pkg/client v0.0.0-00010101000000-000000000000
github.com/go-chi/chi/v5 v5.1.0
github.com/go-chi/cors v1.2.1
Expand Down Expand Up @@ -51,6 +51,7 @@ require (

require (
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/jackc/pgxlisten v0.0.0-20241005155529-9d952acd6a6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/formancehq/go-libs/v2 v2.0.1-0.20241028111527-8a91fabc3076 h1:WVNaSXBRqV3oM9R79GK7hWSKaXJbNF5PPQrwvXhBKAY=
github.com/formancehq/go-libs/v2 v2.0.1-0.20241028111527-8a91fabc3076/go.mod h1:LtNas5a+aL/oK2Qfsy39QngT6dsa2fUbSTYbCZY1eAY=
github.com/formancehq/go-libs/v2 v2.0.1-0.20241029111513-edb146ee0db7 h1:OZz4N9nIj814aIgpqIvojndtae+N9Vqj5MJgKPIzJ5Y=
github.com/formancehq/go-libs/v2 v2.0.1-0.20241029111513-edb146ee0db7/go.mod h1:DTqSp28pYPZa4O1WrOg3kobhgTHdk9geGtxnws9EViM=
github.com/formancehq/numscript v0.0.9-0.20241009144012-1150c14a1417 h1:LOd5hxnXDIBcehFrpW1OnXk+VSs0yJXeu1iAOO+Hji4=
github.com/formancehq/numscript v0.0.9-0.20241009144012-1150c14a1417/go.mod h1:btuSv05cYwi9BvLRxVs5zrunU+O1vTgigG1T6UsawcY=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
Expand Down Expand Up @@ -192,6 +192,8 @@ github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7Ulw
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
github.com/jackc/pgx/v5 v5.7.1 h1:x7SYsPBYDkHDksogeSmZZ5xzThcTgRz++I5E+ePFUcs=
github.com/jackc/pgx/v5 v5.7.1/go.mod h1:e7O26IywZZ+naJtWWos6i6fvWK+29etgITqrqHLfoZA=
github.com/jackc/pgxlisten v0.0.0-20241005155529-9d952acd6a6c h1:/u9tWJZ5d+RnlpVuvf352pGb+CzTrJP+r+ETy4JEHyo=
github.com/jackc/pgxlisten v0.0.0-20241005155529-9d952acd6a6c/go.mod h1:EqjCOzkITPCEI0My7BdE2xm3r0fZ7OZycVDP+ki1ASA=
github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=
github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/jamiealquiza/tachymeter v2.0.0+incompatible h1:mGiF1DGo8l6vnGT8FXNNcIXht/YmjzfraiUprXYwJ6g=
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/bucket/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
var MigrationsFS embed.FS

func GetMigrator(db *bun.DB, name string) *migrations.Migrator {
migrator := migrations.NewMigrator(db, migrations.WithSchema(name, true))
migrator := migrations.NewMigrator(db, migrations.WithSchema(name))
migrations, err := migrations.CollectMigrations(MigrationsFS, name)
if err != nil {
panic(err)
Expand Down
4 changes: 2 additions & 2 deletions internal/storage/driver/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func GetMigrator(db *bun.DB) *migrations.Migrator {

// configuration table has been removed, we keep the model to keep migrations consistent but the table is now removed
// configuration table has been removed, we keep the model to keep migrations consistent but the table is not used anymore.
type configuration struct {
bun.BaseModel `bun:"_system.configuration,alias:configuration"`

Expand All @@ -24,7 +24,7 @@ func GetMigrator(db *bun.DB) *migrations.Migrator {
AddedAt time.Time `bun:"addedAt,type:timestamp"`
}

migrator := migrations.NewMigrator(db, migrations.WithSchema(SchemaSystem, true))
migrator := migrations.NewMigrator(db, migrations.WithSchema(SchemaSystem))
migrator.RegisterMigrations(
migrations.Migration{
Name: "Init schema",
Expand Down

0 comments on commit 3170a6e

Please sign in to comment.