updated session task to run through migration system.

This commit is contained in:
Taylor Otwell
2012-01-24 16:19:28 -06:00
parent 27fdb1e3f5
commit c9eb7bdf35
9 changed files with 195 additions and 26 deletions

View File

@@ -1,11 +1,11 @@
<?php namespace Laravel\CLI\Tasks;
<?php namespace Laravel\CLI\Tasks\Session;
use Laravel\File;
use Laravel\Config;
use Laravel\Database\Schema;
use Laravel\Session\Drivers\Sweeper;
class Session extends Task {
class Manager extends Task {
/**
* Generate the session table on the database.
@@ -19,7 +19,7 @@ class Session extends Task {
{
$table->create();
// The session table consists simply of a ID, a UNIX timestamp to
// The session table consists simply of an ID, a UNIX timestamp to
// indicate the expiration time, and a blob field which will hold
// the serialized form of the session payload.
$table->string('id')->length(40)->primary('session_primary');