Update 'playlists'
parent
c08bb17ab6
commit
5448c6bde6
30
playlists.md
30
playlists.md
|
@ -9,20 +9,28 @@ The `playlists` table holds information for user and system playlists.
|
|||
| image | [PATH](SQLite-Config) | The filepath of an image to display in the UI |
|
||||
|
||||
### Triggers
|
||||
| Name | When | Description |
|
||||
| ------------------------ | ------------ | ----------------------------------------------------------------- |
|
||||
| playlists_insert_trigger | After insert | Create a new row in the [[playlist_properties]] table |
|
||||
| playlists_delete_trigger | After delete | Delete this playlist's entry in the [[playlist_properties]] table |
|
||||
| Name | When | Description |
|
||||
| --------------------------- | ------------- | ---------------------------------------------------------------------------- |
|
||||
| playlists_insert_trigger | After insert | Create a new row in the [[playlist_properties]] table |
|
||||
| playlists_delete_trigger | After delete | Delete this playlist's entry in the [[playlist_properties]] table |
|
||||
| collection_loop_trigger | Before update | Prohibit setting loop to "None" on the Collection playlist |
|
||||
| previous_loop_trigger | Before update | Prohibit setting loop to anything other than "None" on the Previous playlist |
|
||||
| previous_shuffle_trigger | Before update | Prohibit setting shuffle to TRUE on the Previous playlist |
|
||||
| previous_sort_order_trigger | Before update | Prohibit setting the sort order on the Previous playlist |
|
||||
|
||||
### The `playlists_view`
|
||||
The `playlists_view` joins the `playlists` table with the [[playlist_properties]] table so the application can use one query to access all the relevant state for each playlist.
|
||||
| Column | Description |
|
||||
| --------------------------------- | ---------------------------------------------------------- |
|
||||
| playlistid | The playlistid of this playlist |
|
||||
| [propertyid](playlist_properties) | The rowid of the [[playlist_properties]] for this playlist |
|
||||
| name | The name of this playlist |
|
||||
| image | The filepath of an image to display for this playlist |
|
||||
| [active](playlist_properties) | The active state of this playlist |
|
||||
| Column | Description |
|
||||
| -------------------------------------- | ---------------------------------------------------------- |
|
||||
| playlistid | The playlistid of this playlist |
|
||||
| [propertyid](playlist_properties) | The rowid of the [[playlist_properties]] for this playlist |
|
||||
| name | The name of this playlist |
|
||||
| image | The filepath of an image to display for this playlist |
|
||||
| [active](playlist_properties) | The active state of this playlist |
|
||||
| [loop](playlist_properties) | The loop state of this playlist |
|
||||
| [shuffle](playlist_properties) | The shuffle state of this playlist |
|
||||
| [sort_order](playlist_properties) | The sort order of this playlist |
|
||||
| [current_trackid](playlist_properties) | The current track of this playlist |
|
||||
|
||||
### Default System Playlists
|
||||
| Name | Destription |
|
||||
|
|
Loading…
Reference in New Issue