An Adobe Commerce developer is attempting to create a custom table using declarative schema but is unable to do so.
What are two errors in the snippet shown above?
An identity column is auto-incremented and must be backed by an index, typically a primary-key constraint. A column marked non-nullable cannot use NULL as its default value. The length attribute is not required for a text column; Adobe Commerce documents it for char, varchar, and varbinary columns.
NULL
length
text
char
varchar
varbinary
Community Discussion