Coverage for downtify/db/migrations/versions/0003_release_dates.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.17.4, created at 2026-11-21 22:18 +0000

1"""Each catalogued release's date, so an announced one can be shown and 

2downloaded on its release day. 

3 

4Mirrors :class:`downtify.artist_catalogue.ArtistCatalogue`. 

5""" 

6 

7from __future__ import annotations 

8 

9from downtify.db.core import Connection 

10 

11DDL: list[str] = [ 

12 """ 

13 ALTER TABLE artist_catalogue 

14 ADD COLUMN IF NOT EXISTS release_date TEXT NOT NULL DEFAULT '' 

15 """, 

16] 

17 

18 

19def up(conn: Connection) -> None: 

20 for stmt in DDL: 

21 conn.execute(stmt)