Skip to content

Commit e38e42a

Browse files
committed
Update namespace
1 parent 68654aa commit e38e42a

14 files changed

+26
-23
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> SQL Schema migration tool for [Go](https://golang.org/). Based on [gorp](https://github.com/go-gorp/gorp) and [goose](https://bitbucket.org/liamstask/goose).
44
5-
[![Build Status](https://travis-ci.org/rubenv/sql-migrate.svg?branch=master)](https://travis-ci.org/rubenv/sql-migrate) [![GoDoc](https://godoc.org/github.com/rubenv/sql-migrate?status.svg)](https://godoc.org/github.com/rubenv/sql-migrate)
5+
[![Build Status](https://travis-ci.org/aman00323/sql-migrate.svg?branch=master)](https://travis-ci.org/aman00323/sql-migrate) [![GoDoc](https://godoc.org/github.com/aman00323/sql-migrate?status.svg)](https://godoc.org/github.com/aman00323/sql-migrate)
66

77
Using [modl](https://github.com/jmoiron/modl)? Check out [modl-migrate](https://github.com/rubenv/modl-migrate).
88

@@ -22,7 +22,7 @@ Using [modl](https://github.com/jmoiron/modl)? Check out [modl-migrate](https://
2222
To install the library and command line program, use the following:
2323

2424
```bash
25-
go get -v github.com/rubenv/sql-migrate/...
25+
go get -v github.com/aman00323/sql-migrate/...
2626
```
2727

2828
## Usage
@@ -138,7 +138,7 @@ Oracle Driver is [oci8](https://github.com/mattn/go-oci8), it is not pure Go cod
138138
To install the library and command line program, use the following:
139139

140140
```bash
141-
go get -tags oracle -v github.com/rubenv/sql-migrate/...
141+
go get -tags oracle -v github.com/aman00323/sql-migrate/...
142142
```
143143

144144
```yml
@@ -158,7 +158,7 @@ To install the library and command line program, use the following:
158158

159159
1. Install sql-migrate
160160
```bash
161-
go get -tags godror -v github.com/rubenv/sql-migrate/...
161+
go get -tags godror -v github.com/aman00323/sql-migrate/...
162162
```
163163

164164
2. Download Oracle Office Client(e.g. macos, click [Instant Client](https://www.oracle.com/database/technologies/instant-client/downloads.html) if you are other system)
@@ -185,7 +185,7 @@ development:
185185
Import sql-migrate into your application:
186186

187187
```go
188-
import "github.com/rubenv/sql-migrate"
188+
import "github.com/aman00323/sql-migrate"
189189
```
190190

191191
Set up a source of migrations, this can be from memory, from a set of files, from bindata (more on that later), or from any library that implements [`http.FileSystem`](https://godoc.org/net/http#FileSystem):
@@ -247,7 +247,7 @@ fmt.Printf("Applied %d migrations!\n", n)
247247

248248
Note that `n` can be greater than `0` even if there is an error: any migration that succeeded will remain applied even if a later one fails.
249249

250-
Check [the GoDoc reference](https://godoc.org/github.com/rubenv/sql-migrate) for the full documentation.
250+
Check [the GoDoc reference](https://godoc.org/github.com/aman00323/sql-migrate) for the full documentation.
251251

252252
## Writing migrations
253253
Migrations are defined in SQL files, which contain a set of SQL statements. Special comments are used to distinguish up and down migrations.

doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Installation
1616
1717
To install the library and command line program, use the following:
1818
19-
go get -v github.com/rubenv/sql-migrate/...
19+
go get -v github.com/aman00323/sql-migrate/...
2020
2121
Command-line tool
2222
@@ -93,7 +93,7 @@ Library
9393
9494
Import sql-migrate into your application:
9595
96-
import "github.com/rubenv/sql-migrate"
96+
import "github.com/aman00323/sql-migrate"
9797
9898
Set up a source of migrations, this can be from memory, from a set of files or from bindata (more on that later):
9999

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/rubenv/sql-migrate
1+
module github.com/aman00323/sql-migrate
22

33
go 1.16
44

migrate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"strings"
1616
"time"
1717

18-
"github.com/rubenv/sql-migrate/sqlparse"
18+
"github.com/aman00323/sql-migrate/sqlparse"
1919
"gopkg.in/gorp.v1"
2020
)
2121

@@ -732,7 +732,7 @@ func (ms MigrationSet) getMigrationDbMap(db *sql.DB, dialect string) (*gorp.DbMa
732732

733733
// When using the mysql driver, make sure that the parseTime option is
734734
// configured, otherwise it won't map time columns to time.Time. See
735-
// https://github.com/rubenv/sql-migrate/issues/2
735+
// https://github.com/aman00323/sql-migrate/issues/2
736736
if dialect == "mysql" {
737737
var out *time.Time
738738
err := db.QueryRow("SELECT NOW()").Scan(&out)

sql-migrate/command_common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/rubenv/sql-migrate"
6+
migrate "github.com/aman00323/sql-migrate"
77
)
88

99
func ApplyMigrations(dir migrate.MigrationDirection, dryrun bool, limit int) error {

sql-migrate/command_down.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"strings"
66

7-
"github.com/rubenv/sql-migrate"
7+
migrate "github.com/aman00323/sql-migrate"
88
)
99

1010
type DownCommand struct {

sql-migrate/command_redo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"strings"
77

8-
migrate "github.com/rubenv/sql-migrate"
8+
migrate "github.com/aman00323/sql-migrate"
99
)
1010

1111
type RedoCommand struct {

sql-migrate/command_skip.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"strings"
77

8-
"github.com/rubenv/sql-migrate"
8+
migrate "github.com/aman00323/sql-migrate"
99
)
1010

1111
type SkipCommand struct {

sql-migrate/command_status.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strings"
88
"time"
99

10+
migrate "github.com/aman00323/sql-migrate"
1011
"github.com/olekukonko/tablewriter"
11-
"github.com/rubenv/sql-migrate"
1212
)
1313

1414
type StatusCommand struct {

sql-migrate/command_up.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"strings"
66

7-
"github.com/rubenv/sql-migrate"
7+
migrate "github.com/aman00323/sql-migrate"
88
)
99

1010
type UpCommand struct {

sql-migrate/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
"io/ioutil"
99
"os"
1010

11-
"github.com/rubenv/sql-migrate"
11+
"github.com/aman00323/sql-migrate"
12+
migrate "github.com/aman00323/sql-migrate"
1213
"gopkg.in/gorp.v1"
1314
"gopkg.in/yaml.v2"
1415

sql-migrate/godror.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build godror
12
// +build godror
23

34
// godror is another oracle driver
@@ -9,8 +10,8 @@
910
package main
1011

1112
import (
13+
migrate "github.com/aman00323/sql-migrate"
1214
_ "github.com/godror/godror"
13-
migrate "github.com/rubenv/sql-migrate"
1415
)
1516

1617
func init() {

sql-migrate/oracle.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
//go:build oracle
12
// +build oracle
23

34
package main
45

56
import (
7+
migrate "github.com/aman00323/sql-migrate"
68
_ "github.com/mattn/go-oci8"
7-
migrate "github.com/rubenv/sql-migrate"
89
)
910

1011
func init() {

sqlparse/sqlparse.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ var (
3535
func errNoTerminator() error {
3636
if len(LineSeparator) == 0 {
3737
return errors.New(`ERROR: The last statement must be ended by a semicolon or '-- +migrate StatementEnd' marker.
38-
See https://github.com/rubenv/sql-migrate for details.`)
38+
See https://github.com/aman00323/sql-migrate for details.`)
3939
}
4040

4141
return errors.New(fmt.Sprintf(`ERROR: The last statement must be ended by a semicolon, a line whose contents are %q, or '-- +migrate StatementEnd' marker.
42-
See https://github.com/rubenv/sql-migrate for details.`, LineSeparator))
42+
See https://github.com/aman00323/sql-migrate for details.`, LineSeparator))
4343
}
4444

4545
// Checks the line to see if the line has a statement-ending semicolon
@@ -221,7 +221,7 @@ func ParseMigration(r io.ReadSeeker) (*ParsedMigration, error) {
221221

222222
if currentDirection == directionNone {
223223
return nil, errors.New(`ERROR: no Up/Down annotations found, so no statements were executed.
224-
See https://github.com/rubenv/sql-migrate for details.`)
224+
See https://github.com/aman00323/sql-migrate for details.`)
225225
}
226226

227227
// allow comment without sql instruction. Example:

0 commit comments

Comments
 (0)