accounts/console/migrations/m180102_164624_increase_minecraft_access_keys_client_token_length.php

16 lines
413 B
PHP
Raw Normal View History

2018-01-02 22:52:56 +05:30
<?php
use console\db\Migration;
class m180102_164624_increase_minecraft_access_keys_client_token_length extends Migration {
public function safeUp() {
$this->alterColumn('{{%minecraft_access_keys}}', 'client_token', $this->string()->notNull());
}
public function safeDown() {
$this->alterColumn('{{%minecraft_access_keys}}', 'client_token', $this->string(36)->notNull());
}
}