25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AllMigrations.swift 669 B

2 년 전
2 년 전
1234567891011121314151617181920212223242526
  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. }