From 7bfcf0dc755afb7c89471d1a3e164a9fd5b0dbda Mon Sep 17 00:00:00 2001
From: Tomasz Wolniewicz <twoln@umk.pl>
Date: Wed, 18 Sep 2024 18:42:29 +0200
Subject: [PATCH] correcting federation table definition

---
 database/edugain_schema.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/database/edugain_schema.sql b/database/edugain_schema.sql
index e2f491f..0352ea1 100644
--- a/database/edugain_schema.sql
+++ b/database/edugain_schema.sql
@@ -507,8 +507,8 @@ DROP TABLE IF EXISTS `federation`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
 CREATE TABLE `federation` (
-  `fed_id` char(20) COLLATE utf8_unicode_ci NOT NULL,
-  `code` char(20) COLLATE utf8_unicode_ci DEFAULT NULL,
+  `code` char(20) COLLATE utf8_unicode_ci NOT NULL,
+  `fed_id` char(20) COLLATE utf8_unicode_ci DEFAULT NULL,
   `europe` tinyint(1) DEFAULT NULL,
   `contact_email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
   `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
-- 
GitLab