Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
- //
- // File.swift
- //
- //
- // Created by Michiel Carman on 4/11/24.
- //
-
- import NIOSSL
- import Fluent
- import FluentPostgresDriver
- import Vapor
-
- public func doMigrations(_ app: Application) async throws{
-
- app.migrations.add(mdlAssociate.Create())
- app.migrations.add(mdlDepartment.Create())
- app.migrations.add(mdlDepartment.AddParentReference())
- app.migrations.add(mdlDocType.Create())
- app.migrations.add(mdlDocument.Create())
- app.migrations.add(mdlXAssocDept.Create())
- app.migrations.add(mdlXDocDept.Create())
- app.migrations.add(mdlDocument.tmpField())
-
- try await app.autoMigrate()
- }
|