Default value for database table attribute

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
kartikbhat
Posts: 40
Joined: 02 Dec 2021, 17:18

Default value for database table attribute

Post by kartikbhat » 25 Aug 2022, 11:53

How can I set a default value for newly added database table attributes.


TIA :)
Attachments
supplierSchema.png
supplierSchema.png (70.93 KiB) Viewed 903 times

User avatar
aimeos
Administrator
Posts: 8636
Joined: 01 Jan 1970, 00:00

Re: Default value for database table attribute

Post by aimeos » 27 Aug 2022, 06:00

Use this in the "options" array:

Code: Select all

'default' => 0,
// or
'default' => ''
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply