fix enrollment logic, add financial aid, fix class distribution
Tests / PHPUnit (push) Failing after 1m6s
Tests / PHPUnit (push) Failing after 1m6s
This commit is contained in:
@@ -8,19 +8,27 @@ class AddVersionToExamDrafts extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->forge->addColumn('exam_drafts', [
|
||||
'version' => [
|
||||
$fields = [];
|
||||
|
||||
if (! $this->db->fieldExists('version', 'exam_drafts')) {
|
||||
$fields['version'] = [
|
||||
'type' => 'INT',
|
||||
'unsigned' => true,
|
||||
'default' => 1,
|
||||
],
|
||||
'previous_draft_id' => [
|
||||
];
|
||||
}
|
||||
|
||||
if (! $this->db->fieldExists('previous_draft_id', 'exam_drafts')) {
|
||||
$fields['previous_draft_id'] = [
|
||||
'type' => 'INT',
|
||||
'unsigned' => true,
|
||||
'null' => true,
|
||||
],
|
||||
]);
|
||||
$this->forge->addKey('version');
|
||||
];
|
||||
}
|
||||
|
||||
if ($fields !== []) {
|
||||
$this->forge->addColumn('exam_drafts', $fields);
|
||||
}
|
||||
}
|
||||
|
||||
public function down()
|
||||
|
||||
Reference in New Issue
Block a user