Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Dec 8, 2020

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented Dec 8, 2020

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