From 04fd087ca9b0b1c6c0556c211ec4d510f9143f1c Mon Sep 17 00:00:00 2001
From: Bastien Le Querrec <blq@laquadrature.net>
Date: Mon, 9 Nov 2020 23:39:51 +0100
Subject: [PATCH] increase the identifier max size in DB

We have a lot of identifiers with size>20 after 2019-04.
---
 .../20201109223011_increase_identifier_length.php     | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 db/migrations/20201109223011_increase_identifier_length.php

diff --git a/db/migrations/20201109223011_increase_identifier_length.php b/db/migrations/20201109223011_increase_identifier_length.php
new file mode 100644
index 0000000..0afcb3c
--- /dev/null
+++ b/db/migrations/20201109223011_increase_identifier_length.php
@@ -0,0 +1,11 @@
+<?php
+
+use Phinx\Migration\AbstractMigration;
+
+class IncreaseIdentifierLength extends AbstractMigration
+{
+    public function change()
+    {
+        $this->adapter->execute("ALTER TABLE dons modify COLUMN identifier VARCHAR(255) NULL;");
+    }
+}
-- 
GitLab