summaryrefslogtreecommitdiff
path: root/src/mailman/database/sqlite.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Rebase mailman/mailman!180 and cleanup # noqaBarry Warsaw2016-07-281-1/+1
|
* Don't use `flake8: noqa`.Barry Warsaw2016-04-011-1/+1
| | | | | | | This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps.
* Clean up the database directory.Barry Warsaw2016-03-241-7/+6
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* We don't need the 'six' package any more.Barry Warsaw2015-01-041-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-3/+0
|
* Checkpointing.Barry Warsaw2014-11-301-1/+1
| | | | | | | | | | By using `six` I think I have most of the imports squared away. There's probably still uses of `unicode` built-ins that need fixing. The idea is to first get the test suite running (which it doesn't yet), and then to fix tests. There's a bug in lazr.config which requires us to patch it for now.
* We do not need _database_exists() or _make_temporary() any more either.Barry Warsaw2014-09-231-37/+3
|
* Since we don't have migrations, we don't need the ITemporaryDatabase stuff,Barry Warsaw2014-09-231-2/+0
| | | | | nor do we need the TAG mechanism. We also don't need load_sql() or load_migrations().
* Clean up pass.Barry Warsaw2014-09-221-2/+2
|
* all tests except for importer working(ignoring test_migrations.py)Abhilash Raj2014-09-181-1/+1
|
* * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-2/+2
| | | | * update some queries to match SA style
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* * The policy for archiving has now been collapsed into a single enum, calledBarry Warsaw2012-07-261-2/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ArchivePolicy. This describes the three states of never archive, archive privately, and archive_publicly. (LP: #967238) Database -------- * Schema migrations (LP: #971013) - include_list_post_header -> allow_list_posts - news_prefix_subject_too -> nntp_prefix_subject_too - news_moderation -> newsgroup_moderation - archive and archive_private have been collapsed into archive_policy. - nntp_host has been removed. * The PostgreSQL port of the schema accidentally added a moderation_callback column to the mailinglist table. Since this is unused in Mailman, it was simply commented out of the base schema for PostgreSQL.
| * The final bit of refactoring puts the specifics of making a temporary databaseBarry Warsaw2012-07-251-0/+28
| | | | | | | | into the hands of the database modules, by using ZCA adapters.
| * Fix resetting PostgreSQL databases, thus making the full test suite pass withBarry Warsaw2012-07-251-2/+0
| | | | | | | | them.
| * Add a temporary database factory so we can remove more cruft from theBarry Warsaw2012-07-251-24/+0
| | | | | | | | | | | | | | | | | | individual database classes themselves. This does mean that the temporary factory must know something special about the sqlite and postgresql databases, but I think that's an acceptable trade-off. This should make the test code cleaner, and allow me to write better support for temporary PostgreSQL databases.
| * A few more tweaks to get PostgreSQL working.Barry Warsaw2012-07-251-4/+0
| | | | | | | | | | - store.rollback() is better than store.execute('ABORT;') - We need to do a commit after the migrations are loaded.
| * One more refactoring.Barry Warsaw2012-07-251-3/+3
| |
| * Refactor once again for SQLite/PostgreSQL differences.Barry Warsaw2012-07-251-0/+8
| |
| * No need to parameterize the exceptions, since Storm does this for us.Barry Warsaw2012-07-251-2/+0
| |
| * Very nearly there with PostgreSQL support for testing the beta2 migration.Barry Warsaw2012-07-251-0/+2
| | | | | | | | | | | | | | | | | | - Improve migration logging - Disable pre_reset() and post_reset() on migrations, which might need to be re-enabled for SQLite support. - Be sure to record the migration version in PostgreSQL. - Parameterize the Error that will occur. - Better sample data for PostgreSQL and SQLite, which have different formats.
| * Checkpointing Postgres port of test suite.Barry Warsaw2012-07-231-1/+23
|/ | | | | | | | | - Refactor load_schema() into a separate load_sql() method. - Add API for test suite to make a temporary database. - Add code to migrate the PostgreSQL database. - Comment out `moderation_callback` from the PostgreSQL SQL; this must have snuck in accidentally via the contributed port. - Refactor test_migrations.py
* * Schema migrations have been implemented.Barry Warsaw2012-02-121-5/+2
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* * Fix a couple of spelling errors.Barry Warsaw2011-11-021-0/+13
| | | | | | * Code cleanup (<> -> != ... sigh) * Minor refactoring of database setup code so that touch() is moved to the SQLiteDatabase class; it's not relevant for PostgreSQL.
* Merge PostgreSQL support from Stephen A. Goss, with refactoring by Barry. LP:Barry Warsaw2011-10-221-0/+46
#860159.