Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46e6c1272d | ||
|
|
87ae7265f4 |
@@ -1,6 +1,6 @@
|
||||
# migrate
|
||||
|
||||
`migrate` is a package for SQL datbase migrations in the spirit of dbstore(rsc.io/dbstore) it is intended to keep its footprint small, requiring only an additional table in the database there is no rollback support as you should only ever roll forward. Sqlite3 support is provided, support for other datbases can be added by implementing the `Dialect` interface
|
||||
`migrate` is a package for SQL datbase migrations in the spirit of [dbstore](rsc.io/dbstore). It is intended to keep its footprint small, requiring only an additional table in the database there is no rollback support as you should only ever roll forward. sqlite3 support is provided, support for other datbases can be added by implementing the `Dialect` interface
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -36,7 +36,7 @@ records :=
|
||||
},
|
||||
}
|
||||
|
||||
err = migrate.Apply(db, migtate.Sqlite3(), records)
|
||||
err = migrate.Apply(db, migrate.Sqlite3(), records)
|
||||
...
|
||||
|
||||
```
|
||||
@@ -49,4 +49,4 @@ Please make sure to update tests as appropriate.
|
||||
## License
|
||||
[MIT](https://choosealicense.com/licenses/mit/)
|
||||
|
||||
courtesey of https://www.makeareadme.com
|
||||
courtesey of https://www.makeareadme.com
|
||||
|
||||
Reference in New Issue
Block a user