--
Ticket URL: <https://code.djangoproject.com/ticket/26709>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:1>
* needs_docs: 0 => 1
* has_patch: 0 => 1
Comment:
A working model - https://github.com/django/django/pull/6726/
Misses docs for the new `Index` class.
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:2>
* needs_docs: 1 => 0
Comment:
Added docs for the new index classes.
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"156e2d59cf92eb252c2f6ef9bb0b65f26c707de2" 156e2d59]:
{{{
#!CommitTicketReference repository=""
revision="156e2d59cf92eb252c2f6ef9bb0b65f26c707de2"
Fixed #26709 -- Added class-based indexes.
Added the AddIndex and RemoveIndex operations to use them in migrations.
Thanks markush, mjtamlyn, timgraham, and charettes for review and advice.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"b1e7d19d4c7015efe0c65361bb7f00a2f1c7047c" b1e7d19d]:
{{{
#!CommitTicketReference repository=""
revision="b1e7d19d4c7015efe0c65361bb7f00a2f1c7047c"
Refs #26709 -- Required a name for Indexes passed to AddIndex.
Thanks to Markush for discussions.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"f7e907115fef94e890a0a5b706ebdfb60eb363d4" f7e9071]:
{{{
#!CommitTicketReference repository=""
revision="f7e907115fef94e890a0a5b706ebdfb60eb363d4"
Refs #26709 -- Added IndexOperation to avoid code duplication.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"52442898e747e9d76bf6349938fa3dada6f0e887" 52442898]:
{{{
#!CommitTicketReference repository=""
revision="52442898e747e9d76bf6349938fa3dada6f0e887"
Refs #26709 -- Added 'model' argument to SchemaEditor.add/remove_index()
This removes the dependency of the Index class on its model attribute
when a name is passed to it.
Thanks to Markush for discussions.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3551fb537f403930763c01c85905baf3ad9b7fd8" 3551fb53]:
{{{
#!CommitTicketReference repository=""
revision="3551fb537f403930763c01c85905baf3ad9b7fd8"
Refs #26709 -- Documented SchemaEditor.add/remove_index().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"fc3ac6573524acc58c23ae2c721c61bc9ed8c8d5" fc3ac65]:
{{{
#!CommitTicketReference repository=""
revision="fc3ac6573524acc58c23ae2c721c61bc9ed8c8d5"
Refs #26709 -- Checked allow_migrate_model() in Add/RemoveIndex
operations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"b92c6b7d5641e927145318adaaca1156ce26ddd2" b92c6b7]:
{{{
#!CommitTicketReference repository=""
revision="b92c6b7d5641e927145318adaaca1156ce26ddd2"
Refs #26709 -- Replaced Index.get_name() with set_name_with_model().
This removes the dependency of the Index class on its 'model'
attribute.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:10>
Comment (by Tim Graham <timograham@…>):
In [changeset:"a71724cd04e6b2b0c97f1cdbea2e528e65373be3" a71724cd]:
{{{
#!CommitTicketReference repository=""
revision="a71724cd04e6b2b0c97f1cdbea2e528e65373be3"
Refs #26709 -- Added index name to AddIndex.describe().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:11>
Comment (by Tim Graham <timograham@…>):
In [changeset:"c969b17ad83e8efdd7f887b61ad75370395434ca" c969b17]:
{{{
#!CommitTicketReference repository=""
revision="c969b17ad83e8efdd7f887b61ad75370395434ca"
Refs #26709 -- Added type check for models.Index fields argument.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:12>
Comment (by Markus Holtermann <info@…>):
In [changeset:"e7033e00f8e1ba2ffe538e56c5088a7e94c2e45d" e7033e0]:
{{{
#!CommitTicketReference repository=""
revision="e7033e00f8e1ba2ffe538e56c5088a7e94c2e45d"
Used constant instead of hard-coded value for max index name length
Refs #26709
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:13>
Comment (by Markus Holtermann <info@…>):
In [changeset:"c654ead8988d05349e34b63e40dc1e42f9f2c2b9" c654ead8]:
{{{
#!CommitTicketReference repository=""
revision="c654ead8988d05349e34b63e40dc1e42f9f2c2b9"
[1.11.x] Used constant instead of hard-coded value for max index name
length
Refs #26709
Backport of e7033e00f8e1ba2ffe538e56c5088a7e94c2e45d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:14>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"4c62cdaa1041d49d0b46f6cef5f4618f020fff29" 4c62cdaa]:
{{{
#!CommitTicketReference repository=""
revision="4c62cdaa1041d49d0b46f6cef5f4618f020fff29"
Refs #26709 -- Made Index raise ValueError on non-string fields.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26709#comment:15>