import Foundation
import FluentProvider

extension ProblemCase: Preparation {
    
    static func prepare(_ database: Database) throws {
        try database.create(self) { builder in
            builder.id()
            builder.parent(Problem.self, optional: false)
            builder.string("input", length: 2000)
            builder.string("output")
            builder.bool("visible")
        }
    }
    
    static func revert(_ database: Database) throws {
        try database.delete(self)
    }
    
}

import Foundation
import FluentProvider

extension ProblemCase: Preparation {
    
    static func prepare(_ database: Database) throws {
        try database.create(self) { builder in
            builder.id()
            builder.parent(Problem.self, optional: false)
            builder.string("input")
            builder.string("output")
            builder.bool("visible")
        }
    }
    
    static func revert(_ database: Database) throws {
        try database.delete(self)
    }
    
}

--- 
+++ 
@@ -7,7 +7,7 @@
         try database.create(self) { builder in
             builder.id()
             builder.parent(Problem.self, optional: false)
-            builder.string("input")
+            builder.string("input", length: 2000)
             builder.string("output")
             builder.bool("visible")
         }
Extend problem case input column to 2000 chars
