diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 19:26:21 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 19:26:21 +0000 |
commit | 0b9fe18a6bf4036a05db7f9479d7b55d3fe5c782 (patch) | |
tree | 2d9905f25634fdc9fecec88362d1911e393a4b4b /installer/cli.php | |
parent | dc4f784558db725eb555ce9668231b89aabb8954 (diff) |
Both the command line and web installer installer now supports
creating tables with a table prefix.
There are still some queries that haven't been converted, so don't
start using prefixes yet. However, if you do, you can login and
modify the user profile.
Diffstat (limited to 'installer/cli.php')
-rw-r--r-- | installer/cli.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/installer/cli.php b/installer/cli.php index ee2d6880..163f2e71 100644 --- a/installer/cli.php +++ b/installer/cli.php @@ -40,7 +40,7 @@ if (!installer::connect($config)) { "Please specify an empty database.\n"); } else if (!installer::unpack_var()) { oops("Unable to create files inside the 'var' directory"); -} else if (!installer::unpack_sql()) { +} else if (!installer::unpack_sql($config)) { oops("Failed to create database tables\n" . mysql_error()); } else if (!installer::create_database_config($config)) { oops("Couldn't create var/database.php"); @@ -54,7 +54,7 @@ if (!installer::connect($config)) { print " password: $password\n"; print "\n"; - installer::create_private_key(); + installer::create_private_key($config); exit(0); } catch (Exception $e) { oops($e->getMessage()); @@ -96,6 +96,9 @@ function parse_cli_params() { case "-p": $config["password"] = $argv[++$i]; break; + case "-x": + $config["prefix"] = $argv[++$i]; + break; } } |