Inspect your models and database and print Print SQL statements for changes in
models since the table was created/fixed. Supported changes are:
- ALTER TABLE to add/drop columns
- ALTER TABLE to change the length of VARCHAR fields
- ALTER TABLE to change default values
- CREATE INDEX for new ForeignKey and OneToOne fields
- CREATE TABLE for new m2m relations
Not (yet) supported:
- Databases other than MySQL (sqlite will never be supported, others can
possibly be supported, patches welcome)
- Changes in unique_together
- Field type changes (they will be detected and warned about though)
- Index additions/removals
- Deleting old m2m tables
- Parent changes in multi-table inheritance
If you need those, a complete migration framework like django-south is a
better option for you.
Install: python setup.py install
Usage:
- Add 'sqlfixtables' to INSTALLED_APPS
- Run: ./manage.py sqlfixtables <appname>
Compatible with django 1.0-1.4. Tested only on MySQL, bugreports or
testreports for other databases are welcome.
Metadata
Release files for django-sqlfixtables 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-sqlfixtables-1.2.tar.gz | 4.2 kB | Without provenance | Details for django-sqlfixtables-1.2.tar.gz |
Release files / django-sqlfixtables-1.2.tar.gz
| Download URL | django-sqlfixtables-1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6a1b759d1c5315bcfb29cdd3b94dbb128fdb54e054b67ee1666aec30e885435
|
|
BLAKE2b-256 checksum How to use checksums |
d1c0bb396ec2431acd09e45975e1ea2cf632a0107e93ca6f8cb5e2345afb96b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-sqlfixtables 1.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.