Download the PHP package sharpen/versionna without Composer
On this page you can find all versions of the php package sharpen/versionna. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharpen/versionna
More information about sharpen/versionna
Files in sharpen/versionna
Package versionna
Short Description Manticoresearch migration tool. Keep your index schemas up to date programmatically in your application
License MIT
Informations about the package versionna
versionna
Manticoresearch migration tool. Keep updated your index schemas up to date using an executable CLI script or integrate it programmatically in your application code.
Table of contents
- versionna
- Table of contents
- project progress and roadmap
- Installation
- Usage
- Create migration
- CLI
- programmatically
- Apply migrations
- CLI
- programmatically
- Rollback migration
- CLI
- programmatically
- List migrations applied history
- CLI
- programmatically
- List pending migrations
- CLI
- programmatically
project progress and roadmap
- [x] Add CI pipeline
- [x] Add PHP versions supported
- [x] 8.0
- [x] 8.1
- [x] 8.2
- [x] PhpStan
- [x] PHPUnit run tests
- [x] Add PHP versions supported
- Pre-commit linter and tests checks
- [x] Add Grumphp
- [x] PHPStan
- [x] PHPUnit
- [x] Add Grumphp
- [ ] Add a logger implementation
- [x] Add docker-compose stack files for testing and development
- [ ] Add code documentation
- [x] Write a complete README file explaining all
- [ ] Add unit and integration tests
- [x] Add command line interface feature
- [x] Add cli application metadata such as name, description, etc.
- [x] Created structure of the CLI application
- [x] Executable script (bin/versionna)
- [ ] Add commands
- [x] list
- [ ] make:config
- [x] make:migration
- [x] migration:list:pending
- [x] migration:list:migrated
- [x] migrate
- [x] rollback
- [ ] rollback with --steps
- [x] fresh
- [ ] refresh
- [ ] refresh with --steps
- [ ] reset
- [ ] status
- [x] help
- [x] Add drivers to support multiple DBs engines dialects
- [x] Add driver for SQLite
- [x] Add driver for MySQL
- [x] Add driver for PostgreSQL
- [ ] Create a Laravel package
- [ ] Create a Symfony package
Installation
Usage
First of all, you need to install the package.
After been installed, you need to create a directory. That directory will contain the migration files sorted by creation date.
You have two different ways to use this package:
- programmatically
- CLI
You can create your own integration with versionna
using the programmatically way as you can see in hte examples directory in this repository.
In each section of these documentation you will see both: programmatically and CLI version to create, migrate, rollback, list applied and pending migrations.
Create migration
CLI
To create a migration file you have to use the make:migration and the class name (the migration class name that extends Migration class) using snake_case_style. This class name should be a descriptive name. It's better a long name for two reasons:
- to better understand what the migration does
- and for avoid duplicated class names
programmatically
Apply migrations
CLI
There are two available commands for apply pending migrations using the Command Line Interface
programmatically
Rollback migration
CLI
There are two available commands to rollback applied migrations using the Command Line Interface
programmatically
List migrations applied history
CLI
For list pending migrations using the Command Line tool
programmatically
List pending migrations
CLI
For list pending migrations using the Command Line tool
programmatically
All versions of versionna with dependencies
manticoresoftware/manticoresearch-php Version ^1.8
nyholm/dsn Version ^2.0
symfony/console Version ^5.4.9