first commit
This commit is contained in:
commit
d0e185820a
2710 files changed
+465112
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
use Migrations\AbstractMigration;
|
||||
|
||||
class Version451 extends AbstractMigration
|
||||
{
|
||||
public $autoId = false;
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->execute("SET SESSION sql_mode = ''");
|
||||
|
||||
$table_prefix = $this->getAdapter()->getOption('table_prefix');
|
||||
|
||||
$this->execute("UPDATE `{$table_prefix}users` SET `plan_id`=1 WHERE `plan_id`=0;");
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->execute("SET SESSION sql_mode = ''");
|
||||
|
||||
$table_prefix = $this->getAdapter()->getOption('table_prefix');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user