mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 03:22:31 -05:00
Change album and album_artist column definitions to be NOT NULL
Unfortunately SQLite doesn't support adding constraints with ALTER TABLE, so this constraint cannot be added upon upgrade.
This commit is contained in:
parent
26d603aa61
commit
60a06dfb0a
4
src/db.c
4
src/db.c
@ -2714,7 +2714,7 @@ db_perthread_deinit(void)
|
||||
" fname VARCHAR(255) NOT NULL," \
|
||||
" title VARCHAR(1024) DEFAULT NULL," \
|
||||
" artist VARCHAR(1024) DEFAULT NULL," \
|
||||
" album VARCHAR(1024) DEFAULT NULL," \
|
||||
" album VARCHAR(1024) NOT NULL," \
|
||||
" genre VARCHAR(255) DEFAULT NULL," \
|
||||
" comment VARCHAR(4096) DEFAULT NULL," \
|
||||
" type VARCHAR(255) DEFAULT NULL," \
|
||||
@ -2750,7 +2750,7 @@ db_perthread_deinit(void)
|
||||
" has_video INTEGER DEFAULT 0," \
|
||||
" contentrating INTEGER DEFAULT 0," \
|
||||
" bits_per_sample INTEGER DEFAULT 0," \
|
||||
" album_artist VARCHAR(1024)," \
|
||||
" album_artist VARCHAR(1024) NOT NULL," \
|
||||
" media_kind INTEGER NOT NULL," \
|
||||
" tv_series_name VARCHAR(1024) DEFAULT NULL," \
|
||||
" tv_episode_num_str VARCHAR(1024) DEFAULT NULL," \
|
||||
|
Loading…
x
Reference in New Issue
Block a user