Only run migration when both IFs are met
这个提交包含在:
父节点
414774e3a6
当前提交
96721ea71d
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -14,7 +14,7 @@ class Migration_rename_profile_images extends CI_Migration {
|
|||
|
||||
public function up()
|
||||
{
|
||||
if ($this->db->field_exists('user_show_qrz_image', 'users')) {
|
||||
if ($this->db->field_exists('user_show_qrz_image', 'users') && !$this->db->field_exists('user_show_profile_image', 'users')) {
|
||||
$fields = array(
|
||||
'user_show_qrz_image' => [ 'name' => 'user_show_profile_image', 'type' => ' BOOLEAN DEFAULT FALSE', ]
|
||||
);
|
||||
|
|
|
|||
正在加载…
在新工单中引用