Beispiel #1
0
<?php

/**
 * @author  Rizart Dokollari <*****@*****.**>
 * @since   16/12/2015
 */
require __DIR__ . '/../../../vendor/autoload.php';
$dotenv = new Dotenv\Dotenv(__DIR__ . '/../../..');
$dotenv->load();
$dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USERNAME', 'DB_PASSWORD', 'DB_PORT'])->notEmpty();
$database = new \Database\migrations\mysql\SetUpMySqlDb();
$database->down();
Beispiel #2
0
<?php

/**
 * @author  Rizart Dokollari <*****@*****.**>
 * @since   16/12/2015
 */
require __DIR__ . '/../../../vendor/autoload.php';
$dotenv = new Dotenv\Dotenv(__DIR__ . '/../../..');
$dotenv->load();
$dotenv->required(['DB_HOST', 'DB_NAME', 'DB_USERNAME', 'DB_PASSWORD', 'DB_PORT'])->notEmpty();
$mysqlDatabase = new \Database\migrations\mysql\SetUpMySqlDb();
$mysqlDatabaseSeeder = new \Database\seeds\MySqlDatabaseSeeder();
$mysqlDatabase->down();
$mysqlDatabase->up();
$mysqlDatabaseSeeder->run();