Esempio n. 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->up();
Esempio n. 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();
$database = new \Database\migrations\mysql\SetUpMySqlDb();
$database->down();
$database->up();
Esempio n. 3
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();
Esempio n. 4
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();