Closed thosakwe closed 3 years ago
@thosakwe commented:
Hmm... See what happens if you add a @notNull
annotation.
@sanmadjack commented:
Changed to:
@Column(indexType: IndexType.standardIndex)
@BelongsTo()
@notNull
_ImportBatch get importBatch;
migrate refreshed and the foreign key column is still set to allow nulls.
@sanmadjack commented:
I'm currently running: angel_orm 2.0.0 angel_orm_generator 2.0.4 angel_orm_postgres 1.0.0
@thosakwe commented:
Thanks. I'll likely be able to roll out a fix for this tonight, but at the moment, I'm currently studying.
@sanmadjack commented:
I'm willing to help out to code some of this stuff if you point me at the package that it would need addressed in.
@thosakwe commented:
Are you still getting this error?
This issue was originally created by @sanmadjack here, before being automatically moved: https://github.com/angel-dart-archive/orm/issues/76
I want to add a relationship that is mandatory, but this doesn't result in the linking column being not null:
Additionally, it does not produce an index on the index column. How can I do these things?