|
From: Benjamin C. <bc...@us...> - 2001-12-15 15:44:59
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv25569
Modified Files:
upgrade.php
Log Message:
Fixes
Index: upgrade.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/upgrade.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- upgrade.php 2001/12/11 13:56:48 1.4
+++ upgrade.php 2001/12/15 15:44:56 1.5
@@ -29,12 +29,12 @@
global $q;
$upgraded = $q->grab_field("select nextid from ". TBL_DB_SEQUENCE.
- ' where seq_name = "'.TBL_AUTH_GROUP."'");
+ ' where seq_name = "'.TBL_AUTH_GROUP.'"');
if (!$upgraded) {
// Make changes to the auth_group table
$q->query('alter table '.TBL_AUTH_GROUP.' add locked tinyint(1) not null default 0 after group_name');
$q->query('update '.TBL_AUTH_GROUP.' set locked = 1');
- $q->query("insert into db_sequence values('".TBL_AUTH_GROUP."', 3)");
+ $q->query("insert into ".TBL_DB_SEQUENCE." values('".TBL_AUTH_GROUP."', 3)");
// New table
if (DB_TYPE == 'pgsql') {
|