You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 rivejä
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. }