summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-15 17:24:59 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-16 14:56:07 +0200
commit104e4f4c437376eb739dd3ef2de603855947a557 (patch)
treeb28f33e6d2fbb2aad5af074d2eb1d2e02148c6cd /db
parentedeab5e75ffa02b075c151ca03ea1038f61e4396 (diff)
Session: Added Symfony PDO backend
Diffstat (limited to 'db')
-rw-r--r--db/migrations/2018_09_11_000000_create_sessions_table.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/db/migrations/2018_09_11_000000_create_sessions_table.php b/db/migrations/2018_09_11_000000_create_sessions_table.php
new file mode 100644
index 00000000..0af96d33
--- /dev/null
+++ b/db/migrations/2018_09_11_000000_create_sessions_table.php
@@ -0,0 +1,28 @@
+<?php
+
+use Engelsystem\Database\Migration\Migration;
+use Illuminate\Database\Schema\Blueprint;
+
+class CreateSessionsTable extends Migration
+{
+ /**
+ * Run the migration
+ */
+ public function up()
+ {
+ $this->schema->create('sessions', function (Blueprint $table) {
+ $table->string('id')->unique();
+ $table->text('payload');
+ $table->integer('last_activity');
+ $table->integer('lifetime');
+ });
+ }
+
+ /**
+ * Reverse the migration
+ */
+ public function down()
+ {
+ $this->schema->dropIfExists('sessions');
+ }
+}