fixed migration cock up

pull/355/head
Peter Goodhall 2019-09-22 21:51:55 +01:00
rodzic 37bdf259ae
commit 50544cfb05
6 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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