Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
70776a36 by Mark Sapiro at 2021-03-30T04:37:16+00:00
Set default value in bounce_notify_owner_on_bounce_increment migration.
- - - - -
ca0f7c16 by Mark Sapiro at 2021-03-30T04:37:16+00:00
Merge branch 'dsn' into 'master'
Set default value in bounce_notify_owner_on_bounce_increment migration.
See merge request mailman/mailman!816
- - - - -
1 changed file:
- src/mailman/database/alembic/versions/472e6d713047_bounce_increment.py
Changes:
=====================================
src/mailman/database/alembic/versions/472e6d713047_bounce_increment.py
=====================================
@@ -41,6 +41,14 @@ def upgrade():
'mailinglist',
sa.Column('bounce_notify_owner_on_bounce_increment', sa.BOOLEAN(),
nullable=True))
+ # Set the default data.
+ mlist = sa.sql.table( # pragma: nocover
+ 'mailinglist',
+ sa.sql.column('bounce_notify_owner_on_bounce_increment',
+ sa.BOOLEAN())
+ )
+ op.execute(mlist.update().values( # pragma: nocover
+ {'bounce_notify_owner_on_bounce_increment': False}))
def downgrade():
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/78a1be84afe08518dad1bb8331e7b51dd884cdae...ca0f7c164f950e7ea64a00868f6bf0196fa0231f
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/78a1be84afe08518dad1bb8331e7b51dd884cdae...ca0f7c164f950e7ea64a00868f6bf0196fa0231f
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: [email protected]