kopia lustrzana https://github.com/magicbug/Cloudlog
fixed migration cock up
rodzic
37bdf259ae
commit
50544cfb05
|
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
|||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 20;
|
||||
$config['migration_version'] = 28;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{
|
||||
$this->load->library('Migration');
|
||||
|
||||
if ( ! $this->migration->latest()) {
|
||||
if (!$this->migration->latest()) {
|
||||
show_error($this->migration->error_string());
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
|
@ -28,6 +28,6 @@ class Migration_create_logbook_table extends CI_Migration {
|
|||
|
||||
public function down()
|
||||
{
|
||||
$this->dbforge->drop_table('logbooks');
|
||||
echo "not possible";
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue