You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-34Lines changed: 42 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,19 @@
2
2
3
3
> 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).
The `table` setting is optional and will default to `gorp_migrations`.
@@ -112,6 +114,7 @@ $ sql-migrate status
112
114
```
113
115
114
116
#### Running Test Integrations
117
+
115
118
You can see how to run setups for different setups by executing the `.sh` files in [test-integration](test-integration/)
116
119
117
120
```bash
@@ -126,15 +129,16 @@ If you are using MySQL, you must append `?parseTime=true` to the `datasource` co
126
129
127
130
```yml
128
131
production:
129
-
dialect: mysql
130
-
datasource: root@/dbname?parseTime=true
131
-
dir: migrations/mysql
132
-
table: migrations
132
+
dialect: mysql
133
+
datasource: root@/dbname?parseTime=true
134
+
dir: migrations/mysql
135
+
table: migrations
133
136
```
134
137
135
138
See [here](https://github.com/go-sql-driver/mysql#parsetime) for more information.
136
139
137
140
### Oracle (oci8)
141
+
138
142
Oracle Driver is [oci8](https://github.com/mattn/go-oci8), it is not pure Go code and relies on Oracle Office Client ([Instant Client](https://www.oracle.com/database/technologies/instant-client/downloads.html)), more detailed information is in the [oci8 repo](https://github.com/mattn/go-oci8).
139
143
140
144
#### Install with Oracle support
@@ -147,43 +151,46 @@ go get -tags oracle -v github.com/rubenv/sql-migrate/...
147
151
148
152
```yml
149
153
development:
150
-
dialect: oci8
151
-
datasource: user/password@localhost:1521/sid
152
-
dir: migrations/oracle
153
-
table: migrations
154
+
dialect: oci8
155
+
datasource: user/password@localhost:1521/sid
156
+
dir: migrations/oracle
157
+
table: migrations
154
158
```
155
159
156
160
### Oracle (godror)
161
+
157
162
Oracle Driver is [godror](https://github.com/godror/godror), it is not pure Go code and relies on Oracle Office Client ([Instant Client](https://www.oracle.com/database/technologies/instant-client/downloads.html)), more detailed information is in the [godror repository](https://github.com/godror/godror).
158
163
159
164
#### Install with Oracle support
160
165
161
166
To install the library and command line program, use the following:
162
167
163
168
1. Install sql-migrate
169
+
164
170
```bash
165
171
go get -tags godror -v github.com/rubenv/sql-migrate/...
166
172
```
167
173
168
174
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)
0 commit comments