Skip to content

Instantly share code, notes, and snippets.

@alexweissman
Created May 27, 2016 22:03
Show Gist options
  • Select an option

  • Save alexweissman/3ec00498e6776cccf3e473d1b83cc2f6 to your computer and use it in GitHub Desktop.

Select an option

Save alexweissman/3ec00498e6776cccf3e473d1b83cc2f6 to your computer and use it in GitHub Desktop.
Tryina use Schema
<?php
use Illuminate\Database\Schema\Blueprint;
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
global $app;
$app->get('/install', function (Request $request, Response $response, $args) {
Schema::create('activations', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('code');
$table->boolean('completed')->default(0);
$table->timestamp('completed_at')->nullable();
$table->timestamps();
$table->engine = 'InnoDB';
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment