Created
May 27, 2016 22:03
-
-
Save alexweissman/3ec00498e6776cccf3e473d1b83cc2f6 to your computer and use it in GitHub Desktop.
Tryina use Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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