1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/modules/user_homes/helpers/user_homes_installer.php

31 lines
615 B
PHP
Raw Normal View History

2009-07-24 23:11:02 +00:00
<?php defined("SYSPATH") or die("No direct script access.");
class user_homes_installer
{
static function install()
{
module::set_version("user_homes", 1);
}
/**
* installs the extra collumn on the users table when the
* module is installed
*/
static function activate()
{
$db = Database::instance();
$db->query("ALTER TABLE {users} ADD home int(9) default NULL;");
}
/**
* uninstalls the extra collumn on the users table when the
* module is uninstalled
*/
static function deactivate()
{
$db = Database::instance();
$db->query("ALTER TABLE {users} DROP COLUMN home;");
}
}