mirror of https://github.com/AMT-Cheif/drift.git
Only write toColumns mixin if `writeDataClasses` is enabled
This commit is contained in:
parent
443759f02f
commit
132d53fbb8
|
@ -272,11 +272,11 @@ class TableWriter extends TableOrViewWriter {
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeDataClass() {
|
void writeDataClass() {
|
||||||
if (scope.options.writeToColumnsMixins) {
|
|
||||||
writeToColumnsMixin();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (scope.generationOptions.writeDataClasses) {
|
if (scope.generationOptions.writeDataClasses) {
|
||||||
|
if (scope.options.writeToColumnsMixins) {
|
||||||
|
writeToColumnsMixin();
|
||||||
|
}
|
||||||
|
|
||||||
final existing = table.existingRowClass;
|
final existing = table.existingRowClass;
|
||||||
if (existing != null) {
|
if (existing != null) {
|
||||||
// We don't have to write a row class if we're using one provided by the
|
// We don't have to write a row class if we're using one provided by the
|
||||||
|
|
Loading…
Reference in New Issue