summaryrefslogtreecommitdiff
path: root/src/mailman/database/model.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-2/+3
|
* public() takes keyword arguments.Barry Warsaw2016-04-041-3/+3
|
* Clean up the database directory.Barry Warsaw2016-03-241-8/+3
|
* Happy New Year.Barry Warsaw2016-01-021-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
|
* DatabaseBarry Warsaw2014-11-011-34/+23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -------- * The ORM layer, previously implemented with Storm, has been replaced by SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien Bompard. Alembic is now used for all database schema migrations. * The new logger `mailman.database` logs any errors at the database layer. API --- * Several changes to the internal API: - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order. - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order. - Iteration over domains via the `IDomainManager` is guaranteed to be sorted by `IDomain.mail_host` order. - `ITemporaryDatabase` interface and all implementations are removed.
| * Add support for postgresqlAbhilash Raj2014-09-251-1/+1
| | | | | | | | | | | | | | | | | | * revert changes in message_id_has encoding by barry * Change message_id_hash column to LargeBinary (from previously mistaken one i.e.unicode) * add missing import in database/types.py * fix a bug in database/Model.py, transaction has no method abort(), instead it is rollback()
| * We do not need _database_exists() or _make_temporary() any more either.Barry Warsaw2014-09-231-0/+2
| |
| * Clean up pass.Barry Warsaw2014-09-221-10/+18
| |
| * * remove some unused codeAbhilash Raj2014-09-191-17/+0
| | | | | | | | | | | | | | * add left out documentation * remov super(<class>).__init__() calls in models as it was useless now. * remove schema_migrate func in mailman/database/base.py
| * reset database by purging all data instead of dropping schema and recreating itAbhilash Raj2014-09-181-9/+10
| |
| * all tests except for importer working(ignoring test_migrations.py)Abhilash Raj2014-09-181-0/+1
| |
| * modify all storm queries to work with SAAbhilash Raj2014-09-121-7/+8
| |
| * * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-16/+7
| | | | | | | | * update some queries to match SA style
| * change models to use sqlalchemy models<WIP>Abhilash Raj2014-09-041-1/+4
|/
* 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-33/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Refactor a slightly better way of indicating which tables should be reset byBarry Warsaw2012-07-251-9/+9
| | | | | | | | the testing framework.
| * Refactor to better handling the difference between a testing database and aBarry Warsaw2012-07-251-29/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | production database. - Add an IDatabaseFactory interface with two named utility implementations. The initialization subsystem will either ask for the 'testing' or 'production' factory utility depending on whether we're in the test suite or not. The testing factory returns an IDatabase that can be _reset(). - initialize_2() now takes an optional `testing` argument, defaulting to False. The test ConfigLayer will pass in True. - Remove _reset() from the base database class. - The ModelMeta now adds a PRESERVE attribute to database classes. This defaults to False, meaning by default the test framework will reset the table. The Version table is preserved because it records the schema migrations. - Because of the above, we no longer need to support pre_reset() and post_reset() on migrations. Also, bin/mailman should allow the standard configuration file search algorithm to be used except when -C/--config is given.
* * Schema migrations have been implemented.Barry Warsaw2012-02-121-0/+27
|
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Add database specific pre- and post- reset callbacks. Use this to implementBarry Warsaw2011-10-231-0/+3
| | | | primary key reset for PostgreSQL, fixing several tests.
* - Ensure that class removal is deterministic.Barry Warsaw2011-10-221-1/+7
| | | | | | - Comment out a few more foreign key constraints since they break the tests. - Enable the PostgreSQLDatabase for testing (this one should not be committed on trunk.
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* Push the source directory into a 'src' subdirectory so that zc.buildout worksBarry Warsaw2009-01-251-0/+56
correctly regardless of how it's used.