Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
447 changes: 447 additions & 0 deletions client/drift_schemas/defguard/drift_schema_v8.json

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion client/lib/data/db/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class DefguardInstances extends Table with AutoIncrementingPrimaryKey {
TextColumn get openidDisplayName => text().nullable()();

TextColumn get openidProviderKind => textEnum<OpenIdProvider>().nullable()();

TextColumn get mfaContract =>
textEnum<MfaContract>().withDefault(const Constant('legacy'))();
}

@DataClassName('Location')
Expand Down Expand Up @@ -132,7 +135,7 @@ class AppDatabase extends _$AppDatabase {
}

@override
int get schemaVersion => 7;
int get schemaVersion => 8;

@override
MigrationStrategy get migration {
Expand Down Expand Up @@ -215,6 +218,12 @@ class AppDatabase extends _$AppDatabase {
schema.defguardInstances.openidProviderKind,
);
},
from7To8: (m, schema) async {
await m.addColumn(
schema.defguardInstances,
schema.defguardInstances.mfaContract,
);
},
),
);
}
Expand Down
85 changes: 82 additions & 3 deletions client/lib/data/db/database.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading