Commit Graph

17 Commits

Author SHA1 Message Date
Omar Khan
7810131457 Fail fast if the reset-test-db script fails 2016-03-25 19:04:29 +07:00
Kevin Falcone
b4ac588ce1 Update reset-test-db.sh for bok-choy
This now correctly migrates and dumps files for both databases.

Run lettuce migrations for both databases
2016-02-29 13:59:29 -05:00
Calen Pennington
dd90c55602 Create a new CSMHExtended table to hold our new data
This is a clone (copy) of CSMH's declaration and methods with an added
id of UnsignedBigInAutoField

We should be able to delete the save_history code, but needs testing.

Add error logging when capa failures happen

Put StudentModuleHistory into its own database

Bump out the primary key on CSMHE

This gives us a gap to backfill as needed.
Since the new table's pk is an unsigned bigint, even for people who don't
consolidate CSMH into CSMHE, the lost rows are unlikely to matter.

Remove StudentModuleHistory cleaner
2016-02-29 13:58:39 -05:00
Kevin Falcone
3a296a9183 Don't delete the whole db cache dir
It also contains the lettuce caches.
2016-02-18 22:43:47 -05:00
Ben Patterson
15b015abdc Only update comments; leave reset_db in place. 2016-01-14 06:23:08 -05:00
Ben Patterson
d4554fb14d TE-1133 Fix to allow for serversonly /testsonly and full test modes.
This will ensure a clean database for new runs, and will likewise
allow for the serversonly / testsonly approach for developing
bok-choy acceptance tests. The cleaner model will completely
rebuild the edxtest database for any new test run. This will
not be a costly maneuver because of our test cache.
2016-01-13 17:37:59 -05:00
Jesse Zoldak
a675081275 Add comments to the bok-choy DB reset script 2016-01-12 16:59:01 -05:00
Jesse Zoldak
157bd19e20 Clear out the bok choy DB with reset_db, not flush 2016-01-12 11:33:02 -05:00
Zia Fazal
2f275f31b4 fixed scenario when tests run using cached sql schema 2015-12-31 20:03:28 +05:00
Ben Patterson
c475f2830e edxtest needs to be created on naked systems.
This is a partial revert from d8fd8ed678
2015-11-19 17:39:41 -05:00
Usman Khalid
d8fd8ed678 Recreate db caches for bokchoy and lettuce 2015-11-18 21:08:05 +05:00
Usman Khalid
6cb62f2697 Rebase upgrade Django to v1.8.5
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Don Mitchell
d49c82f9bd Add configuration to studio for asides 2014-12-18 14:43:22 -05:00
Ben Patterson
a19b97c61f Don't use 'test' db for mysql since it's reserved.
This db name is reserved and used by mysql installations. This can cause
conflicts when trying to populate our own 'test' database on mysql.
2014-11-13 14:41:50 -05:00
Ben Patterson
8e2d794264 Improve compatibility with additional mysql installations.
Some mysql debian packages do not grant mysql user as many permissions, and
we need to add them.
2014-11-12 22:11:59 -05:00
Feanil Patel
22b97338c9 Create the test database if it doesn't exist.
There is a bootstrapping case where the test DB doesn't exist which causes reset_db to fail.
2014-07-15 13:55:18 -04:00
Will Daly
a86d56ccba Cache databases to speed up acceptance tests 2014-01-28 14:39:26 -05:00