core/homeassistant
Tim Soderstrom 5dfdb9e481 New indexes for states and recording_runs tables (#6688)
* New indexes for states table

* Added recorder_runs indexes

* Created a new function for compound indexes.

A new function was created because it makes it a little cleaner when creating
a single-field index since one doesn't have to create a list. This is mostly
when creating the name of the index so with a bit more logic it's possible
to combine it into one function. Given how often migration changes are run,
I thought that code bloat was probably a worthy trade-off for now.

* Adjusted indexes, POC for ref indexes by name.

* Corrected lint errors

* Fixed pydocstyle error

* Moved create_index function outside apply_update

* Moved to single line (just barely)
2017-03-23 20:48:31 -07:00
..
components New indexes for states and recording_runs tables (#6688) 2017-03-23 20:48:31 -07:00
helpers restore_state: do not crash if domain not defined (#6714) 2017-03-20 08:54:51 -07:00
scripts Split bootstrap into bs + setup (#6416) 2017-03-05 10:41:54 +01:00
util Constrain core dependencies to core versions (#6738) 2017-03-22 08:50:54 -07:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Fix hass script execution on Windows (#4977). (#6601) 2017-03-17 17:07:36 -07:00
bootstrap.py Remove event decorators (#6634) 2017-03-15 14:46:57 +01:00
config.py Log errors when loading yaml (#6257) 2017-03-01 06:56:23 +02:00
const.py Constrain core dependencies to core versions (#6738) 2017-03-22 08:50:54 -07:00
core.py self.loop.create_task -> self.add_job (#6632) 2017-03-16 06:58:54 +01:00
exceptions.py Do not report on shutting down errors (#4431) 2016-11-17 12:02:43 -08:00
loader.py Bootstrap / Component setup async (#6264) 2017-02-28 20:33:19 -08:00
package_constraints.txt Constrain core dependencies to core versions (#6738) 2017-03-22 08:50:54 -07:00
remote.py Deprecate event forwarding 2017-03-15 08:38:26 -07:00
setup.py Constrain core dependencies to core versions (#6738) 2017-03-22 08:50:54 -07:00