diff --git a/src/modb_manage_p.c b/src/modb_manage_p.c index 92c8f30..eef2bd2 100644 --- a/src/modb_manage_p.c +++ b/src/modb_manage_p.c @@ -149,7 +149,7 @@ uint64_t createUsersTable(struct stored_conn_t *sconn, struct modb_t *modb) "`created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, " "`updated` TIMESTAMP on update CURRENT_TIMESTAMP NULL DEFAULT NULL, " "`deleted` TIMESTAMP NULL DEFAULT NULL, " - "INDEX (`id`)" + "PRIMARY KEY (`id`)" ")", 0); if (strbld_finalize_or_destroy(&sb, &qry, &qry_len) != 0) { return (uint64_t)-1; @@ -178,7 +178,7 @@ uint64_t createGroupsTable(struct stored_conn_t *sconn, struct modb_t *modb) "`created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, " "`updated` TIMESTAMP on update CURRENT_TIMESTAMP NULL DEFAULT NULL, " "`deleted` TIMESTAMP NULL DEFAULT NULL, " - "INDEX (`id`)" + "PRIMARY KEY (`id`)" ")", 0); if (strbld_finalize_or_destroy(&sb, &qry, &qry_len) != 0) { return (uint64_t)-1;