Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Devoter committed Aug 21, 2019
1 parent 18a1634 commit 23b48a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ There is a simple way to declare the migrations slice:
// migrations/migrations.go
package migrations

import "github.com/Devoter/mongo-migrator/migrator/migration"
import "github.com/Devoter/mongo-migrator/migration"

// Migrations is a list of all available migrations.
var Migrations = []migration.Migration{}
Expand All @@ -70,7 +70,7 @@ import (

"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

func init() {
Expand Down Expand Up @@ -116,7 +116,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// InitializeMigrations initializes the database migrations collection.
Expand Down Expand Up @@ -145,7 +145,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// UpAuto applies all unapplied migrations.
Expand Down Expand Up @@ -176,7 +176,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// UpTo applyies all unapplied migrations to the target.
Expand Down Expand Up @@ -209,7 +209,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// Down reverts the last applied migration.
Expand Down Expand Up @@ -242,7 +242,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// Reset reverts all applied migrations.
Expand Down Expand Up @@ -275,7 +275,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// Version outputs the current database structure version.
Expand Down Expand Up @@ -308,7 +308,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

// SetVersion changes the current database structure version number to the target.
Expand Down Expand Up @@ -341,7 +341,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"

"github.com/Devoter/mongo-migrator/migrator"
"github.com/Devoter/mongo-migrator/migrator/migration"
"github.com/Devoter/mongo-migrator/migration"
)

func DirectCalls(client *mongo.Client, dbName string, migrations []migration.Migration, target int64) {
Expand Down

0 comments on commit 23b48a1

Please sign in to comment.