PHP code example of arfaram / ezdatabasemigrationschema

1. Go to this page and download the library: Download arfaram/ezdatabasemigrationschema 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/ */

    

arfaram / ezdatabasemigrationschema example snippets


    public function registerBundles()
    {
        $bundles = array(
            new EzPlatform\DatabaseSchemaMigrationBundle\EzPlatformDatabaseSchemaMigrationBundle(),
        );

php bin/console db_schema_migration:schema:export

php bin/console db_schema_migration:schema:drop

php bin/console db_schema_migration:table:drop <Table-Name>