From 2641634892eadcc0b722d45c129e5248ee758cc0 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 30 Jun 2019 22:02:07 +0100 Subject: [PATCH] Fixed issue where FORCE_INT and SWL columns where incorrectly setup by the old HRD schema. --- application/config/migration.php | 2 +- .../migrations/019_forceint_wrongtype.php | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 application/migrations/019_forceint_wrongtype.php diff --git a/application/config/migration.php b/application/config/migration.php index 900544db..3a495e10 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 18; +$config['migration_version'] = 19; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/019_forceint_wrongtype.php b/application/migrations/019_forceint_wrongtype.php new file mode 100644 index 00000000..f2c44530 --- /dev/null +++ b/application/migrations/019_forceint_wrongtype.php @@ -0,0 +1,29 @@ + array( + 'name' => 'COL_FORCE_INIT', + 'type' => 'VARCHAR', + 'constraint' => '2', + ), + + 'COL_SWL' => array( + 'name' => 'COL_SWL', + 'type' => 'VARCHAR', + 'constraint' => '2', + ), + ); + $this->dbforge->modify_column('TABLE_HRD_CONTACTS_V01', $fields); + } + + public function down() + { + echo "Not possible, sorry."; + } +} \ No newline at end of file