Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-kennethreitz/records-migrate
A migration system for Records.
https://github.com/not-kennethreitz/records-migrate
forhumans kennethreitz postgres python records sql
Last synced: 8 days ago
JSON representation
A migration system for Records.
- Host: GitHub
- URL: https://github.com/not-kennethreitz/records-migrate
- Owner: not-kennethreitz
- License: apache-2.0
- Created: 2019-02-01T12:59:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T19:41:39.000Z (over 3 years ago)
- Last Synced: 2024-03-26T06:24:38.627Z (8 months ago)
- Topics: forhumans, kennethreitz, postgres, python, records, sql
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 29
- Watchers: 20
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Records-Migrate: a migration system for Records
A migration system for the [Records](https://github.com/kennethreitz/records) Python library.
## Intented Usage
Assuming `DATABASE_URL` is set:
$ records-migrate check
all migrations appear to be applied!$ records-migrate new
Created file migrations/0003.sql. Feel free to add a suffix to the file name.$ records-migrate apply
Applied migration 3/5...,,$ records-migrate schema
Dumps out SQL script for generating the schema.## Considerations
- Don't base migration order on file creation time, as Heroku strips the data on deploy.