芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20200612141755_oauth_upgrade_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class OauthUpgradeMigration */ class OauthUpgradeMigration extends AbstractMigration { /** @inheritDoc */ public function change() { // Delete oAuth tables which are no longer in use. $this->dropTable('oauth_access_token_scopes'); $this->dropTable('oauth_session_scopes'); $this->dropTable('oauth_refresh_tokens'); $this->dropTable('oauth_auth_code_scopes'); $this->dropTable('oauth_auth_codes'); $this->dropTable('oauth_access_tokens'); $this->dropTable('oauth_sessions'); // Add a new column to the Applications table to indicate whether an app is confidential or not $clients = $this->table('oauth_clients'); if (!$clients->hasColumn('isConfidential')) { $clients ->addColumn('isConfidential', 'integer', [ 'default' => 1, 'limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY ]) ->save(); } } }