|
|
@ -318,7 +318,7 @@ class mxxxxxx_xxxxxx_update_{table}_table_{column}_column extends Migration |
|
|
|
*/ |
|
|
|
public function safeUp() |
|
|
|
{ |
|
|
|
$this->update('{table}', ['{column}' => $this->getBitFlagExpression('{column}', 1, 'insert', {k})]); |
|
|
|
$this->update('{table}', ['{column}' => $this->getBitFlagExpression('{column}', {pos}, 'insert', {k})]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -326,7 +326,7 @@ class mxxxxxx_xxxxxx_update_{table}_table_{column}_column extends Migration |
|
|
|
*/ |
|
|
|
public function safeDown() |
|
|
|
{ |
|
|
|
$this->update('{table}', ['{column}' => $this->getBitFlagExpression('{column}', 1, 'delete')]); |
|
|
|
$this->update('{table}', ['{column}' => $this->getBitFlagExpression('{column}', {pos}, 'delete')]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|