summaryrefslogtreecommitdiffstats
path: root/lib/class/update.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-03 01:08:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-03 01:08:51 +0000
commit959f1e9a9d1eafe3757b5d820b58aaefb8d047e7 (patch)
treec82ee711ee62acad381f25481901a8abc508c55b /lib/class/update.class.php
parenta93768353184965727bebde84a7d970beaa8d4bb (diff)
downloadampache-959f1e9a9d1eafe3757b5d820b58aaefb8d047e7.tar.gz
ampache-959f1e9a9d1eafe3757b5d820b58aaefb8d047e7.tar.bz2
ampache-959f1e9a9d1eafe3757b5d820b58aaefb8d047e7.zip
fixed registration to use existing functions... yea I also broke it at the same time.. I know
Diffstat (limited to 'lib/class/update.class.php')
-rw-r--r--lib/class/update.class.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/class/update.class.php b/lib/class/update.class.php
index 4977135a..e6dfbb84 100644
--- a/lib/class/update.class.php
+++ b/lib/class/update.class.php
@@ -254,6 +254,11 @@ class Update {
$version[] = array('version' => '332005','description' => $update_string);
+
+ $update_string = '- Adds Create Date to User table to track registration and user creation time.';
+
+ $version[] = array('version' => '332006','description' => $update_string);
+
return $version;
} // populate_version
@@ -1364,5 +1369,22 @@ class Update {
} // update_332005
+ /**
+ * update_332006
+ * Hmm 2006 perfect for the new year.. anyway this just adds the create_date on the account
+ * so that you know when they were registered/created
+ */
+ function update_332006() {
+
+ $sql = "ALTER TABLE `user` ADD `create_date` INT ( 11 ) UNSIGNED NULL DEFAULT NULL";
+ $db_results = mysql_query($sql, dbh());
+
+ $sql = "ALTER TABLE `user` ADD `validation` VARCHAR ( 128 )";
+ $db_results = mysql_query($sql, dbh());
+
+ $this->set_version('db_version','332006');
+
+ } // update_332006
+
} // end update class
?>