mirror of https://github.com/AMT-Cheif/drift.git
Adding comment explaining name reservation during codegen
This commit is contained in:
parent
0af636edd0
commit
73e417d451
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue