mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-30 18:22:37 -04:00 
			
		
		
		
	* fix: remove foreign constraint in stack.primaryAssetId * fix migration --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			718 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			718 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| // dart format width=80
 | |
| // GENERATED CODE, DO NOT EDIT BY HAND.
 | |
| // ignore_for_file: type=lint
 | |
| import 'package:drift/drift.dart';
 | |
| import 'package:drift/internal/migrations.dart';
 | |
| import 'schema_v1.dart' as v1;
 | |
| import 'schema_v2.dart' as v2;
 | |
| import 'schema_v3.dart' as v3;
 | |
| 
 | |
| class GeneratedHelper implements SchemaInstantiationHelper {
 | |
|   @override
 | |
|   GeneratedDatabase databaseForVersion(QueryExecutor db, int version) {
 | |
|     switch (version) {
 | |
|       case 1:
 | |
|         return v1.DatabaseAtV1(db);
 | |
|       case 2:
 | |
|         return v2.DatabaseAtV2(db);
 | |
|       case 3:
 | |
|         return v3.DatabaseAtV3(db);
 | |
|       default:
 | |
|         throw MissingSchemaException(version, versions);
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   static const versions = const [1, 2, 3];
 | |
| }
 |