mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
Remove Drift test generated files from tree
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
.pub/
|
||||
/build/
|
||||
lib/**/*.drift.dart
|
||||
test/drift/main/generated/
|
||||
|
||||
# Web related
|
||||
lib/generated_plugin_registrant.dart
|
||||
|
||||
+7
-1
@@ -17,7 +17,7 @@ windows-x64 = { asset_pattern = "dcm-windows-release.zip" }
|
||||
[tasks.codegen]
|
||||
alias = "codegen"
|
||||
description = "Generate all codegen artifacts"
|
||||
depends = ["codegen:dart", "codegen:pigeon", "codegen:translation"]
|
||||
depends = ["codegen:dart", "codegen:drift-schema", "codegen:pigeon", "codegen:translation"]
|
||||
|
||||
[tasks."codegen:dart"]
|
||||
description = "Execute build_runner to auto-generate dart code"
|
||||
@@ -33,6 +33,12 @@ run = [
|
||||
"dart format lib/routing/router.gr.dart",
|
||||
]
|
||||
|
||||
[tasks."codegen:drift-schema"]
|
||||
description = "Generate Drift migration schema test code"
|
||||
sources = ["drift_schemas/main/*.json"]
|
||||
outputs = { auto = true }
|
||||
run = "dart run drift_dev schema generate --data-classes --companions drift_schemas/main/ test/drift/main/generated/"
|
||||
|
||||
[tasks."codegen:watch"]
|
||||
alias = "watch"
|
||||
description = "Watch and auto-generate dart code"
|
||||
|
||||
-143
@@ -1,143 +0,0 @@
|
||||
// dart format width=80
|
||||
// GENERATED BY drift_dev, DO NOT MODIFY.
|
||||
// ignore_for_file: type=lint,unused_import
|
||||
//
|
||||
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;
|
||||
import 'schema_v4.dart' as v4;
|
||||
import 'schema_v5.dart' as v5;
|
||||
import 'schema_v6.dart' as v6;
|
||||
import 'schema_v7.dart' as v7;
|
||||
import 'schema_v8.dart' as v8;
|
||||
import 'schema_v9.dart' as v9;
|
||||
import 'schema_v10.dart' as v10;
|
||||
import 'schema_v11.dart' as v11;
|
||||
import 'schema_v12.dart' as v12;
|
||||
import 'schema_v13.dart' as v13;
|
||||
import 'schema_v14.dart' as v14;
|
||||
import 'schema_v15.dart' as v15;
|
||||
import 'schema_v16.dart' as v16;
|
||||
import 'schema_v17.dart' as v17;
|
||||
import 'schema_v18.dart' as v18;
|
||||
import 'schema_v19.dart' as v19;
|
||||
import 'schema_v20.dart' as v20;
|
||||
import 'schema_v21.dart' as v21;
|
||||
import 'schema_v22.dart' as v22;
|
||||
import 'schema_v23.dart' as v23;
|
||||
import 'schema_v24.dart' as v24;
|
||||
import 'schema_v25.dart' as v25;
|
||||
import 'schema_v26.dart' as v26;
|
||||
import 'schema_v27.dart' as v27;
|
||||
import 'schema_v28.dart' as v28;
|
||||
import 'schema_v29.dart' as v29;
|
||||
import 'schema_v30.dart' as v30;
|
||||
import 'schema_v31.dart' as v31;
|
||||
|
||||
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);
|
||||
case 4:
|
||||
return v4.DatabaseAtV4(db);
|
||||
case 5:
|
||||
return v5.DatabaseAtV5(db);
|
||||
case 6:
|
||||
return v6.DatabaseAtV6(db);
|
||||
case 7:
|
||||
return v7.DatabaseAtV7(db);
|
||||
case 8:
|
||||
return v8.DatabaseAtV8(db);
|
||||
case 9:
|
||||
return v9.DatabaseAtV9(db);
|
||||
case 10:
|
||||
return v10.DatabaseAtV10(db);
|
||||
case 11:
|
||||
return v11.DatabaseAtV11(db);
|
||||
case 12:
|
||||
return v12.DatabaseAtV12(db);
|
||||
case 13:
|
||||
return v13.DatabaseAtV13(db);
|
||||
case 14:
|
||||
return v14.DatabaseAtV14(db);
|
||||
case 15:
|
||||
return v15.DatabaseAtV15(db);
|
||||
case 16:
|
||||
return v16.DatabaseAtV16(db);
|
||||
case 17:
|
||||
return v17.DatabaseAtV17(db);
|
||||
case 18:
|
||||
return v18.DatabaseAtV18(db);
|
||||
case 19:
|
||||
return v19.DatabaseAtV19(db);
|
||||
case 20:
|
||||
return v20.DatabaseAtV20(db);
|
||||
case 21:
|
||||
return v21.DatabaseAtV21(db);
|
||||
case 22:
|
||||
return v22.DatabaseAtV22(db);
|
||||
case 23:
|
||||
return v23.DatabaseAtV23(db);
|
||||
case 24:
|
||||
return v24.DatabaseAtV24(db);
|
||||
case 25:
|
||||
return v25.DatabaseAtV25(db);
|
||||
case 26:
|
||||
return v26.DatabaseAtV26(db);
|
||||
case 27:
|
||||
return v27.DatabaseAtV27(db);
|
||||
case 28:
|
||||
return v28.DatabaseAtV28(db);
|
||||
case 29:
|
||||
return v29.DatabaseAtV29(db);
|
||||
case 30:
|
||||
return v30.DatabaseAtV30(db);
|
||||
case 31:
|
||||
return v31.DatabaseAtV31(db);
|
||||
default:
|
||||
throw MissingSchemaException(version, versions);
|
||||
}
|
||||
}
|
||||
|
||||
static const versions = const [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
31,
|
||||
];
|
||||
}
|
||||
-5998
File diff suppressed because it is too large
Load Diff
-7162
File diff suppressed because it is too large
Load Diff
-7201
File diff suppressed because it is too large
Load Diff
-7201
File diff suppressed because it is too large
Load Diff
-7768
File diff suppressed because it is too large
Load Diff
-7881
File diff suppressed because it is too large
Load Diff
-7916
File diff suppressed because it is too large
Load Diff
-8302
File diff suppressed because it is too large
Load Diff
-8340
File diff suppressed because it is too large
Load Diff
-8345
File diff suppressed because it is too large
Load Diff
-8400
File diff suppressed because it is too large
Load Diff
-5998
File diff suppressed because it is too large
Load Diff
-8474
File diff suppressed because it is too large
Load Diff
-8548
File diff suppressed because it is too large
Load Diff
-8849
File diff suppressed because it is too large
Load Diff
-9179
File diff suppressed because it is too large
Load Diff
-9131
File diff suppressed because it is too large
Load Diff
-9345
File diff suppressed because it is too large
Load Diff
-9384
File diff suppressed because it is too large
Load Diff
-9384
File diff suppressed because it is too large
Load Diff
-9389
File diff suppressed because it is too large
Load Diff
-10027
File diff suppressed because it is too large
Load Diff
-5995
File diff suppressed because it is too large
Load Diff
-10027
File diff suppressed because it is too large
Load Diff
-10032
File diff suppressed because it is too large
Load Diff
-6444
File diff suppressed because it is too large
Load Diff
-6405
File diff suppressed because it is too large
Load Diff
-6451
File diff suppressed because it is too large
Load Diff
-6456
File diff suppressed because it is too large
Load Diff
-6666
File diff suppressed because it is too large
Load Diff
-6715
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user