You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
586 B

<?php
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Database\Schema\Blueprint;
use Glmdev\Meta\Meta;
require __DIR__ . '/vendor/autoload.php';
date_default_timezone_set('UTC');
/*
* Prepare the db connection (spoofing that shit)
*/
$capsule = new Capsule;
$capsule->addConnection([
'driver' => 'sqlite',
'database' => ':memory:',
]);
$capsule->setAsGlobal();
$capsule->bootEloquent();
$capsule->schema()->dropIfExists('metas');
$capsule->schema()->create('metas', function (Blueprint $table) {
$table->timestamps();
Meta::formTable($table);
});