chocofamilyme / laravel-clickhouse-migrations
Clickhouse migrations based on Laravel migrations and smi2/phpclickhouse
Installs: 177
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/chocofamilyme/laravel-clickhouse-migrations
Requires
- php: ^8.0
- smi2/phpclickhouse: ^1.4
Requires (Dev)
README
Requirements:
- php ^8.0
- Laravel ^8.2
Currently, Laravel 9 Is not supported because of migration stub logic changes
Installation:
composer require chocofamilyme/laravel-clickhouse-migrations
- Comment out
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class
in config/app.php
Commands:
- create migrations: as usual
php artisan make:migration migration_name
- migrate:
php arisan clickhouse:migrate {--step} {--force : Force the operation to run when in production}
- rollback:
php arisan clickhouse:migrate:rollback {--step} {--force : Force the operation to run when in production}
- fresh:
php artisan clickhouse:migrate:fresh