Skip to content

Commit

Permalink
Move migrations to internal
Browse files Browse the repository at this point in the history
boreq committed Nov 15, 2023
1 parent 2241187 commit d0d2e35
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/event-service/di/inject_migrations.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package di

import (
"github.com/google/wire"
"github.com/planetary-social/nos-event-service/migrations"
"github.com/planetary-social/nos-event-service/internal/migrations"
"github.com/planetary-social/nos-event-service/service/adapters"
"github.com/planetary-social/nos-event-service/service/adapters/sqlite"
)
2 changes: 1 addition & 1 deletion cmd/event-service/di/service.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package di

import (
"context"
"github.com/planetary-social/nos-event-service/internal/migrations"

"github.com/boreq/errors"
"github.com/hashicorp/go-multierror"
"github.com/planetary-social/nos-event-service/migrations"
"github.com/planetary-social/nos-event-service/service/app"
"github.com/planetary-social/nos-event-service/service/ports/http"
"github.com/planetary-social/nos-event-service/service/ports/memorypubsub"
2 changes: 1 addition & 1 deletion cmd/event-service/di/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@ package migrations_test
import (
"context"
"fmt"
"github.com/planetary-social/nos-event-service/internal/migrations"
"testing"

"github.com/planetary-social/nos-event-service/internal"
"github.com/planetary-social/nos-event-service/internal/fixtures"
"github.com/planetary-social/nos-event-service/internal/logging"
"github.com/planetary-social/nos-event-service/migrations"
"github.com/stretchr/testify/require"
)

2 changes: 1 addition & 1 deletion service/adapters/sqlite/migrations.go
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@ package sqlite
import (
"context"
"database/sql"
"github.com/planetary-social/nos-event-service/internal/migrations"

"github.com/boreq/errors"
"github.com/planetary-social/nos-event-service/migrations"
)

func NewMigrations(fns *MigrationFns) (migrations.Migrations, error) {
2 changes: 1 addition & 1 deletion service/adapters/sqlite/migrations_storage.go
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@ package sqlite
import (
"database/sql"
"encoding/json"
"github.com/planetary-social/nos-event-service/internal/migrations"

"github.com/boreq/errors"
"github.com/planetary-social/nos-event-service/migrations"
)

type MigrationsStorage struct {
2 changes: 1 addition & 1 deletion service/adapters/sqlite/migrations_storage_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package sqlite_test

import (
"github.com/planetary-social/nos-event-service/internal/migrations"
"testing"

"github.com/planetary-social/nos-event-service/internal/fixtures"
"github.com/planetary-social/nos-event-service/migrations"
"github.com/stretchr/testify/require"
)

2 changes: 1 addition & 1 deletion service/adapters/sqlite/sqlite.go
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@ package sqlite
import (
"context"
"database/sql"
"github.com/planetary-social/nos-event-service/internal/migrations"

"github.com/boreq/errors"
"github.com/hashicorp/go-multierror"
_ "github.com/mattn/go-sqlite3"
"github.com/planetary-social/nos-event-service/migrations"
"github.com/planetary-social/nos-event-service/service/app"
"github.com/planetary-social/nos-event-service/service/config"
)

0 comments on commit d0d2e35

Please sign in to comment.