diff --git a/application/config/migration.php b/application/config/migration.php index ed87acf9..28005145 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'] = 20; +$config['migration_version'] = 28; /* |-------------------------------------------------------------------------- diff --git a/application/controllers/Migrate.php b/application/controllers/Migrate.php index b47244a8..0b8bb121 100644 --- a/application/controllers/Migrate.php +++ b/application/controllers/Migrate.php @@ -4,7 +4,7 @@ { $this->load->library('Migration'); - if ( ! $this->migration->latest()) { + if (!$this->migration->latest()) { show_error($this->migration->error_string()); } diff --git a/application/migrations/024_add_column_logbookid.php b/application/migrations/024_add_column_logbookid.php index 58147c4b..a1a811a1 100644 --- a/application/migrations/024_add_column_logbookid.php +++ b/application/migrations/024_add_column_logbookid.php @@ -15,6 +15,6 @@ class Migration_add_column_logbookid extends CI_Migration { public function down() { - $this->dbforge->drop_column('logbook_id', $this->config->item('table_name')); + echo "not possible"; } } \ No newline at end of file diff --git a/application/migrations/025_create_logbook_table.php b/application/migrations/025_create_logbook_table.php index 68151fab..d04d42bc 100644 --- a/application/migrations/025_create_logbook_table.php +++ b/application/migrations/025_create_logbook_table.php @@ -28,6 +28,6 @@ class Migration_create_logbook_table extends CI_Migration { public function down() { - $this->dbforge->drop_table('logbooks'); + echo "not possible"; } } \ No newline at end of file diff --git a/application/migrations/026_addfield_to_logbooks_default.php b/application/migrations/026_addfield_to_logbooks_default.php index 04ea5229..c90b3bb9 100644 --- a/application/migrations/026_addfield_to_logbooks_default.php +++ b/application/migrations/026_addfield_to_logbooks_default.php @@ -15,6 +15,6 @@ class Migration_addfield_to_logbooks_default extends CI_Migration { public function down() { - $this->dbforge->drop_column('default_logbook', 'logbooks'); + echo "not possible"; } } \ No newline at end of file diff --git a/application/migrations/027_addfield_to_logbooks_active.php b/application/migrations/027_addfield_to_logbooks_active.php index 7a3146d7..aeeea0e2 100644 --- a/application/migrations/027_addfield_to_logbooks_active.php +++ b/application/migrations/027_addfield_to_logbooks_active.php @@ -15,6 +15,6 @@ class Migration_addfield_to_logbooks_active extends CI_Migration { public function down() { - $this->dbforge->drop_column('active_logbook', 'logbooks'); + echo "not possible"; } } \ No newline at end of file