Add nullcheck to associated directory upgrader
This commit is contained in:
		
							parent
							
								
									0bfbc789ca
								
							
						
					
					
						commit
						d52143e283
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -133,7 +133,10 @@ def upgrade_6_to_7(sql): | ||||||
|     )''') |     )''') | ||||||
|     cur.execute('INSERT INTO albums SELECT id, title, description FROM deleting_albums') |     cur.execute('INSERT INTO albums SELECT id, title, description FROM deleting_albums') | ||||||
|     cur.execute(''' |     cur.execute(''' | ||||||
|     INSERT INTO album_associated_directories SELECT id, associated_directory FROM deleting_albums |     INSERT INTO album_associated_directories | ||||||
|  |     SELECT id, associated_directory | ||||||
|  |     FROM deleting_albums | ||||||
|  |     WHERE associated_directory IS NOT NULL | ||||||
|     ''') |     ''') | ||||||
|     cur.execute('DROP TABLE deleting_albums') |     cur.execute('DROP TABLE deleting_albums') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue