Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion engine/src/main/java/com/arcadedb/schema/EmbeddedSchema.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ public TypeIndex createTypeIndex(final INDEX_TYPE indexType, final boolean uniqu
public TypeIndex createTypeIndex(final INDEX_TYPE indexType, final boolean unique, final String typeName, final String[] propertyNames, final int pageSize,
final LSMTreeIndexAbstract.NULL_STRATEGY nullStrategy, final Index.BuildIndexCallback callback) {
database.checkPermissionsOnDatabase(SecurityDatabaseUser.DATABASE_ACCESS.UPDATE_SCHEMA);

if(indexType==null)
throw new DatabaseMetadataException("Cannot create index on type '" + typeName + "' because indexType was not specified");
if (propertyNames.length == 0)
throw new DatabaseMetadataException("Cannot create index on type '" + typeName + "' because there are no property defined");

Expand Down