"; $migration = Migration::get()->filter('Name',$this->title)->first(); if (!$migration) { $migration = new Migration(); $migration->Name = $this->title; $migration->Description = $this->description; $migration->Write(); //run migration $surveys = DeploymentSurvey::get(); foreach($surveys as $survey){ $survey->SendDigest = 1; $survey->write(); } } else{ echo "Migration Already Ran!
"; } echo "Migration Done
"; } function down() { } }