Adding comment explaining name reservation during codegen

This commit is contained in:
Joshua Matthews 2023-09-19 09:54:52 -04:00
parent 0af636edd0
commit 73e417d451
No known key found for this signature in database
GPG Key ID: 207AC8D5EABDE954
1 changed files with 3 additions and 0 deletions

View File

@ -325,6 +325,9 @@ class SchemaVersionWriter {
final versionClass = '_S$versionNo';
final versionScope = libraryScope.child();
// Reserve all the names already in use in [VersionedSchema] and its
// superclasses. Without this certain table names would cause us to
// generate invalid code.
versionScope.reserveNames([
'database',
'entities',