From 0f0c8e88c7718d5b30e72249cf0bfb9a0c2a1f01 Mon Sep 17 00:00:00 2001
From: tracer <tracer@24unix.net>
Date: Thu, 10 Jun 2021 20:55:03 +0200
Subject: [PATCH] added session table

---
 migrations/Version20210610182614.php | 37 ++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 migrations/Version20210610182614.php

diff --git a/migrations/Version20210610182614.php b/migrations/Version20210610182614.php
new file mode 100644
index 0000000..ac8d1b1
--- /dev/null
+++ b/migrations/Version20210610182614.php
@@ -0,0 +1,37 @@
+<?php
+
+declare(strict_types=1);
+
+namespace DoctrineMigrations;
+
+use Doctrine\DBAL\Schema\Schema;
+use Doctrine\Migrations\AbstractMigration;
+
+/**
+ * Auto-generated Migration: Please modify to your needs!
+ */
+final class Version20210610182614 extends AbstractMigration
+{
+    public function getDescription(): string
+    {
+        return '';
+    }
+
+    public function up(Schema $schema): void
+    {
+        // this up() migration is auto-generated, please modify it to your needs
+	    $this->addSql('CREATE TABLE `sessions` (
+    `sess_id` VARBINARY(128) NOT NULL PRIMARY KEY,
+    `sess_data` BLOB NOT NULL,
+    `sess_lifetime` INTEGER UNSIGNED NOT NULL,
+    `sess_time` INTEGER UNSIGNED NOT NULL,
+    INDEX `sessions_sess_lifetime_idx` (`sess_lifetime`)
+) COLLATE utf8mb4_bin, ENGINE = InnoDB;');
+    }
+
+    public function down(Schema $schema): void
+    {
+        // this down() migration is auto-generated, please modify it to your needs
+
+    }
+}