{ "info": { "author": "Diego Lorden", "author_email": "diego.lorden@livelovely.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Topic :: Database" ], "description": "django-migrations-plus\n======================\n\nMigrations Plus provides a method to run raw SQL in Django migrations with multiple DB connections.\n\nInstall\n-------\n\nUsing pip::\n \n $ pip install django-migrations-plus\n\nAPI\n-----\n``RunSQL(sql, reverse_sql=None, state_operations=None, db='default')``\n\nAllows running of arbitrary SQL on the database - useful for more advanced features of database backends that Django doesn\u2019t support directly, like partial indexes.\n\nsql, and reverse_sql if provided, should be strings of SQL to run on the database. On most database backends (all but PostgreSQL), Django will split the SQL into individual statements prior to executing them. This requires installing the sqlparse Python library.\n\nThe state_operations argument is so you can supply operations that are equivalent to the SQL in terms of project state; for example, if you are manually creating a column, you should pass in a list containing an AddField operation here so that the autodetector still has an up-to-date state of the model (otherwise, when you next run makemigrations, it won\u2019t see any operation that adds that field and so will try to run it again).\n\ndb should be a string with the name of the connection from your settings you want to run your SQL on.\n\nExample\n-------\n.. code-block:: python\n\n from django.db import migrations\n import migrations_plus\n\n\n class Migration(migrations.Migration):\n\n operations = [\n migrations_plus.RunSQL('DROP TABLE Students;') # Runs only against connection 'default'\n migrations_plus.RunSQL('DROP TABLE OtherStudents;', db='other') # Runs only against connection 'other'\n ]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-migrations-plus", "package_url": "https://pypi.org/project/django-migrations-plus/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-migrations-plus/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-migrations-plus/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Provides a method to run raw SQL in migrations with multiple databases", "version": "0.1.1" }, "last_serial": 1285013, "releases": { "0.1.0.dev5.gdd1abd3": [ { "comment_text": "", "digests": { "md5": "556bbdbd13cad51de1a596a10cff4bf0", "sha256": "fcbc5a8d81b484163a6009b42c7285aab492e958d624c6448ed1cc117af83d6a" }, "downloads": -1, "filename": "django-migrations-plus-0.1.0.dev5.gdd1abd3.tar.gz", "has_sig": false, "md5_digest": "556bbdbd13cad51de1a596a10cff4bf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5272, "upload_time": "2014-10-27T23:00:51", "url": "https://files.pythonhosted.org/packages/2d/26/60b14dd82fb58865ace8beafceede8afabc603b7c1c300adacbc1e76efe6/django-migrations-plus-0.1.0.dev5.gdd1abd3.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8b3080bc8b4e8967145eb4c908e390fa", "sha256": "ad1d12d50007646e9e7915e3b4659df0eb54bc425add2aefab556e07175f90b4" }, "downloads": -1, "filename": "django_migrations_plus-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8b3080bc8b4e8967145eb4c908e390fa", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6666, "upload_time": "2014-10-27T23:04:33", "url": "https://files.pythonhosted.org/packages/de/cd/5def69778e81a5bd35290df524e6380aab062d88ecdc1720380f88048858/django_migrations_plus-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "057d91ae9e2dd99f370c9317cd584483", "sha256": "e0167c8e8cc71dbf6582a423fe793e935d19080b57be74f32d039c94f638099a" }, "downloads": -1, "filename": "django-migrations-plus-0.1.1.tar.gz", "has_sig": false, "md5_digest": "057d91ae9e2dd99f370c9317cd584483", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5270, "upload_time": "2014-10-27T23:04:21", "url": "https://files.pythonhosted.org/packages/26/58/52167f1bbfc3e37a24513ac7c214269a3c40f9b27c0bd49d8bd4b9b27a1d/django-migrations-plus-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8b3080bc8b4e8967145eb4c908e390fa", "sha256": "ad1d12d50007646e9e7915e3b4659df0eb54bc425add2aefab556e07175f90b4" }, "downloads": -1, "filename": "django_migrations_plus-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8b3080bc8b4e8967145eb4c908e390fa", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6666, "upload_time": "2014-10-27T23:04:33", "url": "https://files.pythonhosted.org/packages/de/cd/5def69778e81a5bd35290df524e6380aab062d88ecdc1720380f88048858/django_migrations_plus-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "057d91ae9e2dd99f370c9317cd584483", "sha256": "e0167c8e8cc71dbf6582a423fe793e935d19080b57be74f32d039c94f638099a" }, "downloads": -1, "filename": "django-migrations-plus-0.1.1.tar.gz", "has_sig": false, "md5_digest": "057d91ae9e2dd99f370c9317cd584483", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5270, "upload_time": "2014-10-27T23:04:21", "url": "https://files.pythonhosted.org/packages/26/58/52167f1bbfc3e37a24513ac7c214269a3c40f9b27c0bd49d8bd4b9b27a1d/django-migrations-plus-0.1.1.tar.gz" } ] }