Closed emreakcan closed 1 month ago
I really want to get this fixed ASAP.
Could you post the InteractiveMapHolesTable
table too?
For now, If you don't plan on using the manager api, you can disable it's generation with
I really want to get this fixed ASAP. Could you post the
InteractiveMapHolesTable
table too?For now, If you don't plan on using the manager api, you can disable it's generation with
Here is the table
@DataClassName('InteractiveMapHolesEntity')
class InteractiveMapHolesTable extends Table {
TextColumn get tournamentId =>
text().references(InteractiveMapsTable, #tournamentId)();
RealColumn get topLeftX => real()();
RealColumn get topLeftY => real()();
RealColumn get bottomRightX => real()();
RealColumn get bottomRightY => real()();
TextColumn get imageUrl => text()();
IntColumn get holeId => integer()();
TextColumn get heroUrl => text().nullable()();
TextColumn get worldFile => text()();
@override
Set<Column> get primaryKey => {tournamentId, holeId};
}
It is working after I disabled manager api
Caused by having a foreign key on another foreign key
ShotTracingTable.tournamentId->InteractiveMapHolesTable.tournamentId->InteractiveMapsTable.tournamentId
An edge case I didn't consider
Describe the bug
Code generation generates the following
Which results in
Our table looks like
We are using latest version, and latest version of the build runner.