django-sb-simple-migrations


Namedjango-sb-simple-migrations JSON
Version 0.9.0 PyPI version JSON
download
home_pagehttps://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations
SummaryDjango migrations without unnecesary change alert triggers.
upload_time2024-08-31 08:48:31
maintainerNone
docs_urlNone
authorSoftButterfly Development Team
requires_python<4.0.0,>=3.9.0
licenseMIT
keywords softbutterfly django migrations
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            ![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)

![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/django-sb-simple-migrations)
![PyPI - Package version](https://img.shields.io/pypi/v/django-sb-simple-migrations)
![PyPI - Downloads](https://img.shields.io/pypi/dm/django-sb-simple-migrations)
![PyPI - MIT License](https://img.shields.io/pypi/l/django-sb-simple-migrations)

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cbdc556a2ca246d2b906dfc5e1195541)](https://app.codacy.com/gl/softbutterfly/django-sb-simple-migrations/dashboard?utm_source=gl&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/cbdc556a2ca246d2b906dfc5e1195541)](https://app.codacy.com/gl/softbutterfly/django-sb-simple-migrations/dashboard?utm_source=gl&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

# Django Simple Migrations

Django migrations without unnecesary change alert triggers.

This project was originally taken from [Pretix source code](https://github.com/pretix/pretix/tree/master/src/pretix/base/management/commands) and battle testet across many projects on [SoftButterfly](https://softbutterfly.io).

This package overrides the commands `makemigrations` and `migrate`, mainly to make that `makemigrations` doesn't create migrations on non-significant database model fields and avoid `migrate` warnings. As is stated in the source code

* `makemigrations`

  > Django, for theoretically very valid reasons, creates migrations for *every single thing* we change on a model. Even the `help_text`! This makes sense, as we don't know if any database backend unknown to us might actually use this information for its database schema.
  >
  > However, many projects only supports PostgreSQL, MySQL, MariaDB and SQLite and we can be pretty certain that some changes to models will never require a change to the database. In this case, not creating a migration for certain changes will save us some performance while applying them *and* allow for a cleaner git history. Win-win!
  >
  > Only caveat is that we need to do some dirty monkeypatching to achieve it...

* `migrate`

  > Django tries to be helpful by suggesting to run "makemigrations" in red font on every "migrate" run when there are things we have no migrations for. Usually, this is intended, and running "makemigrations" can really screw up the environment of a user, so we want to prevent novice users from doing that by going really dirty and filtering it from the output.

## Requirements

- Python 3.9, 3.10, 3.11, 3.12

## Install

```bash
pip install django-sb-simple-migrations
```

## Usage

Just add `django_sb_simple_migrations` to your `INSTALLED_APPS` settings

```
INSTALLED_APPS = [
  # ...
  "django_sb_simple_migrations",
  # ...
]
```

## Docs

- [Ejemplos](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/wikis)
- [Wiki](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/wikis)

## Changelog

All changes to versions of this library are listed in the [change history](CHANGELOG.md).

## Development

Check out our [contribution guide](CONTRIBUTING.md).

## Contributors

See the list of contributors [here](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/graphs/develop).

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations",
    "name": "django-sb-simple-migrations",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.0",
    "maintainer_email": null,
    "keywords": "Softbutterfly, Django, Migrations",
    "author": "SoftButterfly Development Team",
    "author_email": "dev@softbutterfly.io",
    "download_url": "https://files.pythonhosted.org/packages/03/79/2a398fc05e090197f71ebcf9a2a80680df87acce6870f4a44be7752445f3/django_sb_simple_migrations-0.9.0.tar.gz",
    "platform": null,
    "description": "![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)\n\n![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/django-sb-simple-migrations)\n![PyPI - Package version](https://img.shields.io/pypi/v/django-sb-simple-migrations)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/django-sb-simple-migrations)\n![PyPI - MIT License](https://img.shields.io/pypi/l/django-sb-simple-migrations)\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/cbdc556a2ca246d2b906dfc5e1195541)](https://app.codacy.com/gl/softbutterfly/django-sb-simple-migrations/dashboard?utm_source=gl&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/cbdc556a2ca246d2b906dfc5e1195541)](https://app.codacy.com/gl/softbutterfly/django-sb-simple-migrations/dashboard?utm_source=gl&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)\n\n# Django Simple Migrations\n\nDjango migrations without unnecesary change alert triggers.\n\nThis project was originally taken from [Pretix source code](https://github.com/pretix/pretix/tree/master/src/pretix/base/management/commands) and battle testet across many projects on [SoftButterfly](https://softbutterfly.io).\n\nThis package overrides the commands `makemigrations` and `migrate`, mainly to make that `makemigrations` doesn't create migrations on non-significant database model fields and avoid `migrate` warnings. As is stated in the source code\n\n* `makemigrations`\n\n  > Django, for theoretically very valid reasons, creates migrations for *every single thing* we change on a model. Even the `help_text`! This makes sense, as we don't know if any database backend unknown to us might actually use this information for its database schema.\n  >\n  > However, many projects only supports PostgreSQL, MySQL, MariaDB and SQLite and we can be pretty certain that some changes to models will never require a change to the database. In this case, not creating a migration for certain changes will save us some performance while applying them *and* allow for a cleaner git history. Win-win!\n  >\n  > Only caveat is that we need to do some dirty monkeypatching to achieve it...\n\n* `migrate`\n\n  > Django tries to be helpful by suggesting to run \"makemigrations\" in red font on every \"migrate\" run when there are things we have no migrations for. Usually, this is intended, and running \"makemigrations\" can really screw up the environment of a user, so we want to prevent novice users from doing that by going really dirty and filtering it from the output.\n\n## Requirements\n\n- Python 3.9, 3.10, 3.11, 3.12\n\n## Install\n\n```bash\npip install django-sb-simple-migrations\n```\n\n## Usage\n\nJust add `django_sb_simple_migrations` to your `INSTALLED_APPS` settings\n\n```\nINSTALLED_APPS = [\n  # ...\n  \"django_sb_simple_migrations\",\n  # ...\n]\n```\n\n## Docs\n\n- [Ejemplos](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/wikis)\n- [Wiki](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/wikis)\n\n## Changelog\n\nAll changes to versions of this library are listed in the [change history](CHANGELOG.md).\n\n## Development\n\nCheck out our [contribution guide](CONTRIBUTING.md).\n\n## Contributors\n\nSee the list of contributors [here](https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/graphs/develop).\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django migrations without unnecesary change alert triggers.",
    "version": "0.9.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/softbutterfly/django-sb-simple-migrations/issues",
        "Documentation": "https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations/-/wikis",
        "Download": "https://github.com/softbutterfly/django-sb-simple-migrations/archive/v0.9.0.tar.gz",
        "Homepage": "https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations",
        "Repository": "https://gitlab.com/softbutterfly/open-source/django-sb-simple-migrations"
    },
    "split_keywords": [
        "softbutterfly",
        " django",
        " migrations"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "432e94e67c4d53632e55ab86083216d38ebb265e10e474cecf4a9cbb96256a16",
                "md5": "dc608e6dab7bb6ca8fa84173763ce6fa",
                "sha256": "f60a8f6bbde0bd8877833d2c3dba1274cf1b8939a1fc0f3f99e4bb43186ed23a"
            },
            "downloads": -1,
            "filename": "django_sb_simple_migrations-0.9.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc608e6dab7bb6ca8fa84173763ce6fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 9793,
            "upload_time": "2024-08-31T08:48:29",
            "upload_time_iso_8601": "2024-08-31T08:48:29.533827Z",
            "url": "https://files.pythonhosted.org/packages/43/2e/94e67c4d53632e55ab86083216d38ebb265e10e474cecf4a9cbb96256a16/django_sb_simple_migrations-0.9.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "03792a398fc05e090197f71ebcf9a2a80680df87acce6870f4a44be7752445f3",
                "md5": "e79f39168f3d9b36f5d850b12e2850ab",
                "sha256": "28ca5f14c1ed944fd66c781af29cb85ed1197092680e704449389ca9faaefdef"
            },
            "downloads": -1,
            "filename": "django_sb_simple_migrations-0.9.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e79f39168f3d9b36f5d850b12e2850ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 7121,
            "upload_time": "2024-08-31T08:48:31",
            "upload_time_iso_8601": "2024-08-31T08:48:31.168940Z",
            "url": "https://files.pythonhosted.org/packages/03/79/2a398fc05e090197f71ebcf9a2a80680df87acce6870f4a44be7752445f3/django_sb_simple_migrations-0.9.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-31 08:48:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "softbutterfly",
    "github_project": "django-sb-simple-migrations",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "django-sb-simple-migrations"
}
        
Elapsed time: 1.16716s