getTable('c_quiz_question'); $question ->getColumn('ponderation') ->setDefault(0); $answer = $schema->getTable('c_quiz_answer'); $answer ->getColumn('ponderation') ->setDefault(0); $answer ->getColumn('destination') ->setNotnull(false) ->setDefault(null); } /** * @param Schema $schema */ public function down(Schema $schema) { $answer = $schema->getTable('c_quiz_answer'); $answer ->getColumn('destination') ->setNotnull(true) ->setDefault(0); } }