()
| 275 | } |
| 276 | |
| 277 | export async function isInstalled(): Promise<boolean> { |
| 278 | const inspector = getSchemaInspector(); |
| 279 | |
| 280 | // The existence of a directus_collections table alone isn't a "proper" check to see if everything |
| 281 | // is installed correctly of course, but it's safe enough to assume that this collection only |
| 282 | // exists when Directus is properly installed. |
| 283 | return await inspector.hasTable('directus_collections'); |
| 284 | } |
| 285 | |
| 286 | export async function validateMigrations(): Promise<boolean> { |
| 287 | const database = getDatabase(); |
no test coverage detected