diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-05-16 07:56:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-05-16 07:56:19 +0000 |
commit | b4ef53eccc40dd8605a625adbacb603d93fb3acc (patch) | |
tree | 7f67c9e91b900563a363dba396039e5dad356c09 /update.php | |
parent | 55b4cbadf2a9897e83ff9a9508f01d5a7caec848 (diff) | |
download | brdo-b4ef53eccc40dd8605a625adbacb603d93fb3acc.tar.gz brdo-b4ef53eccc40dd8605a625adbacb603d93fb3acc.tar.bz2 |
- Patch #127539 by yched: batch processing fixes.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/update.php b/update.php index 3387ad849..adfce749c 100644 --- a/update.php +++ b/update.php @@ -685,22 +685,22 @@ function update_create_batch_table() { case 'mysqli': $ret[] = update_sql("CREATE TABLE {batch} ( bid int(11) NOT NULL, - sid varchar(64) NOT NULL, + token varchar(64) NOT NULL, timestamp int(11) NOT NULL, batch longtext, PRIMARY KEY (bid), - KEY sid (sid) + KEY token (token) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); break; case 'pgsql': $ret[] = update_sql("CREATE TABLE {batch} ( - bid int NOT NULL default '0', - sid varchar(64) NOT NULL default '', + bid serial CHECK (bid >= 0), + token varchar(64) NOT NULL default '', timestamp int NOT NULL default '0', batch text, PRIMARY KEY (bid) )"); - $ret[] = update_sql("CREATE INDEX {batch}_sid_idx ON {batch} (sid)"); + $ret[] = update_sql("CREATE INDEX {batch}_token_idx ON {batch} (token)"); break; } return $ret; |