summaryrefslogtreecommitdiff
path: root/src/mailman/database/docs
diff options
context:
space:
mode:
authorBarry Warsaw2012-10-16 18:40:12 -0400
committerBarry Warsaw2012-10-16 18:40:12 -0400
commita1666479d87e26e5c79dd1cf507b8ef0472c59aa (patch)
tree74672ad17daf516e53c2af66afbc5cfcf06fd5ed /src/mailman/database/docs
parentd337335caa3e7116f73c2b18874c9a64d5f70957 (diff)
downloadmailman-a1666479d87e26e5c79dd1cf507b8ef0472c59aa.tar.gz
mailman-a1666479d87e26e5c79dd1cf507b8ef0472c59aa.tar.zst
mailman-a1666479d87e26e5c79dd1cf507b8ef0472c59aa.zip
Database
-------- * The `ban` table now uses list-ids to cross-reference the mailing list, since these cannot change even if the mailing list is moved or renamed. Interfaces ---------- * The `IBanManager` is no longer a global utility. Instead, you adapt an `IMailingList` to an `IBanManager` to manage the bans for a specific mailing list. To manage the global bans, adapt ``None``.
Diffstat (limited to 'src/mailman/database/docs')
-rw-r--r--src/mailman/database/docs/migration.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mailman/database/docs/migration.rst b/src/mailman/database/docs/migration.rst
index 6216f9bbc..2988579d3 100644
--- a/src/mailman/database/docs/migration.rst
+++ b/src/mailman/database/docs/migration.rst
@@ -30,12 +30,13 @@ already applied.
>>> from mailman.model.version import Version
>>> results = config.db.store.find(Version, component='schema')
>>> results.count()
- 2
+ 3
>>> versions = sorted(result.version for result in results)
>>> for version in versions:
... print version
00000000000000
20120407000000
+ 20121015000000
Migrations
@@ -96,6 +97,7 @@ This will load the new migration, since it hasn't been loaded before.
... print result
00000000000000
20120407000000
+ 20121015000000
20129999000000
>>> test = config.db.store.find(Version, component='test').one()
>>> print test.version
@@ -126,6 +128,7 @@ The first time we load this new migration, we'll get the 801 marker.
... print result
00000000000000
20120407000000
+ 20121015000000
20129999000000
20129999000001
>>> test = config.db.store.find(Version, component='test')
@@ -142,6 +145,7 @@ We do not get an 802 marker because the migration has already been loaded.
... print result
00000000000000
20120407000000
+ 20121015000000
20129999000000
20129999000001
>>> test = config.db.store.find(Version, component='test')
@@ -176,6 +180,7 @@ You'll notice that the ...04 version is not present.
... print result
00000000000000
20120407000000
+ 20121015000000
20129999000000
20129999000001
20129999000002