Merge pull request #1360 from acelaya-forks/feature/hide-db-commands

Marked database commands as hidden
This commit is contained in:
Alejandro Celaya 2022-01-30 13:04:10 +01:00 committed by GitHub
commit 12913f6b90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View file

@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
## [Unreleased]
### Added
* *Nothing*
### Changed
* [#1359](https://github.com/shlinkio/shlink/issues/1359) Hidden database commands.
### Deprecated
* *Nothing*
### Removed
* *Nothing*
### Fixed
* *Nothing*
## [3.0.0] - 2022-01-28 ## [3.0.0] - 2022-01-28
### Added ### Added
* [#767](https://github.com/shlinkio/shlink/issues/767) Added full support to use emojis everywhere, whether it is custom slugs, titles, referrers, etc. * [#767](https://github.com/shlinkio/shlink/issues/767) Added full support to use emojis everywhere, whether it is custom slugs, titles, referrers, etc.

View file

@ -35,6 +35,7 @@ class CreateDatabaseCommand extends AbstractDatabaseCommand
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setHidden()
->setDescription( ->setDescription(
'Creates the database needed for shlink to work. It will do nothing if the database already exists', 'Creates the database needed for shlink to work. It will do nothing if the database already exists',
); );

View file

@ -19,6 +19,7 @@ class MigrateDatabaseCommand extends AbstractDatabaseCommand
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setHidden()
->setDescription('Runs database migrations, which will ensure the shlink database is up to date.'); ->setDescription('Runs database migrations, which will ensure the shlink database is up to date.');
} }