Closed Bug 1201140 Opened 9 years ago Closed 9 years ago

Add existing indexes to the corresponding orm model fields

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mdoglio, Assigned: mdoglio)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
emorley
: review+
Details | Review
To completely replace the reference data sql template files with orm-generated code we need make it aware of the existing indexes. This should as easy as adding either a index=True on the corresponding field or via the index_together Meta attribute
Blocks: 1193836
Attached file PR 960
Attachment #8660801 - Flags: review?(emorley)
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
Comment on attachment 8660801 [details] [review] PR 960 Travis is failing.
Attachment #8660801 - Flags: review?(emorley)
Comment on attachment 8660801 [details] [review] PR 960 all fixed :-)
Attachment #8660801 - Flags: review?(emorley)
Comment on attachment 8660801 [details] [review] PR 960 Looks good, ty :-)
Attachment #8660801 - Flags: review?(emorley) → review+
Commits pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/aa91f022ab34a3123d28537f5bc8c6ee1728f74c Bug 1201140 - Add sqlparse to the requirements file This is required to execute migrations using migrations.RunSQL. See https://docs.djangoproject.com/en/1.8/ref/migration-operations/#runsql for more info https://github.com/mozilla/treeherder/commit/cbe1ab610eec648a26320aaf8d7eaf66be17f3ec Bug 1201140 - Add key indexes to the ref data orm classes Key indexes are added in both the orm classes and the initial migration. For the fulltext indexes that wasn't possible, since The django orm doesn't support it. I used a RunSQL operation to add them via sql.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: