16 lines
536 B
PHP
16 lines
536 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Migration_Preserve_legacy_posting_default extends CI_Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->db->query("ALTER TABLE journals MODIFY status ENUM('draft','submitted','approved','posted','rejected','reversed') NOT NULL DEFAULT 'posted'");
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->db->query("ALTER TABLE journals MODIFY status ENUM('draft','submitted','approved','posted','rejected','reversed') NOT NULL DEFAULT 'draft'");
|
|
}
|
|
}
|