- Docker infrastructure (Dockerfile, docker-compose.yml, genieacs-sim) - AdonisJS v7 app with Inertia.js + Vue 3 - MongoDB integration - CWMP/TR-069 state machine engine - Configuration engine with compliance tracking - Branding: ADAM ACS (favicon, navbar, locales) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
13 lines
434 B
TypeScript
13 lines
434 B
TypeScript
import { MongoMigration } from '../mongo_migrator.js'
|
|
|
|
export default class CreateDiscoveryConfigsCollection extends MongoMigration {
|
|
async up(): Promise<void> {
|
|
const collection = this.db.collection('discovery_configs')
|
|
await collection.createIndex({ identifier: 1 }, { unique: true, name: 'idx_identifier' })
|
|
}
|
|
|
|
async down(): Promise<void> {
|
|
await this.db.dropCollection('discovery_configs').catch(() => {})
|
|
}
|
|
}
|