angel-dart-archive / orm

moved to angel-dart/angel/packages/orm

Home Page:https://github.com/angel-dart/angel/tree/master/packages/orm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Foreign key indexing and not-null

sanmadjack opened this issue · comments

*This issue was automatically moved to: angel-dart/angel#224.

Hmm... See what happens if you add a @notNull annotation.

Changed to:

  @Column(indexType: IndexType.standardIndex)
  @BelongsTo()
  @notNull
  _ImportBatch get importBatch;

migrate refreshed and the foreign key column is still set to allow nulls.

I'm currently running:
angel_orm 2.0.0
angel_orm_generator 2.0.4
angel_orm_postgres 1.0.0

Thanks. I'll likely be able to roll out a fix for this tonight, but at the moment, I'm currently studying.

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.

Are you still getting this error?