No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

27 líneas
669 B

  1. //
  2. // File.swift
  3. //
  4. //
  5. // Created by Michiel Carman on 4/11/24.
  6. //
  7. import NIOSSL
  8. import Fluent
  9. import FluentPostgresDriver
  10. import Vapor
  11. public func doMigrations(_ app: Application) async throws{
  12. app.migrations.add(mdlAssociate.Create())
  13. app.migrations.add(mdlDepartment.Create())
  14. app.migrations.add(mdlDepartment.AddParentReference())
  15. app.migrations.add(mdlDocType.Create())
  16. app.migrations.add(mdlDocument.Create())
  17. app.migrations.add(mdlXAssocDept.Create())
  18. app.migrations.add(mdlXDocDept.Create())
  19. app.migrations.add(mdlDocument.tmpField())
  20. app.migrations.add(mdlAssociate.Mod1())
  21. try await app.autoMigrate()
  22. }