Ignore android_metadata table in schema comparison

This commit is contained in:
Simon Binder 2022-09-13 10:38:12 +02:00
parent 025bb7c44b
commit 4da647e8a3
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ Input? _parseInputFromSchemaRow(
if (name.startsWith('sqlite_')) return null;
if (virtualTables.any((v) => name.startsWith('${v}_'))) return null;
// This file is added on some Android versions when using the native Android
// database APIs, https://github.com/simolus3/drift/discussions/2042
if (name == 'android_metadata') return null;
return Input(name, row['sql'] as String);
}