25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- //
- // 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())
- app.migrations.add(mdlAssociate.Mod1())
-
- try await app.autoMigrate()
- }
|