You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pleerock How exactly is this achieved? I can not seem to find any documentation or property in the ColumnOptions interface for defining an unsigned column?
Reacted by Luca Adrian L, vkosachev and Artur Klesun
@d-yokoi yep, I forgot to add it in PrimaryGeneratedColumn options. You can solve it by using @PrimaryColumn({ unsigned: true }) and @Generated() decorators as hotfix. I'll add this in the next release.
Activity
[-]how can i defined unsigned column?[/-][+]how can i define unsigned column?[/+]pleerock commentedon May 2, 2017
custom column types are not supported yet. But its planned in the future
pleerock commentedon Jun 17, 2017
All database specific column types are supported now since
0.1.0-alpha.10jonathan-palumbo commentedon Jan 19, 2018
@pleerock How exactly is this achieved? I can not seem to find any documentation or property in the
ColumnOptionsinterface for defining an unsigned column?apasare commentedon Jan 27, 2018
@pleerock i'm wondering the same, how do i get typeorm to generate the following migration code
id INT UNSIGNED NOT NULL AUTO_INCREMENTvkosachev commentedon Feb 28, 2018
Are there any workarounds on this ?
added support for UNSIGNED and ZEROFILL attributes in MySQL (issue #438…
AlexMesser commentedon Mar 30, 2018
UNSIGNEDandZEROFILLattributes avaliable from[email protected]. You can try it vianpm i typeorm@next. Usage:0x0-x-0x0 commentedon Apr 10, 2018
@AlexMesser
I want to add
UNSIGNEDattribute onPrimaryGeneratedColumndecorated property but it's not supported right?AlexMesser commentedon Apr 11, 2018
@d-yokoi yep, I forgot to add it in
PrimaryGeneratedColumnoptions. You can solve it by using@PrimaryColumn({ unsigned: true })and@Generated()decorators as hotfix. I'll add this in the next release.AlexMesser commentedon Apr 12, 2018
fixed and released in
[email protected]. You can try it vianpm i typeorm@next.0x0-x-0x0 commentedon Apr 15, 2018
Thank you! I'll use it.
working "github issues > #438 how can i define unsigned column?"