PHP code example of mavlitov98 / clickhouse-migrations

1. Go to this page and download the library: Download mavlitov98/clickhouse-migrations library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mavlitov98 / clickhouse-migrations example snippets


// config/bundles.php
// in older Symfony apps, enable the bundle in app/AppKernel.php
return [
    // ...
    ClickhouseMigrations\ClickhouseMigrationsBundle::class => ['all' => true],
];
bash
php bin/console clickhouse-migrations:generate
bash
php bin/console clickhouse-migrations:migrate
bash
php bin/console clickhouse-migrations:execute [VersionXXXXXXXXXXXXXX] [up|down]