http://erosson.com/migrate/
The early version of tgmigrate gives turbogears developers a quick evaluation if sqlalchemy migrate is helpful for us.
Install
----------------
easy_install tgmigrate
Usage
----------------
After install, tgmigrate plug an "migrate" command into tg-admin console utility.
The basic syntax is ::
tg-admin migrate [command]
tgmigrate takes care the dburi and repository name for you.
The reference procedure is:
1. quickstart project as usual::
$ tg-admin quickstart -i -s demo
2. setup sqlalchemy dburi in demo/dev.cfg
3. create initial database
$ tg-admin sql create
4. create repository "migration"
$ tg-admin migrate create
note the default repository folder named "migration" is created in your project folder.
5. move your database to version control
$ tg-admin migrate version_control
or briefly::
$ tg-admin migrate vc
6. Now you could watch the current version in both database and repository
show repository version::
$ tg-admin migrate v
(tg-admin migrate version)
show database version::
$ tg-admin migrate dbv
(tg-admin migrate db_version)
then follow the migration doc http://erosson.com/migrate/docs/versioning.html to do the further stuff.
Please post your comments or suggestions on TurboGears google group http://groups.google.com/group/turbogears
reference
--------------
You could use::
$ tg-admin migrate help
to get all available commands and help
The available commands are
$ tg-admin migrate [command]
command = [
'help',
'create',
'script',
'commit',
'version',
'source',
'version_control',
'db_version',
'upgrade',
'downgrade',
'drop_version_control',
'manage',
'test']
Metadata
Release files for tgmigrate 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tgmigrate-0.2-py2.4.egg | Legacy Egg format | - | - | Details for tgmigrate-0.2-py2.4.egg |
Release files / tgmigrate-0.2-py2.4.egg
| Download URL | tgmigrate-0.2-py2.4.egg |
|---|---|
| Size | 6.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7452f4cf9251edabf47e0f9b38caa7f4207d857485e4cfacf146525eb3c4fd9d
|
|
BLAKE2b-256 checksum How to use checksums |
595e0328e5c176d6f31af1220c896c7cec0655382882549ba7c9d862961493fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tgmigrate 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.