kopia lustrzana https://github.com/magicbug/Cloudlog
Only run migration when both IFs are met
rodzic
414774e3a6
commit
96721ea71d
|
@ -14,7 +14,7 @@ class Migration_rename_profile_images extends CI_Migration {
|
||||||
|
|
||||||
public function up()
|
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(
|
$fields = array(
|
||||||
'user_show_qrz_image' => [ 'name' => 'user_show_profile_image', 'type' => ' BOOLEAN DEFAULT FALSE', ]
|
'user_show_qrz_image' => [ 'name' => 'user_show_profile_image', 'type' => ' BOOLEAN DEFAULT FALSE', ]
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue