fixed migration cock up

This commit is contained in:
Peter Goodhall
2019-09-22 21:51:55 +01:00
parent 37bdf259ae
commit 50544cfb05
6 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 20;
$config['migration_version'] = 28;
/*
|--------------------------------------------------------------------------

View File

@@ -4,7 +4,7 @@
{
$this->load->library('Migration');
if ( ! $this->migration->latest()) {
if (!$this->migration->latest()) {
show_error($this->migration->error_string());
}

View File

@@ -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";
}
}

View File

@@ -28,6 +28,6 @@ class Migration_create_logbook_table extends CI_Migration {
public function down()
{
$this->dbforge->drop_table('logbooks');
echo "not possible";
}
}

View File

@@ -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";
}
}

View File

@@ -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";
}
}