summaryrefslogtreecommitdiff
path: root/src/mailman/database/factory.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
|
* Clean up the database directory.Barry Warsaw2016-03-241-10/+5
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* * The test suite now runs successfully again with PostgreSQL. Given byBarry Warsaw2015-04-221-0/+6
|\ | | | | | | Aurélien Bompard. (LP: #1435941)
| * PostgreSQL: remove tables before unittest runsAurélien Bompard2015-04-221-0/+6
|/
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-7/+3
|
* Merge Aurélien Bompard's latest merge branch, with some cleaning up by Barry.Barry Warsaw2014-10-131-4/+7
|\
| * Merge Barry's changesAurélien Bompard2014-10-131-47/+42
| |\ | |/ |/|
* | Merge Abhilash's latest revisions.Barry Warsaw2014-10-111-38/+39
| |
| * Fix unit tests with PostgreSQLAurélien Bompard2014-10-101-0/+1
| |
| * Properly close transactions on schema changesAurélien Bompard2014-10-081-0/+2
| |
| * Merge from Abhilash's branchAurélien Bompard2014-10-061-8/+5
| |\ | |/ |/|
* | add central alembic configAbhilash Raj2014-10-031-5/+3
| |
| * Split DB creation and upgrade into separate functions to ease testingAurélien Bompard2014-10-031-4/+11
|/
* Fix typoAurélien Bompard2014-10-021-1/+1
|
* Automatically migrate the databaseAurélien Bompard2014-10-021-2/+58
|
* * fixed a bug where alemnic could not find its migrations directoryAbhilash Raj2014-09-251-6/+1
| | | | * add a new method in base database to stamp with latest alembic version
* no need to stamp the testing dbAbhilash Raj2014-09-241-1/+0
|
* added support for migrations via alembicAbhilash Raj2014-09-241-0/+7
|
* Since we don't have migrations, we don't need the ITemporaryDatabase stuff,Barry Warsaw2014-09-231-22/+4
| | | | | nor do we need the TAG mechanism. We also don't need load_sql() or load_migrations().
* Clean up pass.Barry Warsaw2014-09-221-0/+1
|
* modify all storm queries to work with SAAbhilash Raj2014-09-121-3/+3
|
* * change declarative_base class to use ModelMeta classAbhilash Raj2014-09-061-1/+1
| | | | * update some queries to match SA style
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* remove debuggingBarry Warsaw2013-09-011-1/+0
|
* Migrate bounceevent.list_name -> bounceevent.list_idBarry Warsaw2013-09-011-7/+11
| | | | | | | * Rename StormBaseDatabase._create() -> .initialize() * Refactor database initialization. * make_listid() helper. * Add a pivot() helper for schema migrations.
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* The final bit of refactoring puts the specifics of making a temporary databaseBarry Warsaw2012-07-251-52/+6
| | | | 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/+34
| | | | them.
* Add a temporary database factory so we can remove more cruft from theBarry Warsaw2012-07-251-0/+35
| | | | | | | | | 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.
* Refactor to better handling the difference between a testing database and aBarry Warsaw2012-07-251-0/+80
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.