From cdd5ff118e21ffe82d4dfe24f4b985868e2110dc Mon Sep 17 00:00:00 2001 From: int2001 Date: Tue, 4 Nov 2025 13:31:44 +0000 Subject: [PATCH] Extend DOK-Columns to 20 Characters --- application/config/migration.php | 2 +- application/migrations/263_longer_dok.php | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 application/migrations/263_longer_dok.php diff --git a/application/config/migration.php b/application/config/migration.php index 4e2bbf83c..b8f51a4af 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 262; +$config['migration_version'] = 263; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/263_longer_dok.php b/application/migrations/263_longer_dok.php new file mode 100644 index 000000000..2a2903e99 --- /dev/null +++ b/application/migrations/263_longer_dok.php @@ -0,0 +1,22 @@ +dbtry("ALTER TABLE ".$this->config->item('table_name')." MODIFY COLUMN COL_DARC_DOK varchar(20);"); + $this->dbtry("ALTER TABLE ".$this->config->item('table_name')." MODIFY COLUMN COL_MY_DARC_DOK varchar(20);"); + } + + public function down(){ + } + + function dbtry($what) { + try { + $this->db->query($what); + } catch (Exception $e) { + log_message("error", "Something gone wrong while altering the QSO table: ".$e." // Executing: ".$this->db->last_query()); + } + } +}