Mapping issue: Id int64 auto mapping to auto increment primary key - no longer valid #17

Closed
opened 2019-05-20 17:30:07 +00:00 by gunnsth · 1 comment
gunnsth commented 2019-05-20 17:30:07 +00:00 (Migrated from github.com)

From: https://github.com/go-xorm/manual-en-US/blob/master/chapter-02/4.columns.mdi.

If field is name of Id and type of int64, xorm makes it as auto increment primary key. If another field, use struct tag xorm:"pk".

Is this no longer valid?

Seems like it is not picking up Id anymore. Should update the documentation.

From: https://github.com/go-xorm/manual-en-US/blob/master/chapter-02/4.columns.mdi. ``` If field is name of Id and type of int64, xorm makes it as auto increment primary key. If another field, use struct tag xorm:"pk". ``` Is this no longer valid? Seems like it is not picking up `Id` anymore. Should update the documentation.

It still valids.

It still valids.
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/manual-en-US#17
No description provided.