Coverage for seedboxsync/core/database/migrations/0002_torrent_nullable_announce.py: 80%

5 statements  

« prev     ^ index     » next       coverage.py v7.16.1, created at 2026-09-26 17:14 +0000

1# Generated from a schema diff on 2026-09-12 10:18. 

2# ruff: noqa: ANN001, ANN201, D100, D103, F403 

3# type: ignore 

4from peewee import * 

5 

6 

7def up(migrator, db): 

8 migrator.migrate( 

9 migrator.drop_not_null("torrent", "announce"), 

10 ) 

11 

12 

13def down(migrator, db): 

14 migrator.migrate( 

15 migrator.add_not_null("torrent", "announce"), 

16 )