hasTable(Application::APP_ID . '_tokens')) { * $table = $schema->createTable(Application::APP_ID . '_tokens'); * * $table->addColumn('id', Types::INTEGER, [ * 'autoincrement' => true, * 'notnull' => true, * 'length' => 20, * ]); * $table->addColumn('user_id', Types::STRING, [ * 'notnull' => true, * 'length' => 64, * ]); * $table->addColumn('token', Types::STRING, [ * 'notnull' => true, * 'length' => 40, * ]); * $table->addColumn('timestamp', Types::INTEGER, [ * 'notnull' => true, * 'length' => 20, * ]); * $table->addColumn('status', Types::INTEGER, [ * 'notnull' => true, * 'length' => 2, * ]); * * $table->setPrimaryKey(['id'], Application::APP_ID . '_tokens_id_idx'); * $table->addIndex(['token'], Application::APP_ID . '_tokens_token_idx'); * * return $schema; * } */ return null; } }