Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed May 25, 2019
2 parents b4956db + 0f9a86a commit e33aad8
Show file tree
Hide file tree
Showing 36 changed files with 1,093 additions and 426 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Expand Up @@ -11,10 +11,6 @@ matrix:
env: DB=mysql
- php: 5.4
env: DB=mariadb
# - php: 5.4
# env: DB=postgres
# - php: 5.4
# env: DB=sqlite3
- php: 5.5
env: DB=mysqli
- php: 5.6
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 1.2.0 - 2019-04-30

- Supports running from the command line interface using the command: `db:tool`
- phpBB 3.2.0 or newer required. Support for phpBB 3.1 has ended.
- Added Dutch translation

## 1.1.3 - 2018-06-28

- Various code improvements and fixes
Expand Down
39 changes: 30 additions & 9 deletions README.md
@@ -1,22 +1,22 @@
## ![alt text](http://vsephpbb.github.io/logo/database_check_1.png "DB Tool") Database Optimize & Repair Tool for phpBB

A phpBB extension that will allow you to check, optimize and repair phpBB's MySQL database tables from a phpMyAdmin-like interface in the Administration Control Panel.
A phpBB extension that will allow you to check, optimize and repair phpBB's MySQL database tables from a phpMyAdmin-like interface in the Administration Control Panel or from the CLI.

[![Build Status](https://travis-ci.org/VSEphpbb/dbtool.svg)](https://travis-ci.org/VSEphpbb/dbtool)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/VSEphpbb/dbtool/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/VSEphpbb/dbtool/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/vse/dbtool/v/stable)](https://www.phpbb.com/customise/db/extension/database_optimize_and_repair_tool/)

## Features
* Optimize, Repair and Check tables directly from the ACP
* Select individual or all tables independently
* Displays table size and table overhead values
* Optimize, Repair and Check tables directly from the ACP or the CLI
* Select individual tables or all tables at once
* Displays table size and table overhead values in the ACP
* Option to safely disable board during the optimize/repair process
* Actions are logged to the Admin log
* Nice javascript interactions
* Results are logged to the Admin log
* Enhanced javascript interactions

## Minimum equirements
* phpBB 3.1.0 or phpBB 3.2.0
* PHP 5.3.3 or higher
## Minimum Requirements
* phpBB 3.2.0
* PHP 5.4 or higher
* MySQL 4.0.1 or higher (using MyISAM, InnoDB or Archive table types)

## Install
Expand All @@ -34,6 +34,27 @@ After installation, you can find the Optimize & Repair Tool in:
> Note: InnoDB table types do not support the Repair option.
## CLI Usage
The Optimize & Repair Tool can also be run from the command line interface in
phpBB using the `db:tool` command. The tool will prompt you to choose an operation:
Optimize, Repair, or Check.

To check, optimize or repair all tables:

`$ php bin/phpbbcli.php db:tool`

To check, optimize or repair a specific table:

`$ php bin/phpbbcli.php db:tool table_name`

To disable the board during an operation, use the `--disable-board` or `-D` option:

`$ php bin/phpbbcli.php db:tool --disable-board`

For help with the Optimize & Repair Tool command:

`$ php bin/phpbbcli.php db:tool --help`

## Uninstall
1. Navigate in the ACP to `Customise -> Manage extensions`.
2. Click the `Disable` link for Database Optimize & Repair Tool.
Expand Down
28 changes: 14 additions & 14 deletions acp/dbtool_info.php
@@ -1,28 +1,28 @@
<?php
/**
*
* Database Optimize & Repair Tool
*
* @copyright (c) 2013 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
*
* Database Optimize & Repair Tool
*
* @copyright (c) 2013 Matt Friedman
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

namespace vse\dbtool\acp;

/**
* @package module_install
*/
* @package module_install
*/
class dbtool_info
{
public function module()
{
return array(
return [
'filename' => '\vse\dbtool\acp\dbtool_module',
'title' => 'ACP_OPTIMIZE_REPAIR',
'modes' => array(
'view' => array('title' => 'ACP_OPTIMIZE_REPAIR', 'auth' => 'ext_vse/dbtool && acl_a_backup', 'cat' => array('ACP_CAT_DATABASE')),
),
);
'modes' => [
'view' => ['title' => 'ACP_OPTIMIZE_REPAIR', 'auth' => 'ext_vse/dbtool && acl_a_backup', 'cat' => ['ACP_CAT_DATABASE']],
],
];
}
}

0 comments on commit e33aad8

Please sign in to comment.