Hi all,
I don't believe I'm doning anything wrong here (hopefully not!), but any pointers massively appreciated.
Firstly, I have migrations set up to timestamp, and have auto_latest set to true. Migrating up a version works perfectly fine. However, migrating down a version does not - nothing changes, not even the version number in the database.
For reference, this is my migration.php file in the config folder:
And my log file states:
I'm not sure if it's related, but my migrations table seems to keep getting bigger and bigger, with multiple rows of the same value appearing over and over (currently 105 rows, but a new one is created each time I refresh a page of my site).
I'm running XAMPP on Windows 10. PHP 5.6.21, with MariaDB.
As I said, any pointers would be great because my table just seems to keep growing!
I don't believe I'm doning anything wrong here (hopefully not!), but any pointers massively appreciated.
Firstly, I have migrations set up to timestamp, and have auto_latest set to true. Migrating up a version works perfectly fine. However, migrating down a version does not - nothing changes, not even the version number in the database.
For reference, this is my migration.php file in the config folder:
PHP Code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['migration_enabled'] = TRUE;
$config['migration_type'] = 'timestamp';
$config['migration_table'] = 'Migration';
$config['migration_auto_latest'] = TRUE;
$config['migration_version'] = 20160726190300;
$config['migration_path'] = APPPATH.'migrations/';
And my log file states:
Code:
DEBUG - 2016-08-09 19:30:05 --> Finished migrating to 20160809185000I'm not sure if it's related, but my migrations table seems to keep getting bigger and bigger, with multiple rows of the same value appearing over and over (currently 105 rows, but a new one is created each time I refresh a page of my site).
I'm running XAMPP on Windows 10. PHP 5.6.21, with MariaDB.
As I said, any pointers would be great because my table just seems to keep growing!