upgrade.php: syntax error fix

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@491 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 8f965b747f
commit 4b4598c78c

@ -363,17 +363,17 @@ function upgrade_2_pgsql() {
if(!_pgsql_object_exists(table_by_key('alias'))) {
db_query_parsed('
CREATE TABLE ' . table_by_key('alias') . ' (
CREATE TABLE ' . table_by_key("alias") . ' (
address character varying(255) NOT NULL,
goto text NOT NULL,
domain character varying(255) NOT NULL REFERENCES "' . table_by_key('domain') '",
domain character varying(255) NOT NULL REFERENCES "' . table_by_key("domain") . '",
created timestamp with time zone default now(),
modified timestamp with time zone default now(),
active boolean NOT NULL default true,
Constraint "alias_key" Primary Key ("address")
);
CREATE INDEX alias_address_active ON ' . table_by_key('alias') . '(address,active);
COMMENT ON TABLE ' . table_by_key('alias') . ' IS \'Postfix Admin - Virtual Aliases\';
CREATE INDEX alias_address_active ON ' . table_by_key("alias") . '(address,active);
COMMENT ON TABLE ' . table_by_key("alias") . ' IS \'Postfix Admin - Virtual Aliases\';
');
}

Loading…
Cancel
Save