fix: Add missing indices on sqlite (#6673)

* fix: enforce tag name uniqueness on sqlite

* rename migration and add other missing indices

* add tags tests
This commit is contained in:
Val
2023-07-20 10:34:45 +01:00
committed by GitHub
parent 76a765a151
commit b1838f7fab
5 changed files with 91 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ import {
NodesController,
OwnerController,
PasswordResetController,
TagsController,
UsersController,
} from '@/controllers';
import { setupAuthMiddlewares } from '@/middlewares';
@@ -261,6 +262,14 @@ export const setupTestServer = ({
logger,
}),
);
break;
case 'tags':
registerController(
app,
config,
new TagsController({ config, externalHooks, repositories }),
);
break;
}
}
}