summaryrefslogtreecommitdiffstats
path: root/application/migrations/005_drop_file_password.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/migrations/005_drop_file_password.php')
-rw-r--r--application/migrations/005_drop_file_password.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/application/migrations/005_drop_file_password.php b/application/migrations/005_drop_file_password.php
index 2be20e550..e8b7f8952 100644
--- a/application/migrations/005_drop_file_password.php
+++ b/application/migrations/005_drop_file_password.php
@@ -5,27 +5,21 @@ class Migration_Drop_file_password extends CI_Migration {
public function up()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('ALTER TABLE "files" DROP "password"');
- }
- else
- {
+ } else {
$this->db->query("ALTER TABLE `files` DROP `password`;");
}
}
public function down()
{
- if ($this->db->dbdriver == 'postgre')
- {
+ if ($this->db->dbdriver == 'postgre') {
$this->db->query('
ALTER TABLE "files"
ADD "password" character varying(40) DEFAULT NULL
');
- }
- else
- {
+ } else {
$this->db->query("
ALTER TABLE `files`
ADD `password` varchar(40) CHARACTER SET ascii COLLATE ascii_bin DEFAULT NULL;