Skip to content

Adds environment seting to select a custom database for devsite - #300

Merged
johnbaldwin merged 3 commits into
masterfrom
john/improve-devsite-database-setting
Dec 8, 2020
Merged

johnbaldwin merged 3 commits into
masterfrom
john/improve-devsite-database-setting

Conversation

@johnbaldwin

@johnbaldwin johnbaldwin commented Dec 8, 2020 •

Copy link
Copy Markdown
Contributor

Uses django-environ to set a custom database connection for devsite

For details, read the comments with the 'DATABASES' setting in devsite/settings.py

This does not change test_settings.py which uses SQLite for the unit tests

Uses django-environ to set a custom database connection for devsite

For details, read the comments with the 'DATABASES' setting in devsite/settings.py

This does not change `test_settings.py`, which uses SQLite for unit
tests
@johnbaldwin
johnbaldwin force-pushed the john/improve-devsite-database-setting branch from ac1fb95 to 25a56df Compare December 8, 2020 12:11
This commit adds an index to the SiteDailyMetrics field: 'date_for'

This commit adds indexes to the CourseDailyMetrics fields: 'course_id'
and 'date_for'

This commit adds a new migration, '0014' to perform non-atomic separate
state and database migration actions. Included is compatibility
functionality so that the migration works for both MySQL and SQLite.
@johnbaldwin
johnbaldwin merged commit 51ca5b1 into master Dec 8, 2020
@johnbaldwin
johnbaldwin deleted the john/improve-devsite-database-setting branch December 8, 2020 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants