feat(API): Fix generation strategy for mysql/mariadb (#14028)

This commit is contained in:
Guillaume Jacquart
2025-03-18 17:53:58 +01:00
committed by GitHub
parent b2e359ac1c
commit 24d8eac85d

View File

@@ -179,7 +179,7 @@ export class Column {
if (isGenerated2) {
options.isGenerated = true;
options.generationStrategy = type === 'uuid' ? 'uuid' : 'identity';
options.generationStrategy = type === 'uuid' ? 'uuid' : isMysql ? 'increment' : 'identity';
}
if (isPrimary || isGenerated || isGenerated2) {