mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Add interval data layer (#9398)
* Update Manga classes for fetch interval data * Update per review bump version --------- Co-authored-by: quangkieu <qkieu>
This commit is contained in:
		| @@ -16,6 +16,7 @@ CREATE TABLE mangas( | ||||
|     favorite INTEGER AS Boolean NOT NULL, | ||||
|     last_update INTEGER AS Long, | ||||
|     next_update INTEGER AS Long, | ||||
|     calculate_interval INTEGER DEFAULT 0 NOT NULL, | ||||
|     initialized INTEGER AS Boolean NOT NULL, | ||||
|     viewer INTEGER NOT NULL, | ||||
|     chapter_flags INTEGER NOT NULL, | ||||
| @@ -80,8 +81,8 @@ DELETE FROM mangas | ||||
| WHERE favorite = 0 AND source IN :sourceIds; | ||||
|  | ||||
| insert: | ||||
| INSERT INTO mangas(source,url,artist,author,description,genre,title,status,thumbnail_url,favorite,last_update,next_update,initialized,viewer,chapter_flags,cover_last_modified,date_added,update_strategy) | ||||
| VALUES (:source,:url,:artist,:author,:description,:genre,:title,:status,:thumbnailUrl,:favorite,:lastUpdate,:nextUpdate,:initialized,:viewerFlags,:chapterFlags,:coverLastModified,:dateAdded,:updateStrategy); | ||||
| INSERT INTO mangas(source,url,artist,author,description,genre,title,status,thumbnail_url,favorite,last_update,next_update,calculate_interval,initialized,viewer,chapter_flags,cover_last_modified,date_added,update_strategy) | ||||
| VALUES (:source,:url,:artist,:author,:description,:genre,:title,:status,:thumbnailUrl,:favorite,:lastUpdate,:nextUpdate,:calculateInterval,:initialized,:viewerFlags,:chapterFlags,:coverLastModified,:dateAdded,:updateStrategy); | ||||
|  | ||||
| update: | ||||
| UPDATE mangas SET | ||||
| @@ -96,6 +97,8 @@ UPDATE mangas SET | ||||
|     thumbnail_url = coalesce(:thumbnailUrl, thumbnail_url), | ||||
|     favorite = coalesce(:favorite, favorite), | ||||
|     last_update = coalesce(:lastUpdate, last_update), | ||||
|     next_update = coalesce(:nextUpdate, next_update), | ||||
|     calculate_interval = coalesce(:calculateInterval, calculate_interval), | ||||
|     initialized = coalesce(:initialized, initialized), | ||||
|     viewer = coalesce(:viewer, viewer), | ||||
|     chapter_flags = coalesce(:chapterFlags, chapter_flags), | ||||
|   | ||||
							
								
								
									
										1
									
								
								data/src/main/sqldelight/tachiyomi/migrations/24.sqm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								data/src/main/sqldelight/tachiyomi/migrations/24.sqm
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| ALTER TABLE mangas ADD COLUMN calculate_interval INTEGER DEFAULT 0 NOT NULL; | ||||
		Reference in New Issue
	
	Block a user