diff options
Diffstat (limited to 'application')
-rw-r--r-- | application/config/migration.php | 2 | ||||
-rw-r--r-- | application/migrations/005_drop_file_password.php | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/application/config/migration.php b/application/config/migration.php index 0bd1d7c44..bfcc3aed7 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'] = 4; +$config['migration_version'] = 5; /* diff --git a/application/migrations/005_drop_file_password.php b/application/migrations/005_drop_file_password.php new file mode 100644 index 000000000..bf03490a8 --- /dev/null +++ b/application/migrations/005_drop_file_password.php @@ -0,0 +1,21 @@ +<?php +defined('BASEPATH') OR exit('No direct script access allowed'); + +class Migration_Drop_file_password extends CI_Migration { + + public function up() + { + $this->db->query(" + ALTER TABLE `files` + DROP `password`; + "); + } + + public function down() + { + $this->db->query(" + ALTER TABLE `files` + ADD `password` varchar(40) CHARACTER SET ascii COLLATE ascii_bin DEFAULT NULL; + "); + } +} |